/* Social: one stylesheet, no inline styles anywhere, so the
   Content-Security-Policy needs no 'unsafe-inline'. The colours are those of
   the brand sheet: Navy Purple #1B0F4F, Blue #2563FF, Violet Pink #A855F7,
   Orange #FF8A00 and Light #F5F6FA. The pages of an account are light; the
   public pages have a navy header and hero, the brand's inverse, 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;
    --navy: #1b0f4f;
    --blue: #2563ff;
    --violet: #a855f7;
    --orange: #ff8a00;
    --light: #f5f6fa;
    --brand-gradient: linear-gradient(135deg, #0b6bff 0%, #4f54f6 32%, #a63de6 55%, #f2336f 78%, #ff8a00 100%);
    --brand-1: #3a74ff;
    --brand-2: #2563ff;
    --brand-glow: rgba(37, 99, 255, .35);
    --accent-on-light: linear-gradient(90deg, #2563ff 0%, #8b3cf7 50%, #e8336f 100%);
    --accent-on-dark: linear-gradient(90deg, #6b8dff 0%, #b06cff 45%, #ff5c8a 78%, #ff9a2e 100%);
}

/* Hidden is hidden, also for elements whose class sets a display. */
[hidden] { display: none !important; }

/* The colours of light and dark in one list: light-dark() picks by the
   color-scheme of where a colour is used, which the themes set. Light is the
   app of the brand sheet; dark has the sheet's inverse navy, #120C41, behind
   the menu, as behind its inverse logo. */
:root {
    --bg: light-dark(#f5f6fa, #150d45);
    --side: light-dark(#ffffff, #120c41);
    --surface: light-dark(#ffffff, #1d1356);
    --surface-2: light-dark(#f7f6fc, #241764);
    --surface-3: light-dark(#efecf9, #2c1d72);
    --border: light-dark(#e7e4f2, #33257a);
    --border-strong: light-dark(#cfc8e8, #4c3ba1);
    --grid: light-dark(#eeebf7, #2a1d6b);
    --axis: light-dark(#d6d0ea, #46379a);
    --text: light-dark(#1b0f4f, #ffffff);
    --text-2: light-dark(#3f3672, #dcd6f7);
    --muted: light-dark(#6f6894, #a49dd2);
    --link: light-dark(#2563ff, #a9c1ff);
    --accent-text: light-dark(#ffffff, #ffffff);
    --icon: light-dark(#7c3aed, #c4a7ff);
    --icon-bg: light-dark(#f1ebfe, #2c1d73);
    --icon-border: light-dark(#e2d6fd, #46339e);
    --series-1: light-dark(#2563ff, #6f94ff);
    --series-1-hover: light-dark(#1d4fd8, #9db5ff);
    --series-2: light-dark(#c7c0e3, #5a4aa8);
    --track: light-dark(#efecf9, #2a1d6b);
    --bar-top: light-dark(#4f83ff, #6f94ff);
    --bar-bottom: light-dark(#2563ff, #2563ff);
    --area-top: light-dark(rgba(37, 99, 255, .25), rgba(111, 148, 255, .5));
    --area-bottom: light-dark(rgba(37, 99, 255, 0), rgba(111, 148, 255, 0));
    --good: light-dark(#0b7c43, #3ad587);
    --bad: light-dark(#c42a55, #ff6b8b);
    --warning: light-dark(#9a5100, #ffb547);
    --good-bg: light-dark(#e7f7ee, rgba(58, 213, 135, .14));
    --info-bg: light-dark(#f1ebfe, #241767);
    --info-border: light-dark(#d9cbfb, #46339e);
    --warning-bg: light-dark(#fff4e5, #3a2414);
    --warning-border: light-dark(#f5c27a, #a86a1c);
    --danger-bg: light-dark(#fdecf1, #3a1640);
    --tooltip-bg: light-dark(#1b0f4f, #ffffff);
    --tooltip-text: light-dark(#ffffff, #1b0f4f);
    --focus: light-dark(#2563ff, #a9c1ff);
    --shadow: 0 1px 2px light-dark(rgba(27, 15, 79, .05), rgba(0, 0, 0, .3)), 0 12px 32px -20px light-dark(rgba(27, 15, 79, .28), rgba(0, 0, 0, .75));
}

/* The themes: light, dark, or the system's (auto). Each also shows the logo
   for its background: --logo-light and --logo-dark are the display of the
   primary and the inverse logo, inherited from the nearest theme, so a navy
   header on a light page shows the inverse. */
.theme-light { color-scheme: light; --logo-light: block; --logo-dark: none; --accent-gradient: var(--accent-on-light); color: var(--text); }
.theme-dark { color-scheme: dark; --logo-light: none; --logo-dark: block; --accent-gradient: var(--accent-on-dark); color: var(--text); }
.theme-auto { color-scheme: light dark; --logo-light: block; --logo-dark: none; --accent-gradient: var(--accent-on-light); color: var(--text); }
@media (prefers-color-scheme: dark) {
    .theme-auto { --logo-light: none; --logo-dark: block; --accent-gradient: var(--accent-on-dark); }
}

*, *::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; height: 30px; }
.logo__img { display: var(--logo-light, block); height: 100%; width: auto; }
.logo__img--dark { display: var(--logo-dark, none); }
.brand__logo--small { height: 22px; }

/* 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 var(--brand-2); 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, #4f83ff, #1d4fd8); 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; }
/* The file field's button looks like the other ghost buttons, not like the
   browser's own. */
input[type="file"].input { padding: 6px 8px; color: var(--text-2); cursor: pointer; }
input[type="file"].input::file-selector-button {
    margin-right: 12px; padding: 7px 13px; border: 1px solid var(--border-strong); border-radius: 9px;
    background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
}
input[type="file"].input::file-selector-button:hover { background: var(--surface-3); }
.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--bad { color: var(--bad); border-color: var(--bad); }
.badge--warning { color: var(--warning); background: var(--warning-bg); border-color: transparent; }
.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 480px at 92% -12%, rgba(168, 85, 247, .10), transparent 60%),
        radial-gradient(700px 520px at -10% 110%, rgba(37, 99, 255, .08), transparent 60%),
        var(--bg);
    background-attachment: fixed;
}

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

/* The logo sits in the middle of a block as tall as the bar beside it, so
   it lines up with the bar's content. */
:root { --bar-height: 85px; --head-row: 65px; }
.side {
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    display: flex; flex-direction: column; gap: 20px;
    padding: 0 16px 20px; background: var(--side);
    border-right: 1px solid var(--border);
}
.side__brand { display: flex; align-items: center; justify-content: center; height: var(--bar-height); margin: 0 -16px; padding: 0 16px; }
.side__brand .logo { height: 32px; }
.side__toggle { display: none; }
.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); }
/* The page you are on: a light violet pill with the brand's blue-violet,
   as in the brand sheet's dashboard header. */
.side__link[aria-current="page"] {
    background: var(--icon-bg); color: var(--text); font-weight: 600;
    box-shadow: inset 0 0 0 1px var(--icon-border);
}
.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;
    min-height: var(--bar-height); padding: 14px 28px; border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 86%, transparent); 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: var(--icon-bg); }
.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: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px 22px; margin-bottom: 20px; box-shadow: var(--shadow); min-width: 0;
}
.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: var(--surface); box-shadow: var(--shadow);
}
.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; }
.check-list + .muted { margin-top: 12px; }
.form-extra { margin-top: 12px; }
.refresh { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.refresh[hidden] { display: none; }
.refresh__select { width: auto; min-height: 36px; padding: 4px 8px; font-size: .85rem; }
.security-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.security-actions form { margin: 0; }
.findings { list-style: none; margin: 0; padding: 0; }
.finding { padding: 14px 0; border-top: 1px solid var(--border); }
.finding:first-child { border-top: 0; padding-top: 0; }
.finding:last-child { padding-bottom: 0; }
.finding__title { display: block; overflow-wrap: anywhere; }
.finding__text { margin: 4px 0 0; color: var(--text-2); font-size: .92rem; }

/* A bar reaches below its plot, so its rounded corners show at the top only. */
.chart__svg--bars { overflow: hidden; }
.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__link .icon { width: .85em; height: .85em; color: var(--muted); vertical-align: -.1em; }
.bars__row { position: relative; }
.bars__row .bars__link::after { content: ""; position: absolute; inset: 0; }
.bars__row:has(.bars__link):hover .bars__link { 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%; overflow: visible; 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); }
/* A search field and its button stay on one line. */
.toolbar--search { flex-wrap: nowrap; gap: 8px; width: min(100%, 460px); margin-bottom: 0; }
.toolbar--search .search-box { min-width: 0; }
.toolbar--search .button { min-height: 46px; flex: none; }

.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--bad { border-left: 3px solid var(--bad); }
.highlight--warning { border-left: 3px solid var(--warning); }
.attention-none { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; color: var(--text-2); font-size: .9rem; }
.attention-none .icon { color: var(--good); }
.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; }
.cell-path a.overview__settings { color: var(--muted); display: inline-flex; margin-left: 4px; vertical-align: -2px; }
.cell-path a.overview__settings:hover { color: var(--link); }
.overview__settings .icon { width: 1em; height: 1em; }
.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; }
#remove { scroll-margin-top: 76px; }

.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; }
/* The brand's inverse: Navy Purple behind the header and hero. */
.theme-dark.masthead, .theme-dark.hero, .theme-dark.band { background: var(--navy); }

.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: #dcd6f7; 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: #fff; box-shadow: inset 0 -2px 0 var(--violet); }
.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(168, 85, 247, .3), transparent 70%),
        radial-gradient(500px 300px at 10% 0%, rgba(37, 99, 255, .18), 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; }
/* The brand's gradient in a headline: lighter on navy, deeper on light, by
   the nearest theme (see --accent-gradient). */
.accent { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 1.2rem; color: #dcd6f7; 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: #dcd6f7; 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: var(--brand-2); color: #fff;
}
.tick .icon { width: 12px; height: 12px; stroke-width: 3; }
.tick--no { background: light-dark(#fdeeee, rgba(255, 100, 100, .16)); color: var(--bad); border: 1px solid rgba(255, 100, 100, .45); }

/* 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; }
/* The pillars in the brand's colours, blue to violet to pink and orange,
   like the calendar of the logo. */
.pillars span { display: block; width: 110px; border-radius: 60px 60px 0 0; background: linear-gradient(180deg, rgba(37, 99, 255, .9), rgba(37, 99, 255, .2) 70%, transparent); box-shadow: 0 0 40px rgba(37, 99, 255, .3); opacity: .85; }
.pillars span:nth-child(2) { background: linear-gradient(180deg, rgba(168, 85, 247, .9), rgba(168, 85, 247, .2) 70%, transparent); box-shadow: 0 0 40px rgba(168, 85, 247, .3); }
.pillars span:nth-child(3) { background: linear-gradient(180deg, rgba(255, 92, 138, .9), rgba(255, 138, 0, .25) 70%, transparent); box-shadow: 0 0 40px rgba(255, 92, 138, .3); }
.pillars span:nth-child(4) { background: linear-gradient(180deg, rgba(255, 138, 0, .9), rgba(255, 138, 0, .2) 80%, transparent); }
.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; 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: #f5f6fa;
    border: 2px solid #3a2a86; box-shadow: 0 30px 80px -30px rgba(168, 85, 247, .6), 0 0 0 6px #120a3a;
}
.laptop__base { height: 16px; margin: 0 -8%; border-radius: 0 0 22px 22px; background: linear-gradient(180deg, #4a3c8c, #1b1145); box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
/* The laptop shows the app as it is: light, with the brand's navy. */
.demo { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; font-size: .78rem; color: #3f3672; }
.demo__side { color: #1b0f4f; }
.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: #6f6894; }
.demo__item .icon { width: 14px; height: 14px; }
.demo__item--on { background: #f1ebfe; color: #1b0f4f; font-weight: 600; box-shadow: inset 0 0 0 1px #e2d6fd; }
.demo__main { display: grid; gap: 10px; }
.demo__card { background: #fff; border: 1px solid #e7e4f2; border-radius: 10px; padding: 12px; color: #6f6894; }
.demo__card strong { display: block; font-size: 1.5rem; color: #1b0f4f; letter-spacing: -.02em; }
.demo__head { display: flex; justify-content: space-between; color: #1b0f4f; font-weight: 600; font-size: .85rem; }
.demo__pill { font-size: .68rem; color: #6f6894; border: 1px solid #e7e4f2; 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: #0d8a4b; font-weight: 600; }
.demo__down { color: #d6335e; font-weight: 600; }

/* Sections */

.section { padding: 64px 0; }
.section--tight { padding: 36px 0; }
.section--alt { background: linear-gradient(180deg, var(--surface), var(--bg)); }
.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, var(--bg), light-dark(#efeafd, #1d1356)); 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; }


/* 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(168, 85, 247, .25); box-shadow: 0 0 120px rgba(168, 85, 247, .32), inset 0 0 60px rgba(37, 99, 255, .2); }
.shield-art__glow::after { content: ""; position: absolute; inset: 50px; border-radius: 50%; border: 1px solid rgba(168, 85, 247, .2); }
.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(168, 85, 247, .6)); }
.float-chip {
    position: absolute; display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px;
    background: rgba(34, 21, 92, .85); border: 1px solid #4a35a6; 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: #c9c1ee; 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: #dcd6f7; 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(168, 85, 247, .28), transparent 70%), radial-gradient(500px 360px at 10% 90%, rgba(37, 99, 255, .2), transparent 70%), var(--navy);
}
.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: #dcd6f7; font-size: 1.08rem; }
.auth__card { background: var(--surface); 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: var(--surface); 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; }
.card__tools { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8125rem; list-style: none; margin: 8px 0 0; padding: 0; }
.card__tools a { display: inline-flex; align-items: center; gap: 4px; }
.card__tools .icon { width: 1em; height: 1em; }


/* 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) {
    .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; }
}

/* A post's text keeps its line breaks. */
.prose-pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Compose: each channel with its own text, image and shape, and a preview
   of the image as Social cuts it. */
.variant__pair { display: grid; gap: 0 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.crop__frame { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-small); border: 1px solid var(--border); background: var(--surface-2); }
.crop__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.crop__caption { color: var(--muted); font-size: .8rem; margin-top: 6px; }

/* A post's image per channel. */
.thumb { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); }
.target-text { margin: 6px 0 0; font-size: .875rem; }

/* The planning: the coming year in a strip, then a month day by day. */
/* The twelve months in even rows only: 12, 6, 4 or 3 a row, never 8 and 4,
   by the width the strip has. */
.year-wrap { container-type: inline-size; margin-bottom: 18px; }
.year { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@container (min-width: 400px) { .year { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (min-width: 580px) { .year { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@container (min-width: 1100px) { .year { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.year__month { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-small); background: var(--surface); color: var(--text-2); text-decoration: none; font-size: .8rem; }
.year__month:hover { border-color: var(--border-strong); }
.year__month[aria-current="page"] { border-color: var(--brand-1); box-shadow: 0 0 0 1px var(--brand-1) inset; color: var(--text); }
.year__count { font-size: 1.15rem; font-weight: 700; color: var(--muted); }
.year__month--busy .year__count { color: var(--text); }
.month-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.month-head__title { margin: 0; min-width: 9em; text-align: center; }
.month-head__count { margin: 0 0 0 auto; }
.plan-day { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 18px 0 8px; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan-post { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-small); background: var(--surface-2); }
.plan-post__time { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 3em; padding-top: 2px; }
.plan-post__body { flex: 1; min-width: 0; }
.plan-post__text { display: block; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.plan-post__text:hover { text-decoration: underline; }
.plan-post__channels { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .8rem; color: var(--text-2); }
.plan-target { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; overflow-wrap: anywhere; }
.plan-post__edit { flex: none; }
/* Phones: the edit button under the text, so the text keeps the width. */
@media (max-width: 600px) {
    .plan-post { display: grid; grid-template-columns: auto auto minmax(0, 1fr); }
    .plan-post__edit { grid-column: 3; justify-self: start; }
}
.thumb--small { width: 48px; height: 48px; flex: none; }
.thumb--empty { display: block; }
@media (max-width: 600px) {
    .plan-post { flex-wrap: wrap; }
    .plan-post__edit { margin-left: auto; }
}

/* Counting while you type, and each channel's post as its network shows it. */
.warnings { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.warnings__item { font-size: .82rem; color: var(--warning); padding-left: 18px; position: relative; }
.warnings__item::before { content: "!"; position: absolute; left: 4px; font-weight: 700; }
.warnings__item--bad { color: var(--bad); }
.preview { margin: 0; max-width: 300px; display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-small); background: var(--surface); }
.preview__name { order: -2; margin: 0; font-weight: 600; font-size: .85rem; }
.preview--facebook .preview__text, .preview--x .preview__text, .preview--threads .preview__text { order: -1; }
.preview__text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.45; }
.preview__text--empty { color: var(--muted); font-style: italic; }
.preview__link { color: var(--link); }
.preview__plain { color: inherit; }
.preview__more { color: var(--muted); }
.preview .warnings { margin: 0; }

/* The compose form in three steps: when, which channels, and per channel a
   tab with its text, its image as the channel cuts it, and its preview. A
   bar at the bottom keeps the summary and the button in sight. */
.compose { padding-bottom: 8px; }
.step { margin-bottom: 18px; }
.step__title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin: 0 0 14px; }
.step__number { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-2); color: #fff; font-size: .85rem; font-weight: 700; }
.when { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.when__option { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.when__at { width: auto; min-width: 15em; }
.when__quick { display: inline-flex; gap: 6px; flex-wrap: wrap; }
/* Phones: «Meteen» first, so the moment, its quick buttons and the hint on
   its time zone follow each other. */
@media (max-width: 600px) {
    .when__option--now { order: -1; flex-basis: 100%; }
}
.pickers { border: 0; margin: 0 0 12px; padding: 0; }
.pickers__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; padding: 0; }
.pickers__list { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); cursor: pointer; font-size: .9rem; color: var(--text-2); }
.pick:hover { border-color: var(--border-strong); }
.pick:has(.pick__box:checked) { border-color: var(--brand-1); background: var(--icon-bg); color: var(--text); }
.pick:has(.pick__box:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.pick--off { opacity: .6; cursor: default; }
.pick__box { width: 16px; height: 16px; margin: 0; accent-color: var(--brand-2); }
.pick__user { color: var(--muted); font-size: .8rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid transparent; border-bottom: 0; border-radius: var(--radius-small) var(--radius-small) 0 0; background: none; color: var(--text-2); font: inherit; font-size: .9rem; cursor: pointer; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { border-color: var(--border); background: var(--surface); color: var(--text); font-weight: 600; }
.tab:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.tab__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.tab__dot--ok { background: var(--good); }
.tab__dot--warn { background: var(--warning); }
.tab__dot--bad { background: var(--bad); }
.channel-panel { margin-bottom: 18px; }
.channel-panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.channel-panel__title { margin: 0; font-size: 1rem; }
.channel-panel__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.input--small { width: auto; padding: 6px 10px; font-size: .85rem; }
.channel-panel__grid { display: grid; gap: 20px; }
@media (min-width: 900px) {
    .channel-panel__grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
    .preview { position: sticky; top: 16px; }
}
.image-pick { display: grid; gap: 8px; }
.text-count { margin: 4px 0 0; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.text-count:empty { display: none; }
.text-count--over { color: var(--bad); font-weight: 600; }
.range { width: 100%; accent-color: var(--brand-2); }
.range__ends { display: flex; justify-content: space-between; }
.cropper { margin: 0 0 8px; }
.cropper__stage { position: relative; display: inline-block; max-width: 100%; overflow: hidden; border-radius: var(--radius-small); touch-action: none; cursor: grab; user-select: none; }
.cropper[data-axis=""] .cropper__stage { cursor: default; }
.cropper__stage:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.cropper__img { display: block; max-width: 100%; max-height: 380px; pointer-events: none; }
.cropper__keep { position: absolute; border: 2px dashed rgba(255, 255, 255, .95); box-shadow: 0 0 0 9999px rgba(27, 15, 79, .6); pointer-events: none; }
.cropper[data-axis=""] .cropper__keep { border-style: solid; border-color: var(--good); }
.cropper__loss { font-size: .85rem; color: var(--text-2); margin-top: 6px; }
.compose-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; margin: 0 -4px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .8); }
.compose-bar__summary { margin: 0; color: var(--text-2); font-size: .9rem; }
.compose-bar__summary--bad { color: var(--bad); }
.compose-bar__buttons { display: flex; gap: 8px; margin-left: auto; }

/* The wizard: a stepper to jump between the steps, one step at a time, and
   the overview of every channel before planning. */
.stepper { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stepper__step { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-small); background: var(--surface); color: var(--text-2); font: inherit; text-align: left; cursor: pointer; }
.stepper__step:hover { border-color: var(--border-strong); }
.stepper__step:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.stepper__step[aria-current="step"] { border-color: var(--brand-1); box-shadow: 0 0 0 1px var(--brand-1) inset; color: var(--text); }
.stepper__number { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1px solid var(--border-strong); font-size: .85rem; font-weight: 700; }
.stepper__step[aria-current="step"] .stepper__number { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.stepper__step--done .stepper__number { background: var(--good-bg); border-color: var(--good); color: var(--good); }
.stepper__step--bad .stepper__number { border-color: var(--bad); color: var(--bad); }
.stepper__text { display: flex; flex-direction: column; min-width: 0; }
.stepper__label { font-weight: 600; font-size: .9rem; }
.stepper__detail { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper__step--bad .stepper__detail { color: var(--bad); }
@media (max-width: 700px) {
    .stepper { grid-template-columns: repeat(4, auto); justify-content: space-between; }
    .stepper__text { display: none; }
    .stepper__step { padding: 8px; }
}
.step__title:focus { outline: none; }
.overview { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: start; }
.overview__card { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-small); background: var(--surface-2); }
.overview__head { display: flex; align-items: center; gap: 8px; }
.overview__fix { margin-left: auto; }
.overview .preview { max-width: none; position: static; }

/* Connecting a channel is set apart from writing a post: its own row at the
   foot of a team, with the link icon. */
.connect { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border-strong); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.connect__label { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--text-2); }
.connect__label .icon { width: 16px; height: 16px; }
.connect__buttons { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }

/* Tablets and phones: one header row with the logo, the account's button
   and the menu button, all on the row's middle line. The menu opens as a
   panel under its button. A channel picker gets the bar's row, under the
   header; the account's button stays in the header. */
@media (max-width: 1000px) {
    .shell { position: relative; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .side {
        position: relative; z-index: 40; height: var(--head-row); overflow: visible;
        flex-direction: row; align-items: center; justify-content: space-between; gap: 12px;
        padding: 0 16px; border-right: 0; border-bottom: 1px solid var(--border);
    }
    .side__brand { height: 44px; margin: 0; padding: 0; justify-content: flex-start; }
    .side__brand .logo { height: 28px; }
    .side__menu { flex: none; }
    .side__toggle {
        display: inline-grid; place-items: center; width: 44px; height: 44px; list-style: none; cursor: pointer;
        border: 1px solid var(--border); border-radius: 11px; color: var(--text);
    }
    .side__toggle::-webkit-details-marker { display: none; }
    .side__toggle .icon { width: 22px; height: 22px; }
    .side__menu[open] .side__toggle { background: var(--surface-2); border-color: var(--border-strong); }
    .side__toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
    .side__menu .side__nav {
        position: absolute; top: calc(100% + 8px); right: 16px; z-index: 30; width: min(300px, calc(100% - 32px));
        padding: 6px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px;
        box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5);
    }
    .side__label { display: none; }
    .side__menu .side__list { display: grid; gap: 2px; }
    .side__menu .side__link { min-height: 44px; padding: 10px 12px; }
    /* z-index auto: the bar is a flex item, and with a z-index of its own it
       would put the account's button under the header. */
    .bar { position: static; z-index: auto; min-height: 0; padding: 12px 16px; backdrop-filter: none; }
    .bar:not(:has(.picker)) { padding: 0; border: 0; background: none; }
    .bar__end { position: absolute; top: 0; right: 72px; z-index: 45; height: calc(var(--head-row) - 1px); flex-wrap: nowrap; }
    .user__name { display: none; }
}

/* Rows: a list that reads as a table on a wide screen and stacks on a
   phone, without hiding anything to the side. */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; padding: 12px 2px; border-bottom: 1px solid var(--border); }
.row:last-child { border-bottom: 0; }
.row:first-child { padding-top: 2px; }
.row__main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row__main > .icon { color: var(--muted); flex: none; width: 18px; height: 18px; }
.row__text { min-width: 0; }
.row__title { display: block; color: var(--text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
a.row__title:hover { color: var(--link); text-decoration: underline; }
.row__detail { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; overflow-wrap: anywhere; }
.row__status { display: block; margin-top: 6px; font-size: .85rem; }
.row__meta { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.row__meta form { margin: 0; }
.row__when { color: var(--text-2); font-size: .85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row--stacked { grid-template-columns: minmax(0, 1fr); }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) {
    .row { grid-template-columns: minmax(0, 1fr); }
    .row__meta { justify-content: flex-start; padding-left: 30px; }
}

/* A page's main column with a narrower one beside it on wide screens. */
.layout { display: grid; gap: 20px; margin-bottom: 20px; align-items: start; }
@media (min-width: 1100px) { .layout { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); } }
.stack { display: grid; gap: 20px; align-content: start; }
.layout > .panel, .stack > .panel { margin-bottom: 0; }
.post-image { display: block; max-width: 100%; max-height: 440px; margin-top: 14px; border-radius: var(--radius-small); border: 1px solid var(--border); }
.form--inline { display: flex; gap: 8px; align-items: center; }
.form--inline .input { flex: 1; min-width: 0; }
.form--inline .button { flex: none; }
@media (max-width: 600px) {
    .form--inline { flex-wrap: wrap; }
    .form--inline .input { flex-basis: 100%; }
}

/* Phones: the tabs scroll sideways in one line, and the copy tools take
   two lines at most. */
@media (max-width: 720px) {
    .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .tab { flex: none; }
    .channel-panel__tools { width: 100%; }
    .channel-panel__tools select { flex: 1 1 100%; }
}

/* The dashboard: four numbers of the month, the coming week, and what needs
   attention. */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text-2); text-decoration: none; box-shadow: var(--shadow); }
.tile:hover { border-color: var(--border-strong); }
.tile:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tile__value { font-size: 1.9rem; font-weight: 750; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.tile__label { font-size: .85rem; }
.tile--blue .tile__value { color: var(--link); }
.tile--ok .tile__value { color: var(--good); }
.tile--bad .tile__value { color: var(--bad); }
.empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 36px 20px; }
.empty h2 { margin: 6px 0 0; }
.empty p { margin: 0; max-width: 46ch; }
.empty--small { padding: 18px 10px; }
.calm { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--good); }
.calm .icon { width: 18px; height: 18px; flex: none; }
.attention { border-left: 3px solid var(--warning); padding-left: 12px; }
.attention--bad { border-left-color: var(--bad); }
.attention__action { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: .85rem; }
.attention__action .icon { width: 14px; height: 14px; }

/* Phones: the bar's buttons share its width, a third each. */
@media (max-width: 600px) {
    .compose-bar { margin: 0; padding: 10px 12px; }
    .compose-bar__buttons { width: 100%; margin-left: 0; }
    .compose-bar__buttons .button { flex: 1 1 0; justify-content: center; padding-left: 8px; padding-right: 8px; white-space: nowrap; }
}

/* Phones: every control at least 40px tall, so a thumb hits it. Links in
   a line of text get the height around them, without moving the text. */
@media (max-width: 720px) {
    .topnav a, .masthead__link { padding: 10px 0; }
    .masthead .brand { padding: 7px 0; margin: -7px 0; }
}
@media (max-width: 600px) {
    .button--small, .input--small { min-height: 40px; }
    .panel__head > a:not(.button), .panel__head h2 a, .row__meta a:not(.button), .cell-path__text a { display: inline-block; }
    .panel__head > a:not(.button), .panel__head h2 a, .row__meta a:not(.button), .cell-path__text a, .attention__action, a.row__title:not(.clamp-2) {
        padding-block: 10px; margin-block: -10px;
    }
    .pillars--cta { display: none; }
}

/* The theme's choice in the menu and the footers. */
.menu__spacer { display: inline-block; width: 18px; }
.themes { white-space: nowrap; }
.themes a[aria-current="true"] { color: var(--text); font-weight: 600; text-decoration: none; }
