/* Vocelect — deep teal, ink navy, off-white. Contrast checked for WCAG AA. */
:root {
  --teal: #0E6B6B; --teal-strong: #0A5252; --teal-soft: #E2F0EE; --navy: #14213D; --navy-2: #24324F;
  --bg: #F5F3EE; --surface: #FFFFFF; --surface-2: #F3F0EA; --line: #E3DED4; --line-strong: #C9C2B4; --text: #14213D; --muted: #5A6372;
  --ok: #1E6B3A; --ok-bg: #E4F2E8; --warn: #7A4B00; --warn-bg: #FBF0D9; --bad: #9B1C1C; --bad-bg: #FBE6E4; --info-bg: #E9F0F8;
  --radius: 12px; --shadow: 0 1px 2px rgba(20,33,61,.05), 0 6px 20px rgba(20,33,61,.05);
  --font: Inter, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --teal: #3DBFB2; --teal-strong: #6FD6CB; --teal-soft: #12302F; --navy: #E8EDF4; --navy-2: #C9D2E0;
    --bg: #0F1626; --surface: #162036; --surface-2: #1C2842; --line: #2C3A57; --line-strong: #3E4F73; --text: #E8EDF4; --muted: #A7B2C4;
    --ok: #7FD69B; --ok-bg: #143322; --warn: #F2C46B; --warn-bg: #3A2C0E; --bad: #FF9C94; --bad-bg: #3E1715; --info-bg: #1B2B45;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --teal: #3DBFB2; --teal-strong: #6FD6CB; --teal-soft: #12302F; --navy: #E8EDF4; --navy-2: #C9D2E0;
  --bg: #0F1626; --surface: #162036; --surface-2: #1C2842; --line: #2C3A57; --line-strong: #3E4F73; --text: #E8EDF4; --muted: #A7B2C4;
  --ok: #7FD69B; --ok-bg: #143322; --warn: #F2C46B; --warn-bg: #3A2C0E; --bad: #FF9C94; --bad-bg: #3E1715; --info-bg: #1B2B45;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; color: var(--navy); }
h1 { font-size: 1.5rem; letter-spacing: -.01em; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
a { color: var(--teal); }
a:hover { color: var(--teal-strong); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .nowrap { white-space: nowrap; }
.loading { color: var(--muted); padding: 2rem; }

/* Header: three equal-weight tracks keep the endorsement in the true centre of the page. */
.topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem; min-height: 60px; padding: .5rem 1.25rem;
  background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.left { justify-self: start; display: flex; align-items: center; gap: .35rem; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--navy); }
.brand img { display: block; width: auto; height: 24px; }
.brand img.sym { display: none !important; height: 30px; }
/* Phones: the wordmark would be smaller than its 24 px minimum, so the D symbol stands in for it. */
@media (max-width: 600px) {
  .brand img.wm { display: none !important; }
  .brand img.sym.logo-light { display: block !important; }
  :root[data-theme="dark"] .brand img.sym.logo-light { display: none !important; }
  :root[data-theme="dark"] .brand img.sym.logo-dark { display: block !important; }
}
@media (max-width: 600px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand img.sym.logo-light { display: none !important; }
  :root:not([data-theme="light"]) .brand img.sym.logo-dark { display: block !important; }
}
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logo-light { display: none; } :root:not([data-theme="light"]) .brand .logo-dark { display: block; } }
.wordmark { font-weight: 750; font-size: 1.45rem; letter-spacing: -.03em; color: var(--navy); }
.endorse { margin: 0; text-align: center; font-size: .9rem; color: var(--muted); letter-spacing: .01em; white-space: nowrap; grid-column: 2; }
.topbar-right { justify-self: end; display: flex; align-items: center; gap: .5rem; min-width: 0; }
.topbar .menu-btn { display: none; }
.topbar .menu-btn[hidden] { display: none !important; }
.searchbox { min-width: 250px; justify-content: flex-start; background: var(--surface-2); color: var(--muted); border-color: var(--line); gap: .5rem; }
.searchbox .ph { flex: 1; text-align: left; }
.searchbox:hover { color: var(--text); }
.usermenu > summary { display: flex; align-items: center; gap: .55rem; padding: .25rem .4rem .25rem .25rem; border-radius: 999px; border: 1px solid transparent; }
.usermenu > summary:hover { background: var(--surface-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; color: #fff; background: linear-gradient(135deg, #0E6B6B, #24324F); flex: 0 0 auto; }
.usermenu .who { line-height: 1.15; text-align: left; min-width: 0; }
.usermenu .who b { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.usermenu .who span { display: block; font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.menu-head { display: grid; padding: .5rem .7rem .7rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
@media (max-width: 1440px) { .usermenu .who { display: none; } }
@media (max-width: 1180px) { .searchbox { min-width: 0; } .searchbox .ph, .searchbox kbd { display: none; } }
@media (max-width: 860px) {
  .topbar { grid-template-columns: 1fr auto; grid-template-areas: "brand right" "endorse endorse"; row-gap: .25rem; padding: .45rem 12px; }
  .left { grid-area: brand; } .topbar-right { grid-area: right; }
  .endorse { grid-area: endorse; grid-column: 1 / -1; justify-self: center; font-size: .82rem; padding-bottom: .15rem; }
  .topbar .menu-btn { display: inline-flex; }
}

.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 61px); }
.shell.anon { grid-template-columns: 1fr; }
.shell.anon .sidenav { display: none; }
.sidenav { background: var(--surface); border-right: 1px solid var(--line); padding: .9rem .6rem; position: sticky; top: 61px; height: calc(100vh - 61px); overflow-y: auto; }
.sidenav a { display: flex; align-items: center; gap: .65rem; padding: .5rem .7rem; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 500; margin-bottom: 2px; position: relative; }
.sidenav a .ic { color: var(--muted); }
.sidenav a .lbl { flex: 1; min-width: 0; }
.sidenav a:hover { background: var(--surface-2); }
.sidenav a[aria-current="page"] { background: var(--teal-soft); color: var(--teal-strong); font-weight: 650; }
.sidenav a[aria-current="page"] .ic { color: var(--teal); }
.sidenav a[aria-current="page"]::before { content: ""; position: absolute; left: -.6rem; top: 20%; bottom: 20%; width: 3px; border-radius: 0 3px 3px 0; background: var(--teal); }
.sidenav .count { background: var(--teal); color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 700; padding: 0 .45rem; min-width: 1.4rem; text-align: center; }
.nav-group { margin: 1rem .7rem .35rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sidenav .foot { margin-top: 1.25rem; padding: .75rem .7rem; font-size: .75rem; color: var(--muted); border-top: 1px solid var(--line); display: grid; gap: .35rem; }
.sidenav .foot button.link { justify-content: flex-start; font-size: .85rem; text-decoration: none; gap: .4rem; }
main { padding: 1.5rem 2rem 4rem; min-width: 0; }
main:focus { outline: none; }
.fade-in { animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidenav { position: fixed; top: 0; left: 0; bottom: 0; height: 100vh; width: min(290px, 86vw); z-index: 70; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 0 10px 40px rgba(0,0,0,.25); border-right: 0; }
  body.nav-open .sidenav { transform: none; }
  main { padding: 1rem 16px 4rem; }
}

/* Building blocks */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.page-head p { margin: .1rem 0 0; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); margin-bottom: 1rem; min-width: 0; }
.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.kpis { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.spacer { flex: 1; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; overflow-x: auto; }
.tabs button, .tabs a { background: none; border: 0; border-bottom: 3px solid transparent; padding: .55rem .9rem; font: inherit; color: var(--muted); cursor: pointer; text-decoration: none; white-space: nowrap; }
.tabs [aria-selected="true"] { color: var(--teal-strong); border-bottom-color: var(--teal); font-weight: 650; }

button, .btn { font: inherit; border-radius: 10px; transition: background-color .12s, border-color .12s, box-shadow .12s; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: .45rem .9rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; }
button:hover, .btn:hover { border-color: var(--teal); }
button.primary, .btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
:root[data-theme="dark"] button.primary, :root[data-theme="dark"] .btn.primary { color: #062421; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) button.primary, :root:not([data-theme="light"]) .btn.primary { color: #062421; } }
button.primary:hover { background: var(--teal-strong); }
button.danger { color: var(--bad); border-color: var(--bad); }
button.link { border: 0; background: none; color: var(--teal); padding: 0; min-height: 0; text-decoration: underline; }
button:disabled { opacity: .55; cursor: not-allowed; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: .45rem .6rem; min-height: 36px; width: 100%; }
textarea { min-height: 84px; resize: vertical; }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--teal); }
label { font-weight: 550; font-size: .88rem; display: block; margin-bottom: .2rem; }
.field { margin-bottom: .85rem; }
.field .req { color: var(--bad); }
.field .err { color: var(--bad); font-size: .82rem; margin-top: .2rem; }
.field.check { display: flex; gap: .5rem; align-items: flex-start; }
.field.check label { margin: 0; font-weight: 500; }
.multi { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .3rem .9rem; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; max-height: 220px; overflow: auto; }
.multi label { display: flex; gap: .45rem; align-items: center; font-weight: 450; margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 1rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.inline-form .field { margin: 0; min-width: 150px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { padding: .55rem .75rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 650; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
th button { background: none; border: 0; padding: 0; min-height: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; }
tbody tr:hover { background: var(--surface-2); }
tr.clickable { cursor: pointer; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tfoot td { font-weight: 700; background: var(--surface-2); }
.empty { padding: 2rem 1rem; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); margin-bottom: .25rem; }
.pager { display: flex; gap: .5rem; align-items: center; justify-content: flex-end; padding: .6rem 0; color: var(--muted); font-size: .85rem; }

.chip { display: inline-block; padding: .08rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--navy-2); white-space: nowrap; border: 1px solid var(--line); }
.chip.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.chip.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.chip.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.chip.info { background: var(--info-bg); color: var(--navy-2); border-color: transparent; }

.next { display: flex; gap: .6rem; align-items: flex-start; background: var(--teal-soft); border-left: 4px solid var(--teal); padding: .7rem .9rem; border-radius: 8px; margin: .75rem 0 1rem; }
.next b { color: var(--teal-strong); }
.callout { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: .7rem .9rem; margin-bottom: 1rem; }
.callout.bad { background: var(--bad-bg); color: var(--bad); }
.callout.info { background: var(--info-bg); color: var(--text); }
dl.fields { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: .45rem 1rem; margin: 0; }
dl.fields dt { color: var(--muted); font-size: .86rem; }
dl.fields dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 600px) { dl.fields { grid-template-columns: 1fr; } dl.fields dd { margin-bottom: .4rem; } }
.fin { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.fin .v { font-size: 1.5rem; font-weight: 750; color: var(--navy); font-variant-numeric: tabular-nums; }
.fin .v.text { font-size: 1rem; font-weight: 600; max-width: 26rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1rem; }

/* KPIs */
.kpi { position: relative; display: block; text-align: left; width: 100%; padding: 1rem; min-height: 112px; flex-direction: column; align-items: flex-start; }
.kpi .l { font-size: .82rem; color: var(--muted); font-weight: 600; display: flex; gap: .35rem; align-items: center; }
.kpi .v { font-size: 1.45rem; font-weight: 750; color: var(--navy); font-variant-numeric: tabular-nums; margin: .25rem 0; display: block; }
.kpi .s { font-size: .78rem; color: var(--muted); display: block; }
.info-btn { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; min-height: 0; padding: 0; border-radius: 50%; font-size: .72rem; font-weight: 700; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); }
.tip { position: absolute; z-index: 30; left: .5rem; right: .5rem; top: 2.2rem; background: var(--navy); color: #fff; padding: .7rem .8rem; border-radius: 8px; font-size: .8rem; line-height: 1.45; box-shadow: var(--shadow); text-align: left; font-weight: 400; }
:root[data-theme="dark"] .tip { background: #000; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tip { background: #050a14; } }
.tip b { color: #9EE3DA; display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; margin-top: .3rem; }
.bar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--teal); }

/* Dialog, toasts */
dialog { border: 0; border-radius: 14px; padding: 0; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(10, 18, 34, .5); }
dialog form, dialog .dialog-body { padding: 1.25rem 1.25rem 1rem; }
dialog .dialog-actions { display: flex; justify-content: flex-end; gap: .5rem; border-top: 1px solid var(--line); padding-top: .9rem; margin-top: .5rem; position: sticky; bottom: 0; background: var(--surface); }
.toasts { position: fixed; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; z-index: 50; max-width: min(460px, calc(100vw - 2rem)); }
.toast { background: var(--navy); color: #fff; padding: .75rem 1rem; border-radius: 10px; box-shadow: var(--shadow); font-size: .9rem; }
:root[data-theme="dark"] .toast { background: #273554; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast { background: #273554; } }
.toast.bad { background: var(--bad); color: #fff; } .toast.warn { background: #6B4400; color: #fff; }

/* Login */
.login { min-height: calc(100vh - 140px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2rem; align-items: stretch; max-width: 1180px; margin: 0 auto; }
.login-side { border-radius: 20px; padding: 2.75rem 2.5rem; color: #fff; background: radial-gradient(circle at 85% 15%, rgba(61,191,178,.35), transparent 45%), linear-gradient(150deg, #0E6B6B 0%, #14213D 85%); display: flex; flex-direction: column; justify-content: center; }
.login-brand { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; margin-bottom: 1.6rem; }
.login-brand img { width: auto; height: 46px; }
.login-tag { color: #D4982C; font-size: .78rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; }
.tagline { font-size: 1.35rem; font-weight: 650; line-height: 1.35; max-width: 28rem; margin: 0 0 1.5rem; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.points li { display: flex; gap: .85rem; align-items: flex-start; }
.points li b { display: block; }
.points li span span { opacity: .85; font-size: .92rem; }
.pt-ic { width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center; background: rgba(255,255,255,.14); flex: 0 0 auto; }
.endorse-line { margin: 2rem 0 0; opacity: .75; }
.login-more { margin: 1.4rem 0 0; font-size: .95rem; }
.login-more a { color: #FFE2A8; font-weight: 600; text-underline-offset: 3px; }
.login-more a:hover { color: #fff; }
.login-card { align-self: center; justify-self: center; width: min(420px, 100%); padding: 2.25rem 2rem; margin: 0; }
.login-card h1 { font-size: 1.6rem; margin-bottom: .2rem; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 4.2rem; }
.pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); min-height: 28px; padding: .1rem .6rem; font-size: .8rem; border: 0; background: var(--surface-2); }
button.block { width: 100%; justify-content: center; min-height: 44px; font-size: 1rem; }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; gap: 1rem; } .login-side { order: 2; padding: 1.5rem; } .login-side .points { display: none; } .tagline { font-size: 1.1rem; margin: 0; } .login-brand { margin-bottom: .75rem; } }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { padding: .2rem 0 .7rem 1rem; position: relative; font-size: .87rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .55rem; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.timeline .when { color: var(--muted); font-size: .78rem; }
.steps { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.steps span { padding: .25rem .7rem; border-radius: 999px; background: var(--surface-2); font-size: .82rem; color: var(--muted); }
.steps span.on { background: var(--teal); color: #fff; }
.repeat-block { border: 1px dashed var(--line); border-radius: 8px; padding: .75rem .75rem 0; margin-bottom: .75rem; }
@media print { .topbar-right, .sidenav, .actions, .tipbar, .hero-cta, .menu-btn, .no-print { display: none !important; } .shell { display: block; } main { padding: 0; } .card { box-shadow: none; } }
/* Public job page */
.apply-main { max-width: 820px; margin: 0 auto; padding: 1.5rem 16px 4rem; }
.apply-card { padding: 1.4rem 1.5rem; }
.jd { white-space: pre-wrap; line-height: 1.6; margin-top: .75rem; border-top: 1px solid var(--line); padding-top: .75rem; }
.score { display: inline-flex; align-items: center; gap: .5rem; min-width: 120px; }
.score .bar { flex: 1; min-width: 60px; }
.score b { font-variant-numeric: tabular-nums; min-width: 2.6rem; text-align: right; }
.bar > i.strong { background: var(--ok); } .bar > i.good { background: var(--teal); } .bar > i.partial { background: #B7791F; } .bar > i.low { background: var(--bad); }

.joblink { border-left: 4px solid var(--teal); }
.joblink input { flex: 1 1 340px; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.resume-img { display: block; max-width: 100%; max-height: 560px; margin-top: .6rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.resume-text { white-space: pre-wrap; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; background: var(--surface-2); padding: .8rem; border-radius: 8px; max-height: 420px; overflow: auto; }
details summary { cursor: pointer; color: var(--teal); margin: .5rem 0; }

/* ── Friendly UI layer ───────────────────────────────────────────────────── */
[hidden] { display: none !important; }
.ic { flex: 0 0 auto; }
.accent { color: var(--teal); } .warn-text { color: var(--warn); } .bad-text { color: var(--bad); } .ok-text { color: var(--ok); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; min-height: 0; padding: 0; border: 0; background: transparent; color: var(--muted); border-radius: 10px; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
kbd { font: 600 .72rem ui-monospace, Menlo, Consolas, monospace; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: .05rem .35rem; background: var(--surface); color: var(--muted); white-space: nowrap; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.row.center { justify-content: center; margin-top: .75rem; }
.page-head .row select, .page-head .row input { width: auto; }
.page-head .row label { margin: 0; }
.count-pill { display: inline-block; margin-left: .5rem; padding: 0 .5rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .75rem; font-weight: 700; vertical-align: middle; }
.count-pill.warn { background: var(--warn-bg); color: var(--warn); }
.big-ic { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--teal-soft); color: var(--teal); margin: 0 auto .6rem; }

/* Menus (account, more actions) */
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; margin: 0; color: inherit; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgba(20,33,61,.18); padding: .35rem; z-index: 40; display: grid; }
.menu-pop > a, .menu-pop > button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .7rem; border: 0; background: none; border-radius: 8px; text-align: left; color: var(--text); text-decoration: none; font-weight: 500; min-height: 0; }
.menu-pop > a:hover, .menu-pop > button:hover { background: var(--surface-2); }
.menu-pop .signout, .menu-pop .risky { color: var(--bad); }
.actions details.more .menu-pop { left: 0; right: auto; }

/* Home */
.hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.75rem; border-radius: 18px; color: #fff; margin-bottom: 1rem;
  background: radial-gradient(circle at 90% 0%, rgba(61,191,178,.35), transparent 40%), linear-gradient(135deg, #0E6B6B 0%, #14213D 90%); box-shadow: var(--shadow); }
.hero h1 { color: #fff; font-size: 1.8rem; margin: 0 0 .25rem; }
.hero .eyebrow { margin: 0 0 .2rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.hero .lead { margin: 0; max-width: 46rem; opacity: .95; }
.hero .bad-text { color: #FFD1CB; }
.hero-cta.btn.primary { background: #fff; color: #0A5252; border-color: #fff; font-weight: 650; padding: .6rem 1.1rem; }
.hero-cta.btn.primary:hover { background: #E3F0EE; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.stat { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .12s, border-color .12s; }
.stat:hover { border-color: var(--teal); transform: translateY(-1px); color: var(--text); }
.stat-ic, .qa-ic, .task-ic, .rec-ic { display: inline-grid; place-items: center; flex: 0 0 auto; background: var(--teal-soft); color: var(--teal); }
.stat-ic { width: 44px; height: 44px; border-radius: 12px; }
.stat-body { display: grid; min-width: 0; }
.stat .v { font-size: 1.6rem; font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--navy); }
.stat .l { font-weight: 650; font-size: .9rem; }
.stat .s { font-size: .78rem; color: var(--muted); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1rem; align-items: start; }
@media (max-width: 1100px) { .home-grid { grid-template-columns: 1fr; } }
.task-group h2 { display: flex; align-items: center; }
.qa-grid { display: grid; gap: .5rem; }
.qa { display: flex; gap: .75rem; align-items: center; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; transition: background-color .12s, border-color .12s; }
.qa:hover { border-color: var(--teal); background: var(--teal-soft); color: var(--text); }
.qa b { display: block; font-size: .92rem; }
.qa .small { display: block; }
.qa-ic { width: 38px; height: 38px; border-radius: 10px; }
.tour .row h2 { margin: 0; }
.tour .bar { margin: .7rem 0 .5rem; height: 8px; }
.steps-list { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .45rem; }
.steps-list li { display: flex; gap: .6rem; align-items: center; }
.steps-list .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: inline-grid; place-items: center; flex: 0 0 auto; }
.steps-list li.done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps-list li.done a { color: var(--muted); text-decoration: line-through; }
.tip-card h2 { display: flex; align-items: center; gap: .4rem; font-size: 1rem; }
.all-clear { text-align: center; padding: 2rem 1rem; }
.exc-card h2 { display: flex; align-items: center; gap: .4rem; }

/* Task cards */
.task { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .35rem .9rem; align-items: center; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: .55rem; transition: border-color .12s, box-shadow .12s; }
.task:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.task.overdue { border-left: 4px solid var(--bad); }
.task.overdue .task-ic { background: var(--bad-bg); color: var(--bad); }
.task-ic { width: 38px; height: 38px; border-radius: 50%; }
.task-ic.warn { background: var(--warn-bg); color: var(--warn); }
.task .t { font-weight: 650; }
.task .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; font-size: .82rem; color: var(--muted); margin-top: .2rem; }
.task .meta > span { display: inline; }
.task .meta .ic { vertical-align: -2px; }
.task .meta b { color: var(--text); font-weight: 600; }
.task .go { white-space: nowrap; }
.exc { border-left: 4px solid var(--warn); }
@media (max-width: 600px) { .task { grid-template-columns: auto minmax(0, 1fr); } .task .go { grid-column: 1 / -1; justify-self: start; } }

/* Lists */
.tipbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; background: var(--info-bg); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .85rem; margin-bottom: 1rem; font-size: .92rem; }
.tipbar button.small { min-height: 30px; padding: .2rem .7rem; }
.list-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.searchfield { position: relative; flex: 1 1 260px; max-width: 420px; display: flex; align-items: center; }
.searchfield .ic { position: absolute; left: .7rem; color: var(--muted); pointer-events: none; }
.searchfield input { padding-left: 2.2rem; }
.facets { display: flex; flex-wrap: wrap; gap: .4rem; margin: .1rem 0 .6rem; }
.facet { border-radius: 999px; padding: .2rem .75rem; min-height: 32px; font-size: .85rem; gap: .4rem; }
.facet .n { font-size: .72rem; font-weight: 700; background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: 0 .4rem; }
.facet.on { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.facet.on .n { background: rgba(255,255,255,.25); color: #fff; }
.count-line { margin-bottom: .4rem; }
.empty { display: grid; justify-items: center; gap: .15rem; padding: 2.5rem 1rem; }

/* Record pages */
.back { margin: 0 0 .6rem; }
.back a { text-decoration: none; }
.rec-head { align-items: flex-start; }
.rec-title { display: flex; gap: .85rem; align-items: flex-start; min-width: 0; }
.rec-ic { width: 46px; height: 46px; border-radius: 12px; margin-top: .1rem; }
.next { align-items: center; }
.next .ic { color: var(--teal); }
.next b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
dl.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .9rem 1.5rem; margin: 0; }
dl.kv > div { min-width: 0; }
dl.kv > div.wide { grid-column: 1 / -1; }
dl.kv dt { color: var(--muted); font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .03em; margin-bottom: .1rem; }
dl.kv dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
details.history > summary { display: flex; align-items: center; justify-content: space-between; list-style: none; color: var(--text); margin: 0; }
details.history > summary::-webkit-details-marker { display: none; }
details.history > summary h2 { margin: 0; display: flex; align-items: center; }
details.history > summary::after { content: "Show"; color: var(--teal); font-size: .88rem; font-weight: 600; }
details.history[open] > summary { margin-bottom: .8rem; }
details.history[open] > summary::after { content: "Hide"; }
.joblink.off { border-left-color: var(--line); }
.joblink .row h2, .card > .row > h2 { margin: 0; }
.card > .row:first-child { margin-bottom: .6rem; }

/* Help drawer and quick search */
.shade { position: fixed; inset: 0; background: rgba(10, 18, 34, .45); z-index: 65; animation: fade .15s ease-out; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100vw); background: var(--surface); color: var(--text); z-index: 70; padding: 1.25rem 1.4rem; overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,.2); animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer h2 { margin: 0; }
.drawer .tips { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .75rem; }
.drawer .tips li { display: flex; gap: .6rem; align-items: flex-start; }
.drawer .tips li .ic { margin-top: .15rem; }
.palette { position: fixed; top: 12vh; left: 50%; transform: translateX(-50%); width: min(640px, calc(100vw - 32px)); background: var(--surface); color: var(--text); border-radius: 16px; box-shadow: 0 24px 70px rgba(0,0,0,.35); z-index: 70; overflow: hidden; animation: fade .15s ease-out; }
.pal-in { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.pal-in input { border: 0; background: transparent; font-size: 1.05rem; padding: .35rem 0; min-height: 0; }
.pal-in input:focus-visible { outline: none; }
.pal-list { list-style: none; margin: 0; padding: .4rem; max-height: min(52vh, 460px); overflow-y: auto; }
.pal-list li { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: 10px; cursor: pointer; }
.pal-list li.sel { background: var(--teal-soft); color: var(--teal-strong); }
.pal-list .hint { margin-left: auto; font-size: .75rem; color: var(--muted); }

/* Toasts and celebrations */
.toast { display: flex; align-items: center; gap: .6rem; animation: fade .18s ease-out; }
.toast > span { flex: 1; }
.toast.ok { background: #1E6B3A; color: #fff; }
.toast-x { background: none; border: 0; color: inherit; opacity: .75; min-height: 0; padding: .2rem; border-radius: 6px; }
.toast-x:hover { opacity: 1; background: rgba(255,255,255,.12); border: 0; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.confetti i { position: absolute; top: -14px; width: 8px; height: 13px; border-radius: 2px; animation: fall 1.9s cubic-bezier(.25,.6,.45,1) forwards; }
@keyframes fall { to { transform: translate(var(--dx), 105vh) rotate(var(--r)); opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .fade-in, .drawer, .palette, .shade, .toast { animation: none; } .sidenav { transition: none; } .stat:hover { transform: none; } }

/* Theme switch */
.menu-label { padding: .45rem .7rem .15rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.menu-sep { height: 1px; background: var(--line); margin: .3rem .2rem; }
.menu-pop > button.on { color: var(--teal-strong); font-weight: 650; }
.menu-pop > button > span { flex: 1; }
.theme-pick { display: flex; flex-wrap: wrap; gap: .6rem; }
.theme-opt { flex: 1 1 170px; justify-content: flex-start; gap: .55rem; padding: .7rem .9rem; border-radius: 12px; }
.theme-opt > span { flex: 1; text-align: left; }
.theme-opt.on { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-strong); font-weight: 650; box-shadow: 0 0 0 1px var(--teal) inset; }

/* Client shortlist page */
.sl-head .lead { margin: .4rem 0 .6rem; }
.sl-who { flex: 1 1 240px; margin: 0; }
.sl-card h2 { margin: 0; }
.sl-card .row:first-child { justify-content: space-between; }
.sl-facts { list-style: none; padding: 0; margin: .5rem 0; display: flex; flex-wrap: wrap; gap: .35rem .5rem; }
.sl-facts li { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .65rem; font-size: .86rem; }
.sl-buttons { margin-top: .6rem; }
.sl-buttons button, .sl-buttons .btn { flex: 1 1 auto; justify-content: center; min-height: 42px; }
.sl-form { margin-top: .75rem; border-top: 1px solid var(--line); padding-top: .75rem; }
@media (max-width: 600px) { .sl-buttons button, .sl-buttons .btn { flex: 1 1 100%; } }

/* ── Agency workflow ─────────────────────────────────────────────────────── */
button.small-btn, .btn.small-btn, .small-btn { min-height: 30px; padding: .2rem .6rem; font-size: .82rem; gap: .3rem; }
.btn.wa, button.wa, details.wa-menu > summary.btn { color: #0B6B3A; border-color: #9ED9B6; background: #EAF8EF; }
.btn.wa:hover, details.wa-menu > summary.btn:hover { border-color: #25A35A; }
:root[data-theme="dark"] .btn.wa, :root[data-theme="dark"] details.wa-menu > summary.btn { color: #8FE3AE; border-color: #2E6B47; background: #14301F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.wa, :root:not([data-theme="light"]) details.wa-menu > summary.btn { color: #8FE3AE; border-color: #2E6B47; background: #14301F; } }
.wa-menu .menu-pop { left: 0; right: auto; min-width: 260px; }
.heat { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .05rem .45rem; border-radius: 999px; }
.heat.hot { background: #FDE3DC; color: #A12D12; } .heat.warm { background: var(--warn-bg); color: var(--warn); } .heat.hold { background: var(--surface-2); color: var(--muted); }
:root[data-theme="dark"] .heat.hot { background: #47201A; color: #FFB4A1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .heat.hot { background: #47201A; color: #FFB4A1; } }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; min-height: 34px; padding: .25rem .7rem; font-size: .86rem; background: var(--surface); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--teal); color: #fff; font-weight: 600; }
.pipe-tools .searchfield { max-width: 320px; }
.pipe-mandate { width: auto; max-width: 320px; }
.pipe-hint { margin: 0 0 .5rem; }
.rec-links { margin: -.25rem 0 1rem; }

/* Board */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: 268px; gap: .75rem; overflow-x: auto; padding-bottom: .75rem; scroll-snap-type: x proximity; align-items: start; }
.pcol { min-width: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: .55rem; min-height: 160px; scroll-snap-align: start; transition: background-color .12s, border-color .12s; }
.pcol header { display: flex; align-items: center; gap: .45rem; padding: .2rem .25rem .55rem; font-size: .88rem; position: sticky; top: 0; }
.pcol header .count-pill { margin-left: auto; }
.pcol .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.pcol .dot.warn { background: #C98A1B; } .pcol .dot.bad { background: var(--bad); } .pcol .dot.info { background: #6C8EBF; }
.pcol-body { display: grid; gap: .5rem; }
.pcol-empty { text-align: center; padding: 1rem .5rem; border: 1px dashed var(--line-strong); border-radius: 10px; margin: 0; }
.board.dragging .pcol:not(.can-drop) { opacity: .55; }
.pcol.can-drop { border-color: var(--teal); border-style: dashed; }
.pcol.over { background: var(--teal-soft); }
.pcard { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .65rem .45rem; cursor: pointer; box-shadow: 0 1px 2px rgba(20,33,61,.05); transition: border-color .12s, box-shadow .12s, transform .12s; }
.pcard:hover, .pcard:focus-visible { border-color: var(--teal); box-shadow: var(--shadow); }
.pcard[draggable="true"] { cursor: grab; }
.pcard.overdue { border-left: 3px solid var(--bad); }
.pc-top { display: flex; align-items: center; gap: .4rem; justify-content: space-between; }
.pc-sub { margin: .1rem 0 .35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-facts { display: flex; flex-wrap: wrap; gap: .25rem; }
.pc-facts span { font-size: .74rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 .45rem; white-space: nowrap; }
.pc-flag { color: var(--warn); margin-top: .3rem; font-weight: 600; }
.pc-when, .pc-fu { margin-top: .3rem; } .pc-when .ic, .pc-fu .ic { vertical-align: -2px; }
.pc-actions { display: flex; align-items: center; gap: .15rem; margin-top: .35rem; min-width: 0; }
.pc-actions .small-btn { max-width: 150px; overflow: hidden; white-space: nowrap; }
.pc-fu, .pc-when { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-actions .icon-btn { width: 32px; height: 32px; }
@media (max-width: 860px) { .board { grid-auto-columns: 82vw; scroll-snap-type: x mandatory; } }
.pipe-table td { vertical-align: middle; }

/* Slide-over candidate panel */
.drawer.wide { width: min(560px, 100vw); }
.app-drawer { display: grid; gap: .8rem; align-content: start; }
.dr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.dr-title { display: flex; gap: .7rem; align-items: center; } .dr-title h2 { margin: 0; } .dr-title p { margin: 0; }
.avatar.lg { width: 44px; height: 44px; font-size: 1rem; }
.dr-mandate { margin: 0; } .dr-mandate .ic { vertical-align: -2px; color: var(--muted); }
.dr-contact { gap: .4rem; }
.dr-follow { display: flex; align-items: center; gap: .6rem; padding: .65rem .75rem; border-radius: 12px; background: var(--teal-soft); border: 1px solid var(--line); }
.dr-follow.overdue { background: var(--bad-bg); color: var(--bad); }
.dr-follow .ic { flex: 0 0 auto; }
.dr-moves .row { gap: .4rem; }
dl.kv.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; }
.remark { display: grid; gap: .45rem; padding: .75rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.remark label { margin: 0; }
.remark-row { display: grid; grid-template-columns: 120px 1fr 1fr; gap: .45rem; align-items: end; }
.remark-row .field { margin: 0; }
@media (max-width: 600px) { .remark-row { grid-template-columns: 1fr; } dl.kv.compact { grid-template-columns: 1fr 1fr; } }
.remark .field.check { margin: 0; }
.remark button.primary { justify-self: start; }
.dr-timeline h3 { margin: .25rem 0 .5rem; }
.dr-timeline .timeline li { font-size: .84rem; }
.dr-links { color: var(--muted); }

/* Today's Action Center */
.action-center { margin: 0 0 1rem; }
.action-center > .row h2 { margin: 0; display: flex; align-items: center; gap: .35rem; }
.ac-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: .6rem; }
.ac-box { margin: 0; }
.ac-box h3 { display: flex; align-items: center; gap: .4rem; margin: 0 0 .15rem; }
.ac-box.warn { border-top: 3px solid #C98A1B; } .ac-box.bad { border-top: 3px solid var(--bad); }
.ac-box .count-pill.bad { background: var(--bad-bg); color: var(--bad); }
.ac-list { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .35rem; max-height: 320px; overflow-y: auto; }
.ac-item { display: flex; align-items: center; gap: .5rem; padding: .5rem .55rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--surface); }
.ac-item:hover, .ac-item:focus-visible { border-color: var(--teal); }
.ac-main { flex: 1; min-width: 0; } .ac-main .small { overflow: hidden; text-overflow: ellipsis; }
.ac-right { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }

/* Shortlist link panel (mandate page) */
.sharelink { border-left: 4px solid #6C8EBF; }
.sharelink.off { border-left-color: var(--line); }
.sharelink input { flex: 1 1 320px; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.sl-resp { list-style: none; padding: 0; margin: .3rem 0 0; display: grid; gap: .35rem; font-size: .88rem; }

/* Earnings */
.stat.warn .stat-ic { background: var(--warn-bg); color: var(--warn); }
.stat.ok .stat-ic { background: var(--ok-bg); color: var(--ok); }
.signup-link { margin-top: .75rem; }
/* Sign in with Google (Google's button style: white, grey outline, four-colour G) */
.google-btn { display: flex; align-items: center; justify-content: center; gap: .65rem; width: 100%; min-height: 44px; padding: .6rem 1rem; margin: 1rem 0 .25rem; border: 1px solid #747775; border-radius: 10px; background: #fff; color: #1f1f1f; font-weight: 600; font-size: .95rem; text-decoration: none; transition: background .15s, box-shadow .15s; }
.google-btn:hover { background: #f8faff; box-shadow: 0 1px 3px rgba(60,64,67,.25); text-decoration: none; }
.google-btn:focus-visible { outline: 3px solid var(--accent, #0E6B6B); outline-offset: 2px; }
.google-new { text-align: center; margin: .35rem 0 0; }
.email-code .ec-note { margin: .5rem 0 0; text-align: center; }
.email-code .ec-actions { text-align: center; margin: .6rem 0 0; }
.code-input { font-size: 1.4rem !important; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.code-input::placeholder { letter-spacing: .02em; font-size: 1rem; }
.pw-toggle-line { text-align: center; margin: .9rem 0 .2rem; }
.pw-box { margin-top: .4rem; padding-top: .8rem; border-top: 1px solid var(--line, #e3e6ea); }
.or-line { display: flex; align-items: center; gap: .75rem; margin: .9rem 0 .4rem; color: var(--muted); font-size: .85rem; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line, #e3e6ea); }
.google-who { display: flex; align-items: flex-start; gap: .6rem; padding: .75rem .9rem; margin: .75rem 0 0; border: 1px solid var(--line, #e3e6ea); border-radius: 10px; background: var(--surface-2, #f7f8fa); font-size: .92rem; }
.google-who img { margin-top: 2px; flex: none; }
.careers-card { margin-top: 1.25rem; }
.careers-live { display: grid; gap: .6rem; padding: .9rem; margin: .25rem 0 1rem; border-radius: 12px; background: var(--surface-2, #f7f8fa); border: 1px solid var(--line, #e3e6ea); }
.careers-live .row { flex-wrap: wrap; gap: .5rem; }
.careers-live input { flex: 1 1 260px; min-width: 0; }
.prefix-input { display: flex; align-items: stretch; border: 1px solid var(--line, #d7dbe0); border-radius: 8px; overflow: hidden; background: var(--surface, #fff); }
.prefix-input .prefix { display: flex; align-items: center; padding: 0 .6rem; background: var(--surface-2, #f3f5f7); color: var(--muted); font-size: .85rem; white-space: nowrap; border-right: 1px solid var(--line, #d7dbe0); max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.prefix-input input { border: 0 !important; border-radius: 0 !important; flex: 1; min-width: 0; }
.google-status { display: flex; align-items: flex-start; gap: .85rem; }
.google-status img { flex: none; margin-top: 2px; }
.google-status p { margin: .2rem 0 0; }

/* WhatsApp composer, call log, contact bars */
.icon-btn.wa-ic { color: #128C4A; } .icon-btn.wa-ic:hover { background: #EAF8EF; color: #0B6B3A; }
.icon-btn.call-ic { color: var(--teal); } .icon-btn.call-ic:hover { background: var(--teal-soft); }
:root[data-theme="dark"] .icon-btn.wa-ic { color: #6FD49A; } :root[data-theme="dark"] .icon-btn.wa-ic:hover { background: #14301F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-btn.wa-ic { color: #6FD49A; } :root:not([data-theme="light"]) .icon-btn.wa-ic:hover { background: #14301F; } }
.icon-btn.disabled, .btn.disabled { opacity: .45; cursor: not-allowed; }
.contact-ic { display: inline-flex; gap: .1rem; }
.btn.call { color: var(--teal-strong); }
.wa-compose, .call-log { display: grid; gap: .65rem; }
.wa-compose h2, .call-log h2 { margin: 0; }
.wa-compose > .row:first-child p, .call-log > .row:first-child p { margin: 0; }
.wa-badge, .call-badge { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; flex: 0 0 auto; }
.wa-badge { background: #25D366; color: #fff; } .call-badge { background: var(--teal); color: #fff; }
.wa-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.wa-chips .facet { min-height: 30px; font-size: .82rem; }
.facet.neg.on { background: var(--bad); border-color: var(--bad); }
.wa-text { font-size: .95rem; line-height: 1.5; min-height: 190px; background: #F7FFF9; border-color: #BFE6CC; }
:root[data-theme="dark"] .wa-text { background: #10231A; border-color: #2E6B47; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wa-text { background: #10231A; border-color: #2E6B47; } }
.btn.primary.wa-go { background: #128C4A; border-color: #128C4A; color: #fff; }
.btn.primary.wa-go:hover { background: #0B6B3A; }
.wa-opts { justify-content: space-between; } .wa-opts .field { margin: 0; } .wa-opts select { width: auto; }
.dial { display: grid; justify-items: center; gap: .5rem; padding: .9rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.dial-number { font-size: 1.7rem; font-weight: 750; letter-spacing: .02em; color: var(--navy); text-decoration: none; font-variant-numeric: tabular-nums; }
.call-log h3 { margin: .3rem 0 0; }
.remark-row.two { grid-template-columns: 1fr 1fr; }
.contact-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .7rem .9rem; margin: -.25rem 0 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.cb-who { display: grid; line-height: 1.3; }
.people-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.people-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 12px; }
.pp-who { display: grid; line-height: 1.35; min-width: 0; }
.dr-phone { margin: -.4rem 0 0; }
.dr-spoc { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; padding: .5rem .65rem; border: 1px dashed var(--line-strong); border-radius: 12px; }
.dr-spoc .ic { color: var(--muted); }
@media (max-width: 600px) { .contact-bar .btn { flex: 1 1 auto; justify-content: center; } .remark-row.two { grid-template-columns: 1fr; } .wa-text { min-height: 220px; } }
@media (max-width: 600px) {
  dialog:has(.wa-compose), dialog:has(.call-log) { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .wa-compose .wa-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .2rem; scrollbar-width: none; }
  .wa-compose .wa-chips .facet { flex: 0 0 auto; }
  .wa-compose .wa-text { min-height: 38vh; }
  .wa-compose .dialog-actions, .call-log .dialog-actions { padding-bottom: max(.5rem, env(safe-area-inset-bottom)); }
}
.dr-spoc { flex-wrap: nowrap; } .dr-spoc .small { flex: 1; min-width: 0; }
@media (max-width: 600px) { .dr-spoc { flex-wrap: wrap; } }

/* My day, Call list, Daily report, tracker, risk */
.my-day h2 { margin: 0; display: flex; align-items: center; gap: .35rem; }
.md-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem 1rem; margin-top: .7rem; }
.md-target .row { gap: .3rem; margin-bottom: .3rem; }
.md-target.met b { color: var(--ok); }
.pc-risk { margin-top: .3rem; }
.dr-risk { border-radius: 12px; padding: .6rem .8rem; border: 1px solid var(--line); }
.dr-risk.high { background: var(--bad-bg); color: var(--bad); border-color: transparent; } .dr-risk.medium { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.dr-risk b { display: flex; align-items: center; gap: .3rem; } .dr-risk ul { margin: .3rem 0 .2rem 1.1rem; padding: 0; font-size: .88rem; } .dr-risk p { margin: 0; }
.dr-summary { gap: .4rem; }
.paste-box { border: 1px dashed var(--line-strong); border-radius: 12px; padding: .5rem .75rem .65rem; margin-bottom: .8rem; background: var(--surface-2); }
.paste-box summary { color: var(--teal-strong); font-weight: 600; margin: 0 0 .4rem; }
.paste-box textarea { min-height: 84px; font-size: .88rem; }
.paste-box .row { margin-top: .4rem; }
.cl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1rem; align-items: start; }
@media (max-width: 1000px) { .cl-layout { grid-template-columns: 1fr; } .cl-side { order: 2; } }
.cl-card { display: grid; gap: .6rem; }
.cl-card h2 { margin: 0; } .cl-card h3 { margin: .2rem 0 0; } .cl-card p { margin: 0; }
.cl-who { display: flex; gap: .7rem; align-items: center; }
.cl-dial { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.btn.primary.cl-call { font-size: 1.1rem; padding: .6rem 1.1rem; min-height: 48px; }
.cl-script { background: var(--teal-soft); border-radius: 12px; padding: .5rem .8rem; }
.cl-script summary { color: var(--teal-strong); font-weight: 650; margin: 0; }
.cl-script ul { margin: .4rem 0 .2rem 1.1rem; padding: 0; display: grid; gap: .2rem; font-size: .92rem; }
.cl-ess { border: 1px solid var(--line); border-radius: 12px; padding: .5rem .8rem; }
.cl-ess summary { color: var(--teal-strong); font-weight: 650; margin: 0 0 .4rem; }
.cl-ess .field { margin-bottom: .5rem; }
.cl-outcomes kbd { font-size: .65rem; padding: 0 .25rem; }
.cl-side h3 { margin: 0 0 .5rem; }
.cl-queue { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; max-height: 70vh; overflow-y: auto; }
.cl-queue li { display: flex; gap: .5rem; align-items: center; padding: .4rem .5rem; border-radius: 10px; cursor: pointer; }
.cl-queue li > span:last-child { display: grid; line-height: 1.25; min-width: 0; }
.cl-queue li:hover { background: var(--surface-2); } .cl-queue li.on { background: var(--teal-soft); } .cl-queue li.done { opacity: .5; text-decoration: line-through; }
.cl-queue .dot, .chip.r-callback, .chip.r-confirm, .chip.r-checkin, .chip.r-retry, .chip.r-screen, .chip.r-client { flex: 0 0 auto; }
.cl-queue .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.dot.r-callback { background: #C98A1B; } .dot.r-confirm { background: #6C8EBF; } .dot.r-checkin { background: #8E5BB5; } .dot.r-retry { background: var(--bad); } .dot.r-screen { background: var(--teal); } .dot.r-client { background: #3B7D4F; }
.chip.r-callback { background: var(--warn-bg); color: var(--warn); } .chip.r-confirm { background: var(--info-bg); } .chip.r-checkin { background: #F1E8F8; color: #6A3E8E; } .chip.r-retry { background: var(--bad-bg); color: var(--bad); } .chip.r-screen { background: var(--teal-soft); color: var(--teal-strong); } .chip.r-client { background: var(--ok-bg); color: var(--ok); }
.dsr-text { white-space: pre-wrap; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .86rem; background: var(--surface-2); padding: .9rem; border-radius: 10px; margin: .5rem 0 0; }
.dsr-card .row h2 { margin: 0; }
.tracker-card .row { margin-bottom: .45rem; } .tracker-card h2 { margin: 0; } .tracker-card .field.check { margin: 0 1rem 0 0; }
table.tracker { font-size: .8rem; } table.tracker td, table.tracker th { white-space: nowrap; }
/* Action Center rows: text on top, actions underneath (room for Remind / Confirmed / Call) */
.ac-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; align-items: start; }
.ac-right { justify-content: flex-start; }
.ac-main .small { overflow: visible; }

/* ── Recruiter product: composer channels, matches, joinings, invoices, business profile ── */
.callout.ok { background: var(--ok-bg); color: var(--ok); }
.warn-text { color: var(--warn); } .bad-text { color: var(--bad); }
.ch-tabs { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; align-self: flex-start; }
.ch-tabs button { border: 0; border-radius: 0; min-height: 34px; padding: .25rem .8rem; display: inline-flex; gap: .35rem; align-items: center; background: var(--surface); font-size: .88rem; }
.ch-tabs button + button { border-left: 1px solid var(--line); }
.ch-tabs button.on { background: var(--teal); color: #fff; font-weight: 600; }
.ch-tabs button:disabled { opacity: .45; cursor: not-allowed; }
.wa-badge.em { background: var(--info-bg); color: var(--navy-2); }
.em-subject input { width: 100%; }
.dim-row td { opacity: .72; }
/* Profile-age bar */
.age-wrap { display: grid; gap: .35rem; margin: .4rem 0 .6rem; }
.age-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.age-bar i { display: block; min-width: 6px; }
.age-bar i.none { flex: 1; background: var(--surface-2); }
.a1 { background: var(--teal); } .a2 { background: var(--teal); opacity: .55; } .a3 { background: var(--warn); opacity: .75; } .a4 { background: var(--bad); opacity: .6; } .a5 { background: var(--line-strong); }
.age-legend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; color: var(--muted); }
.age-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.age-legend b { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.db-strip h3 { margin: 0; }
.db-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin: .7rem 0; }
.dbc { display: grid; gap: .1rem; padding: .55rem .75rem; border-radius: 10px; background: var(--surface-2); }
.dbc b { font-size: 1.35rem; font-variant-numeric: tabular-nums; color: var(--navy); }
.dbc.ok { background: var(--ok-bg); } .dbc.ok b { color: var(--ok); }
.dbc.warn { background: var(--warn-bg); } .dbc.bad { background: var(--bad-bg); } .dbc.info { background: var(--info-bg); }
.match-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1rem; }
.mcard { display: grid; gap: .55rem; align-content: start; }
.mcard.hot { border-top: 3px solid var(--bad); } .mcard.warm { border-top: 3px solid var(--warn); }
.mc-title { min-width: 0; }
.mc-big { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; text-align: center; }
.mc-big > div { display: grid; padding: .4rem 0; border-radius: 8px; background: var(--surface-2); }
.mc-big .v { font-size: 1.3rem; font-variant-numeric: tabular-nums; color: var(--navy); }
.mc-big .ok-text .v { color: var(--ok); }
.db-callout:empty { display: none; }
/* Joinings */
.stat.clickable { cursor: pointer; text-align: left; font: inherit; }
.stat.sel { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-soft); }
.jn-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.jn-item { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(260px, 1.1fr); gap: 1rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer; }
.jn-item.due { border-left: 4px solid var(--warn); } .jn-item.alert { border-left: 4px solid var(--bad); }
.jn-when { display: grid; align-content: start; gap: .1rem; }
.jn-when b { font-size: 1.05rem; color: var(--navy); }
.jn-main { min-width: 0; display: grid; gap: .2rem; align-content: start; }
.jn-name { font-size: 1rem; }
.jn-chips { gap: .4rem; flex-wrap: wrap; }
.jn-step { display: grid; gap: .45rem; align-content: start; }
.jn-step .b { font-weight: 650; color: var(--text); }
.jn-step .row { flex-wrap: wrap; gap: .35rem; }
@media (max-width: 860px) { .jn-item { grid-template-columns: 1fr; } }
/* Candidate panel blocks */
.dr-block { display: grid; gap: .45rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.dr-block.due { border-color: var(--warn); background: var(--warn-bg); }
.dr-block.alert { border-color: var(--bad); background: var(--bad-bg); }
.dr-block .row { flex-wrap: wrap; gap: .4rem; align-items: center; }
/* Interview outcome */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.choice { display: grid; justify-items: start; gap: .25rem; text-align: left; padding: .8rem; min-height: 96px; }
/* Raise invoice */
.raise-inv { max-width: 760px; }
.inv-preview { margin: .3rem 0; padding: .7rem .9rem; border-radius: 10px; background: var(--teal-soft); color: var(--teal-strong); font-weight: 650; font-variant-numeric: tabular-nums; }
/* Business profile */
.biz-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.biz-image { display: grid; gap: .6rem; align-content: start; }
.biz-img { max-width: 100%; max-height: 110px; object-fit: contain; justify-self: start; padding: .6rem; background: #fff; border: 1px dashed var(--line-strong); border-radius: 10px; }
.biz-img.empty { display: grid; place-items: center; width: 100%; height: 90px; color: var(--muted); background: var(--surface-2); }
.biz-form { display: grid; gap: 1rem; }
.sticky-actions { position: sticky; bottom: 0; padding: .7rem 0; background: var(--bg); gap: .6rem; z-index: 2; }
.biz-link { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--text); margin-bottom: 1rem; }
.biz-link > div { flex: 1; }
.biz-link:hover { border-color: var(--teal); }
.early-inv { margin-top: .6rem; } .early-inv summary { cursor: pointer; color: var(--muted); }
.db-strip .row { flex-wrap: wrap; gap: .5rem; }
.db-strip .row select { width: auto; min-width: 0; }
.mc-title { flex: 1 1 auto; }
.ch-tabs { width: max-content; max-width: 100%; justify-self: start; }
@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .stat { padding: .7rem .75rem; gap: .5rem; }
  .stat .stat-ic { display: none; }
  .stat .v { font-size: 1.25rem; }
  .stat .l { font-size: .8rem; }
  .mc-big { grid-template-columns: repeat(2, 1fr); }
}
/* JD upload on "Post a new job" */
.jd-box { display: grid; gap: .55rem; margin-bottom: 1rem; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.jd-drop { display: grid; justify-items: center; gap: .3rem; text-align: center; padding: 1.1rem .8rem; border: 2px dashed var(--line-strong); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .12s, background .12s; }
.jd-drop:hover, .jd-drop.over { border-color: var(--teal); background: var(--teal-soft); }
.jd-drop.has { border-style: solid; border-color: var(--teal); }
.jd-paste textarea { width: 100%; margin: .4rem 0; }
.jd-result:empty { display: none; }
.jd-result { display: grid; gap: .45rem; }
.jd-chips { display: flex; flex-wrap: wrap; gap: .35rem; min-width: 0; }
.jd-chips .chip { white-space: normal; max-width: 100%; overflow-wrap: anywhere; border-radius: 12px; line-height: 1.35; padding: .15rem .55rem; }
.jd-need { color: var(--warn); }
.field.need > label { color: var(--warn); }
.field.need input, .field.need select, .field.need textarea { border-color: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }
.field.got input, .field.got textarea { border-color: var(--teal); background: var(--teal-soft); }

/* ── Agency-branded public pages (job link, client shortlist) ─────────────── */
:root { --brand: #14213D; --brand-accent: #14213D; --brand-on: #FFFFFF; }
.pub-head { background-color: var(--brand); background-image: radial-gradient(circle at 92% 0%, rgba(255,255,255,.16), rgba(255,255,255,0) 55%); color: #fff; }
.pub-head:empty { min-height: 84px; }
.pub-head-inner { max-width: 820px; margin: 0 auto; padding: 1.4rem 16px; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pub-logo { display: grid; place-items: center; background: #fff; border-radius: 14px; padding: .45rem .7rem; min-width: 56px; min-height: 56px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.pub-logo img { display: block; max-height: 48px; max-width: 180px; width: auto; height: auto; object-fit: contain; }
.pub-logo.initials { font-weight: 800; font-size: 1.25rem; color: var(--brand-accent); letter-spacing: .02em; width: 56px; padding: 0; }
.pub-id { min-width: 0; flex: 1 1 220px; }
.pub-name { margin: 0; font-size: 1.3rem; font-weight: 750; line-height: 1.2; color: #fff; overflow-wrap: anywhere; }
.pub-tagline { margin: .2rem 0 0; color: rgba(255,255,255,.86); font-size: .95rem; }
.pub-kicker { margin-left: auto; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; padding: .3rem .8rem; font-size: .82rem; font-weight: 650; letter-spacing: .02em; }
.apply-main { display: grid; gap: 1rem; }
.pub-job { margin-top: -2.2rem; position: relative; border-top: 4px solid var(--brand-accent); box-shadow: 0 14px 34px rgba(20,33,61,.10); }
.pub-eyebrow { margin: 0 0 .3rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-accent); }
.pub-job h1 { font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.15; margin: 0 0 .35rem; }
.pub-company { margin: 0 0 .8rem; color: var(--muted); }
.pub-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.pub-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: .25rem .7rem; font-size: .86rem; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.pub-chip.loc::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: var(--brand-accent); margin-right: .45rem; }
.pub-chip.must { border-color: color-mix(in srgb, var(--brand-accent) 45%, var(--line)); background: color-mix(in srgb, var(--brand-accent) 8%, var(--surface)); }
.btn.pub-cta, button.primary.pub-submit, .apply-card button.pub-submit { background: var(--brand-accent); color: var(--brand-on); border-color: var(--brand-accent); font-weight: 700; }
.btn.pub-cta { margin-top: 1rem; min-height: 46px; padding: 0 1.4rem; display: inline-flex; align-items: center; text-decoration: none; border-radius: 999px; }
.pub-submit { min-height: 48px; width: 100%; border-radius: 12px; font-size: 1rem; display: flex; align-items: center; justify-content: center; text-align: center; }
.btn.pub-cta:hover, button.primary.pub-submit:hover { background: var(--brand-accent); filter: brightness(1.08); color: var(--brand-on); }
.pub-message { border-left: 4px solid var(--brand-accent); background: color-mix(in srgb, var(--brand-accent) 6%, var(--surface)); }
.pub-message-from { margin: 0 0 .35rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-accent); }
.pub-message-text { margin: 0; font-size: 1.05rem; line-height: 1.65; white-space: pre-line; }
.pub-req { margin-bottom: .9rem; }
.pub-req h3 { font-size: .9rem; margin: 0 0 .4rem; color: var(--muted); font-weight: 650; }
.pub-about-text { white-space: pre-line; line-height: 1.65; margin: 0 0 .9rem; }
.pub-contacts .btn { min-height: 44px; display: inline-flex; align-items: center; }
.pub-form { scroll-margin-top: 1rem; }
.pub-done h2 { color: var(--brand-accent); }
.pub-next { padding-left: 1.2rem; line-height: 1.7; }
.pub-foot { border-top: 1px solid var(--line); }
.pub-foot-inner { max-width: 820px; margin: 0 auto; padding: 1.2rem 16px 2rem; display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.pub-powered { display: inline-flex; align-items: center; gap: .35rem; }
.pub-powered img { height: 12px; width: auto; opacity: .8; }
:focus-visible.pub-cta, .pub-submit:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 3px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pub-powered img { filter: invert(1); } }
@media (max-width: 560px) { .pub-head-inner { padding: 1.1rem 16px 1.6rem; } .pub-kicker { margin-left: 0; } .pub-name { font-size: 1.15rem; } .pub-job { margin-top: -1.6rem; } .pub-contacts .btn { flex: 1 1 100%; justify-content: center; } }

/* Branding settings */
.brand-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1rem; align-items: start; }
.brand-preview { position: sticky; top: 76px; overflow: hidden; padding: 0; }
.brand-preview .pub-head-inner { padding: 1rem; }
.brand-preview-body { padding: 1rem; display: grid; gap: .6rem; }
.brand-preview .pub-message { padding: .8rem 1rem; border-radius: 10px; }
.brand-swatches { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.brand-swatches button { width: 34px; height: 34px; min-height: 0; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); padding: 0; cursor: pointer; }
.brand-swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--text); }
@media (max-width: 900px) { .brand-grid { grid-template-columns: 1fr; } .brand-preview { position: static; } }
.biz-links { display: grid; gap: .6rem; }
.link-btn { background: none; border: 0; padding: 0; min-height: 0; color: var(--teal); text-decoration: underline; cursor: pointer; font: inherit; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
#brand_pick { width: 52px; height: 44px; padding: 2px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; }

/* ── Launch: auth pages, plan banner, plan & platform views ── */
.login.single { grid-template-columns: minmax(0, 460px); justify-content: center; align-items: start; padding-top: 2rem; min-height: auto; }
.auth-logo { height: 34px; width: auto; margin-bottom: 1rem; display: block; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.label-row label { margin: 0; }
.planbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; background: var(--info-bg); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .85rem; margin-bottom: 1rem; font-size: .92rem; }
.planbar.warn { background: var(--warn-bg); }
.planbar.bad { background: var(--bad-bg, var(--warn-bg)); }
.planbar .btn.small, .planbar a.small { min-height: 30px; }
.meter { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 1rem; }
.meter > span { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.plan-card dl.kv { margin-top: .75rem; }
.plain-list { margin: .5rem 0 0; padding-left: 1.1rem; line-height: 1.6; }
.plain-list li { margin-bottom: .35rem; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.stat-row .stat { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem; }
.stat-row .stat b { font-size: 1.6rem; line-height: 1; }
.dialog-body input.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }

/* ── Client shortlist link v2 ── */
.sl-hero h1 { margin-bottom: .6rem; }
.sl-by { margin: .8rem 0 0; }
.sl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: 1rem; }
.sl-stats > div { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; background: var(--surface-2); display: flex; flex-direction: column; gap: .1rem; }
.sl-stats b { font-size: 1.5rem; line-height: 1.1; }
.sl-stats span { font-size: .8rem; color: var(--muted); }
.sl-stats .hot { border-color: var(--brand-accent); background: color-mix(in srgb, var(--brand-accent) 8%, var(--surface)); }
.sl-stats .hot b { color: var(--brand-accent); }
.sl-rec { display: grid; gap: .8rem; }
.sl-rec-id { display: flex; align-items: center; gap: .8rem; }
.sl-rec-id p { margin: 0; }
.sl-avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-accent); color: var(--brand-on); font-weight: 800; flex: none; }
.sl-rec-name { font-weight: 700; font-size: 1.1rem; }
.sl-rec-btns .btn { min-height: 44px; flex: 1 1 120px; justify-content: center; display: inline-flex; align-items: center; }
.sl-filter { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .2rem; scrollbar-width: thin; }
.sl-filter button { white-space: nowrap; border-radius: 999px; min-height: 38px; font-size: .88rem; }
.sl-filter button.on { background: var(--brand-accent); color: var(--brand-on); border-color: var(--brand-accent); }
.sl-top { align-items: flex-start; justify-content: space-between; gap: .6rem; }
.sl-headline { margin: .15rem 0 0; }
.sl-card .sl-buttons .primary, .sl-form button.primary, .sv-foot .primary { background: var(--brand-accent); border-color: var(--brand-accent); color: var(--brand-on); }
.sl-nocv { align-self: center; }
.sl-ivs { display: grid; gap: .5rem; margin: .6rem 0; }
.sl-iv { border: 1px solid var(--line); border-left: 4px solid var(--brand-accent); border-radius: 10px; padding: .65rem .8rem; background: var(--surface-2); }
.sl-iv.due { border-left-color: var(--warn); }
.sl-iv p { margin: .2rem 0; }
.sl-iv-top { justify-content: space-between; gap: .5rem; }
.sl-iv-when { font-weight: 600; }
.sl-iv .row { gap: .4rem; margin-top: .35rem; }
.sl-iv button.small, .sl-iv .btn.small { min-height: 36px; }
.sl-past summary { cursor: pointer; font-size: .88rem; color: var(--muted); }
.sl-past ul { margin: .3rem 0 0; padding-left: 1.1rem; font-size: .88rem; }
.sl-contact { border: 1px dashed var(--line-strong); border-radius: 10px; padding: .6rem .8rem; margin: .6rem 0; }
.sl-contact .row { gap: .4rem; }
.sl-contact p { margin: 0 0 .35rem; }
/* Long email addresses must wrap, never widen the page on a phone. */
.sl-contact .btn { max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; word-break: break-word; text-align: left; height: auto; }
.sl-card, .sl-card > *, .apply-card { min-width: 0; max-width: 100%; }
.sl-ask { margin: .5rem 0 0; }
.sl-form h3 { margin: 0 0 .6rem; font-size: 1rem; }
.sl-form h4 { margin: .6rem 0 .4rem; font-size: .92rem; }
.sl-alts summary { cursor: pointer; font-size: .9rem; color: var(--brand-accent); margin: .2rem 0 .5rem; }
.sl-outcomes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .4rem; margin-bottom: .7rem; }
.sl-outcomes label { display: flex; align-items: center; gap: .45rem; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; cursor: pointer; min-height: 44px; }
.sl-outcomes label:has(input:checked) { border-color: var(--brand-accent); background: color-mix(in srgb, var(--brand-accent) 8%, var(--surface)); font-weight: 600; }
.sl-next { border-top: 1px solid var(--line); margin-top: .4rem; }
.sl-bar { display: none; }
@media (max-width: 640px) {
  .sl-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; gap: .5rem; align-items: center; padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(20,33,61,.08); }
  .sl-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sl-bar .btn { min-height: 42px; display: inline-flex; align-items: center; }
  .apply-main { padding-bottom: 6rem; }
  .sl-stats b { font-size: 1.25rem; }
}
dialog.sl-viewer { width: min(980px, 100vw); max-width: 100vw; height: min(92vh, 1100px); max-height: 100dvh; padding: 0; border: 0; border-radius: 14px; display: none; flex-direction: column; background: var(--surface); color: var(--text); }
dialog.sl-viewer[open] { display: flex; }
dialog.sl-viewer::backdrop { background: rgba(15,22,38,.6); }
.sv-head { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.sv-title h2 { margin: 0; font-size: 1.15rem; }
.sv-title p { margin: .1rem 0 0; }
.sv-tools { gap: .4rem; align-items: center; }
.sv-tabs { display: flex; gap: .3rem; padding: .5rem 1rem 0; border-bottom: 1px solid var(--line); }
.sv-tabs button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; min-height: 40px; font-weight: 600; color: var(--muted); }
.sv-tabs button[aria-selected="true"] { color: var(--brand-accent); border-bottom-color: var(--brand-accent); }
.sv-body { flex: 1; overflow: auto; padding: 1rem; min-height: 0; display: flex; flex-direction: column; }
.sv-frame { flex: 1; width: 100%; min-height: 60vh; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.sv-img { max-width: 100%; height: auto; align-self: center; border: 1px solid var(--line); border-radius: 8px; }
.sv-text { white-space: pre-wrap; line-height: 1.6; font-size: .95rem; max-width: 72ch; overflow-wrap: anywhere; }
.sv-hint { margin: .5rem 0 0; }
.sv-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem 1.2rem; margin: 0 0 1rem; }
.sv-dl dt { color: var(--muted); font-size: .76rem; font-weight: 650; text-transform: uppercase; letter-spacing: .03em; }
.sv-dl dd { margin: .1rem 0 0; }
.sv-foot { padding: .7rem 1rem; border-top: 1px solid var(--line); gap: .5rem; justify-content: flex-end; }
.sv-foot:empty { display: none; }
@media (max-width: 640px) { dialog.sl-viewer { width: 100vw; height: 100dvh; border-radius: 0; } .sv-head { padding: .6rem .8rem; } .sv-foot button { flex: 1 1 auto; } }

/* ── Trials, buying and payments ── */
.pre-line { white-space: pre-line; }
.buy-total { font-weight: 650; margin: 0 0 .8rem; padding: .6rem .8rem; border-radius: 10px; background: var(--teal-soft); color: var(--teal-strong); }
:root[data-theme="dark"] .buy-total { color: var(--text); }
tr.hot-row td { background: color-mix(in srgb, var(--warn-bg) 55%, transparent); }
.signup-code input { font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; }
.usage { margin-top: .8rem; }
.usage .meter { margin-top: .35rem; }
.meter.near > span { background: var(--warn); }
.meter.full > span { background: var(--bad); }
.warn-text { color: var(--warn); font-weight: 650; }
.buy-total .small { font-weight: 500; }
.backup-box { margin-bottom: 1rem; } .backup-box .row { align-items: center; gap: .8rem; }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); } .legal-links { margin-top: .8rem; }

/* Password-protected shortlist */
.sl-lock { max-width: 460px; margin-inline: auto; }
.sl-lock-form { margin-top: 1rem; }
.sl-pw-row { display: flex; gap: .5rem; align-items: center; }
.sl-pw-row input { flex: 1; min-width: 0; }
.sl-eye { white-space: nowrap; }
.sl-lock .btn.pub-cta { width: 100%; justify-content: center; }
.sharelink .lock-note { margin-top: .5rem; }
.file-pick { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; }
.file-pick input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.gcheck { margin-top: .6rem; } .gcheck .callout { margin: .6rem 0 .5rem; } .gcheck dd { overflow-wrap: anywhere; }
.gpaste { margin-top: .6rem; } .gpaste summary { cursor: pointer; font-weight: 600; font-size: .9rem; } .gsave { display: grid; gap: .55rem; max-width: 560px; margin-top: .5rem; } .gsave label { display: grid; gap: .25rem; font-size: .85rem; } .gsave button { justify-self: start; }
.menu-pop button.danger-text { color: var(--bad); }

/* ── UI detailing (update 26, docs/UI-DETAILING-SPEC.md) ─────────────────────────────────────── */
/* Inter, self-hosted (SIL OFL, public/fonts/Inter-OFL.txt): the same type on every computer. ₹ is in latin-ext. */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("/fonts/inter-latin-wght-normal.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-display: swap; font-weight: 100 900; src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"), url("/fonts/inter-latin-ext-wght-normal.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; }
:root { --gold: #D4982C; --gold-soft: #FBF1DE; --ease: cubic-bezier(.2, .7, .3, 1);
  --shadow-1: 0 1px 0 rgba(20,33,61,.04); --shadow-2: 0 1px 2px rgba(20,33,61,.05), 0 6px 20px rgba(20,33,61,.05); --shadow-3: 0 2px 6px rgba(20,33,61,.08), 0 16px 40px rgba(20,33,61,.14); }
:root[data-theme="dark"] { --gold: #E9B95C; --gold-soft: #3A2C10; --shadow-3: 0 2px 6px rgba(0,0,0,.35), 0 16px 40px rgba(0,0,0,.45); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --gold: #E9B95C; --gold-soft: #3A2C10; --shadow-3: 0 2px 6px rgba(0,0,0,.35), 0 16px 40px rgba(0,0,0,.45); } }
/* cv05 / cv08: an "l" with a tail and an "I" with serifs, so IDs, codes and secrets never mix up l, I and 1. */
body { font-feature-settings: "cv05" 1, "cv08" 1, "calt" 1; text-rendering: optimizeLegibility; }
::selection { background: color-mix(in srgb, var(--teal) 22%, transparent); }
.page-head h1, main > h1 { font-size: 1.62rem; font-weight: 700; letter-spacing: -.02em; }
table, .stat b, .num, .pc-facts, .kv dd, .money { font-variant-numeric: tabular-nums; }

/* Focus you can see, with a soft halo. */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--teal) 18%, transparent); }

/* Buttons press down a little; primary has a fine top highlight. */
button, .btn { transition: background-color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease), transform .08s var(--ease); }
button:active:not(:disabled), .btn:active { transform: translateY(1px) scale(.985); }
button.primary, .btn.primary { box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(10,82,82,.25); }

/* Faces: 8 calm tints, white initials (AA contrast), the same tint for the same person everywhere. */
.avatar.tone { background: var(--av, #0E6B6B); color: #fff; letter-spacing: .02em; flex: 0 0 auto; }
.avatar.tone[data-tone="0"] { --av: #0E6B6B; } .avatar.tone[data-tone="1"] { --av: #2F5D8C; } .avatar.tone[data-tone="2"] { --av: #7A4E9C; } .avatar.tone[data-tone="3"] { --av: #A8521F; }
.avatar.tone[data-tone="4"] { --av: #2E7D4F; } .avatar.tone[data-tone="5"] { --av: #9C3D5C; } .avatar.tone[data-tone="6"] { --av: #475569; } .avatar.tone[data-tone="7"] { --av: #8A6A12; }
.avatar.xs { width: 24px; height: 24px; font-size: .62rem; } .avatar.sm { width: 30px; height: 30px; font-size: .72rem; }
.avatar.xl { width: 52px; height: 52px; font-size: 1.05rem; border-radius: 16px; box-shadow: 0 0 0 4px var(--surface), 0 4px 14px rgba(20,33,61,.12); }

/* Lists: a face and a bold name, skills as chips, rows that scan in one line. */
th, td { vertical-align: middle; }
td { padding-top: .68rem; padding-bottom: .68rem; }
tbody tr { transition: background-color .12s var(--ease); }
td a { color: var(--text); font-weight: 600; text-decoration: none; }
td a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
td a.person { display: inline-flex; align-items: center; gap: .6rem; min-width: 11rem; }
td a.person > span:last-child { line-height: 1.25; }
.skills-td { min-width: 12rem; }
.skill-chips { display: inline-flex; flex-wrap: wrap; gap: .25rem; }
.chip.skill { background: var(--teal-soft); color: var(--teal-strong); border-color: transparent; font-weight: 550; }
.chip.skill.more { background: var(--surface-2); color: var(--muted); }
/* A wide table shows an edge shadow where more columns are hidden. */
.table-wrap { background: linear-gradient(to right, var(--surface) 30%, transparent) left / 40px 100% no-repeat local, linear-gradient(to left, var(--surface) 30%, transparent) right / 40px 100% no-repeat local,
  radial-gradient(farthest-side at 0 50%, rgba(20,33,61,.14), transparent) left / 12px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(20,33,61,.14), transparent) right / 12px 100% no-repeat scroll, var(--surface); }

/* Pipeline cards: a face, the heat on the left edge, a gentle lift on hover. */
.pcard { transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s var(--ease); }
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.pcard.heat-hot:not(.overdue) { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--bad) 55%, transparent); }
.pcard.heat-warm:not(.overdue) { box-shadow: inset 3px 0 0 var(--gold); }
.pcard.heat-hot:not(.overdue):hover { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--bad) 55%, transparent), var(--shadow-3); }
.pcard.heat-warm:not(.overdue):hover { box-shadow: inset 3px 0 0 var(--gold), var(--shadow-3); }
.pc-top { align-items: center; gap: .45rem; }
.pc-top > b { flex: 1 1 auto; min-width: 0; }

/* Record header: a person's face in place of the generic icon. */
.rec-title > .avatar.xl { margin-top: .1rem; }

/* Clickable cards lift a little. */
a.card:hover, .card.clickable:hover, .stat:hover { box-shadow: var(--shadow-3); }

/* Raised surfaces share one shadow. */
.menu-pop, dialog, .palette, .drawer { box-shadow: var(--shadow-3); }
.toast { box-shadow: var(--shadow-3); animation: toast-in .22s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* Loading: shimmer placeholders instead of a blank page. */
.skel-page { display: grid; gap: 1rem; padding: .25rem 0; }
.skel { border-radius: 10px; background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface) 45%, var(--surface-2) 90%); background-size: 300% 100%; animation: skel 1.3s ease-in-out infinite; border: 1px solid var(--line); }
.skel-title { height: 30px; width: min(320px, 70%); } .skel-line { height: 14px; width: min(520px, 90%); }
.skel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; } .skel-card { height: 96px; } .skel-table { height: 260px; }
@keyframes skel { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* Quiet scrollbars. */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }

@media (prefers-reduced-motion: reduce) { .skel { animation: none; } .pcard:hover { transform: none; } button:active:not(:disabled), .btn:active { transform: none; } .toast { animation: none; } }
/* On a person's page the header already shows the face and name; the contact bar keeps only the ways to reach them. */
.rec-head + .contact-bar > .avatar, .rec-head + .contact-bar .cb-who > b { display: none; }
@media (max-width: 600px) { .task .go { white-space: normal; max-width: 100%; text-align: left; } }

/* ── Update 27: job link card and the questions-for-applicants builder ─────── */
.joblink .jl-url { display: flex; gap: .5rem; margin: .4rem 0 .6rem; }
.joblink .jl-url input { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88rem; background: var(--surface-2); }
.joblink .jl-url button.copied { background: var(--ok); border-color: var(--ok); }
.joblink .jl-actions { flex-wrap: wrap; gap: .45rem; }
.joblink .btn.wa { color: #128C4B; border-color: color-mix(in srgb, #25D366 45%, var(--line)); }
.chip.live-dot::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: .35rem; vertical-align: 1px; animation: jl-pulse 1.8s ease-in-out infinite; }
@keyframes jl-pulse { 50% { opacity: .35; } }
.jl-qs { margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
.jl-qs-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.jl-qs-head h3 { margin: 0; font-size: 1rem; display: inline-flex; align-items: center; gap: .45rem; }
.jl-qlist { margin: 0; padding: 0; list-style: none; counter-reset: q; display: grid; gap: .35rem; }
.jl-qlist li { counter-increment: q; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; padding: .55rem .7rem .55rem 2.4rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); position: relative; }
.jl-qlist li::before { content: counter(q); position: absolute; left: .7rem; top: .6rem; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); font-size: .76rem; font-weight: 750; color: var(--muted); }
.jl-qt { flex: 1 1 260px; font-weight: 600; }
.jl-qmeta { display: inline-flex; flex-wrap: wrap; gap: .3rem; }

dialog.qb-dialog { width: min(1120px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); }
.qb { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.qb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem .8rem; border-bottom: 1px solid var(--line); }
.qb-head h2 { margin: 0 0 .15rem; }
.qb-head p { margin: 0; }
.qb-tabs { display: none; }
.qb-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0; overflow: hidden; flex: 1; min-height: 0; }
.qb-edit { overflow: auto; padding: 1rem 1.25rem 1.25rem; min-height: 0; }
.qb-edit-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .7rem; }
.qb-count { font-weight: 700; font-size: .85rem; color: var(--muted); }
.qb-list { display: grid; gap: .65rem; }
.qb-q { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: .75rem .8rem .7rem; box-shadow: 0 1px 2px rgba(20,33,61,.04); transition: border-color .12s, box-shadow .12s, opacity .12s; }
.qb-q:focus-within { border-color: color-mix(in srgb, var(--teal) 55%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 14%, transparent); }
.qb-q.invalid { border-color: var(--bad); }
.qb-q.dragging { opacity: .45; }
.qb-q.drop { box-shadow: 0 -3px 0 var(--teal); }
.qb-q-top { display: flex; align-items: flex-start; gap: .5rem; }
.qb-q-top .qb-grip, .qb-q-top .qb-n { margin-top: .55rem; }
.qb-tools { display: inline-flex; gap: .3rem; margin-left: auto; }
.qb-grip { cursor: grab; color: var(--line-strong); font-weight: 800; letter-spacing: -2px; padding: .2rem .1rem; user-select: none; }
.qb-grip:active { cursor: grabbing; }
.qb-n { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--teal-soft); color: var(--teal-strong); font-weight: 800; font-size: .82rem; }
.qb-text { flex: 1; min-width: 0; font-size: 1rem; font-weight: 600; min-height: 42px; border-color: transparent; background: var(--surface-2); resize: none; overflow: hidden; line-height: 1.45; padding: .55rem .7rem; }
.qb-text:hover { border-color: var(--line-strong); }
.qb-text:focus { background: var(--surface); border-color: var(--teal); outline: none; }
.qb-q-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .55rem; padding-left: 2.1rem; }
.qb-type { width: auto; min-width: 150px; font-weight: 600; }
.qb-switch { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .9rem; cursor: pointer; user-select: none; }
.qb-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qb-switch-ui { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--line-strong); transition: background-color .15s; }
.qb-switch-ui::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.qb-switch input:checked + .qb-switch-ui { background: var(--teal); }
.qb-switch input:checked + .qb-switch-ui::after { transform: translateX(16px); }
.qb-switch input:focus-visible + .qb-switch-ui { outline: 3px solid var(--teal); outline-offset: 2px; }
.qb-tool { width: 34px; height: 34px; min-height: 34px; padding: 0; display: inline-grid; place-items: center; border-radius: 9px; color: var(--muted); }
.qb-tool.up .ic { transform: rotate(180deg); }
.qb-tool.off { opacity: .35; pointer-events: none; }
.qb-tool.danger:hover { color: var(--bad); border-color: var(--bad); }
.qb-pref { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .55rem; padding-left: 2.1rem; }
.qb-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.qb-seg button { border: 0; border-radius: 0; min-height: 32px; padding: 0 .75rem; font-size: .86rem; background: var(--surface); }
.qb-seg button + button { border-left: 1px solid var(--line-strong); }
.qb-seg button[aria-pressed="true"] { background: var(--teal); color: #fff; font-weight: 650; }
.qb-min { width: 110px; min-height: 34px; }
.qb-opts { display: grid; gap: .4rem; margin-top: .6rem; padding-left: 2.1rem; }
.qb-opt { display: flex; align-items: center; gap: .5rem; }
.qb-opt input[type=text] { flex: 1; min-width: 0; min-height: 36px; }
.qb-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); }
.qb-prefer { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.qb-prefer input { width: 16px; height: 16px; min-height: 0; accent-color: var(--teal); }
.qb-addopt { display: inline-flex; align-items: center; gap: .3rem; justify-self: start; font-size: .88rem; text-decoration: none; font-weight: 600; }
.qb-err { margin: .5rem 0 0 2.1rem; color: var(--bad); font-size: .84rem; font-weight: 600; }
.qb-empty { display: grid; justify-items: center; gap: .3rem; padding: 1.6rem 1rem; border: 1px dashed var(--line-strong); border-radius: 14px; text-align: center; color: var(--muted); }
.qb-undo { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .6rem; padding: .5rem .8rem; border-radius: 10px; background: var(--navy); color: #fff; font-size: .9rem; }
.qb-undo[hidden] { display: none; }
.qb-undo button.link { color: #9FE3DA; font-weight: 700; }
.qb-add { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .9rem; }
.qb-addbtn { min-height: 34px; padding: 0 .7rem; font-size: .86rem; font-weight: 600; border-style: dashed; }
.qb-addbtn:hover { border-style: solid; background: var(--teal-soft); }
.qb-sub { display: flex; align-items: center; gap: .3rem; margin: 0 0 .5rem; font-size: .76rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.qb-sugs { margin-top: 1rem; }
.qb-sug-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.qb-sug { min-height: 34px; text-align: left; border-radius: 999px; padding: .3rem .75rem; font-size: .86rem; background: var(--surface-2); max-width: 100%; }
.qb-sug span { overflow: hidden; text-overflow: ellipsis; }
.qb-sug em { font-style: normal; font-size: .72rem; color: var(--muted); border-left: 1px solid var(--line-strong); padding-left: .4rem; margin-left: .1rem; white-space: nowrap; }
.qb-sug:hover { background: var(--teal-soft); border-color: var(--teal); }
.qb-preview { --brand-accent: var(--teal); --brand-on: #fff; overflow: auto; background: var(--surface-2); border-left: 1px solid var(--line); padding: 1rem 1.1rem 1.25rem; min-height: 0; }
.qb-phone { border: 8px solid var(--navy); border-radius: 26px; background: var(--surface); overflow: hidden; box-shadow: 0 18px 40px rgba(20,33,61,.16); }
.qb-phone-head { display: grid; gap: .1rem; padding: .9rem 1rem; background: var(--navy); color: #fff; }
.qb-phone-head span { font-size: .8rem; opacity: .8; }
[data-theme="dark"] .qb-phone-head { color: var(--bg); }
.qb-phone-body { padding: .9rem; display: grid; gap: .9rem; }
.qb-phone-sec { margin: 0; font-weight: 750; font-size: .9rem; }
.qb-prev-list { display: grid; gap: 1rem; }
.qb-prev-list .q-choices:not(.yn) { grid-template-columns: 1fr; }
.qb-prev-empty { margin: 0; }
.qb-foot { display: flex; align-items: center; gap: .6rem; padding: .8rem 1.25rem; border-top: 1px solid var(--line); background: var(--surface); }
.qb-note { margin: 0; }
.qb > [role=alert]:not(:empty) { padding: 0 1.25rem; }
@media (max-width: 900px) {
  dialog.qb-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .qb { height: 100dvh; max-height: 100dvh; }
  .qb-tabs { display: flex; gap: .3rem; padding: .5rem 1rem 0; border-bottom: 1px solid var(--line); }
  .qb-tabs button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; font-weight: 650; color: var(--muted); }
  .qb-tabs button[aria-selected="true"] { color: var(--teal-strong); border-bottom-color: var(--teal); }
  .qb-body { grid-template-columns: 1fr; }
  .qb-body[data-tab="edit"] .qb-preview, .qb-body[data-tab="preview"] .qb-edit { display: none; }
  .qb-preview { border-left: 0; }
  .qb-q-bar, .qb-pref, .qb-opts { padding-left: 0; }
  .qb-grip { display: none; }
  .qb-type { flex: 1 1 140px; }
  .qb-err { margin-left: 0; }
  .qb-foot { flex-wrap: wrap; padding-bottom: max(.8rem, env(safe-area-inset-bottom)); }
  .qb-note { flex-basis: 100%; }
  .qb-foot .spacer { display: none; }
  .qb-foot button { flex: 1; justify-content: center; }
}

/* Brand buttons on public pages keep the agency's own text colour in dark mode (the teal app buttons use dark text). */
:root[data-theme="dark"] button.primary.pub-submit, :root[data-theme="dark"] .sl-card .sl-buttons .primary, :root[data-theme="dark"] .sl-form button.primary, :root[data-theme="dark"] .sv-foot .primary { color: var(--brand-on); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) button.primary.pub-submit, :root:not([data-theme="light"]) .sl-card .sl-buttons .primary, :root:not([data-theme="light"]) .sl-form button.primary, :root:not([data-theme="light"]) .sv-foot .primary { color: var(--brand-on); } }

/* ── Update 27.1: how the agency's links look (tab icon, link preview, home screen) ── */
.kit-card { margin-top: 1rem; }
.kit-card .row h2 { margin: 0; }
.kit-body { display: grid; gap: 1.2rem; margin: .6rem 0 .8rem; align-items: start; }
@media (min-width: 1000px) { .kit-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto; } }
.kit-skel { display: grid; gap: .6rem; }
.kit-skel span { display: block; height: 70px; border-radius: 12px; background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: kit-sh 1.2s linear infinite; }
.kit-skel span:nth-child(2) { height: 180px; }
@keyframes kit-sh { to { background-position: -200% 0; } }
.kit-fig { margin: 0; display: grid; gap: .35rem; }
.kit-fig figcaption { font-size: .78rem; font-weight: 650; color: var(--muted); letter-spacing: .02em; }
.kit-browser { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #DEE1E6; }
.kit-tabs { display: flex; align-items: flex-end; gap: 2px; padding: 8px 10px 0; }
.kit-tab { display: inline-flex; align-items: center; gap: 8px; max-width: 70%; min-width: 0; padding: 8px 12px; border-radius: 10px 10px 0 0; background: #fff; color: #202124; font-size: .82rem; }
.kit-tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kit-tab i { font-style: normal; color: #5f6368; margin-left: 4px; }
.kit-tab.off { background: transparent; color: #5f6368; }
.kit-tab img { flex: none; border-radius: 3px; }
.kit-url { display: flex; align-items: center; gap: 6px; padding: 7px 12px 9px; background: #fff; color: #5f6368; font-size: .8rem; border-top: 1px solid #eceef1; }
.kit-wa { padding: 14px; border-radius: 12px; background: #E9E2D8; background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1.2px); background-size: 14px 14px; }
.kit-bubble { max-width: 340px; margin-left: auto; border-radius: 10px 2px 10px 10px; background: #D9FDD3; padding: 4px; box-shadow: 0 1px 1px rgba(0,0,0,.12); color: #111b21; }
.kit-card-img { display: block; width: 100%; height: auto; border-radius: 7px 7px 0 0; }
.kit-meta { display: grid; gap: 2px; padding: 8px 10px; background: rgba(0,0,0,.045); border-radius: 0 0 7px 7px; font-size: .8rem; }
.kit-meta b { font-size: .86rem; }
.kit-meta span { color: #3b4a54; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kit-meta em { font-style: normal; color: #667781; font-size: .74rem; }
.kit-msg { margin: 6px 8px 2px; font-size: .82rem; color: #027eb5; word-break: break-all; display: flex; justify-content: space-between; gap: 8px; }
.kit-msg small { color: #667781; white-space: nowrap; }
.kit-phone { display: inline-grid; justify-items: center; gap: 6px; padding: 16px 26px; border-radius: 16px; background: linear-gradient(160deg, #2b3a55, #121a2b); color: #fff; font-size: .74rem; justify-self: start; }
.kit-phone img { border-radius: 14px; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.kit-phone span { max-width: 90px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kit-foot { align-items: center; flex-wrap: wrap; gap: .6rem; }
.kit-foot p { margin: 0; flex: 1 1 220px; }
@media (prefers-reduced-motion: reduce) { .kit-skel span { animation: none; } }

/* ── Update 28: online payment card on Plan & users ── */
.pay-card { display: grid; gap: .8rem; padding: 1.1rem 1.2rem; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--teal) 35%, var(--line)); background: linear-gradient(135deg, var(--teal-soft), var(--surface) 70%); }
.pay-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; align-items: flex-start; }
.pay-eyebrow { margin: 0; font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-strong); }
.pay-amount { margin: .1rem 0; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); line-height: 1.1; }
.pay-amount span { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pay-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 650; color: var(--muted); padding: .3rem .65rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.btn.pay-btn { justify-self: start; min-height: 48px; padding: 0 1.3rem; font-size: 1.02rem; border-radius: 12px; gap: .5rem; box-shadow: 0 10px 24px color-mix(in srgb, var(--teal) 30%, transparent); }
.pay-wait { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: .88rem; color: var(--muted); }
.pay-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); animation: jl-pulse 1.6s ease-in-out infinite; }
.pay-console .row.nowrap input { flex: 1; min-width: 0; }
@media (prefers-reduced-motion: reduce) { .pay-dot { animation: none; } }

/* ── Update 28: Dashboard (hiring to money) ── */
.ov-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.ov-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.ov-seg button { border: 0; background: transparent; min-height: 34px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.ov-seg button[aria-pressed="true"] { background: var(--surface); color: var(--navy); box-shadow: 0 1px 3px rgba(20,33,61,.12); }
.ov-tools select { width: auto; }
.ov-range { margin: 0 0 .6rem; }
.ov-skel { display: grid; gap: .8rem; }
.ov-skel span { display: block; height: 110px; border-radius: 14px; background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: kit-sh 1.2s linear infinite; }
.ov-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.ov-kpi { display: grid; gap: .2rem; padding: .9rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.ov-kpi.hi { border-color: color-mix(in srgb, var(--teal) 40%, var(--line)); background: linear-gradient(160deg, var(--teal-soft), var(--surface) 65%); }
.ov-kpi-l { font-size: .76rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.ov-kpi-v { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.ov-kpi-f { display: flex; align-items: center; justify-content: space-between; gap: .4rem; min-height: 32px; }
.ov-delta { font-size: .78rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ov-delta.up { color: var(--ok); } .ov-delta.down { color: var(--bad); }
.ov-spark { flex: none; max-width: 60%; height: auto; }
.ov-spark-line { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ov-spark-fill { fill: color-mix(in srgb, var(--teal) 14%, transparent); stroke: none; }
.ov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.ov-grid > .card { margin-bottom: 0; }
.ov-wide { grid-column: 1 / -1; }
.ov-card h2 { margin-bottom: .3rem; }
.ov-funnel { display: grid; gap: .45rem; margin-top: .6rem; }
.ov-frow { display: grid; grid-template-columns: 120px minmax(0, 1fr) 44px 44px; align-items: center; gap: .6rem; font-size: .9rem; }
.ov-ftrack { height: 14px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ov-fbar { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), color-mix(in srgb, var(--teal) 60%, var(--navy))); }
.ov-fn { text-align: right; font-variant-numeric: tabular-nums; }
.ov-fc { color: var(--muted); font-size: .8rem; text-align: right; }
.ov-chart { width: 100%; height: auto; margin-top: .4rem; }
.ov-chart .ov-gl { stroke: var(--line); stroke-width: 1; }
.ov-axis { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.ov-chart .ov-b { fill: color-mix(in srgb, var(--teal) 30%, var(--surface-2)); }
.ov-chart .ov-b-hi { fill: var(--teal); }
.ov-legend { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--muted); }
.ov-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: .5rem; }
.ov-legend i.a { background: color-mix(in srgb, var(--teal) 30%, var(--surface-2)); } .ov-legend i.b { background: var(--teal); }
.ov-src { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .45rem; }
.ov-src li { display: grid; grid-template-columns: minmax(90px, 140px) minmax(0, 1fr) 40px 40px; align-items: center; gap: .6rem; font-size: .9rem; }
.ov-src-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: capitalize; }
.ov-src-t { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ov-src-t span { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.ov-src b { text-align: right; }
.ov-speed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-top: .6rem; }
.ov-speed div { display: grid; gap: .15rem; padding: .7rem .8rem; border-radius: 12px; background: var(--surface-2); }
.ov-speed b { font-size: 1.3rem; color: var(--navy); }
.ov-flag { color: var(--warn); }
.ov-hi { color: var(--teal-strong); }
.ov-money { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7rem; margin-top: .6rem; }
.ov-mc { display: grid; gap: .15rem; padding: .8rem .9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.ov-mc b { font-size: 1.25rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.ov-prefs { margin-top: 1rem; }
.ov-prefs summary { cursor: pointer; font-weight: 650; display: inline-flex; align-items: center; gap: .3rem; }
@media (max-width: 1100px) { .ov-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ov-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ov-grid { grid-template-columns: 1fr; } .ov-frow { grid-template-columns: 96px minmax(0, 1fr) 36px 40px; } .ov-speed { grid-template-columns: 1fr; } .ov-kpi-v { font-size: 1.6rem; } }

/* Update 29: standard details a job link asks (Required / Optional / Don't ask). */
.qb-fields { border: 1px solid var(--line); border-radius: 14px; padding: .85rem .95rem .9rem; margin: 0 0 1rem; background: var(--surface-2, var(--surface)); }
.qb-fields-why { margin: -.2rem 0 .65rem; }
.qb-frows { display: grid; gap: .45rem; }
.qb-frow { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.qb-frow .qb-flabel { font-weight: 600; font-size: .92rem; }
.qb-frow.off .qb-flabel { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.qb-hint { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin: 0 0 .7rem; padding: .5rem .65rem; border-radius: 10px; font-size: .86rem; background: color-mix(in srgb, var(--accent, #0E6B6B) 8%, transparent); }
.qb-qs-h { margin-top: .25rem; }
.qb-prev-details { margin-bottom: .75rem; }
.qb-prev-fields { list-style: none; margin: .35rem 0 0; padding: 0; display: grid; gap: .3rem; }
.qb-prev-fields li { display: flex; justify-content: space-between; gap: .5rem; padding: .4rem .55rem; border: 1px solid var(--line); border-radius: 8px; font-size: .8rem; background: var(--surface); }
.qb-prev-fields em { font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent, #0E6B6B); }
.qb-prev-fields em.opt { color: var(--muted); }
@media (max-width: 560px) { .qb-frow { align-items: stretch; flex-direction: column; } .qb-frow .qb-seg { width: 100%; } .qb-frow .qb-seg button { flex: 1; } }
.jl-details { margin-top: .6rem; line-height: 1.6; }
.jl-details-edit { margin-left: .5rem; }

/* Update 29: Platform console → Customers and Alerts & contact. */
.cu-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7rem; margin: .4rem 0 1rem; }
.cu-kpi { display: grid; gap: .15rem; text-align: left; padding: .8rem .9rem; margin: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font: inherit; color: inherit; box-shadow: none; }
.cu-kpi.click { cursor: pointer; }
.cu-kpi.click:hover { border-color: var(--teal); }
.cu-kpi-l { font-size: .78rem; font-weight: 650; color: var(--muted); }
.cu-kpi-v { font-size: 1.65rem; line-height: 1.15; letter-spacing: -.02em; }
.cu-kpi-s { font-size: .78rem; color: var(--muted); }
.cu-chart-wrap { border: 1px solid var(--line); border-radius: 14px; padding: .8rem .9rem .5rem; margin-bottom: 1rem; }
.cu-chart-wrap h3 { margin: 0; font-size: .95rem; }
.cu-chart { width: 100%; height: auto; display: block; margin-top: .4rem; }
.cu-chart .cu-bar, .cu-legend i.cu-bar { fill: color-mix(in srgb, var(--teal) 28%, transparent); background: color-mix(in srgb, var(--teal) 28%, transparent); }
.cu-chart .cu-bar-paid, .cu-legend i.cu-bar-paid { fill: var(--teal); background: var(--teal); }
.cu-bar-n { font-size: 12px; font-weight: 700; fill: var(--text); }
.cu-bar-x { font-size: 11px; fill: var(--muted); }
.cu-legend { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--muted); }
.cu-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: .5rem; }
.cu-tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: .7rem; }
.cu-tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: .5rem .8rem; font-weight: 650; color: var(--muted); box-shadow: none; }
.cu-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--teal); }
.cu-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.cu-chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 34px; padding: 0 .75rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: .84rem; font-weight: 600; box-shadow: none; }
.cu-chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.cu-chip-n { font-size: .74rem; padding: .05rem .4rem; border-radius: 999px; background: color-mix(in srgb, currentColor 12%, transparent); }
.cu-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.cu-search { flex: 1 1 260px; min-width: 0; }
.cu-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .4rem; background: var(--muted); vertical-align: middle; }
.cu-dot.active { background: var(--ok, #1a7f4b); } .cu-dot.quiet { background: var(--warn, #b26b00); } .cu-dot.inactive, .cu-dot.never { background: var(--bad, #b42318); }
.cu-defs { margin-top: .8rem; } .cu-defs ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.al .al-checks { display: grid; gap: .4rem; align-content: end; }
.al .check { display: flex; align-items: center; gap: .45rem; font-weight: 500; }
@media (max-width: 640px) { .cu-kpis { grid-template-columns: 1fr 1fr; } .cu-kpi-v { font-size: 1.35rem; } }

/* Update 29: access stops when dues are unpaid — the popup that cannot be closed. */
.lockdlg { border: 0; border-radius: 20px; padding: 0; max-width: 480px; width: calc(100% - 32px); background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.lockdlg::backdrop { background: rgba(10, 18, 36, .72); backdrop-filter: blur(4px); }
.lock-in { padding: 1.6rem 1.5rem 1.3rem; text-align: center; }
.lock-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--bad, #b42318) 12%, transparent); color: var(--bad, #b42318); margin-bottom: .6rem; }
.lockdlg h2 { margin: 0 0 .5rem; font-size: 1.35rem; }
.lockdlg #lock-text { margin: 0 0 .6rem; line-height: 1.6; }
.lock-note { margin: .2rem 0 .6rem; font-weight: 650; }
.lock-safe { display: flex; gap: .35rem; justify-content: center; align-items: flex-start; margin: .2rem 0 1rem; text-align: left; }
.lock-actions { display: grid; gap: .5rem; }
.lock-actions .btn { justify-content: center; min-height: 44px; display: inline-flex; align-items: center; gap: .45rem; }
.lock-foot { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1rem; font-size: .88rem; }
.lock-foot .link { display: inline-flex; align-items: center; gap: .3rem; }
.cu-empty { margin: 1.2rem 0 .8rem; text-align: center; }

/* ── Update 30: résumé check ─────────────────────────────────────────── */
.rc .row { flex-wrap: wrap; gap: .5rem; }
.rc-list { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .6rem; }
.rc-item { border: 1px solid var(--line); border-left: 4px solid var(--line-strong, var(--line)); border-radius: 10px; padding: .6rem .8rem; background: var(--surface); }
.rc-item.check { border-left-color: var(--warn); }
.rc-item.note { border-left-color: var(--muted, #8a94a6); }
.rc-item.done { border-left-color: var(--line-strong); background: var(--surface-2); }
.rc-item p { margin: .25rem 0 0; overflow-wrap: anywhere; }
.rc-t { display: flex; align-items: center; gap: .4rem; }
.rc-ask { color: var(--text); }
.rc-foot { margin: .75rem 0 0; }
.rc-chip { white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: .2rem; }

/* ── Update 30: share kit ────────────────────────────────────────────── */
.sk { display: grid; gap: .75rem; }
.sk-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1rem; align-items: start; }
.sk-cards { display: grid; gap: .75rem; min-width: 0; }
.sk-card { border: 1px solid var(--line); border-radius: 12px; padding: .75rem .9rem; background: var(--surface); display: grid; gap: .45rem; min-width: 0; }
.sk-card h3 { margin: 0; font-size: 1rem; }
.sk-card textarea { font-size: .88rem; resize: vertical; }
.sk-btns { flex-wrap: wrap; gap: .5rem; }
.sk-link { overflow-wrap: anywhere; }
.sk-poster { position: sticky; top: 0; display: grid; gap: .6rem; border: 1px solid var(--line); border-radius: 12px; padding: .75rem; background: var(--surface-2); }
.sk-poster h3 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: .3rem; }
.sk-frame { display: flex; justify-content: center; }
.sk-canvas { width: 100%; max-width: 300px; height: auto; border-radius: 10px; box-shadow: 0 4px 18px rgba(0,0,0,.18); }
.sk-canvas.tall { max-width: 190px; }
.jl-sources { margin: .25rem 0 0; }
@media (max-width: 860px) { .sk-body { grid-template-columns: 1fr; } .sk-poster { position: static; order: -1; } }

/* ── Update 30: WhatsApp queue, find candidates ──────────────────────── */
.wq { display: grid; gap: .75rem; }
.wq-tpl textarea { margin: .5rem 0; }
.wq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.wq-row { border: 1px solid var(--line); border-radius: 12px; padding: .65rem .8rem; background: var(--surface); display: grid; gap: .35rem; }
.wq-row.sent { border-color: var(--ok); background: var(--ok-bg); }
.wq-row.skipped { opacity: .55; }
.wq-who { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.wq-text { white-space: pre-line; margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.wq-acts { flex-wrap: wrap; gap: .5rem; }
.wq-skip { margin: .5rem 0 0; padding-left: 1.1rem; }
.ja-bar { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; margin: -.25rem 0 0; color: var(--muted); }
.ja-bar.stopped { color: var(--warn); }
.find-form { display: grid; gap: .5rem; }
.find-row { display: flex; gap: .5rem; }
.find-row input { font-size: 1.05rem; min-height: 44px; }
.find-opts { flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.find-opts select { width: auto; }
.find-chips, .find-saved { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .6rem; }
.find-chip { display: inline-flex; align-items: center; gap: .25rem; }
.chip-x { border: 0; background: transparent; padding: 0 .15rem; min-height: 0; cursor: pointer; font-size: 1rem; line-height: 1; color: inherit; }
.saved-item { display: inline-flex; align-items: center; }
.new-n { color: var(--ok); }
.find-bar { flex-wrap: wrap; gap: .5rem; align-items: center; margin: .25rem 0 .5rem; }
.find-bar select { width: auto; max-width: 260px; }
.find-why { display: flex; flex-wrap: wrap; gap: .25rem; }
@media (max-width: 640px) { .find-row { flex-direction: column; } .find-bar select { max-width: 100%; width: 100%; } }
