/*!
 * Gully Terminal design system: components. gully-labs/gully-ops design/terminal/components.css
 * Needs tokens.css first. Every class is prefixed t- so it can sit next to an app's own CSS without collisions.
 * Layout primitives: t-topbar (+ t-switch product switcher), t-hero, t-kpis, t-section, t-panel, t-table,
 * t-features, t-pricing, t-faq, t-steps, t-ticker, t-uptime, t-footer (+ t-badge). Charts: t-chart (chart-kit.js).
 */

/* =============================== base (opt in with class="t-body" on <body>) =============================== */
.t-body { margin: 0; background: var(--t-bg); color: var(--t-text); font: 400 var(--t-fs-base)/var(--t-lh) var(--t-font-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; text-rendering: optimizeLegibility; }
.t-body *, .t-body *::before, .t-body *::after { box-sizing: border-box; }
.t-body h1, .t-body h2, .t-body h3, .t-body h4 { margin: 0; font-family: var(--t-font-sans); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--t-text); }
.t-body p { margin: 0; }
.t-body a { color: inherit; }
.t-body img, .t-body svg { max-width: 100%; }
.t-body :focus-visible { outline: 2px solid var(--t-accent); outline-offset: 2px; border-radius: var(--t-r-sm); }
.t-body ::selection { background: var(--t-accent); color: var(--t-on-accent); }
.t-wrap { width: 100%; max-width: calc(var(--t-maxw) + 2 * var(--t-gutter)); margin: 0 auto; padding: 0 var(--t-gutter); }
.t-mono, .t-num { font-family: var(--t-font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.t-label { font: 500 var(--t-fs-2xs)/1.3 var(--t-font-mono); text-transform: uppercase; letter-spacing: var(--t-track-label); color: var(--t-muted); }
.t-label--accent { color: var(--t-accent); }
.t-muted { color: var(--t-muted); }
.t-up { color: var(--t-up); } .t-down { color: var(--t-down); }
.t-accent { color: var(--t-accent); }
.t-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.t-skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--t-accent); color: var(--t-on-accent); padding: 8px 12px; border-radius: var(--t-r); font-weight: 600; }
.t-skip:focus { top: 8px; }
.t-ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.t-link { color: var(--t-accent); text-decoration: none; border-bottom: 1px solid var(--t-accent-line); }
.t-link:hover { border-bottom-color: var(--t-accent); }
.t-code { font: 500 var(--t-fs-sm)/1.4 var(--t-font-mono); color: var(--t-text); background: var(--t-surface); border: 1px solid var(--t-line); border-radius: var(--t-r-sm); padding: 2px 6px; white-space: nowrap; }

/* motifs: use as accents only (one per view) */
.t-grid-bg { background-image: linear-gradient(var(--t-grid) 1px, transparent 1px), linear-gradient(90deg, var(--t-grid) 1px, transparent 1px); background-size: 32px 32px; background-position: -1px -1px; }
.t-scan { position: relative; }
.t-scan::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px); }
.t-cursor::after { content: ""; display: inline-block; width: .55em; height: 1em; margin-left: 3px; vertical-align: -.12em; background: var(--t-accent); animation: t-blink 1.1s steps(1) infinite; }
@keyframes t-blink { 50% { opacity: 0; } }

/* reveal on scroll (chart-kit.js adds .is-in; without JS everything is visible) */
.t-js [data-t-reveal] { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--t-ease), transform .5s var(--t-ease); }
.t-js [data-t-reveal].is-in { opacity: 1; transform: none; }

/* =============================== buttons, pills, tags =============================== */
.t-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--t-r); border: 1px solid var(--t-line-strong); background: transparent; color: var(--t-text); font: 600 14px/1 var(--t-font-sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background var(--t-dur) ease, border-color var(--t-dur) ease, color var(--t-dur) ease, transform .1s ease; }
.t-btn:hover { border-color: var(--t-accent); }
.t-btn:active { transform: translateY(1px); }
.t-btn .t-ic { width: 16px; height: 16px; }
.t-btn .t-ar { transition: transform var(--t-dur) var(--t-ease); }
.t-btn:hover .t-ar { transform: translateX(3px); }
.t-btn--primary { background: var(--t-accent); border-color: var(--t-accent); color: var(--t-on-accent); }
.t-btn--primary:hover { background: color-mix(in srgb, var(--t-accent), #fff 14%); border-color: color-mix(in srgb, var(--t-accent), #fff 14%); }
.t-btn--quiet { border-color: transparent; color: var(--t-muted); }
.t-btn--quiet:hover { color: var(--t-text); border-color: var(--t-line); }
.t-btn--sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.t-btn--xs { min-height: 26px; padding: 0 8px; font: 500 12px/1 var(--t-font-mono); }
.t-btn.is-ok { border-color: var(--t-up); color: var(--t-up); }

.t-pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border: 1px solid var(--t-line); border-radius: var(--t-r-pill); font: 500 12px/1 var(--t-font-mono); color: var(--t-muted); white-space: nowrap; text-decoration: none; }
.t-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--t-idle); flex: none; }
.t-pill.is-live, .t-dot.is-live { color: var(--t-text); }
.is-live > .t-dot, .t-dot.is-live { background: var(--t-up); box-shadow: 0 0 0 0 color-mix(in srgb, var(--t-up) 50%, transparent); animation: t-breathe 2.4s ease-in-out infinite; }
.is-down > .t-dot, .t-dot.is-down { background: var(--t-down); }
.is-warn > .t-dot, .t-dot.is-warn { background: var(--t-warn); }
.t-pill.is-down { color: var(--t-down); border-color: color-mix(in srgb, var(--t-down) 40%, transparent); }
@keyframes t-breathe { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--t-up) 45%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }
.t-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border: 1px solid var(--t-line-strong); border-radius: var(--t-r-sm); font: 500 10.5px/1 var(--t-font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--t-muted); white-space: nowrap; }
.t-tag--live { color: var(--t-up); border-color: color-mix(in srgb, var(--t-up) 45%, transparent); }
.t-tag--new { color: var(--t-accent); border-color: var(--t-accent-line); }
.t-tag--soon { color: var(--t-warn); border-color: color-mix(in srgb, var(--t-warn) 40%, transparent); }

/* =============================== top bar + product switcher =============================== */
.t-topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--t-bg) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--t-line); }
.t-topbar > .t-wrap { display: flex; align-items: center; gap: 16px; height: var(--t-topbar-h); }
.t-brand { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; color: var(--t-text); font-weight: 700; }
.t-brand img { display: block; height: 28px; width: auto; }
@media (max-width: 640px) { .t-brand img { height: 24px; } }
.t-nav { display: none; align-items: center; gap: 2px; margin-left: 8px; min-width: 0; }
.t-nav a { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; border-radius: var(--t-r); color: var(--t-muted); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; transition: color var(--t-dur), background var(--t-dur); }
.t-nav a .t-ic { width: 16px; height: 16px; }
.t-nav a:hover, .t-nav a[aria-current] { color: var(--t-text); background: var(--t-surface); }
.t-nav a[aria-current] .t-ic { color: var(--t-accent); }
@media (min-width: 960px) { .t-nav { display: flex; } }
.t-topbar-r { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
@media (max-width: 520px) { .t-topbar-r .t-pill span:not(.t-dot) { display: none; } .t-topbar-r .t-pill { width: 28px; padding: 0; justify-content: center; } }

/* product switcher: <details class="t-switch"> (no JS); menu items for every Gully product */
.t-switch { position: relative; flex: none; }
.t-switch > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px; border: 1px solid var(--t-line); border-radius: var(--t-r); color: var(--t-muted); font: 500 12px/1 var(--t-font-mono); cursor: pointer; user-select: none; }
.t-switch > summary::-webkit-details-marker { display: none; }
.t-switch > summary:hover, .t-switch[open] > summary { color: var(--t-text); border-color: var(--t-line-strong); }
.t-switch > summary .t-ic { width: 14px; height: 14px; }
.t-switch-menu { position: absolute; left: 0; top: calc(100% + 8px); z-index: 50; width: min(560px, calc(100vw - 2 * var(--t-gutter))); display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--t-line); border: 1px solid var(--t-line-strong); border-radius: var(--t-r); overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.55); }
.t-switch-menu a { display: grid; grid-template-columns: 10px 1fr; gap: 2px 10px; align-items: center; padding: 12px 14px; background: var(--t-bg); text-decoration: none; color: var(--t-text); }
.t-switch-menu a:hover, .t-switch-menu a:focus-visible { background: var(--t-surface-2); outline: none; }
.t-switch-menu a i { width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--t-muted)); }
.t-switch-menu a b { font-weight: 600; font-size: 14px; }
.t-switch-menu a span { grid-column: 2; color: var(--t-muted); font-size: 12px; }
.t-switch-menu a[aria-current] { box-shadow: inset 2px 0 0 var(--t-accent); }
.t-switch-menu .t-switch-foot { grid-column: 1 / -1; padding: 10px 14px; background: var(--t-surface); color: var(--t-muted); font: 500 11px/1.3 var(--t-font-mono); text-transform: uppercase; letter-spacing: var(--t-track-label); }
@media (max-width: 640px) { .t-switch-menu { position: fixed; left: var(--t-gutter); right: var(--t-gutter); top: calc(var(--t-topbar-h) + 4px); width: auto; grid-template-columns: 1fr; max-height: calc(100vh - 80px); overflow: auto; } }

/* mobile menu: <details class="t-menu"> holding a copy of the nav links */
.t-menu { display: block; }
.t-menu > summary { list-style: none; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--t-line); border-radius: var(--t-r); cursor: pointer; color: var(--t-text); }
.t-menu > summary::-webkit-details-marker { display: none; }
.t-menu-panel { position: fixed; left: 0; right: 0; top: var(--t-topbar-h); bottom: 0; z-index: 45; overflow: auto; background: var(--t-bg); border-top: 1px solid var(--t-line); padding: 8px var(--t-gutter) 24px; }
.t-menu-panel a { display: flex; align-items: center; gap: 10px; min-height: 48px; border-bottom: 1px solid var(--t-line); color: var(--t-text); text-decoration: none; font-weight: 500; }
.t-menu-panel a .t-ic { color: var(--t-accent); }
@media (min-width: 960px) { .t-menu { display: none; } }

/* =============================== hero =============================== */
.t-hero { position: relative; padding: var(--t-8) 0 var(--t-6); border-bottom: 1px solid var(--t-line); }
.t-hero > .t-wrap { display: grid; gap: var(--t-6); align-items: center; }
@media (min-width: 1000px) { .t-hero > .t-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--t-7); } }
.t-hero.t-grid-bg { background-position: center top; }
.t-eyebrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 var(--t-fs-2xs)/1.3 var(--t-font-mono); text-transform: uppercase; letter-spacing: var(--t-track-label); color: var(--t-muted); text-decoration: none; }
.t-eyebrow b { color: var(--t-accent); font-weight: 500; }
.t-h1 { font-size: var(--t-fs-3xl); font-weight: 700; letter-spacing: -.03em; line-height: 1.02; margin-top: var(--t-4) !important; }
.t-h1 em { font-style: normal; color: var(--t-accent); }
.t-lede { margin-top: var(--t-4) !important; max-width: 560px; color: var(--t-muted); font-size: var(--t-fs-md); line-height: 1.55; }
.t-lede b { color: var(--t-text); font-weight: 600; }
.t-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--t-5); }
.t-kv { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: var(--t-5); }
.t-kv > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.t-kv code { font: 500 var(--t-fs-sm)/1.3 var(--t-font-mono); color: var(--t-text); word-break: break-all; }

/* =============================== panel (the terminal window) =============================== */
.t-panel { position: relative; border: 1px solid var(--t-line); border-radius: var(--t-r); background: var(--t-surface); min-width: 0; }
.t-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 8px 14px; border-bottom: 1px solid var(--t-line); }
.t-panel-head .t-label { display: inline-flex; align-items: center; gap: 8px; }
.t-panel-head .t-label .t-ic { width: 14px; height: 14px; color: var(--t-accent); }
.t-panel-head .t-right { display: flex; align-items: center; gap: 8px; }
.t-panel-body { padding: 14px; }
.t-panel-foot { padding: 8px 14px; border-top: 1px solid var(--t-line); font: 400 var(--t-fs-xs)/1.4 var(--t-font-mono); color: var(--t-faint); }
.t-panel.is-off .t-panel-body { opacity: .7; }
.t-readout { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.t-readout b { font: 600 var(--t-fs-2xl)/1 var(--t-font-mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.t-readout span { color: var(--t-muted); font-size: var(--t-fs-sm); }
.t-seg { display: inline-flex; border: 1px solid var(--t-line); border-radius: var(--t-r); overflow: hidden; }
.t-seg button { all: unset; cursor: pointer; padding: 0 10px; height: 26px; display: inline-flex; align-items: center; font: 500 12px/1 var(--t-font-mono); color: var(--t-muted); border-right: 1px solid var(--t-line); }
.t-seg button:last-child { border-right: 0; }
.t-seg button[aria-pressed="true"] { color: var(--t-on-accent); background: var(--t-accent); }
.t-seg button:focus-visible { outline: 2px solid var(--t-accent); outline-offset: -2px; }

/* =============================== KPI strip =============================== */
.t-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--t-line); border: 1px solid var(--t-line); border-radius: var(--t-r); overflow: hidden; }
@media (min-width: 768px) { .t-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .t-kpis { grid-template-columns: repeat(var(--t-kpi-cols, 6), minmax(0, 1fr)); } }
.t-kpi { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 12px; background: var(--t-bg); min-width: 0; overflow: hidden; }
.t-kpi .t-label { display: flex; align-items: center; gap: 6px; }
.t-kpi .t-label .t-ic { width: 13px; height: 13px; }
.t-kpi-v { font: 600 clamp(22px, 2vw, 28px)/1.05 var(--t-font-mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-kpi-v small { font: 400 12px/1 var(--t-font-mono); color: var(--t-muted); letter-spacing: 0; margin-left: 6px; }
.t-kpi-d { font: 500 12px/1.2 var(--t-font-mono); }
.t-kpi-s { font: 400 11.5px/1.35 var(--t-font-mono); color: var(--t-faint); }
.t-kpi svg { display: block; width: 100%; height: 32px; overflow: visible; }
.t-kpi.is-flash::after { content: ""; position: absolute; inset: 0; background: var(--t-accent-soft); animation: t-fade 1s ease-out forwards; pointer-events: none; }
@keyframes t-fade { to { opacity: 0; } }

/* =============================== section =============================== */
.t-section { padding: var(--t-9) 0; border-bottom: 1px solid var(--t-line); }
.t-section--tight { padding: var(--t-7) 0; }
.t-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: var(--t-5); }
.t-section-head > div { max-width: 720px; }
.t-section-head .t-label { display: inline-flex; align-items: center; gap: 8px; }
.t-section-head .t-label::before { content: ""; width: 14px; height: 1px; background: var(--t-accent); }
.t-h2 { font-size: var(--t-fs-xl); margin-top: 10px !important; }
.t-intro { margin-top: 8px !important; color: var(--t-muted); max-width: 640px; }
.t-grid-2 { display: grid; gap: var(--t-4); }
@media (min-width: 1000px) { .t-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.t-grid-3 { display: grid; gap: var(--t-4); }
@media (min-width: 900px) { .t-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* =============================== data table =============================== */
.t-table-wrap { overflow-x: auto; border: 1px solid var(--t-line); border-radius: var(--t-r); }
.t-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.t-table th { text-align: left; padding: 10px 14px; font: 500 var(--t-fs-2xs)/1.3 var(--t-font-mono); text-transform: uppercase; letter-spacing: var(--t-track-label); color: var(--t-muted); border-bottom: 1px solid var(--t-line); white-space: nowrap; background: var(--t-surface); }
.t-table td { padding: 10px 14px; border-bottom: 1px solid var(--t-line); vertical-align: middle; }
.t-table tr:last-child td { border-bottom: 0; }
.t-table tbody tr { transition: background var(--t-dur); }
.t-table tbody tr:hover { background: var(--t-surface); }
.t-table .r, .t-table td.t-num, .t-table th.r { text-align: right; }
.t-table td.t-num { font-family: var(--t-font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-table .t-empty td { color: var(--t-muted); }
.t-table tr.is-new { animation: t-row 1.2s ease-out 1; }
@keyframes t-row { from { background: var(--t-accent-soft); } to { background: transparent; } }

/* =============================== feature grid =============================== */
.t-features { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--t-line); border: 1px solid var(--t-line); border-radius: var(--t-r); overflow: hidden; }
@media (min-width: 640px) { .t-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .t-features { grid-template-columns: repeat(var(--t-feat-cols, 3), minmax(0, 1fr)); } }
.t-feature { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--t-bg); min-width: 0; text-decoration: none; color: inherit; transition: background var(--t-dur); }
a.t-feature:hover { background: var(--t-surface); }
.t-feature-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.t-feature-ic { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--t-line-strong); border-radius: var(--t-r); color: var(--t-accent); }
.t-feature h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.t-feature p { color: var(--t-muted); font-size: 14px; line-height: 1.5; }
.t-feature .t-meta { margin-top: auto; padding-top: 6px; font: 400 12px/1.3 var(--t-font-mono); color: var(--t-faint); }
a.t-feature .t-go { position: absolute; right: 16px; bottom: 16px; color: var(--t-faint); transition: color var(--t-dur), transform var(--t-dur); }
a.t-feature:hover .t-go { color: var(--t-accent); transform: translate(2px, -2px); }

/* =============================== pricing =============================== */
.t-pricing { display: grid; gap: 1px; background: var(--t-line); border: 1px solid var(--t-line); border-radius: var(--t-r); overflow: hidden; }
@media (min-width: 900px) { .t-pricing { grid-template-columns: repeat(var(--t-plans, 3), minmax(0, 1fr)); } }
.t-plan { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--t-bg); position: relative; }
.t-plan--featured { background: var(--t-surface); box-shadow: inset 0 2px 0 var(--t-accent); }
.t-plan-price { font: 600 34px/1 var(--t-font-mono); letter-spacing: -.03em; }
.t-plan-price small { font: 400 13px/1 var(--t-font-mono); color: var(--t-muted); margin-left: 4px; letter-spacing: 0; }
.t-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--t-muted); }
.t-plan li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.t-plan li::before { content: ""; width: 8px; height: 1px; margin-top: .75em; background: var(--t-accent); }
.t-plan .t-btn { margin-top: auto; }

/* =============================== FAQ =============================== */
.t-faq { border-top: 1px solid var(--t-line); }
.t-faq details { border-bottom: 1px solid var(--t-line); }
.t-faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; font-weight: 600; }
.t-faq summary::-webkit-details-marker { display: none; }
.t-faq summary::after { content: "+"; font: 400 18px/1 var(--t-font-mono); color: var(--t-accent); transition: transform var(--t-dur); }
.t-faq details[open] summary::after { transform: rotate(45deg); }
.t-faq details > div { padding: 0 0 18px; color: var(--t-muted); max-width: 760px; }

/* =============================== stepper =============================== */
.t-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border: 1px solid var(--t-line); border-radius: var(--t-r); overflow: hidden; counter-reset: t-step; }
@media (min-width: 800px) { .t-steps { grid-template-columns: repeat(var(--t-step-cols, 4), minmax(0, 1fr)); } }
.t-steps li { counter-increment: t-step; padding: 18px; border-bottom: 1px solid var(--t-line); display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 800px) { .t-steps li { border-bottom: 0; border-right: 1px solid var(--t-line); } .t-steps li:last-child { border-right: 0; } }
.t-steps li::before { content: counter(t-step, decimal-leading-zero); font: 500 12px/1 var(--t-font-mono); color: var(--t-accent); }
.t-steps b { font-weight: 600; }
.t-steps span { color: var(--t-muted); font-size: 14px; }

/* =============================== ticker (marquee) =============================== */
.t-ticker { display: flex; align-items: stretch; height: 34px; border-bottom: 1px solid var(--t-line); background: var(--t-bg); overflow: hidden; font: 400 12.5px/1 var(--t-font-mono); }
.t-ticker-lb { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-right: 1px solid var(--t-line); color: var(--t-text); flex: none; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; text-decoration: none; }
.t-ticker-v { position: relative; flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.t-ticker-trk { position: absolute; left: 0; top: 0; height: 100%; display: flex; white-space: nowrap; animation: t-tape var(--t-tape-dur, 60s) linear infinite; will-change: transform; }
.t-ticker:hover .t-ticker-trk, .t-ticker:focus-within .t-ticker-trk { animation-play-state: paused; }
@keyframes t-tape { to { transform: translateX(-50%); } }
.t-ticker-it { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; color: var(--t-muted); border-right: 1px solid var(--t-line); text-decoration: none; }
.t-ticker-it b { color: var(--t-text); font-weight: 500; }
a.t-ticker-it:hover { color: var(--t-text); background: var(--t-surface); }

/* =============================== uptime strip =============================== */
.t-uptime { display: grid; gap: 0; }
.t-uptime-row { display: grid; grid-template-columns: minmax(110px, 1.2fr) minmax(0, 3fr) auto; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--t-line); text-decoration: none; color: inherit; }
.t-uptime-row:last-child { border-bottom: 0; }
.t-uptime-row .n { display: flex; align-items: center; gap: 8px; font-size: 13.5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-uptime-row .ms { font: 500 12px/1 var(--t-font-mono); color: var(--t-muted); text-align: right; min-width: 56px; }
.t-uptime-cells { display: flex; gap: 2px; height: 18px; min-width: 0; }
.t-uptime-cells i { flex: 1; min-width: 2px; border-radius: 1px; background: var(--t-up); opacity: .85; transform-origin: bottom; }
.t-uptime-cells i.d { background: var(--t-down); opacity: 1; }
.t-uptime-cells i.n { background: var(--t-line-strong); opacity: .6; }
a.t-uptime-row:hover .n { color: var(--t-accent); }
@media (max-width: 520px) { .t-uptime-row { grid-template-columns: minmax(0, 1fr) auto; } .t-uptime-cells { grid-column: 1 / -1; grid-row: 2; } }

/* =============================== charts (chart-kit.js) =============================== */
.t-chart { position: relative; min-height: var(--t-chart-h, 180px); }
.t-chart > svg.t-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.t-svg .gl { stroke: var(--t-grid); stroke-width: 1; }
.t-svg .ax { stroke: var(--t-line-strong); stroke-width: 1; }
.t-svg .at { font: 400 10.5px var(--t-font-mono); fill: var(--t-faint); font-variant-numeric: tabular-nums; }
.t-svg .ln { fill: none; stroke: var(--t-accent); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.t-svg .ln2 { fill: none; stroke: var(--t-text); stroke-width: 2; stroke-linecap: round; opacity: 0; }
.t-svg .ln2.on { opacity: .55; animation: t-sweep 5s linear infinite; }
@keyframes t-sweep { from { stroke-dashoffset: var(--L2); } to { stroke-dashoffset: 0; } }
.t-svg .ar.live { animation: t-wash 7s ease-in-out infinite; }
@keyframes t-wash { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.t-svg .xh { stroke: var(--t-muted); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0; }
.t-svg .hit, .t-svg .hitb { fill: transparent; cursor: crosshair; }
.t-svg .hitb:focus-visible, .t-svg .hit:focus-visible { outline: none; stroke: var(--t-accent); stroke-width: 1; }
.t-svg .dot { fill: var(--t-accent); stroke: var(--t-bg); stroke-width: 2; opacity: 0; }
.t-svg .end { fill: var(--t-accent); stroke: var(--t-bg); stroke-width: 2; }
.t-svg .ring, .t-svg .pulse { fill: none; stroke: var(--t-accent); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.t-svg .ring.on { animation: t-ring 2.2s ease-out infinite; }
.t-svg .pulse.go { animation: t-ring 1.4s ease-out 1; }
@keyframes t-ring { 0% { opacity: .8; transform: scale(.5); } 100% { opacity: 0; transform: scale(3.2); } }
.t-svg .slide { transition: transform .5s var(--t-ease); }
.t-svg .bar-r { fill: color-mix(in srgb, var(--t-accent) 55%, transparent); transition: fill var(--t-dur); }
.t-svg .bar-r.last, .t-svg .bar-r.on { fill: var(--t-accent); }
.t-svg .sg { transition: opacity var(--t-dur); }
.t-svg .s-0 { fill: var(--t-s1); } .t-svg .s-1 { fill: var(--t-s2); } .t-svg .s-2 { fill: var(--t-s3); } .t-svg .s-3 { fill: var(--t-s4); } .t-svg .s-4 { fill: var(--t-s5); }
.t-svg .trk { fill: none; stroke: var(--t-line); }
.t-svg .arc { fill: none; stroke: var(--t-accent); stroke-linecap: butt; }
.t-svg .arc.s-1 { stroke: var(--t-s2); } .t-svg .arc.s-2 { stroke: var(--t-s3); } .t-svg .arc.s-3 { stroke: var(--t-s4); } .t-svg .arc.s-4 { stroke: var(--t-s5); }
.t-svg .cv { font: 600 22px var(--t-font-mono); fill: var(--t-text); letter-spacing: -.02em; }
.t-svg .cl { font: 400 10.5px var(--t-font-mono); fill: var(--t-muted); text-transform: uppercase; letter-spacing: .1em; }
.t-svg .empty-t { font: 400 12.5px var(--t-font-mono); fill: var(--t-muted); }
.t-spark { display: block; width: 100%; height: 32px; overflow: visible; }
.t-spark .l { fill: none; stroke: var(--t-accent); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.t-spark .a { fill: var(--t-accent); opacity: .1; }
.t-spark .d { fill: var(--t-accent); stroke: var(--t-bg); stroke-width: 1.5; }
.t-spark rect { fill: color-mix(in srgb, var(--t-accent) 50%, transparent); }
.t-spark rect.last { fill: var(--t-accent); }
.t-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 400 12px/1 var(--t-font-mono); color: var(--t-muted); }
.t-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 1px; margin-right: 6px; vertical-align: 0; background: var(--c); }
.t-tip { position: fixed; z-index: 80; pointer-events: none; max-width: 260px; padding: 8px 10px; border: 1px solid var(--t-line-strong); border-radius: var(--t-r); background: var(--t-bg); box-shadow: 0 10px 30px rgba(0,0,0,.5); font: 400 12px/1.45 var(--t-font-mono); color: var(--t-muted); opacity: 0; transition: opacity .12s ease; }
.t-tip.on { opacity: 1; }
.t-tip b { display: block; color: var(--t-text); font-weight: 600; font-size: 14px; }
.t-empty { display: grid; place-items: center; min-height: 120px; padding: 16px; color: var(--t-muted); font: 400 12.5px/1.5 var(--t-font-mono); text-align: center; border: 1px dashed var(--t-line); border-radius: var(--t-r); }

.hb-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; align-items: center; }
@media (max-width: 520px) { .hb-row { grid-template-columns: 1fr; } .hb-row .hb-gauge { max-width: 180px; margin: 0 auto; } }

/* =============================== toast =============================== */
.t-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.t-toast { pointer-events: auto; position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; padding: 12px 12px 14px 14px; background: var(--t-bg); border: 1px solid var(--t-line-strong); border-left: 2px solid var(--t-accent); border-radius: var(--t-r); box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: t-tin .3s var(--t-ease); }
.t-toast b { display: block; font-weight: 600; font-size: 14px; }
.t-toast span { display: block; color: var(--t-muted); font: 400 12px/1.4 var(--t-font-mono); margin-top: 2px; word-break: break-word; }
.t-toast.is-warn { border-left-color: var(--t-warn); }
@keyframes t-tin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* =============================== footer =============================== */
.t-footer { padding: var(--t-7) 0 var(--t-5); border-top: 1px solid var(--t-line); background: var(--t-bg); font-size: 14px; }
.t-footer-grid { display: grid; gap: var(--t-6); grid-template-columns: 1fr; }
@media (min-width: 700px) { .t-footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(var(--t-foot-cols, 3), minmax(0, 1fr)); } }
.t-footer h4 { font: 500 var(--t-fs-2xs)/1.3 var(--t-font-mono); text-transform: uppercase; letter-spacing: var(--t-track-label); color: var(--t-muted); margin-bottom: 12px !important; }
.t-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.t-footer ul a { color: var(--t-text); text-decoration: none; opacity: .85; }
.t-footer ul a:hover { color: var(--t-accent); opacity: 1; }
.t-footer-about p { color: var(--t-muted); margin-top: 12px !important; max-width: 360px; }
.t-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: var(--t-6); padding-top: var(--t-4); border-top: 1px solid var(--t-line); font: 400 12px/1.5 var(--t-font-mono); color: var(--t-faint); }
.t-badge { display: inline-flex; line-height: 0; border-radius: var(--t-r); flex: none; }
.t-badge img { height: 40px; width: auto; display: block; }

/* =============================== reduced motion: keep fades and value changes, drop movement =============================== */
@media (prefers-reduced-motion: reduce) {
  .t-ticker-trk { animation: none; position: static; }
  .t-ticker-v { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .t-svg .ln2.on, .t-svg .ring.on, .t-svg .ar.live, .is-live > .t-dot, .t-dot.is-live, .t-cursor::after { animation: none; }
  .t-js [data-t-reveal] { transform: none; transition: opacity .2s linear; }
  .t-btn, .t-btn .t-ar, .t-svg .slide { transition: none; }
}
