/* PrompTax UI: the "Console" design system (chosen 1 December 2026).
 *
 * One set of tokens, two themes. Light values sit on :root; the dark theme is
 * switched by the existing `.dark` class on <html> (see the darkMode script in
 * base.html), so every page keeps its current toggle.
 *
 * Components are prefixed `pt-` so they never collide with Tailwind utilities.
 * Hand-written on purpose: the Tailwind build is partial (see CLAUDE.md), and
 * these rules must render whatever the safelist holds.
 */

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable-latin-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}

:root {
  /* Surfaces */
  --pt-bg: #FBFBFC;          /* page */
  --pt-bg-2: #F4F5F7;        /* sidebar, bands */
  --pt-panel: #FFFFFF;       /* cards, tables */
  --pt-raise: #F0F2F5;       /* hover, selected row, inset */
  --pt-line: #E4E7EC;        /* hairlines */
  --pt-line-2: #D0D5DD;      /* control borders */
  /* Text */
  --pt-text: #0D1321;
  --pt-muted: #555F70;
  --pt-faint: #838C9C;
  /* Brand and accent */
  --pt-navy: #1E2F6E;
  --pt-accent: #1D6FB0;      /* links, focus, accent buttons: 5:1 on white */
  --pt-accent-hover: #175C93;
  --pt-accent-ink: #FFFFFF;
  --pt-accent-soft: #E6F0F9;
  /* Primary button: ink on light, near-white on dark */
  --pt-primary: #0D1321;
  --pt-primary-hover: #262F42;
  --pt-primary-ink: #FFFFFF;
  /* Semantic */
  --pt-ok: #157A43;    --pt-ok-soft: #E5F4EB;
  --pt-warn: #9A5800;  --pt-warn-soft: #FDF1DC;
  --pt-bad: #B42318;   --pt-bad-soft: #FDECEA;
  --pt-info: #1D6FB0;  --pt-info-soft: #E6F0F9;
  /* Grid background */
  --pt-grid-line: rgba(13, 19, 33, .06);
  --pt-glow: rgba(29, 111, 176, .10);
  /* Type */
  --pt-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --pt-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  /* Shape */
  --pt-radius: 8px;
  --pt-radius-lg: 12px;
  --pt-shadow: 0 1px 2px rgba(13, 19, 33, .05);
  --pt-shadow-pop: 0 12px 32px -8px rgba(13, 19, 33, .18), 0 2px 6px rgba(13, 19, 33, .06);
  --pt-sidebar-w: 236px;
}

.dark {
  --pt-bg: #0A0E15;
  --pt-bg-2: #0F141D;
  --pt-panel: #121925;
  --pt-raise: #18202E;
  --pt-line: #222C3B;
  --pt-line-2: #2E3A4D;
  --pt-text: #E8ECF2;
  --pt-muted: #9AA4B5;
  --pt-faint: #6B7587;
  --pt-accent: #4DA8E0;
  --pt-accent-hover: #6DB8E6;
  --pt-accent-ink: #06121F;
  --pt-accent-soft: #13263A;
  --pt-primary: #E8ECF2;
  --pt-primary-hover: #FFFFFF;
  --pt-primary-ink: #0A0E15;
  --pt-ok: #4ADE80;    --pt-ok-soft: #10291C;
  --pt-warn: #FBBF24;  --pt-warn-soft: #2E2410;
  --pt-bad: #F87171;   --pt-bad-soft: #321616;
  --pt-info: #4DA8E0;  --pt-info-soft: #13263A;
  --pt-grid-line: rgba(255, 255, 255, .055);
  --pt-glow: rgba(77, 168, 224, .12);
  --pt-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --pt-shadow-pop: 0 16px 40px -8px rgba(0, 0, 0, .6), 0 0 0 1px var(--pt-line);
  color-scheme: dark;
}

/* ---------- Base ---------- */
html:has(> body.pt) { background: var(--pt-bg); }
.pt *, .pt *::before, .pt *::after { box-sizing: border-box; }
.pt { font-family: var(--pt-sans); color: var(--pt-text); background: var(--pt-bg);
      -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
.pt-num, .pt table td, .pt-kpi-value { font-variant-numeric: tabular-nums; }
.pt-mono { font-family: var(--pt-mono); }
.pt-muted { color: var(--pt-muted); }
.pt-faint { color: var(--pt-faint); }
.pt :focus-visible { outline: 2px solid var(--pt-accent); outline-offset: 2px; }
.pt a.pt-link, .pt-link { color: var(--pt-accent); font-weight: 600; text-decoration: none; }
.pt-link:hover { color: var(--pt-accent-hover); text-decoration: underline; text-underline-offset: 3px; }

.pt-h1 { font: 650 24px/1.25 var(--pt-sans); letter-spacing: -0.02em; color: var(--pt-text); margin: 0; }
.pt-h2 { font: 600 16px/1.4 var(--pt-sans); letter-spacing: -0.01em; color: var(--pt-text); margin: 0; }
.pt-display { font: 680 clamp(38px, 5.4vw, 64px)/1.03 var(--pt-sans); letter-spacing: -0.04em; color: var(--pt-text); text-wrap: balance; margin: 0; }
.pt-display .pt-dim { color: var(--pt-faint); }
.pt-lede { font-size: 17.5px; line-height: 1.6; color: var(--pt-muted); max-width: 60ch; }
.pt-eyebrow { font: 600 11.5px var(--pt-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--pt-faint); }

/* ---------- Buttons ---------- */
.pt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
          border-radius: var(--pt-radius); border: 1px solid transparent; font: 600 13.5px/1 var(--pt-sans);
          cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .12s, border-color .12s, color .12s; }
.pt-btn:disabled, .pt-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.pt-btn-primary { background: var(--pt-primary); color: var(--pt-primary-ink); }
.pt-btn-primary:hover { background: var(--pt-primary-hover); color: var(--pt-primary-ink); }
.pt-btn-accent { background: var(--pt-accent); color: var(--pt-accent-ink); }
.pt-btn-accent:hover { background: var(--pt-accent-hover); color: var(--pt-accent-ink); }
.pt-btn-ghost { background: var(--pt-panel); color: var(--pt-text); border-color: var(--pt-line-2); }
.pt-btn-ghost:hover { background: var(--pt-raise); color: var(--pt-text); }
.pt-btn-danger { background: transparent; color: var(--pt-bad); border-color: var(--pt-line-2); }
.pt-btn-danger:hover { background: var(--pt-bad-soft); }
.pt-btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
.pt-btn-lg { height: 42px; padding: 0 18px; font-size: 14.5px; }

/* ---------- Surfaces ---------- */
.pt-card { background: var(--pt-panel); border: 1px solid var(--pt-line); border-radius: var(--pt-radius-lg); box-shadow: var(--pt-shadow); }
.pt-card-pad { padding: 18px 20px; }
.pt-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--pt-line); }
.pt-divider { height: 1px; background: var(--pt-line); border: 0; margin: 0; }

/* KPI tiles */
.pt-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pt-kpi { background: var(--pt-panel); border: 1px solid var(--pt-line); border-radius: 10px; padding: 14px 16px; text-decoration: none; color: inherit; display: block; transition: border-color .12s; }
a.pt-kpi:hover { border-color: var(--pt-line-2); }
.pt-kpi-label { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--pt-muted); }
.pt-kpi-value { font: 650 26px/1.25 var(--pt-sans); letter-spacing: -0.02em; margin-top: 6px; color: var(--pt-text); }
.pt-kpi-sub { font-size: 12px; color: var(--pt-faint); }
.pt-kpi.is-attention { border-color: color-mix(in srgb, var(--pt-warn) 40%, var(--pt-line)); }
.pt-kpi.is-attention .pt-kpi-label::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pt-warn); }

/* Status: a dot and a word. Colour is never the only signal. */
.pt-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--pt-muted); white-space: nowrap; }
.pt-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pt-faint); flex: none; }
.pt-status.is-warn::before { background: var(--pt-warn); }
.pt-status.is-ok::before { background: var(--pt-ok); }
.pt-status.is-info::before { background: var(--pt-accent); }
.pt-status.is-bad::before { background: var(--pt-bad); }
.pt-status.is-running::before { background: transparent; width: 9px; height: 9px; border: 1.5px solid var(--pt-accent); border-top-color: transparent; animation: pt-spin 0.9s linear infinite; }

.pt-badge { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px/1.6 var(--pt-sans); padding: 1px 8px; border-radius: 999px; background: var(--pt-raise); color: var(--pt-muted); white-space: nowrap; }
.pt-badge.is-ok { background: var(--pt-ok-soft); color: var(--pt-ok); }
.pt-badge.is-warn { background: var(--pt-warn-soft); color: var(--pt-warn); }
.pt-badge.is-bad { background: var(--pt-bad-soft); color: var(--pt-bad); }
.pt-badge.is-info { background: var(--pt-info-soft); color: var(--pt-info); }

/* Callouts */
.pt-callout { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--pt-radius); border: 1px solid var(--pt-line); background: var(--pt-bg-2); font-size: 13.5px; color: var(--pt-text); }
.pt-callout.is-info { background: var(--pt-info-soft); border-color: color-mix(in srgb, var(--pt-info) 25%, transparent); }
.pt-callout.is-warn { background: var(--pt-warn-soft); border-color: color-mix(in srgb, var(--pt-warn) 30%, transparent); }
.pt-callout.is-bad { background: var(--pt-bad-soft); border-color: color-mix(in srgb, var(--pt-bad) 30%, transparent); }

/* ---------- Tables ---------- */
.pt-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pt-table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--pt-faint); padding: 10px 12px; border-bottom: 1px solid var(--pt-line); white-space: nowrap; }
.pt-table td { padding: 12px; border-bottom: 1px solid var(--pt-line); vertical-align: middle; color: var(--pt-text); }
.pt-table tr:last-child td { border-bottom: 0; }
.pt-table tbody tr:hover td { background: var(--pt-raise); }
.pt-table .pt-cell-main { font-weight: 600; }
.pt-table .pt-cell-sub { font-size: 12px; color: var(--pt-faint); }
.pt-table .pt-right { text-align: right; }

/* Tabs */
.pt-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--pt-line); overflow-x: auto; }
.pt-tab { padding: 9px 12px; font-size: 13px; color: var(--pt-muted); border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; font-family: inherit; text-decoration: none; }
.pt-tab:hover { color: var(--pt-text); }
.pt-tab[aria-selected="true"], .pt-tab.is-active { color: var(--pt-text); border-bottom-color: var(--pt-accent); font-weight: 600; }
.pt-tab .pt-count { color: var(--pt-faint); margin-left: 4px; font-weight: 500; }

/* Progress */
.pt-progress { height: 6px; background: var(--pt-raise); border-radius: 999px; overflow: hidden; }
.pt-progress > i { display: block; height: 100%; background: var(--pt-accent); border-radius: inherit; transition: width .4s ease; }
.pt-progress.is-live > i { background-image: linear-gradient(90deg, transparent 0, rgba(255,255,255,.35) 50%, transparent 100%); background-size: 200px 100%; background-repeat: no-repeat; animation: pt-sheen 1.6s linear infinite; background-color: var(--pt-accent); }
.pt-progress.is-done > i { background: var(--pt-ok); }

/* Forms */
.pt-input, .pt-select { height: 36px; width: 100%; padding: 0 11px; border-radius: var(--pt-radius); border: 1px solid var(--pt-line-2); background: var(--pt-panel); color: var(--pt-text); font: 14px var(--pt-sans); }
.pt-input:focus, .pt-select:focus { outline: none; border-color: var(--pt-accent); box-shadow: 0 0 0 3px var(--pt-accent-soft); }
.pt-label { display: block; font-size: 13px; font-weight: 600; color: var(--pt-text); margin-bottom: 6px; }
.pt-kbd { font: 500 11px var(--pt-mono); color: var(--pt-faint); border: 1px solid var(--pt-line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; line-height: 16px; }

/* ---------- App shell ---------- */
.pt-shell { display: grid; grid-template-columns: var(--pt-sidebar-w) minmax(0, 1fr); min-height: 100vh; background: var(--pt-bg); }
.pt-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--pt-bg-2); border-right: 1px solid var(--pt-line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.pt-sidebar-org { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; color: var(--pt-text); text-decoration: none; }
.pt-sidebar-org img { width: 26px; height: 26px; border-radius: 6px; flex: none; }
.pt-sidebar-org b { display: block; font-size: 13.5px; line-height: 1.2; }
.pt-sidebar-org span { display: block; font-size: 12px; color: var(--pt-faint); }
.pt-search-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 32px; padding: 0 8px 0 10px; margin-bottom: 10px; border: 1px solid var(--pt-line-2); border-radius: 7px; background: var(--pt-panel); color: var(--pt-faint); font: 13px var(--pt-sans); cursor: pointer; text-align: left; }
.pt-search-trigger:hover { border-color: var(--pt-faint); }
.pt-nav-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; color: var(--pt-muted); font-size: 13.5px; text-decoration: none; }
.pt-nav-link svg { width: 16px; height: 16px; flex: none; opacity: .85; }
.pt-nav-link:hover { background: var(--pt-raise); color: var(--pt-text); }
.pt-nav-link.is-active { background: var(--pt-raise); color: var(--pt-text); font-weight: 600; }
.pt-nav-link .pt-nav-count { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--pt-warn); background: var(--pt-warn-soft); padding: 0 7px; border-radius: 999px; }
.pt-nav-label { font-size: 11px; color: var(--pt-faint); letter-spacing: .08em; text-transform: uppercase; padding: 16px 10px 6px; }
.pt-sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 12px; }
.pt-main { min-width: 0; display: flex; flex-direction: column; }
.pt-topbar { display: none; }
.pt-page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 40px 64px; }
.pt-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.pt-page-head p { margin: 4px 0 0; color: var(--pt-muted); font-size: 13.5px; }

/* ---------- Search (command palette) ---------- */
.pt-palette-backdrop { position: fixed; inset: 0; z-index: 9000; background: rgba(5, 8, 14, .45); backdrop-filter: blur(2px); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.pt-palette-backdrop[hidden] { display: none; }
.pt-palette { width: 100%; max-width: 600px; background: var(--pt-panel); border: 1px solid var(--pt-line-2); border-radius: 12px; box-shadow: var(--pt-shadow-pop); overflow: hidden; }
.pt-palette input { width: 100%; height: 50px; border: 0; border-bottom: 1px solid var(--pt-line); padding: 0 18px; font: 15px var(--pt-sans); background: transparent; color: var(--pt-text); outline: none; }
.pt-palette-list { max-height: 50vh; overflow-y: auto; padding: 6px; margin: 0; list-style: none; }
.pt-palette-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 7px; color: var(--pt-text); text-decoration: none; font-size: 14px; cursor: pointer; }
.pt-palette-item small { color: var(--pt-faint); font-size: 12px; }
.pt-palette-item.is-active, .pt-palette-item:hover { background: var(--pt-raise); }
.pt-palette-empty { padding: 18px; color: var(--pt-faint); font-size: 13.5px; text-align: center; }

/* ---------- Animated grid (hero areas only) ---------- */
.pt-grid-bg { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
.pt-grid-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--pt-grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--pt-grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 25%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 25%, transparent 75%);
  animation: pt-grid-drift 24s linear infinite; }
.pt-grid-bg::after { content: ""; position: absolute; z-index: -1; pointer-events: none; left: 50%; top: -120px; width: 900px; height: 420px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--pt-glow), transparent); animation: pt-glow 9s ease-in-out infinite; }

/* ---------- Marketing ---------- */
.pt-mhead { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--pt-bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--pt-line); }
.pt-mhead-in { max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 60px; display: flex; align-items: center; gap: 32px; }
.pt-mhead-in img { height: 19px; display: block; }
.pt-mhead nav { display: flex; gap: 24px; font-size: 13.5px; }
.pt-mhead nav a { color: var(--pt-muted); text-decoration: none; }
.pt-mhead nav a:hover { color: var(--pt-text); }
.pt-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
img.pt-logo-light { display: block; } img.pt-logo-dark { display: none; }
.dark img.pt-logo-light { display: none; } .dark img.pt-logo-dark { display: block; }
.pt-mhead-in img.pt-logo-dark { display: none; } .dark .pt-mhead-in img.pt-logo-light { display: none; } .dark .pt-mhead-in img.pt-logo-dark { display: block; }

/* ---------- Motion ---------- */
@keyframes pt-spin { to { transform: rotate(360deg); } }
@keyframes pt-sheen { from { background-position: -200px 0; } to { background-position: calc(100% + 200px) 0; } }
@keyframes pt-grid-drift { from { background-position: 0 0, 0 0; } to { background-position: 0 56px, 56px 0; } }
@keyframes pt-glow { 0%, 100% { opacity: .7; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.06); } }
@keyframes pt-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .pt-grid-bg::before, .pt-grid-bg::after, .pt-progress.is-live > i, .pt-status.is-running::before { animation: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .pt-shell { grid-template-columns: 1fr; }
  .pt-sidebar { position: fixed; z-index: 60; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--pt-shadow-pop); }
  .pt-shell.is-nav-open .pt-sidebar { transform: none; }
  .pt-topbar { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--pt-line); background: var(--pt-bg-2); position: sticky; top: 0; z-index: 40; }
  .pt-page { padding: 20px 16px 48px; }
  .pt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-mhead nav { display: none; }
  .pt-mhead-in, .pt-wrap { padding: 0 16px; }
  .pt-hide-sm { display: none !important; }
}

/* =====================================================================
 * The real app frame (calculator/_navigation.html)
 * The sidebar is fixed and the page makes room for it with padding, so
 * every page gets it without changing its own layout, including the
 * pages that build their own <head>.
 * ===================================================================== */
body.pt-app { padding-left: var(--pt-sidebar-w); }
html.pt-rail body.pt-app { padding-left: 64px; }
.pt-appnav { position: fixed; left: 0; top: 0; bottom: 0; height: auto; width: var(--pt-sidebar-w); z-index: 45; }
html.pt-rail .pt-appnav { width: 64px; padding-left: 8px; padding-right: 8px; }
html.pt-rail .pt-appnav .pt-nav-text { display: none !important; }
html.pt-rail .pt-appnav .pt-nav-link, html.pt-rail .pt-appnav .pt-search-trigger { justify-content: center; padding-left: 0; padding-right: 0; }
html.pt-rail .pt-appnav .pt-sidebar-org { justify-content: center; padding-left: 0; padding-right: 0; }
html.pt-rail .pt-appnav .pt-nav-count { position: absolute; margin: 0; transform: translate(12px, -10px); }
html.pt-rail .pt-rail-toggle svg { transform: scaleX(-1); }
html.pt-rail .pt-running-card { padding: 10px 0; align-items: center; }
html.pt-rail .pt-running-top { justify-content: center; }

/* Pages that pinned a bar under the old 64px header now pin it to the top. */
body.pt-app .sticky.top-16 { top: 0 !important; }

.pt-sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pt-sidebar-top .pt-sidebar-org { flex: 1; min-width: 0; }
.pt-sidebar-org div { min-width: 0; }
.pt-sidebar-org b, .pt-sidebar-org span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-beta-pill { font: 700 10.5px/1 var(--pt-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--pt-warn); background: var(--pt-warn-soft); border: 1px solid color-mix(in srgb, var(--pt-warn) 35%, transparent); border-radius: 999px; padding: 4px 8px; cursor: pointer; margin: 0 4px 14px 0; flex: none; }
.pt-beta-pill:hover { border-color: var(--pt-warn); }
.pt-search-label { display: inline-flex; align-items: center; gap: 8px; }
.pt-search-label svg { width: 15px; height: 15px; flex: none; }
.pt-nav { display: flex; flex-direction: column; gap: 2px; }
.pt-nav-link { position: relative; width: 100%; background: none; border: 0; font-family: var(--pt-sans); cursor: pointer; text-align: left; }
.pt-nav-link .pt-nav-count.is-info { color: var(--pt-accent); background: var(--pt-accent-soft); }
.pt-nav-dev { color: var(--pt-bad); }
.pt-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--pt-navy); color: #fff; font: 700 11px/22px var(--pt-sans); text-align: center; flex: none; }
.dark .pt-avatar { background: var(--pt-accent); color: var(--pt-accent-ink); }
.pt-account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* Statements being read */
.pt-running { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 12px; }
.pt-running-card { display: flex; flex-direction: column; gap: 6px; padding: 10px 11px; border-radius: 9px; background: var(--pt-panel); border: 1px solid var(--pt-line); text-decoration: none; color: var(--pt-text); transition: border-color .12s; animation: pt-rise .3s ease both; }
.pt-running-card:hover { border-color: var(--pt-accent); }
.pt-running-card.is-waiting { border-color: color-mix(in srgb, var(--pt-warn) 45%, var(--pt-line)); }
.pt-running-card.is-here { border-color: var(--pt-accent); }
.pt-running-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pt-running-top .pt-status { font-size: 12px; }
.pt-running-pct { font-size: 12px; color: var(--pt-muted); }
.pt-running-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-running-card .pt-progress { height: 4px; }

/* Pop-up menus in the sidebar foot */
.pt-menu { position: relative; }
.pt-menu-pop { display: none; position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); min-width: 210px; padding: 6px; background: var(--pt-panel); border: 1px solid var(--pt-line-2); border-radius: 10px; box-shadow: var(--pt-shadow-pop); z-index: 70; }
.pt-menu.is-open .pt-menu-pop { display: block; animation: pt-rise .15s ease both; }
.pt-menu-pop a, .pt-menu-pop button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; font: 13.5px var(--pt-sans); color: var(--pt-text); background: none; border: 0; cursor: pointer; text-decoration: none; }
.pt-menu-pop a:hover, .pt-menu-pop button:hover { background: var(--pt-raise); }
.pt-menu-head { padding: 6px 10px 8px; font-size: 12px; color: var(--pt-faint); border-bottom: 1px solid var(--pt-line); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; }
.pt-menu-form { margin: 0; border-top: 1px solid var(--pt-line); margin-top: 4px; padding-top: 4px; }

/* Icon buttons, top bar, visitor header actions */
.pt-icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 0; background: none; color: var(--pt-muted); cursor: pointer; }
.pt-icon-btn:hover { background: var(--pt-raise); color: var(--pt-text); }
.pt-icon-btn svg { width: 19px; height: 19px; }
.pt-topbar-brand img { height: 16px; width: auto; }
.pt-mhead-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pt-mhead-in > a img { height: 19px; width: auto; }
.pt-scrim { display: none; }

/* Search palette footer */
.pt-palette-foot { display: flex; gap: 16px; padding: 8px 14px; border-top: 1px solid var(--pt-line); font-size: 11.5px; color: var(--pt-faint); }
.pt-palette input[type="search"]::-webkit-search-cancel-button { display: none; }

/* Phones held upright (signed-in pages only) */
.landscape-banner { display: none; }
.landscape-banner.dismissed { display: none !important; }
@media (max-width: 700px) and (orientation: portrait) {
  body.pt-app .landscape-banner:not(.dismissed) { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 12px; font-size: 13px; color: var(--pt-text); background: var(--pt-panel); border: 1px solid var(--pt-line-2); border-radius: 10px; box-shadow: var(--pt-shadow-pop); }
}

@media (max-width: 900px) {
  body.pt-app, html.pt-rail body.pt-app { padding-left: 0; }
  .pt-appnav, html.pt-rail .pt-appnav { width: 280px; z-index: 90; }
  html.pt-rail .pt-appnav .pt-nav-text { display: revert !important; }
  body.pt-nav-open .pt-appnav { transform: none; }
  body.pt-nav-open .pt-scrim { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(5, 8, 14, .45); }
  .pt-rail-toggle { display: none; }
  .pt-menu-pop { left: 0; right: 0; bottom: calc(100% + 6px); }
  body.pt-app .sticky.top-16 { top: 52px !important; }
}

/* Footer */
.pt-footer { margin-top: 64px; border-top: 1px solid var(--pt-line); background: var(--pt-bg); color: var(--pt-muted); font: 13px/1.6 var(--pt-sans); }
.pt-footer-in { max-width: 1200px; margin: 0 auto; padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px 40px; }
.pt-footer-brand img { height: 16px; width: auto; margin-bottom: 8px; }
.pt-footer-brand p { margin: 0; font-size: 12.5px; color: var(--pt-faint); }
.pt-footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.pt-footer-links a, .pt-footer-meta a { color: var(--pt-muted); text-decoration: none; }
.pt-footer-links a:hover, .pt-footer-meta a:hover { color: var(--pt-text); }
.pt-footer-meta { display: flex; align-items: center; gap: 14px; }
.pt-footer-meta button { background: none; border: 0; padding: 0; font: 12px var(--pt-mono); color: var(--pt-faint); cursor: pointer; }
.pt-footer-meta button:hover:not(:disabled) { color: var(--pt-text); text-decoration: underline; }
.pt-footer-meta button:disabled { cursor: default; }
@media (max-width: 900px) { .pt-footer-in { padding: 24px 16px; } }

/* =====================================================================
 * Landing page (calculator/landing.html)
 * ===================================================================== */
.pt-landing { background: var(--pt-bg); color: var(--pt-text); }
.pt-hero { padding: 88px 0 0; overflow: hidden; }
.pt-pill { display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--pt-muted); border: 1px solid var(--pt-line-2); border-radius: 999px; padding: 3px 12px 3px 4px; background: var(--pt-panel); }
.pt-pill b { background: var(--pt-accent-soft); color: var(--pt-accent); font-weight: 600; border-radius: 999px; padding: 1px 9px; font-size: 11.5px; }
.pt-hero-title { margin: 22px 0 20px; max-width: 19ch; }
.pt-cta { display: flex; gap: 10px; margin-top: 30px; align-items: center; flex-wrap: wrap; }
.pt-cta-note { color: var(--pt-faint); font-size: 13.5px; margin-left: 6px; }

.pt-frame { margin-top: 64px; border: 1px solid var(--pt-line-2); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--pt-bg-2); padding: 10px 10px 0; }
.pt-frame-in { border: 1px solid var(--pt-line); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--pt-panel); display: grid; grid-template-columns: 1fr 1.25fr; overflow: hidden; min-height: 330px; }
.pt-doc { background: #EEF0F3; color: #222; padding: 22px 24px; font: 11.5px/1.75 var(--pt-mono); border-right: 1px solid var(--pt-line); }
.pt-doc-title { font: 700 12px var(--pt-sans); margin-bottom: 10px; color: #111; }
.pt-doc-row { display: grid; grid-template-columns: 76px 1fr 52px 74px; gap: 6px; padding: 1px 4px; }
.pt-doc-row.is-hl { background: rgba(77, 168, 224, .22); outline: 1px solid rgba(29, 111, 176, .65); border-radius: 2px; }
.pt-rows { padding: 18px 20px; }
.pt-rows-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; }
.pt-rows-head span { color: var(--pt-faint); }
.pt-row { display: grid; grid-template-columns: 18px 88px 1fr 52px 92px; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 6px; font-size: 13px; border: 1px solid transparent; }
.pt-row.is-current { background: var(--pt-raise); border-color: var(--pt-line-2); }
.pt-row em { font-style: normal; font-size: 11px; font-weight: 700; margin-left: 4px; }
.pt-row em.is-buy { color: var(--pt-accent); } .pt-row em.is-sell { color: var(--pt-warn); }
.pt-tick { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--pt-line-2); }
.pt-tick.is-done { background: var(--pt-ok); border-color: var(--pt-ok); }
.pt-amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

.pt-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--pt-line); border-bottom: 1px solid var(--pt-line); }
.pt-facts > div { padding: 26px 24px; border-left: 1px solid var(--pt-line); }
.pt-facts > div:first-child { border-left: 0; padding-left: 0; }
.pt-facts b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.pt-facts p { margin: 0; color: var(--pt-muted); font-size: 13.5px; }

.pt-section { padding: 96px 0; }
.pt-band { background: var(--pt-bg-2); border-top: 1px solid var(--pt-line); border-bottom: 1px solid var(--pt-line); }
.pt-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.pt-h-section { font: 650 clamp(28px, 3.2vw, 36px)/1.12 var(--pt-sans); letter-spacing: -0.03em; margin: 12px 0 0; max-width: 20ch; text-wrap: balance; color: var(--pt-text); }
.pt-section-lede { margin: 14px 0 0; color: var(--pt-muted); font-size: 16px; max-width: 58ch; }
.pt-bodies { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 28px; font-size: 12.5px; color: var(--pt-faint); }
.pt-bodies b { letter-spacing: .12em; color: var(--pt-muted); font-weight: 600; }
.pt-steps { list-style: none; margin: 0; padding: 0; }
.pt-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--pt-line); }
.pt-steps li:first-child { border-top: 0; padding-top: 4px; }
.pt-steps i { font: 600 12px var(--pt-mono); color: var(--pt-accent); font-style: normal; padding-top: 3px; }
.pt-steps b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.pt-steps p { margin: 0; color: var(--pt-muted); font-size: 14.5px; }

.pt-problems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid var(--pt-line); }
.pt-problems > div { padding: 22px 28px 22px 0; border-bottom: 1px solid var(--pt-line); }
.pt-problems > div:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--pt-line); }
.pt-problems b { display: block; font-size: 15px; margin-bottom: 6px; }
.pt-problems p { margin: 0; color: var(--pt-muted); font-size: 14.5px; }
.pt-problems-close { margin: 24px 0 0; font-weight: 600; font-size: 15px; }

.pt-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 40px; background: var(--pt-line); border: 1px solid var(--pt-line); border-radius: 12px; overflow: hidden; }
.pt-features > div { background: var(--pt-panel); padding: 20px 22px; }
.pt-features b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.pt-features p { margin: 0; color: var(--pt-muted); font-size: 13.5px; }

.pt-beta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pt-checks { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pt-checks li { position: relative; padding-left: 24px; font-size: 14px; }
.pt-checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--pt-ok-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pt-ok) 40%, transparent); }
.pt-checks li::after { content: ""; position: absolute; left: 4.5px; top: 7px; width: 5px; height: 3px; border-left: 1.5px solid var(--pt-ok); border-bottom: 1.5px solid var(--pt-ok); transform: rotate(-45deg); }
.pt-checks b { display: block; font-weight: 600; }
.pt-checks span { display: block; color: var(--pt-muted); font-size: 13px; margin-top: 2px; }
.pt-close { border-top: 1px solid var(--pt-line); }

@media (max-width: 900px) {
  .pt-hero { padding-top: 48px; }
  .pt-frame-in { grid-template-columns: 1fr; } .pt-doc { display: none; }
  .pt-row { grid-template-columns: 18px minmax(0, 1fr) 84px; } .pt-row > span:nth-child(2), .pt-row > span:nth-child(4) { display: none; }
  .pt-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pt-facts > div { border-left: 0; padding: 18px 12px 18px 0; }
  .pt-section { padding: 64px 0; }
  .pt-two, .pt-beta-grid { grid-template-columns: 1fr; gap: 28px; }
  .pt-problems, .pt-features { grid-template-columns: 1fr; }
  .pt-problems > div:nth-child(even) { padding-left: 0; border-left: 0; }
}
/* In the collapsed rail the menus open to the right; the rail does not scroll. */
html.pt-rail .pt-appnav { overflow: visible; }
html.pt-rail .pt-menu-pop { left: calc(100% + 10px); right: auto; bottom: 0; min-width: 230px; }
@media (max-width: 900px) { html.pt-rail .pt-appnav { overflow-y: auto; } html.pt-rail .pt-menu-pop { left: 0; right: 0; bottom: calc(100% + 6px); } }

/* Tips ("?" beside a label, text in a bubble): the Console look.
 * The component's markup, class names and the data-tips switch are owned by
 * base.html, partials/_tips.html, upload_v2.html and cfd_review.html; these
 * rules only restyle it, and win because this stylesheet loads after them
 * on every page (it comes in with the navigation). */
.pt .tooltip-icon { width: 16px; height: 16px; line-height: 15px; font: 600 10.5px/15px var(--pt-sans); color: var(--pt-muted); background: var(--pt-panel); border: 1px solid var(--pt-line-2); border-radius: 50%; text-align: center; margin-left: 5px; vertical-align: 1px; transition: color .12s, border-color .12s; }
.pt .tooltip-icon:hover, .pt .tooltip-icon:focus-visible { color: var(--pt-accent); border-color: var(--pt-accent); outline: none; }
.dark .pt .tooltip-icon, .dark.pt .tooltip-icon { background: var(--pt-raise); }
.js-portal-tooltip { font-family: var(--pt-sans) !important; background: var(--pt-text) !important; color: var(--pt-bg) !important; border-radius: 8px !important; padding: 8px 11px !important; font-size: 13px !important; line-height: 1.45 !important; box-shadow: var(--pt-shadow-pop) !important; max-width: 320px; }
.dark .js-portal-tooltip { background: var(--pt-raise) !important; color: var(--pt-text) !important; border: 1px solid var(--pt-line-2); }

/* =====================================================================
 * Dashboard (calculator/dashboard.html)
 * ===================================================================== */
.pt-dash .pt-page-head h1 { font-size: 26px; }
.pt-dash-deadline { color: var(--pt-text); font-weight: 650; }
.pt-dash-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pt-dash-notice { align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pt-dash-notice b { display: block; font-size: 14px; }
.pt-dash-notice p { margin: 2px 0 0; color: var(--pt-muted); font-size: 13px; }
.pt-dash-gs { margin-bottom: 20px; }
.pt-gs-steps { list-style: none; margin: 0; padding: 4px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pt-gs-steps li { display: flex; gap: 12px; padding: 16px 20px; border-left: 1px solid var(--pt-line); }
.pt-gs-steps li:first-child { border-left: 0; }
.pt-gs-steps h3 { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; color: var(--pt-text); }
.pt-gs-steps p { margin: 0 0 8px; font-size: 12.5px; color: var(--pt-muted); line-height: 1.5; }
.pt-gs-steps .pt-link { font-size: 13px; }
.pt-gs-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--pt-line-2); display: grid; place-items: center; font: 600 11.5px var(--pt-sans); color: var(--pt-muted); }
.pt-gs-steps li.is-done .pt-gs-mark { background: var(--pt-ok); border-color: var(--pt-ok); color: #fff; }
.dark .pt-gs-steps li.is-done .pt-gs-mark { color: #06150C; }
.pt-gs-mark svg { width: 13px; height: 13px; }
.pt-gs-steps li.is-done h3 { color: var(--pt-muted); }
.pt-dash-kpis { margin-bottom: 20px; }
.pt-dash-kpis button.pt-kpi { text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.pt-dash-kpis button.pt-kpi:hover { border-color: var(--pt-accent); }
.pt-kpi-label > span { display: inline-flex; align-items: center; }
.pt-dash-clients { overflow: hidden; }
.pt-dash-tabsrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--pt-line); }
.pt-dash-tabsrow .pt-tabs { border-bottom: 0; }
.pt-dash-all { font-size: 13px; padding-bottom: 10px; white-space: nowrap; }
.pt-dash-tablewrap { overflow-x: auto; }
.pt-dash .pt-table th:first-child, .pt-dash .pt-table td:first-child { padding-left: 20px; }
.pt-dash .pt-table th:last-child, .pt-dash .pt-table td:last-child { padding-right: 20px; }
.pt-dash .pt-table tr[hidden] { display: none; }
.pt-dash-name { color: var(--pt-text); text-decoration: none; }
.pt-dash-name:hover { color: var(--pt-accent); }
.pt-dash-empty { margin: 0; padding: 28px 20px; text-align: center; color: var(--pt-faint); font-size: 13.5px; }
.pt-dash-firstclient { padding: 28px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pt-dash-firstclient p { margin: 0 0 6px; font-size: 13.5px; }
.pt-dash-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 16px; }
.pt-dash-side .pt-card.is-warn { border-color: color-mix(in srgb, var(--pt-warn) 45%, var(--pt-line)); }
.pt-dash-side .pt-card.is-bad { border-color: color-mix(in srgb, var(--pt-bad) 45%, var(--pt-line)); }
.pt-dash-small { font-size: 13px; }
p.pt-dash-small { margin: 4px 0 0; }
.pt-dash-credit { margin: 14px 0 8px; font-size: 13px; }
.pt-dash-credit b { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; margin-right: 4px; }
.pt-progress.is-warn > i { background: var(--pt-warn); }
.pt-progress.is-bad > i { background: var(--pt-bad); }
.pt-dash-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pt-dash-linkbtn { background: none; border: 0; padding: 0; cursor: pointer; display: block; margin-top: 8px; font-family: inherit; }
.pt-dash-plan { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pt-dash-plan b { font-size: 16px; margin-right: 6px; }
@media (max-width: 1100px) { .pt-gs-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pt-gs-steps li:nth-child(3) { border-left: 0; } .pt-gs-steps li:nth-child(n+3) { border-top: 1px solid var(--pt-line); } }
@media (max-width: 900px) {
  .pt-gs-steps { grid-template-columns: 1fr; } .pt-gs-steps li { border-left: 0; border-top: 1px solid var(--pt-line); } .pt-gs-steps li:first-child { border-top: 0; }
  .pt-dash-tabsrow { padding: 0 12px; } .pt-dash-all { display: none; }
  .pt-dash-notice { flex-direction: column; align-items: flex-start; }
}

/* The open client and its tax years, under Clients in the sidebar */
.pt-nav-client { margin: 2px 0 6px 18px; padding-left: 12px; border-left: 1px solid var(--pt-line-2); display: flex; flex-direction: column; gap: 2px; }
.pt-nav-client-name { display: block; padding: 6px 8px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--pt-text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--pt-raise); }
.pt-nav-client-label { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--pt-faint); padding: 8px 8px 2px; }
.pt-nav-client-none { margin: 4px 8px; font-size: 12px; color: var(--pt-faint); }
.pt-nav-year summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--pt-text); }
.pt-nav-year summary::-webkit-details-marker { display: none; }
.pt-nav-year summary::before { content: ""; width: 5px; height: 5px; border-right: 1.5px solid var(--pt-faint); border-bottom: 1.5px solid var(--pt-faint); transform: rotate(-45deg); margin-right: 2px; transition: transform .15s; flex: none; }
.pt-nav-year[open] summary::before { transform: rotate(45deg); }
.pt-nav-year summary .pt-num { flex: 1; }
.pt-nav-year summary:hover { background: var(--pt-raise); }
.pt-nav-year a { display: block; padding: 4px 8px 4px 22px; font-size: 12.5px; color: var(--pt-muted); text-decoration: none; border-radius: 6px; }
.pt-nav-year a:hover { color: var(--pt-accent); background: var(--pt-raise); }
.pt-nav-year .pt-badge { font-size: 10.5px; padding: 0 7px; }

/* Client page header */
.pt-client-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 4px 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--pt-line); }
.pt-client-head .pt-h1 { font-size: 28px; }
.pt-client-meta { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13.5px; color: var(--pt-muted); }
.pt-client-actions { display: flex; gap: 8px; }
.pt-client-actions svg { width: 15px; height: 15px; }
.pt-crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--pt-faint); margin-bottom: 14px; }
.pt-crumbs a { color: var(--pt-muted); text-decoration: none; }
.pt-crumbs a:hover { color: var(--pt-accent); }

/* =====================================================================
 * Results page (calculator/tax_results.html)
 * ===================================================================== */
.pt-results-head { padding: 2px 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--pt-line); }
.pt-results-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pt-results-title .pt-h1 { font-size: 28px; }
.pt-results-status { font-size: 11px; letter-spacing: .06em; padding: 2px 10px; }
.pt-results-meta { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13.5px; color: var(--pt-muted); }
.pt-results-meta span + span::before { content: "\00b7"; margin: 0 10px; color: var(--pt-faint); }
.pt-results-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; }
.pt-results-actions svg { width: 16px; height: 16px; }
.pt-figures { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 24px; background: var(--pt-panel); border: 1px solid var(--pt-line); border-radius: 12px; overflow: hidden; }
.pt-figure { padding: 18px 20px; border-left: 1px solid var(--pt-line); min-width: 0; }
.pt-figure:first-child { border-left: 0; }
.pt-figure.is-main { background: var(--pt-bg-2); }
.pt-figure-label { display: flex; align-items: center; font-size: 12.5px; color: var(--pt-muted); }
.pt-figure-value { margin-top: 6px; font: 650 24px/1.2 var(--pt-sans); letter-spacing: -0.02em; color: var(--pt-text); font-variant-numeric: tabular-nums; }
.pt-figure.is-main .pt-figure-value { font-size: 34px; }
.pt-figure-sub { margin-top: 4px; font-size: 12px; color: var(--pt-faint); }
.pt-results-notice { border-radius: 10px; border: 1px solid var(--pt-line); overflow: hidden; }
.pt-results-notice.is-warn { background: var(--pt-warn-soft); border-color: color-mix(in srgb, var(--pt-warn) 30%, transparent); }
.pt-results-notice h3 { color: var(--pt-text) !important; }
.pt-results-notice p, .pt-results-notice li, .pt-results-notice summary { color: var(--pt-text) !important; }
.pt-results-notice .text-amber-600, .pt-results-notice .text-amber-700 { color: var(--pt-muted) !important; }
.pt-results-finalise svg { width: 18px; height: 18px; }
@media (max-width: 1000px) { .pt-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pt-figure.is-main { grid-column: 1 / -1; } .pt-figure { border-left: 0; border-top: 1px solid var(--pt-line); } .pt-figure.is-main { border-top: 0; } }

/* Fixes after the 0.90.0 release (2 Dec 2026) */
/* Collapsible panel headers: a hover that works in both themes (the
   dark:hover Tailwind variant is not in the partial build). */
.pt-toggle-row { transition: background-color .12s; }
.pt-toggle-row:hover { background: var(--pt-raise); }
/* Visitor header on small screens: Sign in always shows; the other links
   move into a small menu. */
.pt-show-sm { display: none; }
.pt-mmenu { display: none; position: relative; }
.pt-mmenu summary { list-style: none; }
.pt-mmenu summary::-webkit-details-marker { display: none; }
.pt-mmenu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 6px; background: var(--pt-panel); border: 1px solid var(--pt-line-2); border-radius: 10px; box-shadow: var(--pt-shadow-pop); display: flex; flex-direction: column; z-index: 70; }
.pt-mmenu-pop a { padding: 9px 10px; border-radius: 6px; color: var(--pt-text); text-decoration: none; font-size: 14px; }
.pt-mmenu-pop a:hover { background: var(--pt-raise); }
@media (max-width: 900px) {
  .pt-show-sm { display: inline; }
  .pt-mmenu { display: block; }
  .pt-mhead-in { gap: 12px; }
  .pt-mhead-actions { gap: 6px; }
}
@media (max-width: 420px) { .pt-mhead-actions .pt-icon-btn[aria-label^="Switch"] { display: none; } }
/* The open client: a close button, and the year being viewed marked. */
.pt-nav-client-row { display: flex; align-items: center; gap: 4px; }
.pt-nav-client-row .pt-nav-client-name { flex: 1; min-width: 0; background: none; }
.pt-nav-client-row .pt-nav-client-name.is-active { background: var(--pt-raise); }
.pt-nav-client-close { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; color: var(--pt-faint); text-decoration: none; font-size: 16px; line-height: 1; }
.pt-nav-client-close:hover { background: var(--pt-raise); color: var(--pt-text); }
.pt-nav-year.is-current summary { background: var(--pt-raise); font-weight: 600; }
.pt-nav-year.is-current summary .pt-num { color: var(--pt-accent); }
/* Public pages built before the redesign (features, tour, pricing, help,
   cross-year rule): their gradient heroes and closing bands take the quiet
   Console surface, with text readable in both themes. */
.pt-legacy-band { background: var(--pt-bg-2) !important; border: 1px solid var(--pt-line); color: var(--pt-text); }
.pt-legacy-band.pt-legacy-top { border-width: 0 0 1px; }
.pt-legacy-band h1, .pt-legacy-band h2, .pt-legacy-band h3,
.pt-legacy-band .text-white, .pt-legacy-band [style*="color: #fff"], .pt-legacy-band [style*="color:#fff"] { color: var(--pt-text) !important; }
.pt-legacy-band p, .pt-legacy-band [class*="text-blue-1"], .pt-legacy-band [class*="text-indigo-1"],
.pt-legacy-band [style*="rgba(255,255,255"], .pt-legacy-band [style*="rgba(255, 255, 255"] { color: var(--pt-muted) !important; }
.pt-legacy-band .inline-block.rounded-full, .pt-legacy-band .rounded-full[style*="rgba(255"] { background: var(--pt-panel) !important; border: 1px solid var(--pt-line-2); color: var(--pt-muted) !important; }
.pt-legacy-band a[class*="bg-white"], .pt-legacy-band a[style*="background: #fff"], .pt-legacy-band a[style*="background:#fff"] { background: var(--pt-primary) !important; color: var(--pt-primary-ink) !important; }
.pt-legacy-top h1 { letter-spacing: -0.03em; }
/* Their in-page section menus stick below the visitor header, not under it. */
body.pt-public nav.sticky.top-0 { top: 60px; z-index: 40; }
body.pt-app nav.sticky.top-0 { top: 0; }
.pt-footer-brand a[href^="mailto"] { color: var(--pt-muted); text-decoration: none; }
.pt-footer-brand a[href^="mailto"]:hover { color: var(--pt-text); }
/* Phone fixes after the click-through review (2 Dec 2026) */
@media (max-width: 900px) {
  /* Long button labels wrap instead of pushing the page sideways. */
  .pt-cta .pt-btn, .pt-results-actions .pt-btn { white-space: normal; height: auto; min-height: 36px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
  /* Panel headers with actions on the right let the actions drop below. */
  .pt-toggle-row > .flex { flex-wrap: wrap; row-gap: 12px; }
  .pt-toggle-row > .flex > * { min-width: 0; }
}
@media (max-width: 900px) { .pt-toggle-row .flex.items-center.gap-3 { flex-wrap: wrap; row-gap: 8px; } }
/* Collapsed rail: the open client as one button with its years in a menu. */
.pt-nav-client-rail { display: none; }
html.pt-rail .pt-nav-client-rail { display: block; }
.pt-client-chip { width: 26px; height: 22px; border-radius: 6px; display: grid; place-items: center; font: 700 10.5px var(--pt-sans); background: var(--pt-accent-soft); color: var(--pt-accent); }
.pt-nav-client-rail .pt-menu-pop { max-height: 70vh; overflow-y: auto; }
a.pt-status { text-decoration: none; }
a.pt-status:hover { color: var(--pt-text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { html.pt-rail .pt-nav-client-rail { display: none; } }
html.pt-rail .pt-nav-client-rail .pt-menu-pop { top: 0; bottom: auto; }
