:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #16202c;
  --muted: #5b6776;
  --line: #e2e6eb;
  --accent: #1f6feb;
  --accent-ink: #ffffff;
  --good: #1a7f37;
  --warn: #9a6700;
  --bad: #c62828;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141a; --surface: #171e26; --text: #e6edf3; --muted: #9aa7b4; --line: #2a333d;
    --accent: #4c8dff; --good: #3fb950; --warn: #d29922; --bad: #f85149;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }
h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; margin: 8px 0 16px; }
h2 { font-size: 22px; margin: 0 0 12px; }
h3 { margin: 0 0 6px; font-size: 17px; }
h4 { margin: 12px 0 6px; font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-weight: 700; text-decoration: none; color: var(--text); }
.top nav a { margin-left: 16px; text-decoration: none; color: var(--muted); }

.banner { background: #fff3cd; color: #5c4400; padding: 10px 16px; text-align: center; font-size: 14px; }

.hero { padding: 56px 0 32px; }
.eyebrow { color: var(--accent); font-weight: 600; margin: 0; }
.lead { font-size: 18px; color: var(--muted); max-width: 680px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; padding-bottom: 40px; }
.features article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.features p { margin: 0; color: var(--muted); font-size: 14px; }
.num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13px; margin-bottom: 8px; }

.step { padding: 24px 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

.btn { display: inline-block; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.big { padding: 14px 22px; font-size: 17px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.hint { min-height: 1.5em; color: var(--muted); font-size: 14px; }
.hint.error { color: var(--bad); }

.drop { display: block; border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; cursor: pointer; margin-bottom: 12px; }
.drop.over { border-color: var(--accent); }
.drop input { display: none; }
details { margin-bottom: 12px; }
textarea, input[type=email] { width: 100%; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); margin-top: 6px; }

.score-row { display: flex; gap: 20px; align-items: flex-start; }
.score { flex: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 700; border: 6px solid var(--accent); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.list li b { display: block; }

.job { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; }
.job-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stars { color: #e3a008; letter-spacing: 2px; white-space: nowrap; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.req { font-size: 14px; margin: 8px 0; padding-left: 0; list-style: none; }
.req li { padding: 3px 0; }
.st { font-weight: 600; font-size: 12px; padding: 1px 6px; border-radius: 4px; margin-right: 6px; }
.st.passt { color: var(--good); border: 1px solid currentColor; }
.st.teilweise { color: var(--warn); border: 1px solid currentColor; }
.st.lücke { color: var(--bad); border: 1px solid currentColor; }
.job-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
select { font: inherit; padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }

.locked { position: relative; margin-top: 8px; }
.blur-list { filter: blur(6px); pointer-events: none; user-select: none; }
.blur-list .job { opacity: .8; }
.ph { height: 12px; background: var(--line); border-radius: 6px; margin: 8px 0; }
.locked-cta { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); width: min(520px, calc(100% - 32px)); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.12); }

.checks { list-style: none; padding: 0; margin: 8px 0; font-size: 14px; }
.checks li::before { content: "✓ "; color: var(--good); font-weight: 700; }
.checks li.fail::before { content: "✗ "; color: var(--bad); }
.previews { display: flex; gap: 12px; overflow-x: auto; margin: 12px 0; }
.previews img { width: 260px; max-width: 70vw; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.summary { width: 100%; border-collapse: collapse; font-size: 14px; }
.summary td { border-bottom: 1px solid var(--line); padding: 6px 4px; vertical-align: top; }
.assume { color: var(--warn); font-size: 12px; font-weight: 600; }

.table-wrap { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }

fieldset { border: 0; padding: 0; margin: 12px 0; }
legend { font-weight: 600; margin-bottom: 4px; }
.field { display: block; font-weight: 600; margin-bottom: 8px; }
.radio { display: block; margin: 6px 0; }
.confirm { background: var(--bg); padding: 10px; border-radius: 8px; font-size: 14px; }

.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

footer { padding: 32px 16px 48px; }
@media (max-width: 560px) { .top nav a { margin-left: 10px; } }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tab { flex: 1 1 0; min-width: 0; white-space: nowrap; border: 1px solid var(--line); background: var(--bg); color: var(--muted); padding: 9px 12px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.tab.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
input[type=url], input[type=password] { width: 100%; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); margin-top: 6px; }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Schritt-Anzeige ---------- */
.steps { list-style: none; padding: 0; margin: 16px 0 4px; font-size: 14px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; color: var(--muted); }
.steps li small { color: var(--muted); font-weight: 400; }
.steps .dot { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 11px; }
.steps li.active { color: var(--text); font-weight: 600; }
.steps li.active .dot { border-color: var(--line); border-top-color: var(--accent); animation: spin 1s linear infinite; }
.steps li.done { color: var(--text); }
.steps li.done .dot { background: var(--good); border-color: var(--good); }
.steps li.done .dot::after { content: "✓"; color: #fff; font-weight: 700; }
.steps li.error { color: var(--bad); }
.steps li.error .dot { background: var(--bad); border-color: var(--bad); }
.steps li.error .dot::after { content: "!"; color: #fff; font-weight: 700; }

/* ---------- Kompakt + aufklappbar ---------- */
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.expandable p { margin: 10px 0 0; }
.expandable .more { font-size: 13px; }
.items { display: grid; gap: 4px; }
details.item { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 14px; }
details.item summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
details.item summary::-webkit-details-marker { display: none; }
details.item summary::after { content: "+"; color: var(--accent); font-weight: 700; }
details.item[open] summary::after { content: "−"; }
details.item p { margin: 6px 0 2px; color: var(--muted); }
details > summary { cursor: pointer; }
details.small { margin: 10px 0; }
details.small summary { font-weight: 600; }
.bad { color: var(--bad); }
.score-text h3 { margin-top: 6px; }


/* ---------- Mobil: weniger Text, kompakter ---------- */
@media (max-width: 560px) {
  .hero { padding: 24px 0 12px; }
  h1 { font-size: 26px; margin: 6px 0 8px; }
  .lead { font-size: 16px; margin: 0 0 14px; }
  .btn.big { width: 100%; text-align: center; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 8px; padding-bottom: 12px; }
  .features article { padding: 10px; display: flex; align-items: center; gap: 8px; }
  .features article h3 { font-size: 14px; margin: 0; }
  .features article p { display: none; }
  .num { margin: 0; flex: none; }
  .step { padding: 16px 16px; }
  .card { padding: 14px; }
  h2 { font-size: 19px; }
  .score { width: 64px; height: 64px; font-size: 21px; border-width: 5px; }
  .score-row { flex-direction: row; gap: 12px; align-items: center; }
  .cols { gap: 8px; }
  .drop { padding: 20px 12px; }
  .hide-sm { display: none; }
  .tab { flex: 1 1 auto; padding: 9px 4px; font-size: 13px; }
  .previews img { width: 200px; }
  .locked-cta { top: 10px; }
  .job-actions .btn { flex: 1 1 auto; text-align: center; }
}

/* ---------- Telefon-Interview ---------- */
.call { text-align: center; padding: 8px 0 4px; }
.avatar { --level: 0; width: 96px; height: 96px; margin: 8px auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #4c8dff, #7b5cff); position: relative; }
.avatar.live::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid var(--accent); opacity: calc(0.25 + var(--level) * 0.75); transform: scale(calc(1 + var(--level) * 0.12)); transition: transform .08s linear, opacity .08s linear; }
.avatar.live:not(.speaking)::before { border-color: var(--good); }
.call-name { font-weight: 700; font-size: 18px; margin: 0; }
.avatar.live { margin: 22px auto 26px; }
.call-state { margin: 4px 0 0; font-weight: 600; }
.call-caption { min-height: 3em; color: var(--muted); font-size: 14px; max-width: 420px; margin: 8px auto; }
.call-actions { display: flex; justify-content: center; gap: 28px; margin-top: 8px; }
.call-btn { border-radius: 999px; font-size: 18px; }
.call-btn.start { background: var(--good); border-color: var(--good); color: #fff; padding: 12px 28px; margin: 6px 0; }
.call-btn.end, .call-btn.mute { width: 60px; height: 60px; padding: 0; }
.call-btn.end { background: var(--bad); border-color: var(--bad); color: #fff; font-size: 22px; }
.call-btn.mute.on { background: var(--text); color: var(--bg); }

/* ---------- Kernfunktionen als kompakte Kacheln ---------- */
.features { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding-bottom: 28px; }
.feat { min-width: 0; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.feat .ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; background: var(--bg); }
.feat.ai .ico { background: linear-gradient(135deg, #4c8dff33, #7b5cff33); }
.feat .lbl { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat .lbl small { color: var(--muted); font-weight: 600; margin-right: 2px; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .feat { padding: 8px; gap: 7px; }
  .feat .ico { width: 26px; height: 26px; font-size: 15px; border-radius: 8px; }
  .feat .lbl { font-size: 13px; }
  .feat .lbl small { display: none; }
  .feat:last-child { grid-column: span 2; }
}

/* ---------- Skill-Check ---------- */
.score.good { border-color: var(--good); }
.score.mid { border-color: var(--warn); }
.score.low { border-color: var(--muted); }
.score-label { margin: 2px 0; font-weight: 700; font-size: 14px; }
.score-label.good { color: var(--good); }
.score-label.mid { color: var(--warn); }

/* ---------- AI-Interview ---------- */
.avatar span[aria-hidden] { font-size: 44px; line-height: 1; }
.ai-badge { position: absolute; right: -4px; bottom: 2px; background: var(--text); color: var(--bg); font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 999px; letter-spacing: .5px; }
.countdown { display: flex; align-items: center; gap: 10px; max-width: 320px; margin: 10px auto 6px; }
.countdown .bar { flex: 1; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.countdown .bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s linear; }
.flow { display: flex; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 6px 0; flex-wrap: wrap; }
.flow li { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.flow li.active { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.flow li.done { background: var(--good); border-color: var(--good); color: #fff; }

/* ---------- Schritte und Ziel ---------- */
.stepno { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .3px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 3px 8px; border-radius: 999px; margin-right: 6px; vertical-align: 3px; }
.feat .ico { position: relative; }
.feat .ico b { position: absolute; right: -6px; top: -6px; width: 17px; height: 17px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 10px; display: grid; place-items: center; }
.feat .lbl small { display: none; }
.feat.goal { background: linear-gradient(135deg, #16a34a1f, #4c8dff1f); border-color: #16a34a66; }
.feat.goal .ico { background: #16a34a22; }
.feat.goal .lbl { color: var(--good); }
@media (min-width: 861px) { .features { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- Schritt 1: AI-Interview als Blickfang ---------- */
.hero-card { background: linear-gradient(160deg, color-mix(in srgb, #4c8dff 14%, var(--surface)), color-mix(in srgb, #7b5cff 10%, var(--surface))); border-color: color-mix(in srgb, #7b5cff 35%, var(--line)); box-shadow: 0 12px 32px -18px #4c5cff88; }
.hero-card .call-btn.start { font-size: 18px; padding: 14px 32px; box-shadow: 0 8px 20px -8px #16a34acc; }
.alt-card { margin-top: 12px; padding: 14px; }
.alt-card .or { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.alt-card .tabs { margin-bottom: 0; }
.alt-card .tabpanel { margin-top: 14px; }
.alt-card.pulse { animation: pulse 0.8s ease-in-out 3; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent); } }

/* ---------- Schritt 2: AI-Skill-Check visuell ---------- */
.ring { --pct: 0; --col: var(--good); flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--col) calc(var(--pct) * 1%), var(--line) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface); }
.ring span { position: relative; font-size: 28px; font-weight: 800; }
.score-text h3 { margin: 4px 0 2px; }
.score-text p { margin: 2px 0; }
.badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 10px; }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: 13px; font-weight: 600; }
.badge .dot { --c: var(--accent); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 20%, transparent); }
.roles-head { margin: 14px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.btn.wide { width: 100%; }
#redo-profile { display: block; margin: 8px auto 0; color: var(--muted); }
.li-logo { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: #0a66c2; color: #fff; font-size: 12px; font-weight: 800; font-family: Arial, sans-serif; vertical-align: -3px; }
.badge { min-width: 0; }
.badge > span:last-child { max-width: 100%; overflow-wrap: anywhere; hyphens: auto; line-height: 1.25; font-size: 12.5px; }

/* ---------- Pop-up Registrierung ---------- */
.modal { border: 0; border-radius: 16px; padding: 24px 20px 18px; width: min(420px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: 0 24px 60px -20px #000a; }
.modal::backdrop { background: #0b1220b3; backdrop-filter: blur(3px); }
.modal h2 { margin: 0 0 6px; }
.modal .field { margin-top: 12px; }
.modal .btn.wide { margin-top: 14px; }
.modal-close { position: absolute; right: 10px; top: 10px; border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; padding: 6px; }
.modal.slim { width: min(380px, calc(100vw - 32px)); padding: 22px 18px 16px; }
.modal.slim fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 10px; margin: 12px 0; }
.modal.slim legend { font-size: 13px; font-weight: 700; padding: 0 4px; }
.modal.slim .radio { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; margin: 6px 0; }
.modal.slim .radio.confirm { font-size: 13px; color: var(--muted); }
.modal.slim details.small { margin: 8px 0; font-size: 13px; }
.modal.slim .job-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.modal.slim .btn { flex: 1; }
.saved-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); vertical-align: middle; }
.linkbtn.center { display: block; margin: 4px auto 0; }
.mail-ico { font-size: 40px; text-align: center; }
#auth-wait-view { text-align: center; }
.wait-line { color: var(--muted); margin: 14px 0 4px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; z-index: 50; box-shadow: 0 8px 24px -8px #0008; }

/* ---------- AI-Bewerbung ---------- */
.ai-chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; background: linear-gradient(135deg, #4c8dff22, #7b5cff22); color: var(--accent); }
.ai-chip.off { background: var(--bg); color: var(--muted); font-weight: 600; }
.apply-job { margin: 0 0 4px; }
#apply-cv { margin: 4px 0 0; color: var(--muted); }
.ask { margin-top: 14px; padding: 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.ask-head { font-weight: 700; margin: 0 0 8px; }
.ask .q { margin-bottom: 12px; }
.ask .q > label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.ask input[type=text] { width: 100%; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
.ask .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.ask .opt { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; background: var(--surface); }
.result { margin-top: 14px; }
.result-head { font-weight: 700; margin: 0 0 6px; }
.result.manual p { margin: 0 0 10px; }
.summary .src { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.summary tr.bad td, .src.bad { color: var(--bad); }
.form-shot { width: 100%; max-height: 420px; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 8px; margin-top: 8px; }
.center-text { text-align: center; }
#submit-app { margin-top: 12px; }
.steps li.skipped { color: var(--muted); opacity: .6; text-decoration: line-through; } .steps li.skipped .dot::after { content: "–"; }

/* ---------- Sicherheitsprüfung (Live-Ansicht) ---------- */
.captcha { margin-top: 14px; padding: 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--warn) 50%, var(--line)); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); }
.captcha p { margin: 0 0 8px; }
#captcha-img { display: block; width: 100%; max-width: 480px; margin: 8px auto 0; border-radius: 8px; border: 1px solid var(--line); touch-action: none; user-select: none; -webkit-user-select: none; background: #fff; min-height: 120px; }
.captcha.handoff { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.captcha.handoff #captcha-img { max-width: 960px; cursor: crosshair; outline: none; }
.captcha.handoff #captcha-img:focus { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
#live-controls { margin-top: 10px; text-align: center; }
.live-type { display: flex; gap: 6px; margin: 8px 0 10px; }
.live-type input { flex: 1; min-width: 0; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
.live-type .btn { padding: 8px 12px; }

.live-view-switch { display: flex; gap: 8px; margin: 8px 0; }
.live-view-switch .btn { flex: 1; }

#live-note.warn { color: #b91c1c; font-weight: 600; }

.audit { margin-top: 10px; }
.audit-list { padding-left: 18px; margin: 8px 0; display: grid; gap: 6px; }
.audit-list ul { margin: 4px 0 0; padding-left: 18px; }
.audit-time { color: var(--muted, #6b7280); font-variant-numeric: tabular-nums; }
.audit-actor { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 999px; background: #eef2ff; color: #3730a3; }
.audit-actor.person { background: #dcfce7; color: #166534; }
.audit-actor.portal { background: #fef3c7; color: #92400e; }

.tags.facts { margin: 4px 0 2px; }
.tag.warn { background: #fef3c7; color: #92400e; }
.tag.est { border-style: dashed; }
.tag.rec.ok { background: #dcfce7; color: #166534; }
.tag.rec.mid { background: #fef9c3; color: #854d0e; }
.tag.rec.bad { background: #fee2e2; color: #991b1b; }

.ai-chip.tier { background: #eef2ff; color: #3730a3; }
.ai-chip.tier.t3, .ai-chip.tier.t4 { background: #f1f5f9; color: #334155; }

.mring { --pct: 0; --col: #16a34a; flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--col) calc(var(--pct) * 1%), var(--line) 0); position: relative; }
.mring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.mring span { position: relative; font-size: 15px; font-weight: 800; color: var(--col); }
.mring small { font-size: 9px; font-weight: 700; }
td .mring { width: 38px; height: 38px; }
td .mring::before { inset: 4px; }
td .mring span { font-size: 11px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 4px; position: sticky; bottom: 8px; z-index: 5; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 4px 16px #0001; }
.pager .btn { min-width: 96px; min-height: 44px; }
.pager .btn[disabled] { opacity: .4; }
.pager-pos { font-weight: 600; font-size: 14px; }

.job-head { display: flex; flex-wrap: nowrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.job-head > div:first-child { flex: 1; min-width: 0; }

/* Compact job card: title, company and three big facts; everything else under "Details". */
.job.compact { padding: 18px 18px 10px; position: relative; overflow: hidden; }
.job.compact.ai::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #4c8dff, #7b5cff); }
.job-title h3 { margin: 0 0 2px; font-size: 18px; line-height: 1.25; }
.job-title .company { font-size: 16px; font-weight: 700; color: var(--accent); margin-top: 2px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 6px; }
.stat { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 4px; padding: 12px 4px 10px; border-radius: 14px; background: linear-gradient(160deg, #4c8dff12, #7b5cff14); min-width: 0; }
.stat .ico { width: 34px; height: 34px; display: grid; place-items: center; color: var(--accent); }
.stat .ico svg { width: 30px; height: 30px; }
.stat b { font-size: 15px; font-weight: 800; letter-spacing: .02em; line-height: 1.15; color: var(--text); overflow-wrap: anywhere; }
.stat small { font-size: 11px; color: var(--muted); line-height: 1.2; }
.stat.match { --col: #d97706; }
.stat.match.good { --col: #16a34a; }
.big-ring { --pct: 0; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--col) calc(var(--pct) * 1%), var(--line) 0); position: relative; }
.big-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }
.big-ring b { position: relative; font-size: 18px; color: var(--col); }
.big-ring b small { font-size: 11px; color: var(--col); }
.details-toggle { display: block; margin: 4px auto 0; background: none; border: 0; color: var(--accent); font-weight: 700; font-size: 14px; padding: 8px 12px; cursor: pointer; }
.job-details { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.job-details .job-head .mring { display: none; }
@media (max-width: 380px) { .stat b { font-size: 13px; } .big-ring { width: 50px; height: 50px; } .big-ring b { font-size: 16px; } }

.cta-auto { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; margin: 8px 0 2px; padding: 11px 14px; border: 1px solid #c7d2fe; border-radius: 14px; cursor: pointer; color: #3730a3; background: #eef2ff; text-align: center; }
.cta-auto:hover { background: #e0e7ff; }
a.cta-auto { text-decoration: none; box-sizing: border-box; }
.cta-dl { display: block; margin: 4px 0 0; padding: 6px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.cta-dl:hover { color: var(--text); }
.cta-auto:disabled { opacity: .6; cursor: default; }
.cta-auto .cta-title { font-size: 17px; font-weight: 800; letter-spacing: .01em; }
.cta-auto .cta-sub { font-size: 12.5px; color: #4f46e5; line-height: 1.3; }
.cta-auto.manual { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.cta-auto.manual .cta-sub { color: var(--muted); opacity: 1; }
.cta-auto.done { background: #ecfdf5; border-color: #86efac; color: #166534; }
.cta-auto.done:hover { background: #dcfce7; }
.cta-auto.done .cta-sub { color: #15803d; }
.cta-auto.busy { background: var(--surface); border-color: #c7d2fe; color: #3730a3; }
.cta-auto.warn { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.cta-auto.warn .cta-sub { color: #b45309; }
.cta-auto.bad { background: var(--surface); border-color: #fca5a5; color: #b91c1c; }
.cta-auto.bad .cta-sub { color: var(--muted); }
.cta-auto.off { background: var(--surface); border-color: var(--line); color: var(--muted); }
.cta-auto.off .cta-sub { color: var(--muted); }
@media (prefers-color-scheme: dark) {
  .cta-auto.done { background: #052e1a; border-color: #166534; color: #86efac; } .cta-auto.done:hover { background: #073d23; } .cta-auto.done .cta-sub { color: #4ade80; }
  .cta-auto.busy { background: #1e2547; border-color: #3b4580; color: #c7d2fe; }
  .cta-auto.warn { background: #3a2a07; border-color: #92400e; color: #fcd34d; } .cta-auto.warn .cta-sub { color: #fbbf24; }
  .cta-auto.bad { border-color: #7f1d1d; color: #fca5a5; }
}
@media (prefers-color-scheme: dark) { .cta-auto { background: #1e2547; border-color: #3b4580; color: #c7d2fe; } .cta-auto:hover { background: #252e57; } .cta-auto .cta-sub { color: #a5b4fc; } }
.hl { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin: 4px 0 6px; padding: 0; }
.hl li { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--text); }
.hl li span { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #dcfce7; color: #15803d; font-size: 11px; font-weight: 800; }
@media (prefers-color-scheme: dark) { .hl li span { background: #14532d; color: #86efac; } }

/* Status bar in the sticky header: the application running in the background. */
.status-bar { position: relative; overflow: hidden; background: #15803d; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.status-bar.warn { background: #d97706; }
.status-bar.bad { background: #b91c1c; }
.status-bar.ok { background: #15803d; }
.status-inner { position: relative; display: flex; align-items: center; gap: 10px; padding-top: 9px; padding-bottom: 9px; min-width: 0; }
#status-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; flex: none; animation: sbpulse 1.4s ease-in-out infinite; }
.status-bar.ok .sb-dot, .status-bar.bad .sb-dot { animation: none; }
@keyframes sbpulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
#consent form label.radio { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; font-size: 14px; line-height: 1.35; }
#consent form label.radio input { margin-top: 3px; flex: none; }
#ask-form .q { margin: 12px 0; }
#ask-form .q > label { display: block; font-weight: 600; margin-bottom: 6px; }
#ask-form input[type=text] { width: 100%; }
/* Progress: the filled part grows with the steps, stripes move while the agent works. */
.sb-progress { position: absolute; inset: 0 auto 0 0; width: 0; background: #22c55e; transition: width .8s ease; }
.status-bar.warn .sb-progress { background: #f59e0b; }
.status-bar.bad .sb-progress { background: #dc2626; }
.status-bar.busy .sb-progress { background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.18) 0 12px, transparent 12px 24px); background-size: 34px 34px; animation: sbstripes 1s linear infinite; }
@keyframes sbstripes { from { background-position: 0 0; } to { background-position: 34px 0; } }
.sb-count { flex: none; font-variant-numeric: tabular-nums; opacity: .9; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .status-bar.busy .sb-progress, .sb-dot { animation: none; } }
.ask-note { background: #f0fdf4; color: #166534; border-radius: 10px; padding: 8px 10px; margin: 6px 0 10px; }
@media (prefers-color-scheme: dark) { .ask-note { background: #0f2a1a; color: #86efac; } }
.sb-btn { flex: none; background: #fff; color: #14532d; border: 0; border-radius: 999px; padding: 5px 12px; font-weight: 800; font-size: 13px; cursor: pointer; }
.status-bar.warn .sb-btn { color: #92400e; } .status-bar.bad .sb-btn { color: #991b1b; }
.resume-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-bottom: 10px; border-radius: 12px; background: #fff7ed; border: 1px solid #fdba74; color: #7c2d12; }
.resume-box.run { background: #eff6ff; border-color: #93c5fd; color: #1e3a8a; }
.resume-box .btn { flex: none; }
@media (prefers-color-scheme: dark) { .resume-box { background: #2a1a0c; border-color: #9a3412; color: #fed7aa; } .resume-box.run { background: #0f1d36; border-color: #1d4ed8; color: #bfdbfe; } }
header.top.running .top-inner { display: none; }
.resume-box.queue { background: #f8fafc; border-color: #cbd5e1; color: #334155; }
.btn.danger { background: #dc2626; color: #fff; border-color: #dc2626; }
@media (prefers-color-scheme: dark) { .resume-box.queue { background: #161d27; border-color: #334155; color: #cbd5e1; } }
.ask-cancel { margin-top: 8px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.group-title { font-size: 15px; margin: 18px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.resume-box .rb-text { min-width: 0; }
.rb-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; flex: none; max-width: 55%; }
.resume-box.tone-busy { background: #eff6ff; border-color: #93c5fd; color: #1e3a8a; }
.resume-box.tone-warn { background: #fff7ed; border-color: #fdba74; color: #7c2d12; }
.resume-box.tone-bad { background: #fef2f2; border-color: #fca5a5; color: #7f1d1d; }
.resume-box.tone-neutral { background: #f8fafc; border-color: #cbd5e1; color: #334155; }
@media (prefers-color-scheme: dark) { .resume-box.tone-busy { background: #0f1d36; border-color: #1d4ed8; color: #bfdbfe; } .resume-box.tone-warn { background: #2a1a0c; border-color: #9a3412; color: #fed7aa; } .resume-box.tone-bad { background: #2a0f0f; border-color: #991b1b; color: #fecaca; } .resume-box.tone-neutral { background: #161d27; border-color: #334155; color: #cbd5e1; } }
@media (max-width: 520px) { .resume-box { flex-direction: column; align-items: stretch; } .rb-actions { max-width: none; justify-content: flex-start; } }
.rb-actions .btn { padding: 8px 14px; font-size: 14px; }

/* Target of a link from an e-mail: briefly highlighted. */
.flash { outline: 3px solid #f59e0b; outline-offset: 3px; border-radius: 12px; transition: outline-color .6s; }

/* Job details: summary of the ad on top, the rest below */
.job-summary { margin: 4px 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.job-summary .js-title { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.job-summary .js-kurz { margin: 0 0 8px; font-weight: 600; }
.job-summary .js-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.job-summary h4 { margin: 6px 0 2px; font-size: 13px; }
.job-summary ul { margin: 0; padding-left: 18px; font-size: 14px; }
.job-summary li { margin: 2px 0; }
.job-summary .js-rahmen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.job-summary .js-loading { margin: 0; animation: jsPulse 1.2s ease-in-out infinite; }
@keyframes jsPulse { 50% { opacity: .45; } }
@media (max-width: 560px) { .job-summary .js-cols { grid-template-columns: 1fr; } }

/* Search mode (Normal / Großzügig) */
.mode-pick { border: 0; padding: 0; margin: 4px 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mode-pick legend { padding: 0; margin-bottom: 6px; }
.mode-pick label { display: block; cursor: pointer; }
.mode-pick input { position: absolute; opacity: 0; pointer-events: none; }
.mode-pick label span { display: flex; flex-direction: column; gap: 2px; height: 100%; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mode-pick label small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.mode-pick input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.mode-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 420px) { .mode-pick { grid-template-columns: 1fr; } }
.stretch { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.stretch.up { background: #ede9fe; color: #5b21b6; }
.stretch.side { background: #e0f2fe; color: #075985; }
@media (prefers-color-scheme: dark) { .stretch.up { background: #2e1065; color: #ddd6fe; } .stretch.side { background: #082f49; color: #bae6fd; } }
