/* ==========================================================================
   Pin Studio – design system
   ========================================================================== */

:root {
    --bg: #f4f3f8;
    --bg-glow-1: rgba(242, 101, 50, .08);
    --bg-glow-2: rgba(106, 90, 249, .08);
    --surface: #ffffff;
    --surface-2: #f6f5fa;
    --surface-3: #eceaf3;
    --text: #17151f;
    --text-2: #4a4758;
    --muted: #8a8799;
    --border: #e7e5ef;
    --border-strong: #d8d5e3;

    --accent: #e4572e;
    --accent-2: #ff7a3d;
    --accent-soft: #fff1ea;
    --accent-grad: linear-gradient(135deg, #ffa53d 0%, #f26532 50%, #d63a1f 100%);
    --violet: #6a5af9;
    --violet-soft: #efedff;
    --teal: #0ea5a0;
    --teal-soft: #e3f7f5;
    --amber: #f59e0b;
    --amber-soft: #fff4dc;
    --ok: #10a35a;
    --ok-soft: #e4f7ec;
    --info: #2f6fea;
    --info-soft: #e8f0ff;
    --error: #e5354f;
    --error-soft: #ffeef1;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 26px;
    --shadow-sm: 0 1px 2px rgba(23, 21, 31, .05);
    --shadow: 0 1px 2px rgba(23, 21, 31, .04), 0 8px 24px -8px rgba(23, 21, 31, .08);
    --shadow-lg: 0 24px 48px -16px rgba(23, 21, 31, .18);
    --ring: 0 0 0 4px rgba(242, 101, 50, .16);
    --sidebar-w: 264px;
    --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d0d12;
        --bg-glow-1: rgba(242, 101, 50, .13);
        --bg-glow-2: rgba(106, 90, 249, .14);
        --surface: #16161d;
        --surface-2: #1d1d26;
        --surface-3: #262632;
        --text: #f1f0f6;
        --text-2: #c4c2d0;
        --muted: #8b899b;
        --border: #262631;
        --border-strong: #33333f;
        --accent-soft: #2c170e;
        --violet: #8b7dff;
        --violet-soft: #1f1c3a;
        --teal: #2dd4bf;
        --teal-soft: #0f2a29;
        --amber: #fbbf24;
        --amber-soft: #2c2311;
        --ok: #34d399;
        --ok-soft: #0f2a1f;
        --info: #6ea2ff;
        --info-soft: #14203a;
        --error: #ff6b81;
        --error-soft: #2c1219;
        --shadow-sm: none;
        --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 8px 24px -12px rgba(0, 0, 0, .6);
        --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, .7);
        --ring: 0 0 0 4px rgba(255, 122, 61, .24);
        color-scheme: dark;
    }
}

/* --- Base ----------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font: 15px/1.55 var(--font);
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(900px 500px at 100% -10%, var(--bg-glow-2), transparent 60%),
        radial-gradient(700px 400px at 20% -10%, var(--bg-glow-1), transparent 60%),
        var(--bg);
    background-attachment: fixed;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.2; }
h1 { font-size: 1.75rem; font-weight: 750; margin: 0; }
h2 { font-size: 1.02rem; font-weight: 700; margin: 0 0 .9rem; }
p { margin: 0 0 .75rem; }
img { max-width: 100%; }
code {
    font: 12.5px/1.5 ui-monospace, "Cascadia Code", Consolas, monospace;
    background: var(--surface-2); border: 1px solid var(--border);
    padding: 2px 7px; border-radius: 7px; word-break: break-all;
}
code.block { display: block; padding: 12px 14px; }

.icon {
    width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px;
    fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

::selection { background: rgba(228, 87, 46, .18); }

/* --- App shell -------------------------------------------------------------- */

.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }

.sidebar {
    position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column; gap: 22px;
    padding: 22px 16px 18px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    backdrop-filter: blur(18px);
    border-right: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); padding: 4px 8px; }
.brand:hover { color: var(--text); }
.brand-logo { width: 38px; height: 38px; filter: drop-shadow(0 6px 14px rgba(228, 87, 46, .35)); }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-size: 1.05rem; font-weight: 750; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: .76rem; font-weight: 500; }

.nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.nav-label {
    font-size: .7rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); padding: 14px 12px 6px;
}
.nav-label:first-child { padding-top: 0; }
.nav-link {
    position: relative; display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 12px;
    color: var(--text-2); font-weight: 550; font-size: .94rem;
    transition: background .15s, color .15s;
}
.nav-link .icon { color: var(--muted); transition: color .15s; }
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link:hover .icon { color: var(--text); }
.nav-link.active { background: var(--accent-soft); color: var(--accent); }
.nav-link.active .icon { color: var(--accent); }
.nav-link.active::before {
    content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 4px;
    border-radius: 0 4px 4px 0; background: var(--accent-grad);
}

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.status-card {
    padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 7px; font-size: .8rem; color: var(--text-2);
}
.status-line { display: flex; align-items: center; gap: 9px; }
.logout-btn { width: 100%; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }

.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--muted); position: relative; }
.dot.ok { background: var(--ok); }
.dot.ok::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    background: var(--ok); opacity: .35; animation: pulse 2s ease-out infinite;
}
.dot.warn { background: var(--amber); }
.dot.off { background: var(--error); }
.dot.idle { background: var(--muted); }
@keyframes pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }

.main { padding: 28px clamp(16px, 3.4vw, 44px) 48px; max-width: 1320px; width: 100%; }

.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.eyebrow { display: block; color: var(--muted); font-size: .84rem; font-weight: 550; margin-bottom: 4px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.mobile-only { display: none !important; }

.toasts:empty { display: none; }
.toasts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.toasts .alert { animation: slide-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide-in { from { opacity: 0; transform: translateY(-8px); } }

.tabbar { display: none; }

/* --- Responsive shell ---------------------------------------------------------- */

@media (max-width: 900px) {
    .app { grid-template-columns: minmax(0, 1fr); }
    .sidebar { display: none; }
    .main { padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
    .topbar { align-items: center; margin-bottom: 20px; }
    h1 { font-size: 1.45rem; }
    .mobile-only { display: inline-grid !important; }
    .desktop-only { display: none !important; }

    .tabbar {
        position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
        display: flex; justify-content: space-around; align-items: center;
        height: 64px; padding: 0 8px; border-radius: 22px;
        background: color-mix(in srgb, var(--surface) 86%, transparent);
        backdrop-filter: blur(18px); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
    }
    .tabbar a {
        display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--muted);
    }
    .tabbar a .icon { width: 22px; height: 22px; }
    .tabbar a.active { color: var(--accent); background: var(--accent-soft); }
    .tabbar a.fab {
        width: 54px; height: 54px; border-radius: 18px; color: #fff; background: var(--accent-grad);
        box-shadow: 0 10px 22px -6px rgba(228, 87, 46, .55); transform: translateY(-10px);
    }
}

/* --- Cards & layout helpers ---------------------------------------------------- */

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.card.highlight { border-color: var(--accent); box-shadow: var(--ring); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.card-head p { margin: 4px 0 0; }
.more { display: inline-flex; align-items: center; gap: 4px; font-size: .86rem; font-weight: 600; white-space: nowrap; }
.more .icon { width: 15px; height: 15px; transition: transform .15s; }
.more:hover .icon { transform: translateX(3px); }
details.card > summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; align-items: center; gap: 10px; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before {
    content: "+"; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
    background: var(--accent-soft); color: var(--accent); font-weight: 700;
}
details.card[open] > summary::before { content: "–"; }
details.card[open] > summary { margin-bottom: 16px; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; align-items: start; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 + .card { margin-top: 20px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack > h2 { margin: 0; }

.muted { color: var(--muted); }
.small { font-size: .84rem; }
.nowrap { white-space: nowrap; }
.error-text { color: var(--error); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Dashboard: hero ------------------------------------------------------------- */

.hero {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 12px;
    padding: 30px 34px; margin-bottom: 20px; border-radius: var(--radius-lg);
    color: #fff; background: var(--accent-grad); box-shadow: 0 24px 50px -24px rgba(228, 87, 46, .6);
}
.hero::before, .hero::after {
    content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px);
}
.hero::before { width: 420px; height: 420px; right: -120px; top: -200px; background: radial-gradient(circle, rgba(255, 255, 255, .25), transparent 65%); }
.hero::after { width: 360px; height: 360px; left: 30%; bottom: -260px; background: radial-gradient(circle, rgba(106, 90, 249, .55), transparent 65%); }
.hero-kicker {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
    background: rgba(255, 255, 255, .18); font-size: .78rem; font-weight: 650; letter-spacing: .02em; backdrop-filter: blur(6px);
}
.hero-kicker .icon { width: 14px; height: 14px; }
.hero h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 780; margin: 14px 0 8px; }
.hero p { color: rgba(255, 255, 255, .88); max-width: 46ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero-art { width: 100%; max-height: 220px; }

.float-a { animation: float 6s ease-in-out infinite; }
.float-b { animation: float 7s ease-in-out -2s infinite; }
.float-c { animation: float 8s ease-in-out -4s infinite; }
@keyframes float { 50% { transform: translateY(-7px); } }

@media (max-width: 760px) {
    .hero { grid-template-columns: 1fr; padding: 24px; }
    .hero-art { display: none; }
}

/* --- Dashboard: KPIs ---------------------------------------------------------------- */

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi {
    display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.kpi > div { display: flex; flex-direction: column; min-width: 0; }
.kpi-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; }
.kpi-icon .icon { width: 22px; height: 22px; }
.kpi-icon.accent { background: var(--accent-soft); color: var(--accent); }
.kpi-icon.violet { background: var(--violet-soft); color: var(--violet); }
.kpi-icon.teal { background: var(--teal-soft); color: var(--teal); }
.kpi-icon.amber { background: var(--amber-soft); color: var(--amber); }
.kpi-label { color: var(--muted); font-size: .82rem; font-weight: 550; }
.kpi-value { font-size: 1.6rem; font-weight: 780; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }

/* --- Dashboard: grid ------------------------------------------------------------------ */

.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.dash-grid > .card { margin: 0; }
.dash-grid .span-2 { grid-row: span 2; }
@media (max-width: 1100px) {
    .dash-grid { grid-template-columns: minmax(0, 1fr); }
    .dash-grid .span-2 { grid-row: auto; }
}

/* Bar chart */
.legend { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw.published { background: var(--accent-grad); }
.sw.scheduled { background: repeating-linear-gradient(45deg, var(--violet) 0 2px, var(--violet-soft) 2px 4px); }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--border); stroke-dasharray: 3 5; }
.chart .axis { fill: var(--muted); font: 600 10.5px var(--font); }
.chart .axis.faint { opacity: .6; font-weight: 500; }
.chart .axis.today { fill: var(--accent); font-weight: 750; }
.chart .today-band { fill: var(--accent); fill-opacity: .07; stroke: var(--accent); stroke-opacity: .35; stroke-dasharray: 4 4; }
.chart .empty-bar { fill: var(--surface-3); }
.chart .bar { cursor: default; }
.chart .bar:hover rect.grow { filter: brightness(1.12); }
.chart .grow {
    transform-box: fill-box; transform-origin: bottom;
    animation: grow .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 25ms);
}
@keyframes grow { from { transform: scaleY(0); } }

/* Donut */
.donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.donut { width: 170px; height: 170px; animation: donut .9s cubic-bezier(.2, .8, .2, 1) both; }
.donut-track { fill: none; stroke: var(--surface-3); stroke-width: 14; }
.donut-seg { fill: none; stroke-width: 14; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 70px 70px; }
@keyframes donut { from { opacity: 0; transform: rotate(-60deg) scale(.85); } }
.donut-value { fill: var(--text); font: 800 28px var(--font); letter-spacing: -.03em; }
.donut-label { fill: var(--muted); font: 600 11px var(--font); }
.donut-legend { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.donut-legend li { display: grid; grid-template-columns: 10px 1fr auto 40px; align-items: center; gap: 10px; font-size: .88rem; }
.donut-legend i { width: 10px; height: 10px; border-radius: 3px; }
.donut-legend small { color: var(--muted); text-align: right; }

/* Upcoming */
.upcoming { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.upcoming li {
    display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px;
    background: var(--surface-2); border: 1px solid var(--border);
}
.date-chip {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 48px; height: 52px; border-radius: 12px; flex-shrink: 0;
    background: var(--surface); border: 1px solid var(--border); line-height: 1;
}
.date-chip strong { font-size: 1.2rem; font-weight: 800; }
.date-chip small { font-size: .68rem; font-weight: 700; color: var(--accent); text-transform: uppercase; margin-top: 3px; }
.upcoming-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.upcoming-text strong { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upcoming-text small { color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.upcoming-text small .icon { width: 13px; height: 13px; }

/* Health */
.health { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.health a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: var(--text);
    border: 1px solid var(--border); transition: background .15s, border-color .15s;
}
.health a:hover { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.health-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; }
.health-icon.ok { background: var(--ok-soft); color: var(--ok); }
.health-icon.warn { background: var(--amber-soft); color: var(--amber); }
.health-icon.off { background: var(--error-soft); color: var(--error); }
.health-icon.idle { background: var(--surface-3); color: var(--muted); }
.health-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.health-text strong { font-size: .9rem; }
.health-text small { color: var(--muted); font-size: .8rem; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--border); }
.timeline li { position: relative; display: flex; gap: 14px; padding: 8px 0; }
.tl-icon {
    position: relative; z-index: 1; display: grid; place-items: center;
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: var(--surface-2); color: var(--muted); border: 3px solid var(--surface);
}
.tl-icon .icon { width: 16px; height: 16px; }
.tl-icon.ok { background: var(--ok-soft); color: var(--ok); }
.tl-icon.error { background: var(--error-soft); color: var(--error); }
.tl-icon.info { background: var(--info-soft); color: var(--info); }
.tl-icon.violet { background: var(--violet-soft); color: var(--violet); }
.tl-icon.amber { background: var(--amber-soft); color: var(--amber); }
.tl-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-top: 6px; }
.tl-text { font-size: .9rem; overflow-wrap: anywhere; }
.tl-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .78rem; }

/* Recent uploads */
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumbs a { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.thumbs a span {
    position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
    background: rgba(228, 87, 46, .55); opacity: 0; transition: opacity .2s;
}
.thumbs a:hover img { transform: scale(1.06); }
.thumbs a:hover span { opacity: 1; }
.upload-teaser {
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px;
    border: 2px dashed var(--border-strong); border-radius: 14px; color: var(--muted); font-weight: 600;
}
.upload-teaser .icon { width: 28px; height: 28px; color: var(--accent); }

/* Empty states */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 0 4px; color: var(--muted); }
.empty svg { width: 120px; height: 90px; margin-bottom: 8px; }
.empty p { margin: 0 0 4px; }
.empty .e1 { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1.5; }
.empty .e2 { fill: var(--accent-soft); }
.empty .e3 { fill: var(--surface-3); }
.empty .e4 { fill: var(--accent); opacity: .6; }

/* --- Forms ----------------------------------------------------------------------- */

label { display: flex; flex-direction: column; gap: 7px; font-weight: 600; font-size: .88rem; color: var(--text-2); }
label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; color: var(--text); }
input, select, textarea {
    font: inherit; font-weight: 450; color: var(--text); background: var(--surface-2); width: 100%;
    border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); background: var(--surface); }
select {
    appearance: none; padding-right: 40px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8799' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; padding: 0; accent-color: var(--accent); cursor: pointer; }
textarea { resize: vertical; min-height: 44px; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.form-row > * { flex: 1 1 200px; }
.form-row > .btn { flex: 0 0 auto; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
label:has(.counter) { flex-direction: row; flex-wrap: wrap; align-items: center; }
label:has(.counter) > input, label:has(.counter) > textarea { flex-basis: 100%; }
.counter { margin-left: auto; font-weight: 600; color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.counter.over { color: var(--error); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 650; font-size: .92rem; padding: 11px 18px; border-radius: 12px; cursor: pointer;
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
    box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .15s, background .15s, filter .15s;
    white-space: nowrap;
}
.btn:hover { color: var(--text); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 17px; height: 17px; }
.btn.primary {
    background: var(--accent-grad); border-color: transparent; color: #fff;
    box-shadow: 0 8px 20px -8px rgba(228, 87, 46, .65), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn.primary:hover { color: #fff; filter: brightness(1.06); box-shadow: 0 12px 26px -8px rgba(228, 87, 46, .7); }
.btn.light { background: #fff; color: #d63a1f; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .35); }
.btn.light:hover { background: #fff; color: #e4572e; }
.btn.ghost-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); box-shadow: none; }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.btn.small { padding: 7px 12px; font-size: .84rem; border-radius: 10px; }
.btn[disabled] { opacity: .65; cursor: wait; }
button.link {
    display: inline-flex; align-items: center; gap: 5px;
    background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer;
}
button.link:hover { color: var(--accent-2); }
.danger { color: var(--error) !important; }

/* Segmented tabs */
.tabs {
    display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; flex-wrap: wrap;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
}
.tabs label {
    flex-direction: row; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 10px;
    cursor: pointer; font-weight: 600; color: var(--muted); transition: all .15s;
}
.tabs label:hover { color: var(--text); }
.tabs label:has(input:checked) { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.tabs input { display: none; }

/* Alerts, chips, badges */
.alert {
    display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: 14px; margin-bottom: 16px;
    background: var(--info-soft); color: var(--info); font-weight: 550; border: 1px solid transparent;
}
.alert .icon { margin-top: 2px; }
.alert.success { background: var(--ok-soft); color: var(--ok); }
.alert.error { background: var(--error-soft); color: var(--error); }
a.alert:hover { filter: brightness(.98); }
.toasts .alert { margin: 0; }

.chip, .badge {
    display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700;
    padding: 3px 9px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); letter-spacing: .01em; white-space: nowrap;
}
.chip .icon { width: 13px; height: 13px; }
.chip.warn, .badge.warn, .badge.cron, .chip.cron { background: var(--amber-soft); color: var(--amber); }
.chip.ok, .badge.ok { background: var(--ok-soft); color: var(--ok); }
.chip.info, .badge.info { background: var(--info-soft); color: var(--info); }
.chip.mcp, .badge.mcp { background: var(--violet-soft); color: var(--violet); }
.chip.dashboard, .badge.dashboard { background: var(--accent-soft); color: var(--accent); }
.badge.error { background: var(--error-soft); color: var(--error); }

/* Tables */
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th {
    text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--border);
}
.table td { padding: 13px 12px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: .92rem; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.row-error td { background: var(--error-soft); }
.pager { display: flex; justify-content: space-between; margin-top: 14px; font-weight: 600; }
@media (max-width: 640px) {
    .table thead { display: none; }
    .table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
    .table td { display: block; border: 0; padding: 2px 0; }
}

/* --- Boards & pins ---------------------------------------------------------------- */

.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 18px; }
.board-card {
    display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; color: var(--text); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.board-card:hover { color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.board-cover {
    aspect-ratio: 4 / 3; position: relative;
    background:
        radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 60%),
        radial-gradient(circle at 80% 70%, var(--violet-soft), transparent 55%),
        var(--surface-2);
}
.board-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.board-card:hover .board-cover img { transform: scale(1.04); }
.board-meta { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.board-meta strong { font-size: .98rem; }
.board-meta .muted { font-size: .82rem; }

.pin-grid { columns: 240px; column-gap: 18px; }
.pin-card {
    break-inside: avoid; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.pin-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pin-thumb { display: block; position: relative; background: var(--surface-2); min-height: 90px; }
.pin-thumb img { width: 100%; display: block; }
.pin-thumb .badge { position: absolute; top: 10px; left: 10px; background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(6px); }
.pin-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.pin-actions { display: flex; gap: 16px; margin-top: 8px; font-size: .86rem; font-weight: 600; }
.preview { width: 100%; border-radius: 14px; }

/* --- Media library ---------------------------------------------------------------- */

.dropzone {
    position: relative; overflow: hidden; text-align: center; margin-bottom: 24px;
    padding: 44px 20px; border-radius: var(--radius-lg);
    border: 2px dashed var(--border-strong); background: var(--surface);
    transition: border-color .2s, background .2s, transform .2s;
}
.dropzone::before {
    content: ""; display: block; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e60023' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m17 8-5-5-5 5M12 3v12'/%3E%3C/svg%3E") center / 28px no-repeat;
    transition: transform .25s;
}
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.01); }
.dropzone.over::before { transform: translateY(-4px) scale(1.06); }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone-text { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.dropzone-text strong { font-size: 1.05rem; }
.dropzone-text label { display: inline; font-weight: 700; color: var(--accent); cursor: pointer; font-size: inherit; }
.progress { height: 6px; max-width: 420px; margin: 18px auto 0; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--accent-grad); transition: width .2s; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 42vw), 1fr)); gap: 16px; }
.media-card {
    margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.media-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.media-card img, .media-card video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--surface-2); }
.media-card figcaption { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.media-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: .84rem; font-weight: 600; }

.media-picker {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px;
    max-height: 440px; overflow-y: auto; padding: 4px;
}
.media-item {
    position: relative; display: block; border-radius: 14px; overflow: hidden; cursor: pointer;
    box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s, transform .15s;
}
.media-item:hover { transform: translateY(-2px); }
.media-item img, .media-item video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--surface-2); }
.media-item input { position: absolute; top: 8px; right: 8px; z-index: 1; }
.media-item .badge { position: absolute; bottom: 8px; left: 8px; background: rgba(0, 0, 0, .55); color: #fff; }
.media-item:has(input:checked) { box-shadow: 0 0 0 3px var(--accent), 0 10px 22px -10px rgba(228, 87, 46, .6); }
.media-item .order {
    position: absolute; top: 7px; left: 7px; display: grid; place-items: center;
    min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
    background: var(--accent-grad); color: #fff; font-size: .75rem; font-weight: 800;
}
.video-only { margin-top: 16px; max-width: 340px; }

/* Create form steps */
.create-form { counter-reset: step; }
.create-form > .card > h2 { display: flex; align-items: center; gap: 10px; }

/* --- Settings ---------------------------------------------------------------- */

.steps { padding-left: 0; margin: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; color: var(--text-2); }
.steps li::before {
    content: counter(s); display: inline-grid; place-items: center; flex-shrink: 0;
    width: 24px; height: 24px; border-radius: 8px; background: var(--accent-soft); color: var(--accent);
    font-size: .78rem; font-weight: 800;
}
.secret { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.secret code { flex: 1 1 300px; padding: 11px 14px; }
.blurred { filter: blur(5px); user-select: none; }
.copy { cursor: copy; }
.help { padding: 6px 0 0; color: var(--text-2); }
.help p { margin: 10px 0; }
details > summary { cursor: pointer; font-weight: 600; color: var(--accent); }

/* --- Auth pages -------------------------------------------------------------- */

body.auth { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.auth-wrap {
    width: 100%; max-width: 940px; display: grid; grid-template-columns: 1.1fr 1fr;
    background: var(--surface); border: 1px solid var(--border); border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.auth-art {
    position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 34px;
    display: flex; flex-direction: column; justify-content: center; min-height: 540px;
    background: linear-gradient(160deg, #2a1a5e 0%, #6a1b4d 55%, #e60023 120%);
}
.auth-art::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(500px 300px at 80% 10%, rgba(255, 77, 106, .45), transparent 60%);
}
.auth-illustration { display: block; width: 100%; max-width: 320px; max-height: 300px; margin: 0 auto 24px; }
.auth-tagline h2 { font-size: 1.9rem; font-weight: 800; margin: 0 0 10px; line-height: 1.12; }
.auth-tagline p { color: rgba(255, 255, 255, .8); margin: 0; max-width: 34ch; }
.auth-card { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-card .brand { margin-bottom: 34px; padding: 0; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card form { margin-top: 22px; }
.auth-card .btn { width: 100%; padding: 13px; }
@media (max-width: 760px) {
    .auth-wrap { grid-template-columns: 1fr; border-radius: 24px; }
    .auth-art { min-height: 200px; padding: 24px; }
    .auth-illustration { display: none; }
    .auth-tagline h2 { font-size: 1.4rem; }
    .auth-card { padding: 30px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- Page extras ------------------------------------------------------------- */

.step-no {
    display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
    background: var(--accent-grad); color: #fff; font-size: .82rem; font-weight: 800;
    box-shadow: 0 6px 14px -6px rgba(228, 87, 46, .6);
}
.section-title { display: flex; align-items: center; gap: 12px; }
.section-title .kpi-icon { width: 38px; height: 38px; border-radius: 11px; }
.section-title .kpi-icon .icon { width: 19px; height: 19px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.pin-actions a, .pin-actions button, .media-actions a { display: inline-flex; align-items: center; gap: 5px; }
.pin-actions .icon, .media-actions .icon { width: 15px; height: 15px; }
.empty-icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 8px; }

/* --- Public pages (privacy policy) ------------------------------------------- */

body.public { padding: 0 16px 64px; }
.public-head {
    position: sticky; top: 0; z-index: 10; max-width: 880px; margin: 0 auto; padding: 18px 0;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px);
}
.lang-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.lang-switch a { padding: 6px 12px; border-radius: 9px; font-size: .85rem; font-weight: 650; color: var(--muted); }
.lang-switch a.active { background: var(--accent-soft); color: var(--accent); }
.public-main { max-width: 880px; margin: 0 auto; }

.legal {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: clamp(24px, 5vw, 56px); box-shadow: var(--shadow); line-height: 1.7; color: var(--text-2);
}
.legal h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--text); margin: 6px 0 6px; }
.legal h2 { font-size: 1.15rem; color: var(--text); margin: 0 0 10px; scroll-margin-top: 90px; }
.legal section { padding-top: 26px; margin-top: 26px; border-top: 1px solid var(--border); }
.legal strong { color: var(--text); }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
.legal-kicker {
    display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 12px; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent); font-size: .8rem; font-weight: 700;
}
.legal-kicker .icon { width: 14px; height: 14px; }
.legal-toc {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 16px;
    margin-top: 24px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border);
}
.legal-toc a { font-size: .88rem; font-weight: 550; padding: 3px 0; }
.legal .scopes { display: flex; flex-wrap: wrap; gap: 6px; }
.operator {
    font-style: normal; padding: 16px 18px; border-radius: var(--radius); line-height: 1.6;
    background: var(--surface-2); border-left: 4px solid var(--accent);
}
.auth-foot { margin: 18px 0 0; text-align: center; font-size: .85rem; }
.auth-foot a { color: var(--muted); }
@media print {
    body.public { background: #fff; color: #000; }
    .public-head .lang-switch, .legal-toc { display: none; }
    .legal { box-shadow: none; border: 0; padding: 0; }
}

/* --- Analytics --------------------------------------------------------------- */

.toolbar.between { justify-content: space-between; align-items: center; }
form.inline { display: inline; margin: 0; }
.segmented {
    display: inline-flex; gap: 3px; padding: 4px; border-radius: 13px;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); flex-wrap: wrap;
}
.segmented a { padding: 7px 14px; border-radius: 10px; font-size: .88rem; font-weight: 650; color: var(--muted); }
.segmented a:hover { color: var(--text); }
.segmented a.active { background: var(--accent-grad); color: #fff; box-shadow: 0 6px 14px -8px rgba(228, 87, 46, .7); }
.segmented.small a { padding: 5px 10px; font-size: .8rem; }
.segmented.small a.active { background: var(--accent-soft); color: var(--accent); box-shadow: none; }

.card.notice { display: flex; gap: 16px; align-items: flex-start; }
.card.notice h2 { margin-bottom: 6px; }
.card.notice p { margin-bottom: 6px; }
.card-head.wrap { flex-wrap: wrap; }

.accent-text { color: var(--accent); }
.violet-text { color: var(--violet); }
.teal-text { color: var(--teal); }
.amber-text { color: var(--amber); }
.info-text { color: var(--info); }
.kpi-icon.info { background: var(--info-soft); color: var(--info); }

.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
@media (max-width: 1280px) { .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .metric-card { padding: 14px; } .metric-value { font-size: 1.35rem; } }
.metric-card {
    display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 18px 18px 14px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.metric-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.metric-top .kpi-icon { width: 38px; height: 38px; border-radius: 11px; }
.metric-top .kpi-icon .icon { width: 19px; height: 19px; }
.metric-label { color: var(--muted); font-size: .82rem; font-weight: 600; }
.metric-value { font-size: 1.65rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.metric-foot { margin-top: auto; padding-top: 6px; }
.sparkline { display: block; width: 100%; height: 36px; margin-top: 8px; }

.delta { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 999px; font-size: .74rem; font-weight: 750; white-space: nowrap; }
.delta.up { background: var(--ok-soft); color: var(--ok); }
.delta.down { background: var(--error-soft); color: var(--error); }
.delta.flat { background: var(--surface-3); color: var(--muted); }

.metric-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.metric-tabs button {
    --c: var(--accent);
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
    font: inherit; font-size: .82rem; font-weight: 650; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border);
}
.metric-tabs button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); opacity: .5; }
.metric-tabs button.violet { --c: var(--violet); }
.metric-tabs button.teal { --c: var(--teal); }
.metric-tabs button.amber { --c: var(--amber); }
.metric-tabs button.info { --c: var(--info); }
.metric-tabs button.active { color: var(--text); background: var(--surface); border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.metric-tabs button.active::before { opacity: 1; }

.line-chart { position: relative; height: var(--h, 260px); margin-top: 6px; }
.line-chart svg { display: block; overflow: visible; }
.lc-grid { stroke: var(--border); stroke-dasharray: 3 5; }
.lc-axis { fill: var(--muted); font: 600 11px var(--font); }
.lc-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; animation: draw-line 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.lc-prev { fill: none; stroke-width: 1.6; stroke-dasharray: 5 5; opacity: .45; }
.lc-area { animation: fade-in .9s ease both; }
.lc-guide { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.lc-dot { stroke: var(--surface); stroke-width: 3; }
@keyframes draw-line { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.lc-tip {
    position: absolute; pointer-events: none; z-index: 5; display: flex; flex-direction: column; gap: 1px;
    padding: 9px 12px; border-radius: 12px; font-size: .82rem; white-space: nowrap;
    background: var(--text); color: var(--surface); box-shadow: var(--shadow-lg);
}
.lc-tip strong { font-size: 1.05rem; }
.lc-tip-date, .lc-tip-prev { opacity: .7; font-size: .76rem; }

/* Funnel */
.funnel { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 16px 0 14px; }
.funnel-step { --c: var(--accent); --c-soft: var(--accent-soft); position: relative; width: 100%; display: flex; justify-content: center; }
.funnel-step.violet { --c: var(--violet); --c-soft: var(--violet-soft); }
.funnel-step.teal { --c: var(--teal); --c-soft: var(--teal-soft); }
.funnel-step.amber { --c: var(--amber); --c-soft: var(--amber-soft); }
.funnel-bar {
    width: var(--w); display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 12px 14px;
    background: var(--c-soft); color: var(--c); border-radius: 12px; clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%);
    font-size: .88rem; font-weight: 600;
}
.funnel-bar strong { font-size: 1.15rem; font-weight: 800; color: var(--text); }
.funnel-rate { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: .78rem; font-weight: 750; color: var(--c); }
.funnel-side { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .9rem; flex-wrap: wrap; }
.funnel-side .icon { color: var(--info); }

/* Weekdays */
.weekday-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; margin: 16px 0 10px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wd-value { font-size: .72rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.wd-track { position: relative; width: 100%; max-width: 44px; height: 150px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.wd-fill {
    position: absolute; left: 0; right: 0; bottom: 0; height: var(--p); border-radius: 10px;
    background: color-mix(in srgb, var(--accent) 35%, var(--surface-3)); transform-origin: bottom; animation: grow .8s cubic-bezier(.2, .8, .2, 1) both;
}
.wd.best .wd-fill { background: var(--accent-grad); box-shadow: 0 8px 18px -8px rgba(228, 87, 46, .7); }
.wd.best .wd-value, .wd.best .wd-label { color: var(--accent); }
.wd-label { font-size: .8rem; font-weight: 700; color: var(--text-2); }

/* Top pins */
.top-pins { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.top-pins li {
    display: grid; grid-template-columns: 28px 56px minmax(0, 1fr) auto; align-items: center; gap: 14px;
    padding: 10px; border-radius: 14px; transition: background .15s;
}
.top-pins li:hover { background: var(--surface-2); }
.rank { font-weight: 800; font-size: 1rem; color: var(--muted); text-align: center; }
.top-pins li:nth-child(-n+3) .rank { color: var(--accent); }
.tp-thumb { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--surface-3); color: var(--muted); }
.tp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tp-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; align-items: flex-start; }
.tp-title { color: var(--text); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tp-title:hover { color: var(--accent); }
.tp-bar { width: 100%; max-width: 280px; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.tp-bar span { display: block; height: 100%; width: var(--p); border-radius: 999px; background: var(--accent-grad); }
.tp-metrics { display: grid; grid-template-columns: repeat(4, minmax(64px, auto)); gap: 4px 14px; font-size: .84rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.tp-metrics span { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; }
.tp-metrics .icon { width: 14px; height: 14px; }
.tp-metrics .sorted { color: var(--text); font-weight: 750; }
@media (max-width: 760px) {
    .top-pins li { grid-template-columns: 22px 48px minmax(0, 1fr); }
    .tp-thumb { width: 48px; height: 48px; }
    .tp-metrics { grid-column: 2 / -1; grid-template-columns: repeat(4, auto); justify-content: start; }
}

/* Insights */
.insights { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.insights li { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--text-2); }
.insights .tl-icon { border: 0; width: 34px; height: 34px; }
.tl-icon.warn { background: var(--amber-soft); color: var(--amber); }
.tl-icon.muted { background: var(--surface-3); color: var(--muted); }
.ai-prompt { border-top: 1px solid var(--border); padding-top: 12px; }
.ai-prompt summary { display: inline-flex; align-items: center; gap: 6px; }
.ai-prompt code { margin-top: 8px; }

.follower-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 4px; }
.follower-head strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.empty .e-line { stroke: var(--violet); }
.empty .small { max-width: 34ch; }

/* Heatmap */
.heatmap { display: grid; grid-template-columns: 26px repeat(24, minmax(0, 1fr)); gap: 3px; margin-top: 14px; }
.hm-hour, .hm-day { font-size: .68rem; font-weight: 650; color: var(--muted); }
.hm-day { align-self: center; }
.hm-cell { aspect-ratio: 1; border-radius: 4px; background: var(--surface-3); min-width: 6px; }
.hm-cell.l1 { background: color-mix(in srgb, var(--accent) 25%, var(--surface-3)); }
.hm-cell.l2 { background: color-mix(in srgb, var(--accent) 50%, var(--surface-3)); }
.hm-cell.l3 { background: color-mix(in srgb, var(--accent) 75%, var(--surface-3)); }
.hm-cell.l4 { background: var(--accent); }
.hm-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 10px; }
.hm-legend .hm-cell { width: 12px; }

/* Sources */
.big-number { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 14px; }
.big-number span { font-size: 1rem; font-weight: 600; }
.source-bars { display: flex; flex-direction: column; gap: 12px; }
.source-row { display: grid; grid-template-columns: 90px 1fr 36px; align-items: center; gap: 12px; font-size: .9rem; }
.source-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.sr-track { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.sr-fill { display: block; height: 100%; width: var(--p); border-radius: 999px; background: var(--accent); }
.sr-fill.violet { background: var(--violet); }
.sr-fill.amber { background: var(--amber); }

/* Pin detail */
.pin-layout { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 20px; align-items: start; }
.pin-aside { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 10px; }
.pin-aside h2 { margin: 6px 0 0; }
.pin-aside p { margin: 0; overflow-wrap: anywhere; }
.pin-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 6px 0; font-size: .88rem; }
.pin-facts dt { color: var(--muted); font-weight: 600; }
.pin-facts dd { margin: 0; overflow-wrap: anywhere; }
.metric-grid.compact { grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); }
@media (max-width: 900px) {
    .pin-layout { grid-template-columns: 1fr; }
    .pin-aside { position: static; }
}

/* Overview: reach strip */
.reach { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) auto; gap: 20px; align-items: center; }
.reach-main { display: flex; flex-direction: column; gap: 2px; }
.reach-main .metric-value { font-size: 2rem; }
.reach-item { display: flex; flex-direction: column; gap: 2px; }
.reach-item strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.reach-item .delta { align-self: flex-start; }
@media (max-width: 1000px) {
    .reach { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .reach-main { grid-column: 1 / -1; }
}

/* ==========================================================================
   Kronenglut Studio – multi-channel components
   ========================================================================== */

:root {
    --ch-pinterest: #e60023;
    --ch-instagram: #d62976;
    --ch-youtube: #ff0000;
    --ch-tiktok: #00b8c2;
}

.ch-icon { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -4px; }
.ch-pinterest { color: var(--ch-pinterest); }
.ch-instagram { color: var(--ch-instagram); }
.ch-youtube { color: var(--ch-youtube); }
.ch-tiktok { color: var(--text); }

.lead { max-width: 80ch; margin-bottom: 20px; }
.hint { display: block; color: var(--muted); font-size: .8rem; font-weight: 500; line-height: 1.45; }
.req { font-size: .7rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 1px 7px; border-radius: 999px; margin-left: 6px; }
.btn.big { width: 100%; padding: 14px; font-size: 1rem; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar form { margin: 0; }
.badge .icon { width: 12px; height: 12px; }

/* Sidebar channel status */
.status-card { color: var(--text-2); }
.status-card:hover { border-color: var(--border-strong); color: var(--text); }
.status-line .ch-icon { width: 15px; height: 15px; }
.status-line span:nth-child(2) { flex: 1; }

/* Channel marks */
.channel-mark {
    display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
    background: color-mix(in srgb, var(--brand, var(--accent)) 12%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--brand, var(--accent)) 25%, var(--border));
}
.channel-mark .ch-icon { width: 24px; height: 24px; }
.channel-mark.sm { width: 34px; height: 34px; border-radius: 10px; }
.channel-mark.sm .ch-icon { width: 18px; height: 18px; }

/* Channels page */
.channel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 20px; align-items: start; }
.channel-grid .card { margin: 0; }
.channel-card { border-top: 4px solid var(--brand); display: flex; flex-direction: column; gap: 14px; }
.channel-head { display: flex; align-items: center; gap: 14px; }
.channel-head h2 { margin: 0 0 4px; }
.channel-head .chip { margin-right: 4px; }
.account-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface-3); }
.avatar.placeholder { display: grid; place-items: center; font-weight: 800; color: var(--muted); }
.avatar.sm { width: 24px; height: 24px; vertical-align: middle; margin-right: 6px; }
.account-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.account-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.setup > summary { margin-bottom: 4px; }
details.setup[open] > summary { margin-bottom: 14px; }
details.setup .steps { margin-bottom: 16px; }
.copy-field { margin-bottom: 12px; }
.copy-field .secret code { flex: 1 1 260px; font-size: 12px; }
.legal-links { display: flex; flex-direction: column; gap: 12px; }
.legal-link { display: flex; flex-direction: column; gap: 4px; }
.legal-link .secret code { flex: 1 1 260px; }

/* Compose */
.compose { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.compose-main .card { margin-bottom: 20px; }
.compose-main h2, .compose-side h2 { display: flex; align-items: center; gap: 10px; }
.sticky { position: sticky; top: 20px; }
@media (max-width: 1100px) { .compose { grid-template-columns: 1fr; } .sticky { position: static; } }

.limit-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: -6px; }
.limit-chip {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
    font-size: .74rem; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border);
}
.limit-chip .ch-icon { width: 13px; height: 13px; }
.limit-chip.over { color: var(--error); background: var(--error-soft); border-color: transparent; }
.limit-chip.off { opacity: .35; }

.channel-picks { display: flex; flex-direction: column; gap: 12px; }
.pick {
    border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.pick.on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.pick.disabled { opacity: .6; }
.pick-head { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; font-size: 1rem; color: var(--text); }
.pick-head .ch-icon { width: 22px; height: 22px; }
.pick-head strong { flex: 0 0 auto; }
.pick-head a { margin-left: auto; }
.pick-warning { margin-left: auto; color: var(--amber); font-weight: 600; text-align: right; }
.pick-warning.error { color: var(--error); }
.pick-body { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 14px; border-top: 1px dashed var(--border); padding-top: 16px; }
.tabs.small { margin-bottom: 0; }
.tabs.small label { padding: 6px 12px; font-size: .85rem; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.creator-line { margin: 0; font-size: .9rem; color: var(--text-2); }
details.disclose { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; }
details.disclose[open] { display: flex; flex-direction: column; gap: 8px; }
details.disclose summary { color: var(--text-2); }
.declaration a { font-weight: 600; }
.summary { display: flex; flex-direction: column; gap: 8px; }
.summary-row { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.summary-row .ch-icon { width: 16px; height: 16px; }
.summary-row .ok-text { color: var(--ok); margin-left: auto; font-weight: 700; }
.summary-row .warn-text { color: var(--amber); margin-left: auto; font-weight: 600; font-size: .78rem; text-align: right; }

/* Posts list */
.post-list { display: flex; flex-direction: column; gap: 10px; }
.post-row {
    display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 14px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); box-shadow: var(--shadow);
    transition: transform .15s, border-color .15s;
}
.post-row:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.post-thumb { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); }
.post-thumb img, .post-thumb video { width: 100%; height: 100%; object-fit: cover; }
.post-thumb .count { position: absolute; right: 4px; bottom: 4px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .7rem; font-weight: 800; padding: 1px 6px; border-radius: 999px; }
.post-thumb .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.post-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.post-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-main .icon { width: 13px; height: 13px; margin-right: 4px; }
.post-targets { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.target-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border); font-size: .76rem; font-weight: 700; color: var(--text-2);
}
.target-chip .ch-icon { width: 16px; height: 16px; }
.target-chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.target-chip.error { background: var(--error-soft); color: var(--error); border-color: transparent; }
.target-chip.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
@media (max-width: 760px) {
    .post-row { grid-template-columns: 52px minmax(0, 1fr); }
    .post-thumb { width: 52px; height: 52px; }
    .post-targets { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Post detail */
.post-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.post-layout > .card { margin: 0; }
@media (max-width: 1000px) { .post-layout { grid-template-columns: 1fr; } }
.post-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 16px; }
.post-media img, .post-media video { width: 100%; border-radius: 12px; background: var(--surface-2); max-height: 420px; object-fit: cover; }
.post-media:has(> :only-child) { grid-template-columns: 1fr; }
.caption { white-space: normal; overflow-wrap: anywhere; color: var(--text-2); }
.target-list { display: flex; flex-direction: column; gap: 14px; }
.target-list .card { margin: 0; }
.target-card { border-left: 4px solid var(--brand); display: flex; flex-direction: column; gap: 10px; }
.target-card header { display: flex; align-items: center; gap: 10px; }
.target-card header .chip { margin-left: auto; }
.target-card p { margin: 0; overflow-wrap: anywhere; }
.target-card .icon { width: 14px; height: 14px; }

/* Calendar */
.month-nav { display: flex; align-items: center; gap: 10px; }
.month-nav h2 { margin: 0; min-width: 180px; text-align: center; font-size: 1.2rem; }
.calendar { padding: 12px; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head span { text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 6px 0; }
.cal-day {
    position: relative; min-height: 118px; padding: 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid transparent;
    display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.cal-day.other { opacity: .45; }
.cal-day.today { border-color: var(--accent); background: var(--accent-soft); }
.cal-day.past .cal-num { color: var(--muted); }
.cal-num { font-weight: 800; font-size: .9rem; }
.cal-item {
    display: flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 7px; font-size: .72rem; color: var(--text);
    background: var(--surface); border: 1px solid var(--border); min-width: 0;
}
.cal-item:hover { color: var(--text); border-color: var(--border-strong); }
.cal-item .ch-icon { width: 12px; height: 12px; }
.cal-item.ok { border-left: 3px solid var(--ok); }
.cal-item.error { border-left: 3px solid var(--error); }
.cal-item.info { border-left: 3px solid var(--info); }
.cal-time { font-weight: 700; color: var(--muted); }
.cal-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-more { font-size: .7rem; color: var(--muted); padding-left: 4px; }
.cal-add {
    position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px;
    color: var(--muted); opacity: 0; transition: opacity .15s;
}
.cal-day:hover .cal-add { opacity: 1; background: var(--surface); }
.cal-add .icon { width: 14px; height: 14px; }
@media (max-width: 760px) {
    .cal-day { min-height: 64px; padding: 5px; }
    .cal-text, .cal-time { display: none; }
    .cal-item { padding: 3px; justify-content: center; }
    .cal-add { display: none; }
}

/* Overview */
.channel-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
@media (max-width: 1000px) { .channel-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.channel-stat {
    display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); color: var(--text);
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.channel-stat:hover { color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cs-body { display: flex; flex-direction: column; min-width: 0; }
.cs-body .metric-value { font-size: 1.45rem; }
.cs-body .delta { margin-left: 4px; }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.week-day {
    display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px;
    background: var(--surface-2); border: 1px solid transparent; color: var(--text);
}
.week-day:hover { color: var(--text); border-color: var(--border-strong); }
.week-day.today { background: var(--accent-soft); border-color: var(--accent); }
.wd-name { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.week-day.today .wd-name { color: var(--accent); }
.wd-date { font-size: 1.3rem; font-weight: 800; }
.wd-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; min-height: 18px; }
.wd-dots .ch-icon { width: 14px; height: 14px; }
.sr-label { display: inline-flex; align-items: center; gap: 6px; }
.source-row { grid-template-columns: 120px 1fr 36px; }
.upcoming-text { color: var(--text); }
.upcoming-text:hover { color: var(--accent); }
.upcoming-text small .ch-icon { width: 13px; height: 13px; }
.tl-icon .ch-icon { width: 16px; height: 16px; }
.thumbs video { width: 100%; height: 100%; object-fit: cover; }

/* Analytics */
.metric-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .metric-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.channel-metric { border-top: 3px solid var(--brand); }
.metric-tabs button.ch-tab { --c: var(--accent); }
.metric-tabs button.ch-pinterest { --c: var(--ch-pinterest); }
.metric-tabs button.ch-instagram { --c: var(--ch-instagram); }
.metric-tabs button.ch-youtube { --c: var(--ch-youtube); }
.metric-tabs button.ch-tiktok { --c: var(--ch-tiktok); }
.recent-card { border-top: 3px solid var(--brand); }
.recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.recent-item { display: flex; flex-direction: column; gap: 6px; color: var(--text); min-width: 0; }
.recent-item:hover { color: var(--text); }
.recent-item:hover .ri-thumb img { transform: scale(1.04); }
.ri-thumb { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.ri-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ri-thumb .ch-icon { width: 30px; height: 30px; opacity: .5; }
.ri-title { font-size: .84rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ri-stats { display: flex; gap: 10px; flex-wrap: wrap; font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ri-stats span { display: inline-flex; align-items: center; gap: 3px; }
.ri-stats .icon { width: 13px; height: 13px; }
.mini-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 8px; }
.mini-metrics > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.mini-metrics strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.mini-metrics .delta { align-self: flex-start; }
.mini-metrics .icon { width: 13px; height: 13px; }

/* Legal pages */
.legal-table { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 16px; }
.lt-row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.lt-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
@media (max-width: 640px) { .lt-row { grid-template-columns: 1fr; gap: 6px; } }
.revoke-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.revoke-list li { display: flex; gap: 10px; align-items: flex-start; }
.revoke-list .ch-icon { margin-top: 3px; }
.public-foot { text-align: center; padding: 24px 0 0; font-size: .85rem; color: var(--muted); }

/* Labels with a required marker keep it on the label line, like character counters. */
label:has(> .req) { flex-direction: row; flex-wrap: wrap; align-items: center; }
label:has(> .req) > select, label:has(> .req) > input { flex-basis: 100%; }
