/* Track: one stylesheet, no inline styles anywhere, so the
   Content-Security-Policy needs no 'unsafe-inline'. The pages of an account
   are dark navy; the public pages have a dark header and hero over light
   sections. Every colour is a token of .theme-dark or .theme-light. */

:root {
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --radius: 14px;
    --radius-small: 10px;
    --brand-1: #2b8cff;
    --brand-2: #1268f3;
    --brand-glow: rgba(22, 119, 255, .45);
}

.theme-dark {
    color-scheme: dark;
    --bg: #060e1c;
    --side: #071224;
    --surface: #0a1729;
    --surface-2: #0e1f37;
    --surface-3: #132a4a;
    --border: #16294a;
    --border-strong: #23406b;
    --grid: #13233d;
    --axis: #22385c;
    --text: #f3f7fd;
    --text-2: #b8c4d8;
    --muted: #8291aa;
    --link: #58a6ff;
    --accent-text: #ffffff;
    --icon: #4ea1ff;
    --icon-bg: #0f2c57;
    --icon-border: #1a3d70;
    --series-1: #2f86ff;
    --series-1-hover: #6aaeff;
    --series-2: #4a5f82;
    --track: #142746;
    --bar-top: #3b9bff;
    --bar-bottom: #1559e8;
    --area-top: rgba(31, 122, 255, .55);
    --area-bottom: rgba(31, 122, 255, 0);
    --good: #35d07f;
    --bad: #ff6464;
    --warning: #f5b544;
    --good-bg: rgba(53, 208, 127, .12);
    --info-bg: #0d2140;
    --info-border: #1f4a86;
    --warning-bg: #2a2010;
    --warning-border: #8a6514;
    --danger-bg: #2a1216;
    --tooltip-bg: #f3f7fd;
    --tooltip-text: #071224;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px -18px rgba(0, 0, 0, .8);
    --focus: #6aaeff;
    color: var(--text);
}

.theme-light {
    color-scheme: light;
    --bg: #f4f7fc;
    --side: #ffffff;
    --surface: #ffffff;
    --surface-2: #f1f5fb;
    --surface-3: #e8eef8;
    --border: #e2e9f4;
    --border-strong: #c9d6ea;
    --grid: #e9eef6;
    --axis: #cdd8e8;
    --text: #0a1426;
    --text-2: #3f4b60;
    --muted: #627089;
    --link: #1063e8;
    --accent-text: #ffffff;
    --icon: #1268f3;
    --icon-bg: #eaf2ff;
    --icon-border: #d6e5ff;
    --series-1: #1f7aff;
    --series-1-hover: #1259d6;
    --series-2: #aebbd0;
    --track: #e8eef8;
    --bar-top: #3b9bff;
    --bar-bottom: #1559e8;
    --area-top: rgba(31, 122, 255, .3);
    --area-bottom: rgba(31, 122, 255, 0);
    --good: #0e8a49;
    --bad: #d93b41;
    --warning: #a86500;
    --good-bg: #e6f7ee;
    --info-bg: #eef5ff;
    --info-border: #b9d4fb;
    --warning-bg: #fff6e3;
    --warning-border: #f0c062;
    --danger-bg: #fdeeee;
    --tooltip-bg: #0a1426;
    --tooltip-text: #ffffff;
    --shadow: 0 1px 2px rgba(10, 20, 38, .04), 0 12px 32px -20px rgba(10, 20, 38, .25);
    --focus: #1268f3;
    color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    font: 16px/1.55 var(--font);
    min-height: 100vh;
}

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); font-weight: 800; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; overflow-wrap: anywhere; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--text); padding: 8px 12px; z-index: 50; border-radius: 8px; }
.skip:focus { left: 16px; }

/* The gradients of the page live in one hidden SVG. */
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.stop-bar-top { stop-color: var(--bar-top); }
.stop-bar-bottom { stop-color: var(--bar-bottom); }
.stop-area-top { stop-color: var(--area-top); }
.stop-area-bottom { stop-color: var(--area-bottom); }
.stop-track-start { stop-color: var(--bar-bottom); }
.stop-track-end { stop-color: var(--bar-top); }

.icon {
    width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.25em;
    fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.icon--overview { stroke-width: 3; }

.brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; }
.logo { display: block; width: auto; height: 32px; }
.brand__logo--small { height: 24px; }

/* Buttons */

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(180deg, var(--brand-1), var(--brand-2)); color: #fff;
    border: 1px solid #2d7cf6; border-radius: 10px; padding: 10px 18px;
    font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer;
    box-shadow: 0 8px 22px -10px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.button:hover { background: linear-gradient(180deg, #4a9dff, #1a6ff5); text-decoration: none; }
.button .icon { width: 1.1em; height: 1.1em; }
.button--ghost {
    background: transparent; color: var(--text); border-color: var(--border-strong); box-shadow: none;
}
.button--ghost:hover { background: var(--surface-2); }
.button--small { padding: 7px 13px; font-size: .9rem; border-radius: 9px; }
.button--large { padding: 14px 24px; font-size: 1.05rem; border-radius: 12px; }
.form--danger .button { background: var(--bad); border-color: var(--bad); box-shadow: none; color: #fff; }

/* Forms (go-form's "track" theme) */

.form { margin: 0; }
.field { margin-bottom: 16px; }
.field__label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field__required { color: var(--muted); font-weight: 400; }
.field__hint { color: var(--muted); font-size: .85rem; margin: -2px 0 6px; }
.field__error { color: var(--bad); font-size: .875rem; margin-top: 4px; }
.input {
    width: 100%; font: inherit; color: var(--text); background: var(--surface-2);
    border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px 13px;
}
.input::placeholder { color: var(--muted); }
.input:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.input[aria-invalid="true"] { border-color: var(--bad); }
select.input { appearance: auto; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.check__box { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--brand-2); }
.check__label { font-size: .925rem; color: var(--text-2); }
.form__buttons { display: flex; gap: 12px; align-items: center; margin-top: 8px; flex-wrap: wrap; }

.notice {
    background: var(--info-bg); border: 1px solid var(--info-border); border-radius: var(--radius-small);
    padding: 12px 16px; margin-bottom: 20px; color: var(--text);
}
.notice p:last-child { margin: 0; }
.notice--warning { background: var(--warning-bg); border-color: var(--warning-border); }
.notice--error { background: var(--danger-bg); border-color: var(--bad); }

.badge {
    display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px;
    background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap;
}
.badge--ok { color: var(--good); background: var(--good-bg); border-color: transparent; }
.badge--off { color: var(--bad); }
.badge--blue { color: var(--icon); background: var(--icon-bg); border-color: var(--icon-border); }

.muted { color: var(--muted); }
.footnote { color: var(--muted); font-size: .8125rem; max-width: 70em; margin-top: 16px; }
.aside { margin-top: 16px; font-size: .9375rem; color: var(--text-2); }

/* ------------------------------------------------------------------
   The pages of an account: sidebar, bar, content
   ------------------------------------------------------------------ */

.app {
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(30, 110, 255, .16), transparent 60%),
        radial-gradient(700px 600px at -10% 110%, rgba(30, 110, 255, .14), transparent 60%),
        var(--bg);
    background-attachment: fixed;
}

.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }

.side {
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    display: flex; flex-direction: column; gap: 20px;
    padding: 22px 16px 20px; background: linear-gradient(180deg, rgba(7, 18, 36, .92), rgba(6, 14, 28, .92));
    border-right: 1px solid var(--border);
}
.side__brand { padding: 2px 12px 10px; }
.side__nav { flex: 1; }
.side__label {
    margin: 14px 12px 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.side__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side__link {
    display: flex; align-items: center; gap: 13px; padding: 10px 12px; border-radius: 10px;
    color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.side__link .icon { width: 20px; height: 20px; color: var(--muted); }
.side__link:hover { background: var(--surface-2); color: var(--text); }
.side__link:hover .icon { color: var(--text-2); }
.side__link[aria-current="page"] {
    background: linear-gradient(90deg, rgba(31, 122, 255, .28), rgba(31, 122, 255, .12));
    color: #fff; box-shadow: inset 0 0 0 1px rgba(56, 140, 255, .35);
}
.side__link[aria-current="page"] .icon { color: var(--icon); }

.shell__body { min-width: 0; display: flex; flex-direction: column; }

.bar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 14px 28px; border-bottom: 1px solid var(--border);
    background: rgba(6, 14, 28, .82); backdrop-filter: blur(10px);
}
.bar__start, .bar__end { display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: wrap; }
.bar__label { color: var(--muted); font-size: .9rem; }

.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__button {
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none;
    padding: 9px 14px; min-height: 42px; border-radius: 11px; color: var(--text);
    background: var(--surface); border: 1px solid var(--border-strong); font-weight: 500; font-size: .95rem;
}
.menu__button:hover { border-color: var(--axis); background: var(--surface-2); }
.menu__button .icon { color: var(--icon); width: 18px; height: 18px; }
.menu__button .icon--chevron { color: var(--muted); margin-left: 4px; transition: transform .15s; }
.menu[open] .menu__button .icon--chevron { transform: rotate(180deg); }
.menu__button--plain { background: transparent; border-color: transparent; padding-left: 6px; }
.menu__text { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker .menu__button { min-width: 240px; }
.picker .menu__text { flex: 1; }
.menu__panel {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; min-width: 240px; max-width: 320px;
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px;
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); padding: 6px;
}
.menu--end .menu__panel { left: auto; right: 0; }
.menu__list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.menu__list a, .menu__list button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 8px;
    color: var(--text-2); text-decoration: none; font: inherit; font-size: .95rem; background: none; border: 0; cursor: pointer; text-align: left;
    overflow-wrap: anywhere;
}
.menu__list a:hover, .menu__list button:hover { background: var(--surface-2); color: var(--text); }
.menu__list a[aria-current="page"] { color: var(--text); font-weight: 600; background: rgba(31, 122, 255, .16); }
.menu__list form { margin: 0; }
.menu__list .icon { width: 18px; height: 18px; flex: none; color: var(--muted); }
.menu__list a[aria-current="page"] .icon { color: var(--icon); }
.menu__list--sites li:first-child { margin-bottom: 4px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.menu__meta { margin: 4px 12px 8px; font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.menu__extra {
    display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 10px 12px; border-top: 1px solid var(--border);
    color: var(--link); text-decoration: none; font-size: .9rem; font-weight: 600;
}
.avatar {
    display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none;
    background: linear-gradient(180deg, var(--brand-1), var(--brand-2)); color: #fff; font-weight: 700; font-size: .85rem;
}

.main { flex: 1; width: 100%; max-width: 1400px; padding: 28px 28px 48px; }
.app-foot { padding: 0 32px 24px; color: var(--muted); font-size: .85rem; }
.app-foot p { margin: 0; }
.app-foot a { color: var(--muted); }

/* Page heads */

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { margin-bottom: 6px; overflow-wrap: anywhere; }
.page-head__lead { color: var(--text-2); font-size: 1.05rem; margin: 0; max-width: 52em; }
.page-head__side { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.page-head__note { color: var(--muted); font-size: .85rem; margin: 0; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--link); margin-bottom: 8px; }
.eyebrow a { color: inherit; }

.live {
    display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border-radius: 999px;
    color: var(--good); background: var(--good-bg); border: 1px solid rgba(53, 208, 127, .3); font-size: .875rem; font-weight: 600;
}
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(53, 208, 127, .22); }

/* Panels */

.panel {
    container-type: inline-size;
    background: linear-gradient(180deg, rgba(14, 31, 55, .55), rgba(10, 23, 41, .8)), var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px 22px; margin-bottom: 20px; box-shadow: var(--shadow); min-width: 0;
}
.theme-light .panel { background: var(--surface); }
.panel--danger { border-color: rgba(255, 100, 100, .45); }
.panel--danger h2 { color: var(--bad); }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.panel__head h2 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 1.15rem; }
.panel__head h2 .icon-tile { width: 34px; height: 34px; border-radius: 10px; }
.panel__more { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--link); text-decoration: none; white-space: nowrap; }
.panel__more:hover { text-decoration: underline; }
.panel__more .icon { width: 1em; height: 1em; }
.panel__sub { display: block; font-size: .78rem; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-top: 2px; }
.panel__metric { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

.icon-tile {
    display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none;
    background: var(--icon-bg); color: var(--icon); border: 1px solid var(--icon-border);
}
.icon-tile .icon { width: 55%; height: 55%; }
.icon-tile--red { --icon-bg: rgba(255, 90, 90, .14); --icon-border: rgba(255, 90, 90, .3); --icon: #ff7a7a; }
.icon-tile--green { --icon-bg: rgba(53, 208, 127, .13); --icon-border: rgba(53, 208, 127, .3); --icon: #4ade8f; }
.icon-tile--violet { --icon-bg: rgba(139, 92, 246, .16); --icon-border: rgba(139, 92, 246, .35); --icon: #a78bfa; }
.icon-tile--amber { --icon-bg: rgba(245, 181, 68, .14); --icon-border: rgba(245, 181, 68, .32); --icon: #f5b544; }
.icon-tile--solid { background: linear-gradient(180deg, var(--brand-1), var(--brand-2)); color: #fff; border-color: transparent; }

.grid { display: grid; gap: 20px; margin-bottom: 20px; }
.grid > .panel { margin-bottom: 0; }
.grid--1 { grid-template-columns: minmax(0, 1fr); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--aside { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.stack { display: grid; gap: 20px; align-content: start; min-width: 0; }
.stack > .panel, .stack > .grid { margin-bottom: 0; }

.group-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; color: var(--text); margin: 32px 0 14px; }
.group-title .icon { color: var(--icon); }

/* Tiles: the headline numbers */

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 158px), 1fr)); gap: 14px; margin-bottom: 20px; }
.tile {
    position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0;
    padding: 16px; border-radius: var(--radius); border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(16, 36, 66, .6), rgba(10, 23, 41, .85)), var(--surface); box-shadow: var(--shadow);
}
.theme-light .tile { background: var(--surface); }
.tile { container-type: inline-size; }
.tile__head { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: .9rem; line-height: 1.25; hyphens: auto; overflow-wrap: break-word; min-width: 0; }
.tile__head .icon-tile { width: 36px; height: 36px; border-radius: 11px; }
.tile__value { font-size: clamp(1.3rem, 16cqi, 2.1rem); font-weight: 800; margin: 0; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
.tile__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; min-height: 32px; }
.tile__note { font-size: .8125rem; color: var(--muted); margin: 0; }
.minibars { display: block; width: 64px; height: 30px; flex: none; }
.minibars rect { fill: url(#fill-bar); }
.minibars .minibars__dim { fill: var(--track); }

/* A change is told by its arrow and its words; the colour only adds to it. */
.change { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 650; font-size: .95rem; color: var(--muted); }
.change .icon { width: 1em; height: 1em; stroke-width: 2.4; }
.change--good { color: var(--good); }
.change--bad { color: var(--bad); }
.change--small { font-size: .82rem; }

/* Segmented control: radio buttons, no script */

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); }
.seg__input { position: absolute; opacity: 0; pointer-events: none; }
.seg__option { padding: 7px 16px; border-radius: 8px; color: var(--text-2); font-size: .9rem; font-weight: 500; cursor: pointer; white-space: nowrap; }
.seg__option:hover { color: var(--text); }

/* The radio buttons come first in .switch, so their state reaches the
   labels, titles and panes after them. */
.switch__pane, .switch__title { display: none; }
#metric-0:checked ~ .switch__pane--0, #metric-1:checked ~ .switch__pane--1, #metric-2:checked ~ .switch__pane--2 { display: block; }
#metric-0:checked ~ .panel__head .switch__title--0,
#metric-1:checked ~ .panel__head .switch__title--1,
#metric-2:checked ~ .panel__head .switch__title--2 { display: inline; }
#metric-0:checked ~ .panel__head .seg__option--0,
#metric-1:checked ~ .panel__head .seg__option--1,
#metric-2:checked ~ .panel__head .seg__option--2 {
    background: linear-gradient(180deg, var(--brand-1), var(--brand-2)); color: #fff; box-shadow: 0 6px 16px -8px var(--brand-glow);
}
#metric-0:focus-visible ~ .panel__head .seg__option--0,
#metric-1:focus-visible ~ .panel__head .seg__option--1,
#metric-2:focus-visible ~ .panel__head .seg__option--2 { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Charts. Sizes are percentages or a stretched viewBox, so no chart needs
   a style attribute. */

.chart { margin: 0; }
.chart__body { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 12px; }
.chart__ticks {
    display: flex; flex-direction: column; justify-content: space-between; height: 240px;
    font-size: .78rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums;
}
.chart__ticks span { line-height: 0; }
.chart__plot {
    position: relative; height: 240px;
    background-image: linear-gradient(var(--grid) 1px, transparent 1px);
    background-size: 100% 25%; border-bottom: 1px solid var(--axis);
}
.chart__plot--small { height: 180px; }
.chart__ticks--small { height: 180px; }
.chart__svg, .chart__overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
.chart__area { fill: url(#fill-area); }
.chart__line { fill: none; stroke: var(--series-1); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart__dot { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; }
.chart__dot--hover { opacity: 0; }
.chart__point:hover .chart__dot--hover { opacity: 1; }
.chart__axis { grid-column: 2; display: block; width: 100%; height: 24px; overflow: visible; }
.chart__axis text { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.chart__caption { display: block; font-weight: 700; margin-bottom: 14px; }
.chart__head { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.chart__head .chart__caption { margin: 0; }
.chart__guide { stroke: var(--axis); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.chart__point:hover .chart__guide { opacity: 1; }
.chart__point:hover .chart__dot { fill: #fff; stroke: var(--series-1); stroke-width: 3; }
.chart__hit { fill: transparent; }
.chart__mark { fill: url(#fill-bar); }
.chart__bar:hover .chart__mark { fill: var(--series-1-hover); }
.chart__bar:hover .chart__hit { fill: rgba(47, 134, 255, .07); }
.chart__mark.chart__mark--last { fill: var(--series-2); }
.chart__bar:hover .chart__mark--last { fill: var(--axis); }
.chart__empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; color: var(--muted); }
.chart__labels { grid-column: 2; display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); padding-top: 8px; gap: 4px; }
.chart__labels.chart__labels--grid { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); text-align: center; }
.chart__labels--week { --n: 7; }
.chart__labels--months { --n: 12; }
.chart__table { margin-top: 14px; font-size: .875rem; }
.chart__table summary { cursor: pointer; color: var(--muted); }
.chart__table .table { margin-top: 8px; }
.chart__total { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.chart__total strong { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.chart__total .muted { font-size: .9rem; }

.legend { display: inline-flex; gap: 16px; font-size: .85rem; color: var(--text-2); }
.legend__item::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.legend__item--this::before { background: var(--series-1); }
.legend__item--last::before { background: var(--series-2); }

.tooltip {
    position: fixed; z-index: 60; pointer-events: none; max-width: 280px;
    background: var(--tooltip-bg); color: var(--tooltip-text); font-size: .82rem; line-height: 1.35; font-weight: 500;
    padding: 7px 11px; border-radius: 8px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

.spark { display: block; width: 120px; height: 32px; }
.spark__line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; }
.spark__area { fill: url(#fill-area); }
.sparkbars { display: block; width: 120px; height: 26px; }
.sparkbars rect { fill: url(#fill-bar); }

/* Lists with bars */

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bars__row {
    display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(40px, 1fr) auto; align-items: center;
    gap: 6px 16px; padding: 7px 0; font-size: .95rem;
}
.bars--share .bars__row { grid-template-columns: minmax(0, 1.7fr) minmax(40px, 1fr) auto 2.8em; }
.bars--change .bars__row { grid-template-columns: minmax(0, 1.7fr) minmax(40px, 1fr) auto 2.8em 4.4em; }
.bars--delta .bars__row { grid-template-columns: minmax(0, 1.7fr) minmax(40px, 1fr) auto 4.4em; }
.bars__label { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bars__text { min-width: 0; overflow-wrap: break-word; color: var(--text); line-height: 1.3; }
.bars__text a { color: var(--text); text-decoration: none; }
.bars__text a:hover { text-decoration: underline; color: var(--link); }
.bars__detail { display: block; color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars__track { display: block; width: 100%; height: 10px; }
.bars__track .bars__bg { fill: var(--track); }
.bars__track .bars__fill { fill: url(#fill-track); }
.bars__value, .bars__share, .bars__change { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bars__value { font-weight: 650; }
.bars__share { color: var(--muted); font-size: .9rem; }
.bars__change { font-size: .85rem; }
.bars__change .change { font-size: inherit; }
.bars__head {
    display: grid; grid-template-columns: inherit; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
.chip {
    display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none;
    background: var(--surface-3); color: var(--icon); border: 1px solid var(--border-strong);
}
.chip .icon { width: 16px; height: 16px; }
.chip--search { color: #5fb0ff; }
.chip--ai { color: #b18cff; }
.chip--social { color: #9b87ff; }
.chip--email { color: #ffb44c; }
.chip--paid { color: #ff8a65; }
.chip--campaign { color: #ffa94d; }
.chip--referral { color: #4fd1c5; }
.chip--direct { color: #6aaeff; }
.flag { font-size: 1.2rem; line-height: 1; width: 30px; text-align: center; flex: none; }

/* Speed gauge */

.gauge { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 22px; align-items: center; }
.gauge__ring { position: relative; width: 132px; height: 132px; }
.gauge__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge__bg { fill: none; stroke: var(--track); stroke-width: 10; }
.gauge__value { fill: none; stroke: var(--good); stroke-width: 10; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(53, 208, 127, .45)); }
.gauge--warning .gauge__value { stroke: var(--warning); filter: none; }
.gauge--bad .gauge__value { stroke: var(--bad); filter: none; }
.gauge__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge__label strong { font-size: 1.9rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.gauge__label span { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.gauge__status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px; color: var(--good); }
.gauge--warning .gauge__status { color: var(--warning); }
.gauge--bad .gauge__status { color: var(--bad); }
.gauge__status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.gauge__text { color: var(--text-2); font-size: .9rem; margin: 0 0 12px; }

/* Insights: the cards beside the pages */

.insight { display: block; padding: 20px; }
.insight__head { display: flex; align-items: center; gap: 12px; font-weight: 650; margin-bottom: 12px; }
.insight__head .icon-tile { width: 34px; height: 34px; border-radius: 10px; }
.insight__title { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 4px; overflow-wrap: anywhere; }
.insight__value { font-size: 1.35rem; font-weight: 800; margin: 0 0 6px; color: var(--good); }
.insight__value--plain { color: var(--text); }
.insight__text { color: var(--text-2); font-size: .9rem; margin: 0; }

/* Tables */

.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .935rem; }
.table th, .table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; background: var(--surface-2); }
.table thead th:first-child { border-top-left-radius: 10px; }
.table thead th:last-child { border-top-right-radius: 10px; }
.table tbody tr:hover td { background: rgba(47, 134, 255, .04); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table--compact th, .table--compact td { padding: 5px 8px; }
.table .change { font-size: .82rem; margin-left: 8px; }
.cell-path { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.cell-path .icon { color: var(--muted); }
.cell-path__text { min-width: 0; }
.cell-path a { color: var(--text); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.cell-path a:hover { color: var(--link); text-decoration: underline; }
.cell__detail { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; overflow-wrap: anywhere; }
.share { position: relative; min-width: 120px; }
.share__bar { display: inline-block; vertical-align: middle; width: calc(100% - 52px); height: 8px; margin-right: 8px; }
.share__bar .bars__bg { fill: var(--track); }
.share__bar .bars__fill { fill: url(#fill-track); }

.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.search-box { position: relative; flex: 1; min-width: min(100%, 260px); }
.search-box .icon { position: absolute; left: 14px; top: 50%; margin-top: -9px; width: 18px; height: 18px; color: var(--muted); }
.search-box .input { padding-left: 44px; min-height: 46px; background: var(--surface); }

.facts { margin: 0 0 16px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.goals { margin-bottom: 18px; }
.goals li { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.goals form { margin: 0; }
.goals__detail { display: block; color: var(--muted); font-size: .85rem; }

.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-bottom: 20px; }
.highlight {
    display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--radius); min-width: 0;
    background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none;
}
.highlight:hover { border-color: var(--border-strong); }
.highlight__label { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.highlight__label .icon { color: var(--icon); }
.highlight__site { font-weight: 800; font-size: 1.1rem; overflow-wrap: anywhere; }
.highlight__text { font-size: .875rem; color: var(--text-2); }

.sorts { display: flex; flex-wrap: wrap; gap: 4px; font-size: .875rem; align-items: center; }
.sorts a { color: var(--text-2); text-decoration: none; padding: 5px 10px; border-radius: 8px; }
.sorts a:hover { background: var(--surface-2); color: var(--text); }
.sorts a[aria-current="true"] { color: #fff; background: rgba(31, 122, 255, .22); font-weight: 650; }
.overview__site { font-weight: 650; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.overview__site:hover { color: var(--link); text-decoration: underline; }
.overview__change { display: block; }
.overview .badge { margin-top: 4px; }

.empty { text-align: center; padding: 48px 20px; }
.empty .icon-tile { margin-bottom: 14px; }
.narrow { max-width: 520px; }
.narrow-wide { max-width: 860px; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 20px; margin-bottom: 20px; }
.columns > .panel { margin-bottom: 0; }

.token__value { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 14px 0; }
.token__value code { font-size: 1.05rem; padding: 10px 14px; border: 1px dashed var(--border-strong); }

.code {
    font-family: var(--mono); font-size: .86rem; line-height: 1.6; color: #dbe7fb;
    background: #050b17; border: 1px solid #1a2b47; border-radius: 12px;
    padding: 14px 16px; overflow-x: auto; margin: 0 0 1em; tab-size: 4;
}
.code code { background: none; padding: 0; overflow-wrap: normal; color: inherit; font-size: inherit; }
.steps { padding-left: 1.3em; margin: 0 0 1em; }
.steps > li { margin-bottom: 16px; }
.steps li::marker { font-weight: 800; color: var(--icon); }
.install h2 { margin-bottom: 16px; }

/* ------------------------------------------------------------------
   The public pages
   ------------------------------------------------------------------ */

.site { background: var(--bg); display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.theme-dark.masthead, .theme-dark.hero, .theme-dark.band { background: #050c1a; }

.masthead { position: relative; z-index: 5; }
.masthead__inner { display: flex; align-items: center; gap: 16px 40px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.topnav { display: flex; gap: 6px 30px; flex: 1; justify-content: center; flex-wrap: wrap; }
.topnav a, .masthead__link { color: #dfe7f4; text-decoration: none; font-weight: 500; font-size: .95rem; padding: 6px 0; }
.topnav a:hover, .masthead__link:hover { color: #fff; }
.topnav a[aria-current="page"] { color: #58a6ff; box-shadow: inset 0 -2px 0 #2f86ff; }
.masthead__end { display: flex; align-items: center; gap: 22px; }

.hero { position: relative; overflow: hidden; padding: 56px 0 72px; isolation: isolate; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(600px 420px at 78% 40%, rgba(25, 105, 255, .35), transparent 70%),
        radial-gradient(500px 300px at 10% 0%, rgba(25, 105, 255, .12), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero__title { font-size: clamp(2.3rem, 1.3rem + 3vw, 3.7rem); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 22px; font-weight: 800; }
.accent { background: linear-gradient(90deg, #1f7aff, #3aa0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.theme-light .accent { background: linear-gradient(90deg, #1063e8, #2f86ff); -webkit-background-clip: text; background-clip: text; }
.hero__lead { font-size: 1.2rem; color: #d3dcea; max-width: 34em; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero__checks { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px 26px; flex-wrap: wrap; color: #c8d3e4; font-size: .92rem; }
.hero__checks li { display: inline-flex; align-items: center; gap: 9px; }
.tick {
    display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; flex: none;
    background: #1d4f9c; color: #fff;
}
.tick .icon { width: 12px; height: 12px; stroke-width: 3; }
.theme-light .tick { background: var(--brand-2); }
.tick--no { background: rgba(255, 100, 100, .16); color: var(--bad); border: 1px solid rgba(255, 100, 100, .45); }
.theme-light .tick--no { background: #fdeeee; }

/* Decorative bars, after the logo's, at the edges of a dark band. */
.pillars { position: absolute; z-index: -1; display: flex; align-items: flex-end; gap: 14px; pointer-events: none; }
.pillars span { display: block; width: 110px; border-radius: 60px 60px 0 0; background: linear-gradient(180deg, rgba(47, 134, 255, .9), rgba(18, 70, 190, .25) 70%, transparent); box-shadow: 0 0 40px rgba(31, 122, 255, .35); opacity: .85; }
.pillars--hero { right: -40px; bottom: -10px; }
.pillars--hero span:nth-child(1) { height: 120px; opacity: .35; }
.pillars--hero span:nth-child(2) { height: 220px; opacity: .55; }
.pillars--hero span:nth-child(3) { height: 360px; }
.pillars--cta { right: 0; bottom: 0; gap: 18px; }
.pillars--cta span { width: 84px; background: linear-gradient(180deg, rgba(90, 170, 255, .9), rgba(47, 134, 255, .35) 80%); box-shadow: none; }
.pillars--cta span:nth-child(1) { height: 50px; opacity: .3; }
.pillars--cta span:nth-child(2) { height: 90px; opacity: .45; }
.pillars--cta span:nth-child(3) { height: 130px; opacity: .65; }
.pillars--cta span:nth-child(4) { height: 170px; }

/* The laptop on the home page: an example of the dashboard, in HTML. */
.laptop { position: relative; margin: 0 auto; max-width: 620px; }
.laptop__screen {
    border-radius: 18px 18px 6px 6px; padding: 14px; background: #0b111d;
    border: 2px solid #2a3243; box-shadow: 0 30px 80px -30px rgba(31, 122, 255, .6), 0 0 0 6px #121a29;
}
.laptop__base { height: 16px; margin: 0 -8%; border-radius: 0 0 22px 22px; background: linear-gradient(180deg, #3a4356, #151b27); box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.demo { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; font-size: .78rem; color: #c9d4e6; }
.demo__side { display: grid; gap: 4px; align-content: start; }
.demo__side .logo { height: 20px; margin: 4px 6px 12px; }
.demo__item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; color: #9fb0c8; }
.demo__item .icon { width: 14px; height: 14px; }
.demo__item--on { background: rgba(31, 122, 255, .3); color: #fff; }
.demo__main { display: grid; gap: 10px; }
.demo__card { background: #0f1a2c; border: 1px solid #1b2a44; border-radius: 10px; padding: 12px; }
.demo__card strong { display: block; font-size: 1.5rem; color: #fff; letter-spacing: -.02em; }
.demo__head { display: flex; justify-content: space-between; color: #fff; font-weight: 600; font-size: .85rem; }
.demo__pill { font-size: .68rem; color: #9fb0c8; border: 1px solid #263755; border-radius: 6px; padding: 2px 7px; font-weight: 400; }
.demo__bars { display: block; width: 100%; height: 80px; margin-top: 6px; }
.demo__bars rect { fill: url(#fill-bar); }
.demo__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.demo__row strong { font-size: 1.05rem; }
.demo__up { color: #35d07f; font-weight: 600; }
.demo__down { color: #ff6464; font-weight: 600; }

/* Sections */

.section { padding: 64px 0; }
.section--tight { padding: 36px 0; }
.section--alt { background: linear-gradient(180deg, #ffffff, #f4f7fc); }
.section__head { max-width: 640px; margin-bottom: 36px; }
.section__head h2, .section-title { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.section__lead { color: var(--text-2); font-size: 1.08rem; }

.feature-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: -40px; position: relative; z-index: 2; }
.feature-card {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: start;
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: var(--shadow);
}
.feature-card .icon-tile { grid-row: span 2; width: 56px; height: 56px; border-radius: 14px; }
.feature-card h3 { font-size: 1.08rem; margin: 2px 0 0; }
.feature-card p { margin: 0; color: var(--text-2); font-size: .92rem; }
.feature-card--stack { grid-template-columns: 1fr; }
.feature-card--stack .icon-tile { grid-row: auto; margin-bottom: 14px; }
.feature-card--stack h3 { margin-bottom: 8px; font-size: 1.12rem; }

.how { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); gap: 40px; align-items: start; }
.how__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.how__step { position: relative; padding-left: 58px; }
.how__step::before {
    counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0;
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(180deg, var(--brand-1), var(--brand-2)); color: #fff; font-weight: 700; box-shadow: 0 0 0 6px #e3eeff;
}
.how__step .icon-tile { margin-bottom: 12px; }
.how__step h3 { margin-bottom: 6px; }
.how__step p { color: var(--text-2); font-size: .93rem; margin: 0 0 8px; }
.how__step code { font-size: .78rem; overflow-wrap: anywhere; }

.showcase { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); gap: 40px; align-items: center; }
.showcase__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.show-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.show-card__head { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: .95rem; margin-bottom: 14px; }
.show-card__head .icon { color: var(--icon); width: 22px; height: 22px; }
.show-card__body { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.show-card strong { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.show-card small { color: var(--muted); font-size: .82rem; }
.show-card .sparkbars { width: 76px; height: 40px; }
.donut { width: 58px; height: 58px; transform: rotate(-90deg); flex: none; }
.donut__bg { fill: none; stroke: #cfe0fb; stroke-width: 7; }
.donut__value { fill: none; stroke: var(--series-1); stroke-width: 7; }

.lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.check-list .tick { margin-top: 2px; }

.cta { position: relative; overflow: hidden; isolation: isolate; padding: 48px 0; background: linear-gradient(180deg, #f4f7fc, #e9f1fd); border-top: 1px solid var(--border); }
.cta__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding-right: 330px; }
.cta__title { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin: 0; }
.cta__side p { color: var(--text-2); margin-bottom: 16px; max-width: 32em; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.theme-light .button--ghost { background: #fff; border-color: var(--border-strong); color: var(--text); }
.theme-light .button--ghost:hover { background: var(--surface-2); }
.theme-dark .button--ghost { background: rgba(255, 255, 255, .02); border-color: rgba(205, 222, 248, .4); color: #fff; }
.theme-dark .button--ghost:hover { background: rgba(255, 255, 255, .07); }

/* Privacy */

.shield-art { position: relative; height: 380px; }
.shield-art__glow { position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; border: 1px solid rgba(80, 150, 255, .22); box-shadow: 0 0 120px rgba(31, 122, 255, .35), inset 0 0 60px rgba(31, 122, 255, .2); }
.shield-art__glow::after { content: ""; position: absolute; inset: 50px; border-radius: 50%; border: 1px solid rgba(80, 150, 255, .18); }
.shield-art svg.shield-art__shield { position: absolute; left: 50%; top: 50%; width: 240px; height: 270px; margin: -135px 0 0 -120px; filter: drop-shadow(0 0 40px rgba(31, 122, 255, .7)); }
.float-chip {
    position: absolute; display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px;
    background: rgba(13, 28, 52, .82); border: 1px solid #22406c; color: #fff; font-weight: 650; font-size: .92rem;
    box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .8); backdrop-filter: blur(6px);
}
.float-chip small { display: block; color: #a9b8cf; font-weight: 400; font-size: .8rem; }
.float-chip .icon { color: #4ea1ff; width: 26px; height: 26px; }
.float-chip--1 { left: 0; top: 18px; }
.float-chip--2 { right: 0; top: 40px; }
.float-chip--3 { right: 10px; bottom: 30px; }

.cards-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: -40px; position: relative; z-index: 2; }
.cards-5 .feature-card { padding: 22px 20px; }
.cards-5 .feature-card p { font-size: .9rem; }

.compare { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.compare__intro { padding: 10px 6px; }
.compare__card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.compare__card--track { border-color: #cfe0fb; background: linear-gradient(180deg, #f6faff, #fff); }
.compare__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.compare__head .logo { height: 30px; }
.compare__head h3 { margin: 0; font-size: 1.15rem; }

.prose { max-width: 780px; }
.prose h2 { margin-top: 1.8em; font-size: 1.35rem; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--text-2); }
.prose .lead { font-size: 1.15rem; color: var(--text); }
.options dt { margin-top: 14px; }
.options dd { margin: 4px 0 0; color: var(--text-2); }

.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: 48px 0 56px; }
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background: radial-gradient(600px 300px at 85% 30%, rgba(25, 105, 255, .3), transparent 70%);
}
.page-hero h1 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem); letter-spacing: -.03em; }
.page-hero p { color: #d3dcea; font-size: 1.12rem; max-width: 40em; }
.page-hero .pillars--hero span:nth-child(3) { height: 230px; }
.page-hero .pillars--hero span:nth-child(2) { height: 150px; }
.page-hero .pillars--hero span:nth-child(1) { height: 80px; }

.docs-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.docs-layout > .lead { margin-bottom: 20px; }
.app .prose p, .app .prose li { color: var(--text-2); }

/* Sign-in and other forms of the public site */

.auth { position: relative; overflow: hidden; isolation: isolate; padding: 56px 0 80px; min-height: calc(100vh - 160px); display: flex; align-items: center; }
.auth::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background: radial-gradient(700px 420px at 80% 20%, rgba(25, 105, 255, .32), transparent 70%), #050c1a;
}
.auth__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: center; }
.auth__intro h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 2vw, 3rem); letter-spacing: -.03em; }
.auth__intro p { color: #d3dcea; font-size: 1.08rem; }
.auth__card { background: #fff; color: var(--text); border-radius: 18px; padding: 30px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.auth__card h2 { font-size: 1.5rem; margin-bottom: 18px; }
.auth__card .aside { color: var(--text-2); }

.error-page { padding: 72px 0; text-align: center; }
.narrow-center { max-width: 560px; margin: 0 auto; }
.lead { font-size: 1.15rem; color: var(--text-2); }
.error-page .icon-tile { width: 60px; height: 60px; border-radius: 16px; margin-bottom: 18px; }

.site-foot { border-top: 1px solid var(--border); background: #fff; color: var(--muted); font-size: .875rem; }
.site-foot__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.site-foot p { margin: 0; }
.site-foot a { color: var(--text-2); }

/* In a narrow panel the bar goes below its name. */
@container (max-width: 420px) {
    .bars .bars__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; column-gap: 10px; padding: 6px 0; font-size: .9rem; }
    .bars--share .bars__row, .bars--delta .bars__row { grid-template-columns: minmax(0, 1fr) auto auto; }
    .bars--change .bars__row { grid-template-columns: minmax(0, 1fr) auto auto auto; }
    .bars__track { grid-column: 1 / -1; grid-row: 2; height: 6px; }
    .bars__label { gap: 10px; }
    .chip { width: 26px; height: 26px; }
    .flag { width: 24px; font-size: 1.05rem; }
    .gauge { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 12px; }
    .gauge__status { justify-content: center; }
    .panel__head { gap: 6px; }
}
.plain-icon { color: var(--muted); flex: none; }
.empty-note { color: var(--muted); font-size: .95rem; margin: 6px 0; }
.card__note { color: var(--muted); font-size: .8125rem; margin: 12px 0 0; }


/* Smaller screens */

@media (max-width: 1180px) {
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--aside { grid-template-columns: minmax(0, 1fr); }
    .feature-row, .showcase__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .compare { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .compare__intro { grid-column: 1 / -1; }
    .showcase, .how { grid-template-columns: minmax(0, 1fr); }
    .cta__inner { padding-right: 24px; }
    .pillars--cta { opacity: .35; }
}

@media (max-width: 1000px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .side { position: static; height: auto; flex-direction: column; gap: 6px; padding: 14px 16px 10px; border-right: 0; border-bottom: 1px solid var(--border); }
    .side__brand { padding: 0 0 6px; }
    .side__nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
    .side__label { display: none; }
    .side__list { display: flex; gap: 4px; }
    .side__link { white-space: nowrap; padding: 8px 12px; }
    .bar { position: static; padding: 12px 16px; }
    .main { padding: 22px 16px 40px; }
    .app-foot { padding: 0 16px 20px; }
    .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
    .hero__grid, .auth__grid, .cta__inner { grid-template-columns: minmax(0, 1fr); }
    .pillars--hero { opacity: .5; }
}

@media (max-width: 720px) {
    .grid--4, .feature-row, .showcase__cards, .cards-5, .compare, .lists, .how__steps { grid-template-columns: minmax(0, 1fr); }
    .feature-row, .cards-5 { margin-top: 20px; }
    .topnav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 4px 20px; }
    .masthead__inner { justify-content: space-between; }
    .bars--change .bars__row, .bars--share .bars__row { grid-template-columns: minmax(0, 1fr) 4.2em 3.2em; }
    .bars--change .bars__change, .bars__track { display: none; }
    .bars__row { grid-template-columns: minmax(0, 1fr) auto; }
    .demo { grid-template-columns: minmax(0, 1fr); }
    .demo__side { display: none; }
    .picker .menu__button { min-width: 0; }
    .bar__label { display: none; }
    .user__name { display: none; }
    .gauge { grid-template-columns: minmax(0, 1fr); justify-items: start; }
    .shield-art { height: 300px; }
    .float-chip { display: none; }
    .chart__ticks, .chart__plot { height: 200px; }
}

@media (forced-colors: active) {
    .chart__mark, .bars__fill, .minibars rect, .sparkbars rect { fill: CanvasText; }
    .chart__line { stroke: CanvasText; }
    .chart__area { fill: none; }
}
