/* ESGware Nexus — design system.
   Tokens on :root (light) and [data-theme="dark"]; the sidebar is always ink. */

:root {
    --bg: #f3f5f9;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --ink: #0d1726;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e3e8f0;
    --line-strong: #cbd5e1;

    --brand: #17d492;
    --brand-strong: #0a8a5f;
    --brand-wash: rgba(23, 212, 146, .12);
    --violet: #6d5efc;
    --violet-wash: rgba(109, 94, 252, .12);
    --amber: #d97706;
    --amber-wash: rgba(217, 119, 6, .12);
    --red: #dc2626;
    --red-wash: rgba(220, 38, 38, .1);
    --blue: #2563eb;
    --blue-wash: rgba(37, 99, 235, .1);
    --slate-wash: rgba(100, 116, 139, .12);

    --side-bg: #070d18;
    --side-bg-2: #0e1727;
    --side-ink: #c4cfdf;
    --side-dim: #6b7a92;

    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
    --shadow-pop: 0 24px 60px rgba(15, 23, 42, .22);
    --side-w: 248px;
    --top-h: 64px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --mono: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, monospace;
    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #080d17;
    --surface: #0f1726;
    --surface-2: #0c1321;
    --ink: #e6edf7;
    --ink-2: #b8c4d6;
    --muted: #8292ab;
    --line: #1c2740;
    --line-strong: #2a3754;
    --brand-strong: #34e3a6;
    --brand-wash: rgba(23, 212, 146, .14);
    --violet: #9a8cff;
    --violet-wash: rgba(154, 140, 255, .14);
    --amber: #f5b041;
    --amber-wash: rgba(245, 176, 65, .14);
    --red: #f87171;
    --red-wash: rgba(248, 113, 113, .13);
    --blue: #7aa7ff;
    --blue-wash: rgba(122, 167, 255, .13);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-pop: 0 30px 70px rgba(0, 0, 0, .6);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.01em; margin: 0; color: var(--ink); }
code, .mono { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.env-banner { position: sticky; top: 0; z-index: 100; background: #b30000; color: #fff; text-align: center; padding: 5px 10px; font-weight: 700; font-size: 12.5px; letter-spacing: .04em; }

/* ------------------------------------------------------------------ shell */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side {
    position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 14px;
    background: radial-gradient(120% 60% at 0% 0%, rgba(23, 212, 146, .12), transparent 60%), linear-gradient(180deg, var(--side-bg), var(--side-bg-2));
    color: var(--side-ink); display: flex; flex-direction: column; gap: 18px; border-right: 1px solid rgba(255, 255, 255, .04);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: conic-gradient(from 210deg, #17d492, #6d5efc, #17d492); box-shadow: 0 6px 18px rgba(23, 212, 146, .35); }
.brand-mark svg { width: 18px; height: 18px; color: #04120c; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 16px; color: #fff; line-height: 1.1; }
.brand-sub { font-size: 11px; color: var(--side-dim); letter-spacing: .08em; text-transform: uppercase; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--side-dim); padding: 0 10px 6px; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--side-ink); font-weight: 500; font-size: 13.5px; position: relative; }
.nav-link svg { width: 17px; height: 17px; opacity: .8; flex-shrink: 0; }
.nav-link:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav-link.is-active { background: rgba(23, 212, 146, .12); color: #fff; }
.nav-link.is-active::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.nav-link.is-active svg { color: var(--brand); opacity: 1; }
.nav-count { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--brand); color: #04120c; border-radius: 999px; padding: 1px 7px; }
.nav-count--warn { background: #f5b041; }
.side-foot { margin-top: auto; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: 12px; color: var(--side-dim); }
.side-foot strong { color: #fff; display: block; font-size: 12.5px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
    position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 14px; padding: 0 28px;
    background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.icon-btn.menu-btn { display: none; }
.palette-trigger {
    flex: 0 1 380px; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; cursor: pointer; text-align: left;
}
.palette-trigger svg { width: 16px; height: 16px; }
.palette-trigger kbd, .kbd { margin-left: auto; font-family: var(--mono); font-size: 11px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; color: var(--muted); background: var(--surface-2); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { border-color: var(--line-strong); color: var(--ink); }

.clock-pill {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 10px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 13px; white-space: nowrap;
}
.clock-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.clock-pill.is-in .dot { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-wash); animation: pulse 2s infinite; }
.clock-pill.is-break .dot { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-wash); }
.clock-pill .timer { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }

.me-menu { position: relative; }
.me-btn { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px; border-radius: 12px; cursor: pointer; color: inherit; font: inherit; }
.me-btn:hover { background: var(--surface); }
.me-meta { text-align: left; line-height: 1.2; white-space: nowrap; }
.palette-trigger span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1200px) { .me-meta { display: none; } }
.me-meta strong { display: block; font-size: 13px; }
.me-meta span { font-size: 11.5px; color: var(--muted); }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 6px; z-index: 40; }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; font: inherit; font-size: 13px; color: var(--ink-2); background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); color: var(--ink); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

.page { padding: 26px 28px 60px; max-width: 1440px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; font-weight: 700; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-strong); }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.crumbs a:hover { color: var(--ink); }

/* ------------------------------------------------------------ primitives */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { font-size: 15px; font-weight: 600; }
.card-head a { font-size: 12.5px; color: var(--brand-strong); font-weight: 600; }
.card-body { padding: 16px 20px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 10px;
    font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { border-color: var(--line-strong); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #03140d; box-shadow: 0 6px 16px rgba(23, 212, 146, .28); }
.btn-primary:hover { background: #14c486; border-color: #14c486; }
.btn-violet { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 6px 16px rgba(109, 94, 252, .3); }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: var(--red-wash); border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 14.5px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--slate-wash); color: var(--ink-2); white-space: nowrap; }
.chip .swatch { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-green { background: var(--brand-wash); color: var(--brand-strong); }
.chip-violet { background: var(--violet-wash); color: var(--violet); }
.chip-amber { background: var(--amber-wash); color: var(--amber); }
.chip-red { background: var(--red-wash); color: var(--red); }
.chip-blue { background: var(--blue-wash); color: var(--blue); }

.prio { display: inline-grid; place-items: center; min-width: 28px; height: 20px; padding: 0 5px; font-size: 11px; font-weight: 800; border-radius: 5px; letter-spacing: .02em; }
.prio-P1 { background: var(--red); color: #fff; }
.prio-P2 { background: var(--amber); color: #fff; }
.prio-P3 { background: var(--blue-wash); color: var(--blue); }
.prio-P4 { background: var(--slate-wash); color: var(--muted); }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-new { background: var(--blue-wash); color: var(--blue); }
.status-triaged { background: var(--violet-wash); color: var(--violet); }
.status-in_progress { background: var(--brand-wash); color: var(--brand-strong); }
.status-waiting_client { background: var(--amber-wash); color: var(--amber); }
.status-resolved { background: var(--brand-wash); color: var(--brand-strong); }
.status-closed, .status-cancelled { background: var(--slate-wash); color: var(--muted); }
.status-pending { background: var(--amber-wash); color: var(--amber); }
.status-approved { background: var(--brand-wash); color: var(--brand-strong); }
.status-declined { background: var(--red-wash); color: var(--red); }

.sla { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; font-family: var(--mono); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.sla svg { width: 12px; height: 12px; }
.sla-ok { color: var(--brand-strong); background: var(--brand-wash); }
.sla-at_risk { color: var(--amber); background: var(--amber-wash); }
.sla-breached { color: var(--red); background: var(--red-wash); }
.sla-met { color: var(--muted); background: var(--slate-wash); }

.avatar { --hue: 160; display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%; font-weight: 700; color: hsl(var(--hue) 70% 22%); background: hsl(var(--hue) 70% 86%); font-family: var(--display); }
[data-theme="dark"] .avatar { color: hsl(var(--hue) 80% 85%); background: hsl(var(--hue) 45% 26%); }
.avatar--xs { width: 22px; height: 22px; font-size: 9.5px; }
.avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.avatar--md { width: 36px; height: 36px; font-size: 13px; }
.avatar--lg { width: 56px; height: 56px; font-size: 19px; }
.avatar--xl { width: 84px; height: 84px; font-size: 28px; }
.avatar-wrap { position: relative; display: inline-flex; }
.presence { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--surface); background: var(--line-strong); }
.presence-in { background: var(--brand); }
.presence-break { background: var(--amber); }
.presence-leave { background: var(--violet); }
.presence-off, .presence-out { background: var(--line-strong); }
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea {
    width: 100%; font: inherit; font-size: 13.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
    border-radius: 10px; padding: 9px 12px; min-height: 38px; transition: border-color .15s, box-shadow .15s;
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-wash); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }
.segmented { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.segmented input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.segmented input:focus-visible + span { outline: 2px solid var(--brand); }

/* tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.row-link { cursor: pointer; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { padding: 10px 14px; font-weight: 600; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--brand); }
.tab .count { font-size: 11px; background: var(--slate-wash); color: var(--ink-2); padding: 0 7px; border-radius: 999px; }
.tab.is-active .count { background: var(--brand-wash); color: var(--brand-strong); }

/* toasts */
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); font-size: 13px; animation: toast-in .25s ease; }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.toast-success svg { color: var(--brand-strong); }
.toast-error { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.toast-error svg { color: var(--red); }
.toast button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; }
.credential { padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--amber); background: var(--amber-wash); margin-bottom: 18px; font-size: 13px; }
.credential code { font-size: 14px; font-weight: 700; user-select: all; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

.empty { text-align: center; padding: 38px 20px; color: var(--muted); }
.empty svg { width: 34px; height: 34px; color: var(--line-strong); margin-bottom: 8px; }
.empty strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 4px; }

/* ------------------------------------------------------------ dashboard */
.hello { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.hero-card {
    position: relative; overflow: hidden; padding: 26px; border-radius: 18px; color: #e8f2ee;
    background: radial-gradient(90% 120% at 100% 0%, rgba(109, 94, 252, .35), transparent 55%), radial-gradient(80% 120% at 0% 100%, rgba(23, 212, 146, .28), transparent 60%), #0a1322;
    border: 1px solid rgba(255, 255, 255, .06); box-shadow: var(--shadow);
}
.hero-card::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(90deg, transparent, #000 60%); pointer-events: none; }
.hero-card > * { position: relative; z-index: 1; }
.hero-card h1 { color: #fff; font-size: 26px; }
.hero-card .date { color: #9fb3c9; font-size: 13px; margin-top: 4px; }
.hero-clock { display: flex; align-items: center; gap: 26px; margin-top: 22px; flex-wrap: wrap; }
.ring { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: rgba(255, 255, 255, .1); }
.ring .fill { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.ring-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring-center strong { font-family: var(--mono); font-size: 22px; color: #fff; display: block; letter-spacing: -.02em; }
.ring-center span { font-size: 11px; color: #9fb3c9; text-transform: uppercase; letter-spacing: .1em; }
.clock-actions { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
.clock-state { font-size: 13px; color: #b9c9da; }
.clock-state strong { color: #fff; }
.hero-card .segmented { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .08); }
.hero-card .segmented span { color: #9fb3c9; }
.hero-card .segmented input:checked + span { background: rgba(255, 255, 255, .14); color: #fff; }
.hero-card .btn:not(.btn-primary) { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .12); color: #fff; }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.kpi:hover { border-color: var(--line-strong); }
.kpi-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi-value { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.1; }
.kpi-foot { font-size: 12px; color: var(--muted); }
.kpi-icon { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-wash); color: var(--brand-strong); }
.kpi-icon svg { width: 16px; height: 16px; }
.kpi--alert .kpi-icon { background: var(--red-wash); color: var(--red); }
.kpi--alert .kpi-value { color: var(--red); }
.kpi--violet .kpi-icon { background: var(--violet-wash); color: var(--violet); }
.kpi--amber .kpi-icon { background: var(--amber-wash); color: var(--amber); }

.week-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 150px; padding-top: 10px; }
.week-bar { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.week-bar .bar-wrap { position: relative; width: 100%; max-width: 38px; flex: 1; display: flex; align-items: flex-end; }
.week-bar .bar-sched { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 8px 8px 4px 4px; border: 1.5px dashed var(--line-strong); background: var(--surface-2); }
.week-bar .bar { position: relative; width: 100%; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--violet))); }
.week-bar.is-today .day { color: var(--ink); font-weight: 700; }
.week-bar .day { font-size: 11.5px; color: var(--muted); }
.week-bar .val { font-size: 11px; font-family: var(--mono); color: var(--ink-2); }
.week-bar.is-off .bar { background: var(--line); }

.presence-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.person-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2); min-width: 0; }
.person-chip:hover { border-color: var(--line-strong); }
.person-chip .who { min-width: 0; }
.person-chip .who strong { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-chip .who span { font-size: 11.5px; color: var(--muted); }
.presence-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.presence-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); min-width: 0; }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { background: var(--surface-2); }
.list-item .main-col { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; font-size: 13.5px; }
.list-item .meta { font-size: 12px; color: var(--muted); }
.date-badge { width: 44px; flex-shrink: 0; text-align: center; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.date-badge span { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; background: var(--brand-wash); color: var(--brand-strong); padding: 2px 0; }
.date-badge strong { display: block; font-family: var(--display); font-size: 17px; padding: 2px 0 4px; }

.meter { height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; display: flex; }
.meter > span { height: 100%; }

/* ---------------------------------------------------------------- time */
.timesheet td.day-cell { width: 170px; }
.timesheet .day-name { font-weight: 600; }
.timesheet .is-today td { background: color-mix(in srgb, var(--brand-wash) 50%, transparent); }
.timesheet .is-weekend td { color: var(--muted); }
.entry-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; margin: 2px 4px 2px 0; cursor: default; }
button.entry-pill { cursor: pointer; font-family: var(--mono); color: var(--ink); }
button.entry-pill:hover { border-color: var(--brand); }
.entry-pill.is-late { border-color: color-mix(in srgb, var(--amber) 55%, var(--line)); }
.entry-pill.is-running { border-color: var(--brand); color: var(--brand-strong); }
.delta-pos { color: var(--brand-strong); }
.delta-neg { color: var(--red); }
.progress-cell { min-width: 140px; }

/* --------------------------------------------------------------- leave */
.balance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 18px; }
.balance { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.balance::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--brand)); }
.balance .name { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.balance .big { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.15; margin-top: 4px; }
.balance .big small { font-size: 13px; color: var(--muted); font-weight: 500; font-family: var(--font); }
.balance .meter { margin: 10px 0 6px; }
.balance .foot { font-size: 11.5px; color: var(--muted); }
.days-preview { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 11px; background: var(--brand-wash); color: var(--brand-strong); font-weight: 600; font-size: 13px; }
.days-preview strong { font-family: var(--display); font-size: 22px; }
.days-preview.is-warn { background: var(--amber-wash); color: var(--amber); }

.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cal-head { padding: 8px 10px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-day { min-height: 112px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day.is-out { background: var(--surface-2); }
.cal-day.is-out .n { opacity: .4; }
.cal-day.is-weekend { background: var(--surface-2); }
.cal-day.is-today .n { background: var(--brand); color: #03140d; }
.cal-day .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 700; }
.cal-holiday { font-size: 11px; font-weight: 600; color: var(--violet); background: var(--violet-wash); border-radius: 6px; padding: 2px 6px; }
.cal-leave { display: flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--ink); min-width: 0; }
.cal-leave::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.cal-leave.is-pending { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, transparent) 0 6px, transparent 6px 10px); border: 1px dashed color-mix(in srgb, var(--c) 60%, transparent); }
.cal-leave span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.approval { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.approval:last-child { border-bottom: 0; }

/* -------------------------------------------------------------- tickets */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters .input, .filters .select { width: auto; min-width: 150px; height: 36px; min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.filters .search { min-width: 260px; }
.ticket-title { font-weight: 600; color: var(--ink); }
.ticket-num { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.jira-key { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--violet); background: var(--violet-wash); padding: 1px 7px; border-radius: 6px; }
.jira-key svg { width: 11px; height: 11px; }
.tier-enterprise { color: var(--violet); }
.tier-premium { color: var(--amber); }

.board { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.column { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; max-height: calc(100vh - 190px); }
.column-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-weight: 700; font-size: 13px; border-bottom: 1px solid var(--line); }
.column-head .count { margin-left: auto; font-size: 11.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; }
.column-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 120px; transition: background .15s; }
.column.is-over .column-body { background: var(--brand-wash); }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: grab; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); display: flex; flex-direction: column; gap: 8px; }
.kcard:hover { border-color: var(--line-strong); }
.kcard.is-dragging { opacity: .45; }
.kcard .t { font-weight: 600; font-size: 13px; line-height: 1.35; }
.kcard .foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.ticket-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.ticket-head h1 { font-size: 22px; line-height: 1.3; max-width: 780px; }
.sla-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.sla-box { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.sla-box .label { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.sla-box .val { font-weight: 700; margin-top: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.report-block { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 18px; font-size: 13.5px; }
.report-block dt { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.report-block dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.report-block ol { margin: 0; padding-left: 18px; }

.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
.msg-bubble { border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; background: var(--surface); overflow: hidden; }
.msg-head { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 12.5px; border-bottom: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.msg-head strong { font-size: 13px; }
.msg-head time { margin-left: auto; color: var(--muted); font-size: 12px; }
.msg-body { padding: 12px 14px; white-space: pre-wrap; word-break: break-word; font-size: 13.5px; color: var(--ink-2); }
.msg--client .msg-bubble { border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); }
.msg--client .msg-head { background: var(--blue-wash); }
.msg--internal .msg-bubble { border-style: dashed; border-color: color-mix(in srgb, var(--amber) 55%, var(--line)); background: color-mix(in srgb, var(--amber-wash) 45%, var(--surface)); }
.msg--internal .msg-head { background: transparent; }
.msg--jira .msg-bubble { border-color: color-mix(in srgb, var(--violet) 45%, var(--line)); }
.msg--jira .msg-head { background: var(--violet-wash); }
.msg--system .msg-bubble { background: var(--surface-2); }
.sys-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-wash); color: var(--violet); }
.sys-avatar svg { width: 17px; height: 17px; }

.composer { border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); overflow: hidden; }
.composer:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-wash); }
.composer.is-internal:focus-within { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-wash); }
.composer-tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.composer-tabs label { position: relative; }
.composer-tabs input { position: absolute; opacity: 0; }
.composer-tabs span { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.composer-tabs input:checked + span { color: var(--ink); border-bottom-color: var(--brand); background: var(--surface); }
.composer-tabs input[value="internal"]:checked + span { border-bottom-color: var(--amber); }
.composer textarea { border: 0; border-radius: 0; box-shadow: none !important; min-height: 120px; }
.composer-foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }

.side-panel { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--top-h) + 16px); }
.prop-list { display: flex; flex-direction: column; gap: 12px; }
.prop { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13px; }
.prop > span:first-child { color: var(--muted); font-size: 12.5px; }
.dev-box { border-radius: 12px; padding: 14px; background: linear-gradient(135deg, var(--violet-wash), transparent); border: 1px solid color-mix(in srgb, var(--violet) 30%, var(--line)); }
.copy-row { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 6px 6px 10px; font-family: var(--mono); font-size: 12px; margin-top: 6px; }
.copy-row code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 12px 20px; font-size: 12.5px; color: var(--ink-2); }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.timeline li::after { content: ''; position: absolute; left: 7px; top: 15px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .when { display: block; font-size: 11.5px; color: var(--muted); }
.timeline .ev-jira::before { background: var(--violet); }
.timeline .ev-status::before { background: var(--brand); }
.timeline .ev-created::before { background: var(--blue); }
.attach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.attach { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--muted); }
.attach img, .attach .file { width: 100%; height: 80px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; font-weight: 700; color: var(--violet); }
details.plain > summary { cursor: pointer; font-weight: 600; font-size: 13px; list-style: none; display: flex; align-items: center; gap: 6px; }
details.plain > summary::-webkit-details-marker { display: none; }
details.plain > summary::before { content: '▸'; color: var(--muted); transition: transform .15s; }
details.plain[open] > summary::before { transform: rotate(90deg); }
.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 12px; font-size: 12.5px; margin-top: 10px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }

/* -------------------------------------------------------------- people */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.person-card { padding: 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.person-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.person-card .name { font-weight: 700; font-size: 14.5px; margin-top: 6px; }
.person-card .role { font-size: 12.5px; color: var(--muted); }
.person-card.is-inactive { opacity: .55; }
.profile-hero { display: flex; gap: 20px; align-items: center; padding: 24px; flex-wrap: wrap; }

/* ------------------------------------------------------------- insights */
.hbar { display: grid; grid-template-columns: 140px minmax(0, 1fr) 60px; gap: 10px; align-items: center; font-size: 12.5px; margin-bottom: 9px; }
.hbar .track { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.hbar .track span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--violet)); }
.hbar .v { text-align: right; font-family: var(--mono); color: var(--ink-2); }
.donut { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; }
.donut > div { width: 84px; height: 84px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; }
.donut strong { font-family: var(--display); font-size: 22px; display: block; }
.donut span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 90px; }
.spark span { flex: 1; background: linear-gradient(180deg, var(--violet), var(--brand)); border-radius: 4px 4px 2px 2px; min-height: 3px; opacity: .85; }

/* --------------------------------------------------------------- palette */
.palette-backdrop { position: fixed; inset: 0; background: rgba(4, 8, 16, .55); backdrop-filter: blur(3px); z-index: 80; display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; }
.palette { width: min(640px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-pop); overflow: hidden; }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.palette-input svg { width: 18px; height: 18px; color: var(--muted); }
.palette-input input { flex: 1; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.palette-results { max-height: 380px; overflow-y: auto; padding: 6px; }
.palette-group { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 10px 10px 4px; }
.palette-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 13.5px; cursor: pointer; }
.palette-item .hint { margin-left: auto; font-size: 12px; color: var(--muted); }
.palette-item.is-active { background: var(--brand-wash); }
.palette-foot { display: flex; gap: 14px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); background: var(--surface-2); }

/* ---------------------------------------------------------------- modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(4, 8, 16, .5); display: grid; place-items: center; padding: 16px; }
.modal { width: min(520px, 100%); background: var(--surface); border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 18px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }

/* --------------------------------------------------------------- auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, 520px); background: var(--bg); }
.auth-art { position: relative; overflow: hidden; padding: 48px; color: #dbe7f3; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(70% 60% at 20% 20%, rgba(23, 212, 146, .28), transparent 60%), radial-gradient(60% 60% at 90% 80%, rgba(109, 94, 252, .35), transparent 60%), #060b15; }
.auth-art::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 36px 36px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.auth-art > * { position: relative; z-index: 1; }
.auth-art h2 { color: #fff; font-size: 40px; line-height: 1.1; max-width: 520px; }
.auth-art p { color: #9fb3c9; max-width: 460px; font-size: 15px; }
.orbit { position: relative; width: 300px; height: 300px; margin: 30px 0; }
.orbit .o { position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; animation: spin 40s linear infinite; }
.orbit .o:nth-child(2) { inset: 45px; animation-duration: 28s; animation-direction: reverse; }
.orbit .o:nth-child(3) { inset: 95px; animation-duration: 18s; }
.orbit .o i { position: absolute; top: -6px; left: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 18px var(--brand); }
.orbit .o:nth-child(2) i { background: var(--violet); box-shadow: 0 0 18px var(--violet); }
.orbit .o:nth-child(3) i { background: #fff; box-shadow: 0 0 14px #fff; width: 8px; height: 8px; top: -4px; }
.orbit .core { position: absolute; inset: 125px; border-radius: 50%; background: conic-gradient(from 0deg, var(--brand), var(--violet), var(--brand)); filter: blur(.3px); box-shadow: 0 0 60px rgba(23, 212, 146, .45); }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-feats { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: #b7c6d8; }
.auth-feats span { display: inline-flex; gap: 8px; align-items: center; }
.auth-feats i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 48px; background: var(--surface); }
.auth-form h1 { font-size: 26px; }
.auth-form form { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.auth-clock { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 8px; }
.alert { padding: 11px 14px; border-radius: 10px; font-size: 13px; }
.alert-error { background: var(--red-wash); color: var(--red); }
.alert-success { background: var(--brand-wash); color: var(--brand-strong); }
.alert-info { background: var(--blue-wash); color: var(--blue); }

.perm-table td, .perm-table th { text-align: center; }
.perm-table td:first-child, .perm-table th:first-child { text-align: left; }
.perm-group td { background: var(--surface-2); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hello, .grid-main, .approval { grid-template-columns: minmax(0, 1fr); }
    .side-panel { position: static; }
}
@media (max-width: 860px) {
    .shell { grid-template-columns: 1fr; }
    .side { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side-w); z-index: 60; transform: translateX(-100%); transition: transform .2s ease; }
    .side.is-open { transform: none; box-shadow: var(--shadow-pop); }
    .icon-btn.menu-btn { display: grid; }
    .top { padding: 0 16px; }
    .page { padding: 18px 16px 50px; }
    .grid-2, .grid-3, .form-grid, .sla-strip, .kpis { grid-template-columns: minmax(0, 1fr); }
    .card-head { flex-wrap: wrap; }
    .me-meta, .palette-trigger span, .palette-trigger kbd { display: none; }
    .palette-trigger { flex: 0 0 38px; padding: 0; justify-content: center; }
    .auth { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .auth-form { padding: 32px 20px; }
    .report-block { grid-template-columns: 1fr; gap: 2px; }
    .report-block dd { margin-bottom: 10px; }
    .cal-day { min-height: 70px; }
    .cal-leave span { display: none; }
    .clock-pill .label { display: none; }
}
