/* Taremark design system. Brand: Tare Navy #0F2A44, Line Orange #E0621A, Slate #3B4A5C,
   Mist #F4F6F8; Space Grotesk headings, Inter body. Skin colors (--brand, --brand-accent,
   --button, --link, ...) come from the page's <style> block, contrast-checked per skin. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #0F2A44; --orange: #E0621A; --slate: #3B4A5C; --mist: #F4F6F8; --ink: #0B1520;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --surface-0: #F4F6F8; --surface-1: #FFFFFF; --surface-2: #EEF2F6; --surface-3: #E4EAF0;
  --border: #DCE3EA; --border-strong: #C5CFD9; --grid: #E7ECF1;
  --text-primary: #0F2A44; --text-secondary: #3B4A5C; --text-muted: #5A6878;
  --tare: #0F2A44;
  --series-1: #257DE0; --series-2: #F47230;
  --warn-bg: #FFF4E8; --warn-border: #E0621A; --warn-text: #7A3300;
  --good: #0B7A28; --serious: #B3261E; --neutral: #5A6878;
  --hero-bg: #0F2A44; --hero-text: #FFFFFF; --hero-muted: #C9D5E2;
  --shadow-sm: 0 1px 2px rgba(15, 42, 68, .06), 0 1px 1px rgba(15, 42, 68, .04);
  --shadow-md: 0 8px 24px rgba(15, 42, 68, .10), 0 2px 6px rgba(15, 42, 68, .06);
  --shadow-lg: 0 24px 60px rgba(6, 18, 30, .28);
  --radius: 12px; --radius-sm: 8px;
  --focus: 0 0 0 3px rgba(224, 98, 26, .45);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface-0: #0B1520; --surface-1: #121D2A; --surface-2: #172434; --surface-3: #1E2D40;
    --border: #243447; --border-strong: #31445B; --grid: #1D2B3C;
    --text-primary: #EEF2F6; --text-secondary: #B4C1CE; --text-muted: #8E9DAD;
    --tare: #FFFFFF;
    --series-1: #338CED; --series-2: #E76624;
    --warn-bg: #2A1C10; --warn-border: #E0621A; --warn-text: #FFD2A8;
    --good: #57C873; --serious: #F2867F; --neutral: #8E9DAD;
    --hero-bg: #0F2A44; --hero-muted: #B9C7D6;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-0: #0B1520; --surface-1: #121D2A; --surface-2: #172434; --surface-3: #1E2D40;
  --border: #243447; --border-strong: #31445B; --grid: #1D2B3C;
  --text-primary: #EEF2F6; --text-secondary: #B4C1CE; --text-muted: #8E9DAD;
  --tare: #FFFFFF;
  --series-1: #338CED; --series-2: #E76624;
  --warn-bg: #2A1C10; --warn-border: #E0621A; --warn-text: #FFD2A8;
  --good: #57C873; --serious: #F2867F; --neutral: #8E9DAD;
  --hero-bg: #0F2A44; --hero-muted: #B9C7D6;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface-0); color: var(--text-primary);
  font: 400 16px/1.6 var(--font-body); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.01em;
                 color: var(--text-primary); margin: 0 0 .5em; }
h1 { font-weight: 700; } h2 { font-weight: 650; } h3 { font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
img, svg { max-width: 100%; }
code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.tm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
         white-space: nowrap; }
.tm-skip { position: absolute; left: 16px; top: -48px; z-index: 50; padding: 8px 14px;
           background: var(--surface-1); color: var(--text-primary); border-radius: 8px; }
.tm-skip:focus { top: 12px; }
.tm-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tm-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* --- brand ------------------------------------------------------------------------- */
.tm-lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
             color: inherit; min-width: 0; }
.tm-mark { width: 34px; height: auto; flex: none; }
.tm-mark-xs { width: 15px; vertical-align: -2px; margin: 0 2px; }
.tm-wordmark { font: 700 24px/1 var(--font-head); letter-spacing: -.02em; }
.tm-tare { color: var(--tare); }
.tm-markword { color: var(--orange); }
.tm-partner { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.tm-partner-name { font: 700 20px/1.1 var(--font-head); letter-spacing: -.01em;
                   overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-powered { font-size: 12px; opacity: .85; white-space: nowrap; margin-top: 3px; }
.tm-partner-logo { height: 36px; width: auto; max-width: 140px; object-fit: contain;
                   border-radius: 6px; background: #fff; padding: 3px; }
.on-brand { --mark-box: var(--on-brand); --mark-line: var(--accent-on-brand);
            --tare: var(--on-brand); color: var(--on-brand); }
.on-dark { --mark-box: #FFFFFF; --mark-line: var(--orange); --tare: #FFFFFF; }

/* --- buttons and inputs -------------------------------------------------------------- */
.tm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
          min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
          font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
          white-space: nowrap; transition: transform .08s ease, filter .15s ease; }
.tm-btn:active { transform: translateY(1px); }
.tm-btn-primary { background: var(--button); color: var(--on-button); }
.tm-btn-primary:hover { filter: brightness(1.1); }
.tm-btn-accent { background: var(--orange); color: var(--ink); }
.tm-btn-accent:hover { filter: brightness(1.06); }
.tm-btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.tm-btn-ghost:hover { background: var(--surface-2); }
.tm-btn-danger { background: transparent; color: var(--serious); border-color: var(--serious); }
.tm-btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.tm-btn-link { background: none; border: 0; padding: 0; color: var(--link); font: inherit;
               text-decoration: underline; cursor: pointer; min-height: 0; }
.tm-input, .tm-select { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px;
                        border: 1px solid var(--border-strong); background: var(--surface-1);
                        color: var(--text-primary); font: 400 16px/1.3 var(--font-body); }
.tm-select { min-height: 40px; padding: 6px 10px; font-size: 14px; }
.tm-input::placeholder { color: var(--text-muted); }
.tm-label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.tm-field { margin: 0 0 16px; }
.tm-help { font-size: 13px; color: var(--text-muted); margin: 6px 0 0; }

/* --- landing --------------------------------------------------------------------------- */
.tm-hero { background: radial-gradient(1200px 600px at 85% -10%, #1C4469 0%, transparent 60%),
                       var(--hero-bg);
           color: var(--hero-text); position: relative; overflow: hidden; }
.tm-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
                  background: var(--orange); }
.tm-topnav { display: flex; align-items: center; justify-content: space-between; gap: 16px;
             padding: 18px 0; }
.tm-topnav nav { display: flex; align-items: center; gap: 26px; }
.tm-topnav nav a { color: var(--hero-muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.tm-topnav nav a:hover { color: #fff; }
.tm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
                gap: 56px; align-items: center; padding: 56px 0 88px; }
.tm-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #FFB585;
              font: 600 13px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
              margin: 0 0 18px; }
.tm-eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--orange); }
.tm-hero h1 { color: #fff; font-size: clamp(40px, 6vw, 64px); margin: 0 0 18px;
              letter-spacing: -.03em; }
.tm-hero h1 .accent { color: var(--orange); }
.tm-lede { font-size: 19px; line-height: 1.55; color: var(--hero-muted); max-width: 34em;
           margin: 0 0 30px; }
.tm-gate { max-width: 520px; }
.tm-gate-row { display: flex; gap: 10px; }
.tm-hero .tm-input { background: #fff; color: var(--navy); border-color: transparent; }
.tm-gate-note { font-size: 13px; color: var(--hero-muted); margin: 12px 0 0; }
.tm-gate-note a { color: #fff; }
.tm-gate-error { margin: 10px 0 0; color: #FFD2A8; font-weight: 600; font-size: 14px; }
.tm-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0;
            list-style: none; color: var(--hero-muted); font-size: 14px; }
.tm-proof li { display: flex; align-items: center; gap: 8px; }
.tm-proof li::before { content: ""; width: 8px; height: 8px; border-radius: 2px;
                       background: var(--orange); }

.tm-mock { background: var(--surface-1); color: var(--text-primary); border-radius: 16px;
           box-shadow: var(--shadow-lg); padding: 22px; border: 1px solid var(--border); }
.tm-mock-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
                margin: 0 0 16px; }
.tm-mock-title { font: 650 16px/1.2 var(--font-head); }
.tm-mock-sub { font-size: 12px; color: var(--text-muted); }
.tm-mock-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
.tm-mock-kpi { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; }
.tm-mock-kpi .k { font-size: 12px; color: var(--text-secondary); }
.tm-mock-kpi .v { font: 700 26px/1.1 var(--font-head); letter-spacing: -.02em;
                  font-variant-numeric: tabular-nums; margin-top: 4px; }
.tm-chip { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--font-body);
           padding: 5px 9px; border-radius: 999px; background: #E7F5EC; color: #0B6B24; }
.tm-mock-bars { display: grid; grid-template-columns: 28px 1fr; gap: 7px 10px; align-items: center;
                font-size: 12px; }
.tm-mock-bars .st { font-weight: 650; color: var(--text-secondary); }
.tm-mock-bars .pair { display: grid; gap: 3px; }
.tm-mock-bars .b { height: 8px; border-radius: 0 4px 4px 0; min-width: 2px; }
.tm-mock-bars .now { background: var(--series-1); }
.tm-mock-bars .alt { background: var(--series-2); }
.tm-mock-legend { display: flex; gap: 16px; margin: 14px 0 0; font-size: 12px; color: var(--text-muted); }
.tm-mock-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px;
                    margin-right: 6px; vertical-align: -1px; }
.tm-mock-foot { margin: 14px 0 0; padding: 10px 0 0; border-top: 1px solid var(--grid);
                font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between;
                gap: 10px; flex-wrap: wrap; }

.tm-section { padding: 88px 0; }
.tm-section-alt { background: var(--surface-1); border-top: 1px solid var(--border);
                  border-bottom: 1px solid var(--border); }
.tm-section-head { max-width: 46em; margin: 0 0 40px; }
.tm-kicker, .tm-section-head .tm-kicker { font: 600 13px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
             color: var(--accent-text); margin: 0 0 12px; }
.tm-section h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.02em; }
.tm-section-head p { font-size: 18px; color: var(--text-secondary); }
.tm-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tm-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius);
           padding: 24px; box-shadow: var(--shadow-sm); }
.tm-section-alt .tm-card { background: var(--surface-0); box-shadow: none; }
.tm-card h3 { font-size: 20px; margin: 0 0 8px; }
.tm-card p { color: var(--text-secondary); margin: 0; font-size: 15px; }
.tm-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
           background: var(--surface-2); margin: 0 0 16px; color: var(--text-primary); }
.tm-icon svg { width: 22px; height: 22px; }
.tm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
            counter-reset: step; list-style: none; padding: 0; margin: 0; }
.tm-steps li { position: relative; padding: 24px; border-radius: var(--radius);
               background: var(--surface-1); border: 1px solid var(--border); }
.tm-steps li::before { counter-increment: step; content: counter(step); display: grid;
                       place-items: center; width: 34px; height: 34px; border-radius: 50%;
                       background: var(--orange); color: var(--ink); font: 700 15px/1 var(--font-head);
                       margin: 0 0 16px; }
.tm-steps h3 { font-size: 19px; margin: 0 0 6px; }
.tm-steps p { margin: 0; color: var(--text-secondary); font-size: 15px; }
.tm-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
               background: var(--border); border: 1px solid var(--border); border-radius: var(--radius);
               overflow: hidden; }
.tm-feature { background: var(--surface-1); padding: 28px; }
.tm-feature h3 { font-size: 18px; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.tm-feature h3::before { content: ""; width: 14px; height: 3px; background: var(--orange);
                         border-radius: 2px; flex: none; }
.tm-feature p { margin: 0; color: var(--text-secondary); font-size: 15px; }
.tm-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tm-split p { color: var(--text-secondary); font-size: 17px; }
.tm-lockup-demo { border: 1.5px dashed var(--border-strong); border-radius: 16px; padding: 36px;
                  background: var(--surface-1); }
.tm-lockup-demo .name { font: 700 34px/1.1 var(--font-head); letter-spacing: -.02em; margin: 0 0 10px; }
.tm-lockup-demo .powered { color: var(--text-secondary); font-size: 15px; display: flex;
                           align-items: center; gap: 8px; }
.tm-lockup-demo .powered .tm-mark { width: 18px; }
.tm-swatches { display: flex; gap: 10px; margin: 22px 0 0; }
.tm-swatches span { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border); }
.tm-cta { background: var(--hero-bg); color: #fff; border-radius: 20px; padding: 48px;
          display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
          position: relative; overflow: hidden; }
.tm-cta::after { content: ""; position: absolute; right: 40px; bottom: 28px; width: 120px; height: 4px;
                 background: var(--orange); border-radius: 2px; }
.tm-cta h2 { color: #fff; margin: 0 0 10px; }
.tm-cta p { color: var(--hero-muted); margin: 0; font-size: 17px; }
.tm-cta .tm-input { background: #fff; color: var(--navy); border-color: transparent; }
.tm-site-footer { padding: 40px 0 48px; color: var(--text-muted); font-size: 14px; }
.tm-site-footer .row { display: flex; justify-content: space-between; align-items: center;
                       gap: 20px; flex-wrap: wrap; }
.tm-site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.tm-site-footer a { color: var(--text-secondary); }
.tm-powered-by { margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid var(--border);
                 display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tm-powered-by strong { color: var(--text-secondary); font-weight: 600; }

/* --- app shell ----------------------------------------------------------------------- */
.tm-appbar { background: var(--brand); position: sticky; top: 0; z-index: 20; }
.tm-appbar::after { content: ""; display: block; height: 3px; background: var(--brand-accent); }
.tm-appbar-row { display: flex; align-items: center; justify-content: space-between; gap: 14px;
                 min-height: 64px; }
.tm-appbar .tm-wordmark { font-size: 22px; }
.tm-appbar .tm-mark { width: 30px; }
.tm-appbar-tools { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tm-user { font-size: 13px; opacity: .85; max-width: 220px; overflow: hidden; text-overflow: ellipsis;
           white-space: nowrap; }
.tm-icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
               border: 1px solid color-mix(in srgb, var(--on-brand) 30%, transparent);
               background: transparent; color: var(--on-brand); cursor: pointer; }
.tm-icon-btn svg { width: 18px; height: 18px; }
.tm-icon-btn .sun { display: none; }
:root[data-theme="dark"] .tm-icon-btn .sun { display: block; }
:root[data-theme="dark"] .tm-icon-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tm-icon-btn .sun { display: block; }
  :root:not([data-theme="light"]) .tm-icon-btn .moon { display: none; }
}
.tm-appbar .tm-btn-out { min-height: 38px; padding: 0 12px; border-radius: 10px; font-size: 14px;
                         background: transparent; color: var(--on-brand);
                         border: 1px solid color-mix(in srgb, var(--on-brand) 30%, transparent); }
.tm-tabs { background: var(--surface-1); border-bottom: 1px solid var(--border); }
.tm-tabs nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tm-tabs nav::-webkit-scrollbar { display: none; }
.tm-tabs a { position: relative; padding: 14px 14px; color: var(--text-secondary); text-decoration: none;
             font-weight: 600; font-size: 15px; white-space: nowrap; }
.tm-tabs a:hover { color: var(--text-primary); }
.tm-tabs a[aria-current="page"] { color: var(--text-primary); }
.tm-tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px;
                                         bottom: -1px; height: 3px; border-radius: 3px 3px 0 0;
                                         background: var(--brand-accent); }
.tm-sandbox-note { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 10px 0;
                   font-size: 13px; color: var(--text-secondary); }
.tm-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
            font: 700 11px/1.4 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
            background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-border); }
.tm-main { padding: 8px 0 40px; }
.tm-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
                flex-wrap: wrap; margin: 18px 0 8px; }
.tm-page-head h1 { font-size: clamp(26px, 3.2vw, 34px); margin: 0 0 6px; letter-spacing: -.02em; }
.tm-page-head p { margin: 0; color: var(--text-secondary); }
.tm-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tm-flash { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; background: var(--surface-1);
            border: 1px solid var(--border); border-left: 4px solid var(--good); font-size: 15px; }
.tm-error { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; background: var(--surface-1);
            border: 1px solid var(--border); border-left: 4px solid var(--serious); font-size: 15px; }
.tm-panel { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius);
            padding: 22px; box-shadow: var(--shadow-sm); }
.tm-panel h2 { font-size: 19px; margin: 0 0 6px; }
.tm-panel .sub { color: var(--text-secondary); font-size: 14px; margin: 0 0 16px; }
.tm-grid-2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px;
             margin: 20px 0; }
.tm-list { margin: 0; padding-left: 18px; color: var(--text-secondary); font-size: 14px; }
.tm-list li { margin: 4px 0; }
.tm-drop { display: block; border: 2px dashed var(--border-strong); border-radius: 12px; padding: 26px;
           text-align: center; background: var(--surface-2); cursor: pointer; }
.tm-drop:hover { border-color: var(--brand-accent); }
.tm-drop strong { display: block; font-size: 16px; margin: 0 0 4px; }
.tm-drop input[type=file] { margin: 12px auto 0; max-width: 100%; font-size: 14px; }
.tm-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius);
                 background: var(--surface-1); }
.tm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tm-table th, .tm-table td { padding: 12px 14px; border-bottom: 1px solid var(--grid); text-align: left;
                             vertical-align: top; }
.tm-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted);
               font-weight: 600; background: var(--surface-2); white-space: nowrap; }
.tm-table tr:last-child td { border-bottom: 0; }
.tm-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-empty { text-align: center; padding: 48px 20px; color: var(--text-secondary); }
.tm-counts { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 0; }
.tm-count { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 10px;
            background: var(--surface-1); border: 1px solid var(--border); font-size: 14px; }
.tm-count b { font: 700 18px/1 var(--font-head); }
.tm-count.ok b { color: var(--good); } .tm-count.wait b { color: var(--accent-text); }
.tm-count.bad b { color: var(--serious); }
.tm-confirm { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px;
              padding: 18px 20px; border-top: 1px solid var(--grid); align-items: start; }
.tm-confirm:first-of-type { border-top: 0; }
.tm-confirm h3 { font: 600 16px/1.3 var(--font-body); margin: 0 0 4px; }
.tm-confirm .meta { color: var(--text-muted); font-size: 13px; margin: 0 0 8px; }
.tm-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.tm-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px;
          background: var(--surface-2); font-size: 13px; color: var(--text-primary); }
.tm-tag em { font-style: normal; color: var(--text-muted); }
.tm-tag.missing { background: var(--warn-bg); color: var(--warn-text); }
.tm-why { font-size: 13px; color: var(--text-muted); margin: 0; }
.tm-confirm details { grid-column: 1 / -1; }
.tm-confirm summary { cursor: pointer; color: var(--link); font-size: 14px; font-weight: 600; }
.tm-override { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; margin: 12px 0 0;
               align-items: end; }
.tm-basis { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600;
            background: var(--surface-2); color: var(--text-secondary); }
.tm-basis.matched { color: var(--good); } .tm-basis.alias { color: var(--series-1); }
.tm-preview { border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
              box-shadow: var(--shadow-md); }
.tm-preview-bar { background: var(--p-primary); color: var(--p-on); padding: 16px 18px;
                  display: flex; align-items: center; gap: 12px; }
.tm-preview-bar + i { display: block; height: 3px; background: var(--p-accent); }
.tm-preview-body { background: var(--surface-1); padding: 18px; display: grid; gap: 10px; }
.tm-preview-body .line { height: 10px; border-radius: 5px; background: var(--surface-3); }
.tm-preview-body .btn { justify-self: start; padding: 8px 14px; border-radius: 8px; font-size: 13px;
                        font-weight: 600; background: var(--p-primary); color: var(--p-on); }
.tm-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tm-color { display: flex; gap: 8px; align-items: center; }
.tm-color input[type=color] { width: 46px; height: 46px; padding: 3px; border-radius: 10px;
                              border: 1px solid var(--border-strong); background: var(--surface-1); }
.tm-app-footer { border-top: 1px solid var(--border); padding: 22px 0 34px; color: var(--text-muted);
                 font-size: 13px; }
.tm-app-footer .row { display: flex; justify-content: space-between; align-items: center; gap: 14px;
                      flex-wrap: wrap; }
.tm-app-footer form { display: inline; }
.tm-report { margin: 8px 0 0; }
.tm-report section { box-shadow: var(--shadow-sm); border-radius: var(--radius); }
.tm-report .wrap { max-width: none; padding: 0; }
.tm-report-notes { color: var(--text-muted); font-size: 13px; }
.tm-report-notes ul { padding-left: 18px; }
.tm-error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.tm-prose { max-width: 44em; }
.tm-prose h2 { font-size: 22px; margin: 32px 0 10px; }
.tm-prose li { margin: 6px 0; }

/* --- responsive ---------------------------------------------------------------------- */
@media (max-width: 960px) {
  .tm-hero-grid, .tm-split, .tm-cta { grid-template-columns: 1fr; }
  .tm-hero-grid { gap: 40px; padding: 32px 0 64px; }
  .tm-cards, .tm-steps, .tm-features { grid-template-columns: 1fr 1fr; }
  .tm-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 15px; }
  .tm-wrap { padding: 0 16px; }
  .tm-topnav nav a:not(.tm-btn) { display: none; }
  .tm-gate-row { flex-direction: column; }
  .tm-gate-row .tm-btn { width: 100%; }
  .tm-cards, .tm-steps, .tm-features { grid-template-columns: 1fr; }
  .tm-section { padding: 60px 0; }
  .tm-cta { padding: 28px 22px; }
  .tm-lede { font-size: 17px; }
  .tm-user { display: none; }
  .tm-appbar .tm-wordmark { font-size: 20px; }
  .tm-partner-name { font-size: 17px; max-width: 46vw; }
  .tm-partner-logo { height: 30px; max-width: 80px; }
  .tm-override { grid-template-columns: 1fr; }
  .tm-confirm { grid-template-columns: 1fr; }
  .tm-colors { grid-template-columns: 1fr; }
  .tm-mock { padding: 16px; }
  .tm-mock-kpi .v { font-size: 22px; }
}
.tm-hero .tm-flash { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .18); }
.tm-hero h1 .accent { display: block; }
.tm-chip { white-space: nowrap; }
.tm-mark.tm-mark-xs { width: 15px; }
@media (max-width: 680px) {
  .tm-tabs a { padding: 14px 10px; font-size: 14px; }
}
