:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --bg-deep: #edf2f8;
  --surface: #ffffff;
  --surface-2: #f8faff;
  --surface-3: #eef3fb;
  --surface-glass: rgba(255, 255, 255, .94);
  --surface-hover: #f4f7fb;
  --surface-selected: #eaf2ff;
  --sidebar: #ffffff;
  --control: #ffffff;
  --calendar-canvas: #f4f7fb;
  --calendar-grid: #e5eaf1;
  --line: #e4e9f1;
  --line-strong: #d5dde9;
  --muted: #718096;
  --muted-bright: #526174;
  --text: #172033;
  --title: #101828;
  --accent: #2878f0;
  --accent-bright: #1768e5;
  --accent-ink: #ffffff;
  --accent-soft: rgba(40, 120, 240, .09);
  --blue: #2878f0;
  --red: #d64d5f;
  --orange: #d99528;
  --green: #20a66a;
  --shadow-sm: 0 2px 8px rgba(31, 52, 83, .055);
  --shadow-lg: 0 24px 70px rgba(31, 52, 83, .16);
  --shadow-popover: 0 18px 48px rgba(31, 52, 83, .2), 0 3px 12px rgba(31, 52, 83, .1);
  --radius: 12px;
  --radius-sm: 8px;
  --control-height: 42px;
  --control-ring: 0 0 0 3px rgba(40, 120, 240, .13);
  font-family: Inter, "Segoe UI Variable", "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1118;
  --bg-deep: #070b10;
  --surface: #111923;
  --surface-2: #151f2a;
  --surface-3: #1a2632;
  --surface-glass: rgba(17, 25, 35, .94);
  --surface-hover: #182330;
  --surface-selected: #172b49;
  --sidebar: #0d141d;
  --control: #111923;
  --calendar-canvas: #0c131b;
  --calendar-grid: #263241;
  --line: #202b38;
  --line-strong: #344253;
  --muted: #8c9caf;
  --muted-bright: #b3bfcc;
  --text: #e7edf5;
  --title: #f7f9fc;
  --accent: #5b96ff;
  --accent-bright: #77aaff;
  --accent-ink: #ffffff;
  --accent-soft: rgba(91, 150, 255, .14);
  --blue: #78b7ff;
  --red: #ff7f8c;
  --orange: #f5b95e;
  --green: #49cc8b;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .2);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, .48);
  --shadow-popover: 0 20px 54px rgba(0, 0, 0, .58), 0 3px 14px rgba(0, 0, 0, .4);
  --control-ring: 0 0 0 3px rgba(91, 150, 255, .2);
}

* { box-sizing: border-box; }
html { background: var(--bg-deep); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body::before { content: none; }
.app-shell, .auth-shell { position: relative; z-index: 1; }
::selection { background: rgba(40, 120, 240, .2); color: #102752; }
* { scrollbar-width: thin; scrollbar-color: #c6d0de transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: #c6d0de; background-clip: padding-box; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.button, .nav-item, input, textarea, select, .panel, .metric, .list-row { transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hidden { display: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 760; letter-spacing: -.045em; line-height: 1.08; }
h2 { letter-spacing: -.025em; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { position: sticky; z-index: 30; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 15px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(14, 19, 24, .98), rgba(8, 12, 16, .98)); box-shadow: 12px 0 42px rgba(0, 0, 0, .12); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 9px 30px; font-weight: 800; font-size: 20px; letter-spacing: -.025em; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(223, 255, 159, .55); border-radius: 11px; background: linear-gradient(145deg, var(--accent-bright), #a9df45); color: var(--accent-ink); font-size: 12px; font-weight: 950; box-shadow: 0 8px 28px rgba(165, 221, 68, .18), inset 0 1px rgba(255, 255, 255, .38); }
.brand-mark.large { width: 52px; height: 52px; margin-bottom: 25px; border-radius: 13px; font-size: 17px; }
nav { display: grid; gap: 7px; overflow-y: auto; }
.nav-item { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: #99a6b0; text-align: left; cursor: pointer; font-size: 13px; font-weight: 640; }
.nav-item[hidden] { display: none !important; }
.nav-item:hover { border-color: rgba(255, 255, 255, .06); background: rgba(255, 255, 255, .035); color: var(--text); transform: translateX(2px); }
.nav-item.active { border-color: rgba(199, 243, 107, .15); background: linear-gradient(90deg, rgba(199, 243, 107, .13), rgba(199, 243, 107, .045)); color: var(--accent-bright); box-shadow: inset 3px 0 var(--accent); }
.nav-item span:first-child { width: 18px; text-align: center; font-size: 17px; }
.sidebar-footer { margin-top: auto; display: grid; gap: 9px; }
.system-dot { display: flex; align-items: center; gap: 9px; margin-bottom: 3px; padding: 11px 12px; border: 1px solid rgba(255, 255, 255, .04); border-radius: 11px; background: rgba(255, 255, 255, .018); color: var(--muted); font-size: 11px; }
.system-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px currentColor; }
.system-dot.ok i { background: var(--green); }

.main { min-width: 0; padding: 30px clamp(24px, 3.5vw, 58px) 64px; }
.topbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 36px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.topbar::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 78px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.topbar > div:first-child { flex: 0 0 auto; min-width: 250px; }
.topbar h1 { white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.workspace-picker { display: flex; align-items: center; gap: 8px; font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .11em; }
.workspace-picker span { color: var(--muted); }
.workspace-picker select { width: 178px; padding: 9px 32px 9px 11px; font-size: 12px; text-transform: none; letter-spacing: 0; }
.avatar { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(199, 243, 107, .28); border-radius: 12px; background: var(--accent-soft); color: var(--accent-bright); font-weight: 820; box-shadow: inset 0 1px rgba(255, 255, 255, .05); }
.button { min-height: 39px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; background: linear-gradient(180deg, var(--surface-3), var(--surface-2)); cursor: pointer; color: #d9e0e5; font-weight: 700; box-shadow: 0 1px rgba(255, 255, 255, .035); }
.button:hover { border-color: var(--line-strong); background: #1b232c; color: white; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.button:active { transform: translateY(0); box-shadow: none; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button.primary { border-color: rgba(218, 255, 142, .65); background: linear-gradient(145deg, var(--accent-bright), #b4e550); color: var(--accent-ink); box-shadow: 0 8px 24px rgba(174, 226, 75, .13), inset 0 1px rgba(255, 255, 255, .42); }
.button.primary:hover { border-color: var(--accent-bright); background: linear-gradient(145deg, #e1ff9d, #bcef58); color: #0b1102; box-shadow: 0 10px 30px rgba(174, 226, 75, .22); }
.button.quiet { background: rgba(255, 255, 255, .018); color: #b8c2ca; box-shadow: none; }
.button.danger { border-color: color-mix(in srgb, var(--red) 48%, var(--line)); background: color-mix(in srgb, var(--red) 11%, var(--surface)); color: var(--red); box-shadow: none; }
.button.danger:hover { border-color: color-mix(in srgb, var(--red) 72%, var(--line)); background: color-mix(in srgb, var(--red) 17%, var(--surface)); color: var(--red); }
.button.small { min-height: 31px; padding: 6px 10px; border-radius: 8px; font-size: 11px; }
.icon-button { width: 35px; height: 35px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 25px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 14px; margin-bottom: 28px; }
.metric { position: relative; min-height: 145px; overflow: hidden; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(22, 29, 37, .92), rgba(12, 17, 22, .96)); box-shadow: var(--shadow-sm), inset 0 1px rgba(255, 255, 255, .025); }
.metric::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 1px; background: linear-gradient(90deg, rgba(199, 243, 107, .62), rgba(119, 189, 247, .18), transparent 76%); }
.metric::after { content: ""; position: absolute; right: -38px; bottom: -54px; width: 125px; height: 125px; border-radius: 50%; background: radial-gradient(circle, rgba(199, 243, 107, .08), transparent 68%); pointer-events: none; }
.metric:hover { border-color: rgba(199, 243, 107, .19); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0, 0, 0, .24); }
.metric-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metric-heading p { margin: 0; color: var(--muted-bright); font-size: 10px; font-weight: 760; text-transform: uppercase; letter-spacing: .11em; }
.metric-heading span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px rgba(199, 243, 107, .5); }
.metric > strong { position: relative; z-index: 1; display: block; margin-top: 27px; font-size: 36px; font-weight: 730; letter-spacing: -.055em; line-height: 1; }
.metric small { color: var(--muted); }
.metric.alert strong { color: var(--red); }
.metric.alert .metric-heading span { background: var(--red); box-shadow: 0 0 14px rgba(255, 119, 113, .45); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .8fr); gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(17, 23, 30, .96), rgba(13, 18, 23, .97)); overflow: hidden; box-shadow: var(--shadow-sm), inset 0 1px rgba(255, 255, 255, .022); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 17px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .018), transparent); }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 16px; font-weight: 710; }
.panel-head .muted { margin: 5px 0 0; font-size: 11px; }
.panel-kicker { margin: 0 0 5px; color: var(--accent); font-size: 9px; font-weight: 780; letter-spacing: .14em; text-transform: uppercase; }
.panel-body { padding: 10px 20px 20px; }
.panel-intro { margin: 8px 0 5px; padding: 12px 14px; border: 1px solid rgba(119, 189, 247, .1); border-radius: 10px; background: rgba(119, 189, 247, .035); color: var(--muted-bright); font-size: 12px; line-height: 1.55; }
.spaced-panel { margin-top: 18px; }
.list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 0 -8px; padding: 15px 8px; border-bottom: 1px solid rgba(154, 169, 184, .105); border-radius: 8px; }
.list-row:hover { background: rgba(255, 255, 255, .018); }
.list-row:last-child { border-bottom: 0; }
.list-row h3 { margin: 0 0 4px; color: #e9eef1; font-size: 13px; font-weight: 690; }
.list-row p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.48; }
.date-box { min-width: 56px; text-align: right; }
.date-box strong { display: block; font-size: 13px; }
.date-box small { color: var(--muted); }
.empty { padding: 38px 12px; text-align: center; color: var(--muted); }

.pipeline { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.pipeline-column { min-height: 420px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #0d1012; }
.pipeline-title { display: flex; justify-content: space-between; padding: 7px 5px 13px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.application-card { margin-bottom: 9px; padding: 14px; border: 1px solid #293037; border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.application-card:hover { border-color: #4c575f; transform: translateY(-1px); }
.application-card.dragging { opacity: .45; }
.pipeline-column.drop-target { border-color: var(--accent); background: #141a10; }
.application-card h3 { margin: 0 0 5px; font-size: 14px; }
.card-heading { display: flex; justify-content: space-between; gap: 8px; }
.match-score { color: var(--accent); font-size: 12px; }
.application-card p { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.card-meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.profile-chip, .status-chip { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid rgba(255, 255, 255, .05); border-radius: 999px; background: rgba(255, 255, 255, .055); color: #acb7bf; font-size: 9px; font-weight: 740; letter-spacing: .045em; }
.status-chip.ready { border-color: rgba(199, 243, 107, .14); background: var(--accent-soft); color: var(--accent-bright); }
.status-chip.failed { border-color: rgba(255, 119, 113, .17); background: rgba(255, 119, 113, .11); color: #ffaaa5; }

.data-toolbar { display: flex; gap: 10px; margin-bottom: 16px; }
.data-toolbar input, .data-toolbar select { min-width: 200px; }
.context-note { display: inline-flex; align-items: center; padding: 0 8px; color: var(--muted); font-size: 12px; }
.context-note strong { margin-left: 4px; color: var(--text); }
.job-control-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 0; margin-bottom: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(20, 27, 34, .96), rgba(13, 18, 24, .96)); box-shadow: var(--shadow-sm), inset 0 1px rgba(255, 255, 255, .025); }
.job-control-section { padding: 16px 18px 18px; }
.job-control-section.range-section { border-left: 1px solid var(--line); background: rgba(199, 243, 107, .025); }
.control-kicker { margin: 0 0 11px; color: var(--muted); font-size: 9px; font-weight: 790; letter-spacing: .15em; text-transform: uppercase; }
.job-filter-controls, .job-range-controls { display: flex; align-items: end; gap: 10px; }
.job-filter-controls { flex: 1; }
.job-filter-controls label:first-child { flex: 1; min-width: 190px; }
.job-filter-controls label:not(:first-child) { flex: 0 1 140px; min-width: 120px; }
.job-filter-controls input, .job-filter-controls select { min-width: 0; }
.job-range-controls { padding: 0; border: 0; }
.job-range-controls input { width: 88px; min-width: 88px; font-variant-numeric: tabular-nums; }
.job-range-controls .button { white-space: nowrap; }
.job-toolbar { align-items: center; justify-content: space-between; }
.job-toolbar-controls { display: flex; align-items: center; gap: 10px; flex: 1; }
.job-toolbar p { margin: 0; color: var(--muted); font-size: 11px; text-align: right; }
.resume-bulk-actions { min-height: 39px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 5px 4px 12px; border: 1px solid color-mix(in srgb, var(--red) 24%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--red) 5%, var(--surface)); }
.resume-bulk-actions[hidden] { display: none; }
.resume-bulk-actions > span { color: var(--muted-bright); font-size: 11px; white-space: nowrap; }
.resume-bulk-actions > span strong { color: var(--text); font-size: 12px; }
.table-scroll { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px; border-bottom: 1px solid var(--line); color: #91a0ab; font-size: 9px; font-weight: 790; text-align: left; text-transform: uppercase; letter-spacing: .105em; }
.data-table td { padding: 14px 12px; border-bottom: 1px solid rgba(154, 169, 184, .105); color: #d8dfe4; font-size: 12px; vertical-align: top; }
.data-table tbody tr { transition: background-color .16s ease, box-shadow .16s ease; }
.data-table tbody tr:not(.job-editor-row):not(.job-add-control):hover { background: rgba(255, 255, 255, .022); box-shadow: inset 3px 0 rgba(199, 243, 107, .4); }
.data-table tr[data-id] { cursor: pointer; }
.data-table tr[data-id]:hover { background: rgba(255, 255, 255, .025); }
.company-cell strong { display: block; margin-bottom: 3px; }
.company-cell span { color: var(--muted); font-size: 12px; }
.job-inbox-panel { overflow: visible; border-radius: var(--radius); }
.job-entry-table { width: 100%; min-width: 0; table-layout: fixed; }
.job-entry-table th:nth-child(1) { width: 6.5%; }
.job-entry-table th:nth-child(2) { width: 8.5%; }
.job-entry-table th:nth-child(3) { width: 8.5%; }
.job-entry-table th:nth-child(4) { width: 9%; }
.job-entry-table th:nth-child(5) { width: 10.5%; }
.job-entry-table th:nth-child(6) { width: 17%; }
.job-entry-table th:nth-child(7) { width: 10.5%; }
.job-entry-table th:nth-child(8) { width: 10%; }
.job-entry-table th:nth-child(9) { width: 8%; }
.job-entry-table th:nth-child(10) { width: 11.5%; }
.job-entry-table th { position: sticky; z-index: 2; top: 0; background: #121820; }
.job-entry-table th:last-child, .job-entry-table td:last-child { position: sticky; right: 0; background: #121820; box-shadow: -1px 0 var(--line); }
.job-entry-table th:last-child { z-index: 4; }
.job-entry-table td:last-child { background: #10161c; }
.job-entry-table tr:hover td:last-child { background: #151c22; }
.job-entry-table .job-editor-row td:last-child { background: #182016; }
.job-entry-table td { vertical-align: middle; overflow-wrap: anywhere; }
.job-entry-table th, .job-entry-table td { padding-right: 10px; padding-left: 10px; }
.job-entry-table input, .job-entry-table textarea, .job-entry-table select { min-width: 0; padding: 8px 9px; font-size: 12px; }
.job-entry-table textarea { height: 38px; min-height: 38px; resize: vertical; }
.job-date { color: #c2ccd3; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.job-number { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.job-date.live { color: var(--accent); }
.job-number-with-source { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; }
.job-number-line { min-height: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.resume-row-checkbox, .resume-select-all input { width: 15px; min-width: 15px; height: 15px; min-height: 15px; margin: 0; padding: 0; border-radius: 4px; accent-color: var(--accent); box-shadow: none; cursor: pointer; }
.resume-selection-spacer { width: 15px; height: 15px; }
.resume-select-all { display: inline-flex; align-items: center; gap: 7px; color: inherit; cursor: pointer; }
.resume-select-all input:disabled { cursor: not-allowed; }
.job-url { color: var(--blue); font-size: 11px; font-weight: 740; text-decoration: none; white-space: nowrap; }
.job-url:hover { text-decoration: underline; }
.job-source-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 78px;
  min-height: 27px;
  padding: 3px 7px 3px 4px;
  border: 1px solid rgba(227, 180, 82, .72);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(120, 77, 20, .34), rgba(35, 24, 11, .92));
  color: #f3d58a;
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 1px rgba(255, 236, 184, .18), 0 0 12px rgba(206, 151, 47, .12);
}
.gpt-laurel { width: 21px; height: 21px; flex: 0 0 auto; overflow: visible; }
.gpt-laurel circle { fill: rgba(212, 157, 55, .12); stroke: #e8bd65; stroke-width: 1.35; }
.gpt-laurel path { fill: none; stroke: #efc86f; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gpt-laurel .laurel-leaves { stroke-width: 2.35; }
.cell-meta, .cell-warning { display: block; margin-top: 5px; font-size: 10px; font-weight: 500; }
.cell-meta, .cell-placeholder { color: var(--muted); }
.cell-warning { color: var(--orange); }
.table-link { display: grid; gap: 4px; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.table-link:hover strong, .table-link:hover small { color: var(--accent); }
.table-link span { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.table-link small { color: var(--blue); }
.resume-content-preview span { color: #d4dce1; font-size: 10px; line-height: 1.42; }
.resume-content-preview small { margin-top: 4px; }
.job-editor-row { background: rgba(199, 243, 107, .045); }
.job-editor-row td { vertical-align: top; box-shadow: inset 0 1px rgba(199, 243, 107, .21), inset 0 -1px rgba(199, 243, 107, .21); }
.job-entry-actions { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.job-entry-actions .button { width: auto; min-width: 0; padding: 6px 9px; white-space: nowrap; }
.resume-preview-actions { display: flex; align-items: center; gap: 5px; }
.row-action-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--control);
  color: var(--muted-bright);
  cursor: pointer;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--bg-deep) 18%, transparent);
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.row-action-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.row-action-button:hover {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  background: var(--accent-soft);
  color: var(--accent-bright);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 12%, transparent);
  transform: translateY(-1px);
}
.row-action-button:active { box-shadow: none; transform: translateY(0); }
.row-action-button.danger { color: color-mix(in srgb, var(--red) 82%, var(--muted-bright)); }
.row-action-button.danger:hover {
  border-color: color-mix(in srgb, var(--red) 55%, var(--line));
  background: color-mix(in srgb, var(--red) 10%, var(--surface));
  color: var(--red);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--red) 12%, transparent);
}
.resume-lock-note { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; cursor: help; }
.resume-lock-note::before { content: "●"; color: var(--green); font-size: 7px; }
.job-add-control td { padding: 0; border-bottom: 0; }
.job-add-button { width: 100%; min-height: 66px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-top: 1px dashed rgba(154, 169, 184, .24); background: rgba(4, 7, 10, .28); color: #c2ccd3; cursor: pointer; transition: background-color .18s ease, color .18s ease; }
.job-add-button:hover { background: var(--accent-soft); color: var(--accent-bright); }
.job-add-button span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 9px; font-size: 18px; line-height: 1; }
.job-add-button strong { font-size: 13px; }
.job-add-button small { color: var(--muted); font-size: 11px; font-weight: 500; }
.document-preview { max-height: min(68vh, 820px); margin: 20px 0 0; padding: 24px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: #0b0e10; color: #e1e6e9; font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }
.pdf-preview { width: 100%; height: min(72vh, 900px); margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; background: white; }

.profile-metric-grid { grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }
.profile-summary-card { min-height: 188px; }
.profile-summary-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-monogram, .mini-monogram { display: grid; place-items: center; border: 1px solid rgba(199, 243, 107, .22); background: var(--accent-soft); color: var(--accent-bright); font-weight: 800; }
.profile-monogram { width: 42px; height: 42px; border-radius: 12px; font-size: 15px; box-shadow: inset 0 1px rgba(255, 255, 255, .06); }
.profile-summary-card h3 { margin: 20px 0 10px; font-size: 18px; font-weight: 720; letter-spacing: -.025em; }
.profile-field-count { display: flex; align-items: baseline; gap: 7px; }
.profile-field-count strong { font-size: 25px; line-height: 1; }
.profile-field-count span { color: var(--muted); font-size: 11px; }
.profile-summary-card > small { display: block; margin-top: 9px; }
.list-row-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.mini-monogram { flex: 0 0 auto; width: 31px; height: 31px; border-radius: 9px; font-size: 11px; }
.profile-list-row { min-height: 66px; }
.profile-list-row[data-profile-color] { border-left: 3px solid rgb(var(--profile-calendar-rgb)); background: linear-gradient(90deg, rgba(var(--profile-calendar-rgb), .075), transparent 115px), var(--surface); }
.profile-list-row[data-profile-color] .mini-monogram,
.template-profile-context[data-profile-color] .mini-monogram { border-color: rgba(var(--profile-calendar-rgb), .42); background: rgba(var(--profile-calendar-rgb), .13); color: var(--profile-accent-color); }
.profile-list-side { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 15px; }
.profile-list-values { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 0; }
.profile-list-values > span { min-width: 78px; display: grid; gap: 3px; padding: 0 14px; border-right: 1px solid rgba(154, 169, 184, .13); text-align: right; }
.profile-list-values > span:first-child { min-width: 125px; }
.profile-list-values > span:last-child { max-width: 180px; border-right: 0; }
.profile-list-values strong, .profile-list-values small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-list-values strong { color: #dce4e9; font-size: 11px; font-weight: 680; }
.profile-list-values small { color: var(--muted); font-size: 9px; }
.profile-list-side > .button { flex: 0 0 auto; }
.extension-access-panel { border-color: rgba(199, 243, 107, .18); background: linear-gradient(145deg, rgba(19, 27, 24, .97), rgba(12, 18, 23, .98)); }
.extension-access-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 14px; }
.extension-access-value { min-width: 0; display: grid; gap: 6px; }
.extension-access-value small { color: var(--muted); font-size: 9px; font-weight: 740; letter-spacing: .08em; text-transform: uppercase; }
.extension-access-value code { color: #dce7d2; font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.extension-access-copy { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.extension-access-note { margin: 0; padding: 11px 20px 14px; border-top: 1px solid rgba(154, 169, 184, .10); color: var(--muted); font-size: 10px; line-height: 1.55; }
.extension-access-note strong { color: #dce4e9; }
.template-library-panel { overflow: hidden; }
.template-library-head { align-items: center; gap: 24px; }
.template-profile-context { min-width: 250px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.template-profile-context[data-profile-color] { border-color: rgba(var(--profile-calendar-rgb), .34); box-shadow: inset 3px 0 rgb(var(--profile-calendar-rgb)); }
.template-profile-context > span:last-child { min-width: 0; display: grid; gap: 2px; }
.template-profile-context small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.template-profile-context strong { overflow: hidden; color: var(--title); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.template-profile-context em { overflow: hidden; color: var(--muted-bright); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.template-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; padding: 19px 20px 22px; }
.template-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); box-shadow: var(--shadow-sm); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.template-card:hover, .template-card:focus-within { border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); box-shadow: 0 14px 32px color-mix(in srgb, var(--title) 13%, transparent); transform: translateY(-2px); outline: none; }
.template-card.selected { border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent), var(--shadow-sm); }
.template-preview-stage[aria-busy="true"] { cursor: progress; }
.template-preview-stage { position: relative; aspect-ratio: 612 / 864; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 8%, var(--surface-3)), var(--surface-3)); cursor: pointer; }
.template-preview-frame { width: 100%; height: 100%; border: 0; opacity: 0; pointer-events: none; background: white; transition: opacity .2s ease; }
.template-card.is-ready .template-preview-frame { opacity: 1; }
.template-preview-status { position: absolute; z-index: 1; inset: 0; display: grid; place-content: center; justify-items: center; gap: 11px; color: var(--muted); transition: opacity .18s ease; }
.template-preview-status span { width: 27px; height: 27px; border: 3px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.template-preview-status small { font-size: 10px; font-weight: 680; letter-spacing: .02em; }
.template-card.is-ready .template-preview-status { opacity: 0; pointer-events: none; }
.template-card.is-error .template-preview-status span { display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--red) 45%, var(--line)); background: color-mix(in srgb, var(--red) 9%, var(--surface)); animation: none; }
.template-card.is-error .template-preview-status span::before { content: "!"; color: var(--red); font-size: 14px; font-weight: 850; }
.template-preview-action { position: absolute; z-index: 2; right: 12px; bottom: 12px; left: 12px; min-height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .3); border-radius: 9px; background: rgba(12, 20, 31, .84); color: #fff; font-size: 11px; font-weight: 750; opacity: 0; transform: translateY(4px); backdrop-filter: blur(8px); transition: opacity .18s ease, transform .18s ease; }
.template-card:hover .template-preview-action, .template-preview-stage:focus-visible .template-preview-action { opacity: 1; transform: translateY(0); }
.template-card-copy { min-height: 151px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 14px; }
.template-card-copy h3 { margin: 0 0 5px; color: var(--title); font-size: 14px; font-weight: 750; letter-spacing: -.015em; }
.template-card-copy p { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.template-card-copy .status-chip { margin-top: 1px; font-size: 8px; }
.template-use-button { grid-column: 1 / -1; width: 100%; align-self: end; justify-content: center; }
.extension-download-panel { overflow: hidden; }
.extension-download-head { align-items: center; gap: 22px; }
.extension-download-head > div { max-width: 780px; }
.extension-freshness-note { display: flex; align-items: center; gap: 9px; margin: 17px 19px 0; padding: 11px 13px; border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)); border-radius: 10px; background: var(--accent-soft); color: var(--muted-bright); font-size: 11px; line-height: 1.5; }
.extension-freshness-note strong { flex: 0 0 auto; color: var(--accent-bright); }
.extension-download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 17px; }
.extension-download-card { min-width: 0; display: grid; grid-template-rows: auto 1fr auto auto; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); box-shadow: var(--shadow-sm); }
.extension-download-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.extension-package-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line)); border-radius: 11px; background: var(--accent-soft); color: var(--accent-bright); font-size: 12px; font-weight: 850; letter-spacing: -.02em; }
.extension-download-card h3 { margin: 0 0 7px; color: var(--title); font-size: 17px; letter-spacing: -.02em; }
.extension-download-card p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.extension-package-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.extension-package-meta > div { min-width: 0; padding: 0 10px; border-right: 1px solid var(--line); }
.extension-package-meta > div:first-child { padding-left: 0; }
.extension-package-meta > div:last-child { padding-right: 0; border-right: 0; }
.extension-package-meta dt { color: var(--muted); font-size: 8px; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.extension-package-meta dd { margin: 5px 0 0; overflow: hidden; color: var(--text); font-size: 11px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.extension-package-meta code { font-size: 9.5px; }
.extension-download-button { width: 100%; justify-content: center; }
.extension-install-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding-top: 18px; }
.extension-install-steps > div { min-width: 0; display: flex; align-items: flex-start; gap: 10px; padding: 0 16px; border-right: 1px solid var(--line); }
.extension-install-steps > div:first-child { padding-left: 0; }
.extension-install-steps > div:last-child { padding-right: 0; border-right: 0; }
.extension-install-steps b { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: var(--accent-soft); color: var(--accent-bright); font-size: 10px; }
.extension-install-steps span { min-width: 0; }
.extension-install-steps strong, .extension-install-steps small { display: block; }
.extension-install-steps strong { color: var(--title); font-size: 11px; }
.extension-install-steps small { margin-top: 4px; color: var(--muted); font-size: 9.5px; line-height: 1.5; }
.extension-install-steps code { color: var(--muted-bright); font-size: 9px; }
.calendar-integration-panel { border-color: rgba(119, 189, 247, .2); background: linear-gradient(145deg, rgba(15, 24, 32, .98), rgba(12, 18, 24, .98)); }
.calendar-integration-panel .panel-head { background: linear-gradient(110deg, rgba(119, 189, 247, .06), transparent 58%); }
.calendar-connection-copy { margin: 8px 0; color: var(--muted-bright); font-size: 13px; line-height: 1.65; }
.calendar-connection-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 12px 0 5px; }
.calendar-connection-layout h3 { margin: 0 0 6px; font-size: 15px; }
.calendar-connection-layout p { max-width: 720px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.interview-calendar-integration { margin: -2px 0 16px; scroll-margin-top: 20px; }
.interview-calendar-integration[hidden] { display: none; }
.interview-calendar-integration .calendar-integration-panel { margin-top: 0; }
.calendar-account-strip { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 0 18px; border-bottom: 1px solid var(--line); }
.calendar-account-strip > div { display: flex; align-items: center; gap: 11px; min-width: 0; }
.calendar-account-strip strong, .calendar-account-strip small { display: block; }
.calendar-account-strip strong { color: var(--text); font-size: 13px; overflow-wrap: anywhere; }
.calendar-account-strip small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.calendar-provider-mark { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(119, 189, 247, .26); border-radius: 11px; background: rgba(119, 189, 247, .08); color: #a8d6ff; font-size: 17px; font-weight: 850; }
.calendar-settings-grid { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(300px, 1.2fr); align-items: end; gap: 20px; padding: 18px 0; }
.calendar-checkbox { min-height: 63px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .018); cursor: pointer; }
.calendar-checkbox input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--accent); }
.calendar-checkbox strong, .calendar-checkbox small { display: block; }
.calendar-checkbox strong { color: #dce4e9; font-size: 11px; }
.calendar-checkbox small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.calendar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.danger-text { color: #ffaaa5 !important; }
.calendar-overview-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; padding: 15px 17px; border: 1px solid rgba(119, 189, 247, .18); border-radius: var(--radius); background: linear-gradient(120deg, rgba(119, 189, 247, .07), rgba(199, 243, 107, .025) 54%, rgba(14, 19, 24, .94)); box-shadow: var(--shadow-sm); }
.calendar-overview-account { display: flex; align-items: center; gap: 12px; min-width: 0; }
.calendar-overview-account strong, .calendar-overview-account small, .calendar-overview-label { display: block; }
.calendar-overview-account strong { color: var(--text); font-size: 13px; }
.calendar-overview-account small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.calendar-overview-account small.calendar-sync-error { color: #ffaaa5; }
.calendar-overview-label { margin-bottom: 2px; color: var(--blue); font-size: 9px; font-weight: 790; letter-spacing: .12em; text-transform: uppercase; }
.calendar-overview-actions, .calendar-month-controls, .calendar-card-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.calendar-overview-actions .button, .calendar-card-actions .button { text-decoration: none; }
.interview-calendar-layout { display: grid; grid-template-columns: minmax(640px, 1fr) minmax(310px, 370px); align-items: start; gap: 16px; }
.interview-calendar-layout.week-view { grid-template-columns: minmax(760px, 1fr) minmax(300px, 350px); }
.interview-calendar-panel { min-width: 0; }
.interview-calendar-head { min-height: 82px; }
.interview-calendar-head h2 { font-size: 20px; letter-spacing: -.035em; }
.calendar-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.calendar-view-toggle { display: inline-flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: rgba(4, 7, 10, .42); }
.calendar-view-toggle button { min-height: 27px; padding: 5px 11px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 9px; font-weight: 760; cursor: pointer; }
.calendar-view-toggle button:hover { color: var(--text); }
.calendar-view-toggle button.active { background: var(--accent-soft); color: var(--accent-bright); box-shadow: inset 0 0 0 1px rgba(199, 243, 107, .14); }
.calendar-view-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.calendar-view-toggle button:disabled, .calendar-month-controls .button:disabled { cursor: wait; opacity: .72; }
.calendar-loading-status { min-width: 92px; color: var(--accent-bright); font-size: 9px; font-weight: 720; letter-spacing: .02em; }
.calendar-loading-status[hidden] { display: none; }
.status-chip.calendar-syncing { gap: 6px; border-color: color-mix(in srgb, var(--blue) 30%, var(--line)); background: color-mix(in srgb, var(--blue) 10%, var(--surface-3)); color: var(--blue); }
.status-chip.calendar-syncing::before { content: ""; width: 7px; height: 7px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.calendar-source-legend { display: flex; align-items: center; gap: 13px; margin-top: 7px; color: var(--muted); font-size: 9px; }
.calendar-source-legend span { display: inline-flex; align-items: center; gap: 5px; }
.calendar-source-legend i { width: 8px; height: 8px; border: 1px solid rgba(119, 189, 247, .36); border-radius: 3px; background: rgba(119, 189, 247, .14); }
.calendar-source-legend i.google-source { border-color: rgba(167, 139, 250, .52); background: rgba(139, 92, 246, .32); }
.calendar-source-legend i.ics-source { border-color: rgba(71, 211, 183, .50); background: rgba(44, 174, 147, .28); }
.calendar-profile-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 11px; margin-top: 7px; color: var(--muted); font-size: 9px; }
.calendar-profile-legend > strong { color: #8f9ba5; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.calendar-profile-legend span { display: inline-flex; align-items: center; gap: 5px; color: #c4cdd4; font-weight: 680; }
.calendar-profile-legend i { width: 9px; height: 9px; border: 1px solid rgba(var(--profile-calendar-rgb), .9); border-radius: 50%; background: rgb(var(--profile-calendar-rgb)); box-shadow: 0 0 8px rgba(var(--profile-calendar-rgb), .22); }
.profile-color-0 { --profile-calendar-rgb: 66, 122, 224; --profile-calendar-dark-rgb: 40, 73, 151; }
.profile-color-1 { --profile-calendar-rgb: 181, 83, 190; --profile-calendar-dark-rgb: 116, 49, 132; }
.profile-color-2 { --profile-calendar-rgb: 213, 119, 49; --profile-calendar-dark-rgb: 139, 72, 32; }
.profile-color-3 { --profile-calendar-rgb: 36, 151, 128; --profile-calendar-dark-rgb: 24, 97, 91; }
.profile-color-4 { --profile-calendar-rgb: 119, 91, 207; --profile-calendar-dark-rgb: 74, 56, 148; }
.profile-color-5 { --profile-calendar-rgb: 207, 79, 76; --profile-calendar-dark-rgb: 137, 48, 54; }
.profile-color-6 { --profile-calendar-rgb: 41, 139, 181; --profile-calendar-dark-rgb: 27, 86, 125; }
.profile-color-7 { --profile-calendar-rgb: 164, 135, 43; --profile-calendar-dark-rgb: 104, 84, 29; }
.profile-color-8 { --profile-calendar-rgb: 198, 77, 128; --profile-calendar-dark-rgb: 132, 46, 88; }
.profile-color-9 { --profile-calendar-rgb: 73, 151, 75; --profile-calendar-dark-rgb: 43, 96, 52; }
.calendar-sync-message { display: flex; align-items: center; gap: 8px; padding: 9px 17px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.calendar-sync-message.error { border-color: rgba(255, 119, 113, .16); background: rgba(255, 119, 113, .055); color: #eab3af; }
.calendar-sync-message strong { color: #ffaaa5; }
.interview-calendar-body { overflow-x: auto; }
.interview-calendar-body.calendar-transitioning { opacity: .42; filter: saturate(.72); pointer-events: none; transition: opacity .14s ease, filter .14s ease; }
.calendar-weekdays, .interview-calendar-grid { min-width: 720px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { border-bottom: 1px solid var(--line); background: rgba(5, 9, 12, .36); }
.calendar-weekdays > div { padding: 10px 8px; color: var(--muted); font-size: 9px; font-weight: 780; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.interview-calendar-grid { background: rgba(5, 8, 11, .34); }
.calendar-day { min-height: 116px; min-width: 0; padding: 8px; border-right: 1px solid rgba(154, 169, 184, .11); border-bottom: 1px solid rgba(154, 169, 184, .11); background: rgba(18, 24, 30, .52); }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.outside-month { background: rgba(7, 10, 13, .48); }
.calendar-day.today { background: linear-gradient(145deg, rgba(199, 243, 107, .09), rgba(18, 24, 30, .56)); box-shadow: inset 0 0 0 1px rgba(199, 243, 107, .24); }
.calendar-day-number { min-height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 5px; }
.calendar-day-number > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: #c8d1d8; font-size: 11px; font-variant-numeric: tabular-nums; }
.outside-month .calendar-day-number > span { color: #58636d; }
.today .calendar-day-number > span { background: var(--accent); color: var(--accent-ink); font-weight: 850; }
.calendar-day-number small { color: var(--accent); font-size: 8px; font-weight: 760; text-transform: uppercase; }
.calendar-day-events { display: grid; gap: 4px; }
.calendar-event { position: relative; width: 100%; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 5px; padding: 5px 6px; overflow: hidden; border: 1px solid rgba(119, 189, 247, .17); border-radius: 6px; background: rgba(119, 189, 247, .09); color: #dce8f1; cursor: pointer; text-align: left; }
.calendar-event:hover { border-color: rgba(119, 189, 247, .42); background: rgba(119, 189, 247, .15); }
.calendar-event.google-external { border-color: rgba(167, 139, 250, .30); background: linear-gradient(90deg, rgba(124, 91, 224, .20), rgba(77, 119, 214, .12)); color: #eeeaff; text-decoration: none; }
.calendar-event.google-external:hover { border-color: rgba(184, 162, 252, .58); background: linear-gradient(90deg, rgba(124, 91, 224, .30), rgba(77, 119, 214, .19)); }
.calendar-event.google-external time { color: #c8b9ff; }
.calendar-event.google-external i { background: rgba(167, 139, 250, .20); color: #dacfff; }
.calendar-event.ics-imported { border-color: rgba(71, 211, 183, .32); background: linear-gradient(90deg, rgba(35, 135, 116, .22), rgba(42, 111, 126, .13)); color: #dcfff7; text-decoration: none; }
.calendar-event.ics-imported:hover { border-color: rgba(88, 231, 202, .58); background: linear-gradient(90deg, rgba(35, 135, 116, .32), rgba(42, 111, 126, .20)); }
.calendar-event.ics-imported time { color: #8ce8d5; }
.calendar-event.ics-imported i { background: rgba(71, 211, 183, .18); color: #a3f4e3; }
.calendar-event time { color: #9fcdf1; font-size: 8px; font-variant-numeric: tabular-nums; }
.calendar-event span { overflow: hidden; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event i { width: 14px; height: 14px; display: grid; place-items: center; border-radius: 4px; background: rgba(119, 189, 247, .16); color: #acd8fb; font-size: 7px; font-style: normal; font-weight: 850; }
.calendar-event.tentative { border-style: dashed; }
.calendar-event.completed { border-color: rgba(104, 230, 167, .18); background: rgba(104, 230, 167, .08); }
.calendar-event.cancelled, .calendar-event.no_show { opacity: .48; text-decoration: line-through; }
.calendar-more { padding-left: 4px; color: var(--muted); font-size: 8px; }
.interview-calendar-body.weekly { overflow-x: auto; background: rgba(5, 8, 11, .34); }
.weekly-calendar { min-width: 910px; --week-time-column: 62px; background: #0d1318; }
.week-calendar-header, .week-all-day-row, .week-timeline-canvas { display: grid; grid-template-columns: var(--week-time-column) repeat(7, minmax(0, 1fr)); }
.week-calendar-header { position: relative; z-index: 5; min-height: 60px; border-bottom: 1px solid var(--line); background: rgba(9, 14, 18, .97); }
.week-timezone { display: grid; place-items: end center; padding: 0 4px 10px; border-right: 1px solid var(--line); color: #73808a; font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week-day-heading { display: grid; place-items: center; align-content: center; gap: 4px; border-right: 1px solid rgba(154, 169, 184, .11); color: var(--muted); text-align: center; }
.week-day-heading:last-child { border-right: 0; }
.week-day-heading span { font-size: 8px; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; }
.week-day-heading strong { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #d8e0e5; font-size: 15px; font-weight: 720; }
.week-day-heading.today { background: rgba(199, 243, 107, .035); }
.week-day-heading.today span { color: var(--accent); }
.week-day-heading.today strong { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 18px rgba(199, 243, 107, .17); }
.week-all-day-row { position: relative; z-index: 4; min-height: 43px; max-height: 104px; border-bottom: 1px solid var(--line); background: rgba(12, 18, 23, .98); }
.week-all-day-label { padding: 10px 7px 0 0; border-right: 1px solid var(--line); color: #73808a; font-size: 8px; text-align: right; }
.week-all-day-cell { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 5px 4px; overflow-y: auto; border-right: 1px solid rgba(154, 169, 184, .11); }
.week-all-day-cell:last-child { border-right: 0; }
.week-all-day-cell.today { background: rgba(199, 243, 107, .025); }
.week-all-day-event { min-height: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px; padding: 3px 5px; overflow: hidden; border: 1px solid rgba(119, 189, 247, .22); border-radius: 5px; background: rgba(119, 189, 247, .11); color: #dce8f1; font-size: 8px; font-weight: 700; text-decoration: none; }
.week-all-day-event.google { border-color: rgba(167, 139, 250, .35); background: rgba(124, 91, 224, .20); color: #eeeaff; }
.week-all-day-event.ics { border-color: rgba(71, 211, 183, .35); background: rgba(35, 135, 116, .22); color: #dcfff7; }
.week-all-day-event span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week-all-day-event i { color: inherit; font-size: 7px; font-style: normal; }
.week-all-day-event:hover { filter: brightness(1.18); }
.week-timeline-scroll { height: clamp(520px, 62vh, 720px); overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #39434c #0b1015; }
.week-timeline-canvas { min-height: 1536px; background: #0b1015; }
.week-time-axis { position: relative; z-index: 3; height: 1536px; border-right: 1px solid var(--line); background: #0a0f13; }
.week-time-axis span { position: absolute; right: 8px; color: #78848d; font-size: 8px; font-variant-numeric: tabular-nums; transform: translateY(-50%); white-space: nowrap; }
.week-time-axis span:first-child { transform: translateY(2px); }
.week-timeline-day { position: relative; min-width: 0; height: 1536px; border-right: 1px solid rgba(154, 169, 184, .12); background-color: rgba(16, 22, 27, .92); background-image: repeating-linear-gradient(to bottom, rgba(154, 169, 184, .13) 0, rgba(154, 169, 184, .13) 1px, transparent 1px, transparent 32px, rgba(154, 169, 184, .055) 32px, rgba(154, 169, 184, .055) 33px, transparent 33px, transparent 64px); }
.week-timeline-day:last-child { border-right: 0; }
.week-timeline-day.today { background-color: rgba(25, 32, 29, .92); }
.week-timed-event { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; min-height: 22px; padding: 4px 5px; overflow: hidden; border: 1px solid rgba(119, 189, 247, .36); border-radius: 5px; background: linear-gradient(135deg, rgba(55, 112, 151, .94), rgba(39, 78, 108, .94)); color: #f0f7fb; text-align: left; text-decoration: none; box-shadow: 0 2px 7px rgba(0, 0, 0, .24); cursor: pointer; }
.week-timed-event:hover { z-index: 4; border-color: rgba(173, 219, 252, .72); filter: brightness(1.12); }
.week-timed-event.google { border-color: rgba(193, 177, 255, .50); background: linear-gradient(135deg, rgba(104, 76, 184, .96), rgba(70, 63, 139, .96)); color: #f5f1ff; }
.week-timed-event.ics { border-color: rgba(115, 239, 215, .50); background: linear-gradient(135deg, rgba(34, 137, 117, .96), rgba(35, 91, 99, .96)); color: #eafffa; }
.week-timed-event.jobam { border-color: rgba(210, 250, 129, .48); background: linear-gradient(135deg, rgba(89, 118, 43, .96), rgba(51, 78, 39, .96)); color: #f3ffdc; }
.calendar-event[class*="profile-color-"], .week-all-day-event[class*="profile-color-"], .week-timed-event[class*="profile-color-"] { border-color: rgba(var(--profile-calendar-rgb), .82); background: linear-gradient(135deg, rgba(var(--profile-calendar-rgb), .96), rgba(var(--profile-calendar-dark-rgb), .98)); color: #fff; }
.calendar-event[class*="profile-color-"]:hover, .week-all-day-event[class*="profile-color-"]:hover, .week-timed-event[class*="profile-color-"]:hover { border-color: rgba(var(--profile-calendar-rgb), 1); filter: brightness(1.16); }
.calendar-event[class*="profile-color-"] time, .calendar-event[class*="profile-color-"] i { color: rgba(255, 255, 255, .9); }
.calendar-event[class*="profile-color-"] i { background: rgba(0, 0, 0, .18); }
.week-timed-event.tentative { border-style: dashed; }
.week-timed-event.cancelled, .week-timed-event.no_show { opacity: .5; text-decoration: line-through; }
.week-timed-event strong, .week-timed-event span, .week-timed-event small { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week-timed-event strong { font-size: 8.5px; line-height: 1.2; }
.week-timed-event span { color: rgba(255, 255, 255, .82); font-size: 7.5px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.week-timed-event small { margin-top: 1px; color: rgba(255, 255, 255, .62); font-size: 7px; }
.week-now-line { position: absolute; z-index: 3; right: 0; left: 0; height: 1px; background: #ff746d; pointer-events: none; box-shadow: 0 0 5px rgba(255, 116, 109, .35); }
.week-now-line i { position: absolute; top: -3px; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: #ff746d; }
.upcoming-interviews-panel { min-width: 0; }
.upcoming-interview-list { display: grid; gap: 10px; max-height: calc(100vh - 250px); padding-top: 14px; overflow-y: auto; }
.upcoming-interview-card { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .018); transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.upcoming-interview-card:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .028); }
.upcoming-interview-card.google-upcoming-card { border-color: rgba(167, 139, 250, .20); background: linear-gradient(115deg, rgba(124, 91, 224, .065), rgba(255, 255, 255, .014)); }
.upcoming-interview-card.google-upcoming-card:hover { border-color: rgba(167, 139, 250, .38); }
.upcoming-interview-card.ics-upcoming-card { border-color: rgba(71, 211, 183, .20); background: linear-gradient(115deg, rgba(35, 135, 116, .07), rgba(255, 255, 255, .014)); }
.upcoming-interview-card.ics-upcoming-card:hover { border-color: rgba(71, 211, 183, .38); }
.upcoming-interview-card[class*="profile-color-"] { border-left: 3px solid rgb(var(--profile-calendar-rgb)); box-shadow: inset 18px 0 24px -26px rgba(var(--profile-calendar-rgb), .9); }
.upcoming-interview-card.calendar-focus { border-color: rgba(199, 243, 107, .58); background: var(--accent-soft); box-shadow: 0 0 0 4px rgba(199, 243, 107, .06); }
.upcoming-interview-time { padding-right: 10px; border-right: 1px solid var(--line); }
.upcoming-interview-time strong, .upcoming-interview-time span { display: block; }
.upcoming-interview-time strong { color: var(--text); font-size: 10px; line-height: 1.35; }
.upcoming-interview-time span { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.upcoming-interview-content { min-width: 0; }
.upcoming-interview-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
.upcoming-interview-content h3 { margin: 0 0 4px; font-size: 12px; }
.upcoming-interview-content p { margin: 0 0 8px; color: var(--muted); font-size: 10px; }
.google-sync-mark { color: #acd8fb; font-size: 8px; font-weight: 780; text-transform: uppercase; }
.google-event-status { border-color: rgba(167, 139, 250, .26); background: rgba(124, 91, 224, .12); color: #cfc2ff; }
.ics-event-status { border-color: rgba(71, 211, 183, .26); background: rgba(35, 135, 116, .13); color: #9be9da; }
.ics-sync-mark { color: #86d7c7; font-size: 8px; font-weight: 780; text-transform: uppercase; }
.calendar-meeting-link { display: inline-block; margin-bottom: 9px; color: var(--blue); font-size: 10px; font-weight: 720; text-decoration: none; }
.calendar-meeting-link:hover { text-decoration: underline; }
.calendar-card-actions { align-items: stretch; margin-top: 8px; }
.calendar-card-actions .button { min-height: 28px; padding: 5px 7px; font-size: 9px; }
.calendar-empty { padding: 40px 18px; color: var(--muted); text-align: center; }
.calendar-empty > span { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .022); color: var(--accent); font-size: 22px; }
.calendar-empty h3 { margin-bottom: 7px; color: var(--text); font-size: 14px; }
.calendar-empty p { margin-bottom: 15px; font-size: 11px; line-height: 1.55; }
.ics-import-hero { align-items: flex-start; }
.ics-import-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 18px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--line); }
.ics-import-summary > div { padding: 13px 15px; background: rgba(15, 21, 27, .98); }
.ics-import-summary small, .ics-import-summary strong { display: block; }
.ics-import-summary small { margin-bottom: 5px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.ics-import-summary strong { color: var(--text); font-size: 11px; }
.ics-preview-list { display: grid; gap: 8px; max-height: 52vh; overflow-y: auto; }
.ics-preview-event { display: grid; grid-template-columns: minmax(135px, .32fr) minmax(0, 1fr); gap: 15px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .018); }
.ics-preview-date { padding-right: 13px; border-right: 1px solid var(--line); }
.ics-preview-date strong, .ics-preview-date span { display: block; }
.ics-preview-date strong { color: #bdeee4; font-size: 11px; }
.ics-preview-date span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.ics-preview-event h3 { margin: 0 0 5px; font-size: 13px; }
.ics-preview-event p { margin: 0; color: var(--muted); font-size: 10px; }
.ics-preview-link { display: inline-block; margin-top: 6px; color: #82dac8; font-size: 9px; font-weight: 720; }

.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.team-copy { color: #c7cfd4; font-size: 13px; line-height: 1.6; }
.summary-strip.compact { grid-template-columns: repeat(2, 1fr); margin-bottom: 0; }
.invite-form { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(180px, 1fr) auto; align-items: end; gap: 10px; padding-top: 10px; }
.invite-form.token-form { grid-template-columns: 1fr auto; }
.invite-help { margin: 12px 0 0; font-size: 11px; }
.invite-result { display: flex; align-items: end; gap: 8px; margin-top: 14px; }
.invite-result label { flex: 1; }
.team-private-note { padding: 18px 0; }
.team-accept { grid-column: 1 / -1; }

dialog { width: min(680px, calc(100vw - 32px)); border: 1px solid var(--line-strong); border-radius: 18px; padding: 0; background: linear-gradient(160deg, #151b22, #0d1217); color: var(--text); box-shadow: 0 28px 90px rgba(0, 0, 0, .62), inset 0 1px rgba(255, 255, 255, .035); }
#profileDialog { width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: hidden; }
dialog::backdrop { background: rgba(2, 5, 8, .78); backdrop-filter: blur(7px); }
.detail-dialog { width: min(960px, calc(100vw - 32px)); }
.dialog-form, #detailContent { padding: 26px; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; margin-bottom: 22px; }
.dialog-head h2 { margin: 0; }
.profile-form-scroll { display: grid; gap: 14px; max-height: calc(100vh - 220px); padding-right: 6px; overflow-y: auto; scrollbar-gutter: stable; }
.profile-form-section { display: grid; gap: 15px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(7, 11, 15, .44); }
.profile-form-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.profile-form-heading span { display: block; margin-bottom: 4px; color: var(--accent); font-size: 9px; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }
.profile-form-heading h3 { margin: 0; font-size: 15px; }
.profile-form-heading > small { max-width: 330px; color: var(--muted); text-align: right; }
.profile-color-control { --profile-accent-color: #427ae0; min-height: 42px; display: flex; align-items: center; gap: 11px; margin-top: 7px; padding: 5px 10px 5px 6px; border: 1px solid color-mix(in srgb, var(--profile-accent-color) 42%, var(--line)); border-radius: 9px; background: var(--control); }
.profile-color-control input[type="color"] { width: 54px; min-height: 30px; padding: 2px; border: 0; border-radius: 7px; background: transparent; box-shadow: none; cursor: pointer; }
.profile-color-control input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.profile-color-control input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 5px; }
.profile-color-control input[type="color"]::-moz-color-swatch { border: 0; border-radius: 5px; }
.profile-color-control output { color: var(--title); font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .03em; }
.repeatable-list { display: grid; gap: 10px; }
.repeatable-entry { position: relative; display: grid; grid-template-columns: 1.05fr 1.05fr .9fr .7fr .7fr auto; gap: 10px; align-items: end; padding: 13px; border: 1px solid rgba(183, 199, 213, .13); border-radius: 12px; background: rgba(255, 255, 255, .018); }
.repeatable-entry .remove-entry { width: 34px; height: 40px; padding: 0; color: #ffaaa5; }
.work-end-date-field { display: grid; gap: 7px; }
.work-end-date-heading { min-height: 15px; display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--muted-bright); font-size: 10px; font-weight: 730; letter-spacing: .025em; }
.current-period-display { min-height: 40px; display: flex; align-items: center; padding: 9px 11px; border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line)); border-radius: 10px; background: var(--accent-soft); color: var(--accent-bright); font-size: 12px; font-weight: 750; letter-spacing: 0; }
.current-work-toggle { display: flex; align-items: center; gap: 5px; color: var(--muted-bright); font-size: 8.5px; font-weight: 680; letter-spacing: 0; white-space: nowrap; cursor: pointer; }
.current-work-toggle input { width: 13px; height: 13px; min-height: 13px; flex: 0 0 auto; margin: 0; padding: 0; accent-color: var(--accent); box-shadow: none; }
.current-work-toggle span { line-height: 1.25; }
.repeatable-empty { padding: 16px; border: 1px dashed var(--line-strong); border-radius: 11px; color: var(--muted); font-size: 11px; text-align: center; }
.form-help { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid .full { grid-column: 1 / -1; }
.resume-contact-settings { min-width: 0; margin: 0; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.resume-contact-settings legend { padding: 0 6px; color: var(--title); font-size: 11px; font-weight: 760; letter-spacing: .01em; }
.resume-contact-settings > p { margin: 0 0 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.resume-contact-options { display: grid; grid-template-columns: repeat(5, minmax(118px, 1fr)); gap: 8px; }
.resume-contact-toggle {
  position: relative;
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  cursor: pointer;
}
.resume-contact-toggle:hover { border-color: color-mix(in srgb, var(--accent) 36%, var(--line)); background: var(--surface-hover); }
.resume-contact-toggle input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; pointer-events: none; }
.resume-contact-toggle span { min-width: 0; }
.resume-contact-toggle strong, .resume-contact-toggle small { display: block; }
.resume-contact-toggle strong { color: var(--title); font-size: 11px; }
.resume-contact-toggle small { margin-top: 3px; color: var(--muted); font-size: 8.5px; font-weight: 560; line-height: 1.3; }
.resume-contact-toggle i { position: relative; width: 34px; height: 20px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-3); transition: border-color .16s ease, background-color .16s ease; }
.resume-contact-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); transition: transform .16s ease, background-color .16s ease; }
.resume-contact-toggle input:checked ~ i { border-color: var(--accent); background: var(--accent); }
.resume-contact-toggle input:checked ~ i::after { background: #fff; transform: translateX(14px); }
.resume-contact-toggle input:focus-visible ~ i { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
label { display: grid; gap: 7px; color: #9eabb5; font-size: 10px; font-weight: 730; letter-spacing: .025em; }
input, textarea, select { width: 100%; min-height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 11px; outline: none; background: rgba(5, 9, 12, .72); color: var(--text); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .22); }
input::placeholder, textarea::placeholder { color: #5f6c76; }
input:hover, textarea:hover, select:hover { border-color: rgba(183, 199, 213, .36); }
input:focus, textarea:focus, select:focus { border-color: rgba(199, 243, 107, .72); background: #0b1014; box-shadow: 0 0 0 3px rgba(199, 243, 107, .09), inset 0 1px 1px rgba(0, 0, 0, .18); }
input:disabled, textarea:disabled, select:disabled { opacity: .48; cursor: not-allowed; }
textarea { resize: vertical; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.resume-delete-hero { align-items: flex-start; }
.resume-delete-warning { display: grid; gap: 5px; margin-top: 20px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--red) 35%, var(--line)); border-radius: 11px; background: color-mix(in srgb, var(--red) 7%, var(--surface)); }
.resume-delete-warning strong { color: var(--red); font-size: 12px; }
.resume-delete-warning span { color: var(--muted-bright); font-size: 11px; line-height: 1.5; }
.resume-delete-list { max-height: 265px; display: grid; gap: 0; margin: 16px 0 0; padding: 0; overflow-y: auto; border: 1px solid var(--line); border-radius: 11px; list-style: none; }
.resume-delete-list li { display: grid; gap: 2px; padding: 10px 13px; border-bottom: 1px solid var(--line); }
.resume-delete-list li:last-child { border-bottom: 0; }
.resume-delete-list strong { color: var(--text); font-size: 11px; }
.resume-delete-list span, .resume-delete-list .resume-delete-remainder { color: var(--muted); font-size: 10px; }

.detail-hero { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.detail-hero h2 { margin-bottom: 7px; font-size: 27px; }
.detail-actions { display: flex; gap: 8px; align-items: start; }
.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 18px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.summary-strip > div { padding: 14px; background: linear-gradient(145deg, var(--surface-2), #11171d); }
.summary-strip small, .summary-strip strong { display: block; }
.summary-strip small { margin-bottom: 6px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.summary-strip strong { font-size: 13px; }
.detail-tabs { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; margin-top: 18px; }
.timeline-item { position: relative; padding: 4px 0 19px 22px; border-left: 1px solid #31383d; }
.timeline-item::before { content: ""; position: absolute; left: -4px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.timeline-item h4 { margin: 0 0 4px; font-size: 13px; }
.timeline-item p { margin: 0; color: var(--muted); font-size: 11px; }
.resume-row { padding: 12px 0; border-bottom: 1px solid #22282d; }
.resume-row header { display: flex; justify-content: space-between; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.ready-text { display: block; margin-top: 7px; color: var(--accent); }
.chart-row { display: grid; grid-template-columns: 120px 1fr 36px; align-items: center; gap: 10px; padding: 10px 0; font-size: 12px; }
.chart-row progress { width: 100%; height: 7px; border: 0; border-radius: 6px; overflow: hidden; background: #262d31; }
.chart-row progress::-webkit-progress-bar { background: #262d31; }
.chart-row progress::-webkit-progress-value { background: var(--accent); }
.chart-row progress::-moz-progress-bar { background: var(--accent); }
.integration-grid { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 12px; }
.integration-card { min-height: 150px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow-sm); }
.integration-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.integration-card h3 { margin: 0; }
.integration-card p { margin: 25px 0 7px; color: #c8d0d5; font-size: 13px; }
.integration-card small { color: var(--muted); }
.mail-safety-note { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 11px 13px; border: 1px solid color-mix(in srgb, var(--blue) 24%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--blue) 6%, var(--surface)); color: var(--muted-bright); font-size: 12px; }
.mail-safety-note strong { color: var(--blue); }
.mail-warning { margin: 10px 0; padding: 10px 12px; border: 1px solid color-mix(in srgb, #d97706 30%, var(--line)); border-radius: 9px; background: color-mix(in srgb, #f59e0b 8%, var(--surface)); color: var(--muted-bright); font-size: 12px; }
.mail-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.mail-profile-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.mail-profile-card[data-profile-color] { border-top: 3px solid rgb(var(--profile-calendar-rgb)); background: linear-gradient(180deg, rgba(var(--profile-calendar-rgb), .055), transparent 80px), var(--surface); }
.mail-profile-card[data-profile-color] .panel-kicker { color: var(--profile-accent-color); }
.mail-profile-card > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mail-profile-card h3 { margin: 2px 0 0; overflow-wrap: anywhere; font-size: 14px; }
.mail-account-list { display: grid; gap: 8px; padding-top: 10px; }
.mail-account-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; }
.mail-account-row + .mail-account-row { border-top: 1px solid var(--line); }
.mail-account-row strong, .mail-account-row small, .mail-account-row em { display: block; }
.mail-account-row strong { overflow-wrap: anywhere; font-size: 12px; }
.mail-account-row small { margin-top: 3px; color: var(--muted); }
.mail-account-row em { margin-top: 4px; color: #d97706; font-size: 10px; font-style: normal; font-weight: 650; }
.mail-provider-mark { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-3); color: var(--muted-bright); font-size: 12px; font-weight: 800; }
.mail-provider-mark.gmail { color: #c6463a; }
.mail-provider-mark.outlook { color: #1768e5; }
.mail-connect-actions { justify-content: flex-start; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.mail-unbound { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.mail-unbound > h3 { margin: 0 0 6px; font-size: 13px; }
.mail-review-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 20px; }
.mail-review-layout > div { min-width: 0; }
.mail-review-layout > div > h3 { margin: 0 0 10px; font-size: 13px; }
.mail-suggestion-list, .mail-activity-list { display: grid; align-content: start; gap: 9px; }
.mail-suggestion, .mail-message { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.mail-suggestion > div:first-child, .mail-message > div:first-child { min-width: 0; }
.mail-suggestion strong, .mail-message strong { display: block; margin-top: 7px; overflow-wrap: anywhere; font-size: 12px; }
.mail-suggestion p, .mail-message p { margin: 4px 0; color: var(--muted-bright); font-size: 11px; }
.mail-suggestion small, .mail-message small { display: block; color: var(--muted); line-height: 1.45; }
.mail-message-meta { display: grid; justify-items: end; flex: 0 0 auto; gap: 8px; }
.mail-message-meta time { color: var(--muted); font-size: 10px; white-space: nowrap; }
.notification.read { opacity: .58; }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 72% 5%, rgba(155, 204, 67, .16), transparent 28rem), radial-gradient(circle at 18% 92%, rgba(69, 127, 169, .12), transparent 34rem), var(--bg); }
.auth-card { position: relative; width: min(470px, 100%); overflow: hidden; padding: 38px; border: 1px solid var(--line-strong); border-radius: 22px; background: rgba(15, 21, 27, .9); box-shadow: var(--shadow-lg), inset 0 1px rgba(255, 255, 255, .035); backdrop-filter: blur(18px); }
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(215, 255, 128, .7), transparent); }
.auth-card h1 { margin-bottom: 13px; }
.stack { display: grid; gap: 14px; margin-top: 28px; }
.form-error { min-height: 18px; margin: 12px 0 0; color: var(--red); font-size: 12px; }
.auth-card > .button { width: 100%; margin-top: 10px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 25px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(4, 8, 11, .55); }
.auth-tab { min-height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 760; }
.auth-tab:hover { color: var(--text); }
.auth-tab.active { background: linear-gradient(180deg, rgba(199, 243, 107, .17), rgba(199, 243, 107, .08)); color: var(--accent-bright); box-shadow: inset 0 0 0 1px rgba(199, 243, 107, .17); }
.auth-form { margin-top: 17px; }
.auth-form .button, .auth-link-panel .button { width: 100%; }
.google-auth { display: grid; justify-items: center; gap: 7px; margin-top: 18px; }
.google-button { width: 100%; height: 44px; min-height: 44px; overflow: hidden; display: grid; place-items: center; }
.google-button > div, .google-button iframe { width: 100% !important; max-width: 100% !important; height: 44px !important; max-height: 44px !important; }
.auth-provider-note { margin: 12px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.google-auth .auth-provider-note:empty { display: none; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 15px 0 0; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-divider span { white-space: nowrap; }
.auth-link-panel { margin-top: 22px; padding: 17px; border: 1px solid rgba(119, 189, 247, .18); border-radius: 13px; background: rgba(119, 189, 247, .045); }
.auth-link-panel p { margin: 0; color: var(--muted-bright); font-size: 12px; line-height: 1.55; }
.auth-link-panel strong { color: var(--text); }
.auth-trust { margin: 14px 0 0; color: #73808b; font-size: 10px; text-align: center; }

.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: 380px; padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(23, 30, 38, .96); color: #e6ecef; opacity: 0; pointer-events: none; transform: translateY(8px) scale(.98); transition: opacity .2s ease, transform .2s ease; box-shadow: var(--shadow-lg); backdrop-filter: blur(12px); }
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast.error { border-color: #713631; color: #ffaaa5; }
.loading { min-height: 360px; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); }
.loading span { width: 28px; height: 28px; border: 3px solid #2b3237; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Light application workspace — aligned with the JobFlow reference. */
.app-shell { grid-template-columns: 210px minmax(0, 1fr); }
.sidebar {
  padding: 20px 13px;
  border-right-color: var(--line);
  background: #fff;
  box-shadow: none;
}
.brand { padding: 0 8px 26px; color: #101828; font-size: 18px; }
.brand-mark {
  border-color: #1768e5;
  border-radius: 10px;
  background: linear-gradient(145deg, #3d8cff, #1768e5);
  color: #fff;
  box-shadow: 0 8px 20px rgba(40, 120, 240, .2), inset 0 1px rgba(255, 255, 255, .35);
}
.nav-section-label { margin: 16px 11px 7px; color: #9aa6b6; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nav-section-label:first-child { margin-top: 0; }
.nav-item { padding: 9px 11px; border-radius: 8px; color: #65758b; font-size: 12px; }
.nav-item:hover { border-color: transparent; background: #f3f6fb; color: #1f2a3d; transform: none; }
.nav-item.active { border-color: transparent; background: #eaf2ff; color: #1768e5; box-shadow: none; }
.nav-item.active::before { content: ""; position: absolute; left: 0; width: 3px; height: 18px; border-radius: 0 4px 4px 0; background: var(--accent); }
.sidebar-footer { border-top: 1px solid var(--line); padding-top: 12px; }
.system-dot { border-color: var(--line); background: #f9fbfd; }
.main { padding: 24px clamp(24px, 2.6vw, 42px) 56px; }
.topbar { display: grid; grid-template-columns: minmax(210px, auto) minmax(230px, 420px) auto; margin-bottom: 28px; padding-bottom: 20px; }
.topbar::after { display: none; }
.topbar h1 { color: #101828; font-size: clamp(27px, 2.4vw, 35px); }
.eyebrow, .panel-kicker { color: var(--accent); }
.global-search { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); }
.global-search > span { color: #8190a5; font-size: 17px; }
.global-search input { min-height: 36px; padding: 6px 0; border: 0; background: transparent; box-shadow: none; font-size: 11px; }
.global-search input:focus { border: 0; background: transparent; box-shadow: none; }
.global-search kbd { min-width: 37px; padding: 2px 5px; border: 1px solid var(--line); border-radius: 5px; background: #f6f8fb; color: #8591a2; font: 9px/1.4 inherit; text-align: center; white-space: nowrap; }
.top-actions { justify-content: flex-end; }
.workspace-picker select { border-color: var(--line); background: #fff; }
.avatar, .profile-monogram, .mini-monogram { border-color: #cfe0fd; background: #eaf2ff; color: #1768e5; box-shadow: none; }
.top-icon-button { position: relative; width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #64748b; cursor: pointer; }
.top-icon-button:hover, .top-icon-button.has-unread { border-color: #bfd5fb; color: var(--accent); background: #f7faff; }
.top-icon-button > span { font-size: 19px; }
.top-icon-button i { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; border-radius: 999px; background: #ef5c6c; color: #fff; font-size: 8px; font-style: normal; font-weight: 800; }
.button { border-color: var(--line-strong); background: #fff; color: #526174; box-shadow: none; }
.button:hover { border-color: #b9c7d8; background: #f7f9fc; color: #172033; box-shadow: var(--shadow-sm); }
.button.primary { border-color: #1768e5; background: linear-gradient(145deg, #3385fa, #1768e5); color: #fff; box-shadow: 0 5px 15px rgba(40, 120, 240, .18); }
.button.primary:hover { border-color: #0e58cd; background: linear-gradient(145deg, #2878f0, #0e58cd); color: #fff; box-shadow: 0 7px 20px rgba(40, 120, 240, .24); }
.button.quiet { background: #fff; color: #637288; }
.page-lead { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: -14px 0 18px; }
.page-lead p { margin: 0; color: var(--muted); font-size: 13px; }
.metric-grid { gap: 12px; margin-bottom: 18px; }
.metric { min-height: 118px; padding: 17px 18px; border-color: var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.metric::before, .metric::after { display: none; }
.metric:hover { border-color: #cfd9e6; transform: translateY(-1px); box-shadow: 0 7px 22px rgba(31, 52, 83, .08); }
.metric-heading p { color: #526174; font-size: 10px; }
.metric-heading .metric-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #edf4ff; color: #2878f0; font-size: 14px; box-shadow: none; }
.metric.alert .metric-heading .metric-icon { background: #fff0f2; color: var(--red); }
.metric > strong { margin-top: 14px; color: #101828; font-size: 31px; }
.dashboard-grid { gap: 14px; }
.dashboard-overview-grid { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); }
.panel { border-color: var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.panel-head { min-height: 58px; padding: 15px 18px; border-bottom-color: var(--line); background: #fff; }
.panel-head h2, .panel-head h3, .list-row h3 { color: #1c2738; }
.panel-body { padding: 9px 18px 18px; }
.panel-intro { border-color: #d9e7fc; background: #f5f9ff; color: #596b83; }
.list-row { border-bottom-color: #edf0f5; }
.list-row:hover { background: #f9fbfe; }
.count-badge { min-width: 24px; height: 24px; display: grid; place-items: center; padding: 0 7px; border-radius: 999px; background: #edf4ff; color: #1768e5; font-size: 10px; font-weight: 800; }
.pipeline-overview { display: grid; gap: 17px; padding: 10px 0 4px; }
.pipeline-overview-row > div { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; color: #536277; font-size: 11px; }
.pipeline-overview-row strong { color: #1b2638; font-size: 11px; }
.pipeline-overview-row progress { width: 100%; height: 6px; overflow: hidden; border: 0; border-radius: 999px; background: #eaf0f7; }
.pipeline-overview-row progress::-webkit-progress-bar { background: #eaf0f7; }
.pipeline-overview-row progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, #438df8, #1768e5); }
.pipeline-overview-row progress::-moz-progress-bar { border-radius: 999px; background: #2878f0; }
.pipeline { gap: 10px; }
.pipeline-column { border-color: var(--line); background: #f8faff; }
.pipeline-title { color: #637288; }
.application-card { border-color: #e1e7ef; background: #fff; box-shadow: 0 1px 4px rgba(31, 52, 83, .04); }
.application-card:hover { border-color: #bcd2f4; }
.pipeline-column.drop-target { border-color: var(--accent); background: #edf5ff; }
.profile-chip, .status-chip { border-color: #dfe5ed; background: #f1f4f8; color: #637288; }
.status-chip.ready { border-color: #c9dcfa; background: #eaf2ff; color: #1768e5; }
.status-chip.failed { border-color: #f1cbd1; background: #fff0f2; color: #bd3e51; }
.application-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; padding: 0 14px; overflow-x: auto; }
.application-tabs { display: flex; align-items: center; gap: 2px; }
.application-tab { min-height: 47px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #748297; cursor: pointer; font-size: 11px; font-weight: 690; white-space: nowrap; }
.application-tab span { min-width: 19px; padding: 2px 5px; border-radius: 999px; background: #f0f3f8; color: #758399; font-size: 8px; }
.application-tab.active { border-bottom-color: var(--accent); color: #1768e5; }
.application-tab.active span { background: #e6f0ff; color: #1768e5; }
.view-switch, .calendar-view-toggle { display: inline-flex; flex: 0 0 auto; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #f5f7fa; }
.view-switch button, .calendar-view-toggle button { min-height: 28px; padding: 5px 10px; border: 0; border-radius: 6px; background: transparent; color: #718096; cursor: pointer; font-size: 9px; font-weight: 750; }
.view-switch button.active, .calendar-view-toggle button.active { background: #fff; color: #1768e5; box-shadow: 0 1px 4px rgba(31, 52, 83, .1); }
.data-toolbar input, .data-toolbar select { background: #fff; }
.application-table-panel { overflow: hidden; }
.score-pill, .stage-pill { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; background: #f0f3f7; color: #637288; font-size: 9px; font-weight: 800; white-space: nowrap; }
.score-pill.strong { background: #fff6df; color: #a16b05; }
.score-pill.excellent { background: #eaf8f0; color: #158052; }
.stage-pill.stage-applied, .stage-pill.stage-assessment { background: #edf4ff; color: #1768e5; }
.stage-pill.stage-screening, .stage-pill.stage-interview { background: #f1ecff; color: #6e4bd0; }
.stage-pill.stage-offer, .stage-pill.stage-hired { background: #eaf8f0; color: #158052; }
.job-control-panel { border-color: var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.job-control-section.range-section { border-left-color: var(--line); background: #f8faff; }
.data-table th { border-bottom-color: var(--line); background: #f8faff; color: #738197; }
.data-table td { border-bottom-color: #e9edf3; color: #344256; }
.data-table tbody tr:not(.job-editor-row):not(.job-add-control):hover { background: #f7faff; box-shadow: inset 3px 0 #8ab7f7; }
.data-table tr[data-id]:hover { background: #f7faff; }
.company-cell strong { color: #263348; }
.job-entry-table th, .job-entry-table th:last-child { background: #f5f8fc; }
.job-entry-table td:last-child { background: #fff; }
.job-entry-table tr:hover td:last-child { background: #f7faff; }
.job-entry-table .job-editor-row td:last-child { background: #f2f7ff; }
.job-editor-row { background: #f2f7ff; }
.job-editor-row td { box-shadow: inset 0 1px #c9ddfa, inset 0 -1px #c9ddfa; }
.job-date, .resume-content-preview span, .profile-list-values strong { color: #344256; }
.calendar-profile-legend span { color: #536277; }
.danger-text, .calendar-sync-message strong, .calendar-overview-account small.calendar-sync-error { color: var(--red) !important; }
.job-add-button { background: #fff; color: #607087; }
.job-add-button:hover { background: #f4f8ff; color: #1768e5; }
.document-preview { background: #f8faff; color: #344256; }
.extension-access-panel, .calendar-integration-panel { border-color: #d7e5fa; background: #fff; }
.extension-access-value code, .extension-access-note strong, .calendar-checkbox strong, .calendar-overview-account strong { color: #263348; }
.calendar-checkbox { background: #f9fbfe; }
.calendar-overview-bar { border-color: #d9e6f8; background: #fff; box-shadow: var(--shadow-sm); }
.calendar-weekdays, .week-calendar-header { background: #f8faff; }
.interview-calendar-grid, .interview-calendar-body.weekly { background: #f3f6fa; }
.calendar-day { background: #fff; }
.calendar-day.outside-month { background: #f8fafc; }
.calendar-day.today { background: #f3f8ff; box-shadow: inset 0 0 0 1px #bcd4f7; }
.calendar-day-number > span, .week-day-heading strong { color: #344256; }
.outside-month .calendar-day-number > span { color: #a8b2c0; }
.weekly-calendar { background: #fff; }
.week-calendar-header { background: #f8faff; }
.week-timezone, .week-all-day-label, .week-time-axis span { color: #8592a5; }
.week-all-day-row { background: #fff; }
.week-all-day-cell.today, .week-day-heading.today { background: #f3f8ff; }
.week-timeline-scroll { scrollbar-color: #c6d0de #f6f8fb; }
.week-timeline-canvas { background: #f6f8fb; }
.week-time-axis { background: #f8fafc; }
.week-timeline-day { background-color: #fff; background-image: repeating-linear-gradient(to bottom, #e6ebf2 0, #e6ebf2 1px, transparent 1px, transparent 32px, #f1f4f8 32px, #f1f4f8 33px, transparent 33px, transparent 64px); }
.week-timeline-day.today { background-color: #f8fbff; }
.upcoming-interview-card { background: #fff; }
.upcoming-interview-card:hover { background: #f8faff; }
.upcoming-interview-card.google-upcoming-card { background: #fbf9ff; }
.upcoming-interview-card.ics-upcoming-card { background: #f5fcfa; }
.calendar-empty > span { background: #f7faff; }
.calendar-empty h3 { color: #263348; }
.ics-import-summary > div, .ics-preview-event { background: #fff; }
.team-copy, .integration-card p { color: #536277; }
dialog { border-color: var(--line); background: #fff; color: var(--text); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(30, 43, 62, .42); }
.profile-form-section { background: #f8faff; }
.repeatable-entry { border-color: var(--line); background: #fff; }
label { color: #5d6c81; }
input, textarea, select { border-color: var(--line-strong); background: #fff; color: var(--text); box-shadow: none; }
input::placeholder, textarea::placeholder { color: #a2adbc; }
input:hover, textarea:hover, select:hover { border-color: #b8c5d6; }
input:focus, textarea:focus, select:focus { border-color: #6ea3ef; background: #fff; box-shadow: 0 0 0 3px rgba(40, 120, 240, .1); }
.summary-strip > div { background: #fff; }
.timeline-item { border-left-color: #d9e0ea; }
.timeline-item::before { border-color: #fff; }
.resume-row { border-bottom-color: #e8edf3; }
.chart-row progress, .chart-row progress::-webkit-progress-bar { background: #e9eef5; }
.integration-card { background: #fff; }
.auth-shell { background: linear-gradient(140deg, #eef5ff, #f8faff 45%, #edf3fb); }
.auth-card { border-color: var(--line); background: rgba(255, 255, 255, .96); box-shadow: var(--shadow-lg); }
.auth-card::before { background: linear-gradient(90deg, transparent, #438df8, transparent); }
.auth-tabs { background: #f4f7fb; }
.auth-tab.active { background: #fff; color: #1768e5; box-shadow: 0 1px 5px rgba(31, 52, 83, .1); }
.toast { border-color: #d7dfeb; background: rgba(255, 255, 255, .98); color: #344256; }
.toast.error { border-color: #efbcc4; background: #fff7f8; color: #b93448; }
.loading span { border-color: #dbe3ed; border-top-color: var(--accent); }

/* Precision UI layer: one component language shared by light and dark themes. */
html { background: var(--bg-deep); }
body { background: var(--bg); color: var(--text); }
::selection { background: var(--accent-soft); color: var(--title); }
* { scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); }
h1, h2, h3, h4, strong { color: var(--title); }
h1 { font-size: clamp(30px, 2.5vw, 38px); font-weight: 760; letter-spacing: -.042em; }
h2 { font-weight: 720; letter-spacing: -.024em; }
a { color: var(--blue); }

.app-shell {
  grid-template-columns: 216px minmax(0, 1fr);
  transition: grid-template-columns .2s ease;
}
.sidebar {
  position: sticky;
  padding: 22px 14px;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
  box-shadow: none;
  transition: padding .2s ease;
}
.brand { gap: 11px; padding: 0 9px 29px; color: var(--title); font-size: 18px; font-weight: 760; }
.brand > span:last-child { max-width: 100px; overflow: hidden; white-space: nowrap; opacity: 1; transition: max-width .18s ease, opacity .14s ease; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-color: #1768e5;
  border-radius: 10px;
  background: linear-gradient(145deg, #438df8, #1768e5);
  color: #fff;
  box-shadow: 0 7px 18px rgba(40, 120, 240, .2), inset 0 1px rgba(255, 255, 255, .32);
}
.sidebar-toggle {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: -14px;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted-bright);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.sidebar-toggle:hover { border-color: var(--accent); background: var(--surface-hover); color: var(--accent-bright); box-shadow: 0 6px 18px rgba(31, 52, 83, .14); }
.sidebar-toggle:focus-visible { outline: 0; box-shadow: var(--control-ring); }
.sidebar-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.app-shell.sidebar-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
.sidebar-collapsed .sidebar { padding-inline: 10px; }
.sidebar-collapsed .brand { justify-content: center; padding-inline: 0; }
.sidebar-collapsed .brand > span:last-child { max-width: 0; opacity: 0; }
.sidebar-collapsed .nav-section-label { display: none; }
.sidebar-collapsed .nav-item { justify-content: center; gap: 0; padding-inline: 10px; font-size: 0; }
.sidebar-collapsed .nav-item .nav-icon,
.sidebar-collapsed .nav-item span:first-child { margin: 0; font-size: 18px; }
.sidebar-collapsed .system-dot { justify-content: center; padding-inline: 8px; }
.sidebar-collapsed .system-dot span { display: none; }
.sidebar-collapsed .sidebar-toggle svg { transform: rotate(180deg); }
nav { gap: 5px; }
.nav-section-label { margin: 0 12px 9px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.nav-item {
  min-height: 42px;
  gap: 11px;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  color: var(--muted-bright);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}
.nav-item:hover { border-color: transparent; background: var(--surface-hover); color: var(--title); transform: none; }
.nav-item.active { border-color: transparent; background: var(--surface-selected); color: var(--accent-bright); box-shadow: none; }
.nav-item.active::before { content: ""; position: absolute; left: 0; width: 3px; height: 19px; border-radius: 0 4px 4px 0; background: var(--accent); }
.nav-item .nav-icon { width: 19px; height: 19px; display: grid; place-items: center; flex: 0 0 auto; }
.nav-item .nav-icon svg { width: 18px; height: 18px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-footer { padding-top: 14px; border-top: 1px solid var(--line); }
.system-dot { padding: 10px 11px; border-color: var(--line); background: var(--surface-2); color: var(--muted); }

.main { padding: 26px clamp(24px, 3vw, 48px) 56px; }
.topbar { grid-template-columns: minmax(220px, .8fr) minmax(280px, 420px) auto; align-items: end; gap: 22px; margin-bottom: 30px; padding-bottom: 22px; border-bottom-color: var(--line); }
.topbar > div:first-child { min-width: 220px; }
.topbar h1 { color: var(--title); font-size: clamp(28px, 2.3vw, 36px); }
.eyebrow, .panel-kicker { color: var(--accent-bright); }
.top-actions { align-items: end; gap: 9px; white-space: nowrap; }
.workspace-picker { min-width: 196px; display: grid; align-items: end; gap: 6px; font-size: 9px; font-weight: 780; }
.workspace-picker span { color: var(--muted); }
.workspace-picker select, .workspace-picker .ui-select { width: 196px; }
.workspace-picker select { min-height: var(--control-height); border-color: var(--line-strong); background: var(--control); color: var(--text); font-size: 12px; font-weight: 620; }
.global-search {
  min-height: 40px;
  border-color: var(--line-strong);
  border-radius: 10px;
  background: var(--control);
  box-shadow: var(--shadow-sm);
}
.global-search > span { color: var(--muted); }
.global-search input, .global-search input:focus { min-height: 38px; background: transparent; color: var(--text); font-size: 12px; box-shadow: none; }
.global-search kbd { border-color: var(--line); background: var(--surface-2); color: var(--muted); font-size: 9px; }
.top-icon-button {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-color: var(--line-strong);
  border-radius: 10px;
  background: var(--control);
  color: var(--muted-bright);
}
.top-icon-button:hover, .top-icon-button.has-unread { border-color: color-mix(in srgb, var(--accent) 46%, var(--line)); background: var(--accent-soft); color: var(--accent-bright); }
.top-icon-button i { border-color: var(--surface); }
.theme-toggle { display: grid; place-items: center; }
.theme-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }
.auth-theme-toggle { position: fixed; z-index: 4; top: 22px; right: 22px; }
.avatar, .profile-monogram, .mini-monogram { border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); background: var(--accent-soft); color: var(--accent-bright); }

.button {
  min-height: var(--control-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border-color: var(--line-strong);
  border-radius: 9px;
  background: var(--control);
  color: var(--muted-bright);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: none;
}
.button:hover { border-color: color-mix(in srgb, var(--accent) 34%, var(--line-strong)); background: var(--surface-hover); color: var(--title); transform: none; box-shadow: var(--shadow-sm); }
.button:active { background: var(--surface-selected); }
.button.primary { border-color: #1768e5; background: linear-gradient(145deg, #3385fa, #1768e5); color: #fff; box-shadow: 0 5px 15px rgba(40, 120, 240, .18); }
.button.primary:hover { border-color: #0e58cd; background: linear-gradient(145deg, #2878f0, #0e58cd); color: #fff; box-shadow: 0 7px 20px rgba(40, 120, 240, .24); }
.button.quiet { background: var(--control); color: var(--muted-bright); }
.button.small { min-height: 34px; padding: 7px 10px; font-size: 11px; }
.button:disabled, .button:disabled:hover { transform: none; box-shadow: none; }

.page-lead { margin: -12px 0 20px; }
.page-lead p { color: var(--muted); font-size: 13px; }
.metric-grid { gap: 14px; margin-bottom: 20px; }
.metric {
  min-height: 122px;
  padding: 18px;
  border-color: var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.metric::before, .metric::after { display: none; }
.metric:hover { border-color: var(--line-strong); transform: none; box-shadow: 0 9px 26px rgba(31, 52, 83, .09); }
[data-theme="dark"] .metric:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .28); }
.metric-heading p { color: var(--muted-bright); font-size: 10px; }
.metric-heading .metric-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-bright); font-size: 14px; }
.metric.alert .metric-heading .metric-icon { background: color-mix(in srgb, var(--red) 12%, var(--surface)); color: var(--red); }
.metric > strong { margin-top: 15px; color: var(--title); font-size: 31px; }
.metric small { color: var(--muted); font-size: 11px; }

.dashboard-grid { gap: 16px; }
.panel { border-color: var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
.panel-head { min-height: 60px; padding: 16px 19px; border-bottom-color: var(--line); background: var(--surface); }
.panel-head h2, .panel-head h3, .list-row h3 { color: var(--title); }
.panel-head h2, .panel-head h3 { font-size: 16px; }
.panel-body { padding: 10px 19px 19px; }
.panel-intro { border-color: color-mix(in srgb, var(--accent) 20%, var(--line)); background: var(--accent-soft); color: var(--muted-bright); }
.list-row { border-bottom-color: var(--line); }
.list-row:hover { background: var(--surface-hover); }
.list-row h3 { color: var(--title); font-size: 13px; }
.list-row p { color: var(--muted); font-size: 11px; }
.count-badge { background: var(--accent-soft); color: var(--accent-bright); }
.pipeline-overview-row > div { color: var(--muted-bright); }
.pipeline-overview-row strong { color: var(--title); }
.pipeline-overview-row progress, .pipeline-overview-row progress::-webkit-progress-bar { background: var(--surface-3); }
.pipeline-column { border-color: var(--line); background: var(--surface-2); }
.pipeline-title { color: var(--muted-bright); }
.application-card { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.application-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.pipeline-column.drop-target { border-color: var(--accent); background: var(--accent-soft); }
.profile-chip, .status-chip { border-color: var(--line); background: var(--surface-3); color: var(--muted-bright); }
.status-chip.ready { border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); background: var(--accent-soft); color: var(--accent-bright); }

.application-toolbar { min-height: 52px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.application-tab { min-height: 50px; padding: 0 12px; color: var(--muted); font-size: 12px; font-weight: 680; }
.application-tab span { background: var(--surface-3); color: var(--muted); }
.application-tab.active { border-bottom-color: var(--accent); color: var(--accent-bright); }
.application-tab.active span { background: var(--accent-soft); color: var(--accent-bright); }
.view-switch, .calendar-view-toggle { border-color: var(--line); background: var(--surface-2); }
.view-switch button, .calendar-view-toggle button { min-height: 30px; color: var(--muted); font-size: 10px; }
.view-switch button.active, .calendar-view-toggle button.active { background: var(--surface); color: var(--accent-bright); box-shadow: var(--shadow-sm); }
.data-toolbar input, .data-toolbar select { background: var(--control); }

.job-control-panel { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.job-control-section { padding: 17px 19px 19px; }
.job-control-section.range-section { border-left-color: var(--line); background: var(--surface-2); }
.control-kicker { color: var(--muted); font-size: 9px; }
.data-table { color: var(--text); }
.data-table th { padding: 13px 12px; border-bottom-color: var(--line); background: var(--surface-2); color: var(--muted); font-size: 9.5px; }
.data-table td { padding: 15px 12px; border-bottom-color: var(--line); color: var(--text); font-size: 12.5px; line-height: 1.48; }
.data-table tbody tr:not(.job-editor-row):not(.job-add-control):hover, .data-table tr[data-id]:hover { background: var(--surface-hover); box-shadow: inset 3px 0 color-mix(in srgb, var(--accent) 55%, transparent); }
.company-cell strong { color: var(--title); }
.job-entry-table th, .job-entry-table th:last-child { background: var(--surface-2); }
.job-entry-table td:last-child { background: var(--surface); }
.job-entry-table tr:hover td:last-child { background: var(--surface-hover); }
.job-entry-table .job-editor-row td:last-child, .job-editor-row { background: var(--surface-selected); }
.job-editor-row td { box-shadow: inset 0 1px color-mix(in srgb, var(--accent) 32%, var(--line)), inset 0 -1px color-mix(in srgb, var(--accent) 32%, var(--line)); }
.job-date, .resume-content-preview span, .profile-list-values strong { color: var(--text); }
.job-number { color: var(--muted); }
.job-url { color: var(--blue); font-size: 11px; }
.job-add-button { background: var(--surface); color: var(--muted-bright); }
.job-add-button:hover { background: var(--surface-hover); color: var(--accent-bright); }
.job-entry-actions .button, .resume-preview-actions .button { font-size: 11px; }

label { min-width: 0; color: var(--muted-bright); font-size: 10px; line-height: 1.25; }
input, textarea, select {
  min-height: var(--control-height);
  border-color: var(--line-strong);
  border-radius: 10px;
  background: var(--control);
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  box-shadow: none;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .78; }
input:hover, textarea:hover, select:hover { border-color: color-mix(in srgb, var(--accent) 34%, var(--line-strong)); }
input:focus, textarea:focus, select:focus { border-color: var(--accent); background: var(--control); box-shadow: var(--control-ring); }
.profile-form-section { border-color: var(--line); background: var(--surface-2); }
.repeatable-entry { border-color: var(--line); background: var(--surface); }
.profile-list-values > span { border-right-color: var(--line); }
.extension-access-panel, .calendar-integration-panel { border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); background: var(--surface); }
.extension-access-value code, .extension-access-note strong, .calendar-checkbox strong, .calendar-overview-account strong { color: var(--title); }
.extension-access-note { border-top-color: var(--line); }
.calendar-checkbox { background: var(--surface-2); }
.calendar-provider-mark { color: var(--accent-bright); }

.calendar-overview-bar { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.calendar-profile-legend span { color: var(--muted-bright); }
.calendar-weekdays, .week-calendar-header { background: var(--surface-2); }
.interview-calendar-grid, .interview-calendar-body.weekly { background: var(--calendar-canvas); }
.calendar-day { background: var(--surface); }
.calendar-day.outside-month { background: var(--surface-2); }
.calendar-day.today { background: var(--surface-selected); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 42%, var(--line)); }
.calendar-day-number > span, .week-day-heading strong { color: var(--text); }
.outside-month .calendar-day-number > span { color: var(--muted); }
.weekly-calendar { background: var(--surface); }
.week-calendar-header, .week-all-day-row { background: var(--surface-2); }
.week-timezone, .week-all-day-label, .week-time-axis span { color: var(--muted); }
.week-all-day-cell.today, .week-day-heading.today { background: var(--surface-selected); }
.week-timeline-scroll { scrollbar-color: var(--line-strong) var(--calendar-canvas); }
.week-timeline-canvas { background: var(--calendar-canvas); }
.week-time-axis { background: var(--surface-2); }
.week-timeline-day { background-color: var(--surface); background-image: repeating-linear-gradient(to bottom, var(--calendar-grid) 0, var(--calendar-grid) 1px, transparent 1px, transparent 32px, color-mix(in srgb, var(--calendar-grid) 48%, transparent) 32px, color-mix(in srgb, var(--calendar-grid) 48%, transparent) 33px, transparent 33px, transparent 64px); }
.week-timeline-day.today { background-color: var(--surface-selected); }
.week-timed-event strong { font-size: 10px; }
.week-timed-event span { font-size: 9px; }
.week-timed-event small { font-size: 8px; }
.upcoming-interview-card { background: var(--surface); }
.upcoming-interview-card:hover { background: var(--surface-hover); }
.upcoming-interview-card.google-upcoming-card { background: color-mix(in srgb, #8b5cf6 7%, var(--surface)); }
.upcoming-interview-card.ics-upcoming-card { background: color-mix(in srgb, #2cae93 7%, var(--surface)); }
.calendar-empty > span { background: var(--surface-2); }
.calendar-empty h3 { color: var(--title); }
.ics-import-summary > div, .ics-preview-event { background: var(--surface); }
.calendar-event { color: var(--text); }
:root[data-theme="light"] .calendar-event.google-external { border-color: #d9cffd; background: #f3f0ff; color: #4f3c99; }
:root[data-theme="light"] .calendar-event.google-external time, :root[data-theme="light"] .calendar-event.google-external i { color: #6b50c8; }
:root[data-theme="light"] .calendar-event.ics-imported { border-color: #bde9df; background: #eefaf7; color: #176d5d; }
:root[data-theme="light"] .calendar-event.ics-imported time, :root[data-theme="light"] .calendar-event.ics-imported i { color: #238873; }
:root[data-theme="light"] .ics-preview-date strong, :root[data-theme="light"] .ics-preview-link, :root[data-theme="light"] .ics-sync-mark { color: #238873; }

dialog { border-color: var(--line-strong); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: color-mix(in srgb, var(--bg-deep) 78%, transparent); }
.summary-strip { background: var(--line); }
.summary-strip > div { background: var(--surface); }
.timeline-item { border-left-color: var(--line-strong); }
.timeline-item::before { border-color: var(--surface); }
.resume-row { border-bottom-color: var(--line); }
.document-preview { background: var(--surface-2); color: var(--text); }
.chart-row progress, .chart-row progress::-webkit-progress-bar { background: var(--surface-3); }
.integration-card { border-color: var(--line); background: var(--surface); }
.integration-card p, .team-copy { color: var(--muted-bright); }

.auth-shell { background: radial-gradient(circle at 76% 4%, var(--accent-soft), transparent 30rem), linear-gradient(145deg, var(--bg-deep), var(--bg) 48%, var(--bg-deep)); }
.auth-card { border-color: var(--line); background: var(--surface-glass); color: var(--text); box-shadow: var(--shadow-lg); }
.auth-card::before { background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.auth-tabs { border-color: var(--line); background: var(--surface-2); }
.auth-tab { color: var(--muted); }
.auth-tab.active { background: var(--surface); color: var(--accent-bright); box-shadow: var(--shadow-sm); }
.auth-trust { color: var(--muted); }
.toast { border-color: var(--line-strong); background: var(--surface-glass); color: var(--text); }
.toast.error { border-color: color-mix(in srgb, var(--red) 50%, var(--line)); background: color-mix(in srgb, var(--red) 8%, var(--surface)); color: var(--red); }
.loading span { border-color: var(--line-strong); border-top-color: var(--accent); }

:root[data-theme="dark"] .button.primary { border-color: #4f8ff7; background: linear-gradient(145deg, #4f8ff7, #2d6fd6); box-shadow: 0 7px 20px rgba(32, 102, 216, .24); }
:root[data-theme="dark"] .button.primary:hover { border-color: #72a8ff; background: linear-gradient(145deg, #65a1ff, #347ae4); }
:root[data-theme="dark"] .status-chip.failed { border-color: rgba(255, 127, 140, .27); background: rgba(255, 127, 140, .12); color: #ff9ba6; }
:root[data-theme="dark"] .score-pill, :root[data-theme="dark"] .stage-pill { background: var(--surface-3); color: var(--muted-bright); }
:root[data-theme="dark"] .score-pill.strong { background: rgba(245, 185, 94, .14); color: #f5c878; }
:root[data-theme="dark"] .score-pill.excellent { background: rgba(73, 204, 139, .14); color: #75dca6; }
:root[data-theme="dark"] .stage-pill.stage-applied, :root[data-theme="dark"] .stage-pill.stage-assessment { background: var(--accent-soft); color: var(--accent-bright); }
:root[data-theme="dark"] .stage-pill.stage-screening, :root[data-theme="dark"] .stage-pill.stage-interview { background: rgba(139, 92, 246, .15); color: #bba4ff; }
:root[data-theme="dark"] .stage-pill.stage-offer, :root[data-theme="dark"] .stage-pill.stage-hired { background: rgba(73, 204, 139, .14); color: #75dca6; }
:root[data-theme="dark"] .calendar-event.google-external { color: #f0ebff; }
:root[data-theme="dark"] .calendar-event.ics-imported { color: #e0fff8; }
:root[data-theme="dark"] .top-icon-button i { border-color: var(--sidebar); }

.job-entry-table tr.resume-selected-row td { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); box-shadow: inset 0 1px color-mix(in srgb, var(--accent) 18%, transparent), inset 0 -1px color-mix(in srgb, var(--accent) 18%, transparent); }
.job-entry-table tr.resume-selected-row td:first-child { box-shadow: inset 3px 0 var(--accent), inset 0 1px color-mix(in srgb, var(--accent) 18%, transparent), inset 0 -1px color-mix(in srgb, var(--accent) 18%, transparent); }
.job-entry-table tr.resume-selected-row td:last-child, .job-entry-table tr.resume-selected-row:hover td:last-child { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }

/* Job Inbox spreadsheet --------------------------------------------------- */
.job-inbox-panel { border-radius: 14px; }
.job-grid {
  width: 100%;
  height: clamp(560px, calc(100vh - 335px), 840px);
  min-height: 560px;
  --ag-cell-horizontal-padding: 13px;
}
.job-grid .ag-root-wrapper { overflow: hidden; border: 0; border-radius: 14px 14px 0 0; }
.job-grid .ag-header { position: sticky; z-index: 12; top: 0; flex: 0 0 auto; border-bottom: 1px solid var(--line); background: var(--surface-2); box-shadow: 0 2px 8px color-mix(in srgb, var(--bg-deep) 13%, transparent); }
.job-grid .ag-body-viewport { overflow-y: auto !important; overscroll-behavior: contain; }
.job-grid .ag-header-cell,
.job-grid .ag-header-group-cell {
  border-right: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  letter-spacing: .085em;
  text-transform: uppercase;
}
.job-grid .ag-header-cell-label { gap: 7px; }
.job-grid .ag-header-cell-text { line-height: 1.25; }
.job-grid .ag-cell {
  display: flex;
  align-items: center;
  border-right: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
  line-height: 1.42;
}
.job-grid .ag-cell-wrapper,
.job-grid .ag-cell-value { width: 100%; min-width: 0; }
.job-grid .ag-row { border-bottom-color: var(--line); }
.job-grid .ag-row:hover { box-shadow: inset 3px 0 color-mix(in srgb, var(--accent) 68%, transparent); }
.job-grid .ag-floating-bottom {
  z-index: 9;
  border-top: 2px solid color-mix(in srgb, var(--accent) 58%, var(--line));
  background: var(--surface);
  box-shadow: 0 -5px 14px color-mix(in srgb, var(--bg-deep) 14%, transparent);
}
.job-grid .ag-row.job-grid-new-row { border-top: 1px dashed color-mix(in srgb, var(--accent) 48%, var(--line)); background: color-mix(in srgb, var(--accent) 3%, var(--surface)); }
.job-grid .ag-row.job-grid-new-row:hover { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); box-shadow: inset 3px 0 color-mix(in srgb, var(--accent) 58%, transparent); }
.job-grid-new-number { display: grid; justify-items: center; gap: 2px; color: var(--muted); font-variant-numeric: tabular-nums; }
.job-grid-new-number strong { color: var(--muted-bright); font-size: 11px; }
.job-grid-new-number small { color: var(--accent-bright); font-size: 8px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.job-grid-new-placeholder { color: var(--muted); font-size: 10px; font-style: italic; }
.job-grid .ag-row.resume-selected-row,
.job-grid .ag-row.resume-selected-row:hover { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.job-grid .ag-cell-focus:not(.ag-cell-range-selected) {
  border: 1px solid color-mix(in srgb, var(--accent) 78%, var(--line-strong)) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}
.job-grid .ag-cell-focus:not(.ag-cell-range-selected):not(.ag-cell-inline-editing):not(.job-grid-cell-selected)::after,
.job-grid .ag-cell.job-grid-selection-end::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  z-index: 2;
  width: 6px;
  height: 6px;
  border: 1px solid var(--surface);
  background: var(--accent);
  pointer-events: none;
}
.job-grid.range-selecting,
.job-grid.range-selecting * { user-select: none !important; }
.job-grid .ag-cell.job-grid-cell-selected {
  background: color-mix(in srgb, var(--accent) 11%, var(--surface));
}
.job-grid .ag-cell.job-grid-selection-top { border-top: 1px solid var(--accent) !important; }
.job-grid .ag-cell.job-grid-selection-bottom { border-bottom: 1px solid var(--accent) !important; }
.job-grid .ag-cell.job-grid-selection-left { border-left: 1px solid var(--accent) !important; }
.job-grid .ag-cell.job-grid-selection-right { border-right: 1px solid var(--accent) !important; }
.job-grid .ag-cell.job-grid-selection-end::after { border-color: var(--surface); }
.job-grid .ag-cell-inline-editing,
.job-grid .ag-popup-editor { background: var(--surface); }
.job-grid .ag-cell-inline-editing input,
.job-grid .ag-cell-inline-editing select,
.job-grid .ag-large-text-input textarea {
  border-color: var(--accent);
  background: var(--control);
  color: var(--text);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.job-grid .ag-pinned-left-header,
.job-grid .ag-pinned-left-cols-container { box-shadow: 5px 0 13px color-mix(in srgb, var(--bg-deep) 24%, transparent); }
.job-grid .ag-pinned-right-header,
.job-grid .ag-pinned-right-cols-container { box-shadow: -5px 0 13px color-mix(in srgb, var(--bg-deep) 24%, transparent); }
.job-grid .ag-menu,
.job-grid .ag-filter-wrapper,
.ag-popup .ag-menu,
.ag-popup .ag-picker-field-wrapper {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.job-grid .ag-input-field-input,
.ag-popup .ag-input-field-input { background: var(--control); color: var(--text); }
.job-grid .job-number-with-source { width: 100%; gap: 8px; }
.job-grid .job-number-line { width: 100%; justify-content: center; }
.job-grid .job-source-badge { width: 82px; min-height: 25px; font-size: 8.5px; }
.job-grid .job-entry-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
.job-grid .job-entry-actions .button { padding-inline: 8px; }
.job-grid .resume-preview-actions { width: 100%; flex-flow: row nowrap; }
.job-grid-link-cell { min-width: 0; display: grid; gap: 5px; }
.job-grid-link-cell small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.job-grid-description { align-content: center; }
.job-grid-description span,
.job-grid .resume-content-preview span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--text);
  font-size: 11px;
  line-height: 1.42;
}
.job-grid .table-link small { color: var(--blue); font-size: 9px; }
.job-grid-saving { color: var(--accent-bright); font-size: 10px; font-weight: 760; }
.job-grid-saving::before { content: ""; width: 8px; height: 8px; display: inline-block; margin-right: 6px; border: 1px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: job-grid-spin .7s linear infinite; }
.job-grid-empty { padding: 18px 24px; color: var(--muted); font-size: 12px; }
.job-pagination {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
}
.job-pagination-top { margin-bottom: 10px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.job-pagination-bottom { border-width: 1px 0 0; }
.job-pagination-range { color: var(--text); font-weight: 700; }
.job-pagination-controls { display: flex; align-items: center; gap: 6px; }
.job-pagination-controls .button { width: 34px; min-width: 34px; height: 32px; padding: 0; font-size: 17px; }
.job-pagination-controls .button:disabled { opacity: .42; }
.job-pagination-page,
.job-pagination-size { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.job-pagination-page { margin-inline: 3px; }
.job-pagination-page input,
.job-pagination-size select {
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--control);
  color: var(--text);
  font: inherit;
  font-weight: 700;
}
.job-pagination-page input { width: 58px; padding: 0 8px; text-align: center; }
.job-pagination-size { margin-left: 8px; }
.job-pagination-size select { min-width: 68px; padding: 0 24px 0 9px; }
.job-grid-footer {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
}
.job-grid-footer span:first-child { color: var(--text); font-weight: 760; }
.job-grid-number-header { color: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; }
.job-source-badge.spreadsheet {
  border-color: color-mix(in srgb, var(--green) 62%, var(--line));
  background: color-mix(in srgb, var(--green) 12%, var(--surface));
  color: color-mix(in srgb, var(--green) 86%, var(--text));
  box-shadow: inset 0 1px color-mix(in srgb, #fff 30%, transparent), 0 0 12px color-mix(in srgb, var(--green) 12%, transparent);
}
.spreadsheet-badge-icon { width: 17px; height: 17px; flex: 0 0 auto; overflow: visible; }
.spreadsheet-badge-icon rect,
.spreadsheet-badge-icon path { fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }

.job-sheet-editor { display: grid; }
.job-sheet-editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }
.job-sheet-editor-grid .full { grid-column: 1 / -1; }
.job-sheet-editor-grid textarea { min-height: 220px; line-height: 1.55; }
.spreadsheet-import-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--line);
}
.spreadsheet-import-summary span { padding: 13px 15px; background: var(--surface-2); color: var(--muted); font-size: 10px; }
.spreadsheet-import-summary strong { display: block; margin-bottom: 3px; color: var(--title); font-size: 18px; line-height: 1; }
.spreadsheet-import-list { max-height: min(52vh, 510px); display: grid; overflow-y: auto; border: 1px solid var(--line); border-radius: 11px; }
.spreadsheet-import-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 17px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}
.spreadsheet-import-row:last-child { border-bottom: 0; }
.spreadsheet-import-row:hover { background: var(--surface-hover); }
.spreadsheet-import-row:has(input:checked) { background: var(--surface-selected); box-shadow: inset 3px 0 var(--accent); }
.spreadsheet-import-row:has(input:disabled) { opacity: .64; cursor: not-allowed; }
.spreadsheet-import-row input { width: 16px; height: 16px; min-height: 16px; margin: 0; padding: 0; accent-color: var(--accent); box-shadow: none; }
.spreadsheet-import-index { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; text-align: center; }
.spreadsheet-import-row > span:nth-child(3) { min-width: 0; }
.spreadsheet-import-row strong,
.spreadsheet-import-row small,
.spreadsheet-import-row em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spreadsheet-import-row strong { color: var(--title); font-size: 11px; }
.spreadsheet-import-row small { margin-top: 3px; color: var(--muted-bright); font-size: 10px; }
.spreadsheet-import-row em { margin-top: 4px; color: var(--orange); font-size: 9px; font-style: normal; }
.spreadsheet-import-row b { min-width: 82px; padding: 5px 8px; border-radius: 999px; background: var(--surface-3); color: var(--muted-bright); font-size: 8.5px; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.spreadsheet-import-row.new b { background: color-mix(in srgb, var(--green) 12%, var(--surface)); color: var(--green); }
.spreadsheet-import-row.existing b { background: var(--accent-soft); color: var(--accent-bright); }

/* Tracking and application-material workspaces. */
.metric-link { width: 100%; color: inherit; text-align: left; cursor: pointer; }
.tracking-health-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-top: 18px; }
.tracking-health-grid > div { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.tracking-health-grid strong, .tracking-health-grid span { display: block; }
.tracking-health-grid strong { color: var(--title); font-size: 20px; }
.tracking-health-grid span { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.tracking-filter-toolbar { align-items: end; flex-wrap: wrap; }
.tracking-filter-toolbar > input { flex: 1 1 280px; }
.tracking-filter-toolbar .context-note { margin-left: auto; }
.compact-select { display: grid; gap: 4px; }
.compact-select select { min-width: 140px; }
.application-table tbody tr[data-application-id], .offer-comparison-table tbody tr[data-application-id] { cursor: pointer; }
.application-table td small, .offer-comparison-table td small { display: block; margin-top: 4px; color: var(--muted); }
.priority-label { width: max-content; padding: 2px 6px; border-radius: 999px; background: color-mix(in srgb, var(--orange) 12%, var(--surface)); color: var(--orange) !important; font-size: 8px !important; font-weight: 800; text-transform: uppercase; }
.attention-count { display: inline-grid; min-width: 25px; height: 25px; place-items: center; border-radius: 8px; background: var(--surface-3); color: var(--muted-bright); font-size: 11px; font-weight: 800; }
.tracking-mail-review { margin-bottom: 0; }
.tracking-detail-hero { align-items: flex-start; }
.tracking-detail-hero .detail-actions { flex-wrap: wrap; justify-content: flex-end; }
.tracking-detail-summary { margin-bottom: 12px; }
.tracking-status-bar { display: grid; grid-template-columns: minmax(120px, .55fr) minmax(120px, .55fr) minmax(240px, 1.6fr) auto; align-items: end; gap: 12px; padding: 14px; overflow: visible; }
.tracking-status-bar label { display: grid; gap: 5px; }
.tracking-notes-field { min-width: 0; }
.application-workspace-grid, .documents-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); align-items: start; gap: 16px; margin-top: 16px; }
.application-workspace-grid > div { min-width: 0; }
.job-description-full { margin: 0; color: var(--text); font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.document-row, .answer-row, .draft-row, .offer-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.document-row:last-child, .answer-row:last-child, .draft-row:last-child, .offer-card:last-child { border-bottom: 0; }
.document-row > div:first-child, .draft-row > div:first-child, .offer-card > div:first-child, .library-answer-row > div:first-child { min-width: 0; }
.document-row strong, .answer-row strong, .draft-row strong, .offer-card strong { display: block; color: var(--title); font-size: 12px; overflow-wrap: anywhere; }
.document-row small, .answer-row small, .draft-row small, .offer-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.answer-row { display: block; }
.answer-row p, .offer-card p { margin: 5px 0 0; color: var(--muted-bright); font-size: 11px; line-height: 1.55; white-space: pre-wrap; }
.library-answer-row { display: flex; }
.draft-row textarea.hidden { display: none; }
.offer-card select { min-width: 120px; }
.offer-comparison-table { min-width: 760px; }
.analytics-notice { margin: 16px 0 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 10px; line-height: 1.5; }
.ai-evidence { margin-top: 7px !important; padding-top: 7px; border-top: 1px dashed var(--line); color: var(--muted-bright) !important; }

/* Unified interaction controls ------------------------------------------- */
.button:focus-visible,
.top-icon-button:focus-visible,
.row-action-button:focus-visible,
.nav-item:focus-visible,
.application-tab:focus-visible,
.view-switch button:focus-visible,
.calendar-view-toggle button:focus-visible,
.ui-select-trigger:focus-visible,
.ui-select-option:focus-visible,
.ui-date-trigger:focus-visible,
.ui-date-nav:focus-visible,
.ui-date-day:focus-visible,
.ui-date-action:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--control-ring);
}

.button:disabled,
.top-icon-button:disabled,
.row-action-button:disabled,
.ui-select-trigger:disabled,
.ui-date-trigger:disabled {
  opacity: .5;
  cursor: not-allowed;
  filter: saturate(.45);
}

.top-icon-button,
.row-action-button,
.icon-button { display: inline-grid; place-items: center; }
.icon-button:hover { background: var(--surface-hover); color: var(--title); }

input[type="search"] { appearance: none; }
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; opacity: .55; }
input[type="date"], input[type="datetime-local"], input[type="month"], input[type="time"], input[type="number"] { font-variant-numeric: tabular-nums; }
input[type="datetime-local"], input[type="month"] { padding-right: 10px; }
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
  width: 16px;
  height: 16px;
  margin-left: 7px;
  padding: 4px;
  border-radius: 6px;
  cursor: pointer;
  opacity: .65;
}
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
input[type="month"]::-webkit-calendar-picker-indicator:hover { background-color: var(--accent-soft); opacity: 1; }
input:user-invalid, textarea:user-invalid, select:user-invalid { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 13%, transparent); }

.resume-row-checkbox,
.resume-select-all input,
.spreadsheet-import-row input,
.current-work-toggle input,
.calendar-checkbox input {
  width: 17px;
  min-width: 17px;
  height: 17px;
  min-height: 17px;
  appearance: none;
  display: inline-grid;
  place-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--control);
  box-shadow: none;
  cursor: pointer;
}
.resume-row-checkbox::before,
.resume-select-all input::before,
.spreadsheet-import-row input::before,
.current-work-toggle input::before,
.calendar-checkbox input::before {
  content: "";
  width: 8px;
  height: 5px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  opacity: 0;
  transform: rotate(-45deg) scale(.6);
  transition: opacity .14s ease, transform .14s ease;
}
.resume-row-checkbox:checked,
.resume-select-all input:checked,
.spreadsheet-import-row input:checked,
.current-work-toggle input:checked,
.calendar-checkbox input:checked { border-color: var(--accent); background: var(--accent); }
.resume-row-checkbox:checked::before,
.resume-select-all input:checked::before,
.spreadsheet-import-row input:checked::before,
.current-work-toggle input:checked::before,
.calendar-checkbox input:checked::before { opacity: 1; transform: rotate(-45deg) scale(1); }
.resume-row-checkbox:focus-visible,
.resume-select-all input:focus-visible,
.spreadsheet-import-row input:focus-visible,
.current-work-toggle input:focus-visible,
.calendar-checkbox input:focus-visible { outline: none; box-shadow: var(--control-ring); }

select:not(.ui-select-native) {
  appearance: none;
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
select option, select optgroup { background: var(--surface); color: var(--text); }

.ui-select { position: relative; width: 100%; min-width: 0; display: block; }
.ui-select-native {
  position: absolute !important;
  width: 1px !important;
  min-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.ui-select-trigger {
  width: 100%;
  min-width: 0;
  min-height: var(--control-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 9px 11px 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--control);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.3;
  text-align: left;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--bg-deep) 20%, transparent);
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.ui-select-trigger:hover { border-color: color-mix(in srgb, var(--accent) 38%, var(--line-strong)); background: var(--surface-hover); }
.ui-select-trigger.is-open { border-color: var(--accent); background: var(--control); box-shadow: var(--control-ring); }
.ui-select-trigger.is-placeholder .ui-select-value { color: var(--muted); }
.ui-select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-select-chevron {
  width: 8px;
  height: 8px;
  justify-self: center;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  color: var(--muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .16s ease, color .16s ease;
}
.ui-select-trigger.is-open .ui-select-chevron { color: var(--accent-bright); transform: translateY(2px) rotate(225deg); }
.ui-select-menu {
  position: fixed;
  z-index: 1000;
  inset: auto;
  top: var(--ui-select-top, 0);
  left: var(--ui-select-left, 0);
  width: var(--ui-select-width, 180px);
  max-height: var(--ui-select-max-height, 320px);
  display: grid;
  align-content: start;
  gap: 2px;
  overflow: auto;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface-glass);
  box-shadow: var(--shadow-popover);
  backdrop-filter: blur(16px);
  overscroll-behavior: contain;
}
.ui-select-menu[hidden] { display: none; }
.ui-select-option {
  position: relative;
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 7px 34px 7px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}
.ui-select-option:hover,
.ui-select-option:focus-visible { border-color: color-mix(in srgb, var(--accent) 20%, transparent); background: var(--surface-hover); color: var(--title); box-shadow: none; }
.ui-select-option.is-selected { background: var(--accent-soft); color: var(--accent-bright); font-weight: 720; }
.ui-select-option.is-selected::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 9px;
  height: 5px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg);
}
.ui-select-option:disabled { opacity: .45; cursor: not-allowed; }
.ui-select-group { padding: 9px 9px 4px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* Branded date picker ---------------------------------------------------- */
.ui-date { position: relative; width: 100%; min-width: 0; display: block; }
.ui-date-native {
  position: absolute !important;
  width: 1px !important;
  min-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.ui-date-trigger {
  width: 100%;
  min-width: 0;
  min-height: var(--control-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 9px 11px 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--control);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 660;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  text-align: left;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--bg-deep) 20%, transparent);
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.ui-date-trigger:hover { border-color: color-mix(in srgb, var(--accent) 38%, var(--line-strong)); background: var(--surface-hover); }
.ui-date-trigger.is-open { border-color: var(--accent); background: var(--control); box-shadow: var(--control-ring); }
.ui-date-trigger.is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 13%, transparent); }
.ui-date-trigger.is-placeholder .ui-date-value { color: var(--muted); font-weight: 560; }
.ui-date-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-date-icon { width: 18px; height: 18px; display: grid; place-items: center; color: var(--muted); }
.ui-date-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.ui-date-trigger:hover .ui-date-icon,
.ui-date-trigger.is-open .ui-date-icon { color: var(--accent-bright); }
.ui-date-menu {
  position: fixed;
  z-index: 1001;
  inset: auto;
  display: grid;
  gap: 12px;
  max-height: calc(100dvh - 24px);
  overflow: auto;
  margin: 0;
  padding: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-glass);
  color: var(--text);
  box-shadow: var(--shadow-popover);
  backdrop-filter: blur(18px);
}
.ui-date-menu[hidden] { display: none; }
.ui-date-context {
  padding: 0 3px;
  overflow: hidden;
  color: var(--accent-bright);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .13em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.ui-date-header { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px; }
.ui-date-heading { color: var(--title); font-size: 15px; font-weight: 760; letter-spacing: -.02em; }
.ui-date-navigation { display: flex; gap: 5px; }
.ui-date-nav {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0 0 2px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--muted-bright);
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
}
.ui-date-nav:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); background: var(--accent-soft); color: var(--accent-bright); }
.ui-date-weekdays,
.ui-date-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.ui-date-weekdays { padding-inline: 1px; }
.ui-date-weekdays span { display: grid; place-items: center; height: 22px; color: var(--muted); font-size: 9px; font-weight: 760; text-transform: uppercase; }
.ui-date-day {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}
.ui-date-day:hover,
.ui-date-day:focus-visible { border-color: color-mix(in srgb, var(--accent) 25%, transparent); background: var(--surface-hover); color: var(--title); box-shadow: none; }
.ui-date-day.is-outside { color: color-mix(in srgb, var(--muted) 55%, transparent); }
.ui-date-day.is-today { color: var(--accent-bright); font-weight: 800; }
.ui-date-day.is-today:not(.is-selected)::after { content: ""; position: absolute; bottom: 4px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.ui-date-day.is-selected,
.ui-date-day.is-selected:hover,
.ui-date-day.is-selected:focus-visible {
  border-color: var(--accent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 6px 15px color-mix(in srgb, var(--accent) 28%, transparent);
}
.ui-date-day:disabled { opacity: .25; cursor: not-allowed; }
.ui-date-footer { min-height: 39px; display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 8px 2px 0; border-top: 1px solid var(--line); }
.ui-date-action { min-height: 30px; padding: 5px 9px; border: 0; border-radius: 8px; background: transparent; color: var(--accent-bright); cursor: pointer; font-size: 10px; font-weight: 740; }
.ui-date-action:hover { background: var(--accent-soft); }
.ui-date-action:disabled { opacity: .35; cursor: not-allowed; }

.job-control-panel { grid-template-columns: minmax(720px, 1fr) auto; overflow: visible; }
.job-control-section.range-section { min-width: 372px; }
.job-filter-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(142px, 176px));
  align-items: end;
  gap: 12px;
}
.job-filter-controls label,
.job-range-controls label { display: grid; align-content: end; gap: 7px; }
.job-filter-controls label:first-child,
.job-filter-controls label:not(:first-child) { min-width: 0; max-width: none; }
.job-range-controls { display: grid; grid-template-columns: 88px 88px max-content; align-items: end; justify-content: start; gap: 10px; }
.job-range-controls input { width: 88px; }
.job-range-controls .button { min-width: 122px; }
.control-kicker { margin-bottom: 13px; }

.data-toolbar { align-items: center; flex-wrap: wrap; row-gap: 9px; }
.tracking-filter-toolbar { padding: 4px 0; }
.compact-select { min-width: 150px; gap: 6px; }
.compact-select select, .compact-select .ui-select { min-width: 150px; }

.job-pagination { min-height: 54px; padding: 10px 14px; }
.job-pagination-controls { gap: 5px; }
.job-pagination-controls .button { width: 36px; min-width: 36px; height: 36px; min-height: 36px; border-radius: 9px; }
.job-pagination-page,
.job-pagination-size { gap: 7px; color: var(--muted-bright); font-weight: 650; }
.job-pagination-page input { width: 62px; height: 36px; min-height: 36px; }
.job-pagination-size .ui-select-trigger { min-height: 36px; padding-block: 6px; }
.job-pagination-size .ui-select { width: 90px; min-width: 90px; }
.offer-card .ui-select { width: 140px; min-width: 140px; flex: 0 0 auto; }
.job-entry-table .ui-select-trigger { min-height: 38px; padding: 8px 9px; }

.panel-head { gap: 18px; }
.panel-head > div { min-width: 0; }
.panel-head .muted { line-height: 1.5; }
.status-chip, .profile-chip { min-height: 22px; align-items: center; padding: 4px 8px; line-height: 1.2; }
.empty { min-height: 126px; display: grid; place-content: center; gap: 7px; }
.empty h2, .empty h3, .empty p { margin: 0; }

dialog { max-height: calc(100dvh - 32px); overflow: auto; }
.dialog-head { position: sticky; z-index: 3; top: -26px; margin: -6px -6px 22px; padding: 6px 6px 15px; background: linear-gradient(var(--surface) 78%, transparent); }
.dialog-actions { position: sticky; z-index: 3; bottom: -26px; margin: 24px -6px -6px; padding: 18px 6px 6px; background: linear-gradient(transparent, var(--surface) 25%); }
.detail-dialog .dialog-head { top: -26px; }
.profile-form-heading > small { line-height: 1.5; }
.form-grid { gap: 17px 15px; }
label > small { color: var(--muted); font-size: 9.5px; font-weight: 520; line-height: 1.45; letter-spacing: 0; }

.data-table th { height: 46px; vertical-align: middle; }
.data-table td { vertical-align: middle; }
.data-table tbody tr { min-height: 50px; }
.row-actions { align-items: center; }
.toast { padding: 14px 17px; border-left: 3px solid var(--accent); }
.toast.error { border-left-color: var(--red); }

@media (max-width: 1500px) and (min-width: 1181px) {
  .topbar { grid-template-columns: minmax(220px, auto) minmax(260px, 1fr); align-items: end; }
  .top-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .workspace-picker { min-width: 196px; }
  .workspace-picker select, .workspace-picker .ui-select { width: 196px; }
  .job-control-panel { grid-template-columns: 1fr; }
  .job-control-section.range-section { min-width: 0; border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 1120px) {
  .job-filter-controls { grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(132px, .45fr)); }
}

@keyframes job-grid-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 74px 1fr; }
  .sidebar { padding-inline: 10px; }
  .sidebar-toggle { display: none; }
  .nav-section-label { display: none; }
  .calendar-settings-grid { grid-template-columns: 1fr; }
  .brand > span:last-child, .nav-item:not(.active) { font-size: 0; }
  .nav-item { justify-content: center; }
  .nav-item span:first-child { font-size: 18px; }
  .system-dot span, #logout { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid, .detail-tabs { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .team-accept { grid-column: auto; }
  .integration-grid { grid-template-columns: 1fr 1fr; }
  .summary-strip { grid-template-columns: 1fr 1fr; }
  .job-control-panel { grid-template-columns: 1fr; }
  .job-control-section.range-section { border-top: 1px solid var(--line); border-left: 0; }
  .template-gallery { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  .extension-install-steps { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .extension-install-steps > div:nth-child(2) { border-right: 0; }
  .job-entry-table { min-width: 1100px; }
  .job-grid { height: 680px; min-height: 560px; }
  .repeatable-entry { grid-template-columns: 1fr 1fr; }
  .repeatable-entry .remove-entry { grid-column: 2; justify-self: end; }
  .resume-contact-options { grid-template-columns: repeat(3, minmax(118px, 1fr)); }
  .tracking-health-grid { grid-template-columns: 1fr 1fr; }
  .application-workspace-grid, .documents-grid { grid-template-columns: 1fr; }
  .tracking-status-bar { grid-template-columns: 1fr 1fr; }
  .tracking-status-bar .tracking-notes-field { grid-column: 1 / -1; }
}
@media (max-width: 1180px) and (min-width: 621px) {
  .topbar { grid-template-columns: minmax(200px, auto) minmax(220px, 1fr); align-items: flex-start; }
  .top-actions { grid-column: 1 / -1; }
  .top-actions { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .workspace-picker { min-width: 184px; }
  .workspace-picker select, .workspace-picker .ui-select { width: 184px; }
  .job-control-panel { grid-template-columns: 1fr; }
  .job-control-section.range-section { border-top: 1px solid var(--line); border-left: 0; }
  .interview-calendar-layout, .interview-calendar-layout.week-view { grid-template-columns: 1fr; }
  .upcoming-interview-list { max-height: none; }
}
@media (max-width: 620px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 20; top: auto; bottom: 0; width: 100%; height: 64px; padding: 6px; border: 0; border-top: 1px solid var(--line); }
  .brand, .sidebar-footer { display: none; }
  nav { display: flex; overflow-x: auto; }
  nav .nav-item { min-width: 52px; }
  .nav-item, .nav-item:not(.active) { padding: 10px; font-size: 0; }
  .main { padding: 20px 16px 88px; }
  .topbar { grid-template-columns: 1fr; align-items: flex-start; margin-bottom: 26px; padding-bottom: 18px; }
  .global-search { width: 100%; }
  .topbar > div:first-child { min-width: 0; }
  .top-actions { flex-wrap: wrap; justify-content: flex-end; }
  .top-actions .quiet, .avatar { display: none; }
  .workspace-picker { min-width: min(148px, 42vw); }
  .workspace-picker span { display: block; }
  .workspace-picker select, .workspace-picker .ui-select { width: min(148px, 42vw); }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 110px; }
  .metric > strong { margin-top: 15px; }
  .form-grid { grid-template-columns: 1fr; }
  .resume-contact-options { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: auto; }
  .integration-grid { grid-template-columns: 1fr; }
  .mail-profile-grid, .mail-review-layout { grid-template-columns: 1fr; }
  .tracking-health-grid { grid-template-columns: 1fr; }
  .tracking-filter-toolbar { align-items: stretch; flex-direction: column; }
  .tracking-filter-toolbar .context-note { margin-left: 0; }
  .tracking-filter-toolbar > input, .tracking-filter-toolbar select { width: 100%; min-width: 0; }
  .tracking-status-bar { grid-template-columns: 1fr; }
  .tracking-status-bar .tracking-notes-field { grid-column: auto; }
  .tracking-detail-hero, .tracking-detail-hero .detail-actions { align-items: stretch; flex-direction: column; }
  .document-row, .draft-row, .offer-card, .library-answer-row { flex-direction: column; }
  .offer-card select { width: 100%; }
  .mail-safety-note { align-items: flex-start; flex-direction: column; }
  .mail-account-row { grid-template-columns: 30px minmax(0, 1fr); }
  .mail-account-row .row-actions { grid-column: 2; justify-content: flex-start; }
  .mail-suggestion, .mail-message { flex-direction: column; }
  .mail-message-meta { justify-items: start; }
  .summary-strip { grid-template-columns: 1fr; }
  .job-toolbar { align-items: stretch; flex-direction: column; }
  .job-toolbar-controls { align-items: stretch; flex-direction: column; }
  .job-toolbar p { text-align: left; }
  .job-grid { height: 660px; min-height: 520px; }
  .job-pagination { align-items: flex-start; flex-direction: column; gap: 8px; }
  .job-pagination-controls { width: 100%; flex-wrap: wrap; }
  .job-pagination-size { margin-left: auto; }
  .job-grid-footer { align-items: flex-start; flex-direction: column; gap: 2px; }
  .job-sheet-editor-grid { grid-template-columns: 1fr; }
  .job-sheet-editor-grid .full { grid-column: auto; }
  .spreadsheet-import-row { grid-template-columns: 17px 28px minmax(0, 1fr); }
  .spreadsheet-import-row b { grid-column: 3; justify-self: start; }
  .job-filter-controls, .job-range-controls { display: grid; grid-template-columns: 1fr; align-items: stretch; }
  .job-filter-controls label:first-child { max-width: none; }
  .job-filter-controls input, .job-filter-controls select, .job-range-controls input { width: 100%; }
  .profile-list-row { grid-template-columns: 1fr; align-items: start; }
  .profile-list-row .row-actions { justify-content: flex-start; }
  .template-gallery { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .extension-download-head, .extension-freshness-note { align-items: flex-start; flex-direction: column; }
  .extension-download-grid, .extension-install-steps { grid-template-columns: 1fr; }
  .extension-install-steps { gap: 14px; }
  .extension-install-steps > div, .extension-install-steps > div:first-child, .extension-install-steps > div:last-child { padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .extension-install-steps > div:last-child { padding-bottom: 0; border-bottom: 0; }
  .profile-list-side { width: 100%; justify-content: space-between; padding-left: 42px; }
  .profile-list-values { justify-content: flex-start; flex-wrap: wrap; }
  .profile-list-values > span, .profile-list-values > span:first-child { min-width: 0; padding: 4px 12px 4px 0; margin-right: 12px; text-align: left; }
  .extension-access-row { align-items: flex-start; flex-direction: column; }
  .extension-access-copy { justify-content: flex-start; }
  .invite-form, .invite-form.token-form { grid-template-columns: 1fr; }
  .invite-result { align-items: stretch; flex-direction: column; }
  .calendar-connection-layout { grid-template-columns: 1fr; }
  .calendar-connection-layout > .button { justify-self: start; }
  .calendar-overview-bar { align-items: flex-start; flex-direction: column; }
  .calendar-overview-actions { width: 100%; }
  .interview-calendar-layout, .interview-calendar-layout.week-view { grid-template-columns: minmax(0, 1fr); }
  .interview-calendar-head { align-items: flex-start; flex-direction: column; }
  .calendar-toolbar { width: 100%; justify-content: space-between; }
  .weekly-calendar { min-width: 800px; }
  .week-timeline-scroll { height: 560px; }
  .upcoming-interview-list { max-height: none; }
  .upcoming-interview-card { grid-template-columns: 58px minmax(0, 1fr); }
  .ics-import-hero { flex-direction: column; }
  .ics-import-summary { grid-template-columns: 1fr; }
  .ics-preview-event { grid-template-columns: 1fr; }
  .ics-preview-date { padding-right: 0; padding-bottom: 9px; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 430px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric { min-height: 128px; }
  .topbar { display: grid; }
  .top-actions { justify-content: flex-start; }
  .workspace-picker select, .workspace-picker .ui-select { width: min(148px, 42vw); }
  .job-control-section { padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
