/* ==========================================================================
   Elite Braid — Espace pro
   Two themes share one set of tokens: "wine" (Wine & Paper) and "road" (Open Road).
   ========================================================================== */

:root,
:root[data-theme="wine"] {
  --bg: #f6f0e8;
  --surface: #fffcf8;
  --surface-2: #f3ebe1;
  --surface-3: #ece1d4;
  --ink: #2b1b20;
  --ink-2: #5a464c;
  --muted: #8c787e;
  --line: #e6d9cc;
  --line-strong: #d6c4b4;
  --brand: #6d2939;
  --brand-strong: #561e2c;
  --brand-soft: #f3e2e4;
  --brand-ink: #fff8f4;
  --accent: #b88a3e;
  --accent-soft: #f6ebd6;
  --sidebar-bg: #3a1520;
  --sidebar-bg-2: #4a1d2a;
  --sidebar-ink: #f8ece6;
  --sidebar-muted: #caa9af;
  --sidebar-active: rgba(255, 236, 228, 0.12);
  --sidebar-line: rgba(255, 236, 228, 0.1);
  --focus: rgba(109, 41, 57, 0.28);
  --shadow-sm: 0 1px 2px rgba(58, 21, 32, 0.06), 0 1px 1px rgba(58, 21, 32, 0.04);
  --shadow: 0 10px 30px -12px rgba(58, 21, 32, 0.22);
  --shadow-lg: 0 24px 60px -18px rgba(58, 21, 32, 0.35);
}

:root[data-theme="road"] {
  --bg: #f1ede5;
  --surface: #ffffff;
  --surface-2: #f2eee7;
  --surface-3: #e7e0d4;
  --ink: #1d262b;
  --ink-2: #47535a;
  --muted: #7a858b;
  --line: #e1dacd;
  --line-strong: #cfc6b6;
  --brand: #b4532a;
  --brand-strong: #923f1d;
  --brand-soft: #f8e5da;
  --brand-ink: #fffaf6;
  --accent: #2f6b6e;
  --accent-soft: #dcebea;
  --sidebar-bg: #1e292f;
  --sidebar-bg-2: #26343b;
  --sidebar-ink: #eef1ef;
  --sidebar-muted: #9aa8ae;
  --sidebar-active: rgba(240, 179, 139, 0.14);
  --sidebar-line: rgba(238, 241, 239, 0.08);
  --focus: rgba(180, 83, 42, 0.3);
  --shadow-sm: 0 1px 2px rgba(29, 38, 43, 0.06), 0 1px 1px rgba(29, 38, 43, 0.04);
  --shadow: 0 10px 30px -12px rgba(29, 38, 43, 0.22);
  --shadow-lg: 0 24px 60px -18px rgba(29, 38, 43, 0.35);
}

:root {
  --success: #3d7057;
  --success-soft: #e2efe7;
  --warning: #a8650f;
  --warning-soft: #f8ead2;
  --danger: #a5343b;
  --danger-soft: #f8e1e1;
  --info: #3b5f86;
  --info-soft: #e1e9f3;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --sidebar-w: 256px;
  --topbar-h: 68px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); 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; }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 600; }
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
.eyebrow { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.ink-2 { color: var(--ink-2); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---------- Icons ---------- */
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 13.5px; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:disabled, .btn[aria-busy="true"] { opacity: 0.6; cursor: default; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(0.95); background: var(--success); }
.btn-sm { min-height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn-icon { width: 38px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.btn-block { width: 100%; }
.btn .badge-dot { margin-left: 2px; }
.btn-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field > span, .field-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field small, .hint { font-size: 12px; color: var(--muted); }
.input, .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select, .field textarea, .select {
  width: 100%; min-height: 40px; padding: 8px 12px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus);
}
.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: start; }
.form-section { display: grid; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.form-section:first-of-type { border-top: 0; padding-top: 0; }
.form-section > header { display: grid; gap: 2px; }
.form-section > header h3 { font-size: 15px; }
.form-section > header p { margin: 0; font-size: 12.5px; color: var(--muted); }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13.5px; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.check small { display: block; color: var(--muted); font-size: 12px; }
.check-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; }
.switch input { appearance: none; width: 40px; height: 23px; border-radius: 999px; background: var(--line-strong); position: relative; flex: none; transition: background 0.15s; cursor: pointer; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.15s; }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(17px); }
.switch strong { display: block; font-size: 13.5px; }
.switch small { color: var(--muted); font-size: 12px; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input { padding-left: 36px !important; }
.form-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-size: 13px; }

/* ---------- Chips & segmented ---------- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.chip:hover { background: var(--surface-2); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.chip .count { font-weight: 700; opacity: 0.7; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 12.5px; color: var(--ink-2); }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: var(--surface-3); color: var(--ink-2);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.badge.plain::before { display: none; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.badge-accent { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 80%, var(--ink)); }
.badge-dot { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 700; }

/* ---------- Avatar ---------- */
.avatar {
  --c: var(--brand);
  display: inline-grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: color-mix(in srgb, var(--c) 16%, var(--surface));
  color: color-mix(in srgb, var(--c) 85%, var(--ink));
  font-weight: 700; font-size: 13px; letter-spacing: 0.02em;
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
}
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-lg { width: 56px; height: 56px; font-size: 19px; }
.avatar-xl { width: 76px; height: 76px; font-size: 25px; }
.dot { --c: var(--brand); width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; display: inline-block; }

/* ==========================================================================
   Login
   ========================================================================== */
.login {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%),
    var(--bg);
}
.login-card {
  width: min(440px, 100%); padding: 36px 32px 30px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: grid; gap: 18px;
}
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.login-brand strong { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 500; }
.login-card h1 { font-family: var(--font-display); font-weight: 500; font-size: 28px; }
.login-card p { margin: 0; color: var(--muted); }
.login-mode { display: grid; grid-template-columns: 1fr 1fr; }
.login-mode button { flex: 1; }

/* ==========================================================================
   Shell
   ========================================================================== */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px; padding: 18px 14px;
  background: linear-gradient(180deg, var(--sidebar-bg), var(--sidebar-bg-2));
  color: var(--sidebar-ink);
}
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 4px 6px 2px; color: inherit; }
.sidebar-brand:hover { text-decoration: none; }
.sidebar-brand img { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; }
.sidebar-brand strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 16px; line-height: 1.15; }
.sidebar-brand small { color: var(--sidebar-muted); font-size: 11.5px; }
.scope-picker { display: grid; gap: 6px; padding: 10px; border-radius: 12px; background: var(--sidebar-active); }
.scope-picker label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--sidebar-muted); }
.scope-picker select {
  width: 100%; min-height: 36px; padding: 6px 10px; border-radius: 9px;
  border: 1px solid var(--sidebar-line); background: rgba(0, 0, 0, 0.18); color: var(--sidebar-ink);
}
.scope-picker select option { color: #222; }
.nav { display: grid; gap: 2px; }
.nav-label { margin: 12px 10px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--sidebar-muted); }
.nav a {
  display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 10px; border-radius: 10px;
  color: var(--sidebar-ink); opacity: 0.86; font-weight: 500; font-size: 14px;
}
.nav a:hover { background: var(--sidebar-active); opacity: 1; text-decoration: none; }
.nav a.active { background: var(--sidebar-active); opacity: 1; font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.nav a .badge-dot { margin-left: auto; background: var(--accent); color: #1a1a1a; }
.sidebar-foot { margin-top: auto; display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--sidebar-line); }
.me { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; color: inherit; }
.me:hover { background: var(--sidebar-active); text-decoration: none; }
.me strong { display: block; font-size: 13.5px; }
.me small { display: block; color: var(--sidebar-muted); font-size: 11.5px; }
.sidebar .avatar { border-color: var(--sidebar-line); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; min-height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px; padding: 12px clamp(16px, 3vw, 32px);
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-title { min-width: 0; flex: 1; }
.topbar-title h1 { font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; }
.topbar-title p { margin: 0; color: var(--muted); font-size: 12.5px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.search-box { position: relative; width: min(280px, 32vw); }
.search-box input { width: 100%; min-height: 38px; padding: 0 12px 0 36px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); }
.search-box input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus); }
.search-box .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; max-height: 420px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px;
}
.search-results button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; text-align: left; }
.search-results button:hover, .search-results button.active { background: var(--surface-2); }
.search-results .group { padding: 8px 10px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.menu-toggle { display: none; }
.scope-banner {
  display: flex; align-items: center; gap: 10px; padding: 8px clamp(16px, 3vw, 32px);
  background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 70%, var(--ink)); font-size: 13px; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.scope-banner .btn { margin-left: auto; }

.view { padding: clamp(16px, 3vw, 32px); display: grid; gap: 22px; align-content: start; min-width: 0; }
.view-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.view-head h2 { font-family: var(--font-display); font-weight: 500; font-size: 22px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar .search-box { width: min(300px, 100%); }
.toolbar .spacer { flex: 1; }

.bottom-nav { display: none; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 15.5px; }
.card-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.card-body { padding: 16px 20px; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.card.flat { box-shadow: none; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
.stack { display: grid; gap: 12px; }
.stack-sm { display: grid; gap: 6px; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.wrap { flex-wrap: wrap; }

/* ---------- KPI tiles ---------- */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat { padding: 16px 18px; display: grid; gap: 4px; }
.stat .label { font-size: 12.5px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.stat .value { font-family: var(--font-display); font-weight: 500; font-size: 28px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stat .delta { font-size: 12px; color: var(--muted); }
.stat .delta.up { color: var(--success); }
.stat .delta.down { color: var(--danger); }

/* ---------- Action cards ---------- */
.actions-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.action-card {
  display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; text-align: left;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.action-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.action-card .count { font-family: var(--font-display); font-size: 26px; font-weight: 500; line-height: 1; }
.action-card strong { font-size: 13.5px; }
.action-card small { color: var(--muted); font-size: 12px; }
.action-card.tone-warning .count { color: var(--warning); }
.action-card.tone-brand .count { color: var(--brand); }
.action-card.tone-info .count { color: var(--info); }
.action-card.tone-danger .count { color: var(--danger); }
.action-card.is-zero { opacity: 0.6; box-shadow: none; }
.all-clear { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--success-soft); color: var(--success); font-weight: 600; }

/* ---------- Lists ---------- */
.list { display: grid; }
.list-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px; min-width: 0;
  border-bottom: 1px solid var(--line); background: transparent; border-left: 0; border-right: 0; border-top: 0;
  text-align: left; width: 100%; color: inherit;
}
.list-item:last-child { border-bottom: 0; }
button.list-item:hover, a.list-item:hover, .list-item.clickable:hover { background: var(--surface-2); text-decoration: none; cursor: pointer; }
.main-col { display: grid; gap: 1px; min-width: 0; }
.list-item .main-col { flex: 1; }
.list-item .main-col strong { font-size: 14px; }
.list-item .main-col span { font-size: 12.5px; color: var(--muted); }
.list-item .side-col { display: grid; justify-items: end; gap: 3px; text-align: right; flex: none; }
.time-pill { flex: none; width: 62px; text-align: center; padding: 6px 0; border-radius: 10px; background: var(--surface-2); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.time-pill small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.date-pill { flex: none; width: 50px; text-align: center; padding: 5px 0; border-radius: 10px; background: var(--brand-soft); color: var(--brand); line-height: 1.1; }
.date-pill b { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 500; }
.date-pill small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable:hover td { background: var(--surface-2); cursor: pointer; }
.table .right { text-align: right; }

.empty {
  display: grid; justify-items: center; gap: 8px; padding: 36px 20px; text-align: center; color: var(--muted);
}
.empty .icon { width: 30px; height: 30px; color: var(--line-strong); }
.empty strong { color: var(--ink-2); font-size: 15px; }
.empty p { margin: 0; max-width: 380px; font-size: 13px; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13px; background: var(--info-soft); color: var(--info); }
.notice.warning { background: var(--warning-soft); color: var(--warning); }
.notice.danger { background: var(--danger-soft); color: var(--danger); }
.notice.success { background: var(--success-soft); color: var(--success); }
.notice .icon { margin-top: 1px; }
.notice p { margin: 0; }
.notice strong { display: block; }

/* ---------- Drawer ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(20, 12, 14, 0.38); backdrop-filter: blur(2px); animation: fade 0.18s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(560px, 100vw);
  background: var(--bg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  animation: slide-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.drawer.wide { width: min(820px, 100vw); }
.drawer-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 22px; background: var(--surface); border-bottom: 1px solid var(--line); }
.drawer-head .titles { flex: 1; min-width: 0; }
.drawer-head h2 { font-family: var(--font-display); font-weight: 500; font-size: 22px; }
.drawer-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px; display: grid; gap: 18px; align-content: start; }
.drawer-foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 22px; background: var(--surface); border-top: 1px solid var(--line); }
.drawer-foot .left { margin-right: auto; }
.drawer-tabs { display: flex; gap: 4px; padding: 0 22px; background: var(--surface); border-bottom: 1px solid var(--line); overflow-x: auto; }
.drawer-tabs button, .tabs button {
  border: 0; background: none; padding: 12px 10px; font-weight: 600; font-size: 13px; color: var(--muted);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.drawer-tabs button.active, .tabs button.active { color: var(--ink); border-bottom-color: var(--brand); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; }

.section { display: grid; gap: 10px; }
.section > h4 { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px; }
.kv div { display: grid; gap: 1px; min-width: 0; }
.kv dt, .kv span.k { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.kv dd, .kv span.v { margin: 0; font-size: 13.5px; overflow-wrap: anywhere; }
dl.kv { margin: 0; }

.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding-bottom: 12px; position: relative; }
.timeline-item::before { content: ""; position: absolute; left: 8px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-item .bullet { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); margin-top: 1px; }
.timeline-item.done .bullet { background: var(--success); border-color: var(--success); }
.timeline-item strong { font-size: 13px; display: block; }
.timeline-item small { color: var(--muted); font-size: 12px; }

/* ---------- Dialog ---------- */
.dialog-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; background: rgba(20, 12, 14, 0.45); animation: fade 0.15s ease; }
.dialog { width: min(460px, 100%); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 22px; display: grid; gap: 14px; animation: pop 0.18s ease; }
.dialog h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; }
.dialog p { margin: 0; color: var(--ink-2); white-space: pre-line; }
.dialog .btn-group { justify-content: flex-end; }

/* ---------- Toast ---------- */
.toasts { position: fixed; z-index: 90; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; pointer-events: auto;
  background: var(--ink); color: var(--surface); box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 500;
  animation: pop 0.2s ease;
}
.toast.success .icon { color: #8fd3ad; }
.toast.error { background: var(--danger); color: #fff; }
.toast button { margin-left: auto; border: 0; background: transparent; color: inherit; opacity: 0.7; }

.loading-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; overflow: hidden; }
.loading-bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); animation: loading 1s ease-in-out infinite; }
.skeleton { border-radius: 10px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes loading { 0% { left: -40%; } 100% { left: 100%; } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ==========================================================================
   Agenda
   ========================================================================== */
.agenda-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.agenda-toolbar h3 { font-family: var(--font-display); font-weight: 500; font-size: 19px; min-width: 200px; }
.agenda { --hour-h: 56px; display: grid; grid-template-columns: 54px repeat(var(--days, 7), minmax(110px, 1fr)); overflow-x: auto; }
.agenda-head { position: sticky; top: 0; z-index: 2; padding: 10px 8px; text-align: center; background: var(--surface); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.agenda-head strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 20px; color: var(--ink); }
.agenda-head.today strong { color: var(--brand); }
.agenda-head.today { box-shadow: inset 0 -2px 0 var(--brand); }
.agenda-head.closed { background: var(--surface-2); }
.agenda-corner { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.agenda-hours { position: relative; }
.agenda-hours span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.agenda-col { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hour-h) - 1px), var(--line) calc(var(--hour-h) - 1px), var(--line) var(--hour-h)); }
.agenda-col.closed { background-color: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.agenda-col.today { background-color: color-mix(in srgb, var(--brand-soft) 35%, transparent); }
.agenda-slot { position: absolute; left: 0; right: 0; border: 0; background: transparent; }
.agenda-slot:hover { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.agenda-event {
  --c: var(--brand);
  position: absolute; left: 4px; right: 4px; z-index: 1; overflow: hidden; text-align: left;
  padding: 5px 7px; border-radius: 8px; border: 0; border-left: 3px solid var(--c);
  background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--ink);
  font-size: 11.5px; line-height: 1.3; box-shadow: var(--shadow-sm);
}
.agenda-event:hover { box-shadow: var(--shadow); z-index: 3; }
.agenda-event strong { display: block; font-size: 12px; }
.agenda-event span { color: var(--ink-2); }
.agenda-event.pending { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, var(--surface)) 0 6px, var(--surface) 6px 12px); }
.agenda-event.completed { opacity: 0.6; }
.agenda-event.awaiting_payment { opacity: 0.75; border-left-style: dashed; background: var(--surface); }
.agenda-block { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(45deg, var(--surface-3) 0 5px, transparent 5px 10px); border-top: 1px dashed var(--line-strong); border-bottom: 1px dashed var(--line-strong); font-size: 10.5px; color: var(--muted); padding: 2px 6px; overflow: hidden; }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--danger); z-index: 2; }
.now-line::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.month-grid .dow { padding: 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--line); }
.month-cell { min-height: 104px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; align-content: start; gap: 3px; background: var(--surface); border-top: 0; border-left: 0; text-align: left; }
.month-cell:nth-child(7n + 7) { border-right: 0; }
.month-cell.out { background: var(--surface-2); color: var(--muted); }
.month-cell.today .d { background: var(--brand); color: var(--brand-ink); }
.month-cell .d { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-weight: 600; font-size: 12.5px; }
.month-cell .ev { --c: var(--brand); display: block; font-size: 11px; padding: 2px 5px; border-radius: 5px; background: color-mix(in srgb, var(--c) 14%, var(--surface)); border-left: 2px solid var(--c); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.month-cell .more { font-size: 11px; color: var(--muted); padding-left: 4px; }
.month-cell:hover { background: var(--surface-2); }

/* ==========================================================================
   Catalogue
   ========================================================================== */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tile { overflow: hidden; display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: box-shadow 0.15s, transform 0.15s; }
.tile:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.tile-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-media .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tile-media .badge { background: rgba(255, 255, 255, 0.92); }
.tile-body { padding: 14px 16px; display: grid; gap: 6px; flex: 1; align-content: start; }
.tile-body h3 { font-size: 15px; }
.tile-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--muted); }
.tile-meta b { color: var(--ink); font-weight: 700; }
.tile-foot { padding: 10px 16px; border-top: 1px solid var(--line); display: flex; gap: 6px; flex-wrap: wrap; }
.gallery-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.gallery-card { position: relative; border-radius: 14px; overflow: hidden; background: var(--surface-2); aspect-ratio: 1; border: 1px solid var(--line); padding: 0; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.65)); color: #fff; font-size: 12px; text-align: left; }
.gallery-card .cap strong { display: block; font-size: 12.5px; }
.gallery-card .badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
.gallery-card .badge { background: rgba(255, 255, 255, 0.92); }
.gallery-card .order-btns { position: absolute; top: 8px; right: 8px; display: none; gap: 4px; }
.gallery-card:hover .order-btns { display: flex; }
.gallery-card .order-btns span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, 0.92); color: var(--ink); }
.image-picker { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.image-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.image-thumb img { width: 100%; height: 100%; object-fit: cover; }
.image-thumb.cover { outline: 3px solid var(--brand); outline-offset: -3px; }
.image-thumb .thumb-actions { position: absolute; inset: auto 4px 4px 4px; display: flex; gap: 4px; justify-content: flex-end; }
.image-thumb .thumb-actions button { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; border: 0; background: rgba(255, 255, 255, 0.94); color: var(--ink); padding: 0; }
.image-thumb .cover-tag { position: absolute; top: 4px; left: 4px; }
.upload-tile { display: grid; place-items: center; gap: 4px; aspect-ratio: 1; border-radius: 10px; border: 1.5px dashed var(--line-strong); color: var(--muted); font-size: 12px; text-align: center; cursor: pointer; background: var(--surface); padding: 6px; }
.upload-tile:hover { border-color: var(--brand); color: var(--brand); }
.upload-tile input { display: none; }
.extras-table { display: grid; gap: 8px; }
.extra-line { display: grid; grid-template-columns: 1.1fr 1.1fr 0.7fr 0.7fr 34px; gap: 8px; align-items: end; }
.extra-line .input { min-height: 36px; padding: 6px 10px; }

/* ==========================================================================
   Team
   ========================================================================== */
.city-block { display: grid; gap: 12px; }
.city-block > header { display: flex; align-items: center; gap: 10px; }
.city-block > header h3 { font-family: var(--font-display); font-weight: 500; font-size: 18px; }
.people { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.person { display: grid; gap: 12px; padding: 16px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: box-shadow 0.15s, transform 0.15s; }
.person:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.person-head { display: flex; align-items: center; gap: 12px; }
.person-head strong { display: block; font-size: 15px; }
.person-head small { color: var(--muted); font-size: 12.5px; }
.person-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.person-stats div { padding: 8px; border-radius: 10px; background: var(--surface-2); text-align: center; }
.person-stats b { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 500; }
.person-stats span { font-size: 11px; color: var(--muted); }
.profile-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 22px; }
.profile-hero .titles { flex: 1; min-width: 200px; }
.profile-hero h2 { font-family: var(--font-display); font-weight: 500; font-size: 26px; }
.profile-hero .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13px; margin-top: 4px; }
.profile-hero .meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ==========================================================================
   Charts
   ========================================================================== */
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 12px; align-items: center; font-size: 13px; }
.bar-row .track { display: block; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar-row .fill { --c: var(--brand); display: block; height: 100%; border-radius: 999px; background: var(--c); }
.bar-row .val { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 64px; text-align: right; }
.columns { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; align-items: end; height: 220px; padding-top: 10px; }
.column { display: grid; grid-template-rows: auto 1fr auto; height: 100%; gap: 6px; text-align: center; font-size: 11.5px; color: var(--muted); }
.column .bar-wrap { display: flex; align-items: flex-end; justify-content: center; min-height: 0; }
.column .bar { width: min(42px, 70%); border-radius: 8px 8px 3px 3px; background: var(--brand); min-height: 2px; position: relative; }
.column .bar.secondary { background: var(--accent); }
.column .amount { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.column.current .bar { background: var(--brand-strong); }
.column.current .label { color: var(--ink); font-weight: 700; }
.donut-legend { display: grid; gap: 8px; }
.donut-legend div { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.donut-legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.split-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.split-bar span { --c: var(--brand); background: var(--c); }

/* ---------- Activity ---------- */
.activity { display: grid; }
.activity-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 20px; border-bottom: 1px solid var(--line); font-size: 13px; }
.activity-item:last-child { border-bottom: 0; }
.activity-item small { color: var(--muted); font-size: 11.5px; }

/* ---------- Day strip (home) ---------- */
.team-today { display: grid; gap: 0; }

/* ---------- Copy field ---------- */
.copy-field { display: flex; gap: 8px; }
.copy-field input { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-2); background: var(--surface-2) !important; }

/* ---------- Status stepper ---------- */
.stepper { display: flex; gap: 6px; flex-wrap: wrap; }
.stepper span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--muted); }
.stepper span.done { background: var(--success-soft); color: var(--success); }
.stepper span.current { background: var(--brand-soft); color: var(--brand); }

.risk { padding: 14px; border-radius: 12px; display: grid; gap: 8px; }
.risk.green { background: var(--success-soft); }
.risk.orange { background: var(--warning-soft); }
.risk.red { background: var(--danger-soft); }
.risk h4 { font-size: 14px; }
.risk ul { margin: 0; padding-left: 18px; font-size: 13px; }

.slot-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.slot-picker button { min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.slot-picker button.active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

.theme-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.theme-card { display: grid; gap: 10px; padding: 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); text-align: left; }
.theme-card.active { border-color: var(--brand); }
.theme-card .swatches { display: flex; height: 44px; border-radius: 9px; overflow: hidden; }
.theme-card .swatches span { flex: 1; }
.theme-card strong { font-size: 13.5px; }
.theme-card small { color: var(--muted); font-size: 12px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --topbar-h: 58px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; z-index: 70; left: 0; top: 0; bottom: 0; width: min(300px, 86vw);
    transform: translateX(-100%); transition: transform 0.22s ease; box-shadow: var(--shadow-lg);
  }
  .shell.nav-open .sidebar { transform: none; }
  .shell.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 65; background: rgba(20, 12, 14, 0.4); }
  .menu-toggle { display: inline-flex; }
  .topbar { padding: 10px 14px; gap: 8px; }
  .topbar-title h1 { font-size: 20px; }
  .topbar-title p { display: none; }
  .topbar .search-box { display: none; }
  .topbar .hide-mobile { display: none; }
  .view { padding: 16px 16px 96px; gap: 18px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .bottom-nav {
    position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .bottom-nav a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border-radius: 10px; color: var(--muted); font-size: 10.5px; font-weight: 600; position: relative; }
  .bottom-nav a:hover { text-decoration: none; }
  .bottom-nav a.active { color: var(--brand); }
  .bottom-nav a .badge-dot { position: absolute; top: 0; left: calc(50% + 6px); min-width: 17px; height: 17px; font-size: 10px; padding: 0 4px; }
  .bottom-nav .fab { align-self: center; justify-self: center; width: 48px; height: 48px; border-radius: 16px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; box-shadow: var(--shadow); margin-top: -18px; }
  .drawer, .drawer.wide { width: 100vw; }
  .drawer-head, .drawer-body, .drawer-foot { padding-left: 16px; padding-right: 16px; }
  .card-head, .card-body, .list-item { padding-left: 16px; padding-right: 16px; }
  .extra-line { grid-template-columns: 1fr 1fr; }
  .extra-line .rm { grid-column: 2; justify-self: end; }
  .agenda { --hour-h: 52px; }
  .stat .value { font-size: 24px; }
  .toasts { bottom: 86px; }
  .table th, .table td { padding: 10px 12px; }
  .hide-sm { display: none !important; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px 14px; }
  .actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person-stats b { font-size: 16px; }
  .bar-row { grid-template-columns: 90px 1fr auto; gap: 8px; }
  .month-cell { min-height: 64px; padding: 3px; }
  .month-cell .ev { display: none; }
  .month-cell .more { display: block; }
  .login-card { padding: 28px 20px 22px; }
}

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

/* Hours + minutes duration picker */
.duration-input { display: grid; grid-template-columns: minmax(64px, 1fr) auto minmax(72px, 1fr) auto; gap: 8px; align-items: center; }
.duration-input > span { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Collapsible card (e.g. notifications status once everything works) */
details.fold > summary { list-style: none; cursor: pointer; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold:not([open]) > summary { border-bottom: 0; }
details.fold > summary p { display: flex; align-items: center; gap: 6px; }
details.fold > summary p .icon { color: var(--success); }
details.fold .fold-icon { color: var(--muted); transition: transform 0.2s; }
details.fold[open] .fold-icon { transform: rotate(180deg); }
