:root {
  color-scheme: light;
  --ink: #183337;
  --ink-soft: #53686a;
  --muted: #7f9090;
  --canvas: #f6f6f1;
  --surface: #fffefa;
  --surface-soft: #f0f3ef;
  --line: #e4e9e3;
  --navy: #142e34;
  --navy-soft: #1e3c42;
  --teal: #2c7972;
  --teal-dark: #205e59;
  --teal-pale: #e4f2ed;
  --amber: #b77726;
  --amber-pale: #fbf0da;
  --blue: #5477a7;
  --blue-pale: #e9f0f8;
  --violet: #7866a1;
  --violet-pale: #f0ecf8;
  --rose: #a4616d;
  --rose-pale: #f8eaed;
  --shadow: 0 10px 28px rgba(29, 54, 54, .045);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.google-login { margin: 24px 0; }
.google-login p { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; transform: translateY(-160%); padding: 10px 14px; background: white; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #79b9a9; outline-offset: 2px; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 12; width: 250px; display: flex; flex-direction: column; padding: 25px 15px 15px; background: var(--navy); color: #edf5f1; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; background: #b8e0d6; color: var(--navy); font-family: Georgia, serif; font-size: 28px; font-weight: 700; line-height: 1; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.18; }
.brand-name { color: #f4f7f3; font-size: 17px; font-weight: 650; letter-spacing: -.035em; }
.brand-caption { margin-top: 4px; color: #a9c0bb; font-size: 10px; letter-spacing: .085em; text-transform: uppercase; }
.nav-label { display: flex; align-items: center; justify-content: space-between; padding: 0 11px; margin: 35px 0 9px; color: #91aaa6; font-size: 10px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.candidate-nav-label { margin-top: 28px; }
.nav-count { min-width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid #39565a; border-radius: 7px; color: #c4d2cd; font-size: 10px; letter-spacing: 0; }
.primary-nav, .candidate-nav { display: grid; gap: 4px; }
.nav-link, .candidate-nav-link { min-width: 0; width: 100%; min-height: 43px; display: flex; align-items: center; gap: 12px; padding: 8px 11px; border: 0; border-radius: 9px; background: transparent; color: #bed0cc; text-align: left; transition: background .16s ease, color .16s ease; }
.nav-link:hover, .candidate-nav-link:hover { background: rgba(255,255,255,.07); color: white; }
.nav-link.is-active, .candidate-nav-link.is-active { background: #27474a; color: #f7fbf8; box-shadow: inset 2px 0 #82c4b4; }
.nav-icon { width: 19px; color: #a7c6bd; font-size: 20px; line-height: 1; text-align: center; }
.candidate-nav-link { gap: 10px; min-height: 53px; padding: 7px 9px; }
.candidate-nav-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.candidate-nav-name { overflow: hidden; color: inherit; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.candidate-nav-meta { overflow: hidden; color: #9eb5b0; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.mini-count { min-width: 21px; height: 21px; display: grid; place-items: center; padding: 0 5px; border-radius: 7px; background: #3a5c5b; color: #e0efea; font-size: 10px; }
.sidebar-spacer { flex: 1; min-height: 24px; }
.sidebar-bottom { padding-top: 13px; border-top: 1px solid rgba(205,226,218,.12); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 14px 9px 4px; margin-top: 13px; border-top: 1px solid rgba(205,226,218,.12); }
.user-avatar { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #496361; border-radius: 50%; background: #254449; color: #d9eee6; font-size: 10px; font-weight: 700; }
.sidebar-user-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.sidebar-user-name { overflow: hidden; color: #ecf5f0; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-caption { color: #96afaa; font-size: 10px; }
.secure-dot, .refreshed-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: #76ba9e; }

.main-column { width: calc(100% - 250px); min-width: 0; margin-left: 250px; }
.topbar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 34px; border-bottom: 1px solid #e8ebe5; background: rgba(255,254,250,.88); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #8a9896; font-size: 12px; white-space: nowrap; }
.breadcrumbs span:last-child { color: #2c4749; font-weight: 600; }
.crumb-divider { color: #bac4bd; }
.topbar-actions { min-width: 0; display: flex; align-items: center; gap: 9px; }
.search-box { width: min(275px, 26vw); height: 37px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #e4e9e3; border-radius: 8px; background: #fff; color: #778a87; }
.search-box > span { font-size: 21px; line-height: 1; transform: rotate(-15deg); }
.search-box input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.search-box input::placeholder { color: #98a5a0; }
.candidate-filter-wrap select { width: 136px; height: 37px; padding: 0 25px 0 10px; border: 1px solid #e4e9e3; border-radius: 8px; background-color: white; color: #506567; font-size: 11px; }
.icon-button { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid #e4e9e3; border-radius: 8px; background: white; color: #526c6a; }
.icon-button:hover { border-color: #bad4ca; background: #f5fbf7; }
.icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.refresh-button.is-spinning svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.logout-button { min-height: 37px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: #637878; font-size: 11px; font-weight: 600; }
.logout-button:hover { background: #eef3ef; color: var(--ink); }
.logout-button:disabled { opacity: .55; cursor: wait; }
.mobile-menu-button { display: none; }
.main-content { max-width: 1630px; margin: 0 auto; padding: 29px 34px 54px; }
#view-content { display: grid; gap: 21px; }
.notice { padding: 11px 14px; border: 1px solid; border-radius: 9px; font-size: 12px; }
.notice-error { border-color: #efcebf; background: #fff4ef; color: #934d39; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 1px; }
.page-heading-copy { min-width: 0; }
.eyebrow { color: #718985; font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.page-title { margin: 4px 0 2px; color: #213c3f; font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 2.5vw, 32px); font-weight: 500; letter-spacing: -.04em; line-height: 1.2; }
.page-subtitle { margin: 5px 0 0; color: var(--ink-soft); font-size: 12px; }
.refreshed-label { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #e2eae3; border-radius: 20px; background: rgba(255,255,255,.6); color: #778b85; font-size: 10px; white-space: nowrap; }
.refreshed-dot { width: 6px; height: 6px; }
.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 11px; }
.metric-card { min-width: 0; min-height: 105px; padding: 14px 15px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow); }
.metric-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.metric-label { color: #708280; font-size: 10px; font-weight: 600; }
.metric-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: var(--teal-pale); color: var(--teal); font-size: 14px; }
.metric-value { margin-top: 9px; color: #253f41; font-family: Georgia, serif; font-size: 25px; line-height: 1; }
.metric-note { margin-top: 6px; color: #8a9892; font-size: 9px; }
.metric-blue .metric-icon { background: var(--blue-pale); color: var(--blue); }
.metric-amber .metric-icon { background: var(--amber-pale); color: var(--amber); }
.metric-violet .metric-icon { background: var(--violet-pale); color: var(--violet); }
.metric-slate .metric-icon { background: #edf0ef; color: #627c79; }
.metric-rose .metric-icon { background: var(--rose-pale); color: var(--rose); }
.content-grid { display: grid; min-width: 0; gap: 15px; }
.content-grid-main { grid-template-columns: minmax(0,.91fr) minmax(0,1.09fr); }
.content-grid-lower { grid-template-columns: repeat(2,minmax(0,1fr)); }
.panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.panel-heading { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 17px 11px; border-bottom: 1px solid #edf0eb; }
.panel-heading-copy { min-width: 0; }
.panel-title { margin: 0; color: #264345; font-size: 13px; font-weight: 650; letter-spacing: -.01em; }
.panel-subtitle { margin: 3px 0 0; color: #8a9994; font-size: 10px; }
.panel-tools { flex: 0 0 auto; }
.compact-filter select { max-width: 145px; height: 30px; padding: 0 25px 0 9px; border: 1px solid #e4e9e4; border-radius: 7px; background: #fff; color: #657976; font-size: 10px; }
.panel-body { padding: 4px 16px 15px; }
.empty-state { min-height: 154px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 15px; text-align: center; }
.empty-icon { width: 33px; height: 33px; display: grid; place-items: center; margin-bottom: 9px; border-radius: 11px; background: #edf4f0; color: #6b9588; font-family: Georgia, serif; font-size: 19px; }
.empty-title { margin: 0; color: #496061; font-size: 11px; font-weight: 650; }
.empty-copy { max-width: 330px; margin: 5px 0 0; color: #93a09b; font-size: 10px; }

.candidate-roster { display: grid; }
.candidate-row { width: 100%; min-width: 0; display: flex; align-items: center; gap: 11px; padding: 12px 2px; border: 0; border-bottom: 1px solid #eff1ed; background: transparent; text-align: left; }
.candidate-row:last-child { border-bottom: 0; }
.candidate-row:hover .candidate-row-name { color: var(--teal-dark); }
.candidate-avatar { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.avatar-small { width: 30px; height: 30px; border-radius: 10px; font-size: 9px; }
.avatar-large { width: 58px; height: 58px; border-radius: 17px; font-size: 15px; }
.tone-0 { background: #e5efe8; color: #3f7667; }
.tone-1 { background: #f4e9df; color: #a3633f; }
.tone-2 { background: #e7e9f4; color: #686f9e; }
.tone-3 { background: #f5e7eb; color: #a45f71; }
.tone-4 { background: #e4eef2; color: #4c7687; }
.tone-5 { background: #f1edda; color: #82743c; }
.candidate-row-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.candidate-row-name-line { min-width: 0; display: flex; align-items: center; gap: 7px; }
.candidate-row-name { overflow: hidden; color: #324b4c; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.candidate-row-detail { overflow: hidden; color: #899894; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.candidate-row-counts { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.count-main { color: #4a6561; font-size: 10px; font-weight: 600; }
.count-sub { color: #99a49f; font-size: 9px; }
.row-chevron { color: #a3b0a9; font-size: 21px; line-height: 1; }
.status-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 21px; padding: 2px 7px; border: 1px solid #e2e8e2; border-radius: 20px; background: #f4f6f2; color: #6b7d77; font-size: 9px; font-weight: 650; line-height: 1.25; white-space: nowrap; }
.candidate-row-name-line .status-badge { min-height: 18px; padding: 1px 6px; font-size: 8px; }
.status-active, .status-running { border-color: #cfe4d9; background: #eaf5ef; color: #42816b; }
.status-queued, .status-pending { border-color: #dbe6f0; background: #eff4f9; color: #5c7698; }
.status-complete, .status-completed, .status-applied, .status-hired { border-color: #cfe4d9; background: #eaf5ef; color: #42816b; }
.status-needs-input, .status-update-overdue, .status-attention { border-color: #f0d9ad; background: #fff5e3; color: #9a6928; }
.status-failed, .status-error, .status-rejected { border-color: #edcfd0; background: #fbefef; color: #a0555a; }
.status-unknown { color: #87938d; }

.attention-list { display: grid; }
.attention-row { width: 100%; display: flex; align-items: center; gap: 11px; padding: 12px 1px; border: 0; border-bottom: 1px solid #eff1ed; background: transparent; text-align: left; }
.attention-row:last-child { border-bottom: 0; }
.attention-marker { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; font-weight: 700; }
.marker-amber { background: var(--amber-pale); color: var(--amber); }
.marker-teal { background: var(--teal-pale); color: var(--teal); }
.attention-copy { min-width: 0; flex: 1; display: grid; gap: 3px; }
.attention-task-title { overflow: hidden; color: #435a58; font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.attention-task-meta { color: #8d9a94; font-size: 9px; }

.task-card { padding: 14px 0; border-bottom: 1px solid #eff1ed; }
.task-card:last-child { border-bottom: 0; }
.task-card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.task-card-copy { min-width: 0; }
.task-title, .opportunity-title, .message-subject { margin: 0; color: #385050; font-size: 11px; font-weight: 650; }
.task-summary { margin: 4px 0 0; color: #758682; font-size: 10px; line-height: 1.5; }
.task-question { margin: 10px 0 0; padding: 9px 11px; border-left: 3px solid #d8af69; border-radius: 0 7px 7px 0; background: #fff8eb; color: #70572f; font-size: 10px; line-height: 1.5; white-space: pre-wrap; }
.field-hint { margin: 0; color: #9a6c4c; font-size: 9px; }
.task-meta, .timeline-meta, .opportunity-details, .opportunity-footer, .message-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 11px; margin-top: 9px; }
.meta-item { color: #899791; font-size: 9px; }
.meta-chip { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 6px; background: #eef3ef; color: #6a837a; font-size: 9px; }
.overdue-note { color: #a36c2d; font-size: 9px; font-weight: 650; }
.response-form { display: grid; gap: 7px; margin-top: 13px; padding: 12px; border: 1px solid #f0e3c9; border-radius: 9px; background: #fffcf4; }
.field-label { color: #536a65; font-size: 10px; font-weight: 650; }
.response-form textarea, .note-form textarea, .note-form select { width: 100%; padding: 9px 10px; border: 1px solid #dfe7df; border-radius: 8px; background: #fff; color: var(--ink); font-size: 11px; resize: vertical; }
.response-form textarea { min-height: 61px; }
.response-form textarea::placeholder, .note-form textarea::placeholder { color: #9aa8a1; }
.button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid transparent; border-radius: 8px; font-size: 10px; font-weight: 650; transition: background .16s ease, border .16s ease; }
.button-primary { background: var(--teal); color: white; }
.button-primary:hover { background: var(--teal-dark); }
.button-primary:disabled, .button-outline:disabled { opacity: .55; cursor: wait; }
.button-small { min-height: 31px; justify-self: start; padding: 0 11px; }
.button-outline { border-color: #dce7df; background: white; color: #54736a; }
.button-outline:hover { border-color: #b5d1c5; background: #f5faf6; }
.button-subtle { border-color: #e1e8e2; background: white; color: #58736d; }
.load-more { margin: 12px 0 1px; }

.timeline-item { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 10px; padding: 14px 0 12px; border-bottom: 1px solid #eff1ed; }
.timeline-item:last-of-type { border-bottom: 0; }
.timeline-rail { position: relative; display: flex; justify-content: center; }
.timeline-item:not(:last-of-type) .timeline-rail::after { position: absolute; top: 13px; bottom: -15px; width: 1px; background: #e5ece6; content: ""; }
.timeline-dot { position: relative; z-index: 1; width: 8px; height: 8px; margin-top: 5px; border: 2px solid #7db3a0; border-radius: 50%; background: white; }
.timeline-content { min-width: 0; }
.timeline-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.timeline-title { margin: 0; color: #435958; font-size: 10px; font-weight: 650; }
.timeline-detail { margin: 5px 0 0; color: #778782; font-size: 10px; }
.timeline-meta { margin-top: 7px; }
.text-link { display: inline-block; margin-top: 8px; color: #347d70; font-size: 10px; font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.opportunity-card, .message-card { padding: 14px 0; border-bottom: 1px solid #eff1ed; }
.opportunity-card:last-child, .message-card:last-child { border-bottom: 0; }
.opportunity-topline, .message-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.opportunity-copy { min-width: 0; }
.opportunity-company { margin: 4px 0 0; color: #81908b; font-size: 10px; }
.opportunity-details { margin-top: 9px; }
.pay-chip { background: #edf5ef; color: #3f7a65; font-weight: 650; }
.opportunity-requirements { flex-basis: 100%; margin: 1px 0 0; color: #7d8b86; font-size: 9px; line-height: 1.5; }
.opportunity-footer { justify-content: space-between; margin-top: 10px; }
.opportunity-footer .text-link { margin-top: 0; }
.index-job .opportunity-title { font-size: 13px; }
.index-panel .panel-heading { flex-wrap: wrap; }
.index-panel .panel-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.index-panel .compact-filter select { width: 158px; max-width: 100%; }
.index-risk { margin: 9px 0 0; padding: 7px 9px; border-left: 3px solid #d8af69; background: #fff8eb; color: #765d35; font-size: 10px; line-height: 1.4; }
.index-source { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; padding: 11px 0; border-bottom: 1px solid #eff1ed; }
.index-source:last-child { border-bottom: 0; }
.index-source-name { min-width: 140px; flex: 1; color: #385050; font-size: 11px; font-weight: 650; }
.otp-chip { flex: 0 0 auto; background: #eff2fb; color: #6373a0; }
.message-meta { margin-top: 7px; }
.message-time { display: block; margin-top: 7px; color: #9aa59f; font-size: 9px; }
.notes-list { display: grid; gap: 8px; padding-left: 17px; color: #647a73; font-size: 10px; }
.existing-note { color: #647a73; font-size: 10px; white-space: pre-wrap; }
.note-form { display: grid; gap: 8px; padding-top: 12px; }
.note-form select { min-height: 36px; }
.note-form textarea { min-height: 73px; }
.panel-span-two { grid-column: 1 / -1; }

.candidate-profile { padding: 18px; }
.candidate-profile-main { display: flex; align-items: center; gap: 14px; }
.candidate-profile-identity { min-width: 0; flex: 1; }
.candidate-profile-name { margin: 3px 0 0; color: #294447; font-family: Georgia, serif; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.candidate-profile-sub { margin: 3px 0 0; color: #7c8e88; font-size: 10px; }
.candidate-contact { margin: 14px 0 0 72px; color: #70837c; font-size: 10px; }
.candidate-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin-top: 17px; }
.candidate-metrics .metric-card { min-height: 89px; padding: 11px 12px; box-shadow: none; }
.candidate-metrics .metric-value { margin-top: 6px; font-size: 21px; }
.candidate-last-activity { margin-top: 12px; color: #8a9993; font-size: 9px; }

.connection-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; padding: 13px 0; }
.connection-card { min-height: 93px; display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid #e7ece6; border-radius: 10px; background: #fff; }
.connection-indicator { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: #aab8b3; box-shadow: 0 0 0 4px #eff2ef; }
.connection-connected, .connection-active, .connection-healthy, .connection-ready { background: #62a785; box-shadow: 0 0 0 4px #e8f4ed; }
.connection-disconnected, .connection-error, .connection-failed { background: #c9786e; box-shadow: 0 0 0 4px #f8ece9; }
.connection-not-connected, .connection-idle { background: #d1a45e; box-shadow: 0 0 0 4px #fbf3e3; }
.connection-copy { min-width: 0; display: grid; justify-items: start; gap: 6px; }
.connection-title { margin: 0; color: #3f5857; font-size: 11px; font-weight: 650; }
.connection-detail { margin: 0; color: #81918a; font-size: 9px; line-height: 1.45; }
.coverage-note { margin: 12px 0 4px; padding: 12px 13px; border-radius: 8px; background: #f2f6f1; color: #71847d; font-size: 10px; }
.load-error-card { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); text-align: center; }
.load-error-title { margin: 2px 0 0; color: #324b4c; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.load-error-copy { max-width: 410px; margin: 7px 0 18px; color: #788984; font-size: 11px; }
.toast { position: fixed; right: 24px; bottom: 22px; z-index: 25; max-width: min(480px, calc(100vw - 32px)); padding: 12px 15px; border: 1px solid #bcd9cb; border-radius: 10px; background: #f2faf5; box-shadow: 0 14px 36px rgba(24,50,49,.15); color: #416b5d; font-size: 11px; }
.toast-error { border-color: #edcfca; background: #fff5f2; color: #98584d; }
.mobile-scrim { display: none; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: #eff2ed; }
.login-layout { width: min(920px,100%); min-height: 570px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid #e3e9e2; border-radius: 17px; background: var(--surface); box-shadow: 0 25px 70px rgba(28,51,49,.1); }
.login-panel { display: flex; flex-direction: column; padding: 35px 48px 25px; }
.login-brand { padding: 0; }
.login-brand .brand-name { color: #263f42; }
.login-brand .brand-caption { color: #82948c; }
.login-intro { margin-top: 75px; }
.login-intro .eyebrow { color: #498678; }
.login-intro h1 { margin: 7px 0; color: #203e40; font-family: Georgia, serif; font-size: 33px; font-weight: 500; letter-spacing: -.04em; }
.login-intro p { max-width: 315px; margin: 0; color: #788984; font-size: 12px; }
.login-footnote { display: flex; align-items: center; gap: 8px; margin: auto 0 0; padding-top: 30px; color: #8d9b94; font-size: 9px; }
.login-footnote .secure-dot { width: 6px; height: 6px; }
.login-aside { position: relative; min-height: 570px; display: flex; overflow: hidden; flex-direction: column; justify-content: center; padding: 55px 47px; background: #183b3e; color: #edf6f0; }
.login-aside::before { position: absolute; inset: 0; background: radial-gradient(ellipse at 100% 0%, rgba(103,164,143,.18), transparent 55%), linear-gradient(145deg, #1d4547, #153338 73%); content: ""; }
.login-aside-shape { position: absolute; border: 1px solid rgba(177,216,198,.13); border-radius: 50%; }
.shape-one { width: 420px; height: 420px; right: -205px; top: -128px; }
.shape-two { width: 290px; height: 290px; right: -140px; top: -58px; border-color: rgba(177,216,198,.09); }
.login-aside-content { position: relative; z-index: 1; margin-top: -18px; }
.aside-kicker { color: #a9d1c1; font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.login-aside h2 { max-width: 345px; margin: 13px 0 11px; color: #f2f6ee; font-family: Georgia, serif; font-size: 35px; font-weight: 500; letter-spacing: -.04em; line-height: 1.15; }
.login-aside-content > p { max-width: 310px; color: #c0d3ca; font-size: 12px; line-height: 1.7; }
.aside-quote { display: flex; align-items: center; gap: 8px; margin-top: 41px; padding-top: 17px; border-top: 1px solid rgba(226,240,229,.16); color: #d5e5dc; font-size: 10px; }
.quote-mark { color: #b5d7c6; font-family: Georgia, serif; font-size: 29px; line-height: .7; }
.aside-footer { position: absolute; z-index: 1; bottom: 27px; left: 47px; color: #8eafa2; font-size: 8px; font-weight: 650; letter-spacing: .14em; }
.aside-footer span { padding: 0 5px; color: #d6bb87; }

@media (max-width: 1250px) {
  .metric-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .topbar { padding-right: 25px; padding-left: 25px; }
  .main-content { padding-right: 25px; padding-left: 25px; }
  .search-box { width: min(235px,23vw); }
}

@media (max-width: 980px) {
  .sidebar { width: 224px; }
  .main-column { width: calc(100% - 224px); margin-left: 224px; }
  .topbar { gap: 12px; padding: 12px 18px; }
  .main-content { padding: 24px 18px 42px; }
  .content-grid-main, .content-grid-lower { grid-template-columns: minmax(0,1fr); }
  .panel-span-two { grid-column: auto; }
  .connection-grid { grid-template-columns: 1fr; }
  .connection-card { min-height: 72px; }
  .search-box { width: 190px; }
  .candidate-filter-wrap select { width: 118px; }
}

@media (max-width: 760px) {
  .sidebar { width: min(286px, 84vw); visibility: hidden; transform: translateX(-103%); transition: transform .22s ease, visibility .22s; box-shadow: 16px 0 45px rgba(15,39,41,.17); }
  body.nav-open .sidebar { visibility: visible; transform: translateX(0); }
  .main-column { width: 100%; margin-left: 0; }
  .topbar { position: sticky; top: 0; z-index: 9; min-height: 64px; flex-wrap: wrap; gap: 9px; padding: 10px 14px; }
  .mobile-menu-button { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #e2e9e3; border-radius: 8px; background: #fff; color: #47635e; font-size: 16px; }
  .breadcrumbs { flex: 1; gap: 7px; font-size: 11px; }
  .topbar-actions { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto auto auto; gap: 7px; }
  .search-box { width: 100%; height: 35px; }
  .candidate-filter-wrap select { width: 112px; height: 35px; }
  .icon-button { width: 35px; height: 35px; }
  .logout-button { min-height: 35px; padding: 0 8px; }
  .main-content { padding: 20px 13px 38px; }
  #view-content { gap: 15px; }
  .page-heading { align-items: flex-start; }
  .page-title { font-size: 26px; }
  .page-subtitle { max-width: 540px; }
  .refreshed-label { margin-top: 1px; padding: 6px 8px; font-size: 8px; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .metric-card { min-height: 94px; padding: 11px; }
  .metric-value { font-size: 23px; }
  .panel-heading { padding: 12px 13px 10px; }
  .panel-body { padding-right: 13px; padding-left: 13px; }
  .candidate-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .candidate-profile { padding: 14px; }
  .candidate-contact { margin-left: 0; }
  .mobile-scrim:not([hidden]) { position: fixed; inset: 0; z-index: 11; display: block; background: rgba(12,30,33,.4); }
  .toast { right: 12px; bottom: 12px; }
}

@media (max-width: 480px) {
  .topbar { column-gap: 8px; }
  .topbar-actions { grid-template-columns: minmax(0,1fr) 36px 36px; }
  .candidate-filter-wrap { grid-column: 1 / -1; grid-row: 2; }
  .candidate-filter-wrap select { width: 100%; }
  .search-box { grid-column: 1; grid-row: 1; }
  .refresh-button { grid-column: 2; grid-row: 1; }
  .logout-button { grid-column: 3; grid-row: 1; padding: 0 5px; font-size: 9px; }
  .page-heading { display: block; }
  .refreshed-label { display: inline-flex; margin-top: 10px; }
  .metric-label { font-size: 9px; }
  .metric-note { font-size: 8px; }
  .panel-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .panel-tools { max-width: 100%; }
  .compact-filter select { max-width: 100%; }
  .candidate-row-counts { display: none; }
  .candidate-row-name-line { flex-wrap: wrap; }
  .candidate-profile-main { align-items: flex-start; flex-wrap: wrap; }
  .candidate-profile-main > .status-badge { margin-left: 72px; margin-top: -8px; }
  .login-page { padding: 0; background: var(--surface); }
  .login-layout { min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; box-shadow: none; }
  .login-panel { min-height: 100vh; padding: 25px 25px 22px; }
  .login-intro { margin-top: 60px; }
  .login-aside { display: none; }
}

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