/* ==========================================================================
   EIT MAINT™ — Design system (white · black · EIT green)
   Self-contained, no framework. Light & dark themes via html[data-theme].
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/inter-400.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/inter-500.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/inter-600.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/inter-700.woff') format('woff'); }
@font-face { font-family: 'Inter Display'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/interdisplay-600.woff') format('woff'); }
@font-face { font-family: 'Inter Display'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/interdisplay-700.woff') format('woff'); }
@font-face { font-family: 'Inter Display'; font-weight: 800; font-style: normal; font-display: swap; src: url('../fonts/interdisplay-800.woff') format('woff'); }

/* ---------- Tokens ---------- */
:root {
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Inter Display', 'Inter', ui-sans-serif, system-ui, sans-serif;

  --bg: #F3F6F2;
  --surface: #FFFFFF;
  --surface-2: #F7FAF6;
  --surface-3: #EEF3EC;
  --border: #E2E8E1;
  --border-strong: #C9D2C7;
  --text: #151915;
  --text-2: #4E564F;
  --text-3: #7C857D;
  --ink: #000000;
  --ink-2: #121412;
  --on-ink: #FFFFFF;
  --on-ink-2: rgba(255,255,255,.62);
  --on-ink-3: rgba(255,255,255,.38);
  --ink-line: rgba(255,255,255,.09);

  --brand: #5EAD30;
  --brand-strong: #3C8A1A;
  --brand-deep: #2C6A12;
  --brand-soft: #E8F5DE;
  --brand-soft-2: #D4ECC2;
  --brand-ring: rgba(94,173,48,.32);
  --on-brand: #0B140A;

  --red: #D6433C; --red-soft: #FBE8E7; --red-strong: #B3302A;
  --amber: #D9960F; --amber-soft: #FBF0D6; --amber-strong: #A66F05;
  --blue: #2E6FD0; --blue-soft: #E5EEFB; --blue-strong: #1E52A3;
  --grey: #8A938C; --grey-soft: #EEF1EE;

  --r-xs: 6px; --r-sm: 9px; --r: 13px; --r-lg: 18px; --r-xl: 26px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16,24,18,.05), 0 1px 1px rgba(16,24,18,.03);
  --shadow: 0 1px 2px rgba(16,24,18,.05), 0 10px 30px -16px rgba(16,24,18,.22);
  --shadow-lg: 0 2px 6px rgba(16,24,18,.06), 0 30px 70px -30px rgba(16,24,18,.35);
  --ease: cubic-bezier(.2,.7,.2,1);
  --sidebar-w: 268px; --sidebar-w-c: 78px; --topbar-h: 64px;
}
html[data-theme="dark"] {
  --bg: #0D110E;
  --surface: #141915;
  --surface-2: #192019;
  --surface-3: #1F271F;
  --border: #262E27;
  --border-strong: #3A463B;
  --text: #EDF2EB;
  --text-2: #A9B3AA;
  --text-3: #7A857C;
  --ink: #000000;
  --ink-2: #0A0C0A;
  --brand: #6FC43E;
  --brand-strong: #8FD866;
  --brand-deep: #A6E283;
  --brand-soft: rgba(111,196,62,.13);
  --brand-soft-2: rgba(111,196,62,.24);
  --brand-ring: rgba(111,196,62,.35);
  --on-brand: #06120A;
  --red: #F2706A; --red-soft: rgba(242,112,106,.14); --red-strong: #FF9A95;
  --amber: #E9B346; --amber-soft: rgba(233,179,70,.14); --amber-strong: #F5CC7A;
  --blue: #6A9FEE; --blue-soft: rgba(106,159,238,.14); --blue-strong: #9CC0F7;
  --grey: #8A938C; --grey-soft: rgba(138,147,140,.14);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px -14px rgba(0,0,0,.7);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.5), 0 30px 70px -30px rgba(0,0,0,.9);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01', 'calt'; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--text); }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 16px; } h4 { font-size: 14px; letter-spacing: -0.01em; }
p { margin: 0; } a { color: inherit; text-decoration: none; } img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--brand-soft-2); color: var(--text); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Icons ---------- */
.i { display: inline-block; vertical-align: middle; width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-sm { width: 15px; height: 15px; } .i-lg { width: 22px; height: 22px; } .i-xl { width: 28px; height: 28px; stroke-width: 1.75; }

/* ---------- Utilities ---------- */
.row { display: flex; align-items: center; gap: 10px; } .row-wrap { flex-wrap: wrap; } .col { display: flex; flex-direction: column; gap: 10px; }
.between { justify-content: space-between; } .center { justify-content: center; } .start { align-items: flex-start; } .end { justify-content: flex-end; }
.flex-1 { flex: 1 1 auto; min-width: 0; } .ml-auto { margin-left: auto; } .w-full { width: 100%; } .hidden { display: none !important; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; } .mb-24 { margin-bottom: 24px; }
.p-0 { padding: 0 !important; } .p-12 { padding: 12px; } .p-16 { padding: 16px; } .p-20 { padding: 20px; }
.text-xs { font-size: 11.5px; } .text-sm { font-size: 12.5px; } .text-md { font-size: 14.5px; } .text-lg { font-size: 16px; } .text-xl { font-size: 18px; }
.muted { color: var(--text-2); } .faint { color: var(--text-3); } .strong { font-weight: 600; } .semibold { font-weight: 500; } .caps { text-transform: uppercase; letter-spacing: .04em; }
.brand { color: var(--brand-strong); } .red { color: var(--red); } .amber { color: var(--amber-strong); } .blue { color: var(--blue); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nowrap { white-space: nowrap; } .right { text-align: right; } .tc { text-align: center; }
.grid { display: grid; gap: 16px; } .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-5 { grid-template-columns: repeat(5, minmax(0,1fr)); } .grid-6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .grid-side { grid-template-columns: minmax(0, 1fr) 340px; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .92em; }
.scroll-x { overflow-x: auto; } .scroll-y { overflow-y: auto; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--r-sm); font-weight: 500; font-size: 13.5px; line-height: 1; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: background .18s var(--ease), border-color .18s, color .18s, transform .18s var(--ease), box-shadow .18s; white-space: nowrap; user-select: none; }
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); box-shadow: 0 0 0 3px var(--brand-ring); }
html[data-theme="dark"] .btn-primary { background: #F1F5EF; color: #0B0F0C; border-color: #F1F5EF; }
html[data-theme="dark"] .btn-primary:hover { background: #FFFFFF; border-color: #FFFFFF; }
.btn-brand { background: var(--brand); color: var(--on-brand); border-color: var(--brand); font-weight: 600; }
.btn-brand:hover { background: #6DBF3C; border-color: #6DBF3C; box-shadow: 0 0 0 3px var(--brand-ring); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); border-color: transparent; }
.btn-danger { background: var(--red-soft); color: var(--red-strong); border-color: transparent; }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-soft { background: var(--brand-soft); color: var(--brand-deep); border-color: transparent; }
.btn-soft:hover { background: var(--brand-soft-2); }
.btn-sm { height: 32px; padding: 0 10px; font-size: 12.5px; gap: 6px; } .btn-sm .i { width: 15px; height: 15px; }
.btn-lg { height: 46px; padding: 0 20px; font-size: 15px; border-radius: var(--r); }
.btn-icon { width: 38px; padding: 0; } .btn-icon.btn-sm { width: 32px; }
.btn-pill { border-radius: var(--r-pill); }
.btn-block { width: 100%; }
.btn-group { display: inline-flex; } .btn-group .btn { border-radius: 0; margin-left: -1px; } .btn-group .btn:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); margin-left: 0; } .btn-group .btn:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.btn-group .btn.active { background: var(--ink); color: var(--on-ink); border-color: var(--ink); position: relative; z-index: 1; }
html[data-theme="dark"] .btn-group .btn.active { background: #F1F5EF; color: #0B0F0C; border-color: #F1F5EF; }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; line-height: 1; background: var(--grey-soft); color: var(--text-2); }
.badge .i { width: 12px; height: 12px; stroke-width: 2.4; }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok, .badge-success, .badge-green { background: var(--brand-soft); color: var(--brand-deep); }
.badge-warning, .badge-amber { background: var(--amber-soft); color: var(--amber-strong); }
.badge-critical, .badge-red { background: var(--red-soft); color: var(--red-strong); }
.badge-info, .badge-blue { background: var(--blue-soft); color: var(--blue-strong); }
.badge-ink { background: var(--ink); color: var(--on-ink); } html[data-theme="dark"] .badge-ink { background: #F1F5EF; color: #0B0F0C; }
.badge-outline { background: transparent; border: 1px solid var(--border-strong); color: var(--text-2); }
.badge-lg { height: 26px; padding: 0 10px; font-size: 12.5px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--border-strong); color: var(--text); } .chip.active { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
html[data-theme="dark"] .chip.active { background: #F1F5EF; color: #0B0F0C; border-color: #F1F5EF; }
.chip .count { font-size: 11px; opacity: .7; font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grey); flex: none; display: inline-block; }
.dot-ok { background: var(--brand); } .dot-warning { background: var(--amber); } .dot-critical { background: var(--red); } .dot-info { background: var(--blue); }
.dot-pulse { position: relative; } .dot-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: pulse 1.8s ease-out infinite; color: inherit; }
.dot-critical.dot-pulse::after { border-color: var(--red); } .dot-ok.dot-pulse::after { border-color: var(--brand); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-sm); }
.card-flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-flush .card-head { padding: 16px 20px 0; }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.card-sub { color: var(--text-3); font-size: 12.5px; margin-top: 2px; }
.card-link { transition: border-color .18s, box-shadow .18s, transform .18s var(--ease); display: block; }
.card-link:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.card-ink { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.card-ink .muted, .card-ink .faint { color: var(--on-ink-2); }
.card-brand { background: var(--brand-soft); border-color: transparent; }
.card-soft { background: var(--surface-2); box-shadow: none; }

/* ---------- Stat tiles ---------- */
.stat { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat-label { font-size: 12.5px; color: var(--text-2); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.stat-label .i { width: 15px; height: 15px; color: var(--text-3); }
.stat-value { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 6px; }
.stat-value.stat-text { font-size: 19px; letter-spacing: -0.01em; line-height: 1.2; padding: 4px 0 2px; }
.stat-value small { font-size: 14px; color: var(--text-3); font-weight: 500; letter-spacing: 0; font-family: var(--font); }
.stat-delta { font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 4px; color: var(--text-3); }
.stat-delta.up { color: var(--brand-strong); } .stat-delta.down { color: var(--red); } .stat-delta .i { width: 13px; height: 13px; }
.stat-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.stat-icon.brand { background: var(--brand-soft); color: var(--brand-deep); } .stat-icon.red { background: var(--red-soft); color: var(--red-strong); }
.stat-icon.amber { background: var(--amber-soft); color: var(--amber-strong); } .stat-icon.blue { background: var(--blue-soft); color: var(--blue-strong); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--text-3); padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 13.5px; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; } .table tbody tr:hover { background: var(--surface-2); }
.table tr.clickable { cursor: pointer; }
.table .ref { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.table-compact td { padding: 8px 12px; } .table-compact th { padding: 8px 12px; }
.table th.right, .table td.right { text-align: right; }
.sticky-head thead th { position: sticky; top: 0; z-index: 1; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: 12.5px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.label .req { color: var(--red); } .label .opt { color: var(--text-3); font-weight: 400; }
.hint { font-size: 12px; color: var(--text-3); }
.input, .select, .textarea { width: 100%; height: 40px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s; font-size: 14px; }
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237C857D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; }
.input-icon { position: relative; } .input-icon .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 16px; height: 16px; pointer-events: none; }
.input-icon .input { padding-left: 36px; }
.input-sm { height: 34px; font-size: 13px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; color: var(--text-2); }
.check input { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; }
.switch { position: relative; width: 40px; height: 22px; border-radius: 999px; background: var(--border-strong); transition: background .2s; flex: none; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch.on { background: var(--brand); } .switch.on::after { transform: translateX(18px); }
.radio-cards { display: grid; gap: 10px; } .radio-card { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; transition: all .15s; background: var(--surface); }
.radio-card:hover { border-color: var(--border-strong); } .radio-card.active { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.radio-card .i { width: 20px; height: 20px; margin-top: 1px; }
.segmented { display: inline-flex; background: var(--surface-3); border-radius: var(--r-sm); padding: 3px; gap: 2px; }
.segmented button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 7px; font-size: 12.5px; font-weight: 500; color: var(--text-2); transition: all .15s; }
.segmented button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.dropzone { border: 1.5px dashed var(--border-strong); border-radius: var(--r); padding: 20px; text-align: center; color: var(--text-3); font-size: 13px; transition: all .15s; cursor: pointer; background: var(--surface-2); }
.dropzone:hover, .dropzone.over { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-soft); } .dropzone { display: flex; flex-direction: column; align-items: center; gap: 8px; } .dropzone > .i { width: 26px; height: 26px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab { height: 40px; padding: 0 12px; font-size: 13.5px; font-weight: 500; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; transition: color .15s, border-color .15s; }
.tab:hover { color: var(--text); } .tab.active { color: var(--text); border-bottom-color: var(--brand); }
.tab .count { background: var(--surface-3); border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 600; color: var(--text-2); }
.tab.active .count { background: var(--brand-soft); color: var(--brand-deep); }
.tab-panel { display: none; } .tab-panel.active { display: block; animation: fadeIn .25s var(--ease); }

/* ---------- Avatars ---------- */
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--ink); flex: none; letter-spacing: .02em; font-family: var(--font-display); }
.avatar-sm { width: 26px; height: 26px; font-size: 10px; } .avatar-lg { width: 44px; height: 44px; font-size: 15px; } .avatar-xl { width: 64px; height: 64px; font-size: 22px; }
.avatar.c1 { background: #1F6F3F; } .avatar.c2 { background: #2F5FB3; } .avatar.c3 { background: #7A4EB5; } .avatar.c4 { background: #B35B2F; } .avatar.c5 { background: #2B7F8A; } .avatar.c6 { background: #8A2B5B; } .avatar.c7 { background: #4E6B1F; } .avatar.c8 { background: #5B4EB5; }
.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; }

/* ---------- Progress ---------- */
.progress { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--brand); transition: width .8s var(--ease); }
.progress.amber > span { background: var(--amber); } .progress.red > span { background: var(--red); } .progress.blue > span { background: var(--blue); } .progress.ink > span { background: var(--text); }
.progress-lg { height: 10px; }
.steps { display: flex; align-items: center; gap: 0; }
.steps .step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; position: relative; font-size: 11.5px; color: var(--text-3); text-align: center; }
.steps .step::before { content: ""; position: absolute; top: 11px; left: 50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.steps .step:last-child::before { display: none; }
.steps .step i { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); display: grid; place-items: center; z-index: 1; font-style: normal; font-size: 11px; font-weight: 700; color: var(--text-3); }
.steps .step.done i { background: var(--brand); border-color: var(--brand); color: var(--on-brand); } .steps .step.done::before { background: var(--brand); } .steps .step.done { color: var(--text); font-weight: 500; }
.steps .step.current i { border-color: var(--brand); color: var(--brand-deep); box-shadow: 0 0 0 4px var(--brand-ring); } .steps .step.current { color: var(--text); font-weight: 600; }
.ring { position: relative; display: inline-grid; place-items: center; }
.ring svg { transform: rotate(-90deg); } .ring circle { fill: none; stroke-width: 7; } .ring .bg { stroke: var(--surface-3); } .ring .fg { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.ring.red .fg { stroke: var(--red); } .ring.amber .fg { stroke: var(--amber); } .ring.blue .fg { stroke: var(--blue); }
.ring .ring-label { position: absolute; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.gauge { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--red) 0 20%, var(--amber) 20% 45%, var(--brand) 45% 100%); position: relative; opacity: .9; }
.gauge i { position: absolute; top: -4px; width: 4px; height: 18px; background: var(--text); border-radius: 2px; transform: translateX(-50%); box-shadow: 0 0 0 2px var(--surface); }
.tank { position: relative; width: 100%; height: 120px; border: 2px solid var(--border-strong); border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.tank > span { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, var(--amber) 0%, #C78600 100%); transition: height 1.2s var(--ease); }
.tank > span::before { content: ""; position: absolute; top: -6px; left: -10%; width: 120%; height: 12px; background: var(--amber); border-radius: 50%; opacity: .85; }
.tank.low > span { background: linear-gradient(180deg, var(--red) 0%, #9E2B26 100%); } .tank.low > span::before { background: var(--red); }
.tank .tank-label { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; color: var(--text); mix-blend-mode: multiply; }
html[data-theme="dark"] .tank .tank-label { mix-blend-mode: normal; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline .tl { position: relative; padding-bottom: 18px; }
.timeline .tl:last-child { padding-bottom: 0; }
.timeline .tl-dot { position: absolute; left: -28px; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); display: grid; place-items: center; color: var(--text-2); }
.timeline .tl-dot .i { width: 12px; height: 12px; } .timeline .tl.brand .tl-dot { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-soft); }
.timeline .tl.red .tl-dot { border-color: var(--red); color: var(--red-strong); background: var(--red-soft); }
.timeline .tl-time { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; } .timeline .tl-text { font-size: 13.5px; margin-top: 2px; }

/* ---------- Lists ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; } .list-item:first-child { padding-top: 0; }
.list-item.link { cursor: pointer; margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: var(--r-sm); transition: background .12s; } .list-item.link:hover { background: var(--surface-2); }
.list-title { font-weight: 500; font-size: 13.5px; } .list-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.icon-box { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--text-2); }
.icon-box.brand { background: var(--brand-soft); color: var(--brand-deep); } .icon-box.red { background: var(--red-soft); color: var(--red-strong); } .icon-box.amber { background: var(--amber-soft); color: var(--amber-strong); } .icon-box.blue { background: var(--blue-soft); color: var(--blue-strong); } .icon-box.ink { background: var(--ink); color: var(--on-ink); }
.icon-box.sm { width: 30px; height: 30px; border-radius: 8px; } .icon-box.sm .i { width: 15px; height: 15px; }
.icon-box.lg { width: 48px; height: 48px; border-radius: 12px; }
.empty { text-align: center; padding: 36px 20px; color: var(--text-3); font-size: 13.5px; } .empty .i { width: 32px; height: 32px; margin: 0 auto 10px; stroke-width: 1.5; }
.kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 11px; font-weight: 600; color: var(--text-2); font-family: var(--font); box-shadow: 0 1px 0 var(--border-strong); }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; align-items: start; }
.kanban-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 10px; min-height: 200px; }
.kanban-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.kanban-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px; margin-bottom: 8px; box-shadow: var(--shadow-sm); cursor: grab; transition: box-shadow .15s, transform .15s var(--ease); display: block; }
.kanban-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); } .kanban-card.dragging { opacity: .5; }
.kanban-col.over { outline: 2px dashed var(--brand); outline-offset: -4px; }

/* ---------- Floor plan ---------- */
.floorplan { width: 100%; height: auto; font-family: var(--font); }
.floorplan .room { cursor: pointer; transition: filter .15s; outline: none; }
.floorplan .room:focus, .floorplan .room:focus-visible { outline: none; }
.floorplan .room rect { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: .35; transition: fill .15s; }
.floorplan .room.ok rect { fill: var(--surface-2); } .floorplan .room.warning rect { fill: var(--amber-soft); stroke: var(--amber); } .floorplan .room.critical rect { fill: var(--red-soft); stroke: var(--red); }
.floorplan .room.corridor rect { fill: var(--surface-3); } .floorplan .room.green rect { fill: var(--brand-soft); stroke: var(--brand); }
.floorplan .room:hover rect { stroke: var(--text-2); stroke-width: .3; filter: brightness(.97); }
.floorplan .room.selected rect { stroke: var(--brand-strong); stroke-width: .4; filter: brightness(.97); }
html[data-theme="dark"] .floorplan .room:hover rect, html[data-theme="dark"] .floorplan .room.selected rect { filter: brightness(1.15); }
.floorplan .room text { fill: var(--text); font-size: 2.1px; font-weight: 600; pointer-events: none; }
.floorplan .room text.sub { fill: var(--text-3); font-size: 1.6px; font-weight: 500; }
.floorplan .room circle { fill: var(--red); } .floorplan .room.warning circle { fill: var(--amber); }
.floorplan .room .cnt { fill: #fff; font-size: 2px; font-weight: 700; text-anchor: middle; }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(8,12,9,.55); backdrop-filter: blur(4px); z-index: 90; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-bg.open { display: flex; animation: fadeIn .2s var(--ease); }
.modal { width: min(640px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); animation: modalIn .28s var(--ease); }
.modal-lg { width: min(900px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.modal-body { padding: 18px 22px; } .modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 22px 20px; }

/* ---------- Toast ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.toast { display: flex; align-items: flex-start; gap: 12px; background: var(--ink); color: var(--on-ink); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow-lg); animation: toastIn .35s var(--ease); font-size: 13.5px; border-left: 3px solid var(--brand); }
.toast.red { border-left-color: var(--red); } .toast.amber { border-left-color: var(--amber); } .toast.blue { border-left-color: var(--blue); }
.toast .i { width: 18px; height: 18px; margin-top: 1px; color: var(--brand); } .toast.red .i { color: var(--red); } .toast.amber .i { color: var(--amber); } .toast.blue .i { color: var(--blue); }
.toast .t-title { font-weight: 600; } .toast .t-text { color: var(--on-ink-2); font-size: 12.5px; margin-top: 1px; }
html[data-theme="dark"] .toast { background: #F1F5EF; color: #0B0F0C; } html[data-theme="dark"] .toast .t-text { color: rgba(0,0,0,.6); }

/* ---------- Dropdown ---------- */
.dd { position: relative; }
.dd-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; display: none; animation: ddIn .18s var(--ease); }
.dd.open .dd-menu { display: block; }
.dd-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; color: var(--text); width: 100%; text-align: left; transition: background .12s; }
.dd-item:hover { background: var(--surface-2); } .dd-item .i { width: 16px; height: 16px; color: var(--text-2); }
.dd-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.dd-label { padding: 6px 10px 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
.dd-wide { min-width: 360px; }

/* ---------- Tooltip ---------- */
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 5px 9px; border-radius: 6px; font-size: 11.5px; white-space: nowrap; z-index: 70; pointer-events: none; animation: fadeIn .15s; }

/* ==========================================================================
   APP SHELL
   ========================================================================== */
.app { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: var(--ink); color: var(--on-ink); position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 50; transition: width .25s var(--ease), transform .25s var(--ease); }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 18px 20px; height: var(--topbar-h); border-bottom: 1px solid var(--ink-line); }
.sidebar-brand img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.sidebar-brand .b-name { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: -0.01em; line-height: 1.1; white-space: nowrap; }
.sidebar-brand .b-sub { font-size: 10.5px; color: var(--on-ink-3); white-space: nowrap; margin-top: 2px; letter-spacing: .02em; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 12px 20px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.nav-group { margin-top: 14px; } .nav-group:first-child { margin-top: 2px; }
.nav-label { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-3); padding: 4px 10px 6px; white-space: nowrap; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; color: var(--on-ink-2); font-size: 13.5px; font-weight: 500; position: relative; transition: background .15s, color .15s; white-space: nowrap; }
.nav-item .i { width: 18px; height: 18px; stroke-width: 1.9; flex: none; }
.nav-item:hover { background: rgba(255,255,255,.06); color: var(--on-ink); }
.nav-item.active { background: rgba(255,255,255,.10); color: var(--on-ink); }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.nav-item .nav-badge { margin-left: auto; background: var(--brand); color: var(--on-brand); font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 1px 7px; min-width: 20px; text-align: center; }
.nav-item .nav-badge.red { background: var(--red); color: #fff; }
.sidebar-foot { border-top: 1px solid var(--ink-line); padding: 12px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 10px; transition: background .15s; cursor: pointer; }
.sidebar-user:hover { background: rgba(255,255,255,.06); }
.sidebar-user .avatar { background: var(--brand); color: var(--on-brand); }
.sidebar-user .u-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sidebar-user .u-role { font-size: 11px; color: var(--on-ink-3); white-space: nowrap; }
.sidebar-collapse { display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: var(--on-ink-3); font-size: 12.5px; border-radius: 9px; width: 100%; transition: all .15s; }
.sidebar-collapse:hover { background: rgba(255,255,255,.06); color: var(--on-ink); }
html[data-sidebar="collapsed"] .sidebar { width: var(--sidebar-w-c); }
html[data-sidebar="collapsed"] .sidebar .b-name, html[data-sidebar="collapsed"] .sidebar .b-sub, html[data-sidebar="collapsed"] .nav-label, html[data-sidebar="collapsed"] .nav-item span, html[data-sidebar="collapsed"] .nav-badge, html[data-sidebar="collapsed"] .sidebar-user div, html[data-sidebar="collapsed"] .sidebar-collapse span { display: none; }
html[data-sidebar="collapsed"] .sidebar-brand { justify-content: center; padding: 14px; } html[data-sidebar="collapsed"] .nav-item { justify-content: center; padding: 11px 0; } html[data-sidebar="collapsed"] .nav-group { margin-top: 8px; border-top: 1px solid var(--ink-line); padding-top: 8px; }
html[data-sidebar="collapsed"] .sidebar-user { justify-content: center; } html[data-sidebar="collapsed"] .sidebar-collapse { justify-content: center; } html[data-sidebar="collapsed"] .sidebar-collapse .i { transform: rotate(180deg); }
.main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); transition: margin .25s var(--ease); display: flex; flex-direction: column; min-height: 100vh; }
html[data-sidebar="collapsed"] .main { margin-left: var(--sidebar-w-c); }
.topbar { height: var(--topbar-h); position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 0 24px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); min-width: 0; }
.crumbs a:hover { color: var(--text); } .crumbs .i { width: 14px; height: 14px; } .crumbs .cur { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-search { flex: 1; max-width: 360px; min-width: 0; margin-left: auto; } .topbar-search button > span:first-of-type { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-search button { width: 100%; height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-3); font-size: 13px; transition: border-color .15s, box-shadow .15s; text-align: left; }
.topbar-search button:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); } .topbar-search .kbd { margin-left: auto; white-space: nowrap; flex: none; }
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.topbar .btn-icon { position: relative; } .topbar .ping { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--surface); }
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.lang-switch a { padding: 0 9px; height: 36px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; color: var(--text-3); transition: all .15s; letter-spacing: .02em; }
.lang-switch a.active { background: var(--ink); color: var(--on-ink); } html[data-theme="dark"] .lang-switch a.active { background: #F1F5EF; color: #0B0F0C; }
.lang-switch a:hover:not(.active) { color: var(--text); background: var(--surface-2); }
.content { padding: 24px 24px 60px; max-width: 1480px; width: 100%; animation: pageIn .45s var(--ease); }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; letter-spacing: -0.025em; } .page-head .sub { color: var(--text-2); font-size: 13.5px; margin-top: 4px; max-width: 70ch; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.demo-bar { display: flex; align-items: center; gap: 10px; background: var(--brand-soft); color: var(--brand-deep); font-size: 12px; font-weight: 500; padding: 6px 24px; border-bottom: 1px solid var(--brand-soft-2); }
.demo-bar .i { width: 14px; height: 14px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 28px 0 14px; } .section-title h2 { font-size: 17px; }
.section-title .line { flex: 1; height: 1px; background: var(--border); }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 45; }

/* ---------- Command palette ---------- */
.cmdk { position: fixed; inset: 0; z-index: 95; display: none; align-items: flex-start; justify-content: center; padding: 12vh 20px; background: rgba(8,12,9,.5); backdrop-filter: blur(4px); }
.cmdk.open { display: flex; animation: fadeIn .15s; }
.cmdk-box { width: min(620px, 100%); background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; animation: modalIn .22s var(--ease); }
.cmdk-input { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); } .cmdk-input input { flex: 1; border: 0; background: none; font-size: 15px; outline: none; }
.cmdk-list { max-height: 360px; overflow-y: auto; padding: 8px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; font-size: 13.5px; cursor: pointer; }
.cmdk-item:hover, .cmdk-item.active { background: var(--surface-2); } .cmdk-item .i { color: var(--text-3); width: 16px; height: 16px; } .cmdk-item .sub { margin-left: auto; font-size: 11.5px; color: var(--text-3); }

/* ==========================================================================
   PUBLIC PAGES
   ========================================================================== */
.pub { background: var(--surface); min-height: 100vh; }
.pub-nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.pub-nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.wrap { width: min(1180px, 100% - 48px); margin: 0 auto; }
.brand-lock { display: flex; align-items: center; gap: 11px; } .brand-lock img { width: 38px; height: 38px; border-radius: 50%; }
.brand-lock .b-name { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -0.02em; line-height: 1; } .brand-lock .b-sub { font-size: 11px; color: var(--text-3); margin-top: 3px; white-space: nowrap; }
.pub-links { display: flex; gap: 4px; margin-left: 12px; } .pub-links a { white-space: nowrap; padding: 8px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--text-2); transition: all .15s; } .pub-links a:hover { color: var(--text); background: var(--surface-3); }
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--brand-deep); background: var(--brand-soft); padding: 6px 12px 6px 8px; border-radius: 999px; }
.hero-kicker .dot { background: var(--brand); }
.hero h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin-top: 22px; max-width: 14ch; }
.hero h1 .accent { color: var(--brand-strong); }
.hero-sub { font-size: 17px; color: var(--text-2); margin-top: 22px; max-width: 54ch; line-height: 1.55; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); }
.hero-stats div b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; } .hero-stats div span { font-size: 12.5px; color: var(--text-3); }
.hero-rise > * { animation: rise .7s var(--ease) both; } .hero-rise > *:nth-child(1) { animation-delay: .05s } .hero-rise > *:nth-child(2) { animation-delay: .15s } .hero-rise > *:nth-child(3) { animation-delay: .25s } .hero-rise > *:nth-child(4) { animation-delay: .35s } .hero-rise > *:nth-child(5) { animation-delay: .45s }

/* Live operations board (hero visual) */
.board { background: var(--ink); color: var(--on-ink); border-radius: var(--r-xl); padding: 18px; box-shadow: var(--shadow-lg); position: relative; animation: boardIn .9s var(--ease) both .2s; }
.board::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(94,173,48,.6), rgba(255,255,255,.08) 40%, rgba(255,255,255,.02)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; -webkit-mask-composite: xor; pointer-events: none; }
.board-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 12px; }
.board-head .b-title { font-size: 12.5px; font-weight: 600; color: var(--on-ink-2); } .board-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--brand); letter-spacing: .04em; text-transform: uppercase; }
.board-live .dot { background: var(--brand); width: 7px; height: 7px; animation: blink 1.6s infinite; }
.board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.board-tile { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 12px 14px; }
.board-tile .k { font-size: 11px; color: var(--on-ink-3); font-weight: 500; } .board-tile .v { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; line-height: 1; }
.board-tile .v small { font-size: 12px; font-weight: 500; color: var(--on-ink-2); margin-left: 4px; letter-spacing: 0; }
.board-feed { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; height: 214px; overflow: hidden; position: relative; }
.board-feed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(transparent, var(--ink)); pointer-events: none; }
.feed-item { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 9px 12px; font-size: 12.5px; animation: feedIn .5s var(--ease); }
.feed-item .icon-box { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.08); color: var(--on-ink); } .feed-item .icon-box .i { width: 15px; height: 15px; }
.feed-item .icon-box.red { background: rgba(214,67,60,.25); color: #FF8E88; } .feed-item .icon-box.brand { background: rgba(94,173,48,.25); color: #9CE070; } .feed-item .icon-box.amber { background: rgba(217,150,15,.25); color: #FFD27A; }
.feed-item .f-t { font-weight: 600; } .feed-item .f-s { color: var(--on-ink-3); font-size: 11.5px; } .feed-item .f-time { margin-left: auto; color: var(--on-ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.board-sla { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 12px 14px; }
.board-sla .ring .bg { stroke: rgba(255,255,255,.1); } .board-sla .ring .fg { stroke: var(--brand); } .board-sla .ring-label { color: var(--on-ink); font-size: 13px; }
.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-2); padding: 14px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .chip { height: 36px; font-size: 13px; cursor: default; background: var(--surface); }
.marquee .chip .i { width: 15px; height: 15px; color: var(--brand-strong); }
.section { padding: 76px 0; } .section-alt { background: var(--bg); }
.section-head { max-width: 62ch; margin-bottom: 40px; } .section-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; } .section-head p { color: var(--text-2); font-size: 16px; margin-top: 14px; line-height: 1.55; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.flow-step { position: relative; padding: 22px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.flow-step .n { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 13px; margin-bottom: 14px; }
.flow-step:nth-child(5) .n, .flow-step:nth-child(6) .n { background: var(--brand); color: var(--on-brand); }
.flow-step h3 { font-size: 16px; margin-bottom: 6px; } .flow-step p { color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.module { padding: 22px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); transition: border-color .18s, box-shadow .18s, transform .18s var(--ease); }
.module:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.module .icon-box { margin-bottom: 14px; } .module h3 { font-size: 15.5px; margin-bottom: 6px; } .module p { color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.contract { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contract-item { padding: 22px; border-radius: var(--r-lg); background: var(--ink); color: var(--on-ink); }
.contract-item:nth-child(2) { background: var(--brand); color: var(--on-brand); } .contract-item:nth-child(2) p { color: rgba(0,0,0,.65); }
.contract-item .i { width: 22px; height: 22px; margin-bottom: 14px; color: var(--brand); } .contract-item:nth-child(2) .i { color: var(--on-brand); }
.contract-item h3 { font-size: 16px; margin-bottom: 8px; color: inherit; } .contract-item p { color: var(--on-ink-2); font-size: 13.5px; line-height: 1.55; }
.roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.role-card { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); transition: all .18s; }
.role-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.role-card h3 { font-size: 15px; } .role-card p { color: var(--text-2); font-size: 13px; margin-top: 4px; line-height: 1.5; }
.cta-band { background: var(--ink); color: var(--on-ink); border-radius: var(--r-xl); padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(94,173,48,.35), transparent 70%); pointer-events: none; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; color: inherit; } .cta-band p { color: var(--on-ink-2); margin-top: 10px; font-size: 15px; max-width: 48ch; }
.pub-footer { border-top: 1px solid var(--border); padding: 36px 0; font-size: 13px; color: var(--text-3); }
.pub-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pub-footer nav { display: flex; gap: 18px; } .pub-footer nav a:hover { color: var(--text); }

/* Auth pages */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-visual { background: var(--ink); color: var(--on-ink); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 10% 100%, rgba(94,173,48,.28), transparent 60%), radial-gradient(600px 400px at 100% 0%, rgba(255,255,255,.06), transparent 60%); }
.auth-visual > * { position: relative; }
.auth-visual h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; color: inherit; max-width: 16ch; }
.auth-visual p { color: var(--on-ink-2); font-size: 15px; margin-top: 16px; max-width: 46ch; line-height: 1.55; }
.auth-points { display: grid; gap: 12px; margin-top: 32px; } .auth-point { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--on-ink-2); } .auth-point .i { color: var(--brand); width: 18px; height: 18px; margin-top: 1px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 28px; background: var(--bg); }
.auth-card { width: min(440px, 100%); } .auth-card h1 { font-size: 28px; letter-spacing: -0.03em; } .auth-card .sub { color: var(--text-2); font-size: 14px; margin-top: 8px; line-height: 1.5; }
.auth-card form { margin-top: 26px; display: grid; gap: 16px; }
.demo-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-role { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); font-size: 12.5px; font-weight: 500; text-align: left; transition: all .15s; }
.demo-role:hover { border-color: var(--brand); background: var(--brand-soft); } .demo-role .i { width: 16px; height: 16px; color: var(--brand-strong); }
.pw-meter { display: flex; gap: 4px; } .pw-meter i { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-3); } .pw-meter i.on { background: var(--brand); }
.auth-footer { margin-top: 28px; font-size: 12px; color: var(--text-3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-footer nav { display: flex; gap: 12px; }

/* Legal / help pages */
.doc { width: min(860px, 100% - 48px); margin: 0 auto; padding: 56px 0 90px; }
.doc h1 { font-size: 36px; letter-spacing: -0.03em; } .doc .lead { color: var(--text-2); font-size: 16px; margin-top: 12px; }
.doc h2 { font-size: 20px; margin: 36px 0 10px; } .doc h3 { font-size: 15.5px; margin: 22px 0 6px; }
.doc p, .doc li { font-size: 14.5px; line-height: 1.65; color: var(--text-2); } .doc ul { padding-left: 18px; list-style: disc; margin: 8px 0; } .doc li { margin: 4px 0; }
.doc-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
.doc-toc { position: sticky; top: 90px; align-self: start; font-size: 13px; } .doc-toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--border); color: var(--text-3); } .doc-toc a:hover { color: var(--text); border-color: var(--brand); }
.faq details { border: 1px solid var(--border); border-radius: var(--r); padding: 14px 18px; margin-bottom: 8px; background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; color: var(--text-3); font-size: 18px; } .faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; }

/* QR public page */
.qr-page { min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; align-items: center; padding: 24px 16px 60px; }
.qr-card { width: min(520px, 100%); }
.qr-place { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r); background: var(--brand-soft); border: 1px solid var(--brand-soft-2); }
.qr-place .icon-box { background: var(--brand); color: var(--on-brand); }

/* Label sheet (print) */
.labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.label-card { border: 1.5px solid var(--ink); border-radius: 14px; padding: 14px; display: flex; gap: 12px; align-items: center; background: #fff; color: #000; break-inside: avoid; }
.label-card .l-qr svg { width: 92px; height: 92px; } .label-card .l-name { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: -0.01em; line-height: 1.1; }
.label-card .l-sub { font-size: 11px; color: #555; margin-top: 3px; } .label-card .l-code { font-family: ui-monospace, monospace; font-size: 11px; margin-top: 6px; font-weight: 600; }
.label-card .l-brand { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: #333; margin-top: 8px; font-weight: 600; } .label-card .l-brand img { width: 16px; height: 16px; border-radius: 50%; }
.label-card .l-scan { font-size: 10px; color: var(--brand-deep); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-top: 6px; }

/* Charts */
.chart { width: 100%; display: block; } .chart text { font-family: var(--font); fill: var(--text-3); font-size: 11px; }
.chart .grid-line { stroke: var(--border); stroke-dasharray: 2 3; } .chart .axis { stroke: var(--border-strong); }
.chart .bar { transition: opacity .15s; } .chart .bar:hover { opacity: .8; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); } .legend span { display: inline-flex; align-items: center; gap: 6px; } .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sparkline { width: 100%; height: 36px; }

/* Gantt */
.gantt { display: grid; grid-template-columns: 240px repeat(12, 1fr); font-size: 12px; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.gantt > div { padding: 8px 10px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); min-height: 36px; display: flex; align-items: center; }
.gantt > div:nth-child(13n) { border-right: 0; }
.gantt .g-head { background: var(--surface-2); font-weight: 600; color: var(--text-2); justify-content: center; font-size: 11.5px; } .gantt .g-head:first-child { justify-content: flex-start; }
.gantt .g-label { font-weight: 500; background: var(--surface); } .gantt .g-cell { justify-content: center; background: var(--surface); }
.gantt .g-cell i { width: 100%; height: 14px; border-radius: 4px; background: var(--brand-soft-2); } .gantt .g-cell i.deep { background: var(--brand); } .gantt .g-cell i.cont { background: var(--brand-soft); } .gantt .g-cell i.now { background: var(--amber); }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.cal-head { background: var(--surface-2); padding: 8px 10px; font-size: 11.5px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); }
.cal-day { min-height: 118px; min-width: 0; padding: 8px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.cal-day.today { background: var(--brand-soft); } .cal-day .d { font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 2px; } .cal-day.today .d { color: var(--brand-deep); }
.cal-day.other { background: var(--surface-2); } .cal-day.other .d { color: var(--text-3); }
.cal-ev { display: block; min-width: 0; font-size: 11px; padding: 3px 7px; border-radius: 5px; background: var(--surface-3); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--brand); cursor: pointer; }
.cal-ev.cm { border-left-color: var(--blue); } .cal-ev.critical { border-left-color: var(--red); background: var(--red-soft); } .cal-ev.late { border-left-color: var(--amber); background: var(--amber-soft); } .cal-ev.oncall { border-left-color: var(--text-3); background: var(--surface-2); color: var(--text-2); }
.cal-ev .t { font-weight: 600; margin-right: 4px; font-variant-numeric: tabular-nums; }
.week { display: grid; grid-template-columns: 70px repeat(7, 1fr); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; font-size: 12px; }
.week > div { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 6px 8px; min-height: 40px; background: var(--surface); }
.week .w-head { background: var(--surface-2); font-weight: 600; color: var(--text-2); text-align: center; } .week .w-time { color: var(--text-3); font-size: 11px; background: var(--surface-2); }
.week .w-ev { display: block; background: var(--brand-soft); border-left: 3px solid var(--brand); border-radius: 5px; padding: 4px 7px; font-size: 11px; margin-bottom: 4px; cursor: pointer; line-height: 1.3; }
.week .w-ev.cm { background: var(--blue-soft); border-left-color: var(--blue); } .week .w-ev.critical { background: var(--red-soft); border-left-color: var(--red); } .week .w-ev b { display: block; font-weight: 600; }

/* KPI grid */
.kpi-table td.score { font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi-scale { display: inline-flex; gap: 3px; } .kpi-scale i { width: 14px; height: 14px; border-radius: 3px; background: var(--surface-3); } .kpi-scale i.on { background: var(--brand); }
.kpi-scale.s1 i.on, .kpi-scale.s2 i.on { background: var(--red); } .kpi-scale.s3 i.on { background: var(--amber); }
.kpi-group-row td { background: var(--surface-2); font-weight: 700; }
.kpi-thresholds { display: grid; gap: 8px; } .kpi-thresholds div { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 8px 12px; border-radius: 8px; }
.kpi-thresholds .ok { background: var(--brand-soft); color: var(--brand-deep); } .kpi-thresholds .warn { background: var(--amber-soft); color: var(--amber-strong); } .kpi-thresholds .pen { background: var(--red-soft); color: var(--red-strong); }

/* Role matrix */
.matrix td .i { width: 16px; height: 16px; } .matrix td .ok { color: var(--brand-strong); } .matrix td .no { color: var(--border-strong); }

/* Settings nav */
.settings-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 88px; align-self: start; }
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.settings-nav a:hover { background: var(--surface); color: var(--text); } .settings-nav a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.settings-nav a .i { width: 16px; height: 16px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.setting-row:last-child { border-bottom: 0; } .setting-row .s-title { font-weight: 500; font-size: 13.5px; } .setting-row .s-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }

/* Stagger reveal */
.stagger > * { animation: rise .55s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: .02s } .stagger > *:nth-child(2) { animation-delay: .07s } .stagger > *:nth-child(3) { animation-delay: .12s } .stagger > *:nth-child(4) { animation-delay: .17s } .stagger > *:nth-child(5) { animation-delay: .22s } .stagger > *:nth-child(6) { animation-delay: .27s } .stagger > *:nth-child(7) { animation-delay: .32s } .stagger > *:nth-child(8) { animation-delay: .37s }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); } .reveal.in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
@keyframes boardIn { from { opacity: 0; transform: translateY(24px) scale(.98) } to { opacity: 1; transform: none } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98) } to { opacity: 1; transform: none } }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px) } to { opacity: 1; transform: none } }
@keyframes ddIn { from { opacity: 0; transform: translateY(-4px) } to { opacity: 1; transform: none } }
@keyframes feedIn { from { opacity: 0; transform: translateY(-10px) } to { opacity: 1; transform: none } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9 } 100% { transform: scale(1.8); opacity: 0 } }
@keyframes blink { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes shimmer { from { background-position: 200% 0 } to { background-position: -200% 0 } }
@keyframes spin { to { transform: rotate(360deg) } }
.spin { animation: spin 1s linear infinite; }

/* ---------- Responsive ---------- */

.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; } .check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); } .check-list .i { width: 16px; height: 16px; color: var(--brand-deep); flex: none; margin-top: 2px; }
.steps.vertical { flex-direction: column; align-items: stretch; gap: 0; } .steps.vertical .step { flex-direction: row; align-items: flex-start; text-align: left; gap: 12px; padding: 8px 0; font-size: 13px; } .steps.vertical .step::before { top: 32px; left: 11px; width: 2px; height: calc(100% - 20px); } .steps.vertical .step .n { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); display: grid; place-items: center; z-index: 1; font-size: 11px; font-weight: 700; flex: none; color: var(--text-2); } .steps.vertical .step.done .n { background: var(--brand); border-color: var(--brand); color: var(--on-brand); } .steps.vertical .step.done::before { background: var(--brand); } .steps.vertical .step.current .n { border-color: var(--brand); color: var(--brand-deep); box-shadow: 0 0 0 4px var(--brand-ring); }
/* ---------- V2.1 : périmètre, listes paginées, sous-onglets, revue, étoiles ---------- */
.scope-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); max-width: 250px; font-size: 12px; color: var(--text-2); }
.scope-chip > .i { width: 16px; height: 16px; color: var(--brand-deep); flex: none; }
.scope-chip span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; text-align: left; }
.scope-chip b { color: var(--text); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scope-chip small { font-size: 10.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scope-chip.as-btn { cursor: pointer; transition: border-color .15s, background .15s; } .scope-chip.as-btn:hover { border-color: var(--brand); background: var(--brand-soft); }
.table-scroll { overflow: auto; max-height: var(--th, 480px); border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); }
.table-scroll .table { margin: 0; } .table-scroll thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); box-shadow: inset 0 -1px 0 var(--border); }
.table-scroll tbody tr.pg-hide, tr.hidden-sel { display: none; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px 0; flex-wrap: wrap; }
.pager-pages { display: inline-flex; gap: 2px; } .pager-pages button { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 7px; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.pager-pages button:hover { background: var(--surface-3); color: var(--text); } .pager-pages button.active { background: var(--text); color: var(--surface); }
.pager-pages .ell { display: inline-grid; place-items: center; min-width: 22px; color: var(--text-3); }
.tabs-sub { position: sticky; top: 0; z-index: 3; background: var(--bg); padding-top: 2px; }
.tabs-sub .tab .i { width: 15px; height: 15px; }
.stat-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.stat-row .card { padding: 14px 16px; } .stat-row .stat-value { font-size: 26px; } .stat-row .stat-value.stat-text, .stat-value.stat-text { font-size: 18px; }
.stars { display: inline-flex; align-items: center; gap: 2px; } .stars .star { width: 18px; height: 18px; color: var(--border-strong); display: inline-grid; place-items: center; } .stars .star .i { width: 17px; height: 17px; fill: transparent; }
.stars .star.on { color: var(--amber); } .stars .star.on .i { fill: var(--amber); }
.stars.interactive .star { cursor: pointer; transition: transform .12s; } .stars.interactive .star:hover { transform: scale(1.2); } .stars.interactive b { margin-left: 8px; font-size: 13px; min-width: 24px; }
.stars.lg .star { width: 26px; height: 26px; } .stars.lg .star .i { width: 24px; height: 24px; }
.upload-list:empty { display: none; } .upload-list { display: flex; flex-direction: column; gap: 4px; width: 100%; margin-top: 8px; }
.upload-list div { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--surface-2); border-radius: 7px; } .upload-list .i { width: 14px; height: 14px; color: var(--brand-deep); }
/* revue client : présentation */
.deck { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.deck.full { position: fixed; inset: 0; z-index: 90; border-radius: 0; border: 0; }
.slide { display: none; padding: 44px 56px 60px; min-height: 520px; } .slide.active { display: block; animation: slideIn .4s var(--ease); }
.deck.full .slide { min-height: 100vh; padding: 64px 9vw 90px; }
@keyframes slideIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.slide-kicker { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.slide h2 { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 20px; }
.deck.full .slide h2 { font-size: 42px; }
.slide .big { font-family: var(--font-display); font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.slide-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 20px; border-top: 1px solid var(--border); background: var(--surface); }
.slide-dots { display: flex; gap: 6px; flex: 1; justify-content: center; } .slide-dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); transition: all .2s; } .slide-dots button.active { background: var(--brand); width: 22px; border-radius: 4px; }
.slide-bar { position: absolute; top: 0; left: 0; height: 3px; background: var(--brand); transition: width .35s var(--ease); }
.deck .slide-foot .btn { height: 34px; }
.slide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .slide-grid.two { grid-template-columns: repeat(2, 1fr); }
.slide-stat { padding: 18px 20px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); } .slide-stat .v { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 6px; } .slide-stat .l { font-size: 13px; color: var(--text-2); }
.slide-stat.ink { background: var(--text); color: var(--surface); border-color: var(--text); } .slide-stat.ink .l { color: rgba(255,255,255,.7); } .slide-stat.brand { background: var(--brand-soft); border-color: transparent; } .slide-stat.brand .v { color: var(--brand-deep); }
.slide ul.clean { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; } .slide ul.clean li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; } .slide ul.clean li .i { width: 20px; height: 20px; color: var(--brand-deep); flex: none; margin-top: 2px; }
.rate-row { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.rate-row:last-child { border-bottom: 0; } .rate-row .name { font-weight: 500; } .rate-row .sub { font-size: 12px; color: var(--text-3); }
/* calendrier navigable */
.cal-nav { display: flex; align-items: center; gap: 8px; } .cal-nav h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin: 0 6px; min-width: 170px; text-transform: capitalize; }
.cal-scroll { max-height: 640px; overflow: auto; border-radius: var(--r); border: 1px solid var(--border); } .cal-scroll .calendar { border: 0; border-radius: 0; } .cal-scroll .cal-head { position: sticky; top: 0; z-index: 2; }
.cal-day .more { font-size: 11px; color: var(--brand-deep); font-weight: 600; }
.agenda-day { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); } .agenda-day:last-child { border-bottom: 0; }
.agenda-day .dn { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1; } .agenda-day .dw { font-size: 11px; text-transform: uppercase; color: var(--text-3); letter-spacing: .06em; }
.agenda-day.today .dn { color: var(--brand-deep); }
/* arborescence patrimoine */
.tree { list-style: none; margin: 0; padding: 0; } .tree ul { list-style: none; margin: 0; padding-left: 26px; border-left: 1px dashed var(--border-strong); margin-left: 15px; }
.tree li { position: relative; } .tree .node { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; } .tree .node:hover { background: var(--surface-2); }
.tree .node .i { width: 16px; height: 16px; color: var(--text-2); } .tree .node .meta { margin-left: auto; display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: var(--text-3); }
.tree > li > .node { font-weight: 600; } .tree > li > .node .i { color: var(--brand-deep); }
/* fiches flotte GE */
.fleet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fleet-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; } .fleet-card .top { display: flex; align-items: flex-start; gap: 12px; }
.fleet-card .kva { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.fleet-card .specs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 12px; color: var(--text-2); } .fleet-card .specs b { color: var(--text); font-weight: 500; }
.mini-bars { display: flex; align-items: flex-end; gap: 3px; height: 34px; } .mini-bars span { flex: 1; background: var(--brand); border-radius: 2px 2px 0 0; opacity: .85; min-height: 2px; } .mini-bars span.neg { background: var(--red); }
.delta-pill { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--surface-3); } .delta-pill.up { color: var(--red-strong); background: var(--red-soft); } .delta-pill.down { color: var(--brand-deep); background: var(--brand-soft); } .delta-pill .i { width: 12px; height: 12px; }
/* import excel */
.import-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } .import-step { padding: 14px; border: 1px solid var(--border); border-radius: var(--r); display: flex; gap: 12px; } .import-step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--text); color: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.preview-table td.err { background: var(--red-soft); color: var(--red-strong); } .preview-table td.new { background: var(--brand-soft); }
.client-logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; letter-spacing: -0.02em; flex: none; }
.client-logo.c1 { background: linear-gradient(135deg, #1f2937, #0f172a); } .client-logo.c2 { background: linear-gradient(135deg, #3C8A1A, #5EAD30); } .client-logo.c5 { background: linear-gradient(135deg, #1D4ED8, #2563EB); } .client-logo.c3 { background: linear-gradient(135deg, #B45309, #F59E0B); }
.contract-card { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 16px; } .contract-card .facts { display: grid; grid-template-columns: repeat(4, auto); gap: 6px 18px; font-size: 12px; color: var(--text-2); margin-top: 10px; } .contract-card .facts b { display: block; color: var(--text); font-weight: 600; font-size: 13px; }
.hidden-value { filter: blur(5px); user-select: none; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; } .quick-grid .btn { justify-content: flex-start; height: 44px; }
@media (max-width: 1200px) { .stat-row { grid-template-columns: repeat(3, 1fr); } .fleet, .slide-grid, .import-steps { grid-template-columns: repeat(2, 1fr); } .quick-grid { grid-template-columns: repeat(2, 1fr); } .scope-chip { max-width: 200px; } }
@media (max-width: 680px) { .stat-row { grid-template-columns: repeat(2, 1fr); } .fleet, .slide-grid, .slide-grid.two, .import-steps, .quick-grid { grid-template-columns: 1fr; } .slide { padding: 28px 20px 70px; } .scope-chip small { display: none; } .contract-card { grid-template-columns: 1fr; } .contract-card .facts { grid-template-columns: repeat(2, auto); } .rate-row { grid-template-columns: 1fr; gap: 6px; } }

@media (max-width: 1200px) { .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(2, 1fr); } .grid-main, .grid-side { grid-template-columns: 1fr; } .modules, .contract, .flow, .roles-grid { grid-template-columns: repeat(2, 1fr); } .kanban { grid-template-columns: repeat(4, 260px); } }
@media (max-width: 980px) {
  .sidebar { transform: translateX(-100%); width: var(--sidebar-w) !important; } html[data-sidebar="open"] .sidebar { transform: none; } html[data-sidebar="open"] .sidebar-overlay { display: block; }
  .main { margin-left: 0 !important; } .topbar { padding: 0 16px; } .content { padding: 18px 16px 60px; } .topbar-search { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; } .auth { grid-template-columns: 1fr; } .auth-visual { display: none; } .settings-layout { grid-template-columns: 1fr; } .settings-nav { position: static; flex-direction: row; overflow-x: auto; }
  .doc-grid { grid-template-columns: 1fr; } .doc-toc { display: none; } .cta-band { flex-direction: column; align-items: flex-start; padding: 36px; } .pub-links { display: none; }
  .gantt { grid-template-columns: 160px repeat(12, 1fr); font-size: 11px; }
}
@media (max-width: 680px) { .brand-lock .b-sub { display: none; } .grid-2, .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: 1fr; } .modules, .contract, .flow, .roles-grid, .labels, .form-grid, .demo-roles { grid-template-columns: 1fr; } .page-head h1 { font-size: 21px; } .hero { padding: 40px 0 24px; } .hero-stats { gap: 18px; } .calendar { grid-template-columns: repeat(7, minmax(80px, 1fr)); overflow-x: auto; } .week { grid-template-columns: 60px repeat(7, minmax(120px, 1fr)); overflow-x: auto; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
@media print { .sidebar, .topbar, .demo-bar, .page-actions, .no-print, .toasts { display: none !important; } .main { margin: 0 !important; } .content { padding: 0; max-width: none; } body { background: #fff; } .card { box-shadow: none; } .labels { grid-template-columns: repeat(3, 1fr); } }
