/* ==========================================================================
   TraceHawk, "incident timeline" design system
   White paper, ink type, one signal colour that drains out as the page resolves.
   ========================================================================== */
:root {
    --paper: #ffffff;
    --paper-sunk: #f4f4f6;
    --card: #ffffff;

    --line: #e7e7ec;
    --line-strong: #d2d2da;
    --line-hair: rgba(11, 11, 16, 0.08);

    --text: #0b0b10;
    --body: #3b3b45;
    --muted: #64646f;
    --faint: #9a9aa6;

    /* "brand" is ink: buttons, resolved states, anything settled */
    --brand: #0b0b10;
    --brand-ink: #000000;
    --brand-soft: #f1f1f4;
    --brand-line: #d2d2da;

    /* the one colour: a live signal that cools down the page */
    --red: #ff2546;
    --red-ink: #d6002a;
    --red-soft: #ffe9ed;
    --red-line: #ffc4cd;
    --red-mid: #ffa0ad;
    /* middle of the incident: still hot, already handled */
    --amber: #ff7085;
    --amber-soft: #fff0f2;
    --amber-line: #ffd3da;

    /* legacy semantic aliases used by the app views */
    --accent: var(--brand);
    --accent-soft: var(--brand-soft);
    --danger: var(--red-ink);
    --danger-soft: var(--red-soft);
    --ok: var(--brand);
    --ok-soft: var(--brand-soft);
    --ignored: #64646f;
    --ignored-soft: #f1f1f4;

    --shadow: 0 1px 2px rgba(11, 11, 16, 0.05);
    --shadow-md: 0 2px 4px rgba(11, 11, 16, 0.04), 0 14px 28px -14px rgba(11, 11, 16, 0.14);
    --shadow-lg: 0 1px 1px rgba(11, 11, 16, 0.04), 0 28px 56px -20px rgba(11, 11, 16, 0.2);

    --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
    --mono: "Spline Sans Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --radius: 10px;
    --radius-lg: 14px;
    --rail: 132px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--text);
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #ffd8de; color: var(--text); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 3px; }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.num { font-variant-numeric: tabular-nums; }

/* label: the small monospace caption used all over the site */
.lab {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
}

/* ==========================================================================
   App chrome (workspace)
   ========================================================================== */
.topbar {
    height: 54px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 22px;
    position: sticky;
    top: 0;
    z-index: 20;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 650;
    letter-spacing: -0.03em;
    color: var(--text);
    font-size: 16px;
}
.brand:hover { text-decoration: none; }
.brand-logo { display: block; height: 30px; width: auto; }
.m-foot .brand-logo { height: 36px; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a {
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 7px;
    font-weight: 500;
    transition: background 0.14s ease, color 0.14s ease;
}
.nav a:hover { background: var(--paper-sunk); color: var(--text); text-decoration: none; }
.nav a.active { background: transparent; color: var(--text); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.top-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.top-meta form { margin: 0; }
.top-meta select, .field input, .field select, .field textarea, .filters select, .filters input[type="search"] {
    border: 1px solid var(--line-strong);
    background: #fff;
    border-radius: 8px;
    padding: 7px 10px;
    box-shadow: inset 0 1px 1px rgba(20, 19, 23, 0.03);
}
.field input:focus, .field select:focus, .field textarea:focus,
.tool select:focus, .key-line select:focus, .top-meta select:focus, .filters select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.top-meta select, .field select, .filters select, .tool select, .key-line select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 30px;
    cursor: pointer;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%2364646f' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 12px;
}
.top-meta select:hover, .field select:hover, .filters select:hover, .tool select:hover, .key-line select:hover {
    border-color: #b7b7c2;
}
.account-link { padding-left: 6px; padding-right: 10px; }
body.app { background: var(--paper-sunk); }
body.app .topbar { background: rgba(255, 255, 255, 0.92); }
.page { max-width: 1180px; margin: 0 auto; padding: 22px 20px 72px; }
.page-wide { max-width: 1240px; }
.page-narrow { max-width: 460px; }

.flash, .errors { border-radius: var(--radius); padding: 11px 14px; margin-bottom: 16px; }
.flash { background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-ink); }
.errors { background: var(--red-soft); border: 1px solid var(--red-line); color: var(--red-ink); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card { margin-top: 12px; }
.card-pad { padding: 16px 18px; }
.section-title {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
    margin: 0 0 10px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: #fff;
    padding: 9px 15px;
    font-weight: 550;
    font-size: 13.5px;
    cursor: pointer;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: transform 0.12s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.btn:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); box-shadow: var(--shadow); }
.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 1px 1px rgba(11, 11, 16, 0.2);
}
.btn-primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.btn-ink { background: var(--text); border-color: var(--text); color: var(--paper); }
.btn-ink:hover { background: #000; border-color: #000; color: var(--paper); }
.btn-quiet { border-color: transparent; background: transparent; color: var(--muted); box-shadow: none; }
.btn-quiet:hover { background: var(--paper-sunk); box-shadow: none; transform: none; }
.btn-danger { color: var(--red); }
.btn-lg { padding: 12px 20px; font-size: 14.5px; }
.btn .arrow { transition: transform 0.16s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ==========================================================================
   Workspace tables and issue views
   ========================================================================== */
.crumb-path { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 0 0 14px; font-size: 13px; color: var(--muted); min-width: 0; }
.crumb-path a { color: var(--muted); }
.crumb-path a:hover { color: var(--text); text-decoration: none; }
.crumb-path .here { color: var(--text); font-weight: 600; }
.crumb-path .sep { margin: 0 8px; color: var(--faint); }
.crumb-path .pill { margin-left: 10px; }
.board-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; }
.board-head .crumb-path { margin: 0; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.stat-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat-tile strong { display: block; font-size: 26px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-tile span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.stat-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.stat-split .dist-row { margin-top: 10px; grid-template-columns: minmax(0, 1fr) 88px auto; }
.stat-split .dist-key { text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-axis { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--mono); font-size: 10px; color: var(--faint); }
.key-once { margin-bottom: 12px; border-color: var(--red-line); background: var(--red-soft); }
.key-hint { margin: 0 0 6px; font-family: var(--mono); font-size: 14px; letter-spacing: 0.04em; }
.key-lines { margin-top: 8px; border-top: 1px solid var(--line); }
.key-line { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line-hair); }
.key-line-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.key-line select, .key-line input[type="date"] {
    height: 34px;
    width: 100%;
    max-width: 220px;
    border: 1px solid var(--line-strong);
    background: #fff;
    border-radius: 8px;
    padding: 0 10px;
}
.key-line .btn { height: 34px; padding: 0 14px; box-shadow: none; white-space: nowrap; }
.key-line .btn:hover { transform: none; box-shadow: none; background: var(--paper-sunk); }
.key-line .btn-danger:hover { background: var(--red-soft); }
.code-block { white-space: pre-wrap; font-family: var(--mono); font-size: 12px; background: var(--paper-sunk); padding: 12px; border-radius: 6px; margin: 0 0 10px; }
.board-head h1 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -0.03em; }
.board-count { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.toolbar { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 12px; flex-wrap: wrap; }
.tool { display: flex; flex-direction: column; gap: 4px; }
.tool > span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.tool select, .tool input[type="search"], .tool input[type="date"] {
    height: 34px;
    border: 1px solid var(--line-strong);
    background: #fff;
    border-radius: 8px;
    padding: 0 10px;
    min-width: 148px;
}
.tool-search { flex: 1; min-width: 180px; }
.tool-search input { width: 100%; }
.seg { display: flex; gap: 2px; margin-left: auto; height: 34px; align-items: stretch; }
.seg a {
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 550;
    border-bottom: 2px solid transparent;
}
.seg a:hover { color: var(--text); text-decoration: none; }
.seg a.on { color: var(--text); border-bottom-color: var(--red); }
.filters { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.filters input[type="search"] { min-width: 240px; }

table.grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
table.grid th {
    text-align: left;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: #fafafb;
}
table.grid td { padding: 12px 14px; border-bottom: 1px solid var(--line-hair); vertical-align: middle; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tbody tr:hover td { background: #fafafb; }
table.grid th.num, table.grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.issues td.when { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 13px; }
.issue-link { display: flex; flex-direction: column; gap: 1px; }
.issue-link:hover { text-decoration: none; }
.issue-type { font-family: var(--mono); font-size: 11px; color: var(--red-ink); }
.issue-title {
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.issue-link:hover .issue-title { color: var(--red-ink); }
.culprit { color: var(--muted); font-family: var(--mono); font-size: 11.5px; margin-top: 4px; display: flex; flex-wrap: nowrap; gap: 0 8px; min-width: 0; overflow: hidden; }
.culprit span { flex: none; }
.culprit span:last-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.culprit span:not(:last-child)::after { content: "·"; margin-left: 8px; color: var(--faint); }
.culprit-line { display: block; margin: 6px 0 0; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 12px; font-size: 13px; color: var(--muted); }
.pager-nav { display: inline-flex; gap: 6px; }
.pager-nav a, .pager-nav .off {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
}
.pager-nav a:hover { background: var(--paper-sunk); text-decoration: none; }
.pager-nav .off { color: var(--faint); background: var(--paper-sunk); }
table.issues th.triage, table.issues td.triage { width: 1%; white-space: nowrap; text-align: right; }
table.issues td.triage form { display: inline-flex; justify-content: flex-end; }
.triage-pick {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 30px;
    border-radius: 999px;
    background: #f1f1f4;
    color: var(--muted);
}
.triage-pick select {
    appearance: none;
    -webkit-appearance: none;
    height: 30px;
    border: 0;
    background: transparent;
    border-radius: 999px;
    color: transparent;
    cursor: pointer;
    padding: 0 26px 0 34px;
    width: 62px;
}
.triage-pick select:focus { outline: 2px solid var(--text); outline-offset: 1px; }
.triage-pick select option { color: var(--text); }
.triage-pick::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 12px;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    pointer-events: none;
}
.triage-pick .bars {
    position: absolute;
    left: 11px;
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    pointer-events: none;
}
.triage-pick .bars i {
    display: block;
    width: 3px;
    border-radius: 1px;
    background: #c8c8d0;
}
.triage-pick .bars i:nth-child(1) { height: 5px; }
.triage-pick .bars i:nth-child(2) { height: 8px; }
.triage-pick .bars i:nth-child(3) { height: 12px; }
.triage-pick.priority-low .bars i:nth-child(1),
.triage-pick.priority-medium .bars i:nth-child(-n+2),
.triage-pick.priority-high .bars i { background: var(--text); }
.triage-pick.priority-high .bars i { background: var(--red-ink); }
.triage-pick .bars,
.triage-pick .face { z-index: 1; }
.triage-pick .face {
    position: absolute;
    left: 5px;
    width: 20px;
    height: 20px;
    border-radius: 99px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.triage-pick .face:empty { background: #e4e4ea; }
.triage-pick:not(.side-pick) { width: 62px; }
.triage-pick.assignee-pick select { padding-left: 30px; }
.triage-pick.side-pick { width: 100%; }
.triage-pick.side-pick select { width: 100%; color: var(--text); text-align: left; padding-left: 36px; padding-right: 28px; }

.avatar {
    --avatar: #3b3b45;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 99px;
    background: color-mix(in srgb, var(--avatar) 28%, #fff);
    color: var(--avatar);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--avatar) 42%, transparent);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: -0.04em;
    line-height: 1;
    user-select: none;
}
.avatar-sm { width: 22px; height: 22px; font-size: 9px; }
.avatar-xs { width: 20px; height: 20px; font-size: 8.5px; }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person-name { font-weight: 600; }
.person .member-edit { flex: 1; min-width: 0; }

.menu { position: relative; display: inline-block; max-width: 100%; vertical-align: middle; }
.field .menu, .tool .menu, .key-line .menu, .triage-pick.side-pick .menu { display: block; }
.field .menu, .triage-pick.side-pick .menu { width: 100%; }
.tool .menu { min-width: 148px; }
.key-line .menu { width: 100%; max-width: 220px; }
.menu-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 1px 1px rgba(20, 19, 23, 0.03);
    cursor: pointer;
    text-align: left;
    color: var(--text);
    font-weight: 500;
    font-size: 13.5px;
}
.tool .menu-btn, .key-line .menu-btn, .top-meta .menu-btn { height: 34px; }
.top-meta .menu-btn { width: auto; color: var(--muted); }
.menu-btn:hover { border-color: #b7b7c2; }
.menu.is-open .menu-btn,
.menu-btn:focus-visible {
    outline: none;
    border-color: var(--text);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.menu-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-chevron {
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    flex: none;
    color: var(--muted);
}
.menu.is-open .menu-chevron { margin-top: 3px; transform: rotate(225deg); }
.menu-pop {
    position: fixed;
    z-index: 40;
    max-height: 280px;
    overflow: auto;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}
.menu-opt {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    padding: 6px 28px 6px 8px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text);
    font-size: 13.5px;
    text-align: left;
    cursor: pointer;
}
.menu-opt span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-opt.is-active, .menu-opt:hover { background: var(--paper-sunk); }
.menu-opt.is-chosen { font-weight: 650; }
.menu-opt.is-chosen::after {
    content: "";
    position: absolute;
    right: 11px;
    top: 50%;
    width: 5px;
    height: 9px;
    border-right: 1.6px solid var(--text);
    border-bottom: 1.6px solid var(--text);
    transform: translateY(-65%) rotate(45deg);
}
.menu-opt:disabled { color: var(--faint); cursor: default; }
.triage-pick.side-pick select.menu-native,
.triage-pick select.menu-native,
select.menu-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    pointer-events: none;
}
.triage-pick:not(.side-pick) .menu { position: absolute; inset: 0; }
.triage-pick:not(.side-pick) .menu-btn {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.triage-pick:not(.side-pick) .menu-label,
.triage-pick .menu-chevron { display: none; }
.triage-pick:not(.side-pick) .menu-btn:focus-visible,
.triage-pick:not(.side-pick) .menu.is-open .menu-btn {
    outline: 2px solid var(--text);
    outline-offset: 1px;
    border-color: transparent;
    box-shadow: none;
}
.triage-pick.side-pick .menu-btn {
    height: 30px;
    padding: 0 26px 0 36px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
}
.triage-pick.side-pick .menu.is-open .menu-btn,
.triage-pick.side-pick .menu-btn:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 1px;
    box-shadow: none;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 11.5px;
    font-weight: 600;
    background: var(--ignored-soft);
    color: var(--ignored);
}
.pill-error, .pill-unresolved { background: var(--red-soft); color: var(--red); }
.pill-resolved { background: var(--brand-soft); color: var(--brand); }
.level-dot {
    width: 7px; height: 7px; border-radius: 99px; background: var(--red); display: inline-block; margin-right: 9px;
    box-shadow: 0 0 0 3px var(--red-soft);
}
.spark { display: flex; align-items: flex-end; gap: 2px; height: 28px; width: 108px; }
.spark i { display: block; flex: 1; background: transparent; border-radius: 1px; min-height: 0; }
.spark i.on { background: var(--red); opacity: 0.4; min-height: 2px; }
.spark i.hot { opacity: 1; }

.issue-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.issue-copy { min-width: 0; flex: 1; }
.kicker { color: var(--muted); font-size: 12.5px; display: flex; gap: 10px; align-items: center; margin-bottom: 8px; font-family: var(--mono); }
.kicker a { color: var(--muted); }
.exc { margin: 0 0 4px; font-family: var(--mono); font-size: 12.5px; color: var(--red-ink); word-break: break-word; }
.exc-quiet { color: var(--text); font-size: 12.5px; }
.issue-head h1 { font-size: 22px; line-height: 1.3; font-weight: 650; margin: 0; letter-spacing: -0.03em; }
.counts { display: flex; gap: 20px; margin-top: 12px; }
.counts strong { display: block; font-size: 19px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.counts span { color: var(--muted); font-size: 10.5px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }
.actions { display: flex; flex: none; gap: 8px; align-items: center; flex-wrap: nowrap; }
.actions form { margin: 0; }
.actions .btn { height: 34px; padding: 0 14px; white-space: nowrap; box-shadow: none; }
.actions .btn:hover { transform: none; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 288px; gap: 16px; margin-top: 16px; }
.side .card { padding: 14px 14px 6px; }
.side dl { margin: 0 0 12px; }
.side dt { color: var(--faint); font-size: 10.5px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }
.side dd { margin: 3px 0 10px; }
.activity { list-style: none; margin: 0; padding: 0 0 8px; }
.activity li { padding: 8px 0; border-top: 1px solid var(--line-hair); font-size: 13px; }
.activity time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--faint);
    font-size: 11.5px;
    font-family: var(--mono);
}
.activity .when { flex: none; width: 14ch; }
.activity .who {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-family: var(--sans);
    letter-spacing: 0;
}

.chart-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 22px; align-items: end; }
.chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 92px;
    padding-top: 8px;
    background-image: repeating-linear-gradient(to top, var(--line-hair) 0 1px, transparent 1px 23px);
}
.chart-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.chart-bar { width: 100%; background: var(--red); opacity: 0.85; border-radius: 2px 2px 0 0; min-height: 0; }
.overview { padding: 14px 16px 16px; margin-top: 16px; }
.overview-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 12px; }
.dist { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-bottom: 4px; }
.dist-row { display: grid; grid-template-columns: 78px 64px minmax(0, 1fr); gap: 8px; align-items: center; }
.dist-key { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.dist-track { display: flex; height: 6px; border-radius: 99px; background: var(--paper-sunk); overflow: hidden; }
.dist-track i { display: block; height: 6px; background: var(--red); }
.dist-track i.alt { background: #ffb3bf; }
.dist-val { font-size: 12px; color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dist-val b { font-weight: 600; color: var(--text); margin-left: 4px; }
.measures { display: flex; gap: 28px; margin: 0 0 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.measures div { min-width: 88px; }
.measures dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.measures dd { margin: 3px 0 0; font-size: 16px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.trace-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.trace-head .section-title { margin: 0; }
.trace-id { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.span-mark { position: absolute; right: 0; top: -3px; width: 8px; height: 16px; border-radius: 99px; background: var(--red); }
.hl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin: 0 0 12px; }
.hl div { min-width: 0; }
.hl dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.hl dd { margin: 2px 0 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stack-head { border-bottom: 1px solid var(--line-hair); }
.stack > :first-child { border-top: 0; }
.stack-frame { border-top: 1px solid var(--line-hair); background: #fff; }
.stack-loc {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px 10px;
}
.stack-title, .stack-where {
    min-width: 0;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.5;
    word-break: break-word;
    color: var(--text);
}
.stack-in { font-family: var(--sans); color: var(--muted); margin: 0 0.35em; }
.stack-fn { color: var(--text); }
.stack-where .label { font-family: var(--sans); color: var(--muted); margin-right: 0.35em; }
.in-app {
    flex: none;
    margin-top: 1px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.01em;
    color: #5b35c5;
    background: #f4efff;
    border: 1px solid #e4d9ff;
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
}
.ctx {
    margin: 0;
    background: #fbfbfd;
    border-top: 1px solid var(--line-hair);
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.7;
}
.ctx div { display: grid; grid-template-columns: 52px minmax(0, 1fr); min-width: 100%; width: max-content; }
.ctx .ln { color: #b0b0ba; text-align: right; padding: 0 14px 0 10px; user-select: none; }
.ctx .code { white-space: pre; tab-size: 4; padding-right: 16px; }
.ctx .hit { background: #fff0f3; box-shadow: inset 3px 0 0 var(--red); }
.ctx .hit .ln { color: var(--red-ink); }
.tok-kw { color: #6f42c1; }
.tok-str { color: #cf222e; }
.tok-fn { color: #0550ae; }
.tok-var { color: #953800; }
.tok-num { color: #0a7a3e; }
.tok-cmt { color: #6e7781; font-style: italic; }
.stack-vars { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line-hair); background: #fff; }
.stack-vars td { padding: 7px 14px; border-bottom: 1px solid var(--line-hair); vertical-align: top; font-size: 12.5px; }
.stack-vars tr:last-child td { border-bottom: 0; }
.stack-vars td:first-child { width: 28%; max-width: 220px; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.stack-vars td:last-child { font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.stack-kind { color: var(--faint); margin-right: 6px; }
.stack-fold { border-top: 1px solid var(--line-hair); background: #f7f7f9; color: var(--muted); font-size: 12.5px; }
.stack-fold summary {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 8px 14px;
    list-style: none;
}
.stack-fold summary::-webkit-details-marker { display: none; }
.stack-fold summary .show-more { color: #0550ae; font-weight: 650; white-space: nowrap; font-family: var(--sans); font-size: 12.5px; }
.stack-fold summary .show-more::after { content: " ›"; font-weight: 500; }
.stack-fold[open] summary .show-more { color: var(--muted); }
.stack-hidden {
    padding: 7px 14px 7px 22px;
    border-top: 1px solid var(--line-hair);
    background: #fff;
    font-family: var(--mono);
    font-size: 12px;
    word-break: break-word;
}
.req-line { margin: 0 0 8px; font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.method { display: inline-block; margin-right: 8px; font-weight: 650; color: var(--red-ink); }
.req-body { margin: 10px 0 0; padding: 10px 12px; background: var(--paper-sunk); border-radius: 6px; font-family: var(--mono); font-size: 12px; white-space: pre-wrap; }
.chart-col.release::after {
    content: "";
    width: 7px; height: 7px; border-radius: 99px;
    background: var(--amber);
    box-shadow: 0 0 0 3px var(--amber-soft);
    position: absolute; top: -3px;
}
.tag-chips { display: flex; flex-direction: column; gap: 8px; }
.tag-chip { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; }
.tag-chip b { display: block; font-size: 10.5px; color: var(--faint); font-weight: 500; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }
.periods { display: flex; gap: 2px; background: var(--paper-sunk); padding: 3px; border-radius: 9px; }
.periods a { color: var(--muted); padding: 4px 9px; border-radius: 7px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.periods a.on { background: #fff; color: var(--text); text-decoration: none; box-shadow: var(--shadow); }

.highlights { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.highlights span { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; box-shadow: var(--shadow); }
.highlights em { font-style: normal; color: var(--faint); margin-right: 6px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; }


.crumb { display: grid; grid-template-columns: 10px 110px minmax(0, 1fr) 72px; gap: 8px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line-hair); font-size: 13px; }
.crumb .when { font-family: var(--mono); font-size: 11.5px; color: var(--faint); text-align: right; }
.crumb .kind { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.crumb-mark { width: 8px; height: 8px; border-radius: 99px; margin-top: 5px; background: var(--faint); }
.crumb-mark.error { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.crumb-mark.query { background: var(--text); }
.crumb-mark.http { background: #7a7a86; }
.crumb-mark.nav { background: #1f8a4c; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.ev-chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px 0 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-family: var(--mono); font-size: 12px; color: var(--body); }
.ev-chip svg { width: 16px; height: 16px; color: var(--text); flex: none; }
.meta-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; align-items: stretch; }
.meta-split > .card { margin-top: 0; }
.meta-card { height: 100%; }
.meta-card .kv { table-layout: fixed; }
.meta-card .kv td { height: 36px; vertical-align: middle; padding: 0 0 0 0; }
.meta-card .kv td:first-child { width: 132px; color: var(--faint); }
.ctx-group + .ctx-group { margin-top: 16px; }
.ctx-group-name { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin: 0 0 2px; height: 18px; }
.req-block { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.req-label { padding: 8px 12px; background: var(--paper-sunk); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.req-block .kv td { padding: 7px 12px; }
.req-block .kv tr:nth-child(even) td { background: #fafafb; }
.waterfall { padding: 4px 0 8px; }
.span-row { display: grid; grid-template-columns: minmax(140px, 240px) 1fr 72px; gap: 8px; align-items: center; margin: 6px 0; font-size: 12px; }
.span-track { background: var(--paper-sunk); border-radius: 4px; height: 10px; position: relative; }
.span-bar { position: absolute; top: 0; height: 10px; background: var(--brand); border-radius: 4px; }
.span-row.error .span-bar { background: var(--red); }
.kv { width: 100%; border-collapse: collapse; }
.kv td { padding: 7px 0; border-bottom: 1px solid var(--line-hair); vertical-align: top; }
.kv td:first-child { color: var(--muted); width: 140px; font-family: var(--mono); font-size: 11.5px; }

.member-edit { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(180px, 1.6fr) auto; gap: 8px; align-items: center; }
.member-edit input {
    height: 34px;
    width: 100%;
    border: 1px solid var(--line-strong);
    background: #fff;
    border-radius: 8px;
    padding: 0 10px;
}
.member-edit input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.qr { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin: 0 0 12px; }
.secret { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; word-break: break-all; }
.recovery-codes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-family: var(--mono); font-size: 13px; }
.field label { font-size: 13px; font-weight: 600; }
.field textarea { min-height: 88px; resize: vertical; }
.auth-card { padding: 26px; box-shadow: var(--shadow-md); }
.auth-card h1 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.025em; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46%); }
.auth-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 28px 20px;
    position: relative;
}
.auth-main > .brand { position: absolute; top: 26px; left: 30px; }
.auth-main .page { width: 100%; max-width: 470px; padding: 0; }
.auth-foot { position: absolute; bottom: 26px; left: 30px; font-size: 13px; }
.auth-foot a { color: var(--muted); }
.auth-aside {
    position: relative;
    overflow: hidden;
    background: var(--text);
    color: #f3f3f6;
    padding: 48px 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(80% 60% at 80% 8%, #000, transparent 75%);
    mask-image: radial-gradient(80% 60% at 80% 8%, #000, transparent 75%);
}
.auth-aside-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 26px; }
.auth-aside .lab { color: #87878f; }
.auth-quote {
    margin: 0;
    font-size: clamp(25px, 2.7vw, 35px);
    line-height: 1.06;
    letter-spacing: -0.042em;
    font-weight: 650;
}
.auth-quote em { font-family: var(--serif); font-style: italic; font-weight: 400; color: #ff8294; }
.auth-aside .ticks { height: 70px; }
.auth-aside .ticks i { background: rgba(255, 255, 255, 0.16); }
.auth-aside .ticks i.hot { background: #ff3d55; opacity: 1; }
.auth-steps { list-style: none; margin: 0; padding: 0; }
.auth-steps li {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: baseline;
    padding: 10px 0 10px 22px;
    font-size: 13.5px;
    color: rgba(243, 243, 246, 0.72);
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.auth-steps li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
.auth-steps li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 17px;
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: #6e6e78;
}
.auth-steps li[data-phase="red"]::before { background: #ff3d55; }
.auth-steps li[data-phase="amber"]::before { background: #ff93a2; }
.auth-steps li[data-phase="green"]::before { background: #e9e9ef; }
.auth-steps span {
    font-family: var(--mono);
    font-size: 11px;
    color: #87878f;
    flex: none;
    width: 38px;
}
.auth-aside-note { margin: 0; color: rgba(243, 243, 246, 0.46); font-size: 12.5px; line-height: 1.6; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-block { width: 100%; margin-top: 4px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 16px; font-size: 13px; }
.plan-pick { border: 0; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plan-pick legend { font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 6px; }
.plan-option {
    display: grid;
    grid-template-columns: 16px 1fr auto;
    column-gap: 10px;
    row-gap: 2px;
    align-items: center;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}
.plan-option input { grid-row: 1 / span 2; margin: 0; accent-color: var(--text); }
.plan-option-name { font-weight: 650; font-size: 14px; }
.plan-option-price { font-weight: 650; font-size: 14px; letter-spacing: -0.02em; }
.plan-option-price span { font-weight: 500; color: var(--muted); font-size: 12px; }
.plan-option-meta { grid-column: 2 / -1; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.plan-option:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.auth-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.auth-actions form { margin: 0; }
.auth-actions + form { margin-top: 18px; }
.auth-alt { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line-hair); font-size: 13px; }
.auth-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.auth-links form { margin: 0; }

@media (max-width: 900px) {
    .chart-row, .layout, .hl, .stat-split, .stat-row, .meta-split { grid-template-columns: 1fr; }
    .seg { margin-left: 0; }
    .stack-loc, .stack-fold summary { flex-wrap: wrap; }
    .stack-fold summary .show-more { margin-left: auto; }
    .auth-shell { grid-template-columns: 1fr; min-height: 0; }
    .auth-main { padding: 80px 20px 40px; }
    .auth-foot { position: static; margin: 24px 0 0; }
    .auth-aside { padding: 36px 20px; }
}
.empty { padding: 32px; color: var(--muted); text-align: center; }
.event-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: var(--muted); font-size: 13px; }

/* ==========================================================================
   Marketing — shell
   ========================================================================== */
.marketing { background: var(--paper); }
.wrap { width: min(1200px, calc(100% - 56px)); margin-inline: auto; }
.wrap-tight { width: min(820px, calc(100% - 56px)); margin-inline: auto; }

/* masthead strip above the nav */
.m-top {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}
.m-top-inner {
    width: min(1200px, calc(100% - 56px));
    margin-inline: auto;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
}
.m-top-inner span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.m-top-inner .ok::before {
    content: "";
    width: 5px; height: 5px; border-radius: 99px; background: var(--red);
    box-shadow: 0 0 0 0 rgba(255, 37, 70, 0.45);
    animation: ping 2.6s ease-out infinite;
}
@keyframes ping {
    0% { box-shadow: 0 0 0 0 rgba(255, 37, 70, 0.45); }
    70% { box-shadow: 0 0 0 6px rgba(255, 37, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 37, 70, 0); }
}
.m-top-dim { color: #bdbdc6; }

.m-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.m-bar-inner {
    width: min(1200px, calc(100% - 56px));
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 28px;
    height: 60px;
}
.m-links { display: flex; gap: 2px; flex: 1; }
.m-links a {
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 7px;
    transition: color 0.14s ease, background 0.14s ease;
}
.m-links a:hover { color: var(--text); background: var(--paper-sunk); text-decoration: none; }
.m-links a.is-on { color: var(--text); }
.m-links a.is-on::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 3px;
    background: var(--red);
    border-radius: 2px;
}
.m-account { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.m-account a:not(.btn) { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.m-account a:not(.btn):hover { color: var(--text); text-decoration: none; }

/* ==========================================================================
   Marketing — hero
   ========================================================================== */
.hero { padding: 72px 0 0; }
.hero-time {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 26px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.hero-time .right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--faint);
}
.hero-time .right i { font-style: normal; color: var(--text); }
.hero-time b {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--red);
    background: var(--red-soft);
    border: 1px solid var(--red-line);
    border-radius: 6px;
    padding: 3px 8px;
}
.hero-time span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

.hero h1 {
    margin: 0;
    font-size: clamp(36px, 6.4vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.048em;
    font-weight: 680;
    max-width: 22ch;
}
.hero h1 em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.015em;
}
.hero h1 .n {
    font-variant-numeric: tabular-nums;
    position: relative;
    white-space: nowrap;
}
.hero h1 .n::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.1em;
    height: 0.07em;
    background: var(--red);
    opacity: 0.85;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 56px;
    align-items: end;
    margin-top: 32px;
}
.hero-lead { margin: 0; color: var(--body); font-size: 17px; line-height: 1.6; max-width: 40ch; }
.hero-cta { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.hero-facts { list-style: none; margin: 0; padding: 0; }
.hero-facts li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--body);
}
.hero-facts li:last-child { border-bottom: 1px solid var(--line); }
.hero-facts b { font-family: var(--mono); font-size: 12px; color: var(--text); font-weight: 500; white-space: nowrap; }

.hero-signal {
    background: #0b0b10;
    color: #f4f4f6;
    border-radius: 20px;
    padding: 16px 18px 4px;
    box-shadow: 0 24px 50px -28px rgba(11, 11, 16, 0.55);
}
.hero-scope {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
}
.hero-mark {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    grid-row: 1;
    display: block;
}
.hero-scope-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hero-scope-copy .lab { color: #ff8a9a; }
.hero-scope-copy b { font-size: 15px; letter-spacing: -0.02em; font-weight: 600; }
.hero-rec {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 99px;
    background: var(--red);
    box-shadow: 0 0 0 0 rgba(255, 37, 70, 0.45);
    animation: ping 2.6s ease-out infinite;
    vertical-align: 1px;
}
.hero-pulse { grid-column: 1 / -1; width: 100%; height: 58px; margin-top: 4px; }
.hero-signal .hero-facts { margin-top: 4px; }
.hero-signal .hero-facts li { border-color: rgba(255, 255, 255, 0.1); color: #c6c6d0; }
.hero-signal .hero-facts b { color: #fff; }
.hero-signal .hero-facts li:hover { color: #fff; }

/* ==========================================================================
   Marketing — event stream (full bleed)
   ========================================================================== */
.stream { margin-top: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.stream-inner { width: min(1200px, calc(100% - 56px)); margin-inline: auto; padding: 26px 0 20px; }
.stream-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.stream-head p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 52ch; }

.stream-groups { display: flex; gap: 6px; align-items: flex-end; height: 44px; }
.stream-group { position: relative; }
.stream-group .bracket {
    height: 8px;
    border: 1px solid var(--line-strong);
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
}
.stream-group.is-hot .bracket { border-color: var(--red-line); }
.stream-group .tagline {
    position: absolute;
    bottom: 12px;
    left: 0;
    white-space: nowrap;
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--muted);
}
.stream-group.is-hot .tagline { color: var(--red); }
.stream-group .tagline b { font-weight: 500; color: var(--text); }

.ticks { display: flex; align-items: flex-end; gap: 2px; height: 96px; }
.ticks i {
    display: block;
    flex: 1;
    min-width: 2px;
    background: #dedee4;
    border-radius: 1px;
}
.ticks i.hot { background: var(--red); opacity: 0.78; }
.ticks i.warm { background: #ffb0bb; }
.stream-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--faint);
    letter-spacing: 0.08em;
}

/* ==========================================================================
   Marketing — the timeline spine
   ========================================================================== */
.tl { padding: 0 0 24px; }
.tl-intro { padding: 64px 0 40px; margin-bottom: 0; }

.tl-item {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    gap: 0;
    position: relative;
}
.tl-rail { position: relative; padding: 36px 24px 36px 0; }
.tl-rail::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 1px;
    background: var(--line-strong);
}
.tl-item:first-child .tl-rail::before { top: 44px; }
.tl-item:last-child .tl-rail::before { bottom: auto; height: 44px; }
.tl-rail time {
    position: sticky;
    top: 86px;
    display: block;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-align: right;
}
.tl-rail time small { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.tl-dot {
    position: absolute;
    right: -5px;
    top: 42px;
    width: 9px;
    height: 9px;
    border-radius: 99px;
    background: var(--paper);
    border: 2px solid var(--line-strong);
}
.tl-item[data-phase="red"] .tl-dot { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.tl-item[data-phase="amber"] .tl-dot { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.tl-item[data-phase="green"] .tl-dot { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.tl-item[data-phase="red"] .tl-rail::before { background: linear-gradient(to bottom, var(--red-line), var(--red-line)); }
.tl-item[data-phase="amber"] .tl-rail::before { background: linear-gradient(to bottom, var(--red-line), var(--amber-line)); }
.tl-item[data-phase="green"] .tl-rail::before { background: linear-gradient(to bottom, var(--amber-line), var(--brand-line)); }

.tl-body {
    padding: 36px 0 36px 32px;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 44px;
    align-content: start;
}
.tl-body > .lab { display: block; margin-bottom: 10px; grid-column: 1; }
.tl-body > h3, .tl-body > p { grid-column: 1; }
.tl-art { grid-column: 2; grid-row: 1 / -1; align-self: start; margin-top: 4px; }
.tl-body h3 {
    margin: 0;
    font-size: clamp(19px, 2.2vw, 24px);
    letter-spacing: -0.03em;
    font-weight: 650;
    line-height: 1.14;
    max-width: 22ch;
}
.tl-body h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.tl-body > p { margin: 12px 0 0; color: var(--body); font-size: 15px; line-height: 1.62; max-width: 46ch; }

/* ==========================================================================
   Timeline artwork
   ========================================================================== */
.art-payload {
    background: var(--text);
    color: #f1f1f4;
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    font-family: var(--mono);
    font-size: 11.5px;
    line-height: 1.85;
    white-space: pre-wrap;
    word-break: break-word;
    box-shadow: var(--shadow-md);
    margin: 0;
}
.art-payload .k { color: #a8a8b4; }
.art-payload .s { color: #ff9aa8; }
.art-payload .n { color: #e8e8ef; }
.art-payload .c { color: #6d6d78; }

.art-fp { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 168px); gap: 12px; align-items: center; }
.art-frames { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.art-frames > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 13px; font-family: var(--mono); font-size: 11.5px; }
.art-frames > div + div { border-top: 1px solid var(--line-hair); }
.art-frames .off { color: var(--faint); }
.art-frames .on { background: var(--red-soft); color: var(--red-ink); }
.art-frames .on b { font-weight: 500; }
.art-frames .tagv { color: var(--faint); }
.art-to { display: grid; place-items: center; color: var(--faint); font-size: 18px; }
.art-hash {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow);
    text-align: center;
}
.art-hash .lab { display: block; margin-bottom: 8px; }
.art-hash code { font-family: var(--mono); font-size: 12px; color: var(--text); word-break: break-all; }
.art-hash .issue-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    border: 1px solid var(--red-line);
    background: var(--red-soft);
    color: var(--red);
    border-radius: 999px;
    padding: 3px 10px;
    font-family: var(--mono);
    font-size: 11.5px;
}

.art-rollup { display: flex; flex-direction: column; gap: 12px; }
.art-row {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}
.art-row .t b { display: block; font-size: 13.5px; letter-spacing: -0.01em; }
.art-row .t small { display: block; margin-top: 4px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.art-row .c { text-align: right; }
.art-row .c b { display: block; font-size: 22px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.art-row .c small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.art-note {
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    color: var(--muted);
    font-size: 13px;
    display: flex;
    align-items: center;
}

.art-thresh {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px 18px 14px;
    box-shadow: var(--shadow);
}
.thresh-plot { position: relative; height: 128px; display: flex; align-items: flex-end; gap: 4px; }
.thresh-plot i { display: block; flex: 1; background: #e4e4ea; border-radius: 2px 2px 0 0; }
.thresh-plot i.over { background: var(--amber); }
.thresh-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px dashed var(--amber);
}
.thresh-line span {
    position: absolute;
    right: 0;
    top: -9px;
    background: var(--amber-soft);
    border: 1px solid var(--amber-line);
    color: var(--amber);
    font-family: var(--mono);
    font-size: 10.5px;
    border-radius: 5px;
    padding: 1px 7px;
}
.thresh-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--faint);
    letter-spacing: 0.08em;
}

.art-ticket {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.art-ticket header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    background: #fafafb;
}
.art-ticket .key {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--brand-ink);
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    border-radius: 5px;
    padding: 2px 7px;
}
.art-ticket .via { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--faint); letter-spacing: 0.1em; text-transform: uppercase; }
.art-ticket .tbody { padding: 14px; }
.art-ticket h4 { margin: 0 0 10px; font-size: 15px; letter-spacing: -0.02em; }
.art-ticket dl { margin: 0; display: grid; grid-template-columns: 96px 1fr; gap: 6px 12px; font-size: 12.5px; }
.art-ticket dt { color: var(--faint); font-family: var(--mono); font-size: 11px; }
.art-ticket dd { margin: 0; color: var(--body); }

.art-quiet {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow);
}
.art-quiet .fade { display: flex; align-items: flex-end; gap: 3px; height: 64px; flex: 1 1 240px; }
.art-quiet .fade i { display: block; flex: 1; border-radius: 2px; background: #e4e4ea; }
.art-quiet .fade i.hot { background: #ffb0bb; }
.art-resolved {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--brand-line);
    background: var(--brand-soft);
    color: var(--brand-ink);
    border-radius: 999px;
    padding: 8px 15px;
    font-weight: 600;
    font-size: 13.5px;
}

/* ==========================================================================
   Marketing — annotated anatomy
   ========================================================================== */
.anat { padding: 80px 0 0; }
.anat-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.anat-figure { position: relative; padding: 0 30px; }
.anat-mock {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.anat-mock .mock-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: #fafafb;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--faint);
}
.anat-mock .mock-bar i { width: 8px; height: 8px; border-radius: 99px; background: var(--line-strong); display: block; }
.mock-pad { padding: 16px 18px 18px; }
.mock-h1 { font-size: 17px; font-weight: 650; letter-spacing: -0.025em; margin: 6px 0 2px; }
.mock-sub { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.mock-counts { display: flex; gap: 22px; margin: 14px 0 16px; }
.mock-counts b { display: block; font-size: 17px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mock-counts span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.mock-chart { display: flex; align-items: flex-end; gap: 3px; height: 54px; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.mock-chart i { display: block; flex: 1; background: #ffb8c2; border-radius: 2px 2px 0 0; }
.mock-chart i.mark { background: var(--amber); }
.mock-split { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 14px; margin-top: 16px; }
.mock-frames > div { font-family: var(--mono); font-size: 10.5px; padding: 6px 9px; border-left: 2px solid var(--line-strong); }
.mock-frames > div.crash { border-left-color: var(--red); background: #fff5f6; }
.mock-frames > div.dim { color: var(--faint); border-left-color: var(--line); }
.mock-side div { border-top: 1px solid var(--line-hair); padding: 6px 0; font-size: 10.5px; }
.mock-side div:first-child { border-top: 0; }
.mock-side span { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.mock-trail { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.mock-crumbs > div { display: flex; gap: 10px; font-family: var(--mono); font-size: 10px; color: var(--muted); padding: 3px 0; }
.mock-crumbs span { color: var(--faint); width: 76px; flex: none; }
.mock-trace > div { height: 6px; position: relative; margin-bottom: 5px; background: var(--paper-sunk); border-radius: 3px; }
.mock-trace i { position: absolute; top: 0; height: 6px; border-radius: 3px; background: var(--line-strong); display: block; }
.mock-trace i.err { background: var(--red); opacity: 0.7; }

.cnum {
    position: absolute;
    width: 21px;
    height: 21px;
    border-radius: 99px;
    background: var(--text);
    color: var(--paper);
    font-family: var(--mono);
    font-size: 10px;
    display: grid;
    place-items: center;
    z-index: 2;
}
.cnum::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 13px;
    border-top: 1px dashed var(--line-strong);
}
.cnum.l { left: 0; }
.cnum.r { right: 0; }
.cnum.l::after { left: 100%; margin-left: 3px; }
.cnum.r::after { right: 100%; margin-right: 3px; }
.anat-legend { list-style: none; margin: 0; padding: 0; }
.anat-legend li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
    align-items: start;
}
.anat-legend li:last-child { border-bottom: 1px solid var(--line); }
.anat-legend .n {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--faint);
    padding-top: 2px;
}
.anat-legend b { display: block; font-size: 13.5px; letter-spacing: -0.01em; }
.anat-legend p { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ==========================================================================
   Marketing — plan meter
   ========================================================================== */
.meter-sec { padding: 88px 0 0; }
.meter { border-top: 1px solid var(--line); }
.meter-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 150px;
    gap: 28px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
    transition: background 0.16s ease;
}
.meter-row:hover { background: rgba(255, 255, 255, 0.7); }
.meter-name b { display: block; font-size: 17px; letter-spacing: -0.02em; }
.meter-name span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.meter-gauge { min-width: 0; }
.meter-track {
    height: 34px;
    border-radius: 7px;
    background: repeating-linear-gradient(90deg, var(--paper-sunk) 0 1px, transparent 1px 26px), var(--paper-sunk);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
}
.meter-fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: linear-gradient(90deg, #ffc9d1, var(--brand));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 11px;
    color: #fff;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.meter-sub { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; color: var(--muted); gap: 12px; flex-wrap: wrap; }
.meter-sub .mono { font-size: 11.5px; color: var(--faint); }
.meter-buy { text-align: right; }
.meter-price { font-size: 28px; letter-spacing: -0.04em; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1; }
.meter-price span { font-size: 13px; color: var(--faint); font-weight: 500; letter-spacing: -0.01em; }
.meter-buy .btn { margin-top: 12px; }
.meter-foot { margin: 18px 0 0; color: var(--muted); font-size: 13.5px; }

/* ==========================================================================
   Marketing — install sheet
   A paper ticket: red spine, the tag set as three ruled rows, the URL marked.
   ========================================================================== */
.install {
    margin-top: 64px;
    padding: 56px 0 88px;
    background: var(--paper-sunk);
    border-top: 1px solid var(--line);
}
.install-sheet {
    position: relative;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 32px 40px 28px 44px;
}
.install-sheet::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--red);
}
.install-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.install-chip {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red-ink);
    background: var(--red-soft);
    border: 1px solid var(--red-line);
    border-radius: 6px;
    padding: 3px 8px;
}
.install-sheet h2 {
    margin: 18px 0 0;
    max-width: 16ch;
    font-size: clamp(30px, 3.6vw, 42px);
    line-height: 1.02;
    letter-spacing: -0.042em;
    font-weight: 650;
}
.install-paths {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 36px;
    margin-top: 28px;
}
.install-path .lab { display: block; margin-bottom: 8px; }
.install-path p {
    margin: 0;
    color: var(--body);
    font-size: 14.5px;
    line-height: 1.55;
}
.install-path .install-tag { margin-top: 14px; }
.install-path .install-tag code {
    display: block;
    max-width: 100%;
    white-space: pre-wrap;
    word-break: break-word;
}
.install-code {
    margin: 14px 0 0;
    padding: 12px 14px;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.65;
    white-space: pre;
    color: var(--text);
    background: var(--red-soft);
    border-radius: 8px;
}
.install-code .tok-c { color: var(--faint); }
.install-code .tok-attr { color: var(--text); }
.install-code .tok-str { color: var(--red-ink); }
.install-code .tok-fn { color: var(--text); font-weight: 500; }
.client-sample + .client-sample { margin-top: 16px; }
.client-sample .lab { display: block; margin-bottom: 8px; }
.install-tag {
    margin: 28px 0 0;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
}
.install-tag code {
    display: inline-block;
    font-family: var(--mono);
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text);
    white-space: nowrap;
    background: var(--red-soft);
    border-radius: 8px;
    padding: 8px 14px;
}
.install-tag .tok-tag { color: var(--muted); }
.install-tag .tok-attr { color: var(--text); }
.install-tag .tok-str { color: var(--red-ink); }
.install-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 22px;
}
.install-foot p { margin: 0; max-width: 46ch; color: var(--body); font-size: 14.5px; line-height: 1.55; }
.install-cta { display: flex; align-items: center; gap: 18px; flex: none; }
.install-more { color: var(--muted); font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.install-more:hover { color: var(--text); text-decoration: none; }
.install-more .arrow { display: inline-block; transition: transform 0.18s ease; }
.install-more:hover .arrow { transform: translateX(4px); }

/* ==========================================================================
   Marketing — inner pages
   ========================================================================== */
.m-pagehead {
    width: min(1200px, calc(100% - 56px));
    margin-inline: auto;
    padding: 64px 0 40px;
    border-bottom: 1px solid var(--line);
}

/* One head treatment for the whole site: a full-width label rule, the
   headline, then the lead directly underneath it. No floating right column. */
.m-kicker, .sec-head .lab {
    margin: 0 0 20px;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--faint);
    display: flex;
    align-items: center;
    gap: 12px;
}
.m-kicker::before, .sec-head .lab::before {
    content: "";
    width: 24px;
    height: 2px;
    flex: none;
    background: var(--red);
}
.m-kicker::after, .sec-head .lab::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--line-strong), var(--line) 60%, transparent);
}
.m-pagehead h1 {
    margin: 0;
    font-size: clamp(30px, 4.5vw, 50px);
    line-height: 1.0;
    letter-spacing: -0.044em;
    font-weight: 680;
    max-width: 17ch;
}
.m-pagehead h1 em, .sec-head h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.m-pagehead .m-lead, .sec-head p {
    margin: 22px 0 0;
    color: var(--body);
    font-size: 16px;
    line-height: 1.62;
    max-width: 58ch;
}

.sec-head { margin-bottom: 34px; }
.sec-head h2 {
    margin: 0;
    font-size: clamp(23px, 3.1vw, 34px);
    letter-spacing: -0.038em;
    line-height: 1.06;
    font-weight: 650;
    max-width: 19ch;
}
.sec-head p { font-size: 15px; max-width: 54ch; margin-top: 16px; }

.m-prose { width: min(1200px, calc(100% - 56px)); margin-inline: auto; padding: 48px 0 24px; }
.m-prose > * { max-width: 68ch; }

.prose-split {
    width: min(1200px, calc(100% - 56px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
    gap: 56px;
    align-items: start;
}
.prose-split .m-prose { width: auto; }
.prose-split .m-prose > * { max-width: none; }
.prose-aside { position: sticky; top: 92px; padding: 56px 0 24px; }
.prose-aside .lab { display: block; margin-bottom: 12px; }
.prose-aside-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.fact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow-md);
}
.fact-card .lab { display: block; margin-bottom: 12px; }
.fact-sheet { margin: 0; border-top: 1px solid var(--line); }
.fact-sheet > div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-hair); }
.fact-sheet dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); padding-top: 2px; }
.fact-sheet dd { margin: 0; font-size: 13.5px; color: var(--body); }

.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}
.contact-mail { display: block; font-size: 19px; letter-spacing: -0.025em; font-weight: 650; margin: 10px 0 0; }
.contact-card p { margin: 10px 0 20px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.m-prose h2 { margin: 44px 0 12px; font-size: 20px; letter-spacing: -0.03em; font-weight: 650; }
.m-prose h2:first-child { margin-top: 0; }
.m-prose p, .m-prose li { color: var(--body); line-height: 1.7; font-size: 15.5px; }
.m-prose ul { margin: 12px 0 0; padding: 0; list-style: none; }
.m-prose ul li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid var(--line-hair); }
.m-prose ul li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 19px;
    width: 10px;
    height: 1px;
    background: var(--line-strong);
}
.m-code {
    background: var(--text);
    color: #e8e8ee;
    border-radius: var(--radius);
    padding: 16px 18px;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.7;
    overflow-x: auto;
    box-shadow: var(--shadow-md);
}

/* steps reuse the timeline spine */
.m-steps { width: min(1200px, calc(100% - 56px)); margin-inline: auto; list-style: none; padding: 48px 0 24px; }
.m-steps li { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); position: relative; }
.m-steps .step-rail { position: relative; padding: 30px 24px 30px 0; }
.m-steps .step-rail::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 1px; background: var(--line-strong); }
.m-steps li:first-child .step-rail::before { top: 38px; }
.m-steps li:last-child .step-rail::before { bottom: auto; height: 38px; }
.m-steps .step-rail span {
    display: block;
    text-align: right;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.14em;
    color: var(--muted);
}
.m-steps .step-rail::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 36px;
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: var(--text);
    box-shadow: 0 0 0 4px var(--paper);
}
.m-steps .step-body {
    padding: 30px 0 30px 32px;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr;
    column-gap: 44px;
    align-content: start;
}
.m-steps h2 { margin: 0 0 10px; font-size: 19px; letter-spacing: -0.03em; font-weight: 650; grid-column: 1; }
.m-steps p { margin: 0; color: var(--body); line-height: 1.65; font-size: 15px; grid-column: 1; }
.step-art { grid-column: 2; grid-row: 1 / -1; align-self: start; min-width: 0; }

.m-compare {
    width: min(1200px, calc(100% - 56px));
    margin: 48px auto 24px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.m-compare th, .m-compare td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line-hair); vertical-align: top; font-size: 14px; }
.m-compare tr:last-child td { border-bottom: 0; }
.m-compare th {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
    font-weight: 500;
    background: #fafafb;
    border-bottom: 1px solid var(--line);
}
.m-compare td:first-child { color: var(--text); font-weight: 550; width: 26%; }
.m-compare td:not(:first-child) { color: var(--muted); }
.m-compare:not(.m-plans) th:last-child { color: var(--text); background: var(--brand-soft); box-shadow: inset 0 2px 0 var(--red); }
.m-compare:not(.m-plans) td:last-child { background: var(--brand-soft); color: var(--text); font-weight: 500; }

/* ==========================================================================
   Marketing — org model map (About)
   ========================================================================== */
.org { padding: 72px 0 0; }
.org-map { position: relative; }
.org-root {
    background: var(--text);
    color: #f3f3f6;
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-md);
}
.org-root .lab { color: #87878f; }
.org-root b { font-size: 19px; letter-spacing: -0.025em; }
.org-plan { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: rgba(243, 243, 246, 0.6); }

.org-branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.org-branches article {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow);
}
/* connector from the organization card down into each branch */
.org-branches article::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -34px;
    height: 34px;
    width: 1px;
    background: var(--line-strong);
}
.org-branches article::after {
    content: "";
    position: absolute;
    left: calc(50% - 3px);
    top: -4px;
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: var(--paper);
    border: 1px solid var(--line-strong);
}
.org-branches .lab { display: block; margin-bottom: 12px; }
.org-branches ul { list-style: none; margin: 0; padding: 0; }
.org-branches li {
    display: flex;
    gap: 10px;
    align-items: baseline;
    padding: 9px 0;
    border-top: 1px solid var(--line-hair);
    font-size: 13px;
    color: var(--muted);
}
.org-key {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text);
    background: var(--paper-sunk);
    border-radius: 5px;
    padding: 2px 7px;
    flex: none;
}
.role {
    font-family: var(--mono);
    font-size: 11px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 1px 9px;
    color: var(--text);
    flex: none;
}
.role.is-owner { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-ink); }

/* ==========================================================================
   Marketing — refusal list (About)
   ========================================================================== */
.refuse { padding: 72px 0 0; }
.refuse-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.refuse-list li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px dashed var(--line-strong);
    border-radius: 999px;
    padding: 9px 16px 9px 14px;
    color: var(--faint);
    font-size: 14px;
    text-decoration: line-through;
    text-decoration-color: var(--red);
    text-decoration-thickness: 1px;
}
.refuse-list li::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 99px;
    border: 1px solid var(--red-line);
    background: var(--red-soft);
    flex: none;
}
.refuse-note { margin: 22px 0 0; color: var(--body); font-size: 15px; line-height: 1.6; max-width: 56ch; }

/* ==========================================================================
   Marketing — footer
   ========================================================================== */
.m-foot { border-top: 1px solid var(--line); background: #fff; }
.m-foot-inner {
    width: min(1200px, calc(100% - 56px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 52px 0 40px;
}
.m-foot p { color: var(--muted); max-width: 30ch; margin: 16px 0 0; font-size: 13.5px; line-height: 1.6; }
.m-foot a { display: block; color: var(--muted); margin: 9px 0; font-size: 13.5px; }
.m-foot a:hover { color: var(--text); text-decoration: none; }
.m-foot-label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 14px;
}
.m-foot-rule {
    width: min(1200px, calc(100% - 56px));
    margin-inline: auto;
    border-top: 1px solid var(--line);
    padding: 16px 0 30px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    flex-wrap: wrap;
}

.m-close { padding: 8px 0 20px; }
.m-close-row {
    border-top: 1px solid var(--line);
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.m-close h2 {
    margin: 0;
    font-size: clamp(22px, 2.6vw, 30px);
    letter-spacing: -0.035em;
    line-height: 1.15;
    font-weight: 650;
    max-width: 16em;
}
.m-close .hero-cta { margin-top: 0; flex: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1040px) {
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .tl-body, .m-steps .step-body { grid-template-columns: 1fr; }
    .tl-art, .step-art { grid-column: 1; grid-row: auto; margin-top: 22px; }
    .anat-body { grid-template-columns: 1fr; }
    .install-foot { flex-direction: column; align-items: flex-start; gap: 18px; }
    .install-paths { grid-template-columns: 1fr; gap: 28px; }
    .m-pagehead { grid-template-columns: 1fr; gap: 26px; }
    .m-foot-inner { grid-template-columns: 1fr 1fr; }
    .prose-split { grid-template-columns: 1fr; gap: 0; }
    .prose-aside { position: static; padding-top: 0; }
    .org-branches { grid-template-columns: 1fr; gap: 28px; }
    .org-branches article::before { top: -28px; height: 28px; }
    .art-fp { grid-template-columns: 1fr; }
    .art-to { transform: rotate(90deg); }
}
@media (max-width: 760px) {
    :root { --rail: 78px; }
    .wrap, .wrap-tight, .m-bar-inner, .m-top-inner, .stream-inner, .m-pagehead, .m-steps, .m-compare, .m-foot-inner, .m-foot-rule { width: calc(100% - 32px); }
    .m-prose { width: calc(100% - 32px); }
    .m-prose > * { max-width: none; }
    .m-bar-inner { height: auto; flex-wrap: wrap; padding: 12px 0; gap: 10px; }
    .m-links {
        order: 3;
        flex: 1 0 100%;
        flex-wrap: nowrap;
        gap: 2px;
        overflow-x: auto;
        scrollbar-width: none;
        margin: 0 -16px;
        padding: 0 16px;
    }
    .m-links::-webkit-scrollbar { display: none; }
    .m-links a { white-space: nowrap; }
    .m-top-inner span:nth-child(2), .m-top-dim { display: none; }
    .m-top-inner { overflow: hidden; }
    .hero { padding: 44px 0 0; }
    .tl-body, .m-steps .step-body { padding-left: 20px; }
    .tl-rail { padding-right: 14px; }
    .m-steps .step-rail { padding-right: 14px; }
    .meter-row { grid-template-columns: 1fr; gap: 16px; }
    .meter-buy { text-align: left; display: flex; align-items: center; gap: 16px; }
    .meter-buy .btn { margin-top: 0; }
    .install { margin-top: 40px; padding: 36px 0 56px; }
    .install-sheet { padding: 24px 18px 20px 22px; }
    .install-sheet h2 { max-width: none; font-size: 30px; }
    .install-tag code { font-size: 12px; }
    .install-cta { flex-wrap: wrap; }
    .m-close-row { flex-direction: column; align-items: flex-start; }
    .m-close .hero-cta { flex-wrap: wrap; }
    .m-foot-inner { grid-template-columns: 1fr; }
    .layout, .chart-row { grid-template-columns: 1fr; }
    .nav { display: none; }
    .cnum { display: none; }
    .ticks { height: 68px; gap: 1px; }
    .ticks i { min-width: 1px; }
    .stream-inner { overflow: hidden; }
    .stream-groups { display: none; }
}

/* ==========================================================================
   Motion and surface: reveals, live ingest, spotlight, grain
   Everything here is decoration and is switched off for reduced motion.
   ========================================================================== */

/* read progress, pinned to the bottom edge of the sticky bar */
.m-progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--red), var(--text));
    transform: scaleX(var(--p, 0));
    transform-origin: left;
}

/* hero: blueprint grid and a signal glow instead of flat paper */
/* clip, not hidden: the decoration may bleed past the viewport without
   turning the page into a scroll container and breaking the sticky bar */
html, body { overflow-x: clip; }
.hero { position: relative; isolation: isolate; }
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}
.hero::before {
    inset: -40px -200px auto -200px;
    height: 460px;
    background-image:
        linear-gradient(to right, var(--line-hair) 1px, transparent 1px),
        linear-gradient(to bottom, var(--line-hair) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(120% 90% at 78% 0%, #000, transparent 68%);
    mask-image: radial-gradient(120% 90% at 78% 0%, #000, transparent 68%);
}
.hero::after {
    top: -120px;
    right: -120px;
    width: 520px;
    height: 420px;
    background: radial-gradient(45% 45% at 62% 40%, rgba(255, 37, 70, 0.14), transparent 70%);
    animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}
.hero h1 .n::after {
    transform: scaleX(0);
    transform-origin: left;
    animation: draw 0.7s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes draw { to { transform: scaleX(1); } }
.hero-facts li { transition: color 0.16s ease, padding-left 0.16s ease; position: relative; }
.hero-facts li::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    width: 6px;
    height: 1px;
    background: var(--red);
    opacity: 0;
    transition: opacity 0.16s ease, width 0.16s ease;
}
.hero-facts li:hover { color: var(--text); padding-left: 6px; }
.hero-facts li:hover::before { opacity: 1; width: 10px; }
.pulse-scan {
    stroke-dasharray: 4 96;
    animation: trace 2.8s linear infinite;
}
@keyframes trace { to { stroke-dashoffset: -100; } }

/* the ingest strip reads as live: bars rise once, the hot cluster keeps moving */
.ticks i {
    transform-origin: bottom;
    animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    animation-delay: calc(var(--i, 0) * 6ms);
}
@keyframes rise { from { transform: scaleY(0.04); } }
.ticks i.hot { animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) backwards, flicker 2.8s ease-in-out infinite; }
@keyframes flicker {
    0%, 100% { opacity: 0.78; }
    50% { opacity: 1; transform: scaleY(1.06); }
}
.ticks { position: relative; }
.stream-scan {
    position: absolute;
    left: 0;
    top: -8px;
    bottom: 0;
    width: 56px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 37, 70, 0.06) 72%, rgba(255, 37, 70, 0.34));
    animation: sweep 7s linear infinite;
}
@keyframes sweep {
    0% { transform: translateX(-56px); opacity: 0; }
    8%, 92% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* the spine fills in as you read the incident */
.tl { position: relative; }
.tl-progress {
    position: absolute;
    left: calc(var(--rail) - 1px);
    top: var(--top, 0);
    height: var(--h, 0);
    width: 2px;
    pointer-events: none;
    background: linear-gradient(to bottom, var(--red), var(--amber) 55%, var(--text));
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(var(--p, 0) * 100%), transparent 0);
    mask-image: linear-gradient(to bottom, #000 calc(var(--p, 0) * 100%), transparent 0);
}
.tl-item[data-phase="red"] .tl-dot { animation: halo 2.4s ease-out infinite; }
@keyframes halo {
    0% { box-shadow: 0 0 0 0 rgba(255, 37, 70, 0.5); }
    70% { box-shadow: 0 0 0 9px rgba(255, 37, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 37, 70, 0); }
}

/* scroll reveals */
[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* the issue mock behaves like a surface, not a picture */
.anat-mock, .prose-aside .mock {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.anat-figure:hover .anat-mock { transform: translateY(-4px); box-shadow: 0 1px 1px rgba(11, 11, 16, 0.05), 0 36px 60px -24px rgba(11, 11, 16, 0.26); }
.anat-mock::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 37, 70, 0.07) 50%, transparent 62%);
    transform: translateX(-120%);
    transition: transform 0.9s ease;
}
.anat-figure:hover .anat-mock::after { transform: translateX(120%); }
.cnum { transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease; }
.cnum:hover { transform: scale(1.18); background: var(--red); border-color: var(--red); color: #fff; }
.anat-legend li { transition: transform 0.18s ease; }
.anat-legend li:hover { transform: translateX(4px); }

/* the volume meter fills when it comes into view */
.meter-fill {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--d, 0ms);
}
.meter-row.in .meter-fill { transform: scaleX(1); }
.no-js .meter-fill { transform: none; }
.meter-track::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 37, 70, 0.14));
    opacity: 0;
    transition: opacity 0.2s ease;
}
.meter-row:hover .meter-track::after { opacity: 1; }

/* the form side of the auth screen keeps the blueprint grid of the hero */
.auth-main::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, var(--line-hair) 1px, transparent 1px),
        linear-gradient(to bottom, var(--line-hair) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent 72%);
    mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent 72%);
}
.auth-main > * { z-index: 1; }
.auth-main .page { position: relative; }

/* the auth panel keeps a cursor spotlight; the install card does not */
.auth-aside { --mx: 50%; --my: 0%; }
.auth-aside .spot {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(260px 260px at var(--mx) var(--my), rgba(255, 37, 70, 0.22), transparent 70%);
    opacity: 0.7;
}
.auth-aside .grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
.auth-aside > * { position: relative; z-index: 1; }

/* small lifts on the remaining cards */
.fact-card, .contact-card, .org-branches article, .tag-chip {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.fact-card:hover, .contact-card:hover, .org-branches article:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.refuse-list li { transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.refuse-list li:hover { transform: rotate(-1.2deg); border-color: var(--red-line); }
.btn { transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease; }
.btn .arrow { display: inline-block; transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

@media (max-width: 760px) {
    .hero::after, .stream-scan, .tl-progress { display: none; }
    /* the readout has nowhere to go next to the timestamp on a phone */
    .hero-time .right { display: none; }
    .hero-time { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1; transform: none; }
    .meter-fill { transform: none; }
    .hero h1 .n::after { transform: none; }
    .ticks i { transform: none; }
}

/* ==========================================================================
   Technical figures. Line drawings that sit in the existing pages.
   ========================================================================== */
.hawk { display: block; width: 148px; height: auto; color: var(--text); }
/* Large instances sit behind the copy, so they carry the reference's lighter ink. */
.fig-hero .hawk { color: #cfcfd8; }
.fig { margin: 0; }
.fig-band { padding: 8px 0 28px; }
.lab-next { display: block; margin-top: 22px; }

.fig-hero {
    display: grid;
    grid-template-columns: minmax(180px, 1.1fr) auto minmax(200px, 280px);
    gap: 18px;
    align-items: center;
    margin: 28px 0 8px;
    padding: 8px 0 4px;
}
.fig-events { position: relative; height: 160px; }
/* Overruns the column so the bundle converges on the hawk, not in the empty gutter. */
.fig-wires { position: absolute; top: 0; left: 112px; width: calc(100% - 54px); height: 100%; }
.fig-wires path { stroke: var(--red-line); stroke-width: 1; fill: none; }
.fig-ev {
    position: absolute;
    left: 0;
    /* Uniform width so every wire can start past the longest label. */
    width: 106px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2px 7px;
}
.fig-ev:nth-child(1) { top: 6px; }
.fig-ev:nth-child(2) { top: 36px; }
.fig-ev:nth-child(3) { top: 68px; }
.fig-ev:nth-child(4) { top: 100px; }
.fig-ev:nth-child(5) { top: 132px; }
.fig-dot {
    position: absolute;
    left: 112px;
    top: var(--y0);
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 99px;
    background: var(--red);
    animation:
        fig-drift-x 3.8s linear infinite,
        fig-drift-y 3.8s cubic-bezier(.6, 0, .55, 1) infinite;
    animation-delay: calc(var(--i) * .45s);
}
/* The wires converge on viewBox y 82, so every dot lands on the hawk. */
@keyframes fig-drift-x {
    0% { left: 112px; opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { left: calc(100% + 44px); opacity: 0; }
}
@keyframes fig-drift-x-narrow {
    0% { left: 112px; opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { left: 98%; opacity: 0; }
}
@keyframes fig-drift-y {
    0% { top: var(--y0); }
    100% { top: 82px; }
}
/* Pull the mark back so the converging wires land on it instead of stopping short. */
.fig-hero .hawk { width: 186px; margin-left: -34px; }
.fig-out { display: flex; align-items: center; gap: 12px; }
.fig-issue {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 148px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px 12px 12px 14px;
}
.fig-issue b { display: block; font-size: 15px; letter-spacing: -0.03em; }
.fig-issue span { display: block; margin-top: 2px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.fig-issue i {
    font-style: normal;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--red-ink);
    background: var(--red-soft);
    border: 1px solid var(--red-line);
    border-radius: 6px;
    padding: 2px 7px;
}
.fig-join { width: 18px; height: 1px; background: var(--line-strong); flex: none; }
.fig-jira { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; letter-spacing: -0.02em; }
.fig-jira svg { width: 16px; height: 16px; fill: var(--text); }

.pipe {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1.15fr) 16px minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
}
.pipe-step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 14px;
    min-width: 0;
}
.pipe-step > b {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 550;
    letter-spacing: -0.01em;
    color: var(--body);
}
.pipe-arrow { align-self: center; height: 1px; background: var(--line-strong); position: relative; }
.pipe-arrow::after {
    content: "";
    position: absolute;
    right: -1px;
    top: -3px;
    border: 4px solid transparent;
    border-left-color: var(--faint);
}
.pipe-cloud { position: relative; height: 78px; }
.pipe-cloud i {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: var(--red);
    opacity: .75;
    animation: fig-bob 2.8s ease-in-out infinite;
    animation-delay: calc(var(--i) * .2s);
}
.pipe-cloud i:nth-child(1) { left: 8%; top: 18%; }
.pipe-cloud i:nth-child(2) { left: 28%; top: 46%; }
.pipe-cloud i:nth-child(3) { left: 46%; top: 12%; }
.pipe-cloud i:nth-child(4) { left: 62%; top: 58%; }
.pipe-cloud i:nth-child(5) { left: 18%; top: 72%; }
.pipe-cloud i:nth-child(6) { left: 74%; top: 28%; }
.pipe-cloud i:nth-child(7) { left: 40%; top: 70%; }
.pipe-cloud i:nth-child(8) { left: 84%; top: 64%; }
@keyframes fig-bob { 50% { transform: translateY(-3px); opacity: 1; } }
.pipe-mark .hawk { width: 62px; margin: 4px auto; }
.pipe-rows { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pipe-rows li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px auto;
    gap: 8px;
    align-items: center;
    font-size: 12px;
}
.pipe-rows span { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipe-rows i { display: block; height: 6px; border-radius: 99px; background: var(--red); opacity: .8; }
.pipe-rows b { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--red-ink); }

.fig-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ba {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 16px;
}
.ba-panel {
    position: relative;
    height: 134px;
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    /* Graph paper, the same technical grid the rest of the site uses. */
    background:
        repeating-linear-gradient(to right, var(--line-hair) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(to bottom, var(--line-hair) 0 1px, transparent 1px 34px),
        #fff;
}
.ba-grouped { display: flex; align-items: center; padding: 0 14px; }
.ba-grouped .pipe-rows { flex: 1; margin: 0; gap: 14px; }
/* Wider than the pipeline card, so the bar gets the slack and reads as a chart. */
.ba-grouped .pipe-rows li { grid-template-columns: 108px minmax(0, 1fr) 30px; }
.ba-grouped .pipe-rows b { text-align: right; }
.ba-noise i {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: var(--s);
    margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
    border-radius: 99px;
    background: var(--red);
    opacity: var(--o);
    animation: ba-float 3.4s ease-in-out infinite;
    animation-delay: calc(var(--i) * .18s);
}
/* Translate only. Touching opacity here would wipe out the per-mark alpha. */
@keyframes ba-float { 50% { transform: translateY(-2px); } }
.ba-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 12px 0 0; padding: 0; }
.ba-tags li {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2px 7px;
}
.ba p { margin: 14px 0 0; }
.ba p b { display: block; letter-spacing: -0.02em; }
.ba p span { color: var(--muted); font-size: 13px; }

.fig-thresh {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 46px 16px 12px;
}
.fig-flag {
    position: absolute;
    top: 12px;
    right: 14px;
    background: #fff;
    border: 1px solid var(--red-line);
    border-radius: 8px;
    padding: 6px 10px;
    box-shadow: var(--shadow);
}
.fig-flag b, .fig-flag span { display: block; }
.fig-flag b { font-size: 12px; letter-spacing: -0.01em; }
.fig-flag b::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 99px;
    background: var(--red);
    animation: fig-blink 1.8s ease-in-out infinite;
}
.fig-flag span { margin-top: 2px; color: var(--muted); font-family: var(--mono); font-size: 10.5px; }
@keyframes fig-blink { 50% { opacity: .25; } }
.fig-bars { position: relative; height: 140px; display: flex; align-items: flex-end; gap: 3px; }
.fig-bars > i { display: block; flex: 1; background: #e4e4ea; border-radius: 2px 2px 0 0; transform-origin: bottom; }
.fig-bars > i.hot { background: var(--red); opacity: .82; animation: fig-bar 2.4s ease-in-out infinite; }
@keyframes fig-bar { 50% { transform: scaleY(1.05); } }
.fig-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 48px;
    border-top: 1px dashed var(--red);
}
.fig-line i {
    position: absolute;
    left: 0;
    top: -18px;
    font-style: normal;
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--red-ink);
}
.fig-axis {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    color: var(--faint);
}

.fig-stack {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.fig-stack header { padding: 12px 14px 10px; border-bottom: 1px solid var(--line); }
.fig-stack header b { display: block; color: var(--red-ink); font-size: 13px; letter-spacing: -0.01em; }
.fig-stack header span { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.fig-stack ol { list-style: none; margin: 0; padding: 4px 0; }
.fig-stack li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: baseline;
    padding: 6px 14px;
    font-family: var(--mono);
    font-size: 11.5px;
}
.fig-stack li span { color: var(--faint); }
.fig-stack li b { font-weight: 500; color: var(--text); }
.fig-stack li em { font-style: normal; color: var(--muted); }
.fig-stack li.crash { background: var(--red-soft); }
.fig-stack li.crash b { color: var(--red-ink); }
.fig-stack li.dim { color: var(--faint); }

.fig-int {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
        "a b c"
        "d hub e"
        "f f f";
    gap: 22px 18px;
    align-items: center;
    justify-items: center;
    min-height: 260px;
    padding: 8px 0 12px;
    max-width: 680px;
    margin: 0 auto;
}
.int-lines { position: absolute; inset: 12px 8% auto; width: 84%; height: 86%; }
.int-lines path { stroke: var(--line-strong); stroke-width: 1; }
.int-node, .int-hub { position: relative; z-index: 1; background: #fff; }
.int-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 88px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}
.int-node svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.int-node.a { grid-area: a; }
.int-node.b { grid-area: b; }
.int-node.c { grid-area: c; }
.int-node.d { grid-area: d; }
.int-node.e { grid-area: e; }
.int-node.f { grid-area: f; }
.int-hub { grid-area: hub; border: 1px solid var(--line-strong); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); }
.int-hub .hawk { width: 54px; }
/* The node with no glyph still needs the icon row's height so the ring stays even. */
.int-node.f { padding-block: 18px; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty p { margin: 0; }
.empty-mark .hawk { width: 54px; }

@media (max-width: 900px) {
    .fig-hero, .fig-ba, .pipe { grid-template-columns: 1fr; }
    /* Stacked, so the wires stay inside the column and the mark is centred. */
    .fig-wires { width: calc(100% - 112px); }
    .fig-dot { animation-name: fig-drift-x-narrow, fig-drift-y; }
    .fig-hero .hawk { margin-left: 0; justify-self: center; }
    .pipe-arrow { width: 1px; height: 14px; justify-self: center; background: var(--line-strong); }
    .pipe-arrow::after { right: -3px; top: auto; bottom: -1px; border: 4px solid transparent; border-top-color: var(--faint); border-left-color: transparent; }
    .fig-int { grid-template-columns: 1fr 1fr; grid-template-areas: "hub hub" "a b" "c d" "e f"; }
}

@media (prefers-reduced-motion: reduce) {
    .fig-dot { animation: none; left: 58%; top: 82px; }
    .pipe-cloud i, .ba-noise i { animation: none; }
    .fig-flag b::before { animation: none; }
    .fig-bars i { animation: none; }
}

/* ==========================================================================
   Billing (period usage against the plan)
   ========================================================================== */
.bill-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 12px;
    align-items: start;
}
.bill-meters { display: grid; gap: 12px; }
.usage-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.usage-count { margin-top: 8px; font-size: 32px; font-weight: 650; letter-spacing: -0.045em; line-height: 1; }
.usage-caption { margin: 6px 0 0; }
.usage-track {
    display: flex;
    position: relative;
    height: 10px;
    margin-top: 14px;
    border-radius: 99px;
    background: #ececf1;
    overflow: hidden;
}
.usage-plan, .usage-over { display: block; height: 100%; }
.usage-plan { background: var(--text); }
.usage-over { background: var(--red); }
.usage-mark {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--text);
}
.usage-scale {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    min-height: 16px;
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--faint);
}
.usage-scale-mark {
    position: absolute;
    top: 0;
    color: var(--text);
    white-space: nowrap;
    transform: translateX(-50%);
}
.usage-legend {
    display: flex;
    gap: 14px;
    margin: 10px 0 0;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.usage-legend span { display: inline-flex; align-items: center; }
.swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: 99px;
}
.swatch.is-plan { background: var(--text); }
.swatch.is-over { background: var(--red); }
.usage-note { margin: 8px 0 0; }
.bill-plan { font-size: 18px; font-weight: 650; letter-spacing: -0.03em; }
.bill-lines { margin: 0; }
.bill-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-hair);
}
.bill-line dt { margin: 0; color: var(--muted); font-weight: 500; }
.bill-line dd { margin: 0; font-weight: 600; }
.bill-sum {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 12px;
}
.bill-sum span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.bill-sum strong { font-size: 28px; letter-spacing: -0.04em; line-height: 1; }
.bill-plans-title {
    margin: 28px 0 12px;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.03em;
}
.bill-meters .card + .card,
.bill-plans .card + .card { margin-top: 0; }
.bill-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}
.bill-plan-card {
    display: flex;
    flex-direction: column;
}
.bill-plan-price { font-size: 22px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; }
.bill-plan-price .faint { margin-left: 2px; font-size: 13px; font-weight: 500; letter-spacing: 0; }
.bill-plan-facts {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
}
.bill-plan-facts li + li { margin-top: 2px; }
.bill-plan-action { margin-top: auto; padding-top: 16px; }
.bill-plan-action form { margin: 0; }
@media (max-width: 800px) {
    .bill-grid, .bill-plans { grid-template-columns: 1fr; }
}

/* First-run spotlight on an empty issue board. */
.tour {
    position: fixed;
    inset: 0;
    z-index: 80;
    pointer-events: none;
}
.tour-block {
    position: absolute;
    inset: 0;
    pointer-events: auto;
}
.tour.is-dim .tour-block { background: rgba(11, 11, 16, 0.46); }
.tour-hole {
    position: fixed;
    z-index: 1;
    border: 2px solid var(--red);
    border-radius: 10px;
    box-shadow: 0 0 0 9999px rgba(11, 11, 16, 0.46);
    pointer-events: none;
}
.tour-card {
    position: fixed;
    z-index: 2;
    width: min(360px, calc(100vw - 24px));
    padding: 16px 18px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
}
.tour-card h2 {
    margin: 4px 0 8px;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.03em;
}
.tour-body { margin: 0; color: var(--body); }
.tour-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}
.tour [hidden] { display: none !important; }
.tour-actions .btn-primary { margin-left: auto; }
