/* The Talent Poll on the DO Suite kit v2 (approved 29 Oct 2026). Loaded after do-ui.css, only when
   Super-admin > Global settings > "New design" is ON (html.do-ui). Turning it off gives the classic look unchanged.
   Rules: ~/.claude/skills/do-suite-design (neutrals + one green accent, ink primary buttons, no gradients, no glow,
   no uppercase labels, weights 400/500/600, status = dot + word). This file maps Talent Poll's existing classes onto
   the kit's tokens so every page moves at once; key pages also use do-* markup directly.
   Kept on purpose (owner, 29 Oct), redone flat: AI-working indicator, score ring fill, pipeline dots, landing field. */

/* ── Old variable names now read the kit's tokens, so inline styles that use var(--x) follow both themes ── */
html.do-ui {
  /* "brand" was the indigo used for fills, borders and headline text; in the kit those are neutral ink.
     Links keep the green accent through the a{} rule below. */
  --ink: var(--do-ink); --brand: var(--do-btn); --brand-dark: var(--do-btn-hover); --accent: var(--do-btn);
  --bg: var(--do-page); --surface: var(--do-surface); --line: var(--do-line); --muted: var(--do-muted);
  --success: var(--do-ok); --danger: var(--do-bad); --warn: var(--do-warn); --radius: var(--do-r-card);
  --track: var(--do-line-2); --brand-tint: var(--do-sunken); --hover: var(--do-sunken); --field: var(--do-surface);
  --panel: var(--do-sunken); --success-tint: var(--do-accent-tint); --danger-tint: var(--do-bad-tint); --warn-tint: var(--do-warn-tint);
  --shadow: none; --shadow-sm: none;
  /* used by tp-ai.js for the flat animations */
  --ai-a: var(--do-accent); --ai-b: var(--do-ink-2);
}

/* ── Type: Geist everywhere, weights 400/500/600, sentence case ── */
html.do-ui body { font-family: var(--do-font); font-size: 16px; line-height: 1.55; color: var(--do-ink); background: var(--do-page); }
html.do-ui body :not(code, pre, kbd, samp, svg, svg *, [style*="monospace"]) { font-family: inherit; }
html.do-ui [style*="Plus Jakarta"], html.do-ui [style*="Inter"], html.do-ui [style*="Arial"] { font-family: var(--do-font) !important; }
html.do-ui code, html.do-ui kbd, html.do-ui pre { font-family: var(--do-mono); font-size: 13.5px; }
html.do-ui b, html.do-ui strong, html.do-ui h1, html.do-ui h2, html.do-ui h3, html.do-ui h4, html.do-ui .display { font-weight: 600; }
html.do-ui [style*="font-weight:700"], html.do-ui [style*="font-weight:800"], html.do-ui [style*="font-weight: 700"], html.do-ui [style*="font-weight: 800"] { font-weight: 600 !important; }
html.do-ui [style*="uppercase"] { text-transform: none !important; letter-spacing: 0 !important; }
html.do-ui [style*="gradient"] { background-image: none !important; }
html.do-ui h1, html.do-ui h2, html.do-ui h3 { color: var(--do-ink); letter-spacing: -.015em; text-wrap: balance; }
html.do-ui h1.page { font-size: 24px; line-height: 1.2; letter-spacing: -.025em; margin-top: 4px; }
html.do-ui .eyebrow { font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--do-muted); }
html.do-ui .lede { color: var(--do-muted); font-size: 15.5px; margin-top: 4px; }
html.do-ui .sectlabel { font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--do-muted); margin: 0 0 8px; }
html.do-ui .hint, html.do-ui .muted { color: var(--do-muted); }
html.do-ui a { color: var(--do-accent); }
html.do-ui .wm { display: none !important; }
html.do-ui .num, html.do-ui td, html.do-ui .stat .n, html.do-ui .ct { font-variant-numeric: tabular-nums; }

/* ── Shell: sunken sidebar, 56px top bar, content to 1280px ── */
html.do-ui body.has-shell { background: var(--do-page); }
html.do-ui .sidebar { width: 232px; background: var(--do-sunken); border-right: 1px solid var(--do-line); padding: 14px 10px; gap: 2px; overflow-y: auto; }
html.do-ui .sb-brand { color: var(--do-ink); font-weight: 600; font-size: 16px; letter-spacing: -.01em; padding: 6px 8px 16px; gap: 10px; }
html.do-ui .sb-brand img { height: 28px; max-width: 140px; border-radius: var(--do-r-input); }
html.do-ui .sb-brand .dot, html.do-ui .brand .dot { width: 28px; height: 28px; border-radius: var(--do-r-input); background: var(--do-surface); border: 1px solid var(--do-line-2); color: var(--do-ink-2); font-size: 13px; font-weight: 600; box-shadow: none; }
html.do-ui .sb-nav { gap: 2px; }
html.do-ui .sb-nav a { height: 34px; padding: 0 10px; border-radius: var(--do-r-input); color: var(--do-ink-2); font-size: 14px; font-weight: 400; gap: 10px; }
html.do-ui .sb-nav a svg { width: 16px; height: 16px; }
@media (hover: hover) { html.do-ui .sb-nav a:hover { background: var(--do-surface); color: var(--do-ink); } }
html.do-ui .sb-nav a.active { background: var(--do-accent-tint); color: var(--do-accent); font-weight: 500; }
html.do-ui .sb-grp { font-size: 13px; color: var(--do-muted); padding: 14px 10px 4px; }
html.do-ui .sb-badge { position: static; transform: none; margin-left: auto; background: none; color: var(--do-muted); font-size: 13px; font-weight: 500; min-width: 0; height: auto; padding: 0; }
html.do-ui .sb-foot { border-top: 1px solid var(--do-line); padding-top: 8px; }
html.do-ui .sb-ai { display: flex; align-items: center; gap: 10px; padding: 8px 10px; font-size: 14px; }
html.do-ui .sb-ai b { display: block; color: var(--do-ink); font-weight: 500; font-size: 14px; line-height: 1.3; }
html.do-ui .sb-ai small { display: block; color: var(--do-muted); font-size: 13px; }
html.do-ui .apptop { height: 56px; padding: 0 24px; gap: 16px; background: var(--do-page); border-bottom: 1px solid var(--do-line); }
html.do-ui .apptitle { display: flex; flex-direction: column; min-width: 0; font-size: 14px; font-weight: 500; color: var(--do-ink); line-height: 1.25; }
html.do-ui .apptitle small { font-size: 13px; font-weight: 400; color: var(--do-muted); }
html.do-ui .apptitle b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.do-ui .tp-askbtn { flex: 1; max-width: 420px; margin-left: auto; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--do-line-2); border-radius: var(--do-r-input); background: var(--do-surface); color: var(--do-muted); font-size: 14.5px; cursor: pointer; text-align: left; min-width: 0; }
html.do-ui .tp-askbtn svg { width: 16px; height: 16px; flex: none; }
html.do-ui .tp-askbtn span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.do-ui .tp-askbtn kbd, html.do-ui .tp-ask kbd { font: 500 13px var(--do-mono); color: var(--do-muted); border: 1px solid var(--do-line-2); border-radius: var(--do-r-chip); padding: 0 6px; background: none; }
@media (hover: hover) { html.do-ui .tp-askbtn:hover { border-color: var(--do-control); } }
html.do-ui .apptop-right { margin-left: 14px; gap: 10px; }
html.do-ui .theme-toggle { width: 32px; height: 32px; border-radius: var(--do-r-input); border: 1px solid var(--do-line-2); background: var(--do-surface); color: var(--do-ink-2); }
html.do-ui .theme-toggle svg { width: 16px; height: 16px; }
html.do-ui .theme-toggle .ic-sun { display: none; } html.do-ui .theme-toggle .ic-moon { display: block; }
html.do-ui[data-theme="dark"] .theme-toggle .ic-sun { display: block; } html.do-ui[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
@media (prefers-color-scheme: dark) {
  html.do-ui:not([data-theme="light"]) .theme-toggle .ic-sun { display: block; }
  html.do-ui:not([data-theme="light"]) .theme-toggle .ic-moon { display: none; }
}
html.do-ui .avatar { width: 30px; height: 30px; background: var(--do-inverse); color: var(--do-on-inverse); font-size: 13px; font-weight: 600; }
html.do-ui .hamb { border: 1px solid var(--do-line-2); background: var(--do-surface); color: var(--do-ink); border-radius: var(--do-r-input); }
html.do-ui body.has-shell .wrap { max-width: 1280px; padding: 28px 24px 48px; }
html.do-ui .topbar { background: var(--do-page); border-bottom: 1px solid var(--do-line); height: 56px; padding: 0 20px; }
html.do-ui .brand { font-weight: 600; font-size: 16px; color: var(--do-ink); letter-spacing: -.01em; }
html.do-ui .nav a { color: var(--do-ink-2); font-weight: 500; }
@media (max-width: 860px) {
  html.do-ui .sidebar { width: 272px; box-shadow: var(--do-shadow-over); }
  html.do-ui .apptop { padding: 0 16px; gap: 10px; }
  html.do-ui .tp-askbtn { flex: 0 0 auto; width: 34px; padding: 0; justify-content: center; margin-left: auto; }
  html.do-ui .tp-askbtn span, html.do-ui .tp-askbtn kbd { display: none; }
  html.do-ui .apptop-right { margin-left: 0; }
  html.do-ui body.has-shell .wrap { padding: 20px 16px 64px; }
}
html.do-ui .sb-scrim { background: rgb(12 13 12 / .45); }

/* ── Cards and surfaces: hairline ring, 12px, no shadow ── */
html.do-ui .card { background: var(--do-surface); border: 0; border-radius: var(--do-r-card); box-shadow: var(--do-ring); padding: 24px; }
html.do-ui .card .card { box-shadow: none; padding: 0; }
html.do-ui .sec { background: none; border: 0; border-top: 1px solid var(--do-line); border-radius: 0; padding: 20px 0 4px; margin: 0; }
html.do-ui .sec h3 { font-size: 16px; font-weight: 600; }
html.do-ui .sec .sub { color: var(--do-muted); font-size: 14.5px; }
html.do-ui .stats { gap: 12px; }
html.do-ui .stat { background: var(--do-surface); border: 0; box-shadow: var(--do-ring); border-radius: var(--do-r-card); padding: 16px; }
html.do-ui .stat .n { font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: var(--do-ink); }
html.do-ui .stat .l { font-size: 14px; color: var(--do-muted); }
html.do-ui .joblist li { background: var(--do-surface); border: 0; box-shadow: var(--do-ring); border-radius: var(--do-r-card); }
@media (hover: hover) { html.do-ui .joblist li:hover { box-shadow: 0 0 0 1px var(--do-control); } }
html.do-ui .joblist .jt { font-weight: 500; color: var(--do-ink); }
html.do-ui .joblist .jm { color: var(--do-muted); font-size: 14px; }
html.do-ui .empty .ico { width: 40px; height: 40px; border-radius: var(--do-r-btn); background: var(--do-sunken); color: var(--do-muted); border: 1px solid var(--do-line); font-size: 20px; }
html.do-ui .role { border: 1px solid var(--do-line-2); border-radius: var(--do-r-btn); background: var(--do-surface); }
@media (hover: hover) { html.do-ui .role:hover { border-color: var(--do-control); box-shadow: none; } }
html.do-ui .role .rn { font-weight: 500; }
html.do-ui .role .badge { color: var(--do-muted); text-transform: none; letter-spacing: 0; font-weight: 500; }
html.do-ui .pl { background: var(--do-surface); border: 0; box-shadow: var(--do-ring); border-radius: var(--do-r-btn); }
html.do-ui .pl .dot.has { background: var(--do-ink-2); }
html.do-ui .pl .bar i { background: var(--do-ink-2); }
html.do-ui .pl .ct { font-weight: 600; }
html.do-ui .steps .s { height: 4px; background: var(--do-line-2); }
html.do-ui .steps .s.done { background: var(--do-ink-2); } html.do-ui .steps .s.now { background: var(--do-accent); }
html.do-ui .gstep .gn { background: var(--do-sunken); color: var(--do-ink-2); border: 1px solid var(--do-line-2); border-radius: var(--do-r-input); font-weight: 600; }
html.do-ui .gstep h4 { font-weight: 600; }

/* ── Buttons: ink primary, neutral outline, 8px ── */
html.do-ui .btn { min-height: 40px; padding: 8px 16px; border-radius: var(--do-r-btn); border: 1px solid transparent; font: 500 14px/1.3 var(--do-font); letter-spacing: 0; background: var(--do-surface); color: var(--do-ink); transition: background-color var(--do-t-fast) var(--do-ease), border-color var(--do-t-fast) var(--do-ease), transform 80ms var(--do-ease); }
html.do-ui .btn:active { transform: scale(.98); }
html.do-ui .btn-primary, html.do-ui a.btn-primary, html.do-ui .btn-accent, html.do-ui a.btn-accent { background: var(--do-btn); color: var(--do-on-btn); border-color: transparent; }
html.do-ui .btn-ghost, html.do-ui a.btn-ghost { background: var(--do-surface); color: var(--do-ink); border-color: var(--do-line-2); }
@media (hover: hover) {
  html.do-ui .btn-primary:hover, html.do-ui .btn-accent:hover { background: var(--do-btn-hover); color: var(--do-on-btn); filter: none; }
  html.do-ui .btn-ghost:hover { border-color: var(--do-control); color: var(--do-ink); }
}
html.do-ui .btn.sm { min-height: 32px; padding: 5px 12px; font-size: 14px; border-radius: var(--do-r-input); }
html.do-ui .copybtn { background: var(--do-surface); color: var(--do-ink); border: 1px solid var(--do-line-2); border-radius: var(--do-r-input); font-weight: 500; }
html.do-ui .btn:disabled { opacity: .45; }
html.do-ui[data-theme] .btn-primary, html.do-ui[data-theme] a.btn-primary { background: var(--do-btn); color: var(--do-on-btn); }

/* ── Inputs ── */
html.do-ui input[type=text], html.do-ui input[type=email], html.do-ui input[type=password], html.do-ui input[type=number],
html.do-ui input[type=datetime-local], html.do-ui input[type=date], html.do-ui input[type=tel], html.do-ui input[type=url],
html.do-ui input[type=search], html.do-ui input[type=file], html.do-ui select, html.do-ui textarea {
  border: 1px solid var(--do-control); border-radius: var(--do-r-input); padding: 9px 12px; font: 400 15px/1.45 var(--do-font); background: var(--do-surface); color: var(--do-ink); }
html.do-ui select { background-color: var(--do-surface); color: var(--do-ink); }
html.do-ui input:focus, html.do-ui select:focus, html.do-ui textarea:focus { outline: none; border-color: var(--do-accent); box-shadow: 0 0 0 3px var(--do-accent-tint); }
html.do-ui ::placeholder { color: var(--do-faint); }
html.do-ui label.f { font: 500 14px/1.4 var(--do-font); color: var(--do-ink); margin: 16px 0 6px; }
html.do-ui input[type=checkbox], html.do-ui input[type=radio] { accent-color: var(--do-btn); }
@media (max-width: 640px) { html.do-ui input, html.do-ui select, html.do-ui textarea { font-size: 16px; } }
html.do-ui .pchip span { border-radius: var(--do-r-input); border-color: var(--do-line-2); background: var(--do-surface); color: var(--do-ink-2); font-size: 14px; }
html.do-ui .pchip input:checked + span { background: var(--do-btn); border-color: var(--do-btn); color: var(--do-on-btn); }

/* ── Status = a dot plus a word (pills, tags and chips become this) ── */
html.do-ui .pill, html.do-ui .vchip, html.do-ui .tag {
  display: inline-flex; align-items: center; gap: 7px; background: none !important; border: 0; padding: 0; border-radius: 0;
  font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--do-ink-2) !important; white-space: nowrap; }
html.do-ui .pill::before, html.do-ui .vchip::before, html.do-ui .tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--do-faint); flex: none; }
html.do-ui .pill.open::before, html.do-ui .vchip.yes::before, html.do-ui .tag.top_fit::before, html.do-ui .tag.best_fit::before { background: var(--do-ok); }
html.do-ui .pill.draft::before, html.do-ui .vchip.no::before, html.do-ui .tag.not_fit::before, html.do-ui .tag.can_consider::before { background: var(--do-warn); }
html.do-ui .tag.reject::before { background: var(--do-bad); }
html.do-ui .stage { background: none; border: 1px solid var(--do-line-2); border-radius: var(--do-r-chip); color: var(--do-muted); font-size: 13px; font-weight: 400; padding: 0 6px; line-height: 20px; }
html.do-ui .stage.is-hired { color: var(--do-ok); border-color: currentColor; } html.do-ui .stage.is-rejected { color: var(--do-bad); border-color: currentColor; }
html.do-ui .ok-badge { color: var(--do-ok); font-weight: 500; }

/* ── Tables: the kit's table pattern ── */
html.do-ui .wrap table { border-collapse: collapse; font-size: 14.5px; }
html.do-ui .wrap th { text-align: left; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--do-muted); padding: 10px 14px; border-bottom: 1px solid var(--do-line); background: var(--do-surface); white-space: nowrap; }
html.do-ui .wrap td { padding: 11px 14px; border-bottom: 1px solid var(--do-line); color: var(--do-ink-2); vertical-align: middle; }
html.do-ui .wrap thead { background: none; }
@media (hover: hover) { html.do-ui .wrap tbody tr:hover td { background: var(--do-sunken); } }

/* ── Messages, notes, alerts ── */
html.do-ui .msg, html.do-ui .callout, html.do-ui .ai-note {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--do-r-card); background: var(--do-sunken);
  border: 1px solid var(--do-line); color: var(--do-ink); font-size: 14px; font-weight: 400; }
html.do-ui .msg.success::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--do-ok); margin-top: 7px; flex: none; }
html.do-ui .msg.error { background: var(--do-bad-tint); border-color: transparent; color: var(--do-ink); }
html.do-ui .msg.error::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--do-bad); margin-top: 7px; flex: none; }
html.do-ui .callout .ct, html.do-ui .ai-note { color: var(--do-ink); }
html.do-ui .callout .ci:empty, html.do-ui .ai-note .spark:empty { display: none; }
html.do-ui .linkbox { background: var(--do-sunken); border: 1px solid var(--do-line); border-radius: var(--do-r-input); }
html.do-ui .linkbox .lk { color: var(--do-ink-2); }
html.do-ui .legalfoot, html.do-ui .legalfoot a { color: var(--do-muted); }
html.do-ui .modal-ov { background: rgb(12 13 12 / .45); }
html.do-ui .modal { background: var(--do-surface); border: 0; border-radius: var(--do-r-frame); box-shadow: var(--do-shadow-over); color: var(--do-ink); }
html.do-ui .modal h2 { font-size: 17px; font-weight: 600; }

/* boxes with hard-coded light colours (account on hold, name flagged, seeker popup, chips, CRM menu) */
html.do-ui [style*="background:#fff;"], html.do-ui [style*="background:#FFF;"] { background: var(--do-surface) !important; }
html.do-ui [style*="background:#FFF4E5"], html.do-ui [style*="background:#fff4e5"] { background: var(--do-warn-tint) !important; }
html.do-ui [style*="color:#8A5A00"] { color: var(--do-warn) !important; }
html.do-ui [style*="border:1px solid #F0C36D"] { border-color: transparent !important; }
html.do-ui [style*="color:#16203A"], html.do-ui [style*="color:#1f2430"], html.do-ui [style*="color:#111"] { color: var(--do-ink) !important; }
html.do-ui [style*="color:#4a5163"] { color: var(--do-muted) !important; }
html.do-ui .act .menu { background: var(--do-surface); box-shadow: var(--do-shadow-over); border-color: var(--do-line); }
html.do-ui .chip.closed, html.do-ui .chip.flagged, html.do-ui .vbadge { background: none; color: var(--do-ink-2); }
html.do-ui .tp-demo { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px; font-size: 14px; color: var(--do-ink-2); }

/* ── Chat widget ── */
html.do-ui #chatw .launch { background: var(--do-btn); color: var(--do-on-btn); box-shadow: var(--do-shadow-over); }
html.do-ui #chatw .panel { border: 0; border-radius: var(--do-r-frame); box-shadow: var(--do-shadow-over); background: var(--do-surface); }
html.do-ui #chatw .head { background: var(--do-surface); color: var(--do-ink); border-bottom: 1px solid var(--do-line); font-weight: 600; }
html.do-ui #chatw .head small { color: var(--do-muted); }
html.do-ui #chatw .head .x { color: var(--do-muted); }
html.do-ui #chatw .msgs { background: var(--do-page); }
html.do-ui #chatw .b.me { background: var(--do-inverse); color: var(--do-on-inverse); }
html.do-ui #chatw .b.them { background: var(--do-surface); color: var(--do-ink); border-color: var(--do-line); }
html.do-ui #chatw .b.sys { background: var(--do-sunken); color: var(--do-muted); }
html.do-ui #chatw .foot button { background: var(--do-btn); color: var(--do-on-btn); }

/* ── AI working indicator (kept, flat): still when idle, a spinner arc only while the AI works ── */
.tp-core { --s: 20px; position: relative; display: inline-block; width: var(--s); height: var(--s); flex: none; }
.tp-core > i { position: absolute; display: block; border-radius: 50%; font-style: normal; }
.tp-core .r { inset: 0; border: 2px solid var(--do-line-2); }
.tp-core .h { inset: 34%; background: var(--do-accent); }
.tp-core .r2, .tp-core .o { display: none; }
.tp-core.md { --s: 32px; } .tp-core.lg { --s: 40px; margin: 0 auto 14px; display: block; }
.tp-core[data-state="thinking"] .r { border-color: var(--do-line-2); border-top-color: var(--do-accent); animation: do-spin .8s linear infinite; }
.tp-core[data-state="thinking"] .h { background: var(--do-ink-2); }
.tp-core[data-state="done"] .r { border-color: var(--do-ok); }
.tp-core[data-state="done"] .h { background: var(--do-ok); }
html.do-ui #ai-overlay { background: rgb(12 13 12 / .45); backdrop-filter: none; -webkit-backdrop-filter: none; }
html.do-ui .ai-ov-card { background: var(--do-surface); border: 0; border-radius: var(--do-r-frame); box-shadow: var(--do-shadow-over); padding: 24px 28px; }
html.do-ui .ai-ov-card b { font-weight: 600; font-size: 16px; }
html.do-ui .ai-ov-card p { color: var(--do-muted); }
html.do-ui .ai-ov-bar { background: var(--do-line-2); height: 4px; }
html.do-ui .ai-ov-bar i { background: var(--do-ink-2); }
html.do-ui #ai-ov-fact b { color: var(--do-ink) !important; }

/* ── Ask bar (Ctrl K / Cmd K) ── */
.tp-ask-ov { position: fixed; inset: 0; z-index: var(--do-z-modal); background: rgb(12 13 12 / .45); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.tp-ask-ov[hidden] { display: none; }
.tp-ask { width: 100%; max-width: 580px; background: var(--do-surface); border-radius: var(--do-r-frame); box-shadow: var(--do-shadow-over); overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { .tp-ask { animation: do-rise var(--do-t-over) var(--do-ease); } }
.tp-ask-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 52px; border-bottom: 1px solid var(--do-line); }
.tp-ask-in svg { width: 16px; height: 16px; color: var(--do-muted); flex: none; }
html.do-ui .tp-ask-in input { flex: 1; min-width: 0; border: 0; padding: 0; font: 400 16px var(--do-font); background: none; box-shadow: none; color: var(--do-ink); }
html.do-ui .tp-ask-in input:focus { box-shadow: none; }
.tp-ask-list { max-height: min(52vh, 420px); overflow-y: auto; padding: 6px; }
.tp-ask-sec { font-size: 13px; color: var(--do-muted); padding: 10px 10px 4px; }
.tp-ask-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 10px; border-radius: var(--do-r-input); font-size: 14px; text-decoration: none; cursor: pointer; border: 0; background: none; text-align: left; }
html.do-ui a.tp-ask-item { color: var(--do-ink); }
.tp-ask-item svg { width: 16px; height: 16px; color: var(--do-muted); flex: none; }
.tp-ask-item .ic { display: contents; }
.tp-ask-item .tx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-ask-item .go { font-size: 13.5px; color: var(--do-muted); }
.tp-ask-item.sel { background: var(--do-sunken); }
.tp-ask-foot { display: flex; gap: 16px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--do-line); font-size: 13.5px; color: var(--do-muted); background: var(--do-sunken); }
.tp-ask-empty { padding: 18px 12px; color: var(--do-muted); font-size: 14px; }

/* ── Dashboard: one hero figure, the briefing as a list, the pipeline row ── */
.tp-dash-head { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; padding: 4px 0 20px; border-bottom: 1px solid var(--do-line); margin-bottom: 20px; }
.tp-todo { display: flex; flex-direction: column; margin: 4px 0 20px; border-radius: var(--do-r-card); box-shadow: var(--do-ring); overflow: hidden; }
html.do-ui a.tp-todo-i { display: flex; align-items: center; gap: 12px; padding: 0 14px; min-height: 44px; border-bottom: 1px solid var(--do-line); color: var(--do-ink); font-size: 14px; text-decoration: none; background: var(--do-surface); }
html.do-ui a.tp-todo-i:last-child { border-bottom: 0; }
@media (hover: hover) { html.do-ui a.tp-todo-i:hover { background: var(--do-sunken); } }
.tp-todo-i .n { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 20px; }
.tp-todo-i .t { flex: 1; min-width: 0; }
.tp-todo-i .t small { color: var(--do-muted); font-size: 14px; margin-left: 6px; }
.tp-todo-i .go { color: var(--do-muted); font-size: 14px; }
@media (max-width: 640px) { .tp-todo-i .t small { display: block; margin: 0; } }

/* pipeline (kept: dots move only along stages that have people; no pulsing) */
.tp-river-wrap { overflow-x: auto; margin: 0 0 12px; padding: 4px 0 8px; }
.tp-river { display: flex; align-items: flex-start; min-width: 820px; }
html.do-ui a.tp-node { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; color: var(--do-ink); text-decoration: none; border-radius: var(--do-r-input); padding: 4px 2px; }
.tp-node .c { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; border: 1px solid var(--do-line-2); background: var(--do-surface); color: var(--do-muted); }
.tp-node.has .c { color: var(--do-ink); border-color: var(--do-control); }
.tp-node.hot .c { background: var(--do-btn); color: var(--do-on-btn); border-color: var(--do-btn); }
.tp-node .lb { font-size: 13px; color: var(--do-ink-2); line-height: 1.3; }
.tp-node .st { font-size: 13px; color: var(--do-muted); }
@media (hover: hover) { html.do-ui a.tp-node:hover .c { border-color: var(--do-ink); } }
.tp-pipe { flex: 1; height: 1px; margin-top: 21px; background: var(--do-line-2); position: relative; overflow: hidden; min-width: 12px; }
.tp-pipe.flow i { position: absolute; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--do-ink-2); animation: tpFlow 3.2s var(--do-ease) infinite; }
.tp-pipe.flow i + i { animation-delay: 1.6s; }
@keyframes tpFlow { from { transform: translateX(-8px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateX(110px); opacity: 0; } }

/* ── Candidate: score ring (kept, flat: fills once) ── */
.tp-score { display: flex; gap: 16px; align-items: center; margin: 4px 0 12px; }
.tp-ring { --p: 0; --c: var(--do-ink-2); width: 72px; height: 72px; border-radius: 50%; flex: none; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--do-line-2) 0); }
.tp-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--do-surface); }
.tp-ring b { position: relative; font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; color: var(--do-ink); }
.tp-ring small { display: none; }
.tp-ring.top_fit, .tp-ring.best_fit { --c: var(--do-accent); }
.tp-ring.not_fit, .tp-ring.can_consider { --c: var(--do-warn); }
.tp-ring.reject { --c: var(--do-bad); }
.tp-score .ex { flex: 1; min-width: 0; font-size: 14.5px; color: var(--do-muted); }
.tp-score .ex .who { display: flex; align-items: center; gap: 8px; color: var(--do-ink); font-weight: 500; font-size: 14px; margin-bottom: 2px; }
.tp-score .ex .who .tp-core { --s: 14px; }
/* plain score bar for lists (as in the approved preview) */
.tp-bar { display: inline-block; width: 64px; height: 4px; border-radius: 2px; background: var(--do-line-2); vertical-align: middle; margin-right: 8px; position: relative; overflow: hidden; }
.tp-bar i { position: absolute; inset: 0 auto 0 0; background: var(--do-ink-2); }
.tp-bar.top i { background: var(--do-accent); }

/* ── CV upload: the AI is reading ── */
.tp-read { display: flex; align-items: center; gap: 12px; margin: 8px 0 12px; }
.tp-read .tx { font-size: 14.5px; color: var(--do-muted); }
.tp-read .tx b { color: var(--do-ink); font-weight: 500; display: block; font-size: 14px; }
html.do-ui #bar { background: var(--do-accent) !important; }
html.do-ui #notes > div { padding: 6px 10px; border-radius: var(--do-r-input); background: var(--do-sunken); margin-top: 6px; }

/* the login field animation is not used in the kit (calm forms) */
.tp-authfield { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .tp-pipe.flow i { display: none; }
}

/* demo badge (inline-styled in base.html): a plain tag, not an accent fill */
html.do-ui .wrap > div[style*="background:var(--accent"] { background: none !important; color: var(--do-ink-2) !important; border: 1px solid var(--do-line-2); border-radius: var(--do-r-chip) !important; font-weight: 500 !important; padding: 0 8px !important; }

/* inline styles: fills in the old brand colour carry button text; coloured borders and stripes become hairlines */
html.do-ui [style*="background:var(--brand)"], html.do-ui [style*="background:var(--accent)"] { color: var(--do-on-btn) !important; }
html.do-ui [style*="solid var(--brand)"], html.do-ui [style*="solid var(--accent)"], html.do-ui [style*="solid var(--success)"], html.do-ui [style*="solid var(--danger)"] { border-color: var(--do-line-2) !important; }
html.do-ui [style*="border-left:"] { border-left-color: var(--do-line-2) !important; }
html.do-ui [style*="rgba(49,73,198"] { background-color: var(--do-line-2) !important; }

/* ── Lists of candidates (Hires, job applicants, stage lists): fit = dot + word, score = plain bar + number ── */
html.do-ui .wrap .r, html.do-ui .wrap th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
html.do-ui .fit { display: inline-flex; align-items: center; gap: 7px; background: none !important; padding: 0; border-radius: 0; font-size: 14px; font-weight: 400; color: var(--do-ink-2) !important; opacity: 1; }
html.do-ui .fit::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--do-faint); flex: none; }
html.do-ui .fit.top_fit::before { background: var(--do-ok); } html.do-ui .fit.not_fit::before { background: var(--do-warn); } html.do-ui .fit.reject::before { background: var(--do-bad); }
html.do-ui .fit.none { color: var(--do-muted) !important; }
html.do-ui .score { font-family: var(--do-font); font-weight: 500; font-size: 14px; color: var(--do-ink) !important; font-variant-numeric: tabular-nums; }
html.do-ui .ctable td:first-child b { font-weight: 500; color: var(--do-ink); }
html.do-ui .ctable td:first-child b + span[style*="font-size:13px"] { display: none; }
html.do-ui tr.rejected-row td:first-child b { opacity: 1; color: var(--do-muted); }
html.do-ui .csearch { gap: 8px; }
html.do-ui .tp-ai-score { margin: 8px 0 12px; }
html.do-ui .tp-ai-score .head span { margin-left: auto; }
html.do-ui .tp-ai-score .tp-score { margin: 0; }
html.do-ui [style*="border-color:var(--brand)"], html.do-ui [style*="border-color:var(--accent)"] { border-color: var(--do-line) !important; }
html.do-ui .tp-ai-jd { margin: 0 0 4px; }
html.do-ui .tp-ai-jd .head span { color: var(--do-muted); }
html.do-ui .jdbox { color: var(--do-ink-2); font-size: 15.5px; }
html.do-ui .jdbox h3 { font-size: 16px; font-weight: 600; color: var(--do-ink); }
html.do-ui .jdbox strong { color: var(--do-ink); font-weight: 600; }

/* ── Kit pages built from templates/do partials ── */
html.do-ui .do-page-head { margin-bottom: 20px; }
html.do-ui .do-page-head h1 { margin: 0; }
html.do-ui .do-page-head .crumbs a { color: var(--do-muted); }
html.do-ui .do-page-head .crumbs a::before { content: ""; }
html.do-ui .do-alert { margin-bottom: 16px; }
html.do-ui .do-alert .acts { align-self: center; }
html.do-ui .wrap .do-ai { margin: 0; }
html.do-ui .do-ai .body p { margin: 0; }

/* candidate page: timeline on the left, sticky summary on the right */
.tp-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .tp-detail { grid-template-columns: minmax(0, 1fr); } .tp-summary { order: -1; } }
.tp-summary { position: sticky; top: 72px; }
@media (max-width: 1100px) { .tp-summary { position: static; } }
.tp-sum-score { display: flex; align-items: center; gap: 14px; }
.tp-sum-score .do-muted { font-size: 14px; }
.tp-sum-note { font-size: 14.5px; color: var(--do-ink-2); }
.tp-sum-hrms { border-top: 1px solid var(--do-line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.tp-sum-hrms .do-muted { font-size: 14px; }
.tp-err { color: var(--do-bad); font-size: 14.5px; }
.tp-break { overflow-wrap: anywhere; }
.tp-ring.sm { width: 52px; height: 52px; } .tp-ring.sm::before { inset: 5px; } .tp-ring.sm b { font-size: 17px; }

.tp-steps { list-style: none; margin: 0; padding: 0; border-radius: var(--do-r-card); background: var(--do-surface); box-shadow: var(--do-ring); }
.tp-step { border-bottom: 1px solid var(--do-line); }
.tp-step:last-child { border-bottom: 0; }
.tp-step-head, .tp-step summary { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; font-size: 14px; }
.tp-step summary { cursor: pointer; list-style: none; }
.tp-step summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .tp-step summary:hover { background: var(--do-sunken); } }
.tp-step summary:focus-visible { outline: 2px solid var(--do-accent); outline-offset: -2px; }
.tp-mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; border: 1px solid var(--do-line-2); color: var(--do-muted); background: var(--do-surface); }
.tp-mark svg { width: 13px; height: 13px; }
.tp-step.done .tp-mark { background: var(--do-sunken); color: var(--do-ink-2); }
.tp-step.current .tp-mark { background: var(--do-btn); border-color: var(--do-btn); color: var(--do-on-btn); }
.tp-step-name { font-weight: 500; color: var(--do-ink); }
.tp-step-res { color: var(--do-ink-2); }
.tp-step-res::before { content: ""; display: inline-block; width: 1px; height: 12px; background: var(--do-line-2); margin: 0 10px 0 2px; vertical-align: -1px; }
.tp-step-date { margin-left: auto; color: var(--do-muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp-step-view { color: var(--do-ink-2); font-size: 14px; font-weight: 500; white-space: nowrap; }
@media (hover: hover) { .tp-step summary:hover .tp-step-view { color: var(--do-ink); } }
.tp-step-date + .tp-step-view { margin-left: 4px; }
.tp-step-res + .tp-step-view, .tp-step-name + .tp-step-view { margin-left: auto; }
.tp-step details[open] .tp-step-view { color: var(--do-muted); }
.tp-step.skipped .tp-step-name, .tp-step.later .tp-step-name, .tp-step.ended .tp-step-name { color: var(--do-muted); font-weight: 400; }
.tp-step.later .tp-step-res, .tp-step.skipped .tp-step-res { color: var(--do-muted); }
.tp-step.current { background: var(--do-surface); }
.tp-step.current .tp-step-head { min-height: 56px; }
.tp-step-body { padding: 4px 16px 20px 50px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; color: var(--do-ink-2); }
.tp-step-body > p { margin: 0; }
@media (max-width: 640px) {
  .tp-step-body { padding-left: 16px; }
  .tp-step-head, .tp-step summary { flex-wrap: wrap; row-gap: 2px; padding-top: 10px; padding-bottom: 10px; }
  .tp-step-res::before { display: none; }
  .tp-step-res { flex-basis: 100%; padding-left: 34px; order: 3; font-size: 14px; }
}
.tp-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tp-acts form { margin: 0; }
.tp-sub { border-top: 1px solid var(--do-line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.tp-dl { margin: 0; display: flex; flex-direction: column; }
.tp-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--do-line); font-size: 14px; }
.tp-row:last-child { border-bottom: 0; }
.tp-row dt { color: var(--do-muted); }
.tp-row dd { margin: 0; color: var(--do-ink); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.tp-row.stack { grid-template-columns: 1fr; gap: 2px; }
.tp-summary .tp-row { grid-template-columns: 96px minmax(0, 1fr); }
.tp-more summary { cursor: pointer; color: var(--do-ink); font-weight: 500; font-size: 14px; }
.tp-sig { height: 40px; width: auto; border-radius: var(--do-r-input); box-shadow: var(--do-ring); background: #fff; }
.tp-score .ex { display: flex; flex-direction: column; gap: 6px; color: var(--do-ink-2); font-size: 14px; }
html.do-ui .tp-detail .linkbox { padding: 6px 6px 6px 12px; }

/* the kit's top bar carries search and account only; each page names itself in its own header */
html.do-ui .apptitle { display: none; }

/* links styled as kit buttons keep button colours (the kit's a{} accent rule would otherwise win) */
html.do-ui a.do-btn { color: var(--do-ink); text-decoration: none; }
html.do-ui a.do-btn.primary { color: var(--do-on-btn); }
html.do-ui a.do-btn.text { color: var(--do-ink-2); }
html.do-ui a.do-btn.danger { color: #fff; }
html.do-ui a.do-btn.danger-quiet { color: var(--do-bad); }
@media (max-width: 640px) { .tp-row { grid-template-columns: 104px minmax(0, 1fr); } }

/* dashboard */
.tp-band { display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: flex-end; justify-content: space-between; padding: 8px 0 24px; border-bottom: 1px solid var(--do-line); margin-bottom: 8px; }
.tp-fig-note { font-size: 13.5px; color: var(--do-muted); }
.tp-sec { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.tp-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tp-small { font-size: 14px; }
html.do-ui a.tp-plain { color: inherit; text-decoration: none; }
@media (hover: hover) { html.do-ui a.tp-plain:hover { text-decoration: underline; } }
html.do-ui .tp-todo { margin: 0; }
html.do-ui .do-table td.acts form { display: inline; }

/* candidate timeline split into before / current / after so phones can show the current step first */
.tp-detail { grid-template-areas: "a s" "b s" "c s"; grid-template-rows: auto auto 1fr; row-gap: 0; }
.tp-detail > .p-before { grid-area: a; } .tp-detail > .p-cur { grid-area: b; } .tp-detail > .p-after { grid-area: c; }
.tp-detail > .tp-summary { grid-area: s; }
.tp-detail > .tp-steps { border-radius: 0; }
.tp-detail > .tp-steps + .tp-steps { margin-top: -1px; }
.tp-detail > .tp-steps:first-child { border-top-left-radius: var(--do-r-card); border-top-right-radius: var(--do-r-card); }
.tp-detail > .tp-steps:nth-last-child(2) { border-bottom-left-radius: var(--do-r-card); border-bottom-right-radius: var(--do-r-card); }
/* lists meet on one hairline: the -1px overlap lines up their rings */
@media (max-width: 1100px) {
  .tp-detail { grid-template-columns: minmax(0, 1fr); grid-template-areas: "b" "s" "a" "c"; grid-template-rows: auto; row-gap: 16px; }
  .tp-detail > .tp-steps { border-radius: var(--do-r-card) !important; margin-top: 0 !important; }
  .tp-detail > .tp-steps + .tp-steps > .tp-step:first-child { border-top: 0; }
  .tp-summary { order: 0; }
}
.tp-doit { margin-left: auto; }
.tp-step.skipped .tp-step-head { min-height: 52px; }
/* the floating support button never covers the last action */
html.do-ui body.has-shell .wrap { padding-bottom: 96px; }
html.do-ui .tp-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 14px; padding-top: 32px; }
html.do-ui .tp-foot a, html.do-ui .tp-foot span { color: var(--do-muted); text-decoration: none; }
@media (hover: hover) { html.do-ui .tp-foot a:hover { color: var(--do-ink); } }
@media (max-width: 520px) {
  html.do-ui .do-alert { flex-wrap: wrap; }
  html.do-ui .do-alert .acts { margin-left: 0; flex-basis: 100%; flex-direction: column; align-items: stretch; }
  html.do-ui .do-alert .acts .do-btn, html.do-ui .do-alert .acts form, html.do-ui .do-alert .acts form .do-btn { width: 100%; }
}

/* Hires list: filter row above a kit table card */
html.do-ui .csearch { align-items: center; margin-bottom: 16px; }
html.do-ui .csearch .btn-primary { background: var(--do-surface); color: var(--do-ink); border-color: var(--do-line-2); min-height: 38px; }
html.do-ui .csearch details summary { font-weight: 500; font-size: 14.5px; color: var(--do-ink-2); }
html.do-ui .card:has(> .ctable) { padding: 0; overflow: hidden; }
html.do-ui .card:has(> .ctable) > div:first-child { padding: 12px 14px; font-size: 14px; color: var(--do-muted); border-bottom: 1px solid var(--do-line); }
html.do-ui .ctable { width: 100%; }
html.do-ui .ctable tr { cursor: pointer; }
html.do-ui .tp-name { font-weight: 500; color: var(--do-ink); }
html.do-ui .ctable td:first-child .hint { font-size: 13px; }

/* job applicants */
.tp-share { margin-bottom: 16px; }
.tp-more summary { cursor: pointer; font-weight: 500; font-size: 14px; color: var(--do-ink); list-style: none; }
.tp-more summary::-webkit-details-marker { display: none; }
.tp-more summary::after { content: "Show"; margin-left: 8px; color: var(--do-muted); font-weight: 400; font-size: 14px; }
.tp-more[open] summary::after { content: "Hide"; }
.tp-more-body { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.tp-job-acts { margin: 0 0 12px; gap: 4px 16px; }
.tp-count { padding: 8px 14px; font-size: 14px; color: var(--do-muted); border-bottom: 1px solid var(--do-line); }
.tp-sel { width: auto; height: 32px; font-size: 14px; }
.tp-seg button { height: 26px; padding: 0 10px; font-size: 13.5px; }
.tp-seg { padding: 2px; }
html.do-ui .do-table .who a { color: var(--do-ink); }
html.do-ui .tp-sel, html.do-ui .do-toolbar select { padding-top: 0; padding-bottom: 0; height: 32px; line-height: 30px; }
html.do-ui .do-toolbar .do-input { padding-top: 0; padding-bottom: 0; }

/* ── Pages still on the classic markup (forms, settings, admin): one shared structure ──
   The page card becomes a form column of comfortable width; its eyebrow/title/lede read as the page header;
   section labels inside become section headings with a hairline above (space, then divider, then card). */
html.do-ui body.has-shell .wrap > .card { max-width: 820px; }
html.do-ui body.has-shell .wrap > .card > .eyebrow:first-child { margin-bottom: 2px; }
html.do-ui .card .sectlabel { font-size: 16px; font-weight: 600; color: var(--do-ink); margin: 28px 0 8px; padding-top: 20px; border-top: 1px solid var(--do-line); }
html.do-ui .card > .sectlabel:first-of-type, html.do-ui .card form > .sectlabel:first-child { border-top: 0; padding-top: 0; margin-top: 20px; }
html.do-ui .card .sectlabel .hint { font-weight: 400; font-size: 14px; }
html.do-ui .card input[type=text], html.do-ui .card input[type=url], html.do-ui .card input[type=email], html.do-ui .card input[type=tel], html.do-ui .card input[type=number] { max-width: 100%; }
html.do-ui .btn-row { gap: 8px; justify-content: flex-end; }
html.do-ui .btn-row .btn { flex: 0 0 auto; width: auto; }

.tp-change summary { list-style: none; cursor: pointer; display: inline-flex; }
.tp-change summary::-webkit-details-marker { display: none; }
.tp-change[open] summary { display: none; }
.tp-call { margin: 0; }

/* plan cards: one even row (4 across on wide screens, 2 on tablets), never one card alone on a row */
html.do-ui .pgrid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (min-width: 1100px) { html.do-ui .wrap > .card:has(.pgrid) { max-width: 1120px; } }
@media (max-width: 860px) { html.do-ui .pgrid { grid-template-columns: 1fr; } }

/* hidden labels inside table rows must stay inside the table's own scroll area (else the page scrolls sideways) */
html.do-ui .do-table-wrap, html.do-ui .do-table-card, html.do-ui .card:has(> .ctable) { position: relative; }
html.do-ui .do-sr { top: 0; left: 0; }
/* page-level gradients in classic <style> blocks: flat surfaces in the kit */
html.do-ui .tok-hero { background: var(--do-surface); border: 0; box-shadow: var(--do-ring); border-radius: var(--do-r-card); }
/* super CRM / applicant CRM stat tiles: 5 across only where they fit */
@media (max-width: 760px) { html.do-ui .crm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* data pages keep the full content width; only form pages use the 820px column */
html.do-ui body.has-shell .wrap > .card:has(table) { max-width: none; }

/* stepper for short flows (job wizard) */
.tp-stepper { list-style: none; margin: 0 0 20px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tp-stepper li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--do-muted); }
.tp-stepper li + li::before { content: ""; width: 24px; height: 1px; background: var(--do-line-2); margin-right: 4px; }
.tp-stepper .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 500; border: 1px solid var(--do-line-2); background: var(--do-surface); font-variant-numeric: tabular-nums; }
.tp-stepper li.done { color: var(--do-ink-2); } .tp-stepper li.done .n { background: var(--do-sunken); color: var(--do-ink-2); }
.tp-stepper li.now { color: var(--do-ink); font-weight: 500; } .tp-stepper li.now .n { background: var(--do-btn); color: var(--do-on-btn); border-color: var(--do-btn); }
.tp-step-note { margin: -12px 0 12px; font-size: 14px; color: var(--do-muted); }
.tp-soon { display: block; font-size: 13px; color: var(--do-warn); }
.tp-insight { font-size: 15.5px; color: var(--do-ink); }
.tp-chart-n { fill: var(--do-ink) !important; font-variant-numeric: tabular-nums; }
html.do-ui .do-chart text { font-size: 14px; }
html.do-ui .tp-funnel { width: 100%; max-width: 640px; height: auto; }
html.do-ui .do-chart text.tp-drop { fill: var(--do-ink); font-weight: 600; }

/* ── v129 type scale (owner, 29 Oct, all DO apps): a little bigger, nothing under 13px.
   body 16, table cells 14.5, labels/nav/buttons 14, meta/hints 13.5; titles and stats unchanged.
   Overrides the shared kit file here so do-ui.css stays identical across apps. ── */
html.do-ui body { font-size: 16px; }
html.do-ui .do-table { font-size: 14.5px; }
html.do-ui .do-table .who small, html.do-ui .do-table-foot { font-size: 13.5px; }
html.do-ui .do-btn.sm { font-size: 14px; }
html.do-ui .do-field > label, html.do-ui .do-label, html.do-ui .do-check { font-size: 14px; }
html.do-ui .do-field .hint, html.do-ui .do-field .err { font-size: 13.5px; }
html.do-ui .do-input, html.do-ui .do-select, html.do-ui .do-textarea { font-size: 15px; }
html.do-ui .do-dot { font-size: 14px; }
html.do-ui .do-tag { font-size: 13px; }
html.do-ui .do-kbd { font-size: 13px; }
html.do-ui .do-side .group { font-size: 13px; }
html.do-ui .do-page-head p { font-size: 15.5px; }
html.do-ui .do-page-head .crumbs { font-size: 14px; }
html.do-ui .do-hero-stat .k, html.do-ui .do-hero-stat .d, html.do-ui .do-figures .k { font-size: 14px; }
html.do-ui .do-toolbar .title { font-size: 15px; }
html.do-ui .do-alert { font-size: 15px; }
html.do-ui .do-ai .head { font-size: 14px; }
html.do-ui .do-ai .body { font-size: 15.5px; }
html.do-ui .do-empty p { font-size: 15px; }
html.do-ui .do-seg button, html.do-ui .do-seg a, html.do-ui .do-tabs a, html.do-ui .do-tabs button { font-size: 14px; }
html.do-ui .do-chart text { font-size: 14px; }
html.do-ui .do-toast { font-size: 15px; }
html.do-ui .wrap table { font-size: 14.5px; }
html.do-ui .wrap th { font-size: 14px; }
@media (max-width: 640px) { html.do-ui .do-input, html.do-ui .do-select, html.do-ui .do-textarea { font-size: 16px; } }
.tp-form-card { max-width: 820px; }
.tp-form-card .do-form { max-width: none; }
.tp-notes .tp-todo-i .t { display: flex; flex-direction: column; gap: 2px; }
.tp-notes .tp-todo-i .t small { margin: 0; }
.tp-notes .do-dot { margin-right: 6px; vertical-align: 1px; }
.tp-filter { margin-bottom: 16px; }
.tp-filter .do-num { color: var(--do-muted); margin-left: 4px; }
/* v129 audit: last small text and a wrapping button */
html.do-ui .copybtn { font-size: 14px; }
html.do-ui .ob-tag { font-size: 13px !important; }
@media (max-width: 640px) { html.do-ui .tp-hide-sm { display: none; } }
html.do-ui .pcard > a.btn { font-size: 14px; padding-inline: 8px; white-space: nowrap; }
/* v129 (f): admin consoles and ticket thread */
.tp-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
@media (max-width: 900px) { .tp-cols { grid-template-columns: minmax(0, 1fr); } }
.do-card.pad.tp-toggles { display: flex; flex-direction: column; padding-top: 4px; padding-bottom: 16px; }
.tp-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--do-line); cursor: pointer; }
.tp-toggle:last-of-type { border-bottom: 0; }
.tp-toggle b { display: block; font-weight: 500; font-size: 15px; }
.tp-toggle small { display: block; color: var(--do-muted); font-size: 14px; margin-top: 2px; }
.tp-toggles .do-actions { margin-top: 8px; }
.tp-ticket-bar { align-items: center; margin-bottom: 16px; }
.tp-inline { display: flex; align-items: center; gap: 8px; margin: 0; }
.tp-inline label { font-size: 14px; color: var(--do-muted); }
.tp-thread { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tp-thread li { max-width: 88%; padding: 12px 16px; border-radius: var(--do-r-card); background: var(--do-surface); box-shadow: var(--do-ring); }
.tp-thread li.staff { align-self: flex-end; background: var(--do-sunken); }
.tp-thread .who { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.tp-thread .who .do-num { color: var(--do-muted); font-weight: 400; margin-left: 6px; }
.tp-thread .body { white-space: pre-wrap; overflow-wrap: anywhere; }
html.do-ui .act .menu { min-width: max-content; } html.do-ui .act .menu button, html.do-ui .act .menu a { white-space: nowrap; }
.tp-ticket { max-width: 820px; }
.tp-ticket .tp-form-card { max-width: none; }
html.do-ui .do-page-head p.tp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; }
.tp-meta .do-dot, .tp-meta .do-muted { font-size: 14px; line-height: 1.4; }
/* v137: AI call card on the phone screen */
html.do-ui .wrap .do-ai.tp-voice { margin: 16px 0; }
.tp-voice .body p { margin: 0; }
.tp-calls { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.tp-calls li { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--do-line); }
.tp-call-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; }
.tp-calls audio { width: 100%; max-width: 420px; height: 36px; }
.tp-transcript p { margin: 0 0 6px; font-size: 14.5px; }
.tp-transcript b { font-weight: 500; margin-right: 4px; }
/* v137: call-question type select fits "Yes / No - No fails"; question and type stack on phones */
html.do-ui select[name^="call_type_"] { width: auto !important; min-width: 120px; }
@media (max-width: 640px) {
  html.do-ui div:has(> select[name^="call_type_"]) { flex-wrap: wrap; }
  html.do-ui div:has(> select[name^="call_type_"]) > input { flex: 1 1 100% !important; }
}
/* v137: AI call lock row on the business Features page */
html.do-ui form.ft-ghd { flex-wrap: wrap; gap: 8px 12px; align-items: center; }
html.do-ui form.ft-ghd .btn { white-space: nowrap; }
/* v141: every action looks like a button (owner rule, 30 Oct 2026; do-suite-design §6).
   The kit gives .do-btn.outline its strong border; these are the old-markup buttons. */
html.do-ui .btn-ghost, html.do-ui a.btn-ghost, html.do-ui .copybtn { border-color: var(--do-control); }
@media (hover: hover) { html.do-ui .btn-ghost:hover, html.do-ui .copybtn:hover { border-color: var(--do-muted); } }
html.do-ui .copybtn { min-height: 34px; padding: 0 12px; border-radius: var(--do-r-btn); display: inline-flex; align-items: center; }
/* "Open" at the end of a list row reads as a small outline button */
.tp-todo-i .go { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--do-control); border-radius: var(--do-r-btn); background: var(--do-surface); color: var(--do-ink); font-size: 14px; font-weight: 500; flex: none; }
@media (hover: hover) { html.do-ui a.tp-todo-i:hover .go { border-color: var(--do-muted); } }
/* bridge: a standalone action link in old markup becomes a small outline button */
html.do-ui a.tp-act, html.do-ui a.ft-all { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--do-control); border-radius: var(--do-r-btn); background: var(--do-surface); color: var(--do-ink); font: 500 14px var(--do-font); text-decoration: none; white-space: nowrap; }
@media (hover: hover) { html.do-ui a.tp-act:hover, html.do-ui a.ft-all:hover { border-color: var(--do-muted); } }
html.do-ui .ft-ghd > span:has(> a.ft-all) { display: inline-flex; gap: 8px; align-items: center; font-size: 0 !important; }
html.do-ui div.ft-ghd { align-items: flex-end; }
.tp-fig-note .tp-fig-btn { margin-top: 6px; }
/* two-option toggles (plan Monthly/Annual, apply-page language) drawn like the kit's segmented control */
html.do-ui .ptoggle, html.do-ui .tp-langsw { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--do-sunken); border: 1px solid var(--do-control); }
html.do-ui .tp-langsw { display: flex; width: max-content; margin-left: auto; }
html.do-ui .tp-langsw > span { display: none; }
html.do-ui .ptoggle a, html.do-ui .tp-langsw a { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 7px; background: none; color: var(--do-ink-2) !important; font: 500 14px var(--do-font) !important; text-decoration: none; }
html.do-ui .ptoggle a.on, html.do-ui .tp-langsw a[aria-current] { background: var(--do-surface); color: var(--do-ink) !important; box-shadow: var(--do-ring); }
/* disclosure rows: the Show/Hide control reads as a small outline button */
.tp-more summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.tp-more summary::after { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; margin-left: 0; border: 1px solid var(--do-control); border-radius: var(--do-r-btn); background: var(--do-surface); color: var(--do-ink); font-weight: 500; flex: none; }
@media (hover: hover) { .tp-more summary:hover::after { border-color: var(--do-muted); } }
/* share link on phones: address on its own line, buttons below */
@media (max-width: 640px) {
  html.do-ui .linkbox { flex-wrap: wrap; }
  html.do-ui .linkbox .lk { flex: 1 1 100%; overflow-wrap: anywhere; }
}
/* v142: the View/Hide control at the end of a finished step row is a small outline button */
.tp-step-view { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--do-control); border-radius: var(--do-r-btn); background: var(--do-surface); color: var(--do-ink); font-size: 0; flex: none; }
.tp-step-view::after { content: attr(data-label); font-size: 14px; font-weight: 500; }
.tp-step details[open] .tp-step-view { color: var(--do-ink); }
.tp-step details[open] .tp-step-view::after { content: "Hide"; }
@media (hover: hover) { .tp-step summary:hover .tp-step-view { border-color: var(--do-muted); } }
/* v144: Openings table becomes stacked rows on phones, so the Open button stays in view */
.tp-openings .tp-m-only { display: none; }
@media (max-width: 640px) {
  .tp-openings, .tp-openings tbody { display: block; width: 100%; min-width: 0; }
  .tp-openings thead { display: none; }
  .tp-openings tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-bottom: 1px solid var(--do-line); }
  .tp-openings tr:last-child { border-bottom: 0; }
  .tp-openings td { display: block; padding: 0 !important; border: 0 !important; text-align: left !important; }
  .tp-openings td.who { grid-column: 1; grid-row: 1; }
  .tp-openings td.acts { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .tp-openings .tp-m-only { display: inline; color: var(--do-muted); }
  .tp-openings td:nth-child(3)::before { content: "Days open: "; color: var(--do-muted); }
  .tp-openings td:nth-child(2), .tp-openings td:nth-child(3), .tp-openings td:nth-child(4) { grid-column: 1; font-size: 14px; }
}
/* v144: "+ Add a plant/branch" / "+ Add a department" were bare text; screening-question suggest buttons sit left */
html.do-ui button.miniadd { display: inline-flex !important; align-items: center; height: 32px; margin-top: 8px; padding: 0 12px !important; border: 1px solid var(--do-control) !important; border-radius: var(--do-r-btn); background: var(--do-surface) !important; color: var(--do-ink) !important; font: 500 14px var(--do-font) !important; }
@media (hover: hover) { html.do-ui button.miniadd:hover { border-color: var(--do-muted) !important; } }
html.do-ui .tp-qsuggest .btn-row { justify-content: flex-start; flex-wrap: wrap; }
/* v145: later and skipped steps open like finished ones (owner rule: every step is reachable) */
.tp-step.tp-later summary, .tp-step details.tp-later > summary { cursor: pointer; }
.tp-voice .tp-voice-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; font-size: 14.5px; }

/* v166 (owner 1 Nov): phones - every screen at 390px. 16px inputs (no iOS zoom; wins over the typed-input
   rules above), 44px touch targets 8px apart, nothing wider than the screen. Desktop is unchanged.
   v168 (owner 2 Nov): the same touch rules reach tablets (<1024px); layout rules stay phone-only. */
@media (max-width: 1023px) {
  html.do-ui input:not([type=checkbox]):not([type=radio]):not([type=range]), html.do-ui select, html.do-ui textarea { font-size: 16px !important; }
  html.do-ui .do-btn, html.do-ui .do-btn.sm, html.do-ui .btn, html.do-ui .tp-act, html.do-ui .theme-toggle, html.do-ui .hamb, html.do-ui .tp-theme,
  html.do-ui .tp-askbtn, html.do-ui .copybtn { min-height: 44px; }
  html.do-ui .do-btn.sm { height: auto; }
  html.do-ui .theme-toggle, html.do-ui .hamb, html.do-ui .tp-theme { min-width: 44px; }
  html.do-ui .sb-nav a, html.do-ui .do-side a.item, html.do-ui .navlinks a { min-height: 44px; height: auto; display: flex; align-items: center; }
  html.do-ui .acts, html.do-ui .tp-acts, html.do-ui .btn-row { gap: 8px; }
  html.do-ui .row2 > * { min-width: 0; }
  html.do-ui a.tp-act, html.do-ui a.ft-all { min-height: 44px; height: auto; white-space: normal; max-width: 100%; }
  html.do-ui input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]), html.do-ui select, html.do-ui button { min-height: 44px; }
  html.do-ui .tp-askbtn, html.do-ui button[aria-label*="lose"], html.do-ui .modal-x, html.do-ui .do-x { min-width: 44px; }
  html.do-ui .legalfoot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
}
