@font-face {
  font-family: Inter;
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #222428;
  --muted: #59626c;
  --paper: #f8f9fa;
  --white: #ffffff;
  --line: #e5e5e5;
  --action: #2563eb;
  --action-hover: #1d4ed8;
  --soft: #f5f5f5;
  --success: #166534;
  --danger: #a13b3b;
  --row-shadow: 0 2px 20px rgba(0, 0, 0, .08);
  font-family: Inter, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: inherit; font-weight: 600; }
h1 { margin-bottom: 10px; font-size: clamp(26px, 3vw, 32px); line-height: 1.2; letter-spacing: -.8px; }
h2 { font-size: 20px; line-height: 1.3; }
h3 { font-size: 15px; line-height: 1.375; }

.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px max(24px, calc((100% - 1232px) / 2)); border-bottom: 1px solid var(--line); background: var(--white); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; white-space: nowrap; font-size: 21px; font-weight: 700; letter-spacing: -.6px; text-decoration: none; }
.brand-mark { display: block; flex-shrink: 0; }
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a, .text-link { color: var(--muted); font-size: 13px; text-decoration: none; }
nav a { padding: 8px 4px; border-radius: 4px; }
nav a:hover, .text-link:hover { color: var(--ink); }
nav a[aria-current="page"] { color: var(--ink); box-shadow: 0 2px var(--ink); font-weight: 600; }
.plan-pill { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--muted); font-size: 12px; white-space: nowrap; flex-shrink: 0; }
.header-account { display: flex; align-items: center; gap: 12px; min-width: 0; }
#account-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.header-account .button { flex-shrink: 0; }
main { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 0; }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.intro { max-width: 660px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.7; }
.public-links { padding: 20px 0; margin-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.public-links a { display: inline-block; margin-right: 16px; }
.policy-content { max-width: 800px; padding-top: 32px; padding-bottom: 32px; }
.policy-content section { margin: 28px 0; }
.policy-content h2 { font-size: 18px; }
.notice { margin-bottom: 20px; padding: 16px; color: var(--muted); border: 1px solid var(--line); border-radius: 12px; background: var(--soft); font-size: 12px; }
.notice strong { color: var(--ink); }
.notice span { display: block; margin-top: 6px; }
.subscription-panel { margin-top: 20px; }
.subscription-panel .form-status { margin: 8px 0 12px; }
.workspace-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.page-controls, .workspace-primary { min-width: 0; width: 100%; }
.page-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.page-controls > .panel { flex-basis: 100%; padding: 20px; }
.page-controls > details { margin: 0; border: 0; }
.page-controls > details[open] { flex-basis: 100%; }
.inline-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; width: 100%; }
.inline-controls > label { flex: 1 1 240px; min-width: 0; margin: 0; }
.inline-controls > .button { min-height: 44px; }
.inline-controls > .form-status { flex-basis: 100%; }
.panel { width: 100%; min-width: 0; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-size: 20px; }
.section-block { padding-top: 12px; }
label { display: block; margin: 15px 0; color: var(--ink); font-size: 13px; font-weight: 600; }
input, textarea, select { display: block; width: 100%; min-width: 0; margin-top: 7px; padding: 11px 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: 14px; font-weight: 500; transition: border-color .2s ease; }
input::placeholder, textarea::placeholder { color: #737373; font-weight: 400; }
input[type="checkbox"] { display: inline-block; width: auto; margin: 0 5px 0 0; vertical-align: middle; accent-color: var(--action); }
textarea { resize: vertical; line-height: 1.6; font-weight: 400; }
#profile-form textarea[name="skills"] { overflow-y: auto; overflow-wrap: anywhere; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); }
.hint { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.6; }
details { margin: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
summary { padding: 14px 0; color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 600; }
.details-content { padding-bottom: 8px; }
select[multiple] { height: 100px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#profile-form > .two-col, #job-preferences .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 0 20px; }
#target-roles-status { display: block; margin-top: 8px; color: var(--danger); }
#target-roles-status:empty { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; border: 1px solid transparent; border-radius: 12px; padding: 10px 14px; font-size: 13px; line-height: 1.5; font-weight: 600; cursor: pointer; text-decoration: none; transition: background-color .2s ease, border-color .2s ease; }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button[aria-busy="true"] { cursor: progress; }
.discovery-progress { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--action); font-size: 13px; font-weight: 600; }
.discovery-attribution { margin: 4px 0; font-size: 12px; }
.discovery-attribution a { text-decoration: underline; text-underline-offset: 2px; }
.discovery-spinner { width: 18px; height: 18px; flex-shrink: 0; border: 2px solid var(--line); border-top-color: currentColor; border-radius: 50%; animation: discovery-spin .8s linear infinite; }
@keyframes discovery-spin { to { transform: rotate(360deg); } }
.button-dark, .button-accent { color: white; background: var(--action); }
.button-dark:hover:not(:disabled), .button-accent:hover:not(:disabled) { background: var(--action-hover); }
.button-light { color: var(--muted); background: var(--white); border-color: var(--line); }
.button-light:hover:not(:disabled) { background: var(--soft); border-color: #d4d4d4; }
.button-danger { color: var(--danger); background: #fff1ef; border-color: #f1cccc; }
.button-danger:hover:not(:disabled) { background: #f8eaea; }
.action-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 28px; overflow-y: auto; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 80px rgba(0, 0, 0, .2); }
.action-dialog::backdrop { background: rgba(17, 24, 39, .48); }
.action-dialog h2 { margin-bottom: 12px; }
.action-dialog-description { margin-bottom: 24px; color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }
.action-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.action-dialog .button:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
.action-dialog .button-danger:focus-visible { outline-color: var(--danger); }
body:has(.action-dialog[open]) { overflow: hidden; }
.control-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
button.text-link { border: 0; background: transparent; font: inherit; cursor: pointer; text-decoration: underline; }
.form-status { min-height: 17px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.form-status.error, .source-status .error { color: var(--danger); }
#navigation-status:empty, .form-status:empty { display: none; }
#navigation-status { margin-bottom: 18px; }
.empty-state { padding: 28px; text-align: center; color: var(--muted); background: var(--white); border: 1px dashed #d4d4d4; border-radius: 12px; font-size: 13px; }
.message-box:not(:empty) { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.message-box.error { border-color: #dcbcbc; background: #fff1ef; }

#auth-panel { display: block; width: min(100%, 480px); margin: 64px auto; padding: 32px; background: var(--white); }
.home-page { display: grid; gap: 20px; padding-top: 28px; }
.home-page:not([hidden]) + #auth-panel { margin-top: 32px; }
.home-hero { padding: 32px; }
.home-hero .intro { max-width: 760px; margin-bottom: 20px; }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.home-trial-badge { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid #dbe6fc; border-radius: 999px; background: #eef3ff; color: var(--action); font-size: 12px; font-weight: 600; }
.home-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.home-card h2, .home-advantages h2, .home-video h2 { margin-bottom: 10px; }
.home-feature-list, .home-steps { margin: 14px 0 0; padding-left: 18px; display: grid; gap: 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.home-feature-list strong, .home-steps strong { color: var(--ink); }
.home-advantage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.home-advantage-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.home-advantage-card h3 { margin-bottom: 6px; }
.home-advantage-card p { margin: 0; }
.home-video { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.home-video-frame { aspect-ratio: 16 / 9; min-height: 220px; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; border: 1px dashed #b9c6db; border-radius: 12px; background: #f8faff; }
.home-video-badge { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #eef3ff; color: var(--action); font-size: 18px; }
.home-video-frame p { margin: 0; }
@media (max-width: 800px) {
  .home-columns, .home-advantage-grid, .home-video { grid-template-columns: minmax(0, 1fr); }
  .home-hero { padding: 24px; }
}
#auth-panel > strong { display: block; font-size: 20px; margin-bottom: 22px; overflow-wrap: anywhere; }
#auth-form { width: 100%; }
#auth-panel .control-buttons { align-items: center; }
#auth-panel.signed-in-account { display: none; }
#auth-panel.signed-in-account:has(#auth-status.error) { display: block; width: 100%; margin: 16px 0 0; padding: 10px 16px; }
#auth-panel.signed-in-account > strong { display: none; }
.signed-in-account #auth-form > .hint, .signed-in-account #auth-status:not(.error) { display: none; }
.cv-upload { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 16px; margin-top: 14px; }
.cv-upload-heading { display: grid; gap: 4px; grid-column: 1 / -1; font-weight: 600; }
.cv-file-picker { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; margin: 0; padding: 20px; border: 1px dashed #b9c6db; border-radius: 12px; background: #f8faff; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.cv-file-picker:hover { border-color: var(--action); background: #eff5ff; }
.cv-file-picker:focus-within { outline: 2px solid var(--action); outline-offset: 3px; }
.cv-file-picker.has-file { border-style: solid; border-color: #b9c6db; }
.cv-file-picker:has(input:disabled) { opacity: .6; cursor: not-allowed; }
#cv-file { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: inherit; }
.cv-upload-icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border: 1px solid #dbe6fc; border-radius: 12px; color: var(--action); background: #eef3ff; }
.cv-file-copy { display: grid; gap: 3px; flex: 1; min-width: 0; }
.cv-file-name { overflow-wrap: anywhere; }
.cv-browse { flex-shrink: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--action); font-size: 12px; }
.cv-upload > .button { min-height: 44px; }
.cv-upload > .form-status { grid-column: 1 / -1; margin: 0; }
@media (max-width: 600px) {
  .cv-upload { grid-template-columns: minmax(0, 1fr); }
  .cv-file-picker { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .cv-file-copy { flex-basis: calc(100% - 56px); }
  .cv-browse { margin-left: 56px; }
  .cv-upload > .button { width: 100%; }
}
.cv-preview { margin: 16px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.cv-preview .text-link { display: block; margin-top: 12px; }
.discovery-profile-summary { margin: 0; }
#cv-preview h2 { font-size: 18px; }
.privacy-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 24px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.privacy-controls h2 { margin: 0 0 5px; font-size: 18px; }
.privacy-controls p { margin: 0; color: var(--muted); font-size: 12px; }

.job-panel { display: block; }
#job-entry { margin: 0; border: 0; }
#job-entry > summary { font-size: 16px; padding-top: 0; }
.analysis-card { margin: 0; padding: 0; }
.score-summary { display: flex; align-items: center; gap: 16px; }
.score-badge { width: 64px; height: 64px; display: grid; place-items: center; flex: 0 0 64px; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); font-size: 21px; font-weight: 700; }
.score-summary h3 { margin: 0 0 5px; font-size: 18px; }
.score-summary p { margin: 0; color: var(--muted); font-size: 13px; }
.workspace-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; border-bottom: 1px solid var(--line); }
.workspace-tabs button { padding: 12px 16px; background: transparent; color: var(--muted); border: 0; cursor: pointer; font-size: 13px; font-weight: 600; }
.workspace-tabs button[aria-selected="true"] { color: var(--ink); box-shadow: 0 2px var(--ink); }
.dimension { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.dimension span:last-of-type { color: var(--ink); font-weight: 600; text-transform: capitalize; }
.dimension small { grid-column: 1/-1; color: var(--muted); line-height: 1.6; }
.caveat { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.draft-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.draft { margin-top: 14px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.draft-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; }
.draft textarea { min-height: 280px; }
.draft details { margin: .75rem 0; }
.historical-document { background: var(--paper); border-radius: 12px; padding: 0 14px; }
.document-reference { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 22rem; overflow: auto; font: inherit; }
.document-state { font-weight: 600; }

.application-list, .discovery-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.discovery-list { margin-top: 20px; }
.application-card, .discovery-card { display: grid; min-width: 0; align-items: start; gap: 12px; padding: 16px; border-radius: 12px; background: var(--white); overflow-wrap: anywhere; transition: background-color .2s ease, box-shadow .2s ease; }
.application-card { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.application-main { grid-column: 1 / -1; min-width: 0; }
.application-card h2, .discovery-card h3 { margin: 0; font-size: 15px; line-height: 1.375; font-weight: 600; }
.job-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.job-company { margin: 2px 0 0; color: #47494c; font-size: 13px; font-weight: 400; }
.application-main > .job-company { margin-bottom: 6px; }
.job-history { margin: 8px 0 0; border: 0; }
.job-history > summary { padding: 0; font-size: 11px; }
.application-card .event-list { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.tracker-column { display: grid; gap: 6px; font-size: 12px; }
.tracker-label { color: var(--muted); font-size: 10px; }
.state-tag, .discovery-tags span, .location-badge { display: inline-block; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--soft); font-size: 10px; font-weight: 700; line-height: 1.5; }
.discovery-tags span, .location-badge { text-transform: uppercase; letter-spacing: .025em; }
.location-badge { margin-top: 6px; max-width: 100%; }
.application-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; grid-column: 1 / -1; }
.application-actions select { width: auto; max-width: 100%; min-width: 105px; margin: 0; padding: 8px; font-size: 12px; }
.application-actions .job-launch { flex: 1 0 100%; }
.tracker-action-status { grid-column: 1 / -1; }
.tracker-danger { margin-top: 48px; padding: 24px 0 0; border-top: 1px solid var(--line); }
.tracker-danger .muted { margin-bottom: 12px; }
.tracker-toolbar { gap: 16px; }
.tracker-filter > label { margin: 0; }
.tracker-toolbar select { min-width: 180px; }
.tracker-toolbar > .form-status { margin: 0; }
.tracker-toolbar .text-link { line-height: 1.6; }
.job-launch { display: grid; gap: 8px; min-width: 0; }
.button-open-job { min-height: 48px; padding: 12px 16px; color: white; background: var(--action); font-size: 13px; font-weight: 700; }
.button-open-job:hover { background: var(--action-hover); }
.job-launch .hint { margin: 0; font-size: 11px; }
.job-launch-help { margin: 0; border: 0; }
.job-launch-help summary { padding: 0; font-size: 10px; font-weight: 400; }

.discovery-card { grid-template-columns: 48px minmax(0, 1fr); }
.company-logo { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--soft); color: var(--muted); font-size: 17px; font-weight: 700; overflow: hidden; }
.company-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.discovery-tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.discovery-meta { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; font-size: 11px; color: var(--muted); }
.discovery-meta p { margin: 0; }
.discovery-salary { font-size: 11px; font-weight: 500; }
.discovery-posted { font-size: 9px; font-weight: 500; }
.discovery-category { font-size: 10px; font-weight: 700; text-transform: uppercase; }
.discovery-match { color: var(--muted); font-size: 11px; }
.discovery-eligibility { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.relevance-badge { display: inline-block; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.relevance-strong { color: var(--success); background: #f0fdf4; border-color: #bbf7d0; }
.relevance-promising { color: var(--action-hover); background: #eff6ff; border-color: #bfdbfe; }
.relevance-low { color: #854d0e; background: #fefce8; border-color: #fef08a; }
.relevance-none { color: var(--muted); border-style: dashed; }
.relevance-unrated { color: var(--muted); background: var(--white); }
.discovery-warnings { grid-column: 1 / -1; color: var(--danger); font-size: 11px; }
.discovery-warnings ul { margin: 4px 0 0; padding-left: 16px; }
.discovery-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; }
.discovery-actions { grid-column: 1 / -1; display: grid; gap: 8px; min-width: 0; }
.discovery-main { min-width: 0; }
.discovery-details { grid-column: 1 / -1; margin: 0; border: 0; }
.discovery-details > summary { padding: 0; font-size: 11px; }
.discovery-details[open] > summary { margin-bottom: 14px; }
.discovery-details h4 { margin: 14px 0 6px; font-size: 13px; }
.discovery-details p, .discovery-details li { font-size: 12px; line-height: 1.6; }
.discovery-details ul { padding-left: 20px; }
.discovery-toolbar { display: grid; gap: 16px; padding: 20px 24px; }
.discovery-preferences { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: end; gap: 16px; min-width: 0; margin: 0; }
.discovery-preferences:has(.discovery-scope[hidden]) { grid-template-columns: minmax(0, 1fr) auto auto; }
.discovery-preferences > label { min-width: 0; margin: 0; }
.discovery-toolbar select, .discovery-preferences > .button { height: 44px; }
.discovery-preferences > .button { white-space: nowrap; }
.discovery-preferences > label, .discovery-field-label, .discovery-scope legend { font-size: 12px; font-weight: 600; }
.discovery-scope { min-width: 0; margin: 0; padding: 0; border: 0; }
.discovery-scope legend { padding: 0; margin-bottom: 7px; }
.discovery-scope-options { display: flex; height: 44px; padding: 4px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f1f5f9; }
.discovery-scope label { position: relative; flex: 1; min-width: 0; margin: 0; cursor: pointer; }
.discovery-scope input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; margin: 0; opacity: 0; cursor: pointer; }
.discovery-scope label > span { display: flex; align-items: center; justify-content: center; height: 100%; padding: 0 16px; border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 600; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.discovery-scope input:checked + span { color: var(--action-hover); background: var(--white); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.discovery-scope input:hover:not(:checked) + span { color: var(--ink); background: #e8edf4; }
.discovery-scope input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 2px; }
.local-discovery-target { min-width: 0; }
.discovery-field-label { display: block; margin-bottom: 7px; }
.local-country-value { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 44px; padding: 0 12px; border: 1px solid #dbe5f6; border-radius: 12px; color: var(--ink); background: #f8faff; text-decoration: none; }
#local-discovery-country { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.local-country-edit { flex-shrink: 0; color: var(--action); font-size: 11px; font-weight: 600; }
.local-country-value:hover { border-color: var(--action); }
.discovery-footer { display: flex; flex-wrap: wrap; align-items: start; gap: 4px 24px; min-width: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.discovery-region-help { flex: 1 1 320px; min-width: 0; padding-top: 5px; }
.discovery-region-help > p { margin: 0; }
.discovery-region-help details { margin: 8px 0; }
.discovery-region-help details summary { font-size: 12px; }
.discovery-region-help:has(details[open]) { flex-basis: 100%; }
.discovery-footer > details { min-width: 0; margin: 0; border: 0; }
.discovery-footer > details > summary { min-height: 32px; padding: 5px 0; color: var(--muted); line-height: 22px; }
.discovery-footer > details > summary:hover { color: var(--ink); }
.discovery-footer > details[open] { flex-basis: 100%; order: 1; padding: 4px 16px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.discovery-footer > details[open] > summary { color: var(--ink); }
.discovery-toolbar > .form-status { margin: 0; }
@media (max-width: 900px) {
  .discovery-preferences { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 12px; }
  .discovery-preferences:has(.discovery-scope[hidden]) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .discovery-preferences:has(.discovery-scope[hidden]) > #international-location { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .discovery-toolbar { padding: 16px; }
  .discovery-scope, #international-location, .local-discovery-target { grid-column: 1 / -1; }
  .discovery-preferences > .button { align-self: stretch; height: auto; min-height: 44px; padding: 8px; font-size: 12px; white-space: normal; }
  .discovery-footer { gap: 4px 16px; padding-top: 12px; }
  .discovery-region-help { flex-basis: 100%; padding: 0 0 4px; }
}
.explore-panel { margin: 0; }
.explore-panel > summary { padding: 0; }
.explore-panel[open] > summary { padding-bottom: 16px; }
.source-status { padding: 0 4px; }
.source-status p { margin: 14px 0 0; }
.recommendation-list { display: grid; gap: 16px; }
.recommendation-card { padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.recommendation-card:last-child { padding-bottom: 0; border-bottom: 0; }
.recommendation-card h3 { margin: 0 0 6px; }
.recommendation-card p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.recommendation-card a { display: inline-block; color: var(--ink); font-size: 12px; font-weight: 600; }
.admin-table { overflow-x: auto; margin-block: 16px; }
.admin-table table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table th, .admin-table td { padding: 10px; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
footer { display: flex; justify-content: space-between; gap: 16px; width: 100%; max-width: 1280px; margin: 44px auto 0; padding: 24px; color: var(--muted); font-size: 11px; }
footer > span:first-child { color: var(--ink); font-size: 15px; }
[tabindex="-1"]:focus { outline: none; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (hover: hover) {
  .application-card:hover, .discovery-card:hover { background: var(--paper); box-shadow: var(--row-shadow); }
}
@media (min-width: 768px) {
  main, footer { padding-right: 40px; padding-left: 40px; }
  .topbar { padding-right: max(40px, calc((100% - 1200px) / 2)); padding-left: max(40px, calc((100% - 1200px) / 2)); }
  .application-list, .discovery-list { gap: 10px; }
}
@media (min-width: 1024px) {
  .application-card, .discovery-card { padding: 20px 24px; gap: 12px 20px; }
  .discovery-card { grid-template-columns: 56px minmax(180px, 300px) minmax(0, 1fr) 160px 160px; }
  .company-logo { width: 56px; height: 56px; }
  .discovery-tags { grid-column: 3; grid-row: 1; align-self: center; }
  .discovery-meta { grid-column: 4; grid-row: 1; display: grid; gap: 8px; }
  .discovery-salary { font-size: 12px; font-weight: 600; }
  .discovery-posted { font-size: 10px; }
  .discovery-actions { grid-column: 5; grid-row: 1; }
  .discovery-details { grid-column: 2 / -1; }
  .discovery-warnings { grid-column: 2 / -1; }
  .application-card { grid-template-columns: minmax(0, 1fr) 48px 76px 100px 180px; }
  .application-main { grid-column: auto; }
  .application-actions { grid-column: auto; align-items: stretch; }
  .application-actions .job-launch { flex: 1 0 100%; }
  .application-actions > .button { width: 100%; }
}
@media (max-width: 1023px) {
  .topbar { flex-wrap: wrap; justify-content: start; }
  .topbar nav { order: 3; width: 100%; justify-content: space-between; }
  .hero > .muted { display: none; }
  .plan-pill { margin-left: auto; }
  .header-account { margin-left: auto; }
  .privacy-controls { align-items: start; flex-direction: column; }
}
@media (max-width: 540px) {
  .topbar nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  nav a { font-size: 12px; }
  .plan-pill { display: none; }
  .section-heading { align-items: start; flex-wrap: wrap; }
  .panel { padding: 16px; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
  #job-preferences .two-col { grid-template-columns: 1fr; }
  .inline-controls > label, .inline-controls > .button { flex-basis: 100%; }
  .workspace-tabs button { padding: 12px; }
  #auth-panel { padding: 20px; margin: 28px auto; }
  #auth-panel.signed-in-account { flex-wrap: wrap; }
  .draft { padding: 12px; }
  .dimension { grid-template-columns: minmax(0, 1fr); }
  .control-buttons { width: 100%; }
  .privacy-controls { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
