/* Inter (SIL Open Font License), self-hosted as a variable font so no request leaves our origin. */
  @font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/inter-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
  @font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/inter-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
  /* White, neutral surfaces; semantic color is reserved for feedback. */
  :root {
    color-scheme: light;
    --bg: #ffffff; --surface: #ffffff; --text: #202020;
    --brand: #6b5dc9; --accent: #202020; --accent-2: #555555; --divider: #e8e8e6;
    --n100: #202020; --n200: #383838; --n300: #555555; --n400: #6b6b6b; --n500: #767676;
    --n600: #aaaaa6; --n700: #d5d5d2; --n800: #eeeeec; --n900: #f7f7f5;
    --a100: #202020; --a200: #383838; --a300: #555555; --a400: #666666; --a500: #888888;
    --a600: #aaaaa6; --a700: #d5d5d2; --a800: #eeeeec; --a900: #f7f7f5;
    --sh-sm: 0 0 0 1px var(--divider);
    --sh-md: 0 4px 20px #0000000a, 0 0 0 1px var(--divider);
    --sh-lg: 0 20px 64px #0000001a, 0 0 0 1px var(--divider);
    --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
    --hover-surface: #fafaf9; --row-bleed: 16px; --control-size: 44px; --mobile-gutter: 20px;
    --ok: #287653; --danger: #b93832; --knob-shadow: 0 1px 3px #00000026;
    --status-saved: #626262; --status-applied: #245caa; --status-interviewing: #6b4fb0;
    --status-offer: #236b48; --status-rejected: #ac3939;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { background: var(--bg); -webkit-tap-highlight-color: transparent; }
  body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased;
    touch-action: manipulation; -webkit-text-size-adjust: 100%;
  }
  h1, h2, h3, h4, h5 { font-family: var(--font); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
  a { color: var(--accent); text-decoration: none; }
  ::placeholder { color: var(--n500); }
  :focus { outline: none; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  ::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
  button { font-family: inherit; }
  [hidden] { display: none !important; }

  .ic { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -0.125em; flex: none; }
  .kicker { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
  .muted { color: var(--n400); }
  .faint { color: var(--n500); }
  @keyframes jv-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .rise { animation: jv-rise .45s ease backwards; }
  @media (prefers-reduced-motion: reduce) { .rise { animation: none; } }

  /* ── buttons ── */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    cursor: pointer; text-decoration: none; font-weight: 500; font-size: 14px; line-height: 1.2;
    color: var(--text); background: transparent; border: 1px solid transparent;
    padding: 8px 12px; border-radius: 999px; white-space: nowrap;
  }
  .btn:disabled { opacity: .45; cursor: not-allowed; }
  .btn-primary { color: #fff; background: var(--accent); border-color: var(--accent); }
  @media (hover: hover) and (pointer: fine) { .btn-primary:hover { background: #404040; border-color: #404040; } }
  .btn-primary:active { background: #111; }
  .btn-solid { color: #fff; background: var(--accent); border-color: var(--accent); }
  @media (hover: hover) and (pointer: fine) { .btn-solid:hover { background: color-mix(in srgb, var(--accent) 88%, #000); } }
  .btn-secondary { border-color: var(--divider); }
  @media (hover: hover) and (pointer: fine) { .btn-secondary:hover { background: color-mix(in srgb, var(--text) 7%, transparent); } }
  .btn-ghost { color: var(--accent); padding-inline: 6px; }
  @media (hover: hover) and (pointer: fine) { .btn-ghost:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); } }
  .btn-icon { width: 36px; height: 36px; padding: 0; font-size: 18px; }
  .btn-danger { color: #fff; background: var(--danger); border-color: var(--danger); }

  .input {
    width: 100%; min-height: 40px; padding: 8px 12px; font: inherit; font-size: 14px;
    color: var(--text); caret-color: var(--accent); background: var(--surface);
    border: 1px solid var(--divider); border-radius: var(--r-md);
  }
  @media (hover: hover) and (pointer: fine) { .input:hover { border-color: color-mix(in srgb, var(--text) 45%, transparent); } }
  .input:focus-visible { border-color: var(--accent); outline-offset: 0; }
  textarea.input { resize: vertical; line-height: 1.5; }
  input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

  /* ── surfaces ── */
  .card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
  .mono {
    position: relative; flex: none; display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--r-md);
    background: var(--n800); color: var(--n200); font-weight: 500; font-size: 15px; overflow: hidden;
  }
  .mono img { position: absolute; width: 78%; height: 78%; object-fit: contain; border-radius: 4px; }
  .mono.has-ico { color: transparent; background: var(--surface); box-shadow: inset 0 0 0 1px var(--divider); }
  .mono.s44 { width: 44px; height: 44px; font-size: 17px; }
  .mono.s36 { width: 36px; height: 36px; font-size: 14px; }
  .mono.s34 { width: 34px; height: 34px; font-size: 14px; }
  .pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 11px 4px 9px; border-radius: 999px; white-space: nowrap; }
  .pill .ic { font-size: 12px; }
  .tag { display: inline-flex; align-items: center; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--n800); color: var(--n200); }
  .tag-accent { background: var(--a800); color: var(--a200); }
  .tag-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
  .bm { color: var(--accent); }
  .bm.on .ic { color: var(--accent); }
  .bm:not(.on) .ic { opacity: .55; }
  @media (hover: hover) and (pointer: fine) { .bm:hover .ic { opacity: 1; } }
  .empty { text-align: center; color: var(--n400); padding: 56px 0; font-size: 15px; }

  /* ── loader ── */
  #loader {
    position: fixed; inset: 0; z-index: 100; background: var(--bg);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    transition: opacity .35s ease;
  }
  #loader.hide { opacity: 0; pointer-events: none; }
  .logo-mark {
    display: flex; align-items: center; justify-content: center; flex: none;
    width: 28px; height: 28px; border-radius: var(--r-md); background: var(--accent); color: #fff; font-size: 16px;
  }
  .logo-mark.big { width: 56px; height: 56px; border-radius: 16px; font-size: 30px; animation: pulse 1.8s ease-in-out infinite; }
  @keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
  .page-loading { display:flex; justify-content:center; padding:28px; }
  /* Skeleton placeholders mirror the card/row they stand in for. */
  .skeleton { position: relative; overflow: hidden; display: block; background: var(--n800); border-radius: 6px; }
  .skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 60%, transparent), transparent); animation: shimmer 1.4s ease-in-out infinite; }
  @keyframes shimmer { to { transform: translateX(100%); } }
  .sk-card { cursor: default; pointer-events: none; }
  .sk-line { height: 12px; }
  .sk-card .sk-line { display: inline-block; vertical-align: middle; height: .8em; }
  .sk-card .t { display: block; }
  .tag.skeleton { color: transparent; }
  .sk-reaction { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
  .sk-reaction i { display: block; width: 22px; height: 22px; border-radius: 50%; }
  .sk-tile { width: 34px; height: 34px; border-radius: var(--r-md); flex: none; }
  .sk-row { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
  .sk-row .sk-main { flex: 1; display: flex; flex-direction: column; gap: 8px; }
  @media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; } }
  /* Company page: logo header and a compact posting list. */
  /* Logo left, name, and the posting count pinned right in the same row so it never shifts the layout when it appears. */
  .company-head { display: flex; align-items: center; gap: 16px; margin: 24px 0 28px; min-height: 56px; }
  .page .company-head h1 { flex: 1 1 auto; min-width: 0; margin: 0; overflow-wrap: anywhere; }
  .company-head .sub { flex: 0 1 auto; max-width: 45%; margin: 0; text-align: right; }
  @media (max-width: 640px) { .company-head { gap: 12px; flex-wrap: wrap; } .page .company-head h1 { font-size: 24px; flex-basis: calc(100% - 68px); } .company-head .sub { max-width: 100%; flex-basis: 100%; text-align: left; font-size: 13px; } }
  .mono.s56 { width: 56px; height: 56px; font-size: 22px; border-radius: var(--r-lg); }
  .mono.s56 img { width: 32px; height: 32px; }
  .company-search { flex: none; max-width: 420px; margin: -8px 0 16px; }
  .company-groups { display: flex; flex-direction: column; gap: 28px; }
  .company-list { overflow: hidden; }
  .company-list > p { padding: 20px; color: var(--n400); font-size: 14px; margin: 0; }
  @media (max-width: 640px) {
    /* Keep company rows on the same content grid as their headings. */
    .company-groups .company-list { margin-inline: 0; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
    .company-groups .crow { padding: 16px 0; }
    .company-groups { gap: 24px; }
  }
  .crow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 14px 20px; position: relative; cursor: pointer; }
  @media (hover:hover) and (pointer:fine) { .crow:hover { background: var(--n900); } }
  .crow .t { font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
  .crow .w { font-size: 13px; color: var(--n400); margin-top: 2px; }
  .crow .pay { font-size: 14px; color: var(--n300); white-space: nowrap; }
  .crow a.cover::after { content: ""; position: absolute; inset: 0; z-index: 1; }
  @media (max-width: 640px) { .crow { grid-template-columns: minmax(0, 1fr) auto; } .crow .pay { display: none; } }
  .btn .spinner { display:inline-block; width:18px; height:18px; border-width:2px; border-color:currentColor; border-right-color:transparent; vertical-align:middle; }
  .spinner { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--n800); border-top-color: var(--accent); animation: spin .7s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { .logo-mark.big, .spinner { animation: none; } }
  .brand { display: flex; align-items: center; gap: 9px; font-weight: 500; font-size: 17px; letter-spacing: -0.015em; color: var(--text); text-decoration: none; -webkit-tap-highlight-color: transparent; }
  @media (hover: hover) and (pointer: fine) { .brand:hover { color: var(--text); text-decoration: none; } }
  .brand:active { color: var(--text); text-decoration: none; }
  .brand:focus { outline: none; }
  .brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r-sm); }

  /* ── onboarding ── */
  #onboarding { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
  .ob-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; height: 64px; padding: 0 32px; }
  .ob-signin { grid-column: 3; justify-self: end; white-space: nowrap; padding: 8px 10px; }
  .ob-progress { grid-column: 2; justify-self: center; display: flex; gap: 6px; }
  .ob-progress span { width: 28px; height: 3px; border-radius: 2px; background: var(--n700); }
  .ob-progress span.on { background: var(--accent); }
  .ob-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 32px 140px; }
  .ob-body.long-step { align-items: flex-start; }
  .preview-carousel:empty { display: none; }
  .ob-inner { width: 100%; max-width: 680px; }
  .ob-inner h1 { font-size: 40px; line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 12px; }
  .ob-inner h1.hero { font-size: 52px; line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 20px; }
  .ob-inner .lead { font-size: 16px; color: var(--n400); margin: 0 0 36px; max-width: 48ch; }
  .ob-inner .lead.big { font-size: 18px; line-height: 1.5; max-width: 40ch; margin: 0 auto 40px; }
  .ob-auth { max-width: 560px; margin: 0 auto; }
  .ob-auth .lead { margin-bottom: 28px; }
  .ob-auth form { max-width: 420px; margin: 0 auto; text-align: left; }
  .ob-auth .input { width: 100%; min-height: 48px; font-size: 16px; }
  .ob-auth .auth-submit { width: 100%; min-height: 48px; margin-top: 14px; }
  #obCodeActions { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:20px; }
  .auth-submit .spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; flex-shrink: 0; }
  .ob-auth .auth-status { font-size: 13px; line-height: 1.5; margin: 14px 0 0; color: var(--n400); }
  .center { text-align: center; }
  .center .lead { margin-inline: auto; }
  .ob-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 18px 32px calc(28px + env(safe-area-inset-bottom));
    background: var(--bg); box-shadow: 0 -1px 0 var(--divider);
  }
  .ob-nav > div { max-width: 680px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
  .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile {
    display: flex; align-items: flex-start; gap: 14px; text-align: left; cursor: pointer;
    padding: 18px 18px 18px 16px; border-radius: var(--r-lg); border: none; font: inherit; color: var(--text);
    background: var(--surface); box-shadow: var(--sh-sm); transition: box-shadow .12s;
  }
  @media (hover: hover) and (pointer: fine) { .tile:hover { box-shadow: var(--sh-md); } }
  .tile.on { background: var(--a900); box-shadow: 0 0 0 2px var(--accent); }
  .tile .ti { font-size: 22px; margin-top: 2px; color: var(--n500); }
  .tile.on .ti { color: var(--accent); }
  .tile .tt { display: block; font-weight: 500; font-size: 16px; }
  .tile .ts { display: block; font-size: 13px; color: var(--n400); margin-top: 2px; }
  .tile .tc { font-size: 20px; color: var(--n700); margin-left: auto; }
  .tile.on .tc { color: var(--accent); }
  .tile.col { flex-direction: column; padding: 20px 18px; }
  .tile.col .ti { font-size: 26px; margin: 0; }
  .category-tiles .tile { padding-block: 14px; }
  .lbl { display: block; font-size: 13px; color: var(--n400); margin-bottom: 8px; }
  .loc-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
  .loc-row .ic { font-size: 18px; color: var(--accent); }
  .loc-row span { flex: 1; font-size: 16px; }
  .loc-add { position: relative; }
  .location-suggestions { border:1px solid var(--divider); border-radius:var(--r-lg); background:var(--surface); padding:4px; margin-top:6px; }
  .location-suggestions button { display:block; width:100%; padding:12px; min-height:44px; text-align:left; border:0; border-radius:var(--r-sm); background:transparent; color:var(--text); font:inherit; cursor:pointer; }
  @media (hover: hover) and (pointer: fine) { .location-suggestions button:hover { background:var(--a800); } }
  .location-suggestions button[aria-selected="true"] { background:var(--a800); }
  .loc-add > .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--n500); }
  .loc-add .input { min-height: 48px; padding-left: 42px; padding-right: 88px; font-size: 16px; border-radius: var(--r-lg); }
  .loc-add .btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 13px; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .chip {
    display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; padding: 6px 12px;
    border-radius: 999px; cursor: pointer; border: 1px solid var(--divider); background: var(--surface); color: var(--n300);
  }
  .chip.on { border-color: var(--accent); background: var(--a900); color: var(--accent); }
  .pref-row {
    display: flex; align-items: center; gap: 16px; text-align: left; padding: 18px 20px; width: 100%;
    border: none; cursor: pointer; font: inherit; color: var(--text);
  }
  .pref-row .pi { font-size: 22px; color: var(--accent); }
  .pref-row .pt { display: block; font-weight: 500; font-size: 16px; }
  .pref-row .ps { display: block; font-size: 13px; color: var(--n400); }
  .pref-row > span:not(.toggle) { flex: 1; }
  .toggle { width: 42px; height: 26px; border-radius: 13px; position: relative; flex: none; background: var(--n700); transition: background .15s; }
  .toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 10px; background: #fff; box-shadow: var(--knob-shadow); transition: left .15s; }
  .toggle.on { background: var(--accent); }
  .toggle.on::after { left: 19px; }
  .stack { display: flex; flex-direction: column; gap: 10px; }
  .stack-8 { display: flex; flex-direction: column; gap: 8px; }
  .prev-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
  .prev-row .pt { font-weight: 500; font-size: 15px; }
  .prev-row .pm { font-size: 13px; color: var(--n400); }
  .prev-row .body { flex: 1; min-width: 0; }
  .preview-carousel { position: relative; max-width: 520px; height: 208px; margin: 56px auto 0; overflow: hidden; text-align: left; mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent); }
  .preview-card { position: absolute; top: 0; left: 0; right: 0; min-height: 64px; padding: 12px 14px; background: var(--surface); animation: preview-card-shift 40s cubic-bezier(.22, 1, .36, 1) infinite; animation-delay: var(--delay); will-change: transform, opacity, background-color; }
  .preview-card .pt, .preview-card .pm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  @keyframes preview-card-shift {
    0% { transform: translateY(180px) scale(.94); opacity: 0; background-color: var(--surface); }
    4% { transform: translateY(144px) scale(.97); opacity: .44; background-color: var(--surface); }
    6%, 9% { transform: translateY(72px) scale(.985); opacity: .72; background-color: var(--surface); }
    11%, 14% { transform: translateY(0) scale(1); opacity: 1; background-color: var(--surface); }
    16%, 100% { transform: translateY(-72px) scale(.96); opacity: 0; background-color: var(--a800); }
  }
  .info-pill { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 999px; font-size: 14px; margin-bottom: 40px; max-width: 100%; }
  .info-pill .ic { font-size: 18px; color: var(--accent); }
  @media (min-width:900px) { .info-pill { white-space: nowrap; } }
  .fine { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--n400); }
  .fine .ic { color: var(--accent); }

  /* ── app nav ── */
  #app { padding-top: 56px; }
  .nav {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; padding: 14px 32px;
    position: fixed; top: 0; left: 0; right: 0; z-index: 20;
    background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .seg { position: relative; display: flex; align-items: center; gap: 2px; padding: 3px; background: var(--n800); border-radius: 999px; isolation: isolate; }
  .seg .tab-indicator {
    position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: var(--tab-w, 0px);
    transform: translateX(var(--tab-x, 0px)); border-radius: inherit; background: var(--surface); box-shadow: var(--sh-sm);
  }
  .seg.ready .tab-indicator { transition: transform .28s cubic-bezier(.2, .8, .2, 1), width .28s cubic-bezier(.2, .8, .2, 1); }
  .seg button {
    position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; cursor: pointer;
    padding: 7px 16px; border-radius: 999px; border: none; background: transparent; color: var(--n400); transition: color .18s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .seg button.on { color: var(--text); }
  .seg button .cnt { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--a800); color: var(--a200); }
  .seg button .ic { color: var(--accent); }
  .nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
  .nav-actions .btn-icon { color: var(--n300); }
  .account-button { display:flex; gap:8px; align-items:center; justify-content:flex-start; text-align:left; padding:4px 8px; min-height:44px; margin-right:-8px; /* avatar edge sits on the column edge */ }
  .account-button .avatar { flex-shrink:0; }
  .account-copy { display:flex; flex-direction:column; align-items:flex-start; min-width:0; line-height:1.25; }
  .account-name { display:block; max-width:220px; white-space:normal; overflow-wrap:anywhere; text-align:left; font-size:13px; }
  .account-copy small { color:var(--n400); font-size:11px; font-weight:400; }
  @media (max-width:800px) { .account-name { max-width:clamp(70px, calc(100vw - 260px), 180px); } }
  .avatar { width: 32px; height: 32px; border-radius: 999px; background: var(--a800); color: var(--a200); display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 13px; }
  .menu { position: relative; }
  .menu-panel {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 190px; padding: 6px;
    display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-md);
  }
  .menu-panel button, .menu-panel a {
    display: flex; align-items: center; gap: 10px; font-size: 13px; text-align: left; cursor: pointer;
    padding: 8px 10px; border: none; border-radius: 6px; background: transparent; color: var(--text); text-decoration: none;
  }
  .menu-panel button .ic { color: var(--n400); font-size: 15px; }
  @media (hover: hover) and (pointer: fine) { .menu-panel button:hover, .menu-panel a:hover { background: var(--n900); } }
  .menu-panel button.danger { color: var(--danger); }
  .menu-panel hr { border: 0; border-top: 1px solid var(--divider); margin: 4px 0; }

  .page { padding: 48px 32px 96px; max-width: 1180px; margin: 0 auto; width: 100%; }
  .page.narrow { max-width: 920px; }
  .page h1 { font-size: 44px; line-height: 1.06; letter-spacing: -0.03em; margin: 12px 0 14px; }
  /* Every tab's first heading sits at the same distance from the top bar. */
  .page > h1:first-child { margin-top: 0; }
  .page .lead { font-size: 18px; color: var(--n400); max-width: 46ch; margin: 0 0 44px; }
  .page .sub { margin: 0; font-size: 16px; color: var(--n400); }
  .page .sub b { color: var(--text); font-weight: 500; }
  .sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
  .sec-head h2 { font-size: 20px; }
  .view:not(.on) { display: none; }
  /* Release the animation's stacking context so fixed drawers sit above the backdrop. */
  .view.view-enter { animation: view-enter .32s cubic-bezier(.22, .9, .36, 1) backwards; }
  @keyframes view-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

  /* ── today ── */
  .strong-row { display: flex; align-items: center; gap: 18px; padding: 18px 20px; cursor: pointer; position: relative; transition: box-shadow .12s; }
  @media (hover: hover) and (pointer: fine) { .strong-row:hover { box-shadow: var(--sh-md); } }
  .strong-row .body { flex: 1; min-width: 0; }
  .strong-row .t { font-weight: 500; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; color: var(--text); }
  .strong-row .m { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--n400); margin-top: 3px; }
  .strong-row .m b { color: var(--n300); font-weight: 400; }
  .why { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent); margin-top: 8px; }
  .why .ic { font-size: 12px; }
  .strong-row a.cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
  .strong-row .bm, .drow .bm, .jcard .bm { position: relative; z-index: 1; }
  .nudges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 8px; }
  .nudge { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
  .nudge .head { display: flex; align-items: center; gap: 12px; }
  .nudge .t { font-weight: 500; font-size: 15px; }
  .nudge .c { font-size: 13px; color: var(--n400); }
  .nudge .line { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--n300); }
  .nudge .line .ic { font-size: 15px; color: var(--accent); }
  .nudge .acts { display: flex; gap: 8px; flex-wrap: wrap; }

  /* ── jobs ── */
  .jobs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; flex-wrap: wrap; margin-bottom: 24px; }
  .jobs-head h1 { margin: 0 0 10px; }
  #jobsSub:empty { display: none; }
  .active-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
  .achip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--sh-sm); color: var(--text); }
  .achip .x { display: inline-flex; font-size: 15px; cursor: pointer; color: var(--n500); background: none; border: none; padding: 0; }
  @media (hover: hover) and (pointer: fine) { .achip .x:hover { color: var(--danger); } }
  .achip .dim { color: var(--n400); }
  .add-filter {
    display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; padding: 6px 12px 6px 10px; border-radius: 999px;
    cursor: pointer; background: transparent; border: 1px dashed var(--n600); color: var(--n400);
  }
  @media (hover: hover) and (pointer: fine) { .add-filter:hover { background: var(--surface); color: var(--text); } }
  .add-filter.on { background: var(--surface); color: var(--text); }
  .add-filter .ic { font-size: 12px; }
  .reset { margin-left: auto; font-size: 13px; color: var(--n400); }
  .filterbar { display: none; padding: 14px; margin-bottom: 24px; }
  .filterbar.open { display: block; }
  .searches { display: flex; gap: 8px; margin-bottom: 8px; }
  .search-wrap { position: relative; flex: 1 1 0; min-width: 0; }
  .search-wrap .input { padding-right: 34px; }
  .clear-btn {
    display: none; position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
    width: 26px; height: 26px; padding: 0; font-size: 14px; border: none; border-radius: 6px; cursor: pointer;
    background: transparent; color: var(--n500); align-items: center; justify-content: center;
  }
  @media (hover: hover) and (pointer: fine) { .clear-btn:hover { background: var(--n800); color: var(--text); } }
  .search-wrap.filled .clear-btn { display: flex; }
  .filters { display: flex; flex-wrap: wrap; gap: 8px; }
  .count { color: var(--n500); font-size: 13px; margin: 0 0 14px; }

  /* dropdown filter component (from the old app, restyled) */
  .dd { position: relative; flex: 1 1 auto; min-width: 0; }
  .trigger {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; padding: 8px 12px; border-radius: var(--r-md);
    border: 1px solid var(--divider); background: var(--surface); color: var(--text);
  }
  @media (hover: hover) and (pointer: fine) { .trigger:hover { border-color: color-mix(in srgb, var(--text) 45%, transparent); } }
  .trigger .sel { background: var(--n800); color: var(--n300); border-radius: 999px; font-size: 12px; font-weight: 500; padding: 0 8px; min-width: 20px; text-align: center; }
  .trigger .sel.on { background: var(--a800); color: var(--a200); }
  .trigger svg.chev { flex: none; opacity: .5; width: 14px; height: 14px; }
  .panel {
    display: none; position: absolute; z-index: 30; top: calc(100% + 6px); left: 0;
    min-width: 250px; max-width: min(320px, calc(100vw - 32px)); max-height: 320px; overflow-y: auto;
    background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-md); padding: 6px;
  }
  .dd.right .panel { left: auto; right: 0; }
  .dd.open .panel { display: block; }
  .row { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 7px 10px; border-radius: 6px; font-size: 14px; }
  @media (hover: hover) and (pointer: fine) { .row:hover { background: var(--n900); } }
  .row input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; flex: none; }
  .row .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; font-size: inherit; color: inherit; }
  .row .n { color: var(--n500); font-size: 12px; }
  .row .x { color: var(--n500); font-size: 12px; padding: 2px 4px; }
  @media (hover: hover) and (pointer: fine) { .row .x:hover { color: var(--text); } }
  .panel-search { position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 4px 4px 6px; border-bottom: 1px solid var(--divider); margin-bottom: 4px; }
  .panel-search-inner { display: flex; gap: 6px; position: relative; }
  .panel-search .input { font-size: 13px; min-height: 34px; padding: 6px 58px 6px 10px; }
  .panel-add { display: inline-flex; position: absolute; top: 50%; right: 4px; transform: translateY(-50%); align-items: center; justify-content: center; min-width: 44px; min-height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: var(--a800); color: var(--a200); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
  .panel-add:disabled { cursor: default; opacity: .5; }
  .row.hidden, .row.empty { display: none; }
  .row.zero { opacity: .5; }
  .panel-note { padding: 4px 10px 8px; font-size: 12px; line-height: 1.4; color: var(--n500); }
  .sheet-head { display: none; }
  .backdrop { display: none; position: fixed; inset: 0; z-index: 40; background: rgb(0 0 0 / .4); }
  .row.lazy .lbl::after { content: " ↓"; color: var(--n500); font-size: 11px; }
  .row.loading .lbl::after { content: " loading…"; color: var(--n500); font-size: 11px; }
  .row.failed .lbl::after { content: " failed"; color: var(--danger); font-size: 11px; }

  /* digest rows */
  .group { margin-bottom: 36px; }
  .group-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
  .group-head b { font-weight: 500; font-size: 20px; letter-spacing: -0.015em; }
  .group-head span { font-size: 14px; color: var(--n500); }
  .drow {
    display: grid; grid-template-columns: 40px minmax(0, 1fr) 160px 150px 96px 64px 36px; align-items: center; gap: 16px;
    padding: 14px 20px; cursor: pointer; position: relative;
  }
  @media (hover: hover) and (pointer: fine) { .drow:hover { background: var(--n900); } }
  .drow a.cover::after { content: ""; position: absolute; inset: 0; }
  .drow .t { font-size: 15px; line-height: 1.3; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
  .drow .w { font-size: 13px; color: var(--n400); margin-top: 2px; }
  .drow .co { font-size: 14px; color: var(--n300); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
  .drow .co img { width: 16px; height: 16px; border-radius: 3px; flex: none; }
  .drow .wh { font-size: 14px; color: var(--n400); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .drow .pay { font-size: 14px; text-align: right; color: var(--n300); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .drow .bm { width: 32px; height: 32px; }
  .drow .tags { display: none; }
  .badges { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }
  .badge { font-size: 10.5px; padding: 1px 7px; border-radius: 999px; background: var(--n800); color: var(--n300); font-weight: 500; }
  .badge.new { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
  .badge.ft { background: var(--a800); color: var(--a200); }
  .collapsed-btn {
    display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 14px 20px; cursor: pointer;
    font: inherit; font-size: 14px; background: transparent; border: none; border-top: 1px solid var(--divider); color: var(--n400);
  }
  @media (hover: hover) and (pointer: fine) { .collapsed-btn:hover { background: var(--n900); color: var(--text); } }
  .collapsed-btn .ic { font-size: 16px; color: var(--accent); }
  .collapsed-btn span { flex: 1; }
  .collapsed-btn em { font-style: normal; color: var(--accent); }
  .more-wrap { text-align: center; margin-top: 8px; }
  .page-sentinel { min-height: 1px; margin-top: 8px; }
  .aggregator-section { margin-top: 28px; overflow: hidden; }
  .aggregator-section + .group { margin-top: 36px; }
  .aggregator-toggle {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 12px 18px;
    border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer;
  }
  @media (hover: hover) and (pointer: fine) { .aggregator-toggle:hover { background: var(--n900); } }
  .aggregator-toggle .ic { width: 20px; height: 20px; color: var(--accent); flex: none; }
  .aggregator-toggle-copy { flex: 1; min-width: 0; }
  .aggregator-toggle-copy b { display: block; font-size: 15px; font-weight: 500; }
  .aggregator-toggle-copy span { display: block; margin-top: 2px; color: var(--n400); font-size: 13px; line-height: 1.35; }
  .aggregator-toggle-action { color: var(--accent); font-size: 14px; font-weight: 500; white-space: nowrap; }
  .aggregator-caret { color: var(--n500); font-size: 22px; line-height: 1; transform: rotate(90deg); transition: transform .15s; }
  .aggregator-toggle[aria-expanded="true"] .aggregator-caret { transform: rotate(-90deg); }
  .aggregator-body { padding: 0 12px 16px; border-top: 1px solid var(--divider); }
  .aggregator-body > .stack-8, .aggregator-body > .cards { margin-top: 12px; }
  .aggregator-body .more-wrap { margin: 16px 0 0; }

  /* cards view */
  .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
  .jcard { display: flex; flex-direction: column; gap: 12px; padding: 22px; cursor: pointer; position: relative; isolation:isolate; transition: box-shadow .12s; -webkit-tap-highlight-color:transparent; }
  @media (hover:hover) and (pointer:fine) { .jcard:hover { box-shadow: var(--sh-md); } }
  .jcard .top { display: flex; align-items: center; justify-content: space-between; gap: 11px; }
  .jcard .top .co { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--n300); min-width: 0; }
  .jcard .top .co span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .jcard .t { font-weight: 500; font-size: 19px; line-height: 1.2; letter-spacing: -0.015em; color: var(--text); overflow-wrap: anywhere; }
  .jcard .tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .jcard .why-p { margin: 0; font-size: 14px; color: var(--n400); flex: 1; }
  .jcard .foot { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--n400); flex-wrap: wrap; }
  .jcard .foot .pay { margin-left: auto; color: var(--n300); }
  .jcard .acts { display: flex; gap: 8px; margin-top: 4px; }
  .jcard .acts .btn-primary { flex: 1; }
  .jcard a.cover::after { content: ""; position:absolute; inset:0; z-index:1; border-radius:var(--r-lg); }
  .jcard a.cover { -webkit-tap-highlight-color:transparent; }
  .jcard a.cover:focus-visible { outline:none; }
  .jcard a.cover:focus-visible::after { outline:2px solid var(--accent); outline-offset:-2px; }
  .jcard .acts { position: relative; z-index: 1; }

  /* ── tracker ── */
  .pipeline { padding: 22px 24px; margin-bottom: 32px; }
  .pipe-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 3px; }
  .pipe-bar span { display: block; min-width: 0; }
  .pipe-legend { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 18px; }
  .pipe-legend div { display: flex; align-items: center; gap: 9px; }
  .pipe-legend .dot { width: 9px; height: 9px; border-radius: 999px; }
  .pipe-legend b { font-weight: 500; font-size: 16px; }
  .pipe-legend span:last-child { font-size: 14px; color: var(--n400); }
  .crm-wrap { overflow-x: auto; }
  table.crm { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 960px; }
  table.crm th { text-align: left; font-weight: 500; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--n400); padding: 14px 20px; border-bottom: 1px solid var(--divider); white-space: nowrap; }
  table.crm td { padding: 14px 20px; vertical-align: middle; border-bottom: 1px solid var(--divider); }
  table.crm tr:last-child td { border-bottom: none; }
  @media (hover: hover) and (pointer: fine) { table.crm tbody tr:hover td { background: var(--n900); } }
  table.crm tr.editing td { background: var(--a900); }
  .crm .role { display: flex; align-items: center; gap: 12px; min-width: 260px; }
  .crm .role .t { font-weight: 500; font-size: 15px; color: var(--text); overflow-wrap: anywhere; }
  .crm tbody tr { cursor: pointer; }
  .crm .role .t { text-decoration: none; }
  .crm .role .s { font-size: 13px; color: var(--n400); margin-top: 1px; }
  .crm .pay { color: var(--n300); white-space: nowrap; }
  .crm .notes { color: var(--n400); max-width: 280px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .crm td.acts { text-align: right; white-space: nowrap; }
  .crm .acts .btn-icon { width: 32px; height: 32px; font-size: 16px; color: var(--n400); }
  @media (hover: hover) and (pointer: fine) { .crm .acts .btn-icon:hover { color: var(--text); } }
  @media (hover: hover) and (pointer: fine) { .crm .acts .drop:hover { color: var(--danger); } }
  .st-saved { background: #eeeeec; color: var(--status-saved); }
  .st-applied { background: #eaf2ff; color: var(--status-applied); }
  .st-interviewing { background: #f1ebfa; color: var(--status-interviewing); }
  .st-offer { background: #e8f4ec; color: var(--status-offer); }
  .st-rejected { background: #fcecec; color: var(--status-rejected); }
  .crm select.st { font: inherit; font-size: 13px; font-weight: 500; padding: 5px 26px 5px 10px; border-radius: 999px; cursor: pointer; border: 1px solid var(--divider); background: var(--surface); color: var(--text); appearance: none; }
  .crm .edit-note { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--divider); border-radius: 6px; background: var(--surface); color: var(--text); }
  .crm .edit-note { width: 100%; min-width: 180px; resize: vertical; line-height: 1.4; }
  .crm .edit-note:focus-visible { border-color: var(--accent); outline: none; }
  .crm .acts .act-save { color: #fff; background: var(--accent); border-color: var(--accent); }
  .crm .acts .btn { margin-left: 4px; padding: 5px 10px; font-size: 13px; }

  /* ── dialog ── */
  .modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, #292b31 50%, transparent); }
  .dialog { width: min(440px, 100%); display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-lg); }
  .dialog h3 { font-size: 20px; }
  .dialog p { margin: 0; font-size: 14px; color: var(--n400); }
  .dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
  footer { color: var(--n500); font-size: 12px; line-height: 1.6; margin-top: 52px; padding: 12px 0 8px; text-align: center; }

  /* ── bottom tabs (mobile) ── */
  .tabbar { display: none; }

  @media (max-width: 900px) {
    .drow { grid-template-columns: 40px minmax(0, 1fr) auto 36px; gap: 12px; }
    .drow .co, .drow .wh, .drow .pay { display: none; }
    .drow .w::before { content: attr(data-co) " · " attr(data-wh); color: var(--n300); display: block; }
    .drow .w.has-pay::before { content: attr(data-co) " · " attr(data-wh) " · " attr(data-pay); }
    .drow .w .why-t { display: block; }
  }

  @media (max-width: 640px) {
    .ob-top { gap: 6px; height: 60px; padding: 0 16px; }
    .ob-progress { gap: 4px; }
    .ob-progress span { width: 14px; }
    .ob-body { padding: 8px 16px 140px; }
    .ob-inner h1 { font-size: 32px; } .ob-inner h1.hero { font-size: 38px; }
    .ob-inner .lead, .ob-inner .lead.big { font-size: 15px; margin-bottom: 26px; }
    .preview-carousel { height: 208px; margin-top: 36px; }
    .ob-nav { padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: 0 -1px 0 var(--divider); }
    .tiles, .tiles.three { grid-template-columns: 1fr; }
    .tile.col { flex-direction: row; align-items: center; }
    .tile.col .ti { font-size: 22px; }
    .info-pill { flex-direction: column; gap: 8px; border-radius: var(--r-lg); text-align: center; }
    #app { padding-top: 52px; }
    .nav { grid-template-columns: 1fr auto; gap: 12px; padding: 12px 16px; }
    .nav .seg { display: none; }
    .page { padding: 28px 14px 96px; }
    footer { display: none; }
    .page h1 { font-size: 34px; }
    .page .lead { font-size: 16px; margin-bottom: 32px; }
    .jobs-head { margin-bottom: 18px; }
    /* The header already states the matching role count on mobile. */
    #view-jobs .count { display: none; }
    .strong-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: "title title save" "icon meta save" "why why save" ; gap: 7px 12px; align-items: start; padding: 14px; }
    .strong-row > .mono { grid-area: icon; width: 32px; height: 32px; font-size: 13px; align-self: center; }
    .strong-row .body { display: contents; }
    .strong-row .t { grid-area: title; }
    .strong-row .m { grid-area: meta; }
    .strong-row .why { grid-area: why; }
    .strong-row .bm { grid-area: save; align-self: start; }
    .strong-row .t { font-size: 16px; } .strong-row .m { font-size: 13px; line-height: 1.45; }
    .searches { flex-direction: column; }
    .active-chips { margin-bottom: 14px; }
    .add-filter { order: -1; flex: 0 0 100%; min-height: 44px; justify-content: center; border-style: solid; border-color: var(--divider); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-sm); color: var(--text); font-size: 14px; }
    .add-filter.on { background: var(--n900); }
    .filterbar { overflow: visible; }
    .filters { gap: 6px; }
    .dd { flex: 1 1 calc(50% - 3px); }
    .dd.open { z-index: 51; }
    .drow { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: "title title save" "icon meta save" ; gap: 7px 12px; align-items: start; padding: 14px; }
    .drow > .mono { grid-area: icon; width: 32px; height: 32px; font-size: 13px; align-self: center; }
    .drow .body { display: contents; }
    .drow .t { grid-area: title; font-size: 16px; }
    .drow .w { grid-area: meta; margin-top: 0; font-size: 13px; line-height: 1.45; }
    .drow .w .why-t { margin-top: 4px; }
    .drow .bm { grid-area: save; align-self: start; }
    .cards { grid-template-columns: 1fr; }
    .jcard .acts { justify-content: flex-end; }
    .jcard .acts .btn-primary { display: none; }
    #dirSeg { display: none; }
    .tabbar {
      display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
      background: var(--surface); box-shadow: 0 -1px 0 var(--divider); padding-bottom: env(safe-area-inset-bottom);
    }
    .tabbar button {
      flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font: inherit; font-size: 11px; font-weight: 500;
      padding: 9px 4px 7px; background: none; border: none; cursor: pointer; color: var(--n500); -webkit-tap-highlight-color: transparent;
    }
    .tabbar button .ic { font-size: 21px; }
    .tabbar button.on { color: var(--accent); }
    .tabbar .tabn { font-style: normal; }

    /* dropdowns become bottom sheets */
    .panel {
      position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 50; width: 100%; min-width: 0; max-width: none;
      --sheet-head-h: 48px;
      height: min(70vh, 70dvh); max-height: none; overflow: hidden;
      padding: 0 8px calc(8px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0;
      box-shadow: 0 -10px 34px rgb(0 0 0 / .3); animation: sheet-up .2s ease-out;
    }
    .dd.right .panel { left: 0; right: 0; }
    .dd.open .panel { display: flex !important; flex-direction: column; visibility: visible; pointer-events: auto; }
    .sheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 3; min-height: var(--sheet-head-h); background: var(--surface); padding: 14px 8px 10px; font-weight: 500; font-size: 15px; }
    .sheet-head::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 36px; height: 4px; border-radius: 2px; background: var(--n700); }
    .sheet-head button { font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; border: none; background: transparent; color: var(--accent); padding: 4px 6px; }
    .panel-search { position: sticky; top: var(--sheet-head-h); z-index: 2; padding: 4px 4px 8px; flex: none; }
    .panel-list { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior-y: none; -webkit-overflow-scrolling: auto; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
    .panel-search .input { padding-right: 52px; }
    .panel-add { display: inline-flex; position: absolute; top: 50%; right: 4px; transform: translateY(-50%); align-items: center; justify-content: center; min-width: 44px; min-height: 32px; }
    .dd.open .panel-list > .row { flex: none; }
    .panel-search .input { font-size: 16px; min-height: 40px; }
    .row { padding: 11px 10px; font-size: 15px; }
    .row input[type=checkbox] { width: 18px; height: 18px; }
    body.dd-open { overflow: hidden; }
    body.dd-open .view.view-enter, body.dd-open .rise { animation: none; }
    body.dd-open .backdrop { display: block; }

    /* tracker stacks into cards */
    .crm-wrap { overflow-x: visible; background: transparent !important; box-shadow: none !important; }
    table.crm { min-width: 0; display: block; }
    table.crm thead { display: none; }
    table.crm tbody, table.crm tr, table.crm td { display: block; width: auto; }
    table.crm tr { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: 14px; margin-bottom: 8px; }
    @media (hover: hover) and (pointer: fine) { table.crm tbody tr:hover td { background: transparent; } }
    table.crm td { border: none; padding: 3px 0; }
    table.crm td:empty { display: none; }
    table.crm td[data-label]:not([data-label="Role"])::before {
      content: attr(data-label) ": "; color: var(--n500); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; margin-right: 6px;
    }
    table.crm td[data-label="Role"] { margin-bottom: 8px; }
    .crm .role { min-width: 0; }
    .crm .notes { max-width: none; }
    .crm td.acts { margin-top: 10px; display: flex; gap: 8px; text-align: left; }
    .crm .acts .btn { margin: 0; flex: 1; padding: 9px; font-size: 14px; }
    .crm .acts .btn-icon { flex: 0 0 44px; width: 44px; height: 40px; border: 1px solid var(--divider); }
    .crm .edit-note { width: 100%; min-width: 0; font-size: 16px; }
    .modal { display: block; padding: 0; }
    .dialog { position: absolute; left: 0; right: 0; bottom: 0; width: auto; border-radius: 16px 16px 0 0; padding: 22px 16px calc(16px + env(safe-area-inset-bottom)); animation: sheet-up .2s ease-out; }
    .dialog-actions { flex-direction: column-reverse; gap: 10px; }
    .dialog-actions .btn { width: 100%; padding: 13px; font-size: 16px; }
  }
  @keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
  @media (prefers-reduced-motion: reduce) {
    .seg.ready .tab-indicator, .seg button, .panel, .dialog, .preview-card { transition: none !important; animation: none !important; }
    .preview-card { position: static; opacity: 1; transform: none; }
    .preview-card:nth-child(n + 4) { display: none; }
    .view.view-enter { animation: none; }
  }

  .active-chips.filters-hidden .achip { display: none; }
  .saved-search-bar { margin:0 0 24px; min-width:0; }
  .search-toolbar { display:flex; align-items:center; gap:20px; min-width:0; }
  .search-carousel { display:flex; align-items:center; gap:6px; min-width:0; flex:1; }
  .saved-search-rail { display:flex; align-items:center; gap:8px; min-width:0; flex:1; overflow-x:auto; overscroll-behavior-x:contain; padding:4px; scrollbar-width:none; }
  .saved-search-rail::-webkit-scrollbar { display:none; }
  .search-carousel-arrow { display:none; align-items:center; justify-content:center; flex:none; width:44px; height:44px; border:1px solid var(--divider); border-radius:50%; background:var(--surface); color:var(--text); cursor:pointer; }
  .search-carousel-arrow .ic { font-size:18px; }
  .search-carousel.has-overflow .search-carousel-arrow { display:inline-flex; }
  .search-carousel-arrow:disabled { opacity:.3; cursor:default; }
  .search-carousel-arrow, .saved-search-pill { touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
  .saved-search-pill { display:inline-flex; align-items:center; justify-content:center; flex:none; gap:8px; min-height:44px; max-width:300px; padding:10px 16px; border:1px solid var(--divider); border-radius:999px; background:var(--surface); color:var(--n300); font:inherit; font-size:14px; cursor:pointer; white-space:nowrap; }
  .search-pill-name { min-width:0; overflow:hidden; text-overflow:ellipsis; }
  .saved-search-pill[aria-pressed="true"] { background:var(--text); color:white; border-color:var(--text); }
  .search-new-count { flex:none; padding:2px 7px; background:#efecfa; color:#5846a8; border-radius:999px; font-size:11px; font-weight:500; line-height:1.4; }
  .saved-search-pill[aria-pressed="true"] .search-new-count { background:#ffffff26; color:white; }
  .search-draft-dot { flex:none; width:6px; height:6px; border-radius:50%; background:currentColor; }
  .search-toolbar-actions { display:flex; align-items:center; gap:8px; flex:none; }
  .search-toolbar-actions .btn { min-height:44px; }
  .search-toolbar-actions .new-search-action { gap:6px; }
  @media (max-width:900px) {
    .search-toolbar-actions .new-search-action { display:none; }
    .search-toolbar-actions:has(> .new-search-action:only-child) { display:none; }
  }
  .search-toolbar-actions .search-more summary { width:44px; height:44px; }
  .search-composer-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
  .search-composer-heading h2 { font-size:20px; letter-spacing:-.025em; white-space:nowrap; }
  .search-composer-actions { display:flex; gap:6px; }
  .search-composer-actions .btn { min-height:44px; padding-inline:14px; font-size:13px; white-space:nowrap; }
  .search-advanced-toggle { display:none; }
  .search-creating .search-advanced-toggle { display:inline-flex; min-height:44px; margin-top:8px; padding-inline:0; }
  .search-creating:not(.search-advanced-open) .search-extra { display:none; }
  .search-creating #activeChips { display:none; }
  .search-creating .searches > .search-wrap { flex:1; min-width:0; }
  .search-creating .filter-actions { margin-top:8px; padding-top:12px; }
  .search-preview-heading { font-size:16px; margin-bottom:12px; scroll-margin-top:90px; }
  .search-preview-heading:focus { outline:none; }
  @media (max-width:640px) {
    .search-composer-heading h2 { font-size:18px; }
    .search-composer-actions .btn { padding-inline:12px; }
    .search-creating .filterbar { padding:12px; }
    .search-creating .filters { gap:8px; }
    .search-creating .filters .dd { flex-basis:calc(50% - 4px); min-width:0; }
    .search-creating .trigger { min-height:44px; padding-inline:10px; gap:4px; font-size:12px; }
    .search-creating .trigger .sel { padding-inline:4px; font-size:11px; }
  }
  .search-feedback { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:10px 14px; margin:0 0 16px; border-radius:var(--r-md); background:var(--a800); font-size:13px; }
  .search-feedback span { overflow-wrap:anywhere; min-width:0; }
  .filter-actions { margin-top:16px; padding-top:14px; border-top:1px solid var(--divider); }
  .filter-actions .search-summary { margin-bottom:10px; }
  .filter-action-buttons { display:flex; justify-content:flex-end; gap:8px; }
  .filter-action-buttons .btn { font-size:14px; }
  #activeChips:empty { display:none; }
  @media (hover:hover) and (pointer:fine) {
    .saved-search-pill:not([aria-pressed="true"]):hover { background:var(--hover-surface); border-color:var(--n700); }
    .search-carousel-arrow:not(:disabled):hover { background:var(--n900); border-color:var(--n700); }
  }
  @media (max-width:640px) {
    .search-toolbar { flex-direction:column; gap:12px; align-items:stretch; }
    .search-carousel { flex:none; }
    .search-carousel-arrow { display:inline-flex; }
    .saved-search-rail { overflow:hidden; }
    .saved-search-rail .saved-search-pill { width:100%; max-width:none; padding-inline:12px; }
    .saved-search-rail .saved-search-pill .search-pill-name { flex:1; text-align:left; }
    .saved-search-rail .saved-search-pill .search-new-count { max-width:40%; overflow:hidden; text-overflow:ellipsis; }
    .saved-search-rail .saved-search-pill[aria-pressed="false"] { display:none; }
    .search-toolbar-actions { gap:6px; }
    .search-toolbar-actions .btn { flex-shrink:0; padding-inline:14px; white-space:nowrap; }
    .search-toolbar-actions .new-search-action { margin-left:auto; }
    .filter-action-buttons .btn { flex:1; min-height:44px; }
    #activeChips { gap:6px; margin-bottom:12px; }
  }
  .search-summary { color:var(--n400); font-size:13px; margin:0 0 14px; overflow-wrap:anywhere; }
  .search-actions { display:flex; align-items:center; gap:8px; }
  .search-actions > .btn-primary { min-height:40px; }
  .search-more { position:relative; }
  .search-more summary {
    display:grid; place-items:center; width:40px; height:40px; border-radius:var(--r-md);
    color:var(--n400); cursor:pointer; list-style:none; font-size:21px; line-height:1;
    -webkit-tap-highlight-color:transparent;
  }
  .search-more summary::-webkit-details-marker { display:none; }
  @media (hover: hover) and (pointer: fine) { .search-more summary:hover { background:var(--n800); color:var(--text); } }
  .search-more[open] summary { background:var(--n800); color:var(--text); }
  .search-more-menu {
    position:absolute; z-index:20; top:calc(100% + 4px); right:0; min-width:150px;
    padding:6px; border-radius:var(--r-md); background:var(--surface); box-shadow:var(--sh-md);
  }
  .search-more-menu button {
    display:flex; align-items:center; gap:9px; width:100%; padding:9px 10px; border:0;
    border-radius:6px; background:transparent; color:var(--text); font:inherit; font-size:13px;
    text-align:left; cursor:pointer;
  }
  @media (hover: hover) and (pointer: fine) { .search-more-menu button:hover { background:var(--n900); } }
  .search-more-menu button .ic { color:var(--n400); }
  .search-more-menu [data-delete-search] { color:var(--danger); }
  @media (max-width:640px) {
    /* Phones: the actions take the full row, View results stretching and the menu at the end. */
    .search-actions { width:100%; }
    .search-actions > .btn-primary, .search-actions > .btn-secondary { flex:1; justify-content:center; min-height:44px; }
    .search-actions .collapsed-note { flex:1; }
    .search-more summary { width:44px; height:44px; }
  }
  .jcard .bm { position:relative; z-index:2; flex:none; width:48px; height:48px; margin-block:-6px; -webkit-tap-highlight-color:transparent; }
  .job-reactions { display:flex; align-items:center; gap:0; flex-shrink:0; position:relative; z-index:2; }
  .job-reactions .reaction { width:44px; height:44px; }
  .reaction[aria-pressed="true"] { color:var(--accent); background:var(--n900); }
  .reaction[data-reaction="dislike"][aria-pressed="true"] { color:var(--danger); }
  .reaction-toast { position:fixed; left:50%; bottom:calc(84px + env(safe-area-inset-bottom)); z-index:1000; transform:translate(-50%, 8px); opacity:0; pointer-events:none; padding:12px 18px; border:1px solid transparent; border-radius:14px; max-width:calc(100vw - 32px); width:max-content; box-sizing:border-box; font-size:14px; box-shadow:0 6px 24px #0000000d; transition:opacity .25s ease, transform .25s ease; color:#374151; background:#f3f4f6; }
  .reaction-toast[data-tone="like"] { color:#226344; background:#edf8f0; border-color:#cfe8d7; }
  .reaction-toast[data-tone="dislike"] { color:#92433e; background:#fff1ef; border-color:#f2d5d1; }
  .reaction-toast { display:flex; align-items:center; gap:12px; visibility:hidden; }
  .reaction-toast:has([data-undo-swipe]) { padding:4px 6px 4px 14px; }
  .reaction-toast > span { min-width:0; }
  .reaction-toast [data-undo-swipe] { flex:none; min-height:44px; color:inherit; text-decoration:underline; text-underline-offset:3px; }
  .reaction-toast.visible { opacity:1; visibility:visible; pointer-events:auto; transform:translate(-50%, 0); }
  @media (min-width:641px) { .reaction-toast { bottom:28px; } }
  @media (prefers-reduced-motion:reduce) { .reaction-toast { transition:none; transform:translateX(-50%); } }
  .jcard .foot { margin-top:auto; }
  #searchDialog label { font-size:14px; }
  @media (min-width:641px) {
    .jcard { padding:16px; gap:8px; }
    .jcard .t { font-size:16px; line-height:1.3; }
    /* Home and Digest share compact rows; Cards keeps its grid layout. */
    .stack-8 > .jcard {
      display:grid; grid-template-columns:34px minmax(0,1fr) auto 88px;
      grid-template-rows:auto auto auto; column-gap:12px; row-gap:3px;
      align-items:center; padding:12px 16px;
    }
    .stack-8 > .jcard .top, .stack-8 > .jcard .top .co { display:contents; }
    .stack-8 > .jcard .mono { grid-column:1; grid-row:1 / 4; }
    .stack-8 > .jcard .t { grid-column:2; grid-row:1; }
    .stack-8 > .jcard .top .co > span { grid-column:2; grid-row:2; font-size:13px; color:var(--n300); }
    .stack-8 > .jcard .foot { grid-column:2; grid-row:3; margin:0; font-size:12px; }
    .stack-8 > .jcard .foot .pay { margin-left:6px; }
    .stack-8 > .jcard .tags { grid-column:3; grid-row:1 / 4; max-width:160px; justify-content:flex-end; gap:4px; }
    .stack-8 > .jcard .tag { font-size:11px; padding:2px 8px; }
    .stack-8 > .jcard .job-reactions { grid-column:4; grid-row:1 / 4; }
  }
  @media (max-width:640px) { .cards { grid-template-columns:1fr; } }
  html:has(.job-detail[open]), body:has(.job-detail[open]) { overflow:hidden; overscroll-behavior:none; }
  .job-detail { overflow:hidden; overscroll-behavior:none; box-sizing:border-box; width:100%; max-width:100%; height:100dvh; max-height:100dvh; margin:0; padding:0; border:0; border-radius:0; background:var(--bg); color:var(--text); }
  .job-detail[open] { display:flex; flex-direction:column; }
  #jobDetailHeader { height:var(--detail-header-height, 64px); flex:none; }
  #jobDetailHeader .nav { position:fixed; }
  /* Same container as .page so the dialog lines up with the tabs behind it. */
  .job-detail-body { display:flex; flex-direction:column; flex:1; min-height:0; overflow:hidden; box-sizing:border-box; width:100%; max-width:1120px; margin:0 auto; padding:48px 32px 0; }
  #jobDetailContent { flex:1; min-height:0; overflow-y:auto; overscroll-behavior-y:contain; scrollbar-width:thin; padding-bottom:96px; }
  /* Initial dialog focus belongs to the content, not the logo or an action. */
  .job-detail-body:focus { outline:none; }
  .job-detail-top { min-height:44px; }
  .job-detail .job-detail-top { flex:none; position:relative; z-index:10; padding-bottom:12px; background:var(--bg); }
  .job-detail-bookmark { min-width:44px; min-height:44px; }
  .job-detail-bookmark[aria-pressed="true"] { color:var(--accent); }
  .job-detail-loading { display:flex; justify-content:center; align-items:center; min-height:220px; }
  .job-detail-skeleton .job-detail-facts { display:grid; }
  .job-detail-skeleton .sk-paragraph { display:flex; flex-direction:column; gap:10px; margin:0 0 22px; }
  .job-detail::backdrop { background:rgb(0 0 0 / .45); }
  .job-detail-top, .job-detail-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; }
  .job-detail h1 { font-size:32px; line-height:1.15; margin:24px 0 12px; }
  .job-detail-company { display:flex; align-items:center; gap:10px; margin:0; font-size:15px; }
  .job-detail-company a { color:var(--text); }
  .mono.s28 { width:28px; height:28px; font-size:12px; border-radius:6px; }
  .mono.s28 img { width:18px; height:18px; }
  .job-detail-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding:20px; margin:24px 0; }
  .job-detail-facts dt { font-size:12px; color:var(--n400); margin-bottom:4px; }
  .job-detail-facts dd { margin:0; overflow-wrap:anywhere; }
  .job-detail h2 { margin:28px 0 14px; }
  .job-detail-description { overflow-wrap:anywhere; line-height:1.65; }
  .job-detail-description p { margin:0 0 16px; }
  .job-detail-description h1, .job-detail-description h2, .job-detail-description h3, .job-detail-description h4 { margin:20px 0 8px; font-size:21px; line-height:1.3; }
  .job-detail-description ul, .job-detail-description ol { padding-left:24px; margin:12px 0 20px; }
  .job-detail-description li { margin:4px 0; line-height:1.5; }
  .job-detail-description li p { margin:0; }
  .job-detail-description li p + p { margin-top:8px; }
  .job-detail-description li ul, .job-detail-description li ol { margin:4px 0; }
  .job-detail-description blockquote { border-left:3px solid var(--divider); margin:16px 0; padding-left:16px; }
  .job-detail-description a { color:var(--accent); text-decoration:underline; }
  .job-detail-description pre { white-space:pre-wrap; }
  .job-detail-description table { display:block; max-width:100%; overflow:auto; border-collapse:collapse; }
  .job-detail-description td, .job-detail-description th { padding:8px; border:1px solid var(--divider); }
  .job-detail-actions { justify-content:flex-start; margin:24px 0; flex-wrap:wrap; }
  .job-detail-actions .btn { min-height:44px; max-width:100%; white-space:normal; text-align:center; }
  .job-detail-description img { max-width:100%; height:auto; }
  .job-detail-description h1, .job-detail-description h2, .job-detail-description h3 { overflow-wrap:anywhere; }
  @media(max-width:640px) {
    .job-detail-actions { position:fixed; bottom:0; left:0; right:0; z-index:25; margin:0; padding:12px max(var(--mobile-gutter), env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(var(--mobile-gutter), env(safe-area-inset-left)); background:var(--bg); border-top:1px solid var(--divider); }
    .job-detail-actions .btn { width:100%; min-height:48px; justify-content:center; }
  }
  @media(max-width:640px) { .job-detail { width:100%; max-width:100%; height:100dvh; max-height:100dvh; margin:0; border-radius:0; padding:0; } .job-detail-body { padding:24px max(var(--mobile-gutter), env(safe-area-inset-right)) 0 max(var(--mobile-gutter), env(safe-area-inset-left)); } #jobDetailContent { padding-bottom:calc(110px + env(safe-area-inset-bottom)); } .job-detail h1 { font-size:27px; } }
  .global-search { width:min(680px, calc(100% - 40px)); max-height: min(720px, 80dvh); margin:10dvh auto 0; padding:0; border:1px solid var(--divider); border-radius:20px; background:var(--bg); color:var(--text); overflow:hidden; box-shadow:0 24px 80px rgb(0 0 0 / .14); }
  .global-search[open] { display:flex; flex-direction:column; }
  .global-search::backdrop { background:rgb(0 0 0 / .24); backdrop-filter:blur(3px); }
  .global-search-head { display:flex; align-items:center; gap:8px; flex:none; padding:14px 16px 14px 22px; border-bottom:1px solid var(--divider); }
  .global-search-icon { display:flex; font-size:22px; color:var(--n400); flex:none; }
  #globalQuery { width:100%; min-width:0; min-height:44px; padding:8px; border:0; border-radius:8px; background:transparent; color:var(--text); font:inherit; font-size:17px; }
  #globalQuery:focus-visible { outline:none; }
  .global-search-head:focus-within { border-bottom-color:var(--n600); }
  #globalQuery::-webkit-search-cancel-button { -webkit-appearance:none; }
  #clearGlobalSearch { color:var(--n400); font-size:12px; min-height:44px; min-width:48px; flex:none; white-space:nowrap; }
  #closeGlobalSearch { flex:none; color:var(--n300); }
  .global-search-body { min-height:120px; overflow-y:auto; overscroll-behavior:contain; padding:12px; }
  .global-search-start { padding:12px 10px 16px; }
  .global-search-start p, .global-search h3 { color:var(--n400); font-size:12px; font-weight:500; margin:0 0 12px; }
  .global-search-suggestions { display:flex; gap:8px; flex-wrap:wrap; }
  .global-search-suggestions .btn { min-height:40px; background:var(--n900); border-color:transparent; font-size:13px; }
  .global-search h3 { margin:12px 12px 8px; }
  #globalSearchResults section + section { margin-top:20px; }
  .global-result { display:flex; align-items:center; gap:14px; padding:14px 12px; border-radius:12px; color:var(--text); text-decoration:none; min-height:72px; }
  @media (hover:hover) and (pointer:fine) { .global-result:hover { background:var(--n900); } }
  .global-result:focus-visible { background:var(--n900); }
  .global-result:focus-visible { outline:2px solid var(--n700); outline-offset:-2px; }
  .global-result-mark { width:40px; height:40px; display:grid; place-items:center; flex:none; border-radius:10px; background:var(--n900); color:var(--n300); font-size:14px; font-weight:500; }
  .global-result-copy { min-width:0; flex:1; }
  .global-result-copy strong { display:block; font-size:15px; font-weight:500; line-height:1.4; }
  .global-result-copy small { display:block; margin-top:4px; font-size:12px; line-height:1.5; color:var(--n400); }
  .global-result-arrow { flex:none; font-size:16px; color:var(--n500); }
  #globalSearchStatus { padding:16px 12px 8px; margin:0; color:var(--n400); font-size:14px; line-height:1.6; }
  .global-search-loading { display:flex; align-items:center; justify-content:center; gap:10px; min-height:120px; font-size:14px; color:var(--n400); }
  .global-search-loading .spinner { width:18px; height:18px; border:2px solid var(--n700); border-right-color:transparent; }
  #globalSearchMore { display:flex; margin:16px auto 8px; min-height:44px; }
  #globalSearchRetry { margin:8px 12px 16px; min-height:44px; }
  /* Shared sizing keeps long content and the installed-app safe areas usable. */
  #app { padding-top:var(--app-header-height, 80px); }
  /* The bar's content edges line up with the 1120px page column below it (32px inset, centred). */
  .nav { grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); padding-top:calc(14px + env(safe-area-inset-top)); padding-left:max(32px, env(safe-area-inset-left), calc((100% - 1120px) / 2 + 32px)); padding-right:max(32px, env(safe-area-inset-right), calc((100% - 1120px) / 2 + 32px)); }
  @media (max-width:640px) { .nav { padding-left:max(14px, env(safe-area-inset-left)); padding-right:max(14px, env(safe-area-inset-right)); } }
  .nav-actions, .nav-actions .menu, .account-button, .jcard, .nudge, .tile > span, .sec-head > *, .job-detail-top > * { min-width:0; }
  .page h1, .nudge .t, .nudge .c, .jcard .co, .tag, .chip, .achip, .ob-inner, #globalSearchResults, .job-detail-body { overflow-wrap:anywhere; }
  .menu-panel { max-width:calc(100vw - 32px); max-height:calc(100dvh - var(--app-header-height, 80px) - 24px); overflow-y:auto; overscroll-behavior:contain; }
  .menu-panel button, .search-more-menu button { white-space:normal; overflow-wrap:anywhere; }
  .dialog { max-height:calc(100dvh - 24px); overflow-y:auto; overscroll-behavior:contain; }
  .global-search { overscroll-behavior:contain; }
  @media (max-width:900px) {
    .nav { grid-template-columns:minmax(0,1fr) auto; gap:8px; padding-block:calc(10px + env(safe-area-inset-top)) 10px; }
    .nav .seg { display:none; }
    .tabbar { display:flex; position:fixed; left:0; right:0; bottom:0; z-index:45; background:var(--surface); box-shadow:0 -1px 0 var(--divider); padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
    .tabbar button { flex:1; display:flex; flex-direction:column; align-items:center; gap:3px; font:inherit; font-size:11px; font-weight:500; padding:9px 4px 7px; min-height:52px; background:none; border:none; cursor:pointer; color:var(--n500); }
    .tabbar button .ic { font-size:21px; }
    .tabbar button.on { color:var(--accent); }
    .tabbar .tabn { font-style:normal; }
    .page { padding-bottom:calc(96px + env(safe-area-inset-bottom)); }
  }
  @media (max-width:640px) {
    .btn, .trigger, .sheet-head button, .menu-panel button, .search-more-menu button { min-height:44px; }
    .btn { white-space:normal; overflow-wrap:anywhere; }
    .btn-icon { min-width:44px; }
    .input, select, textarea, .crm .st { font-size:16px; }
    .page { padding-left:max(14px, env(safe-area-inset-left)); padding-right:max(14px, env(safe-area-inset-right)); }
    .nav-actions { gap:2px; }
    /* Phones show only the avatar; the email stays in the button's accessible label and in the settings panel. */
    .account-button { padding-inline:4px; gap:0; min-width:44px; justify-content:center; margin-right:-4px; }
    .account-button .account-copy { display:none; }
    .ob-top { height:auto; min-height:64px; padding-top:env(safe-area-inset-top); padding-left:max(16px, env(safe-area-inset-left)); padding-right:max(16px, env(safe-area-inset-right)); }
    .ob-body { padding-bottom:calc(140px + env(safe-area-inset-bottom)); }
    .clear-btn { width:44px; height:44px; right:0; }
    .search-wrap .input { padding-right:44px; min-height:44px; }
    .filter-action-buttons, .nudge .acts, .job-detail-top { flex-wrap:wrap; }
    .nudge .acts .btn { flex:1 1 120px; }
    .nudge { padding:16px; }
    .jcard .co { min-width:0; }
    .jcard .co > span { min-width:0; }
    .jcard .foot { overflow-wrap:anywhere; }
    .tag, .chip, .achip { max-width:100%; white-space:normal; }
    .chip, .achip { min-height:44px; }
    .achip { padding:0 0 0 12px; }
    .achip .x { min-width:44px; min-height:44px; justify-content:center; align-items:center; flex:none; }
    .crm .role, .crm .notes, .crm .co { overflow-wrap:anywhere; }
    .crm td.acts { flex-wrap:wrap; }
    .crm .notes { white-space:normal; }
    .crm select.st { min-height:44px; font-size:16px; }
    .dialog { max-height:calc(100dvh - env(safe-area-inset-top) - 12px); padding-bottom:calc(22px + env(safe-area-inset-bottom)); }
    .global-search { width:100%; max-width:100%; height:100dvh; max-height:100dvh; margin:0; border:0; border-radius:0; padding:0; }
    .global-search-head { padding:calc(10px + env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); gap:2px; }
    #globalQuery { font-size:16px; }
    #clearGlobalSearch { padding-inline:8px; }
    .global-search-body { flex:1; padding:8px max(calc(var(--mobile-gutter) - 10px), env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(calc(var(--mobile-gutter) - 10px), env(safe-area-inset-left)); }
    .global-search h3 { margin-inline:10px; }
    .global-result { padding:14px 10px; gap:12px; }
    .global-search-suggestions .btn { min-height:44px; }
    #globalSearchMore { width:100%; }
    .panel { height:min(70dvh, 560px); }
    .panel-list { overscroll-behavior:contain; }
  }
  @media (max-width:360px) {
    :root { --mobile-gutter: 16px; }
    .ob-top { grid-template-columns:minmax(0,1fr) auto; gap:6px; padding-bottom:12px; }
    .ob-progress { grid-column:1 / -1; grid-row:2; }
    .ob-signin { grid-column:2; grid-row:1; }
    .ob-inner h1.hero { font-size:34px; }
    .job-detail-top > .btn { flex:none; }
  }
  @media (max-height:500px) and (orientation:landscape) {
    .ob-body { align-items:flex-start; }
    .panel { height:85dvh; }
    .job-detail-actions { position:static; padding:12px 0; }
  }

/* Workspace layout and shared interaction states. */
/* Touch controls should not retain emulated hover or select their labels.
   Hover rules are pointer-gated; keyboard focus and actual selected states stay visible. */
button, a, input, select, textarea, summary, [role="button"], [role="option"] { -webkit-tap-highlight-color: transparent; }
button, summary, .btn, .brand, .ic, [role="button"], [role="option"] { -webkit-user-select: none; user-select: none; }
button, summary, .btn, .brand { -webkit-touch-callout: none; }
button, .btn { touch-action: manipulation; }
.btn { min-height: 42px; padding: 10px 16px; transition: background .15s, border-color .15s; }
.btn-icon { padding: 0; width: 44px; height: 44px; }
.btn-secondary { background: var(--surface); }
.input { min-height: 46px; border-color: #dcdcd9; }
.kicker { color: var(--n400); font-size: 11px; font-weight: 500; letter-spacing: .09em; }
.logo-mark { background: var(--brand); border-radius: 50%; }
.brand { letter-spacing: -.04em; font-size: 22px; }
.page { padding-top: 56px; }
.page h1 { font-size: clamp(32px, 3.4vw, 46px); font-weight: 500; letter-spacing: -.045em; line-height: 1.12; }
.page-eyebrow { margin-bottom: 14px; }
.page .lead { margin-bottom: 42px; line-height: 1.6; }
.page .sub { font-size: 14px; line-height: 1.6; }
.sec-head h2 { font-size: 19px; letter-spacing: -.025em; }
.sec-head { align-items: center; }
.stack-8 { gap: 0; }
.stack-8 > .jcard { box-shadow: none; border: 0; border-radius: 0; }
@media (hover: hover) and (pointer: fine) { .stack-8 > .jcard:hover { box-shadow: none; } }
.tag { gap: 4px; border-radius: 6px; background: var(--n900); color: var(--n300); }
.job-reactions { gap: 4px; }
.job-reactions .reaction { border: 1px solid var(--divider); border-radius: 50%; color: var(--n300); background: var(--surface); }
@media (hover: hover) and (pointer: fine) { .job-reactions .reaction:hover { background: var(--n800); } }
.job-reactions .reaction[aria-pressed="true"] { color: #fff; background: var(--text); border-color: var(--text); }
.job-reactions .reaction[data-reaction="dislike"][aria-pressed="true"] { background: #fff1ef; color: var(--danger); border-color: #e6b5b1; }
.filterbar { padding: 22px; background: var(--n900); box-shadow: none; border: 1px solid var(--divider); }
.trigger { min-height: 44px; }
.nudge { background: var(--n900); box-shadow: none; }
.pipeline { background: var(--n900); box-shadow: none; padding: 28px; }
.pipe-bar { height: 6px; }
.pipe-legend { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.pipe-legend div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pipe-legend b { font-size: 24px; font-weight: 400; letter-spacing: -.04em; color: var(--status-color); }
.pipe-legend .dot { display: none; }
.pipe-legend span:last-child { grid-column: 2; font-size: 12px; }
.crm-wrap { box-shadow: none; }
table.crm { min-width: 0; table-layout: fixed; }
table.crm th, table.crm td { padding: 18px 12px; }
table.crm th:first-child { width: 42%; }
table.crm th:nth-child(2) { width: 20%; }
table.crm th:last-child { width: 96px; }
.crm .role { min-width: 0; }
.crm .acts .btn-icon { width: 40px; height: 40px; }
.crm .role .t { font-size: 14px; }
.crm .role .s, .crm .notes { font-size: 12px; }
.crm .edit-note { min-width: 0; width: 100%; }
.job-detail-facts { background: var(--n900); box-shadow: none; padding: 28px; gap: 24px; }
.job-detail h1 { font-size: clamp(30px, 3vw, 44px); letter-spacing: -.045em; }
.job-detail-description { max-width: 76ch; }
.empty { border: 1px dashed var(--n700); border-radius: 16px; padding: 48px 24px; margin-block: 24px; }
.nav-search-label { display: none; }
footer { color: var(--n400); line-height: 1.7; }
@media (min-width: 901px) {
  #app { padding-top: 0; padding-left: 232px; }
  .nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 232px; right: auto; height: 100dvh; padding: 32px 18px 20px; border-right: 1px solid var(--divider); background: #fafaf9; backdrop-filter: none; }
  .nav .brand { padding: 0 12px; align-self: flex-start; }
  .nav .seg { display: flex; flex-direction: column; align-items: stretch; gap: 5px; margin-top: 20px; padding: 0; background: transparent; border-radius: 10px; }
  .nav .seg .tab-indicator { display: none; }
  .nav .seg button { min-height: 46px; padding: 12px 14px; gap: 12px; border-radius: 10px; font-weight: 400; color: var(--n300); }
  .nav .seg button.on { background: #eaeae7; color: var(--text); font-weight: 500; }
  @media (hover: hover) and (pointer: fine) { .nav .seg button:not(.on):hover { background: var(--n800); } }
  .nav .seg button .ic { font-size: 18px; color: inherit; }
  .nav .seg button .cnt { margin-left: auto; background: var(--surface); }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: auto; }
  #navSearch { width: 100%; height: auto; min-height: 46px; justify-content: flex-start; padding: 12px 14px; gap: 12px; border-radius: var(--r-md); }
  @media (hover: hover) and (pointer: fine) { #navSearch:hover { background: var(--n800); } }
  .nav-search-label { display: inline; font-size: 13px; white-space: nowrap; }
  .nav-actions > .menu { padding-top: 16px; border-top: 1px solid var(--divider); }
  .account-button { width: 100%; margin: 0; padding: 8px 12px; gap: 10px; justify-content: flex-start; }
  .account-name { max-width: 136px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .account-copy small { margin-top: 3px; }
  .menu-panel { left: 0; right: auto; top: auto; bottom: calc(100% + 10px); min-width: 250px; max-height: calc(100dvh - 110px); }
  .menu-panel button, .menu-panel a { min-height: 42px; }
  #jobDetailHeader { height: 0; }
  .job-detail-body { margin-left: 232px; width:calc(100% - 232px); max-width: 1180px; padding: 56px 48px 0; }
  #jobDetailContent { padding-bottom:80px; }
  .page { padding-inline: 48px; }
  .stack-8 > .jcard { grid-template-columns: 40px minmax(0,1fr) auto 92px; padding: 24px 0; column-gap: 16px; row-gap: 5px; }
  .stack-8 > .jcard .mono { width: 40px; height: 40px; }
  .stack-8 > .jcard .t { font-size: 17px; }
  .stack-8 > .jcard .tags { max-width: 130px; }
}
@media (min-width: 901px) and (max-width: 1150px) {
  #app { padding-left: 200px; }
  .nav { width: 200px; padding-inline: 12px; }
  .page { padding-inline: 30px; }
  .job-detail-body { margin-left: 200px; width:calc(100% - 200px); padding-inline: 30px; }
  .stack-8 > .jcard .tags { display: none; }
  .stack-8 > .jcard { grid-template-columns: 40px minmax(0,1fr) 92px; }
  .stack-8 > .jcard .job-reactions { grid-column: 3; }
}

/* A quiet introduction, with real catalog examples and a clear next action. */
.ob-top { height: 88px; padding-inline: 5vw; border-bottom: 1px solid var(--divider); }
.ob-signin { border: 1px solid var(--divider); border-radius: 999px; padding-inline: 20px; }
.ob-body { padding-top: 56px; }
.ob-inner h1 { letter-spacing: -.045em; }
.tile { box-shadow: none; border: 1px solid var(--divider); padding: 20px; }
.tile.on { box-shadow: inset 0 0 0 1px var(--text); border-color: var(--text); background: var(--n900); }
@media (hover: hover) and (pointer: fine) { .tile:hover { box-shadow: none; border-color: var(--n600); } }
.tile .ts { line-height: 1.5; }
.ob-nav { background: #fffffff5; backdrop-filter: blur(12px); }
.ob-progress span { width: 24px; height: 3px; }
.pref-row { gap: 14px; }

@media (max-width: 900px) {
  .nav { background: #fffffff5; border-bottom: 1px solid var(--divider); padding-inline: 24px; }
  .tabbar { border-top: 1px solid var(--divider); box-shadow: none; background: #fffffff5; backdrop-filter: blur(12px); }
  .tabbar button { min-height: 66px; justify-content: center; gap: 5px; position: relative; color: var(--n400); }
  .tabbar button.on::before { content: ""; width: 28px; height: 3px; background: var(--text); border-radius: 0 0 3px 3px; position: absolute; top: 0; }
  .tabbar button.on { color: var(--text); }
  .page { padding-top: 36px; }
  .crm-wrap { overflow-x: auto; }
  table.crm { min-width: 700px; }
}
@media (max-width: 640px) {
  .ob-top { min-height: 68px; height: auto; padding: max(12px, env(safe-area-inset-top)) max(var(--mobile-gutter), env(safe-area-inset-right)) 12px max(var(--mobile-gutter), env(safe-area-inset-left)); }
  .ob-body { padding: 28px var(--mobile-gutter) calc(116px + env(safe-area-inset-bottom)); }
  .ob-progress { gap: 4px; }
  .ob-progress span { width: 12px; }
  .ob-signin { min-height: 40px; padding-inline: 14px; font-size: 13px; }
  .ob-inner h1 { font-size: 32px; }
  .tile { padding: 18px 16px; }
  .tile .tt { font-size: 15px; }
  .tile .ts { font-size: 12px; }
  .pref-row { padding: 18px 16px; flex-wrap: wrap; }
  .pref-row #obMin { width: 100% !important; text-align: left !important; min-height: 48px; }
  .pref-row .pt { font-size: 15px; }
  .pref-row .ps { font-size: 12px; }
  .pref-row > span:not(.toggle) { flex: 1 1 160px; }
  .pref-row .toggle { margin-left: auto; }
  .ob-nav { padding-inline: var(--mobile-gutter); }
  .ob-nav .btn-primary { min-width: 150px; }
  .page { padding: 24px max(var(--mobile-gutter), env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) max(var(--mobile-gutter), env(safe-area-inset-left)); }
  .nav { padding-left: max(var(--mobile-gutter), env(safe-area-inset-left)); padding-right: max(var(--mobile-gutter), env(safe-area-inset-right)); }
  .page .lead { font-size: 15px; margin-bottom: 32px; }
  .page h1 { font-size: 32px; }
  .page-eyebrow { margin-bottom: 12px; }
  .jobs-head { gap: 12px; }
  .jobs-head > div:first-child { flex: 1 1 200px; }
  .search-actions { gap: 8px; }
  .search-actions > .btn-primary { color: var(--text); background: var(--n900); border-color: var(--divider); }
  .search-more summary { background: var(--n900); }
  .filterbar { padding: 16px; }
  .filters { gap: 10px; }
  .dd { flex-basis: calc(50% - 5px); }
  .trigger { min-height: 48px; font-size: 13px; }
  .backdrop { z-index: 48; background: #00000045; }
  .dd.open { z-index: 49; }
  .panel { padding-inline: calc(var(--mobile-gutter) - 8px); --sheet-head-h: 72px; border-radius: 22px 22px 0 0; box-shadow: 0 -12px 48px #00000018; }
  .sheet-head { min-height: var(--sheet-head-h); flex-shrink: 0; padding: 18px 8px 10px; touch-action: none; cursor: grab; }
  .sheet-head button { width: 44px; min-width: 44px; min-height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--n900); border-radius: 999px; }
  .panel-list .row { min-height: 48px; padding-inline: 8px; }
  .panel-search { padding-inline: 8px; }
  .panel-search .input { min-height: 44px; }
  .panel-add { min-height: 44px; }
  .row .lbl { white-space: normal; }
  .pipeline { padding: 22px 18px; margin-bottom: 26px; }
  .pipe-legend { grid-template-columns:repeat(3, minmax(0, 1fr)); gap:16px 12px; }
  .pipe-legend div { grid-template-columns: auto; gap: 4px; }
  .pipe-legend .dot { display: none; }
  .pipe-legend span:last-child { grid-column: 1; font-size: 12px; }
  .pipe-legend b { font-size: 25px; }
  .crm-wrap { overflow: visible; }
  table.crm { min-width: 0; }
  table.crm tr { box-shadow: none; border: 1px solid var(--divider); padding: 16px; margin-bottom: 12px; }
  table.crm td { padding: 6px 0; }
  .crm .role { align-items: flex-start; }
  .crm .role .t { font-size: 16px; }
  .crm .role .s { font-size: 12px; margin-top: 6px; }
  .crm .notes { font-size: 13px; }
  .crm td.acts { border-top: 1px solid var(--divider); padding-top: 14px; }
  .crm .acts .btn-icon { flex: 1; height: 44px; }
  .crm .acts .btn-icon::after { font-size: 13px; content: attr(aria-label); }
  .job-detail-facts { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 20px 16px; gap: 20px; font-size: 14px; }
  .job-detail-actions { background: #fffffff5; backdrop-filter: blur(12px); }
  .job-detail-actions .btn { border-radius: 999px; min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* Keep status labels inside their table column on compact desktops. */
@media (min-width: 641px) {
  table.crm th:last-child { width: 88px; }
  .crm .pill { font-size: 12px; padding: 4px 8px; gap: 4px; }
}

/* Landing: editorial typography, catalog evidence, and a real product sample. */
.ob-body.landing { align-items: flex-start; padding: 0 5vw 0; }
.ob-body.landing .ob-inner { max-width: 1160px; }
.welcome { width: 100%; }
.welcome-copy { text-align: center; padding: 76px 16px 48px; }
.welcome-eyebrow { display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--n300); font-size: 12px; margin-bottom: 26px; }
.status-dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #50725f; }
.welcome h1.hero { font-size: clamp(52px, 6.5vw, 90px); font-weight: 400; letter-spacing: -.065em; line-height: 1.02; margin: 0 0 26px; }
.welcome h1.hero em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.055em; color: var(--brand); }
.welcome .lead.big { max-width: 46ch; font-size: 17px; line-height: 1.7; margin: 0 auto 28px; color: var(--n400); }
.welcome-actions { display: flex; align-items: center; justify-content: center; gap: 16px; }
.welcome .btn { min-height: 50px; padding-inline: 24px; gap: 24px; }
.welcome-numbers { max-width: 880px; margin: 0 auto 58px; padding-top: 32px; border-top: 1px solid var(--divider); }
.welcome-numbers dl { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin: 0; }
.welcome-numbers dl > div { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px; }
.welcome-numbers dl > div + div { border-left: 1px solid var(--divider); }
.welcome-numbers dd { order: -1; margin: 0; font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -.055em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.welcome-numbers dt { font-size: 12px; color: var(--n400); text-align: center; }
.landing-label { font-size: 10px; font-weight: 500; letter-spacing: .09em; color: var(--n400); }
.welcome-how { padding: 48px 8px 76px; border-top: 1px solid var(--divider); }
.welcome-section-head h2 { font-size: 38px; letter-spacing: -.05em; line-height: 1.15; font-weight: 400; margin-top: 16px; scroll-margin-top: 28px; }
.welcome-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px; margin-top: 36px; }
.welcome-facts > div { border-top: 1px solid var(--divider); padding-top: 18px; }
.fact-index { font-size: 11px; color: var(--n500); }
.welcome-facts h3 { font-size: 17px; font-weight: 500; letter-spacing: -.025em; margin: 20px 0 10px; line-height: 1.4; }
.welcome-facts p { font-size: 13px; color: var(--n400); line-height: 1.8; max-width: 35ch; margin: 0; }
.welcome-invitation { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 40px; border-radius: 18px; background: var(--n900); }
.welcome-invitation h2 { font-size: 30px; font-weight: 400; letter-spacing: -.045em; line-height: 1.2; margin-top: 12px; }
.welcome-invitation .btn { flex: none; }
.welcome-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 48px; padding: 28px 0; border-top: 1px solid var(--divider); font-size: 11px; color: var(--n400); }
.welcome-footer b { font-size: 18px; font-weight: 500; letter-spacing: -.045em; color: var(--text); margin-right: 20px; }
.welcome-footer a { display: flex; align-items: center; min-height: 44px; }
@media (max-width: 900px) {
  .welcome-copy { padding-top: 60px; }
  .welcome h1.hero { font-size: 68px; }
  .welcome-facts { gap: 24px; }
}
@media (max-width: 640px) {
  .ob-body.landing { padding-inline: var(--mobile-gutter); }
  .welcome-copy { padding: 36px 0 28px; }
  .welcome-eyebrow { font-size: 11px; margin-bottom: 24px; }
  .welcome h1.hero { font-size: clamp(35px, 10.8vw, 68px); letter-spacing: -.06em; margin-bottom: 22px; }
  .welcome .lead.big { font-size: 15px; line-height: 1.65; max-width: 34ch; margin-bottom: 26px; }
  .welcome-actions { flex-direction: column; gap: 10px; }
  .welcome .btn { min-height: 52px; }
  .welcome-actions .btn, .welcome-start { width: 100%; justify-content: center; }
  .welcome-numbers { margin-bottom: 34px; padding-top: 24px; }
  .welcome-numbers dl > div { gap: 7px; padding-inline: 4px; }
  .welcome-numbers dd { font-size: clamp(20px, 6vw, 36px); letter-spacing: -.06em; white-space: nowrap; }
  .welcome-numbers dt { font-size: 10px; line-height: 1.45; max-width: 12ch; }
  .welcome-how { padding: 48px 0; }
  .welcome-section-head h2 { font-size: 32px; }
  .welcome-facts { grid-template-columns: 1fr; gap: 26px; margin-top: 28px; }
  .welcome-facts h3 { margin-top: 12px; }
  .welcome-facts p { max-width: 44ch; }
  .welcome-invitation { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .welcome-invitation h2 { font-size: 29px; }
  .welcome-footer { margin-top: 30px; padding-block: 18px; align-items: flex-start; }
  .welcome-footer > span { display: flex; flex-direction: column; gap: 8px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Final setup and sign-in share a single, calm reading column. */
.ob-body.auth-step-body { padding-bottom: max(48px, env(safe-area-inset-bottom)); align-items: flex-start; }
.ob-auth { width: 100%; max-width: 460px; text-align: left; }
.ob-auth h1 { font-size: 48px; line-height: 1.08; max-width: 14ch; margin-bottom: 18px; letter-spacing: -.045em; }
.ob-auth .auth-step { margin-bottom: 20px; }
.ob-auth .lead { line-height: 1.6; margin-bottom: 28px; }
.ob-auth form { max-width: none; }
.auth-hint { font-size: 12px; line-height: 1.6; margin: 10px 0 0; color: var(--n400); }
.ob-auth .auth-submit { min-height: 50px; margin-top: 20px; gap: 12px; }
.auth-privacy { text-align: center; font-size: 11px; line-height: 1.7; color: var(--n400); margin: 12px 0 0; }
.auth-privacy a { text-decoration: underline; text-underline-offset: 3px; }
.ob-auth .auth-status:empty { display: none; }
.auth-account { color: var(--n400); font-size: 13px; line-height: 1.6; }
.auth-account span { display: block; color: var(--text); overflow-wrap: anywhere; }
.auth-nav-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--n300); font: inherit; font-size: 12px; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .auth-nav-link:hover { background: var(--n900); color: var(--text); } }
#obAuthIntro > .auth-nav-link { margin: -12px 0 20px -12px; }
#obVerifyIntro .lead { margin-bottom: 2px; }
#obVerifyIntro h1 { max-width: none; }
.auth-nav-link:disabled { opacity: .45; cursor: wait; }
.auth-recipient { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.auth-recipient strong { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.auth-recipient .auth-nav-link { flex-shrink: 0; text-decoration: underline; text-underline-offset: 3px; }
#obCodeActions { align-items: center; gap: 2px; margin-top: 16px; font-size: 12px; color: var(--n400); }
#obCodeActions .auth-nav-link { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .ob-auth h1 { font-size: 40px; }
  .ob-auth .auth-step { margin-bottom: 16px; }
  .ob-auth .lead { font-size: 15px; margin-bottom: 24px; }
  .ob-auth .auth-submit { min-height: 52px; }
  .auth-recipient { flex-direction:column; align-items:flex-start; gap:0; }
  .auth-recipient .auth-nav-link { margin-left:-12px; }
}

/* Tablet actions need the same tap area as their phone equivalents. */
@media (max-width:1100px) {
  .btn, .ob-top .btn, .ob-nav .btn, .nudge .acts .btn, .search-actions > .btn,
  .search-more-menu button, .trigger { min-height:44px; }
  .achip { min-height:44px; padding:0 0 0 12px; }
  .achip .x { min-width:44px; min-height:44px; justify-content:center; align-items:center; flex:none; }
}

/* Keep the account hover within the avatar, without enlarging its circle. */
@media (hover: hover) and (pointer: fine) { .account-button:hover { background: transparent; } }
.account-button:active { background: transparent; }
.account-button .avatar { overflow: hidden; transition: background .15s; }
@media (hover: hover) and (pointer: fine) { .account-button:hover .avatar { background: var(--n700); } }
.account-button[aria-expanded="true"] .avatar { background: var(--n700); }
.account-copy, .account-copy small { text-align: left; }
.dismiss-button { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.dismiss-button .ic { font-size: 20px; }

#globalSearchStatus:empty { display: none; }


/* Shared job list: content follows the page grid; feedback extends around it. */
#view-jobs #jobsSub:not(:empty) { margin-bottom: 16px; }
#view-jobs .saved-search-bar { margin-bottom: 24px; }
#view-jobs .group { margin-bottom: 40px; }
#view-jobs .group-head { margin-bottom: 14px; }
#view-jobs .stack-8 > .jcard {
  padding-inline: 0;
  background: transparent;
}
#view-jobs .stack-8 > .jcard::before {
  content: ''; position: absolute; inset: 4px calc(-1 * var(--row-bleed));
  z-index: -1; pointer-events: none; border-radius: 12px;
  background: transparent; transition: background .15s;
}
#view-jobs .jcard a.cover::after {
  inset: 4px calc(-1 * var(--row-bleed)); border-radius: 12px;
}
@media (hover: hover) and (pointer: fine) {
  #view-jobs .jcard:hover::before { background: var(--hover-surface); }
}
@media (min-width:901px) {
  #view-jobs.page { padding-top:32px; }
  #view-jobs .stack-8 > .jcard { padding-block:12px; row-gap:3px; }
  #view-jobs .saved-search-bar { margin-bottom:16px; }
  #view-jobs .group { margin-bottom:28px; }
  #view-jobs .group-head { margin-bottom:8px; }
}
.search-more summary { width: var(--control-size); height: var(--control-size); border-radius: 50%; }
.trigger, .add-filter { border-radius: 999px; }
.add-filter { box-shadow: none; }
.btn-icon, .dismiss-button { flex-shrink: 0; }
.job-detail-top { flex-wrap: nowrap; }
#detailReactions { margin-left: auto; }
#navSettings:focus-visible { outline: none; }
#navSettings:focus-visible .avatar { outline: 2px solid var(--text); outline-offset: 3px; }
.menu-panel { max-width: min(320px, calc(100vw - 32px)); }
.menu-panel button, .menu-panel a { min-height: var(--control-size); }
.crm .acts .btn-icon { padding: 0; }
.crm .acts .btn-icon .ic { font-size: 18px; }
@media (min-width: 1101px) {
  table.crm th:last-child { width: 112px; }
  .crm .acts .btn-icon { width: 40px; height: 40px; min-height: 40px; }
  .crm tr.editing td.acts { white-space: normal; }
  .crm tr.editing td.acts .btn { width: 100%; margin: 4px 0; }
}
/* Cards give application notes room at tablet widths, too. */
@media (min-width: 641px) and (max-width: 1100px) {
  .crm-wrap { overflow: visible; }
  table.crm, table.crm thead, table.crm tbody, table.crm tr, table.crm td { width: auto; min-width: 0; }
  table.crm { display: block; }
  table.crm thead { display: none; }
  table.crm tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  table.crm tr { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--divider); border-radius: var(--r-lg); background: var(--surface); }
  table.crm td { display: block; padding: 6px 0; border: 0; }
  @media (hover: hover) and (pointer: fine) { table.crm tbody tr:hover td { background: transparent; } }
  table.crm td[data-label]:not([data-label="Role"])::before { content: attr(data-label) ': '; color: var(--n500); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; margin-right: 6px; }
  table.crm td[data-label="Role"] { margin-bottom: 12px; }
  .crm .role { align-items: flex-start; }
  .crm .notes { max-width: none; }
  .crm td.acts { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; text-align: left; white-space: normal; }
  .crm .acts .btn { flex: 1; min-height: 44px; margin: 0; }
  .crm .acts .btn-icon { border: 1px solid var(--divider); }
  .crm .acts .btn-icon::after { content: attr(aria-label); font-size: 13px; }
  .crm .edit-note { min-height: 90px; font-size: 16px; }
  .crm select.st { min-height: 44px; font-size: 16px; }
}
.job-card-content { display:contents; }
.job-workplace-icon { display:none; }
@media (max-width: 640px) {
  :root { --row-bleed: 0px; }
  /* Phone rows share one edge and spacing rhythm. No hover layer behind labels. */
  #view-jobs .stack-8 > .jcard, .jcard { padding:8px 0; gap:5px; box-shadow:none; background:var(--surface); }
  #view-jobs .stack-8 { gap:14px; }
  #view-jobs .jcard { touch-action:pan-y pinch-zoom; }
  #view-jobs .job-card-content { display:flex; flex-direction:column; gap:5px; position:relative; z-index:1; background:var(--surface); transform:translateX(var(--swipe-offset, 0px)); }
  #view-jobs .jcard .job-reactions { display:none; }
  #view-jobs .jcard.swiping { user-select:none; -webkit-user-select:none; overflow:hidden; }
  #view-jobs .jcard.swiping .job-card-content { will-change:transform; }
  .job-swipe-feedback { position:absolute; inset:0; z-index:0; border-radius:12px; display:flex; align-items:center; padding:12px; font-size:13px; font-weight:500; pointer-events:none; }
  .job-swipe-feedback[data-reaction="like"] { justify-content:flex-start; background:#edf8f0; color:#226344; }
  .job-swipe-feedback[data-reaction="dislike"] { justify-content:flex-end; background:#fff1ef; color:#92433e; }
  #view-jobs .stack-8 > .jcard::before { content:none; }
  .jcard:hover { box-shadow:none; }
  #view-jobs .jcard a.cover::after { inset:4px -6px; border-radius:8px; }
  .jcard .top { align-items:center; gap:12px; }
  .jcard .t { font-size:16px; line-height:1.4; letter-spacing:-.015em; }
  .jcard .top .co { font-size:12px; line-height:1.4; gap:8px; color:var(--n300); }
  .jcard .top .co > span { white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  .jcard .mono { width: 28px; height: 28px; font-size: 12px; }
  .jcard .mono img { width: 18px; height: 18px; }
  .jcard .tags { gap:6px; }
  .jcard .tags:empty { display:none; }
  .jcard .workplace-tag, .jcard .source-tag { display:none; }
  .jcard .tags:not(:has(.tag:not(.workplace-tag):not(.source-tag))) { display:none; }
  .jcard .tag { font-size:12px; line-height:1.4; min-height:26px; padding:3px 8px; border:1px solid #e3e3e0; border-radius:7px; background:#fff; color:#454545; }
  .jcard .tag > [aria-hidden] { font-size:13px; line-height:1; }
  .jcard .foot { margin:0; font-size:12px; line-height:1.55; gap:3px 6px; color:#626262; }
  .jcard .job-location { min-width:0; max-width:100%; }
  .job-workplace-icon { display:inline; margin-right:5px; }
  .jcard .job-meta-separator { display:none; }
  .jcard .job-age { white-space:nowrap; }
  .jcard .job-age::before { content:'·'; margin-right:6px; }
  .jcard .foot .pay { flex-basis:100%; min-width:0; margin:2px 0 0; text-align:left; font-size:13px; font-weight:500; color:var(--n200); overflow-wrap:anywhere; }
  .job-reactions { gap:4px; }
  .job-reactions .reaction { width:44px; height:44px; min-width:44px; min-height:44px; border-color:#e3e3e0; }
  .job-reactions .reaction[aria-pressed="false"]:hover { background:var(--surface); }
  .jcard .job-reactions svg { width:18px; height:18px; }
  #view-jobs .saved-search-bar { margin-bottom:20px; }
  #view-jobs .group { margin-bottom:24px; }
  #view-jobs .group-head { margin-bottom:4px; }
  .saved-search-rail { padding:2px; }
  .saved-search-pill { line-height:1.3; }
  .search-new-count { font-size:12px; }
  .search-toolbar { gap:10px; }
  .search-toolbar-actions { gap:8px; }
  .search-toolbar-actions .inline-filter-action, .search-more summary { background:var(--surface); border:1px solid var(--divider); }
  .search-toolbar-actions .inline-filter-action[aria-expanded="true"] { border-color:var(--n300); }
  .filterbar, .search-creating .filterbar { padding:14px; background:var(--surface); border-color:var(--divider); border-radius:16px; }
  #activeChips { gap:8px; margin-bottom:14px; }
  .achip { background:#f5f3fc; color:#514395; border:1px solid #e3ddf4; box-shadow:none; line-height:1.4; }
  .achip .x { color:inherit; }
  .achip .dim { color:inherit; }
  .trigger { border-radius:12px; line-height:1.4; }
  .trigger .sel { background:transparent; padding-inline:4px; color:var(--n400); }
  .trigger .sel.on { background:#f0ecfa; color:#514395; }
  .filters { gap:8px; }
  .dd { flex-basis:calc(50% - 4px); }
  .filter-actions { margin-top:14px; padding-top:12px; }
  .filter-action-buttons { gap:8px; }
  .jobs-head { align-items: flex-start; }
  .jobs-head > div:first-child { flex-basis: 100%; }
  .job-detail-top { gap: 16px; }
}
@media (max-width: 360px) {
  .filters .dd { flex-basis: 100%; }
}

/* Account popover: identity first, everyday actions next, data tools on demand. */
.account-menu { width: 328px; min-width: 0; padding: 8px; border: 1px solid var(--divider); border-radius: 18px; box-shadow: 0 12px 40px #00000014; }
.account-menu-header { display: flex; align-items: flex-start; gap: 10px; padding: 12px 8px 18px; }
.account-menu-header > .avatar { width: 36px; height: 36px; flex: none; margin-top: 2px; }
.account-menu-identity { flex: 1; min-width: 0; }
.account-menu-identity > strong { display: block; font-size: 14px; line-height: 1.5; font-weight: 500; }
.account-menu-identity > span { display: block; font-size: 12px; color: var(--n400); line-height: 1.5; overflow-wrap: anywhere; }
.account-menu .account-menu-header .dismiss-button { width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; margin: -6px -6px 0 0; }
.account-sync { font-size: 11px; color: var(--n400); line-height: 1.5; overflow-wrap: anywhere; }
.account-sync > [role="status"]:not(:empty) { display: block; margin-top: 5px; }
.account-sync > [role="status"]:empty { display: none; }
.account-menu .account-sync button { padding: 4px 0; color: var(--text); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.account-menu-group { padding: 6px 0; border-top: 1px solid var(--divider); }
.account-menu button, .account-menu a, .account-menu summary { width: 100%; min-height: 44px; padding: 11px 12px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.account-menu button { gap: 12px; }
.account-menu button .ic { width: 18px; height: 18px; font-size: 18px; }
#toggleCategories { justify-content: space-between; }
#toggleCategories .toggle { width: 30px; height: 18px; flex: none; }
#toggleCategories .toggle::after { width: 14px; height: 14px; top: 2px; left: 2px; }
#toggleCategories .toggle.on::after { left: 14px; }
.account-menu-tools { border-top: 1px solid var(--divider); padding-top: 6px; }
.account-menu-tools summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; color: var(--n300); }
.account-menu-tools summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) { .account-menu-tools summary:hover { background: var(--n900); } }
.account-menu-chevron { display: block; width: 16px; height: 16px; flex: none; transform-origin: center; }
.account-menu-tools[open] .account-menu-chevron { transform: rotate(180deg); }
.account-menu-tools[open] summary { color: var(--text); }
.account-menu #deleteAccountBtn { border-top: 1px solid var(--divider); border-radius: 0; margin-top: 6px; }
.account-menu .account-privacy { display: flex; justify-content: space-between; color: var(--n400); }
.account-menu .account-privacy span { font-size: 16px; }
.account-session-actions { border-top: 1px solid var(--divider); padding-top: 6px; margin-top: 6px; }
.account-session-actions button { font-weight: 500; }
@media (max-width: 640px) {
  .account-menu { position: fixed; top: calc(var(--app-header-height, 76px) + 8px); right: 12px; left: auto; width: calc(100vw - 24px); max-width: 360px; max-height: calc(100dvh - var(--app-header-height, 76px) - 24px); }
}

#trackerReminders { margin-bottom:28px; }
#trackerReminders .sec-head { margin-bottom:12px; }
#trackerReminders .nudge .acts { margin-top:auto; }

.search-picker-chevron { display:none; }
.search-picker { position:fixed; inset:auto 0 0; width:100%; max-width:100%; max-height: min(75dvh, 600px); margin:0; padding:0; border:0; border-radius:24px 24px 0 0; background:var(--surface); color:var(--text); overflow:hidden; box-shadow:0 -12px 48px #00000018; }
.search-picker[open] { display:flex; flex-direction:column; }
.search-picker::backdrop { background:rgb(0 0 0 / .24); }
html:has(.search-picker[open]), body:has(.search-picker[open]) { overflow:hidden; overscroll-behavior:none; }
.search-picker-head { position:relative; display:flex; align-items:center; justify-content:space-between; gap:16px; flex:none; padding:20px max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left)); touch-action:none; }
.search-picker-head::before { content:''; position:absolute; top:8px; left:calc(50% - 18px); width:36px; height:4px; border-radius:2px; background:var(--n700); }
.search-picker-head h2 { font-size:18px; letter-spacing:-.3px; line-height:1.3; }
.search-picker-head .dismiss-button { flex:none; width:44px; height:44px; }
.search-picker-options { min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; padding:0 max(12px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.search-picker-option { display:flex; align-items:center; gap:10px; width:100%; min-height:56px; padding:14px 12px; border:0; border-radius:14px; background:transparent; color:var(--text); font:inherit; font-size:15px; line-height:1.4; text-align:left; cursor:pointer; touch-action:manipulation; }
.search-picker-option + .search-picker-option { margin-top:4px; }
.search-picker-option[aria-current="true"] { background:var(--n900); font-weight:500; }
.search-picker-option:focus-visible { outline-offset:-2px; }
.search-picker-name { flex:1; min-width:0; overflow-wrap:anywhere; text-wrap:pretty; }
.search-picker-check { flex:none; width:20px; height:20px; display:flex; align-items:center; justify-content:center; color:var(--text); }
.search-picker-option[aria-current="true"] .search-picker-check::before { content:''; width:6px; height:11px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:translateY(-2px) rotate(45deg); }
.search-picker-option .search-new-count { flex:none; }
@media (hover:hover) and (pointer:fine) {
  .search-picker-option:not([aria-current="true"]):hover { background:var(--hover-surface); }
}
@media (max-width:640px) {
  .saved-search-pill[aria-haspopup="dialog"] .search-picker-chevron { display:block; width:7px; height:7px; flex:none; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-2px) rotate(45deg); margin-left:2px; }
}
:root { --match-accent: #295d48; }
.matches-coming-soon { padding: 36px; max-width: 640px; margin-top: 24px; }
.matches-coming-soon h2 { margin: 20px 0 12px; }
.matches-coming-soon p { color: var(--n500); line-height: 1.6; }
.matches-sort { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.match-date { margin-inline-start: 6px; font-size: 13px; color: var(--n400); white-space: nowrap; }
.matches-report { margin: 28px 0; }
.matches-report > .muted { margin-bottom: 20px; }
.match-result { margin-bottom: 20px; }
.match-result .jcard { margin-bottom: 0; border-radius: 14px 14px 0 0; }
.match-assessment { border: 1px solid var(--divider); border-top: 0; border-radius: 0 0 14px 14px; padding: 16px 20px; background: #f7faf8; font-size: 14px; line-height: 1.55; }
.match-assessment .tag { color: var(--match-accent); background: #e7f0eb; }
.match-assessment p { margin: 10px 0; }
.match-assessment summary { cursor: pointer; font-weight: 600; }
@media (max-width: 640px) { .matches-coming-soon { padding: 24px; } .match-assessment { padding: 14px; } }
