/* ==========================================================================
   Ascent HQ
   The ascent.cz design system carried into the internal app: #fafafa ground,
   black ink, #151717 dark inset panels with orange and pink corner glows,
   Archivo with the wide uppercase page titles cut by the rising line from
   the logo, red dot labels, outline buttons, filled fields, the lime circle.
   Values follow Ascent/public/assets/css/tokens.css. Every colour, size and
   radius lives in the tokens below.
   ========================================================================== */

@font-face {
    font-family: 'Archivo';
    src: url('../fonts/archivo-var-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Archivo';
    src: url('../fonts/archivo-var-latin-ext.woff2') format('woff2');
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                   U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F,
                   U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
                   U+2C60-2C7F, U+A720-A7FF;
}

:root {
    color-scheme: light;

    /* Ascent surfaces */
    --bg: #fafafa;
    --surface: #ffffff;
    --fill: rgba(0, 0, 0, .05);          /* filled fields, quiet chips */
    --fill-hover: rgba(0, 0, 0, .08);
    --line: rgba(0, 63, 64, .1);         /* Ascent hairline */
    --line-2: rgba(0, 0, 0, .18);
    --panel-dark: #151717;
    --panel-dark-2: #1d2022;
    --panel-dark-3: #272b2d;

    /* ink */
    --ink: #000000;
    --ink-2: #151717;
    --muted: rgba(0, 0, 0, .6);
    --muted-2: rgba(0, 0, 0, .72);
    --on-dark: #ffffff;
    --on-dark-muted: rgba(255, 255, 255, .6);
    --on-dark-line: rgba(255, 255, 255, .14);

    /* Ascent accents */
    --red: #fe0048;
    --pink-ink: #d10052;                 /* red that passes 4.5:1 as small text */
    --pink-soft: #ffe8ef;
    --orange: #fe802d;
    --purple: #ac0bd9;
    --teal: #23d5ab;
    --lime: #c7fe00;
    --on-lime: #000000;
    --oval-orange: #fe6637;
    --oval-pink: #fe0168;
    --oval-opacity: .15;
    --gradient-brand: linear-gradient(60deg, var(--orange), var(--red), var(--purple));

    /* meaning */
    --ok: #16803c;
    --ok-soft: #e5f5ea;
    --warn: #a35a00;
    --warn-soft: #fff1dd;
    --bad: #d10052;
    --bad-soft: #ffe8ef;
    --info: #5b2bd1;
    --info-soft: #f0eaff;

    /* pipeline stages: the Ascent glow colours, darkened where they carry text */
    --st-new: #5f6368;
    --st-ready: #7a1fb0;
    --st-contacted: #b85a12;
    --st-consent: #c3006a;
    --st-sent: #0e8a6d;
    --st-replied: #d10052;
    --st-meeting: #3d7d00;
    --st-proposal: #c2470c;
    --st-won: #16803c;
    --st-lost: #8d9196;
    --st-unfit: #8d9196;

    /* people */
    --person-red: #d10052;
    --person-teal: #0e8a6d;
    --person-violet: #7a1fb0;
    --person-orange: #c2470c;
    --person-slate: #5f6368;

    /* type (Ascent: Archivo for everything, wide cut for titles) */
    --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, monospace;
    --fs-xs: .75rem;
    --fs-s: .8125rem;
    --fs-m: .9375rem;
    --fs-l: 1.0625rem;
    --fs-xl: 1.375rem;
    --fs-title: clamp(1.9rem, 1.1rem + 2.6vw, 3.4rem);
    --tracking-heading: -.03em;

    /* shape (Ascent radii) */
    --r-btn: .5rem;
    --r-media: .75rem;
    --r-panel: 1rem;
    --r-card: 1.5rem;
    --r-pill: 999px;
    --panel-inset: 15px;
    --shadow-lift: 0 10px 30px rgba(0, 0, 0, .14);

    /* motion (Ascent) */
    --dur-fast: .2s;
    --dur-med: .45s;
    --ease-out: cubic-bezier(.215, .61, .355, 1);
    --ease-out-soft: cubic-bezier(.25, .46, .45, .94);

    --sidebar-w: 248px;
    --speak-size: 4.5rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg: #0b0c0c;
        --surface: #151717;
        --fill: rgba(255, 255, 255, .07);
        --fill-hover: rgba(255, 255, 255, .11);
        --line: rgba(255, 255, 255, .1);
        --line-2: rgba(255, 255, 255, .22);
        --panel-dark: #1d2022;
        --panel-dark-2: #272b2d;
        --panel-dark-3: #33383b;
        --ink: #ffffff;
        --ink-2: #ececec;
        --muted: rgba(255, 255, 255, .62);
        --muted-2: rgba(255, 255, 255, .74);
        --pink-ink: #ff4d86;
        --pink-soft: #3a0f1f;
        --ok: #4ade80;
        --ok-soft: #10261a;
        --warn: #f5b041;
        --warn-soft: #2c2110;
        --bad: #ff4d86;
        --bad-soft: #3a0f1f;
        --info: #c09bff;
        --info-soft: #23173d;
        --st-new: #a7abb0;
        --st-ready: #d18cf5;
        --st-contacted: #ffa45c;
        --st-consent: #ff6fae;
        --st-sent: #23d5ab;
        --st-replied: #ff4d86;
        --st-meeting: #c7fe00;
        --st-proposal: #ff9a5c;
        --st-won: #4ade80;
        --st-lost: #7d838a;
        --st-unfit: #7d838a;
        --person-red: #ff4d86;
        --person-teal: #23d5ab;
        --person-violet: #d18cf5;
        --person-orange: #ffa45c;
        --person-slate: #a7abb0;
        --shadow-lift: 0 10px 30px rgba(0, 0, 0, .6);
    }
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--fs-m);
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; letter-spacing: var(--tracking-heading); }
h2 { font-size: var(--fs-l); font-weight: 650; }
h3 { font-size: var(--fs-s); font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--pink-ink); }
img { max-width: 100%; }
code, pre { font-family: var(--mono); font-size: .86em; }
kbd { font-family: var(--mono); font-size: .7rem; padding: 1px 5px; border-radius: 4px; border: 1px solid currentColor; opacity: .55; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: #fff; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo-dot { fill: var(--red); }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.icon--s { width: 14px; height: 14px; vertical-align: -2px; }
.icon--l { width: 28px; height: 28px; }
.icon--ok { color: var(--ok); }

.sr { position: absolute !important; 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: 8px; top: -60px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: var(--r-btn); }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-s); }
.nowrap { white-space: nowrap; }
.is-late { color: var(--bad); }
.stack { display: grid; gap: 12px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ----------------------------------------------- Ascent signature pieces */

/* Page titles: wide uppercase Archivo, cut by the rising line from the logo
   (mask title-cut.svg, one tile per 1.05em line), red full stop. */
.title-cut {
    display: inline-block;
    font-size: var(--fs-title);
    font-weight: 600;
    font-stretch: 118%;
    line-height: 1.05;
    letter-spacing: .01em;
    text-transform: uppercase;
    -webkit-mask-image: url('../img/title-cut.svg');
    mask-image: url('../img/title-cut.svg');
    -webkit-mask-size: 100% 1.05em;
    mask-size: 100% 1.05em;
    -webkit-mask-repeat: repeat-y;
    mask-repeat: repeat-y;
}
.dot { color: var(--red); }

/* Section label: red dot, then a quiet line of text (Ascent .label). */
.label { display: inline-flex; align-items: center; gap: .75em; font-size: var(--fs-s); color: var(--muted); letter-spacing: -.01em; line-height: 1.2; }
.label::before { content: ""; width: .8em; height: .8em; border-radius: 50%; background: var(--red); flex: none; }

/* Corner glows inside dark panels. */
.oval { position: absolute; width: 900px; height: 900px; opacity: var(--oval-opacity); pointer-events: none; border-radius: 50%; }
.oval--orange { background: radial-gradient(50% 50% at 50% 50%, var(--oval-orange) 0, transparent 100%); }
.oval--pink { background: radial-gradient(50% 50% at 50% 50%, var(--oval-pink) 0, transparent 100%); }
.oval--top { top: -450px; }
.oval--bottom { bottom: -450px; }
.oval--left { left: -450px; }
.oval--right { right: -450px; }

/* Lime circle, like "Napište nám" on ascent.cz. */
.speak {
    position: fixed;
    right: max(24px, env(safe-area-inset-right, 0px));
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    width: var(--speak-size);
    height: var(--speak-size);
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 50%;
    background: var(--lime);
    color: var(--on-lime);
    font-size: var(--fs-xs);
    font-weight: 600;
    line-height: 1.05;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
    transition: transform var(--dur-med) var(--ease-out-soft);
}
.speak:hover { transform: scale(.92); color: var(--on-lime); }
.speak__icon { display: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* --------------------------------------------------------------- brand */

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.brand__logo { width: 112px; height: 22px; fill: currentColor; }
.brand__hq { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; padding: 2px 6px; border: 1px solid currentColor; border-radius: 4px; opacity: .7; line-height: 1.2; }
.brand--gate { color: var(--ink); }
.brand--gate .brand__logo { width: 168px; height: 33px; }

/* ------------------------------------------------------------- app shell */

.app { min-height: 100vh; }

.topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 30;
    align-items: center;
    gap: 12px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}
.topbar__menu, .topbar__search { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r-btn); background: transparent; color: inherit; cursor: pointer; }
.topbar__search { margin-left: auto; }
.topbar .icon { width: 22px; height: 22px; }

/* The sidebar is an Ascent dark inset panel: 15px from the window edge,
   1rem radius, glows in two corners. */
.sidebar {
    position: fixed;
    top: var(--panel-inset);
    bottom: var(--panel-inset);
    left: var(--panel-inset);
    z-index: 40;
    width: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 22px 14px 14px;
    background: var(--panel-dark);
    color: var(--on-dark);
    border-radius: var(--r-panel);
    overflow: hidden;
    overflow-y: auto;
    isolation: isolate;
}
.sidebar > :not(.oval) { position: relative; z-index: 1; }
.sidebar__head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.sidebar__close { display: none; border: 0; background: transparent; color: var(--on-dark-muted); padding: 6px; cursor: pointer; }

.sidebar__search { position: relative; display: flex; align-items: center; }
.sidebar__search .icon { position: absolute; left: 12px; color: var(--on-dark-muted); }
.sidebar__search input {
    width: 100%;
    padding: 9px 36px;
    border: 1px solid transparent;
    border-radius: var(--r-btn);
    background: rgba(255, 255, 255, .07);
    color: var(--on-dark);
    font: inherit;
    font-size: var(--fs-s);
}
.sidebar__search input::placeholder { color: var(--on-dark-muted); }
.sidebar__search input:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.sidebar__search kbd { position: absolute; right: 10px; color: var(--on-dark-muted); }

.nav { display: grid; gap: 2px; }
.nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: var(--r-btn);
    color: var(--on-dark-muted);
    text-decoration: none;
    font-weight: 500;
    transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.nav a:hover { background: rgba(255, 255, 255, .06); color: var(--on-dark); }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: var(--on-dark); }
.nav a[aria-current="page"] .icon { color: var(--red); }
.nav a span { flex: 1; }
.nav--secondary { padding-top: 16px; border-top: 1px solid var(--on-dark-line); }
.badge { min-width: 20px; padding: 1px 7px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .12); color: var(--on-dark); font-size: var(--fs-xs); font-weight: 650; text-align: center; }
.badge--hot { background: var(--red); color: #fff; }

.sidebar__foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 8px 2px; border-top: 1px solid var(--on-dark-line); }
.sidebar__me { flex: 1; display: grid; font-weight: 600; font-size: var(--fs-s); line-height: 1.3; }
.sidebar__me small { color: var(--on-dark-muted); font-weight: 400; font-size: var(--fs-xs); }
.sidebar .iconbtn { color: var(--on-dark-muted); }
.sidebar .iconbtn:hover { color: var(--on-dark); background: rgba(255, 255, 255, .08); }

.main {
    position: relative;
    margin-left: calc(var(--sidebar-w) + var(--panel-inset));
    padding-block: 34px 120px;
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-content: start;
    min-width: 0;
    max-width: calc(1480px + var(--sidebar-w));
}
/* Soft red paint in the top corner, as around the ascent.cz hero title. */
.app::before {
    content: "";
    position: fixed;
    top: -35vh;
    right: -20vw;
    width: 70vw;
    height: 70vh;
    background: radial-gradient(50% 50% at 50% 50%, rgba(254, 0, 72, .09) 0, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

.scrim { position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, .1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

@media (max-width: 900px) {
    .topbar { display: flex; }
    .sidebar { top: 10px; bottom: 10px; left: 10px; transform: translateX(calc(-100% - 20px)); transition: transform var(--dur-med) var(--ease-out); box-shadow: var(--shadow-lift); }
    .sidebar.is-open { transform: none; }
    .sidebar__close { display: inline-grid; }
    .main { margin-left: 0; padding-block: 20px 110px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
    .speak { width: 3.5rem; height: 3.5rem; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
    .speak__label { display: none; }
    .speak__icon { display: block; }
}

/* -------------------------------------------------------------- page head */

.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; }
.pagehead > div { min-width: 0; }
.pagehead__sub { color: var(--muted); margin-top: 8px; }
.pagehead__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagehead--lead { align-items: flex-start; }
.pagehead__title { display: grid; gap: 8px; min-width: 0; }
.leadtitle { font-size: clamp(1.7rem, 1rem + 2.2vw, 2.9rem); font-weight: 650; letter-spacing: -.035em; line-height: 1.05; overflow-wrap: anywhere; }
.crumbs { font-size: var(--fs-s); color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a::after { content: " /"; opacity: .5; }

/* ----------------------------------------------------- buttons (Ascent) */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 2.4rem;
    padding: 0 1.15rem .05rem;
    border: 1px solid var(--ink);
    border-radius: var(--r-btn);
    background: transparent;
    color: var(--ink);
    font-weight: 450;
    font-size: var(--fs-m);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--outline { /* the default look, kept as a name for clarity in templates */ }
.btn--dark, .btn--primary { background: var(--panel-dark); border-color: var(--panel-dark); color: #fff; }
.btn--dark:hover, .btn--primary:hover { background: #000; border-color: #000; color: #fff; }
.btn--call { background: var(--lime); border-color: var(--lime); color: var(--on-lime); font-weight: 550; }
.btn--call:hover { background: #b4e600; border-color: #b4e600; color: var(--on-lime); }
.btn--ghost { border-color: transparent; color: var(--muted); padding-inline: .6rem; }
.btn--ghost:hover { background: var(--fill); color: var(--ink); }
.btn--danger { color: var(--bad); border-color: currentColor; }
.btn--danger:hover { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn--s { height: 2rem; padding-inline: .85rem; font-size: var(--fs-s); }
.btn--block { width: 100%; }
@media (prefers-color-scheme: dark) {
    .btn--dark, .btn--primary { background: #fff; border-color: #fff; color: #000; }
    .btn--dark:hover, .btn--primary:hover { background: #e6e6e6; border-color: #e6e6e6; color: #000; }
}

.iconbtn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--r-btn); background: transparent; color: var(--muted); cursor: pointer; }
.iconbtn:hover { background: var(--fill); color: var(--ink); }
.iconbtn--solid { background: var(--panel-dark); color: #fff; }
.iconbtn--solid:hover { background: #000; color: #fff; }
@media (prefers-color-scheme: dark) { .iconbtn--solid { background: #fff; color: #000; } .iconbtn--solid:hover { background: #e6e6e6; color: #000; } }

/* ---------------------------------------------- form fields (Ascent) */

input, select, textarea {
    font: inherit;
    font-size: var(--fs-m);
    color: var(--ink);
    background: var(--fill);
    border: 1px solid transparent;
    border-radius: var(--r-media);
    padding: .65rem .9rem;
    min-width: 0;
    transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
select { padding-right: 2rem; }
textarea { resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:hover, select:hover, textarea:hover { background: var(--fill-hover); }
input:focus, select:focus, textarea:focus { background: var(--fill-hover); border-color: var(--ink); outline: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--red); width: 16px; height: 16px; padding: 0; }

.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: var(--fs-s); font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; }
.field--wide { grid-column: 1 / -1; }
.field--inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.hint { color: var(--muted); font-size: var(--fs-xs); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-s); cursor: pointer; }
.check--title { gap: 12px; }

.grid2, .grid3, .grid4 { display: grid; gap: 14px 16px; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: 2fr 1fr 1fr; }
.grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid2, .grid3, .grid4 { grid-template-columns: 1fr; } }

.fieldset { border: 0; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; min-width: 0; }
.fieldset legend { display: inline-flex; align-items: center; gap: .75em; font-size: var(--fs-s); color: var(--muted); margin-bottom: 12px; padding: 0; }
.fieldset legend::before { content: ""; width: .8em; height: .8em; border-radius: 50%; background: var(--red); }

.formpage { display: grid; gap: 8px; max-width: 900px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 28px; }
@media (max-width: 600px) { .formpage { padding: 18px; } }

/* ------------------------------------------------------------------ panels */

.panel { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 20px 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; min-width: 0; }
.today__main, .today__side, .lead__main, .lead__side, .stack, .brandcard__body, .clientcard__body { grid-template-columns: minmax(0, 1fr); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel__head h2 { display: flex; align-items: center; gap: 8px; }
.panel__link { display: inline-flex; align-items: center; gap: 2px; font-size: var(--fs-s); color: var(--muted); text-decoration: none; }
.panel__sub { display: flex; align-items: center; gap: .75em; color: var(--muted); font-size: var(--fs-s); font-weight: 400; margin-top: 6px; letter-spacing: -.01em; }
.panel__sub::before { content: ""; width: .8em; height: .8em; border-radius: 50%; background: var(--red); }
.panel__note { font-size: var(--fs-s); color: var(--muted); }
.panel--danger { border-style: dashed; }
@media (max-width: 600px) { .panel { padding: 16px; } }

/* Dark inset panel with corner glows (ascent.cz "Vybrané projekty"). */
.panel--dark { background: var(--panel-dark); border-color: var(--panel-dark); color: var(--on-dark); overflow: hidden; isolation: isolate; --line: var(--on-dark-line); --muted: var(--on-dark-muted); --fill: rgba(255, 255, 255, .07); --ink: #fff; }
.panel--dark > :not(.oval) { position: relative; z-index: 1; }
.panel--dark a:hover { color: #fff; }
.panel--dark .btn { border-color: #fff; color: #fff; }
.panel--dark .btn:hover { background: #fff; color: #000; }

.count { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: var(--r-pill); background: var(--fill); color: var(--muted); font-size: var(--fs-xs); font-weight: 600; text-align: center; letter-spacing: 0; line-height: 1.65; }
.count--hot { background: var(--red); color: #fff; }

/* ------------------------------------------------------------------- chips */

.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--fill); color: var(--ink); font-size: var(--fs-s); font-weight: 450; line-height: 1.5; text-decoration: none; white-space: nowrap; }
.chip--plain { background: transparent; border: 1px solid var(--line-2); color: var(--muted-2); }
.chip--bad { background: var(--bad-soft); color: var(--bad); }
.chip--client, .chip--live { background: var(--ok-soft); color: var(--ok); }
.chip--paused, .chip--dormant { background: var(--fill); color: var(--muted); }
.chip--waiting { background: var(--warn-soft); color: var(--warn); }
.chip--building { background: var(--info-soft); color: var(--info); }
.chip--x:hover { color: var(--pink-ink); }

/* Ascent tag: pill outlined in the current colour. */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: .3rem .8rem .35rem; border: 1px solid currentColor; border-radius: 2.2rem; font-size: var(--fs-s); line-height: 1.1; }

.stage { --c: var(--st-new); display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 9px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--c) 11%, transparent); color: var(--c); font-size: var(--fs-s); font-weight: 600; line-height: 1.5; white-space: nowrap; }
.stage::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.stage--ready { --c: var(--st-ready); }
.stage--contacted { --c: var(--st-contacted); }
.stage--consent { --c: var(--st-consent); }
.stage--sent { --c: var(--st-sent); }
.stage--replied { --c: var(--st-replied); }
.stage--meeting { --c: var(--st-meeting); }
.stage--proposal { --c: var(--st-proposal); }
.stage--won { --c: var(--st-won); }
.stage--lost { --c: var(--st-lost); }
.stage--unfit { --c: var(--st-unfit); }

.stage-bg--new { background: var(--st-new); }
.stage-bg--ready { background: var(--st-ready); }
.stage-bg--contacted { background: var(--st-contacted); }
.stage-bg--consent { background: var(--st-consent); }
.stage-bg--sent { background: var(--st-sent); }
.stage-bg--replied { background: var(--st-replied); }
.stage-bg--meeting { background: var(--st-meeting); }
.stage-bg--proposal { background: var(--st-proposal); }
.stage-bg--won { background: var(--st-won); }
.stage-bg--lost { background: var(--st-lost); }
.stage-bg--unfit { background: var(--st-unfit); }

.tier { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-size: var(--fs-xs); font-weight: 700; font-stretch: 118%; flex: none; }
.tier--a { background: var(--red); color: #fff; }
.tier--b { background: var(--warn-soft); color: var(--warn); }
.tier--c { background: var(--fill); color: var(--muted); }
.tier--none { background: transparent; color: var(--line-2); }

.dots { display: inline-flex; gap: 3px; align-items: center; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--fill-hover); }
.dots i.on { background: var(--red); }

.avatar { --c: var(--person-slate); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; font-size: var(--fs-xs); font-weight: 700; flex: none; letter-spacing: .02em; }
.avatar--s { width: 22px; height: 22px; font-size: .625rem; }
.avatar--red { --c: var(--person-red); }
.avatar--teal { --c: var(--person-teal); }
.avatar--violet { --c: var(--person-violet); }
.avatar--orange { --c: var(--person-orange); }
.avatar--none { background: var(--fill); color: var(--muted); }
@media (prefers-color-scheme: dark) { .avatar:not(.avatar--none) { color: #0b0c0c; } }
.sidebar .avatar--red { --c: var(--red); color: #fff; }

/* ------------------------------------------------------------ alerts, flash */

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-media); background: var(--fill); font-size: var(--fs-m); }
.alert .icon { margin-top: 2px; }
.alert p { display: flex; gap: 8px; align-items: flex-start; }
.alert--bad { background: var(--bad-soft); color: var(--bad); }
.alert--warn { background: var(--warn-soft); color: var(--warn); display: grid; }
.alert--info { background: var(--info-soft); color: var(--info); }
.alert a { color: inherit; font-weight: 600; }

.flash { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px 11px 18px; border-radius: var(--r-media); background: var(--panel-dark); color: #fff; font-weight: 500; box-shadow: var(--shadow-lift); }
.flash::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); flex: none; margin-right: 2px; }
.flash--error::before { background: var(--red); }
.flash { justify-content: flex-start; }
.flash__x { margin-left: auto; border: 0; background: transparent; color: inherit; opacity: .7; cursor: pointer; padding: 2px; display: inline-grid; }
.flash__x:hover { opacity: 1; }

.empty { display: grid; gap: 10px; justify-items: start; padding: 8px 0; }
.empty--page { justify-items: center; text-align: center; padding: 64px 16px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-panel); }
.empty__code { font-family: var(--mono); color: var(--muted); }

/* ---------------------------------------------------------------- today */

.weekstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.weekstats div { display: grid; gap: 2px; padding: 10px 16px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-media); min-width: 96px; }
.weekstats dt { font-size: var(--fs-xs); color: var(--muted); }
.weekstats dd { margin: 0; font-size: 1.75rem; font-weight: 600; font-stretch: 118%; line-height: 1.1; letter-spacing: -.02em; }
@media (max-width: 600px) { .weekstats { width: 100%; } .weekstats div { min-width: 0; padding: 8px 12px; } .weekstats dd { font-size: 1.4rem; } }

.today { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.today__main, .today__side { display: grid; gap: 22px; min-width: 0; }
@media (max-width: 1100px) { .today { grid-template-columns: 1fr; } }

.orglist { list-style: none; margin: 0; padding: 0; display: grid; }
.orgline { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.orgline:first-child { border-top: 0; }
.orgline__main { flex: 1; min-width: 0; display: grid; text-decoration: none; }
.orgline__main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; letter-spacing: -.01em; }
.orgline__main span { font-size: var(--fs-s); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orgline__when { font-size: var(--fs-s); color: var(--muted); white-space: nowrap; }
.orgline__call { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--on-lime); flex: none; transition: transform var(--dur-fast) var(--ease-out); }
.orgline__call:hover { transform: scale(.92); color: var(--on-lime); }
.orgline--dnc .orgline__main strong { text-decoration: line-through; color: var(--muted); }
.orglist--big .orgline { padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-media); margin-bottom: 6px; }

.mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mini li { display: grid; font-size: var(--fs-s); }
.mini a { text-decoration: none; font-size: var(--fs-m); }

.stackbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; background: var(--fill); }
.stackbar__seg { min-width: 6px; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 18px; font-size: var(--fs-s); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend a { flex: 1; text-decoration: none; }
.legend b { font-weight: 600; }
.legend .is-zero { color: var(--muted); }
.legend .is-zero b { font-weight: 400; }
.legend__swatch { width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* -------------------------------------------------------------------- tasks */

.tasklist { list-style: none; margin: 0; padding: 0; display: grid; }
.task { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); }
.task:first-child { border-top: 0; }
.task__box { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid var(--line-2); border-radius: 50%; background: transparent; cursor: pointer; padding: 0; color: transparent; transition: background-color var(--dur-fast) var(--ease-out); }
.task__box:hover { border-color: var(--ink); color: var(--ink); }
.task__box .icon { width: 13px; height: 13px; stroke-width: 2.8; }
.task--done .task__box { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.task--done .task__title { text-decoration: line-through; color: var(--muted); }
.task__body { display: grid; gap: 3px; min-width: 0; flex: 1; }
.task__title { overflow-wrap: anywhere; }
.task__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: var(--fs-s); color: var(--muted); }
.task__meta a { text-decoration: none; }
.task--late .task__meta .is-late { font-weight: 600; }

.quickadd { display: flex; gap: 6px; align-items: center; }
.quickadd input:first-of-type { flex: 1; }
.quickadd input[type="date"] { width: 150px; }
.quickadd--wide { display: flex; flex-wrap: wrap; }
.quickadd--wide input:first-of-type { min-width: 220px; }

/* ----------------------------------------------------------------- timeline */

.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.act { --c: var(--muted); display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.act:first-child { border-top: 0; }
.act__icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); }
.act__icon .icon { width: 15px; height: 15px; }
.act__body { display: grid; gap: 5px; min-width: 0; }
.act__head { display: flex; flex-wrap: wrap; gap: 3px 8px; align-items: baseline; font-size: var(--fs-m); }
.act__head a { text-decoration: none; }
.act__title { font-weight: 600; }
.act__meta { color: var(--muted); font-size: var(--fs-s); }
.act__text { background: var(--fill); border-radius: var(--r-media); padding: 9px 13px; font-size: var(--fs-m); overflow-wrap: anywhere; }
.act--call { --c: var(--st-sent); }
.act--good { --c: var(--ok); }
.act--bad { --c: var(--bad); }
.act--stage { --c: var(--st-ready); }
.act--inbox { --c: var(--st-replied); }
.act--task { --c: var(--st-meeting); }
.act--note { --c: var(--st-contacted); }
.act--quiet { padding: 7px 0; }
.act--quiet .act__icon { width: 30px; height: 18px; background: transparent; }
.act--quiet .act__head { font-size: var(--fs-s); color: var(--muted); }
.timeline--compact .act { padding: 9px 0; }

/* -------------------------------------------------------------------- board */

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters select { font-size: var(--fs-s); padding-block: .55rem; }
.filters__search { position: relative; display: flex; align-items: center; flex: 1 1 240px; max-width: 380px; }
.filters__search .icon { position: absolute; left: 12px; color: var(--muted); }
.filters__search input { width: 100%; padding-left: 38px; font-size: var(--fs-s); padding-block: .6rem; }
.filters__search--big { max-width: 600px; }
.filters__search--big input { font-size: var(--fs-l); padding-block: .9rem; }

.seg { display: inline-flex; padding: 3px; border-radius: var(--r-btn); background: var(--fill); gap: 2px; }
.seg a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; text-decoration: none; font-size: var(--fs-s); font-weight: 500; color: var(--muted); }
.seg a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; scroll-snap-type: x proximity; }
.col { background: var(--fill); border-radius: var(--r-panel); padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 160px; scroll-snap-align: start; }
.col__head { display: flex; align-items: center; gap: 9px; padding: 6px 6px 4px; }
.col__head h2 { font-size: var(--fs-m); flex: 1; letter-spacing: -.02em; }
.col__dot { width: 9px; height: 9px; border-radius: 50%; }
.col__count { font-size: var(--fs-s); color: var(--muted); font-weight: 600; }
.col__cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-height: 60px; border-radius: var(--r-media); align-content: start; }
.col__cards.is-over { outline: 2px dashed var(--red); outline-offset: 2px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-media); padding: 11px 13px; display: grid; gap: 5px; cursor: grab; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .07); }
.card.is-dragging { opacity: .45; }
.card__top { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.card__top .avatar { margin-left: auto; }
.card__name { font-weight: 600; text-decoration: none; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }
.card__meta { font-size: var(--fs-s); color: var(--muted); }
.card__next { font-size: var(--fs-s); color: var(--muted); display: flex; gap: 5px; align-items: center; }
.card--dnc { opacity: .6; }
.board__hint { margin-top: -6px; }

.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-m); }
.table th, .table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table th { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
.table th a { text-decoration: none; }
.table th a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.table th a[aria-current="true"]::after { content: " ↓"; }
.table tbody tr:hover { background: var(--fill); }
.table__name { min-width: 180px; }
.table__name > * { display: block; }
.table__name a { text-decoration: none; }
.table .num { text-align: right; }
.table tr.is-dnc strong { text-decoration: line-through; color: var(--muted); }

.tabsnav { display: flex; flex-wrap: wrap; gap: 6px; }
.tabsnav a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 2.2rem; text-decoration: none; font-size: var(--fs-s); color: var(--muted-2); transition: background-color var(--dur-fast) var(--ease-out); }
.tabsnav a:hover { border-color: var(--ink); color: var(--ink); }
.tabsnav a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tabsnav a[aria-current="true"] .count { background: rgba(255, 255, 255, .2); color: inherit; }
@media (prefers-color-scheme: dark) { .tabsnav a[aria-current="true"] .count { background: rgba(0, 0, 0, .15); } }

/* --------------------------------------------------------------------- lead */

.lead { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 22px; align-items: start; }
.lead__main, .lead__side { display: grid; gap: 16px; min-width: 0; }
@media (max-width: 1100px) { .lead { grid-template-columns: 1fr; } }

.panel--brief { border-color: color-mix(in srgb, var(--red) 30%, var(--line)); }
.brief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 30px; }
.brief__block { display: grid; gap: 6px; align-content: start; }
.brief__block h3 { display: inline-flex; align-items: center; gap: .7em; font-size: var(--fs-s); font-weight: 400; color: var(--muted); margin-top: 8px; }
.brief__block h3::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: var(--red); }
.brief__block h3:first-child { margin-top: 0; }
.brief__opener { font-size: var(--fs-l); line-height: 1.5; background: var(--pink-soft); border-radius: var(--r-media); padding: 12px 16px; }
.brief__warn { color: var(--warn); }
.bullets { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.bullets li::marker { color: var(--red); }
@media (max-width: 700px) { .brief { grid-template-columns: 1fr; } }

.composer { gap: 0; padding: 0; overflow: hidden; }
.tabs { display: flex; gap: 6px; padding: 14px 18px 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 2.2rem; background: transparent; color: var(--muted-2); font-size: var(--fs-s); cursor: pointer; white-space: nowrap; }
.tabs button:hover { border-color: var(--ink); color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.composer__pane { display: grid; gap: 14px; padding: 16px 20px 20px; }
.composer__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.outcomes { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; }
.outcome { position: relative; cursor: pointer; }
.outcome input { position: absolute; opacity: 0; pointer-events: none; }
.outcome span { display: inline-flex; padding: 8px 14px; border-radius: var(--r-btn); border: 1px solid var(--line-2); font-weight: 500; font-size: var(--fs-s); background: var(--surface); transition: background-color var(--dur-fast) var(--ease-out); }
.outcome:hover span { border-color: var(--ink); }
.outcome input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.outcome input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.outcome--send_it span { border-color: var(--lime); background: color-mix(in srgb, var(--lime) 22%, var(--surface)); color: var(--ink); }
.outcome--send_it input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.outcome--dnc span, .outcome--not_interested span { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.outcome--dnc input:checked + span, .outcome--not_interested input:checked + span { background: var(--bad); border-color: var(--bad); color: #fff; }
.composer__when { max-width: 280px; }

.dictate { position: relative; }
.dictate textarea { width: 100%; padding-right: 46px; }
.dictate__btn { position: absolute; right: 7px; top: 7px; }
.dictate__btn.is-on { background: var(--red); color: #fff; }

.row-form { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.row-form label { font-size: var(--fs-s); color: var(--muted); }
.row-form select { width: 100%; }

.nextstep { display: grid; gap: 6px; padding: 13px 15px; border-radius: var(--r-media); background: var(--fill); }
.nextstep h3 { display: inline-flex; align-items: center; gap: .7em; font-size: var(--fs-s); font-weight: 400; color: var(--muted); }
.nextstep h3::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: var(--red); }
.nextstep__when { font-size: var(--fs-s); color: var(--muted); }
.nextstep.is-late { background: var(--bad-soft); }
.nextstep.is-late .nextstep__when { color: var(--bad); font-weight: 600; }

.facts { margin: 0; display: grid; gap: 9px; font-size: var(--fs-m); }
.facts div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; }
.facts dt { color: var(--muted); font-size: var(--fs-s); padding-top: 1px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts--wide div { grid-template-columns: 84px minmax(0, 1fr); align-items: center; }
.facts--wide dd { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.facts--brand div { grid-template-columns: 130px minmax(0, 1fr); padding-top: 9px; border-top: 1px solid var(--line); }
@media (max-width: 600px) { .facts--brand div { grid-template-columns: 1fr; gap: 2px; } }

.disclosure > summary { cursor: pointer; font-weight: 500; font-size: var(--fs-s); color: var(--muted); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before { content: "▸"; font-size: .8em; transition: transform var(--dur-fast) var(--ease-out); }
.disclosure[open] > summary::before { transform: rotate(90deg); }
.disclosure[open] > summary { margin-bottom: 12px; color: var(--ink); }
.disclosure--edit[open] { padding-top: 8px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------- client brand card */

.brandcard { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
.brandcard__shot { margin: 0; background: var(--panel-dark); padding: 18px 18px 0; display: grid; align-content: start; }
.brandcard__shot img { display: block; width: 100%; height: auto; border-radius: 0 0 var(--r-media) var(--r-media); }
.browser { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #2a2e30; border-radius: var(--r-media) var(--r-media) 0 0; color: rgba(255, 255, 255, .7); font-size: var(--fs-xs); }
.browser span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.browser b { font-weight: 400; margin-left: 10px; padding: 2px 12px; background: rgba(255, 255, 255, .08); border-radius: var(--r-pill); }
.brandcard__body { padding: 20px 22px; display: grid; gap: 14px; align-content: start; }
.brandcard__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brandcard__tagline { font-size: var(--fs-xl); font-weight: 500; letter-spacing: -.03em; line-height: 1.25; }
@media (max-width: 1250px) { .brandcard { grid-template-columns: 1fr; } .brandcard__shot { max-height: 340px; overflow: hidden; } }

/* Logos sit on a white tile so client colours read the same in both themes. */
.logotile { display: inline-grid; place-items: center; height: 46px; padding: 8px 14px; background: #fff; border: 1px solid rgba(0, 63, 64, .1); border-radius: var(--r-media); }
.logotile img { max-height: 28px; max-width: 140px; width: auto; height: auto; display: block; }
.logotile--float { position: absolute; left: 12px; bottom: 12px; height: 40px; padding: 6px 11px; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.logotile--float img { max-height: 24px; max-width: 120px; }

.palette { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.swatch { width: 100%; display: grid; gap: 2px; padding: 0 0 8px; border: 1px solid var(--line); border-radius: var(--r-media); background: var(--surface); text-align: left; cursor: copy; overflow: hidden; }
.swatch:hover { border-color: var(--ink); }
.swatch__chip { height: 46px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.swatch__hex { font-family: var(--mono); font-size: var(--fs-s); padding-inline: 10px; }
.swatch__role { font-size: var(--fs-xs); color: var(--muted); padding-inline: 10px; line-height: 1.3; }

/* ----------------------------------------------------------------- clients */

.clientgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.clientcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); display: grid; grid-template-rows: auto 1fr; overflow: hidden; transition: box-shadow var(--dur-med) var(--ease-out-soft); }
.clientcard:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, .08); }
.clientcard__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--panel-dark); overflow: hidden; }
.clientcard__media img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .8s var(--ease-out-soft); }
.clientcard:hover .clientcard__media img:first-child { transform: scale(1.03); }
.clientcard__blank { display: grid; place-items: center; height: 100%; color: rgba(255, 255, 255, .25); font-size: 2.6rem; font-weight: 600; font-stretch: 118%; }
.clientcard__body { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; }
.clientcard__top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.clientcard__name { font-weight: 650; font-size: var(--fs-l); letter-spacing: -.03em; text-decoration: none; line-height: 1.2; }
.clientcard__line { font-size: var(--fs-s); color: var(--muted-2); }
.clientcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.clientcard__web { font-size: var(--fs-s); color: var(--muted); text-decoration: none; display: inline-flex; gap: 5px; align-items: center; }
.minipalette { display: inline-flex; }
.minipalette i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -5px; box-shadow: 0 0 0 1px var(--line); }

/* ------------------------------------------------------------------- inbox */

.messages { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.msg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 18px 20px; display: grid; gap: 10px; }
.msg--new .msg__from::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--red); vertical-align: 2px; }
.msg--archived { opacity: .7; }
.msg__head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.msg__head > div:first-child { display: grid; }
.msg__from { font-size: var(--fs-l); letter-spacing: -.02em; }
.msg__meta { display: flex; gap: 8px; align-items: center; font-size: var(--fs-s); }
.msg__subject { font-weight: 600; }
.msg__body { background: var(--fill); border-radius: var(--r-media); padding: 11px 14px; overflow-wrap: anywhere; }
.msg__contact { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--fs-s); }
.msg__contact div { display: flex; gap: 6px; align-items: center; }
.msg__contact dd { margin: 0; }
.msg__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.msg__link { display: flex; gap: 6px; }
.msg__link input { width: 100px; font-size: var(--fs-s); padding: 6px 9px; }

/* ------------------------------------------------------------------ import */

.upload { max-width: 660px; }
.upload__drop { display: grid; justify-items: center; gap: 6px; padding: 36px 16px; border: 1.5px dashed var(--line-2); border-radius: var(--r-panel); text-align: center; cursor: pointer; }
.upload__drop:hover { border-color: var(--ink); }
.upload__drop input { margin-top: 8px; max-width: 100%; background: transparent; }
.table--map th { vertical-align: top; min-width: 160px; }
.map__header { display: block; font-size: var(--fs-s); color: var(--ink); margin-bottom: 6px; white-space: normal; }
.map__select { width: 100%; font-size: var(--fs-s); padding: 6px 8px; }
.map__select.is-unused { color: var(--muted); }
.table--map td { font-size: var(--fs-s); color: var(--muted); max-width: 240px; }

/* ---------------------------------------------------------------- settings */

.settings { display: grid; gap: 16px; max-width: 920px; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.people li { display: flex; gap: 12px; align-items: center; }
.people li > div { display: grid; flex: 1; min-width: 0; }
.people--invites { padding-top: 12px; border-top: 1px solid var(--line); }
.invitebox { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r-media); background: color-mix(in srgb, var(--lime) 18%, var(--surface)); border: 1px solid var(--lime); }
.invitebox code { background: var(--surface); padding: 7px 10px; border-radius: var(--r-btn); font-size: var(--fs-s); overflow-wrap: anywhere; min-width: 0; }
.code { background: var(--fill); padding: 13px 15px; border-radius: var(--r-media); overflow-x: auto; font-size: var(--fs-s); line-height: 1.5; margin: 0 0 8px; }
code.secret { filter: blur(4px); transition: filter var(--dur-fast); cursor: pointer; }
code.secret:hover, code.secret:focus { filter: none; }

/* ---------------------------------------------------------------- scout */

.scout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.scout__side { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1000px) { .scout { grid-template-columns: minmax(0, 1fr); } }
.newcampaign { gap: 14px; padding: 24px; }
.newcampaign label { color: var(--on-dark-muted); }
.newcampaign input, .newcampaign select { background: rgba(255, 255, 255, .08); color: #fff; }
.newcampaign input::placeholder { color: rgba(255, 255, 255, .45); }
.newcampaign input:focus, .newcampaign select:focus { border-color: #fff; }
.newcampaign select option { color: #000; }
.newcampaign__check { align-self: end; padding-bottom: 12px; color: var(--on-dark) !important; }
.newcampaign .btn--call { justify-self: start; border-color: var(--lime); color: var(--on-lime); }
.newcampaign .btn--call:hover { background: #b4e600; color: var(--on-lime); }
.newcampaign__note { font-size: var(--fs-s); color: var(--on-dark-muted); }

.progress { height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--gradient-brand); border-radius: 3px; transition: width var(--dur-med) var(--ease-out-soft); }
.progress--dark { background: rgba(255, 255, 255, .12); }
.runner { display: grid; gap: 8px; }

.campaigns { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.campaigncard { display: grid; gap: 10px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); text-decoration: none; transition: border-color var(--dur-fast) var(--ease-out); }
.campaigncard:hover { border-color: var(--ink); color: inherit; }
.campaigncard__top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.campaigncard__top strong { font-weight: 600; letter-spacing: -.02em; }
.campaigncard__nums { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-s); color: var(--muted-2); align-items: center; }
.campaigncard__nums b { color: var(--ink); font-weight: 600; }
.tiers { display: inline-flex; gap: 10px; }
.tiers > span { display: inline-flex; align-items: center; gap: 4px; }
.tiers .tier { width: 20px; height: 20px; }

.campaignhead { gap: 16px; padding: 22px 24px; }
.bignums { display: grid; grid-template-columns: repeat(5, minmax(0, auto)); gap: 12px 34px; margin: 0; justify-content: start; }
.bignums div { display: grid; gap: 2px; }
.bignums dt { font-size: var(--fs-xs); color: var(--on-dark-muted); }
.bignums dd { margin: 0; font-size: 2rem; font-weight: 600; font-stretch: 118%; line-height: 1.1; }
.bignums__tiers dd { display: flex; gap: 14px; font-size: 1.4rem; align-items: center; }
.bignums__tiers span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 760px) { .bignums { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bignums dd { font-size: 1.5rem; } }
.campaignhead__status { color: var(--on-dark); }
.table__issue { max-width: 280px; }

.speed { font-weight: 650; }
.speed--bad { color: var(--bad); }
.speed--mid { color: var(--warn); }
.speed--good { color: var(--ok); }

/* Lead: website check */
.shots { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.phone { margin: 0; width: 150px; padding: 8px; background: #111; border-radius: 22px; box-shadow: var(--shadow-lift); flex: none; }
.phone img { display: block; width: 100%; border-radius: 15px; }
.phone--big { width: 230px; padding: 10px; border-radius: 30px; }
.phone--big img { border-radius: 21px; }
.shots__desktop { margin: 0; flex: 1 1 280px; max-width: 520px; box-shadow: var(--shadow-lift); border-radius: var(--r-media); overflow: hidden; }
.shots__desktop img { display: block; width: 100%; }
.browser--light { background: #e9e9ec; color: rgba(0, 0, 0, .6); border-radius: 0; }
.browser--light span { background: rgba(0, 0, 0, .18); }
.browser--light b { background: rgba(255, 255, 255, .8); }
.gauge { --v: 50; --c: var(--warn); width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; align-content: center; text-align: center; background: radial-gradient(closest-side, var(--surface) 78%, transparent 79%), conic-gradient(var(--c) calc(var(--v) * 1%), var(--fill) 0); }
.gauge b { font-size: 2rem; font-weight: 600; font-stretch: 118%; line-height: 1; color: var(--c); }
.gauge span { font-size: var(--fs-xs); color: var(--muted); max-width: 80px; line-height: 1.2; }
.gauge--bad { --c: var(--bad); }
.gauge--good { --c: var(--ok); }
.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.finding { display: flex; gap: 10px; align-items: baseline; font-size: var(--fs-m); }
.finding::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--line-2); transform: translateY(-1px); }
.finding--w1::before { background: var(--warn); }
.finding--w2::before { background: var(--orange); }
.finding--w3::before { background: var(--red); }
.auditlink { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.auditlink__row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.auditlink code { background: var(--fill); padding: 6px 10px; border-radius: var(--r-btn); font-size: var(--fs-s); overflow-wrap: anywhere; min-width: 0; }
.objections { margin: 0; display: grid; gap: 8px; }
.objections div { display: grid; gap: 2px; }
.objections dt { font-weight: 600; font-size: var(--fs-s); }
.objections dd { margin: 0; font-size: var(--fs-s); color: var(--muted-2); }

/* ------------------------------------------------------------ call screen */

.cockpit { gap: 20px; padding: 26px 28px; }
.cockpit__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 28px; align-items: flex-start; }
.cockpit__who { display: grid; gap: 8px; min-width: 0; }
.cockpit__name { font-size: clamp(1.8rem, 1rem + 2.4vw, 3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.cockpit__name a { text-decoration: none; }
.cockpit__contact { color: var(--on-dark-muted); }
.cockpit__dial { display: grid; gap: 8px; justify-items: end; }
.dialbtn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: var(--r-media); background: var(--lime); color: var(--on-lime); font-size: 1.35rem; font-weight: 650; font-stretch: 110%; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; transition: transform var(--dur-fast) var(--ease-out); }
.dialbtn:hover { transform: scale(.97); color: var(--on-lime); }
.dialbtn .icon { width: 22px; height: 22px; }
.cockpit__phone2 { color: var(--on-dark-muted); font-size: var(--fs-s); }
.cockpit__warn { color: #ffb15c; font-size: var(--fs-s); }
.chip--dark { background: rgba(255, 255, 255, .08); color: #fff; }
.chip--hot { background: var(--red); color: #fff; }
.cockpit__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; }
.cockpit__card { background: rgba(255, 255, 255, .05); border-radius: var(--r-media); padding: 16px 18px; display: grid; gap: 10px; align-content: start; position: relative; }
.cockpit__card h3 { display: inline-flex; align-items: center; gap: .7em; font-size: var(--fs-s); font-weight: 400; color: var(--on-dark-muted); }
.cockpit__card h3::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: var(--red); }
.cockpit__opener { font-size: var(--fs-l); line-height: 1.55; letter-spacing: -.01em; }
.cockpit__objections { margin: 0; display: grid; gap: 8px; }
.cockpit__objections dt { font-weight: 600; font-size: var(--fs-s); }
.cockpit__objections dd { margin: 0; font-size: var(--fs-s); color: var(--on-dark-muted); }
.cockpit__issues { margin: 0; padding-left: 18px; display: grid; gap: 5px; }
.cockpit__issues li::marker { color: var(--red); }
.cockpit__watch { font-size: var(--fs-s); color: #ffb15c; }
.cockpit__links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-s); }
.cockpit__links a { color: var(--on-dark-muted); }
.phone--mini { width: 110px; padding: 6px; border-radius: 16px; justify-self: end; }
.phone--mini img { border-radius: 11px; }
.cockpit__log { display: grid; gap: 14px; padding-top: 16px; border-top: 1px solid var(--on-dark-line); }
.outcomes--big .outcome span { padding: 11px 16px; font-size: var(--fs-m); background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #fff; }
.outcomes--big .outcome:hover span { border-color: #fff; }
.outcomes--big .outcome input:checked + span { background: #fff; color: #000; border-color: #fff; }
.outcomes--big .outcome--send_it span { border-color: var(--lime); color: var(--lime); background: transparent; }
.outcomes--big .outcome--send_it input:checked + span { background: var(--lime); color: var(--on-lime); }
.outcomes--big .outcome--dnc span, .outcomes--big .outcome--not_interested span { color: #ff8fb0; border-color: rgba(255, 77, 134, .4); background: transparent; }
.outcomes--big .outcome--dnc input:checked + span, .outcomes--big .outcome--not_interested input:checked + span { background: #ff4d86; color: #fff; }
.cockpit__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.cockpit__fields label { color: var(--on-dark-muted); }
.cockpit__fields input, .cockpit__fields textarea { background: rgba(255, 255, 255, .08); color: #fff; }
.cockpit__fields input:focus, .cockpit__fields textarea:focus { border-color: #fff; }
.cockpit__note { grid-column: 1 / -1; }
.cockpit__actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.cockpit .btn--call { border-color: var(--lime); color: var(--on-lime); }
.cockpit .btn--call:hover { background: #b4e600; color: var(--on-lime); }
@media (max-width: 860px) {
    .cockpit { padding: 18px; }
    .cockpit__grid { grid-template-columns: 1fr; }
    .cockpit__dial { justify-items: start; }
    .phone--mini { display: none; }
}

/* Lead: e-mails and meetings */
.maillist, .meetlist { list-style: none; margin: 0; padding: 0; display: grid; }
.mail { padding: 9px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.mail:first-child { border-top: 0; }
.mail summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.mail summary::-webkit-details-marker { display: none; }
.mail__dir { color: var(--muted); }
.mail--in .mail__dir { color: var(--st-replied); }
.mail__subject { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail__body { padding: 10px 0 4px 26px; display: grid; gap: 6px; }
.mail__text { background: var(--fill); border-radius: var(--r-media); padding: 10px 14px; font-size: var(--fs-m); overflow-wrap: anywhere; }
.mail--cancelled .mail__subject { opacity: .55; }
.mail__actions { padding-left: 26px; }
.meet { display: grid; gap: 4px; padding: 9px 0; border-top: 1px solid var(--line); }
.meet:first-child { border-top: 0; }
.meet--cancelled, .meet--no_show { opacity: .6; }
.panel--meet { border-color: color-mix(in srgb, var(--lime) 70%, var(--line)); }

/* Public booking page */
.btn--big { height: 3rem; padding-inline: 2rem; font-size: var(--fs-l); justify-self: start; }
.booking__form { display: grid; gap: 30px; max-width: 900px; }
.booking__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.booking__days, .booking__you { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; min-width: 0; }
.booking__days legend, .booking__you legend { margin-bottom: 14px; }
.booking__day { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.booking__day h3 { font-size: var(--fs-m); font-weight: 600; letter-spacing: -.02em; }
.booking__times { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { position: relative; cursor: pointer; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot span { display: inline-flex; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r-btn); font-variant-numeric: tabular-nums; transition: background-color var(--dur-fast) var(--ease-out); }
.slot:hover span { border-color: var(--ink); }
.slot input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.slot input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.booking__done { padding: 30px 32px; gap: 10px; max-width: 760px; }
.booking__done h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 600; letter-spacing: -.035em; }
.booking__when { font-size: var(--fs-xl); font-weight: 600; color: var(--lime); }
@media (max-width: 640px) { .booking__day { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- sites, charts */

/* Status: a dot plus words, never colour alone. */
.status { --c: var(--muted); display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-s); font-weight: 550; white-space: nowrap; color: var(--ink); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.status--good { --c: var(--ok); }
.status--warn { --c: var(--warn); }
.status--bad { --c: var(--bad); }
.status--none { --c: var(--line-2); color: var(--muted); }

.table--sites td { vertical-align: middle; }
.table tr.is-off { opacity: .5; }
.tablewrap--flat { border: 0; border-radius: 0; }

.panel--alerts { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.alertlist { list-style: none; margin: 0; padding: 0; display: grid; }
.alertline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 9px 0; border-top: 1px solid var(--line); }
.alertline:first-child { border-top: 0; }
.alertline a { text-decoration: none; }
.alertline time { margin-left: auto; }

/* Stat tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0; }
.tiles > div { display: grid; gap: 2px; align-content: start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-media); }
.tiles dt { font-size: var(--fs-s); color: var(--muted); }
.tiles dd { margin: 0; font-size: 1.6rem; font-weight: 600; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: proportional-nums; }
.tiles .tiles__sub, .audit__stats .tiles__sub { font-size: var(--fs-xs); font-weight: 400; color: var(--muted); letter-spacing: 0; font-stretch: 100%; }
.tiles--inline > div { background: transparent; border: 0; padding: 0 24px 0 0; }

/* Charts: one series, colour from a token, grid hairline and quiet. */
:root { --chart-1: #0e8a6d; }
@media (prefers-color-scheme: dark) { :root { --chart-1: #23d5ab; } }
.chartbox { overflow-x: auto; }
.chart { display: block; width: 100%; min-width: 520px; height: auto; overflow: visible; }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__tick { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart--visits .chart__bar { fill: var(--chart-1); }
.chart__hit { outline: none; cursor: default; }
.chart__hit:focus-visible rect, .chart__hit.is-hot rect { fill: color-mix(in srgb, var(--ink) 5%, transparent); }
.spark { width: 84px; height: 20px; vertical-align: middle; }
.spark .chart__bar { fill: var(--chart-1); }
.spark .chart__zero { fill: var(--line-2); }
.tooltip { position: fixed; z-index: 60; max-width: 280px; padding: 7px 11px; border-radius: var(--r-btn); background: var(--panel-dark); color: #fff; font-size: var(--fs-s); pointer-events: none; box-shadow: var(--shadow-lift); }

.uptime { display: grid; grid-template-columns: repeat(auto-fit, minmax(10px, 1fr)); gap: 2px; }
.uptime__day { height: 32px; border-radius: 3px; background: var(--fill-hover); outline-offset: 2px; }
.uptime__day--good { background: var(--ok); }
.uptime__day--warn { background: var(--warn); }
.uptime__day--bad { background: var(--bad); }
.uptime__day.is-hot { box-shadow: 0 0 0 2px var(--ink); }
.legendline { display: flex; flex-wrap: wrap; gap: 6px 18px; }

.statlists { margin-top: 10px; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.statlists h3 { margin-bottom: 8px; }
.barlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.barlist li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 5px 8px; font-size: var(--fs-s); border-radius: 5px; overflow: hidden; }
.barlist__label { position: relative; z-index: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barlist__n { position: relative; z-index: 1; font-weight: 600; }
.barlist__bar { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--chart-1) 14%, transparent); border-radius: 5px; }

.install { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--r-media); background: var(--fill); }
.install code, .install .auditlink__row code { background: var(--surface); padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }

.reportlist { list-style: none; margin: 0; padding: 0; display: grid; }
.reportlist li { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.reportlist li:first-child { border-top: 0; }
.reportlist__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.reportlist__note textarea { width: 100%; }
.audit__block--wide { max-width: none; }

/* ----------------------------------------------------- public audit page */

.audit { background: var(--bg); }
.audit::before { content: ""; position: fixed; top: -30vh; right: -15vw; width: 75vw; height: 75vh; background: radial-gradient(50% 50% at 50% 50%, rgba(254, 0, 72, .12) 0, rgba(254, 102, 55, .05) 50%, transparent 100%); pointer-events: none; z-index: -1; }
.audit__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 1080px; margin: 0 auto; padding: calc(22px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); }
.audit__bar .brand__logo { width: 130px; height: 26px; }
.audit__main { max-width: 1080px; margin: 0 auto; padding: 56px max(20px, env(safe-area-inset-right, 0px)) 80px max(20px, env(safe-area-inset-left, 0px)); display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); }
.audit__hero { display: grid; gap: 16px; max-width: 760px; }
.audit__title { font-size: clamp(2.1rem, 1rem + 4.2vw, 4.6rem); overflow-wrap: anywhere; }
.audit__lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.5; letter-spacing: -.01em; }
.audit__screens { display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap; }
.audit__screens .shots__desktop { max-width: 700px; flex: 1 1 360px; }
.audit__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0; }
.audit__stats div { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-media); }
.audit__stats dt { font-size: var(--fs-s); color: var(--muted); }
.audit__stats dd { margin: 0; font-size: 2rem; font-weight: 600; font-stretch: 118%; line-height: 1.1; }
.audit__stats small { font-size: .5em; color: var(--muted); font-stretch: 100%; }
.audit__block { display: grid; gap: 16px; max-width: 760px; }
.audit__block h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 600; letter-spacing: -.035em; }
.audit__findings { margin: 0; padding: 0; list-style: none; counter-reset: f; display: grid; }
.audit__findings li { counter-increment: f; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); font-size: var(--fs-l); }
.audit__findings li::before { content: counter(f, decimal-leading-zero); font-family: var(--mono); font-size: var(--fs-s); color: var(--red); padding-top: 3px; }
.audit__pitch { font-size: var(--fs-xl); letter-spacing: -.02em; line-height: 1.4; }
.audit__work { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.audit__work a { display: grid; gap: 8px; text-decoration: none; }
.audit__work img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: var(--r-panel); transition: transform var(--dur-med) var(--ease-out-soft); }
.audit__work a:hover img { transform: scale(1.02); }
.audit__cta { padding: 36px 32px; gap: 14px; }
.audit__cta h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem); font-weight: 600; letter-spacing: -.035em; }
.audit__cta p { max-width: 560px; color: var(--on-dark-muted); }
.audit__foot { max-width: 640px; }

/* ------------------------------------------------------------------- gate */

.gate { min-height: 100vh; display: grid; place-items: center; background: var(--bg); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); position: relative; overflow: hidden; }
.gate::before { content: ""; position: fixed; top: -30vh; left: 50%; width: 90vw; height: 70vh; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(254, 0, 72, .14) 0, rgba(254, 102, 55, .06) 45%, transparent 100%); pointer-events: none; }
.gate__main { position: relative; width: 100%; max-width: 400px; display: grid; gap: 26px; justify-items: center; padding-block: 40px; }
.gate__card { width: 100%; display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 28px; }
.gate__card h1 { font-size: var(--fs-xl); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
