:root {
    --forest: #183D35;
    --forest-dark: #0F2B25;
    --ivory: #F7F5EE;
    --panel: #ffffff;
    --mint: #BCE4C4;
    --mint-tint: #E4F4E8;
    --champagne: #C8AD75;
    --border: #D5DDD5;
    --text: #183D35;
    --muted: #596C63;
    --ok: #2F6B4F;
    --ok-tint: #DCEEE3;
    --warn: #9C6B1F;
    --warn-tint: #F3E6CE;
    --danger: #A8402B;
    --danger-tint: #F5E1DB;
    --radius: 12px;
    --radius-sm: 8px;

    --fs-xs: 0.8125rem;
    --fs-sm: 0.875rem;
    --fs-base: 0.9375rem;
    --fs-md: 1.0625rem;
    --fs-lg: 1.375rem;
    --fs-xl: 1.75rem;
    --fs-display: 2.25rem;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--ivory);
    color: var(--text);
    font-size: var(--fs-base);
    line-height: 1.55;
}

a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; }

.layout { display: flex; min-height: 100vh; }

/* ---- Sidebar ---- */
.sidebar {
    width: 230px;
    background: var(--forest);
    color: #fff;
    padding: 24px 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.sidebar h1 {
    margin: 0 20px 26px;
    line-height: 1;
}
.sidebar h1 img { display: block; height: 22px; width: auto; }
.sidebar h1 .byline {
    display: block;
    margin-top: 7px;
    font-size: 10px;
    font-weight: normal;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mint);
    opacity: 0.85;
}
.sidebar nav { flex: 1; }
.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #DCEBE2;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    border-left: 3px solid transparent;
    transition: background 120ms ease, transform 80ms ease-out;
}
.nav-icon {
    display: inline-flex;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    opacity: 0.85;
}
.nav-icon svg { width: 100%; height: 100%; }
.sidebar nav a.active .nav-icon { opacity: 1; }
.sidebar nav a:hover {
    background: rgba(255,255,255,0.08);
    text-decoration: none;
}
.sidebar nav a.active {
    background: rgba(255,255,255,0.1);
    border-left-color: var(--mint);
    color: #fff;
    font-weight: bold;
}
.sidebar nav a:active {
    background: rgba(255,255,255,0.16);
    transform: scale(0.98);
}
.sidebar .who {
    margin: 16px 20px 0;
    padding: 14px 10px 0;
    border-top: 1px solid rgba(255,255,255,0.18);
    font-size: var(--fs-xs);
    color: var(--mint);
}

.main { flex: 1; padding: 30px 34px; max-width: 1120px; }

/* ---- Top bar (search, notifications, account menu) ---- */
.topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}
.topbar-search {
    position: relative;
    flex: 1;
    max-width: 420px;
}
.topbar-search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--muted);
    pointer-events: none;
}
.topbar-search-icon svg { width: 100%; height: 100%; }
.topbar-search input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel);
    font-size: var(--fs-sm);
    font-family: inherit;
    color: var(--text);
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
.topbar-search input:focus {
    outline: none;
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(24,61,53,0.12);
}
.topbar-search input::placeholder { color: var(--muted); }
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.topbar-bell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--forest);
    cursor: pointer;
    transition: background 120ms ease, transform 100ms ease-out;
}
.topbar-bell svg { width: 18px; height: 18px; }
.topbar-bell:hover { background: var(--ivory); }
.topbar-bell:active { transform: scale(0.94); }
.topbar-user { position: relative; }
.topbar-user-trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 12px 5px 5px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel);
    font-family: inherit;
    font-size: var(--fs-sm);
    color: var(--text);
    cursor: pointer;
    transition: background 120ms ease, transform 100ms ease-out;
}
.topbar-user-trigger:hover { background: var(--ivory); }
.topbar-user-trigger:active { transform: scale(0.98); }
.topbar-user-label { white-space: nowrap; }
.topbar-chevron {
    display: inline-flex;
    width: 13px;
    height: 13px;
    color: var(--muted);
    transition: transform 160ms ease;
}
.topbar-user-trigger[aria-expanded="true"] .topbar-chevron { transform: rotate(180deg); }
.topbar-user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 26px rgba(15,43,37,0.14);
    padding: 6px;
    z-index: 60;
    transform-origin: top right;
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
    pointer-events: none;
    transition: opacity 140ms ease-out, transform 140ms ease-out;
}
.topbar-user-menu.open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}
.topbar-user-menu a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    color: var(--text);
}
.topbar-user-menu a:hover { background: var(--ivory); text-decoration: none; }

/* ---- Hero banner (dashboard / pipeline board) ---- */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-radius: var(--radius);
    min-height: 220px;
    padding: 36px 42px;
    margin-bottom: 22px;
    background: var(--forest-dark) url('/assets/brand/stride-header.webp') center/cover no-repeat;
    animation: panel-in 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(5,29,22,0.88), rgba(5,29,22,0.56) 46%, rgba(5,29,22,0.08) 80%);
}
.hero-content { max-width: 540px; }
.hero-eyebrow {
    display: block;
    font-size: var(--fs-xs);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 10px;
}
.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 3vw, var(--fs-display));
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #fff;
    font-weight: bold;
}
.hero p {
    margin: 0;
    max-width: 440px;
    color: rgba(255,255,255,0.86);
    font-size: var(--fs-base);
}
.hero.hero-compact { min-height: 136px; padding: 26px 34px; }
.hero.hero-compact h1 { font-size: clamp(1.25rem, 2.4vw, 1.625rem); }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}
.page-header h2 { margin: 0; font-size: var(--fs-lg); }

h2, h3 { letter-spacing: -0.01em; line-height: 1.3; font-weight: bold; }

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 20px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    background: var(--forest);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: var(--fs-sm);
    font-family: inherit;
    transition: background 120ms ease, transform 100ms ease-out, box-shadow 100ms ease-out;
}
.btn:hover { background: var(--forest-dark); text-decoration: none; }
.btn:active {
    transform: scale(0.97);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.18);
}
.btn.secondary { background: #fff; color: var(--forest); border: 1px solid var(--border); }
.btn.secondary:hover { background: var(--ivory); }
.btn.secondary:active { background: #EFEDE3; }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #8A3322; }
.btn.small { padding: 5px 12px; font-size: var(--fs-xs); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }

table { width: 100%; border-collapse: collapse; }
th, td {
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
    font-size: var(--fs-sm);
    vertical-align: top;
}
th { color: var(--muted); font-weight: bold; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em; }
tr:hover td { background: #FBFAF6; }

.badge {
    display: inline-block;
    padding: 2px 11px;
    border-radius: 999px;
    font-size: var(--fs-xs);
    background: var(--border);
    color: var(--muted);
}
.badge.closed-won { background: var(--ok-tint); color: var(--ok); }
.badge.closed-lost { background: var(--danger-tint); color: var(--danger); }
.badge.open { background: var(--mint-tint); color: var(--forest); }
.badge.overdue { background: var(--warn-tint); color: var(--warn); }

/* ---- Avatar chip (initials, cycled through on-brand tints only) ---- */
.avatar-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: var(--fs-xs);
    font-weight: bold;
    letter-spacing: 0.01em;
}
.avatar-chip.sm { width: 24px; height: 24px; font-size: 0.7rem; }
.avatar-chip-mint { background: var(--mint-tint); color: var(--forest); }
.avatar-chip-ok { background: var(--ok-tint); color: var(--ok); }
.avatar-chip-warn { background: var(--warn-tint); color: var(--warn); }
.avatar-chip-danger { background: var(--danger-tint); color: var(--danger); }
.avatar-chip-border { background: var(--border); color: var(--muted); }

form.stacked label {
    display: block;
    margin-bottom: 5px;
    font-size: var(--fs-xs);
    color: var(--muted);
}
form.stacked .field { margin-bottom: 15px; }
form.stacked input[type=text],
form.stacked input[type=email],
form.stacked input[type=tel],
form.stacked input[type=date],
form.stacked input[type=password],
form.stacked input[type=number],
form.stacked select,
form.stacked textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
form.stacked input:focus,
form.stacked select:focus,
form.stacked textarea:focus {
    outline: none;
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(24,61,53,0.14);
}
form.stacked textarea { min-height: 80px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

.flash {
    padding: 11px 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: var(--fs-sm);
    animation: panel-in 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.flash.ok { background: var(--ok-tint); color: var(--ok); }
.flash.error { background: var(--danger-tint); color: var(--danger); }

.muted { color: var(--muted); }

/* ---- Login ---- */
.login-wrap {
    display: flex;
    min-height: 100vh;
    background: var(--ivory);
}
.login-art {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    flex: 1 1 58%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    background: var(--forest-dark) url('/assets/brand/stride-login.webp') center/cover no-repeat;
    animation: panel-in 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.login-art::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, rgba(5,29,22,0.86), rgba(5,29,22,0.48) 55%, rgba(5,29,22,0.06) 82%);
}
.login-art .brand-lockup-art { display: flex; align-items: baseline; gap: 10px; }
.login-art .brand-lockup-art img { height: 26px; width: auto; display: block; }
.login-art .brand-lockup-art .byline {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mint);
    opacity: 0.9;
}
.login-art .headline { max-width: 460px; }
.login-art .headline h1 {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3.6vw, 2.5rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #fff;
    font-weight: bold;
}
.login-art .headline p {
    margin: 0;
    color: rgba(255,255,255,0.86);
    font-size: var(--fs-base);
}
.login-art .footnote {
    font-size: var(--fs-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.62);
}

.login-form-side {
    flex: 1 1 42%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}
.login-box { width: 100%; max-width: 360px; }
.login-box .badge-mark {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--mint-tint);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.login-box .badge-mark img { width: 22px; height: 22px; display: block; }
.login-box h1 { font-size: var(--fs-xl); margin: 0 0 4px; letter-spacing: -0.015em; }
.login-box .tagline {
    color: var(--muted);
    font-size: var(--fs-sm);
    margin: 0 0 26px;
}

.stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.stat {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    min-width: 200px;
    flex: 1 1 200px;
}
.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}
.stat-icon svg { width: 21px; height: 21px; }
.stat-icon-mint { background: var(--mint-tint); color: var(--forest); }
.stat-icon-ok { background: var(--ok-tint); color: var(--ok); }
.stat-icon-warn { background: var(--warn-tint); color: var(--warn); }
.stat-icon-danger { background: var(--danger-tint); color: var(--danger); }
.stat-icon-forest { background: var(--forest); color: #fff; }
.stat-body { min-width: 0; }
.stat .num {
    font-size: var(--fs-xl);
    font-weight: bold;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--forest);
    display: inline-block;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--champagne);
}
.stat .label { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

.welcome {
    background: var(--mint);
    border-radius: var(--radius);
    padding: 26px 28px;
    margin-top: 20px;
}
.welcome h2, .welcome h3 { margin-top: 0; color: var(--forest-dark); }
.welcome p { color: var(--forest-dark); }

.reveal-password {
    border-color: var(--forest);
    background: var(--mint-tint);
    animation: panel-in 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-password-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.reveal-password-value {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.03em;
    background: #fff;
    border: 1px dashed var(--forest);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: inline-block;
    user-select: all;
}

@keyframes panel-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.chart-wrap { position: relative; }

/* ---- Donut chart (by-stage pipeline breakdown) ---- */
.donut-wrap {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.donut-chart-wrap { width: 190px; height: 190px; flex-shrink: 0; margin: 0 auto; }
.donut-total {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    text-align: center;
}
.donut-total-num { font-size: var(--fs-xl); font-weight: bold; letter-spacing: -0.02em; color: var(--forest); line-height: 1.1; }
.donut-total-label { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.donut-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 200px; }
.donut-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-size: var(--fs-sm);
}
.donut-legend-item:last-child { border-bottom: none; }
.donut-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.donut-legend-name { flex: 1; }
.donut-legend-value { color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; }
.donut-legend-pct { color: var(--muted); }

/* ---- Follow-ups list (avatar-chip rows) ---- */
.followup-list { list-style: none; margin: 0; padding: 0; }
.followup-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}
.followup-item:last-child { border-bottom: none; }
.followup-main { flex: 1; min-width: 0; }
.followup-name { font-weight: bold; color: var(--text); display: block; }
.followup-meta { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.followup-due { font-size: var(--fs-xs); color: var(--muted); text-align: right; flex-shrink: 0; white-space: nowrap; }
.followup-due .badge { margin-top: 4px; display: inline-block; }

/* ---- Monthly progress ring ---- */
.progress-ring-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 4px auto 0;
}
.progress-ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-ring-track { fill: none; stroke: var(--border); stroke-width: 10; }
.progress-ring-value {
    fill: none;
    stroke: var(--forest);
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.progress-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.progress-ring-num { font-size: var(--fs-lg); font-weight: bold; letter-spacing: -0.02em; color: var(--forest); line-height: 1.1; }
.progress-ring-of { font-size: 0.7rem; color: var(--muted); margin-top: 1px; }

/* ---- Pipeline board ---- */
.board {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 14px;
    align-items: flex-start;
    scrollbar-width: thin;
    scrollbar-color: var(--muted) transparent;
}
.board::-webkit-scrollbar { height: 9px; }
.board::-webkit-scrollbar-track { background: transparent; }
.board::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.board::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.board-col {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 232px;
    max-width: 232px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    max-height: 74vh;
}
.board-col-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-weight: bold;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}
.board-count {
    background: var(--mint-tint);
    color: var(--forest);
    border-radius: 999px;
    padding: 1px 9px;
    font-size: var(--fs-xs);
    transition: transform 150ms ease-out;
}
.board-count.bump { transform: scale(1.25); }
.board-col-body { padding: 10px; overflow-y: auto; flex: 1; min-height: 60px; transition: background 120ms ease; }
.board-col-body.drag-over { background: var(--mint-tint); }
.board-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 13px;
    margin-bottom: 8px;
    position: relative;
}
.board-card.draggable-card { cursor: grab; touch-action: none; }
.board-card.lifted {
    cursor: grabbing;
    z-index: 50;
    box-shadow: 0 10px 24px rgba(15,43,37,0.2), 0 2px 6px rgba(15,43,37,0.12);
    transition: box-shadow 120ms ease-out;
}
.board-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.board-card-name { font-weight: bold; display: block; color: var(--text); }
.board-card-sub { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.board-card-status { font-size: var(--fs-xs); color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--forest); display: inline-block; flex-shrink: 0; }
.dot.dot-overdue { background: var(--warn); }
.board-empty { font-size: var(--fs-sm); padding: 6px 2px; }

.toast-stack {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    pointer-events: none;
}
.toast {
    background: var(--forest-dark);
    color: #fff;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    box-shadow: 0 6px 18px rgba(15,43,37,0.3);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 180ms ease-out, transform 180ms ease-out;
}
.toast.error { background: var(--danger); }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 700px) {
    .layout { flex-direction: column; }
    .sidebar { width: 100%; padding: 14px 0; }
    .sidebar h1 { margin-bottom: 12px; }
    .sidebar nav { display: flex; overflow-x: auto; flex: none; }
    .sidebar nav a { padding: 8px 14px; white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
    .sidebar nav a.active { border-left-color: transparent; border-bottom-color: var(--mint); }
    .sidebar .who { display: none; }
    .main { padding: 20px; }
    .grid-2 { grid-template-columns: 1fr; }

    .hero { min-height: 170px; padding: 24px 26px; background-position: 68% center; }
    .hero.hero-compact { min-height: 120px; padding: 20px 24px; }
    .hero h1 { font-size: clamp(1.25rem, 5vw, 1.625rem); }

    .login-wrap { flex-direction: column; }
    .login-art { flex: none; min-height: 240px; padding: 28px; background-position: 70% center; }
    .login-art .footnote { display: none; }
    .login-form-side { padding: 30px 20px 46px; }

    .topbar { gap: 10px; }
    .topbar-search { max-width: none; }
    .topbar-user-label { display: none; }
    .topbar-user-trigger { padding: 5px; }
    .stat { min-width: 0; flex: 1 1 calc(50% - 8px); }
    .donut-wrap { gap: 18px; }
    .donut-chart-wrap { width: 150px; height: 150px; }
}

@media (prefers-contrast: more) {
    .hero::before, .login-art::before { background: rgba(5,29,22,0.92); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .btn:active { transform: none; }
    .sidebar nav a:active { transform: none; }
}
