/* ============================================================
   Portal: the signed-in app in the LowKeyHired design, the same as the landing page (landing.css): Plus Jakarta Sans,
   near-black headings, pill buttons in the action colour, and the floating glass nav. Loaded after styles.css.

   The app's own variables (--ink, --accent, --forest, fonts...) are pointed at the brand tokens in brand.css, so
   every existing component follows the palette without being rewritten, and switching PALETTE in app/brand.py
   restyles the portal too. Layout rules are scoped to pages that aren't marketing pages (body:not(.landing-page))
   and kept at low specificity with :where(), so component styles (and the resume preview's Times pages) still win.
   ============================================================ */
:root {
  --ink: var(--lk-text);
  --ink-soft: color-mix(in srgb, var(--lk-text) 72%, var(--lk-bg));
  --ink-mute: color-mix(in srgb, var(--lk-text) 56%, var(--lk-bg));
  --rule: var(--lk-line);
  --rule-soft: color-mix(in srgb, var(--lk-text) 7%, var(--lk-bg));
  --paper: var(--lk-surface);
  --paper-warm: color-mix(in srgb, var(--lk-primary) 3%, var(--lk-bg));
  --paper-deep: var(--lk-tint);
  --cream: var(--lk-bg);
  --forest: var(--lk-text);
  --accent: var(--lk-primary);
  --accent-deep: var(--lk-deep);
  --accent-soft: var(--lk-tint);
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--lk-primary) 22%, transparent);
  --font-display: var(--lk-font);
  --font-body: var(--lk-font);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-card: 0 1px 1px var(--lk-shadow), 0 12px 32px -18px var(--lk-shadow);
  --shadow-hover: 0 2px 6px -2px var(--lk-shadow), 0 26px 50px -26px color-mix(in srgb, var(--lk-text) 26%, transparent);
  --pt-hair: color-mix(in srgb, var(--lk-text) 9%, transparent);
  --pt-glass: color-mix(in srgb, var(--lk-surface) 74%, transparent);
  --pt-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ── Canvas and type ───────────────────────────────────────── */
body:not(.landing-page) {
  background-color: var(--lk-bg);
  background-image:
    radial-gradient(50% 32% at 18% 0%, color-mix(in srgb, var(--lk-primary) 9%, transparent), transparent 72%),
    radial-gradient(40% 28% at 92% 4%, color-mix(in srgb, #6a49e0 6%, transparent), transparent 70%);
  background-repeat: no-repeat;
  color: var(--lk-text);
  font: 500 16px/1.55 var(--lk-font);
}
:where(body:not(.landing-page)) :where(h1, h2, h3) { font-family: var(--lk-font); font-weight: 800; letter-spacing: -0.035em; color: var(--lk-text); }
:where(body:not(.landing-page)) :where(.hero-title, .modal-title, .job-title, .app-title, .summary-num) { color: var(--lk-text); }
:where(body:not(.landing-page)) .hero-title em { background: none; color: var(--lk-primary); padding: 0; }
/* The page-wide glow runs behind the floating nav, as on the landing page; heroes don't paint their own band. */
:where(body:not(.landing-page)) .hero { background: none; padding-top: 64px; }
:where(body:not(.landing-page)) :focus-visible { outline: 3px solid color-mix(in srgb, var(--lk-primary) 55%, transparent); outline-offset: 2px; }
:where(body:not(.landing-page)) a:hover { color: var(--lk-link); }

/* ── Buttons: pills, like the landing page ─────────────────── */
:where(body:not(.landing-page)) .btn-primary {
  border-radius: 999px; background: var(--lk-action); border-color: var(--lk-action); color: var(--lk-on-action);
  font-family: var(--lk-font); font-weight: 700; letter-spacing: -0.005em;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 22%, transparent), 0 10px 24px -14px var(--lk-action);
  transition: transform 200ms var(--pt-ease), background 200ms ease, box-shadow 200ms ease;
}
:where(body:not(.landing-page)) .btn-primary:hover { background: var(--lk-action-hover); border-color: var(--lk-action-hover); color: var(--lk-on-action); transform: translateY(-1px); }
:where(body:not(.landing-page)) .btn-primary:disabled { transform: none; }
:where(body:not(.landing-page)) :where(.btn-ghost, .btn-analyze, .btn-secondary) {
  border-radius: 999px; background: var(--lk-surface); border-color: var(--lk-line); color: var(--lk-text); font-family: var(--lk-font); font-weight: 700;
}
:where(body:not(.landing-page)) :where(.btn-ghost, .btn-analyze, .btn-secondary):hover { border-color: color-mix(in srgb, var(--lk-text) 26%, var(--lk-bg)); background: var(--lk-tint); color: var(--lk-text); }

/* ── Inputs and cards ──────────────────────────────────────── */
:where(body:not(.landing-page)) :where(input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], select, textarea) { border-radius: 12px; }
:where(body:not(.landing-page)) :where(.profile-block, .card, .panel) { border-radius: 24px; }

/* ── Nav: the floating glass pill ──────────────────────────── */
.pt-nav { position: sticky; top: 0; z-index: 50; padding: 14px 16px 0; pointer-events: none; }
.pt-nav-pill {
  pointer-events: auto; display: flex; align-items: center; gap: 18px; max-width: 1180px; min-height: 64px; margin: 0 auto;
  padding: 0 8px 0 22px; border-radius: 999px; background: var(--pt-glass); border: 1px solid var(--pt-hair);
  backdrop-filter: saturate(170%) blur(18px); -webkit-backdrop-filter: saturate(170%) blur(18px);
  box-shadow: 0 1px 0 color-mix(in srgb, #fff 50%, transparent) inset, 0 10px 40px -18px var(--lk-shadow);
}
.pt-logo { display: inline-flex; align-items: center; flex-shrink: 0; border-bottom: none; }
.pt-logo svg { display: block; height: 26px; width: auto; }
.pt-links { display: flex; gap: 2px; margin: 0 auto; }
.pt-links a {
  font-size: 14.5px; font-weight: 600; color: var(--lk-muted); padding: 9px 16px; border-radius: 999px; border-bottom: none;
  transition: background 200ms ease, color 200ms ease;
}
.pt-links a:hover { background: var(--lk-tint); color: var(--lk-text); }
.pt-links a.is-active { background: var(--lk-text); color: var(--lk-bg); }
.pt-signin { margin-left: auto; padding: 12px 20px; }

/* Account menu */
.pt-account { position: relative; flex-shrink: 0; }
.pt-account-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 999px;
  border: 1px solid var(--lk-line); background: var(--lk-surface); color: var(--lk-text); font: 700 14px/1 var(--lk-font);
  transition: border-color 160ms ease, background 160ms ease;
}
.pt-account-btn:hover, .pt-account.is-open .pt-account-btn, .pt-account-btn.is-active { background: var(--lk-tint); border-color: var(--lk-tint-strong); }
.pt-avatar {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--lk-action); color: var(--lk-on-action); font: 800 15px/1 var(--lk-font);
}
.pt-account-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-caret { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--pt-ease); }
.pt-account.is-open .pt-caret { transform: rotate(180deg); }
.pt-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 280px; padding: 8px; border-radius: 22px;
  background: var(--lk-surface); border: 1px solid var(--pt-hair);
  box-shadow: 0 2px 6px -2px var(--lk-shadow), 0 30px 60px -24px color-mix(in srgb, var(--lk-text) 30%, transparent);
  animation: pt-menu-in 160ms var(--pt-ease);
}
@keyframes pt-menu-in { from { opacity: 0; transform: translateY(-6px); } }
.pt-menu-head { display: grid; gap: 2px; padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--lk-line); }
.pt-menu-head strong { font-size: 15px; }
.pt-menu-head span { font-size: 13px; color: var(--lk-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-menu a, .pt-menu button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 14px;
  background: none; color: var(--lk-text); font: 600 14.5px/1.2 var(--lk-font); text-align: left; border-bottom: none;
}
.pt-menu a:hover, .pt-menu button:hover, .pt-menu a:focus-visible, .pt-menu button:focus-visible { background: var(--lk-tint); color: var(--lk-text); outline: none; }
.pt-menu a[aria-current="page"] { background: var(--lk-tint); }
.pt-menu svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--lk-link); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pt-menu-badge {
  margin-left: auto; min-width: 28px; padding: 4px 9px; border-radius: 999px; text-align: center;
  background: var(--lk-tint-strong); color: var(--lk-link); font-size: 12.5px; font-weight: 800;
}
.pt-menu-logout { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--lk-line); }
.pt-menu-logout button { color: #a3283f; }
.pt-menu-logout svg { stroke: #a3283f; }

@media (max-width: 960px) {
  .pt-nav { padding: 10px 12px 0; }
  .pt-nav-pill { flex-wrap: wrap; gap: 6px 12px; border-radius: 26px; padding: 8px 8px 8px 18px; }
  .pt-account { margin-left: auto; }
  .pt-account-name { display: none; }
  .pt-account-btn { padding: 4px 10px 4px 4px; }
  .pt-links { order: 3; width: 100%; margin: 0 -2px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .pt-links::-webkit-scrollbar { display: none; }
  .pt-links a { flex-shrink: 0; padding: 8px 14px; }
}
@media (max-width: 420px) {
  .pt-menu { width: min(300px, calc(100vw - 32px)); }
}
/* Phones: row one is the logo, credits and account; row two is the four tabs, equal width, never scrolling sideways */
@media (max-width: 960px) {
  .pt-nav-pill { gap: 8px 10px; padding: 8px 8px 8px 16px; min-height: 0; }
  .pt-logo svg { height: 24px; }
  .pt-credits { margin-left: auto; padding: 7px 12px; font-size: 13px; }
  .pt-credits + .pt-account { margin-left: 0; }
  .pt-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 4px; overflow: visible; border-radius: 999px; background: var(--lk-tint); }
  .pt-links a { display: flex; align-items: center; justify-content: center; padding: 9px 4px; font-size: 13.5px; text-align: center; white-space: nowrap; }
}
@media (max-width: 480px) {
  .pt-nav-pill { gap: 8px 6px; padding: 8px 8px 8px 14px; }
  .pt-logo svg { height: 21px; }
  .pt-credits { padding: 7px 11px; }
  .pt-credits svg { display: none; }
  .pt-account-btn { padding: 3px 8px 3px 3px; gap: 6px; }
  .pt-avatar { width: 32px; height: 32px; }
}
@media (max-width: 380px) {
  .pt-nav-pill { padding-left: 12px; gap: 8px 4px; }
  .pt-logo svg { height: 19px; }
  .pt-credits { padding: 6px 9px; font-size: 12.5px; }
  .pt-account-btn { padding: 3px 6px 3px 3px; gap: 4px; }
  .pt-avatar { width: 30px; height: 30px; }
  .pt-links a { font-size: 12.5px; padding: 9px 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-menu { animation: none; }
  :where(body:not(.landing-page)) .btn-primary:hover { transform: none; }
}

/* Home toolbar on phones: the country chips, dropdowns, refresh and layout switch wrap instead of overlapping */
@media (max-width: 640px) {
  .fx-toolbar .pv-list-tools { flex-wrap: wrap; row-gap: 8px; }
  .fx-toolbar .fx-view { margin-left: auto; }
}

/* ── Footer ────────────────────────────────────────────────── */
:where(body:not(.landing-page)) .footer { background: transparent; border-top: 1px solid var(--lk-line); }

/* ── Out-of-credits prompt (static/js/page.js) ─────────────── */
.pt-credit-toast {
  position: fixed; z-index: 80; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 14px; max-width: min(520px, calc(100vw - 32px));
  padding: 14px 14px 14px 20px; border-radius: 22px; background: var(--lk-text); color: var(--lk-bg);
  box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--lk-text) 50%, transparent); animation: pt-menu-in 200ms var(--pt-ease);
}
.pt-credit-toast p { margin: 0; font-size: 14.5px; font-weight: 600; }
.pt-credit-toast .btn-primary { flex-shrink: 0; padding: 10px 16px; font-size: 14px; border-bottom: none; }
.pt-credit-toast-x { background: none; border: 0; color: inherit; font-size: 22px; line-height: 1; padding: 4px 6px; opacity: 0.7; }
.pt-credit-toast-x:hover { opacity: 1; }
@media (max-width: 560px) { .pt-credit-toast { left: 16px; right: 16px; bottom: 16px; flex-wrap: wrap; } }

/* ── Account pages: Sign-in and security, Credits and plan ── */
.acct { display: grid; gap: 22px; padding-bottom: 64px; }
.acct > * { width: 100%; max-width: 860px; }
.acct .profile-block, .st-panel, .st-card, .st-balance {
  margin: 0; padding: 26px 28px; border-radius: 24px; background: var(--lk-surface); border: 1px solid var(--lk-line); box-shadow: var(--shadow-card);
}
.acct .profile-block h2 { font-size: 22px; margin: 0 0 8px; }
.acct .sec-h3 { font-size: 16px; margin: 26px 0 10px; padding-top: 22px; border-top: 1px solid var(--lk-line); }
.acct .sec-h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.st { padding-bottom: 72px; }
.st-flash { margin: 0 0 18px; padding: 14px 18px; border-radius: 16px; background: var(--lk-tint); color: var(--lk-link); font-weight: 600; }
.st-flash-test { background: #fff4d6; color: #7a5600; }
.st-balance { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; margin-bottom: 22px; }
.st-total { display: grid; }
.st-label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lk-muted); }
.st-star { margin-left: 2px; font-size: 0.5em; vertical-align: super; color: var(--lk-link); border-bottom: none; text-decoration: none; }
.st-big { ; line-height: 1; font-weight: 800; letter-spacing: -0.04em; color: var(--lk-text); }
.st-split { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 0; }
.st-split div { display: grid; gap: 2px; }
.st-split dt { font-size: 13px; color: var(--lk-muted); }
.st-split dd { margin: 0; font-size: 22px; font-weight: 800; }
.st-balance .st-note { flex-basis: 100%; margin: 0; }
.st-note { color: var(--lk-muted); font-size: 14px; margin: 12px 0 0; }
.st-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.st-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc((100% - 36px) / 3 * 2 + 18px); margin: 18px auto 0; }
@media (max-width: 1100px) { .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st-card { position: relative; display: flex; flex-direction: column; gap: 10px; }
.st-card h2 { margin: 0; font-size: 22px; }
.st-plan { background: linear-gradient(160deg, var(--lk-tint), var(--lk-surface) 60%); border-color: var(--lk-tint-strong); }
/* Badges sit on the top edge of a plan card */
.st-badges { position: absolute; top: -13px; left: 22px; display: flex; gap: 6px; }
.st-tag { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--lk-action); color: var(--lk-on-action); font-size: 12px; line-height: 1.2; font-weight: 800; letter-spacing: 0.04em; box-shadow: 0 0 0 3px var(--lk-bg, #fff); }
.st-tag-best { background: var(--hx-dark, #123c44); }
.st-plan.is-current { border-color: var(--lk-action); }
.st-price { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.st-price.is-tbd { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--lk-muted); }
.st-perks { margin: 4px 0 8px; padding-left: 18px; color: var(--lk-muted); font-size: 14.5px; display: grid; align-content: start; gap: 6px; flex: 1; }
.st-card button { align-self: flex-start; }
.st-status { margin: 0; font-weight: 700; color: var(--lk-link); }
.st-error { margin: 14px 0 0; color: #8a1f33; font-weight: 600; }
.st-lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 22px; align-items: start; }
/* 80:20: the invite beside the credits */
.st-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 1fr); gap: 18px; margin-bottom: 14px; }
.st-credits { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.st-credits .st-big { font-size: clamp(44px, 5vw, 64px); }
.st-credits .st-big-word { font-size: clamp(26px, 2.6vw, 34px); }
.st-credits-note { margin: 6px 0 0; font-size: 13px; color: var(--lk-muted); }
.st-credits .st-split { justify-content: center; margin-top: 10px; }
.st-invite h2 { margin-bottom: 6px; }
.st-top + .st-note { margin: 0 2px 20px; }
.st-invite-row { margin: 14px 0 6px; }
/* History stops at the height of the panel beside it; Show more opens all of it. */
.st-history.is-capped { height: var(--st-cap); overflow: hidden; position: relative; }
.st-history.is-capped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(to bottom, transparent, #fff 70%); pointer-events: none; }
.st-history .st-more { margin-top: 10px; font-weight: 700; }
.st-history.is-capped .st-more { position: absolute; left: 24px; bottom: 16px; z-index: 1; margin: 0; padding: 7px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--lk-line); box-shadow: 0 6px 16px -10px var(--lk-shadow); }
.st-panel h2 { margin: 0 0 12px; font-size: 20px; }
.st-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.st-table td { padding: 10px 0; border-bottom: 1px solid var(--lk-line); vertical-align: top; }
.st-table td:last-child { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 12px; }
.st-table tr:last-child td { border-bottom: 0; }
.st-when { font-size: 12.5px; color: var(--lk-muted); }
.st-plus { color: var(--lk-link); }
.st-minus { color: var(--lk-text); }
@media (max-width: 900px) {
  .st-grid, .st-lower, .st-top { grid-template-columns: minmax(0, 1fr); }
  .st-packs { width: auto; }
  .st-credits { order: -1; }
  .st-big { font-size: 44px; }
  .acct .profile-block, .st-panel, .st-card, .st-balance { padding: 22px 20px; }
}

/* Onboarding: the same pill nav, with the step dots in the middle */
.pt-nav-pill.ob-bar-row { justify-content: space-between; height: auto; min-height: 64px; padding-right: 22px; }
.pt-nav-pill .ob-steps li.is-current span { background: var(--lk-text); }
.pt-nav-pill .ob-skip, .pt-nav-pill form .btn-link { font-weight: 700; color: var(--lk-muted); border-bottom: none; }

/* Onboarding: the last step's note while the free review runs */
.ob-progress-note { margin: 18px 0 0; color: var(--lk-muted); font-size: 14px; }

/* Company info (company_info.js): the Companies tab's strip above a company's roles, and "About the company" in a
   role's detail panel. Built wide, so it stays short. */
.co-head { flex-wrap: wrap; }
.co-info { flex: 1 1 100%; min-width: 0; border-top: 1px solid var(--lk-line); padding-top: 12px; position: relative; }
.co-info[hidden] { display: none; }
.co-workspace { margin-top: 12px; }
.ci-desc { margin: 0 0 8px; font-size: 14px; color: var(--lk-muted); }
.ci-desc a, .ci-src a, .ci-facts a, .ci-entities a, .ci-table a, .ci-site, .ci-open { color: var(--lk-link); border-bottom: none; text-decoration: underline; text-underline-offset: 2px; }
.ci-desc a { margin-left: 2px; font-size: 12px; }
.ci-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.ci-chips span { padding: 3px 10px; border-radius: 999px; background: var(--lk-tint); color: var(--lk-text); font-size: 12.5px; font-weight: 600; }
.ci-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.ci-tile { padding: 9px 11px; border-radius: 12px; background: var(--lk-tint); min-width: 0; }
.ci-tile strong { display: block; font: 800 19px/1.1 var(--lk-font); color: var(--lk-text); font-variant-numeric: tabular-nums; }
.ci-tile span { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.3; color: var(--lk-muted); }
.ci-foot-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 18px; margin-top: 10px; }
.ci-foot-row .ci-more { flex: 1 1 auto; margin-top: 0; min-width: 0; }
.ci-site { flex: 0 0 auto; font-size: 13px; font-weight: 700; line-height: 1.6; }
.ci-more { margin-top: 10px; }
.ci-more > summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--lk-link); }
.ci-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px 22px; margin-top: 12px; }
.ci-col { min-width: 0; }
.ci-col h4 { margin: 0 0 8px; font: 800 14px/1.3 var(--lk-font); color: var(--lk-text); }
.ci-col h5 { margin: 12px 0 6px; font: 800 13px/1.3 var(--lk-font); color: var(--lk-text); }
.ci-bars { list-style: none; margin: 0; padding: 0; }
.ci-bars li { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr) 3em; gap: 8px; align-items: center; padding: 2px 0; font-size: 13px; }
.ci-bars span { line-height: 1.25; color: var(--lk-text); }
.ci-bars i { height: 8px; }
.ci-bars u { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--lk-primary); text-decoration: none; }
.ci-bars b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--lk-muted); }
.ci-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.ci-table th, .ci-table td { padding: 5px 8px 5px 0; text-align: left; border-top: 1px solid var(--lk-line); vertical-align: top; }
.ci-table thead th { border-top: none; font-size: 11.5px; font-weight: 700; color: var(--lk-muted); white-space: nowrap; }
.ci-table tbody th { font-weight: 600; }
.ci-facts { display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 13px; }
.ci-facts dt { font-weight: 700; color: var(--lk-text); }
.ci-facts dd { margin: 0; overflow-wrap: anywhere; color: var(--lk-text); }
.ci-facts small { display: block; font-size: 11.5px; color: var(--lk-muted); }
.ci-entities { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.ci-entities li { padding: 5px 0; border-top: 1px solid var(--lk-line); }
.ci-entities li:first-child { border-top: none; }
.ci-entities span { display: block; font-size: 12px; color: var(--lk-muted); }
.ci-src, .ci-foot { margin: 8px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--lk-muted); }
.ci-open { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; }
.pv-company-body { padding-top: 6px; }
.pv-company-body .ci-col { margin-top: 12px; }
.pv-company-wait { margin: 0; font-size: 13px; color: var(--lk-muted); }
@media (max-width: 640px) {
  .ci-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ci-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ci-facts dd { margin-bottom: 8px; }
}
/* Company name in the role detail panels links to it on the Companies tab */
.pv-co-link, .jd-co-link { color: inherit; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.pv-co-link:hover, .jd-co-link:hover { color: var(--lk-link); }

/* Posting pay beside location and date; the company pop-up; H-1B salaries with prevailing wage */
.job-pay { font-weight: 700; color: var(--lk-text); }
button.pv-co-link, button.jd-co-link { padding: 0; background: none; border: none; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); font: inherit; color: inherit; cursor: pointer; }
button.ci-open { padding: 0; background: none; border: none; cursor: pointer; font: inherit; }
.ci-pw { margin: 8px 0 0; font-size: 12.5px; color: var(--lk-text); }
.ci-titles { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; }
.ci-titles li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; padding: 4px 0; border-top: 1px solid var(--lk-line); align-items: baseline; }
.ci-titles li:first-child { border-top: none; }
.ci-titles b { font-variant-numeric: tabular-nums; }
.ci-titles small { color: var(--lk-muted); font-size: 11.5px; }
.ci-col-wide { grid-column: 1 / -1; }
.ci-col-wide .ci-table { min-width: 560px; }
.ci-col-wide { overflow-x: auto; }
.ci-dialog { width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--lk-line); border-radius: 20px; background: var(--lk-surface); color: var(--lk-text); box-shadow: var(--shadow-card); }
.ci-dialog::backdrop { background: rgba(11, 31, 23, 0.45); }
.ci-dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--lk-surface); border-bottom: 1px solid var(--lk-line); }
.ci-dialog-head h2 { margin: 0; font: 800 20px/1.2 var(--lk-font); }
.ci-dialog-close { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--lk-line); background: var(--lk-surface); font-size: 22px; line-height: 1; cursor: pointer; color: var(--lk-text); }
.ci-dialog-body { padding: 16px 20px 20px; overflow-y: auto; max-height: calc(100vh - 120px); }
.ci-dialog-body .ci-site { display: inline-block; margin-top: 10px; }
@media (max-width: 640px) {
  .ci-dialog { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; margin: 0; }
  .ci-dialog-body { max-height: calc(100vh - 70px); padding: 14px 16px 20px; }
}

/* H-1B salaries, drawn (company_info.js): a pay bar per function on one scale, and wage levels as a stacked bar.
   Levels are one hue, light (entry) to dark (fully competent): an order, not categories. */
.ci-col-wide .ci-table { min-width: 0; }
.ci-legends { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 10px; }
.ci-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--lk-muted); }
.ci-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ci-legend i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; }
.ci-lv-I { background: color-mix(in srgb, var(--lk-primary) 20%, var(--lk-surface)); }
.ci-lv-II { background: color-mix(in srgb, var(--lk-primary) 48%, var(--lk-surface)); }
.ci-lv-III { background: var(--lk-primary); }
.ci-lv-IV { background: var(--lk-deep, #0b3d2a); }
.ci-key-band { background: color-mix(in srgb, var(--lk-primary) 30%, var(--lk-surface)); }
.ci-legend .ci-key-median { width: 9px; height: 9px; border-radius: 50%; background: var(--lk-text); }
.ci-legend .ci-key-pw { width: 2px; height: 12px; border-radius: 1px; background: #b4570a; }
.ci-wages { display: grid; }
.ci-wrow { display: grid; grid-template-columns: minmax(0, 10em) minmax(0, 1.6fr) minmax(0, 1fr); gap: 6px 18px; align-items: center; padding: 9px 0; border-top: 1px solid var(--lk-line); }
.ci-whead { padding: 0 0 6px; border-top: none; font-size: 11.5px; font-weight: 700; color: var(--lk-muted); }
.ci-wname strong { display: block; font-size: 13.5px; color: var(--lk-text); }
.ci-wname small { font-size: 11.5px; color: var(--lk-muted); font-variant-numeric: tabular-nums; }
.ci-pay { position: relative; height: 14px; border-radius: 4px; background: var(--lk-bg); box-shadow: inset 0 0 0 1px var(--lk-line); }
.ci-pay-band { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; background: color-mix(in srgb, var(--lk-primary) 30%, var(--lk-surface)); }
.ci-pay-median { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--lk-text); box-shadow: 0 0 0 2px var(--lk-surface); }
.ci-pay-pw { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: #b4570a; }
.ci-pay-text { margin: 5px 0 0; font-size: 12px; color: var(--lk-muted); font-variant-numeric: tabular-nums; }
.ci-pay-text b { color: var(--lk-text); }
.ci-lv { display: flex; gap: 2px; height: 18px; border-radius: 4px; overflow: hidden; }
.ci-lv i, .ci-pay i, .ci-legend i { font-style: normal; }
.ci-lv i { display: flex; align-items: center; justify-content: center; min-width: 3px; }
.ci-lv b { font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--lk-text); }
.ci-lv .ci-lv-III b, .ci-lv .ci-lv-IV b { color: #fff; }
.ci-na { font-size: 12px; color: var(--lk-muted); }
.ci-role-pay, .ci-role-lv { margin-top: 12px; }
.ci-role-pay .ci-legend, .ci-role-lv .ci-legend { margin: 6px 0; }
.ci-role-lv h5, .ci-col h5 { margin: 12px 0 6px; font: 800 12.5px/1.3 var(--lk-font); color: var(--lk-text); }
@media (max-width: 640px) {
  .ci-wrow { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ci-whead { display: none; }
  .ci-wname { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }  /* one line on phones */
}
.ci-col-role { grid-column: 1 / -1; }
.ci-role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 24px; align-items: start; }
.ci-role-grid .ci-role-pay { margin-top: 0; }
.ci-titles-head { margin-top: 0 !important; }

/* Home: roles added to the user's matches in the past 3 hours */
.pv-new { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; padding: 9px 14px; border-radius: 14px; background: color-mix(in srgb, var(--lk-primary) 10%, var(--lk-surface)); color: var(--lk-text); font-size: 14px; }
.pv-new[hidden] { display: none; }
.pv-new b { font-weight: 800; color: var(--lk-link); }
.pv-new .btn-link { font-weight: 700; }
.pv-new-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lk-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lk-primary) 22%, transparent); }

/* "Confirm your email" banner (base.html): shown above the page until the link is used. */
.verify-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 auto; padding: 10px 16px;
  background: var(--lk-tint, #e8f5ee); color: var(--lk-text, #0b1f17); font-size: 14px; line-height: 1.4; justify-content: center; }
.verify-banner .verify-resend { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-weight: 700;
  text-decoration: underline; cursor: pointer; }
.verify-banner .verify-resend:disabled { opacity: .6; cursor: default; }

.st-invite-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.st-invite-row input { flex: 1 1 260px; min-width: 0; padding: 10px 12px; border: 1px solid var(--lk-line, #d9e2dd); border-radius: 10px; font: inherit; }


/* ============================================================
   Modern pass (founder, 9 Nov 2026: every app page modern and chic, in the look of the click-to-edit resume page).
   One layer on the brand tokens, so every page follows PALETTE: compact page headers, soft cards and rows, quiet controls,
   slim scrollbars, line icons in place of emoji. Low specificity (:where) so a component's own rule still wins.
   ============================================================ */
:where(body:not(.landing-page):not(.admin-app)) {
  --re-ease: cubic-bezier(0.22, 1, 0.36, 1);
  scrollbar-color: color-mix(in srgb, var(--lk-text) 22%, transparent) transparent;
}

/* Page headers: one calm line of context instead of a banner */
:where(body:not(.landing-page)) :where(.hero, .hero-compact) { padding: 96px 0 14px; }
:where(body:not(.landing-page)) .hero-eyebrow { display: none; }
:where(body:not(.landing-page)) .hero-title { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 6px; }
:where(body:not(.landing-page)) .hero-title br { display: none; }
:where(body:not(.landing-page)) .hero-lede { font-size: 15px; line-height: 1.55; color: var(--ink-soft); max-width: 680px; }
:where(body:not(.landing-page)) .home-hero { padding: 92px 0 6px; }
:where(body:not(.landing-page)) .home-kicker { display: none; }
:where(body:not(.landing-page)) .co-hero { padding-top: 96px; }
:where(body:not(.landing-page)) .co-lede { font-size: 15px; }
:where(body:not(.landing-page)) .home-title { font-size: clamp(24px, 3vw, 32px); }

/* Surfaces: lifted, with soft edges */
:where(body:not(.landing-page)) :where(.pv-workspace) { border-radius: 26px; border-color: var(--lk-line); box-shadow: 0 1px 2px rgba(11, 31, 23, 0.04), 0 30px 70px -36px var(--lk-shadow); }
:where(body:not(.landing-page)) :where(.pv-list-pane) { border-right-color: var(--lk-line); background: color-mix(in srgb, var(--lk-bg) 55%, var(--lk-tint)); }
:where(body:not(.landing-page)) :where(.pv-row) { border-color: transparent; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(11, 31, 23, 0.04); transition: box-shadow 200ms var(--re-ease), transform 200ms var(--re-ease), border-color 160ms ease; }
:where(body:not(.landing-page)) :where(.pv-row):hover { border-color: transparent; box-shadow: 0 10px 24px -14px var(--lk-shadow); transform: translateY(-1px); }
:where(body:not(.landing-page)) :where(.pv-row.is-sel) { border-color: var(--lk-primary); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--lk-primary) 14%, transparent), 0 12px 26px -16px var(--lk-shadow); }
:where(body:not(.landing-page)) :where(.fit-tab) { border-radius: 18px; border-color: var(--lk-line); box-shadow: 0 1px 2px rgba(11, 31, 23, 0.03); transition: box-shadow 200ms var(--re-ease), transform 200ms var(--re-ease), border-color 160ms ease; }
:where(body:not(.landing-page)) :where(.fit-tab):hover { transform: translateY(-1px); box-shadow: 0 12px 26px -16px var(--lk-shadow); }
:where(body:not(.landing-page)) :where(.fit-tab.is-active) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--fit-c, var(--lk-primary)) 14%, transparent), 0 12px 26px -16px var(--lk-shadow); }
:where(body:not(.landing-page)) :where(.profile-block, .card, .panel, .tk-panel, .store-card, .sec-card, .co-info, .home-prefs, .pe-card) { border-color: var(--lk-line); box-shadow: 0 1px 2px rgba(11, 31, 23, 0.04), 0 18px 40px -26px var(--lk-shadow); }

/* Controls */
:where(body:not(.landing-page)) :where(.pv-chip) { background: var(--lk-tint); color: var(--ink-soft); font-weight: 600; }
:where(body:not(.landing-page)) :where(.pv-chip.is-on) { background: #fff; color: var(--lk-text); box-shadow: 0 0 0 1px var(--lk-line), 0 2px 6px -2px var(--lk-shadow); }
:where(body:not(.landing-page)) :where(input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="number"], select, textarea) { border-color: var(--lk-line); background: color-mix(in srgb, var(--lk-bg) 70%, var(--lk-tint)); transition: border-color 140ms var(--re-ease), box-shadow 140ms var(--re-ease), background 140ms var(--re-ease); }
:where(body:not(.landing-page)) :where(input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="number"], select, textarea):focus { background: #fff; border-color: var(--lk-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lk-primary) 16%, transparent); outline: none; }
:where(body:not(.landing-page)) input[type="file"] { padding: 10px 12px; border: 1px dashed color-mix(in srgb, var(--lk-primary) 45%, var(--lk-line)); border-radius: 14px; background: var(--lk-tint); font: 600 14px var(--lk-font); color: var(--ink-soft); width: 100%; }
:where(body:not(.landing-page)) input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--lk-action); color: var(--lk-on-action); font: 700 13px var(--lk-font); cursor: pointer; }
:where(body:not(.landing-page)) .btn-primary { background-image: linear-gradient(135deg, var(--lk-primary), var(--lk-deep)); border-color: transparent; }
:where(body:not(.landing-page)) .btn-primary:disabled { background-image: none; }

/* Quiet scrollbars inside panels */
:where(body:not(.landing-page)) :where(.pv-list-pane, .pv-detail-pane, textarea)::-webkit-scrollbar { width: 10px; height: 10px; }
:where(body:not(.landing-page)) :where(.pv-list-pane, .pv-detail-pane, textarea)::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--lk-text) 18%, transparent); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
:where(body:not(.landing-page)) :where(.pv-list-pane, .pv-detail-pane, textarea)::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--lk-text) 32%, transparent); background-clip: content-box; }
:where(body:not(.landing-page)) :where(.pv-list-pane, .pv-detail-pane, textarea)::-webkit-scrollbar-track { background: transparent; }

/* "New" on a role added in the past 3 hours (the roles "Check them out now" shows) */
.pv-new-tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font: 800 10.5px/1.4 var(--lk-font); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--lk-primary), var(--lk-deep)); vertical-align: middle; }
/* Admin: switch between the free and the Subscriber view of the app */
.pt-viewas { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--lk-tint); border: 1px solid var(--lk-line); font-size: 12px; }
.pt-viewas > span { padding: 0 8px 0 10px; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase; font-size: 10.5px; }
.pt-viewas button { border: 0; border-radius: 999px; background: transparent; padding: 5px 12px; font: 700 12px var(--lk-font); color: var(--ink-soft); cursor: pointer; }
.pt-viewas button.is-on { background: #fff; color: var(--lk-text); box-shadow: 0 1px 3px var(--lk-shadow); }

/* Empty states: a line icon, not an emoji */
.empty-mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; background: var(--lk-tint); color: var(--lk-deep); font-size: 0; }
.empty-mark svg { width: 28px; height: 28px; }
@media (prefers-reduced-motion: reduce) { :where(body:not(.landing-page)) * { transition-duration: 0.01ms !important; } }


/* The two buttons at the bottom of a role's detail, and the "About the role" pop-up (role_info.js) */
.pv-more { display: flex; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--lk-line); }
.pv-more .btn-ghost { flex: 1 1 0; justify-content: center; }

.ri-dialog { width: min(780px, calc(100vw - 24px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; background: transparent; overflow: visible; color: var(--lk-text); }
.ri-dialog::backdrop { background: rgba(11, 31, 23, 0.46); backdrop-filter: blur(4px); }
.ri-dialog[open] { animation: ri-in 240ms cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes ri-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
.ri-card { display: flex; flex-direction: column; max-height: min(86vh, 840px); border-radius: 28px; background: var(--lk-surface); overflow: hidden;
  box-shadow: 0 2px 4px rgba(11, 31, 23, 0.06), 0 40px 90px -30px rgba(11, 31, 23, 0.5); }
.ri-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 24px 26px 14px; }
.ri-logo .company-avatar { width: 52px; height: 52px; border-radius: 15px; font-size: 20px; }
.ri-titles h2 { margin: 0; font: 800 22px/1.2 var(--lk-font); letter-spacing: -0.02em; text-wrap: balance; }
.ri-titles p { margin: 4px 0 0; color: var(--ink-mute); font-size: 14px; }
.ri-x { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--lk-line); border-radius: 50%; background: var(--lk-surface); color: var(--lk-text); cursor: pointer; transition: background 140ms ease; }
.ri-x:hover { background: var(--lk-tint); }
.ri-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ri-facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 26px 16px; border-bottom: 1px solid var(--lk-line); }
.ri-fact { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--lk-tint); font: 600 12.5px var(--lk-font); color: var(--lk-text); }
.ri-fit b { font-weight: 800; color: var(--lk-deep); font-variant-numeric: tabular-nums; }
.ri-tag-g { background: #d9f3e5; color: #0a7a4d; } .ri-tag-y { background: var(--amber-soft, #fdf0cf); color: #8a5d00; }
.ri-tag-n { background: #ecece8; color: #5f5f58; } .ri-tag-r { background: #fde4e4; color: #b3304a; }
.ri-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 26px 22px; scrollbar-gutter: stable; }
.ri-body:focus-visible { outline: 2px solid var(--lk-primary); outline-offset: -2px; border-radius: 12px; }
.ri-sec h3 { margin: 22px 0 8px; font: 700 11.5px var(--lk-font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.ri-summary { margin-top: 16px; padding: 4px 18px 14px; border-radius: 18px; background: var(--lk-tint); }
.ri-summary p { margin: 6px 0 0; }
.ri-req { color: var(--ink-soft); font-size: 14px; }
.ri-body p, .ri-body li { max-width: 68ch; font-size: 15px; line-height: 1.65; color: var(--lk-text); }
.ri-body p { margin: 0 0 12px; }
.ri-body h4 { margin: 20px 0 6px; font: 700 15px var(--lk-font); letter-spacing: -0.01em; }
.ri-body ul { margin: 0 0 12px; padding-left: 20px; } .ri-body li { margin: 4px 0; }
.ri-none { color: var(--ink-mute); }
.ri-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 26px; border-top: 1px solid var(--lk-line); background: color-mix(in srgb, var(--lk-bg) 55%, var(--lk-tint)); }
.ri-apply { text-decoration: none; }
.ri-close { margin-left: auto; }
@media (max-width: 600px) {
  .ri-head { grid-template-columns: auto minmax(0, 1fr); padding: 18px 16px 12px; }
  .ri-x { position: absolute; top: 12px; right: 12px; }
  .ri-facts { padding: 0 16px 12px; } .ri-body { padding: 4px 16px 18px; } .ri-foot { padding: 12px 16px; }
  .ri-card { max-height: 92vh; border-radius: 24px; }
  .ri-foot .btn-primary, .ri-foot .btn-ghost { flex: 1 1 100%; justify-content: center; text-align: center; }
  .ri-close { margin-left: 0; flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .ri-dialog[open] { animation: none; } }

/* The company pop-up takes the same look as the role pop-up */
.ci-dialog { border: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 2px 4px rgba(11, 31, 23, 0.06), 0 40px 90px -30px rgba(11, 31, 23, 0.5); }
.ci-dialog::backdrop { background: rgba(11, 31, 23, 0.46); backdrop-filter: blur(4px); }
.ci-dialog[open] { animation: ri-in 240ms cubic-bezier(0.22, 1, 0.36, 1); }
.ci-dialog-head { padding: 20px 26px; }
.ci-dialog-head h2 { font-size: 22px; letter-spacing: -0.02em; }
.ci-dialog-close { display: grid; place-items: center; width: 40px; height: 40px; transition: background 140ms ease; }
.ci-dialog-close:hover { background: var(--lk-tint); }
.ci-dialog-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ci-dialog-body { padding: 18px 26px 26px; }
@media (max-width: 600px) { .ci-dialog { border-radius: 0; } .ci-dialog-head { padding: 14px 16px; } .ci-dialog-body { padding: 14px 16px 20px; } }
@media (prefers-reduced-motion: reduce) { .ci-dialog[open] { animation: none; } }

/* ============================================================
   Home (founder, 15 Nov 2026, from the editable mock-up v9): one full-width surface. The nav pill, the filter bar and the
   workspace share the page margins (1 inch left and right, 53px at the bottom); the list and the role's detail are half
   each. The detail panel itself is unchanged. Tier colours for the scores are the founder's: #2c1ca0, #194d36, #5885e4.
   ============================================================ */
body.page-home { --hx-ml: 96px; --hx-mr: 96px; --hx-mb: 53px; --hx-perfect: color-mix(in srgb, var(--lk-primary) 52%, #06161a); --hx-strong: var(--lk-primary);
  --hx-good: color-mix(in srgb, var(--lk-primary) 72%, #fff); --hx-dark: color-mix(in srgb, var(--lk-deep) 58%, #06161a); }
/* Home follows the brand palette (founder, 16 Nov 2026): score tiers are three depths of the palette's teal, the dark
   chips and buttons a deep teal, so a PALETTE change restyles them. */
.page-home .pt-nav { padding-left: var(--hx-ml); padding-right: var(--hx-mr); }
.page-home .pt-nav-pill { max-width: none; }
.pt-credits { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 8px 14px; border: 1px solid var(--lk-line); border-radius: 999px; background: var(--lk-tint);
  color: var(--lk-deep); font: 700 14px/1 var(--lk-font); white-space: nowrap; text-decoration: none; border-bottom: 1px solid var(--lk-line); transition: background 140ms ease; }
.pt-credits:hover { background: var(--lk-tint-strong); }
.pt-credits svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hx { display: flex; flex-direction: column; gap: 0; height: calc(100vh - 78px); height: calc(100dvh - 78px); min-height: 560px; padding: 0 var(--hx-mr) var(--hx-mb) var(--hx-ml); }
.hx-top { flex: none; display: flex; align-items: center; gap: 14px; margin: 16px 0 10px; }
.hx-hi { flex: 1; min-width: 0; margin: 0; max-width: none; font: 800 20px/1.25 var(--lk-font); letter-spacing: -0.02em; color: var(--lk-text); }
.hx-top .home-search { flex: none; width: 320px; min-width: 0; border-radius: 999px; padding: 4px 4px 4px 16px; background: var(--lk-surface); border: 1px solid var(--lk-line); box-shadow: none; }
.hx-top .home-search:focus-within { border-color: var(--lk-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lk-primary) 14%, transparent); }
.hx-top .home-search input, .hx-top .home-search input:focus { box-shadow: none; background: transparent; }
.hx-top .home-search .btn-primary { border-radius: 999px; padding: 8px 16px; }
/* The filter bar: rectangles with rounded corners, black text, a solid arrow centred in each */
.hx-fbar { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cm { position: relative; display: inline-flex; }
.cm-btn { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 14px; border: 1px solid var(--lk-line); border-radius: 10px; background: var(--lk-surface);
  color: #000; font: 600 14px var(--lk-font); cursor: pointer; transition: background 140ms ease, border-color 140ms ease; }
.cm-btn:hover { border-color: color-mix(in srgb, var(--lk-primary) 40%, var(--lk-line)); }
.cm.is-set .cm-btn { background: color-mix(in srgb, var(--lk-primary) 13%, var(--lk-surface)); border-color: color-mix(in srgb, var(--lk-primary) 26%, var(--lk-surface)); }
.cm-arrow { flex: none; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #000; }
.cm-flag { flex: none; width: 22px; height: 15px; border-radius: 3px; background: var(--flag) center / cover no-repeat; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18); }
.cm-flag[hidden] { display: none; }
.cm-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 45; min-width: 210px; max-height: 340px; overflow-y: auto; padding: 6px; border: 1px solid var(--lk-line); border-radius: 14px;
  background: var(--lk-surface); box-shadow: 0 24px 50px -22px rgba(11, 31, 23, 0.45); }
.cm-menu[hidden] { display: none; }
.cm-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: #000; font: 600 14px var(--lk-font); text-align: left; cursor: pointer; }
.cm-opt:hover, .cm-opt:focus-visible { background: var(--lk-tint); outline: none; }
.cm-opt em { margin-left: auto; font-style: normal; font-weight: 500; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.cm-mark { flex: none; width: 16px; height: 16px; border: 2px solid #b9c9c0; background: #fff; }
.cm-mark.is-box { border-radius: 5px; } .cm-mark.is-dot { border-radius: 50%; }
.cm-opt.is-on .cm-mark { border-color: var(--hx-strong); background: var(--hx-strong); }
.cm-opt.is-on .cm-mark.is-box::after { content: ""; display: block; width: 4px; height: 8px; margin: 0 auto; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.cm-opt.is-on .cm-mark.is-dot { box-shadow: inset 0 0 0 3px #fff; }
.hx-all { height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--lk-action); color: var(--lk-on-action); font: 700 14px var(--lk-font); cursor: pointer; transition: background 140ms ease; }
.hx-all:hover { background: var(--lk-action-hover); }
.hx-fbar .pv-icon-btn { height: 38px; width: 38px; border-radius: 10px; }
.hx-status { margin-left: auto; font-size: 12.5px; color: var(--ink-mute); }
.hx-status.is-error { color: #b3304a; }
.hx > .scan-progress, .hx > .status-bar { flex: none; margin: 0 0 10px; }
.hx > .pv-skel { flex: none; margin-bottom: 10px; }
.hx .pv-new { display: none; }

/* The workspace: list and detail, half each */
.hx .pv-workspace { flex: 1; min-height: 0; height: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--lk-line); border-radius: 26px; background: var(--lk-surface);
  overflow: hidden; box-shadow: 0 1px 2px rgba(11, 31, 23, 0.04), 0 30px 70px -40px var(--lk-shadow); }
.hx .pv-list-pane { gap: 8px; padding: 14px 16px; background: color-mix(in srgb, var(--lk-bg) 60%, var(--lk-tint)); }
.hx-lh { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.hx .fit-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; margin: 0; border: 1px solid var(--lk-line); border-radius: 999px; background: var(--lk-tint); }
.hx .fit-tab { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 3px; min-height: 36px; padding: 0 12px; line-height: 1; white-space: nowrap; border: 0; border-radius: 999px; background: transparent; box-shadow: none; }
.hx .fit-tab::before { display: none; }
.hx .fit-tab strong { font: 600 12.5px/1 var(--lk-font); color: var(--ink-soft); }
.hx .fit-tab span { font-size: 12.5px; line-height: 1; color: var(--ink-soft); }
.hx .fit-tab span::before { content: "· "; }
.hx .fit-tab:hover { transform: none; box-shadow: none; background: color-mix(in srgb, var(--lk-surface) 60%, transparent); }
.hx .fit-tab.is-active { background: var(--lk-surface); box-shadow: 0 1px 3px rgba(11, 31, 23, 0.14); }
.hx .fit-tab.is-active strong { color: var(--lk-text); }
.hx-sp { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-left: auto; }
.hx .pv-chips { gap: 8px; }
.hx .pv-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 14px; line-height: 1; white-space: nowrap; border: 0; border-radius: 999px; background: var(--lk-surface); color: var(--ink-mute); font: 700 13px var(--lk-font); box-shadow: inset 0 0 0 1px var(--lk-line); }
.hx .pv-chip.is-on { background: var(--hx-dark); color: #fff; box-shadow: none; }
.hx-views { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 6px; }
.hx-ja { padding: 5px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--lk-text); font: 600 13px var(--lk-font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transition: background 150ms ease; }
.hx-ja[hidden] { display: none; }
.hx-ja:hover, .hx-ja:focus-visible, .hx-ja.is-on { background: var(--lk-tint); text-decoration: none; box-shadow: inset 0 0 0 1px var(--lk-line); outline: none; }

/* Day headings: close to the group above, with room before the first card */
.pv-day { position: sticky; top: -14px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 4px 4px 12px; margin: 0;
  background: color-mix(in srgb, var(--lk-bg) 60%, var(--lk-tint)); font: 800 12.5px var(--lk-font); letter-spacing: 0.04em; text-transform: uppercase; color: var(--hx-strong); }
.pv-day i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-mute); opacity: 0.6; }
.pv-day-today i { background: var(--hx-strong); opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--hx-strong) 18%, transparent); }
.pv-day-picks i { background: var(--hx-strong); opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--hx-strong) 18%, transparent); }
.pv-day span { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-mute); }

/* A role card: logo, text, Top pick and New at the top right, and the score box filling the right edge */
.pv-row { grid-template-columns: 40px minmax(0, 1fr) auto auto; column-gap: 12px; padding: 13px 16px 13px 13px; min-height: 76px; }
.pv-row-text { grid-column: 2; }
.pv-badges { grid-column: 3; grid-row: 1; justify-self: end; align-self: start; display: flex; gap: 6px; }
.pv-pick-tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font: 800 10.5px/1.4 var(--lk-font); letter-spacing: 0.05em; text-transform: uppercase; color: var(--lk-on-action); background: var(--lk-action); }
.pv-pick-tag::before { content: "★ "; white-space: pre; }
.pv-score { grid-column: 4; grid-row: 1; align-self: stretch; display: flex; align-items: center; justify-content: center; width: 76px; flex: none;
  margin: -11px -14px -11px 0; border-radius: 10px; font-style: normal; font-weight: 800; font-size: 32px; line-height: 1; }
.pv-sn { display: inline-flex; align-items: baseline; gap: 2px; }
.pv-sn b { font-weight: 800; }
.pv-sn i { font-style: normal; font-weight: 700; font-size: 0.45em; }
.pv-score-perfect { color: var(--hx-perfect, #1f4f57); background: color-mix(in srgb, var(--hx-perfect, #1f4f57) 16%, #fff); }
.pv-score-strong { color: color-mix(in srgb, var(--hx-strong, #3c828c) 88%, #000); background: color-mix(in srgb, var(--hx-strong, #3c828c) 16%, #fff); }
.pv-score-good { color: color-mix(in srgb, var(--hx-good, #6fa2ab) 82%, #000); background: color-mix(in srgb, var(--hx-good, #6fa2ab) 16%, #fff); }
.pv-score-stretch { color: #8a6208; background: rgba(138, 98, 8, 0.12); }
.pv-row.is-sel { border-color: var(--hx-strong, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hx-strong, #3c828c) 14%, transparent); }

/* Placeholder rows while the first roles are found */
.pv-skel { display: grid; gap: 10px; }
.pv-skel[hidden] { display: none; }
.pv-skel i { display: block; height: 78px; border-radius: 18px; background: linear-gradient(100deg, var(--lk-tint) 30%, color-mix(in srgb, var(--lk-surface) 70%, var(--lk-tint)) 50%, var(--lk-tint) 70%); background-size: 220% 100%; animation: pv-shimmer 1.4s linear infinite; }
@keyframes pv-shimmer { from { background-position: 100% 0; } to { background-position: -120% 0; } }

/* The search editor opens as a panel from the right with a scrim */
.hx-prefs.side-card { height: 0; margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; overflow: visible; }
.hx-prefs .side-card-head, .hx-prefs #prefSummary { display: none; }
.hx-prefs .pe-editor:not([hidden]) { position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(580px, 100vw); padding: 28px 30px 24px; overflow-y: auto;
  background: var(--lk-surface); box-shadow: -30px 0 80px -30px rgba(11, 31, 23, 0.5); }
.hx-prefs.is-editing::before { content: ""; position: fixed; inset: 0; z-index: 94; background: rgba(11, 31, 23, 0.38); }

/* Keyboard focus, everywhere: one visible ring */
body:not(.landing-page) :where(a, button, summary, [role="option"], [role="tab"], [tabindex="0"]):focus-visible { outline: 2px solid var(--lk-primary); outline-offset: 2px; }
@media (pointer: coarse) { .hx :where(.cm-btn, .hx-all, .hx .pv-chip) { min-height: 44px; } }

/* Laptops: narrower margins */
@media (max-width: 1280px) { body.page-home { --hx-ml: 40px; --hx-mr: 40px; --hx-mb: 28px; } }
@media (max-width: 900px) {
  body.page-home { --hx-ml: 14px; --hx-mr: 14px; --hx-mb: 20px; }
  .hx { height: auto; min-height: 0; }
  .hx-top { flex-wrap: wrap; }
  .hx-hi { flex: 1 1 100%; }
  .hx-top .home-search { flex: 1 1 auto; width: auto; }
  .hx .pv-workspace { display: block; height: auto; }
  .hx .pv-list-pane { overflow: visible; }
  .hx .pv-detail-pane { display: none; }
  .pv-day { top: 0; }
  .pv-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .pv-badges { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 6px; }
  .pv-score { grid-column: 3; grid-row: 1 / span 2; margin: -11px -14px -11px 0; width: 60px; font-size: 24px; }
  /* The list header: fit tabs on one full-width row, then the sponsorship pills and the two views under it */
  .hx-lh { flex-direction: column; align-items: stretch; gap: 10px; }
  .hx .fit-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; border-radius: 18px; }
  .hx .fit-tab { padding: 0 4px; min-height: 40px; border-radius: 14px; }
  .hx-sp { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-left: 0; width: 100%; }
  .hx .pv-chips { flex: 1 1 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .hx .pv-chip { min-height: 40px; padding: 0 6px; font-size: 12.5px; }
  .hx-views { flex: 1 1 100%; justify-content: flex-start; }
  .hx-fbar { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--hx-ml) * -1) 12px; padding: 2px var(--hx-ml); scrollbar-width: none; }
  .hx-fbar::-webkit-scrollbar { display: none; }
  .hx-fbar > * { flex: none; }
  .hx-status { margin-left: 0; }
  .cm-menu { position: fixed; left: 14px; right: 14px; top: auto; bottom: 14px; max-height: 60vh; min-width: 0; }
}
@media (max-width: 520px) {
  .hx .fit-tab { flex-direction: column; gap: 2px; min-height: 46px; }
  .hx .fit-tab span::before { content: ""; }
  .hx-top .home-search { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .pv-skel i { animation: none; } html { scroll-behavior: auto; } }

/* App footer: Terms and Conditions, Fair Use Policy, Privacy */
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { font-size: 13px; font-weight: 600; color: var(--ink-soft); border-bottom: 0; }
.footer-links a:hover { color: var(--lk-text); }

/* ============================================================
   One page frame for every signed-in page (founder, 15 Nov 2026: "page width, nav bar and content consistent across all
   pages"). Home's margins: 96px left and right (40px below 1280px, 14px below 900px). The nav pill, page headings, content
   and footer all sit between them. Reading-heavy blocks keep their own narrower column but start at the same left edge.
   ============================================================ */
body:not(.landing-page) { --hx-ml: 96px; --hx-mr: 96px; --hx-mb: 53px; }
@media (max-width: 1280px) { body:not(.landing-page) { --hx-ml: 40px; --hx-mr: 40px; --hx-mb: 28px; } }
@media (max-width: 900px) { body:not(.landing-page) { --hx-ml: 14px; --hx-mr: 14px; --hx-mb: 20px; } }
body:not(.landing-page) .pt-nav { padding-left: var(--hx-ml); padding-right: var(--hx-mr); }
body:not(.landing-page) .pt-nav-pill { max-width: none; }
body:not(.landing-page) .main .container, body:not(.landing-page) .footer .container {
  max-width: none; margin: 0; padding-left: var(--hx-ml); padding-right: var(--hx-mr);
}
body:not(.landing-page) .re-wrap { max-width: none; margin: 0; padding-left: var(--hx-ml); padding-right: var(--hx-mr); }
body:not(.landing-page) .re-wrap { padding-top: 64px; }
body:not(.landing-page) .co-hero { padding-top: 64px; }

/* Roles older than 3 months stay off the feed until "See them" (founder, 17 Nov 2026) */
.pv-older { margin: 10px 2px 4px; font: 600 13px/1.4 var(--lk-font); color: var(--ink-soft); }
.pv-older .btn-link { font: inherit; font-weight: 700; }
