/* ============================================================
   Geelen Command Center — styles
   Design-tokens bovenin, components eronder, responsive onderaan.
   Alle tokens zijn locked per CLAUDE.md (warm-neutraal + amber).
   ============================================================ */

:root {
  color-scheme: light;
  /* Warm neutrals */
  --bg: #FAFAF7;
  --bg-raised: #FFFFFF;
  --bg-muted: #F4F2EA;
  --bg-ink: #111113;
  /* Borders */
  --border: #ECEAE1;
  --border-strong: #D9D6C9;
  /* Text */
  --text: #1A1916;
  --text-muted: #6E6C63;
  --text-subtle: #9C998F;
  /* Accent (warm amber/goud) */
  --accent: #B45309;
  --accent-hi: #D97706;
  --accent-soft: #FEF3C7;
  --accent-deep: #7C2D12;
  /* States (gedempt) */
  --success: #047857;
  --warning: #B45309;
  --error: #B91C1C;
  /* Rol-kleuren (subtiel) */
  --sebero: #1F4B7A;
  --info-sebero: #0F5C4F;
  --tfs: #92400E;
  --info-tfs: #B25313;
  --prive: #52524B;
  /* Radii */
  --r-chip: 999px;
  --r-input: 10px;
  --r-tile: 12px;
  --r-card: 14px;
  /* Shadow */
  --sh-soft: 0 1px 3px rgba(20, 18, 10, 0.04);
  --sh-raised: 0 2px 8px rgba(20, 18, 10, 0.06);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); background: var(--bg);
  font-size: 14px; line-height: 1.5; letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body { overflow: hidden; }
button { font-family: inherit; }
code { font-family: "SF Mono", "Menlo", "Consolas", monospace; font-size: 12px; background: var(--bg-muted); padding: 1px 5px; border-radius: 4px; }

.app { display: grid; grid-template-columns: 240px 1fr 320px; grid-template-rows: 60px 1fr; height: 100vh; }

/* -------- Sidebar -------- */
.sidebar { grid-column: 1; grid-row: 1 / -1; background: var(--bg); box-shadow: inset -1px 0 0 var(--border); display: flex; flex-direction: column; overflow: hidden; }
.sidebar-header { padding: 20px 20px 16px; }
.sidebar-brand { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; color: var(--text); }
.sidebar-brand .logo { width: 24px; height: 24px; border-radius: 6px; background: var(--bg-ink); display: inline-flex; align-items: center; justify-content: center; color: var(--accent-hi); font-size: 13px; font-weight: 700; letter-spacing: 0; }
.sidebar-sub { color: var(--text-subtle); font-size: 11px; margin-top: 8px; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.nav { flex: 1; overflow-y: auto; padding: 12px 10px 20px; }
.nav-section { font-size: 10px; text-transform: uppercase; letter-spacing: 0.11em; color: var(--text-subtle); padding: 14px 12px 6px; font-weight: 600; }
.nav-section:first-child { padding-top: 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--text); line-height: 1.4; transition: background 0.12s ease; }
.nav-item:hover { background: rgba(26, 25, 22, 0.04); }
.nav-item.active { background: var(--bg-raised); box-shadow: 0 0 0 1px var(--border), var(--sh-soft); font-weight: 500; color: var(--text); }
.nav-item .ico { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-muted); display: inline-flex; }
.nav-item.active .ico { color: var(--accent); }
.nav-item .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item .badge { font-size: 10px; background: var(--bg-ink); color: #FFFFFF; padding: 1px 7px; border-radius: 999px; line-height: 1.55; font-weight: 600; font-variant-numeric: tabular-nums; }
.nav-item .badge.muted { background: transparent; color: var(--text-subtle); border: 1px solid var(--border-strong); padding: 0 6px; }
.nav-item .badge.alert { background: var(--error); }

/* -------- Topbar -------- */
.topbar { grid-column: 2 / -1; grid-row: 1; display: flex; align-items: center; gap: 16px; padding: 0 24px; background: var(--bg); box-shadow: inset 0 -1px 0 var(--border); }
.date-pill { font-size: 13px; color: var(--text-muted); white-space: nowrap; letter-spacing: -0.005em; }
.search { flex: 1; max-width: 480px; position: relative; }
.search input { width: 100%; padding: 8px 54px 8px 34px; border: 1px solid var(--border); border-radius: var(--r-input); font-size: 13px; background: var(--bg-muted); outline: none; color: var(--text); transition: background 0.15s, border-color 0.15s, box-shadow 0.15s; letter-spacing: -0.005em; }
.search input::placeholder { color: var(--text-subtle); }
.search input:focus { border-color: var(--border-strong); background: var(--bg-raised); box-shadow: var(--sh-soft); }
.search .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-subtle); pointer-events: none; display: flex; width: 14px; height: 14px; }
.search .kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 10px; color: var(--text-subtle); padding: 2px 6px; border-radius: 4px; background: var(--bg-raised); border: 1px solid var(--border); font-family: inherit; letter-spacing: 0.04em; pointer-events: none; }
.quick-action { display: flex; align-items: center; gap: 8px; background: var(--bg-ink); color: #FFFFFF; padding: 8px 14px; border-radius: var(--r-input); font-size: 13px; font-weight: 500; border: none; cursor: pointer; letter-spacing: -0.005em; transition: background 0.15s; }
.quick-action:hover { background: #2A2922; }
.quick-action .ico { width: 14px; height: 14px; }
.status-lamp { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-subtle); }
.status-dot.ok { background: var(--success); }
.status-dot.warning { background: var(--warning); }
.status-dot.error { background: var(--error); }

/* Hamburger-knop, alleen zichtbaar onder 900px */
.hamburger { display: none; background: transparent; border: 1px solid var(--border); border-radius: 8px; padding: 8px; cursor: pointer; flex-direction: column; gap: 3px; width: 34px; height: 34px; align-items: center; justify-content: center; }
.hamburger span { display: block; width: 14px; height: 1.5px; background: var(--text); border-radius: 1px; }
.hamburger:hover { background: var(--bg-muted); }

/* -------- Main & right-panel -------- */
.main { grid-column: 2; grid-row: 2; overflow-y: auto; padding: 28px 28px 48px; }
.right { grid-column: 3; grid-row: 2; background: var(--bg); box-shadow: inset 1px 0 0 var(--border); overflow-y: auto; padding: 24px 22px; }
.right h3 { margin: 0 0 10px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-subtle); font-weight: 600; }
.right .group + .group { margin-top: 24px; }

/* Drawer-scrim — onder 900px als sidebar open is */
.drawer-scrim { display: none; position: fixed; inset: 0; background: rgba(17, 17, 19, 0.35); z-index: 40; opacity: 0; transition: opacity 0.2s ease; }
.drawer-scrim.open { opacity: 1; }

/* -------- Signalen -------- */
.signal { padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13px; display: flex; align-items: flex-start; gap: 10px; }
.signal:last-child { border-bottom: none; padding-bottom: 4px; }
.signal .dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 6px; background: var(--text-subtle); flex-shrink: 0; }
.signal.info .dot { background: var(--sebero); }
.signal.warning .dot { background: var(--warning); }
.signal.success .dot { background: var(--success); }
.signal.error .dot { background: var(--error); }
.signal .body { flex: 1; min-width: 0; }
.signal .title { font-weight: 500; color: var(--text); line-height: 1.4; letter-spacing: -0.005em; }
.signal .meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* -------- Page-koppen -------- */
.page-title { font-size: 26px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.022em; color: var(--text); }
.page-sub { color: var(--text-muted); font-size: 13px; margin: 0 0 24px; letter-spacing: -0.003em; }

/* -------- Focus-card -------- */
.focus-card { background: var(--bg-ink); color: #F5F3EC; border-radius: var(--r-card); padding: 22px 24px; margin-bottom: 14px; position: relative; overflow: hidden; }
.focus-card::after { content: ''; position: absolute; top: 0; right: 0; width: 220px; height: 100%; background: radial-gradient(circle at top right, rgba(217, 119, 6, 0.22), transparent 65%); pointer-events: none; }
.focus-card .fc-head { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.focus-card .label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-hi); font-weight: 600; }
.focus-card .fc-date { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(245, 243, 236, 0.45); font-weight: 400; }
.focus-card .fc-sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(245, 243, 236, 0.3); }
.focus-card .text { font-size: 18px; font-weight: 500; margin-top: 10px; line-height: 1.5; letter-spacing: -0.015em; position: relative; z-index: 1; color: #F5F3EC; }

/* -------- Advisor-card -------- */
.advisor-card { background: var(--bg-raised); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-card); padding: 18px 22px; margin-bottom: 16px; box-shadow: var(--sh-soft); }
.advisor-card .adv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.advisor-card .adv-label-wrap { display: flex; align-items: center; gap: 7px; }
.advisor-card .adv-label-ico { width: 14px; height: 14px; color: var(--accent); display: inline-flex; }
.advisor-card .adv-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); font-weight: 600; }
.advisor-card .adv-refresh { background: transparent; border: 1px solid var(--border); color: var(--text-muted); font-size: 11px; padding: 4px 10px; border-radius: var(--r-chip); cursor: pointer; line-height: 1.4; display: inline-flex; align-items: center; gap: 5px; transition: background 0.15s, color 0.15s, border-color 0.15s; font-family: inherit; letter-spacing: 0.01em; }
.advisor-card .adv-refresh:hover:not(:disabled) { background: var(--bg-muted); color: var(--text); border-color: var(--border-strong); }
.advisor-card .adv-refresh:disabled { opacity: 0.55; cursor: not-allowed; }
.advisor-card .adv-refresh .ico { width: 12px; height: 12px; }
.advisor-card .adv-refresh.loading .ico { animation: spin 1200ms linear infinite; }
.advisor-card .adv-action { font-size: 15.5px; font-weight: 500; color: var(--text); line-height: 1.55; letter-spacing: -0.01em; }
.advisor-card .adv-why { font-size: 13px; color: var(--text-muted); margin-top: 6px; line-height: 1.55; }
.advisor-card .adv-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.advisor-card .adv-meta .sep { width: 1px; height: 10px; background: var(--border-strong); display: inline-block; }
.advisor-card .adv-meta .meta-icn { display: inline-flex; align-items: center; gap: 5px; }
.advisor-card .adv-meta .meta-icn .ico { width: 11px; height: 11px; color: var(--text-subtle); }
.advisor-card .adv-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }
.advisor-card .adv-badge .dots { display: inline-flex; gap: 2px; }
.advisor-card .adv-badge .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-subtle); display: inline-block; }
.advisor-card .adv-badge.nu { color: var(--error); }
.advisor-card .adv-badge.nu .dots i { background: var(--error); }
.advisor-card .adv-badge.dit-uur { color: var(--accent); }
.advisor-card .adv-badge.dit-uur .dots i { background: var(--accent); }
.advisor-card .adv-badge.vandaag { color: var(--text-muted); }
.advisor-card .adv-badge.vanavond { color: var(--text-subtle); }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* -------- Tiles -------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tile { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--r-tile); padding: 16px 18px; position: relative; transition: box-shadow 0.15s, border-color 0.15s; }
.tile:hover { box-shadow: var(--sh-soft); border-color: var(--border-strong); }
.tile .tile-ico { position: absolute; top: 14px; right: 16px; color: var(--text-subtle); width: 15px; height: 15px; }
.tile .label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 600; padding-right: 22px; }
.tile .value { font-size: 28px; font-weight: 600; margin-top: 10px; display: flex; align-items: baseline; gap: 7px; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -0.022em; color: var(--text); }
.tile .value .unit { font-size: 12px; color: var(--text-muted); font-weight: 400; letter-spacing: 0; }
.tile .value .err-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--error); align-self: center; margin-right: 2px; }
.tile .value .mini-ico { width: 20px; height: 20px; color: var(--text-muted); align-self: center; margin-right: 2px; }
.tile .note { font-size: 11px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }

/* -------- Section-cards -------- */
.section-card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px 22px; margin-bottom: 12px; }
.section-card h3 { margin: 0 0 12px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.section-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text); }
.section-muted { color: var(--text-muted); font-size: 13px; line-height: 1.55; font-style: normal; }

/* -------- All-day chips -------- */
.allday-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.allday-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-size: 12px; background: var(--bg-muted); color: var(--text); border: 1px solid var(--border); letter-spacing: -0.003em; }
.allday-chip .dot2 { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0; }

/* -------- Timeline -------- */
.timeline { position: relative; padding-left: 56px; }
.timeline .hour-marker { position: absolute; left: 0; width: 48px; text-align: right; font-size: 11px; color: var(--text-subtle); font-variant-numeric: tabular-nums; padding-right: 10px; letter-spacing: 0.02em; }
.timeline .hour-marker::after { content: ''; position: absolute; left: 48px; top: 7px; width: 6px; height: 1px; background: var(--border); }
.timeline .now-line { position: absolute; left: 56px; right: 0; height: 0; border-top: 1px solid var(--accent); z-index: 5; pointer-events: none; }
.timeline .now-line::before { content: ''; position: absolute; left: -4px; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.event { position: absolute; left: 56px; right: 4px; border-radius: 8px; padding: 8px 12px; background: var(--bg-raised); border: 1px solid var(--border); border-left: 2px solid var(--text-muted); font-size: 13px; overflow: hidden; box-shadow: var(--sh-soft); }
.event.b2b { box-shadow: var(--sh-soft), inset 0 2px 0 var(--accent-soft); }
.event .ev-title { font-weight: 500; line-height: 1.3; color: var(--text); letter-spacing: -0.008em; }
.event .ev-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; font-variant-numeric: tabular-nums; letter-spacing: -0.003em; }
.event.sjors-sebero { border-left-color: var(--sebero); }
.event.info-sebero { border-left-color: var(--info-sebero); }
.event.sjors-tfs { border-left-color: var(--tfs); }
.event.info-tfs { border-left-color: var(--info-tfs); }
.event.prive { border-left-color: var(--prive); }

/* -------- Account-chips -------- */
.acc-chip { display: inline-block; padding: 1px 7px; font-size: 10px; border-radius: 4px; margin-left: 8px; font-weight: 500; vertical-align: 1px; text-transform: none; letter-spacing: 0.01em; background: var(--bg-muted); color: var(--text-muted); border: 1px solid var(--border); }
.acc-chip.sjors-sebero { color: var(--sebero); }
.acc-chip.info-sebero { color: var(--info-sebero); }
.acc-chip.sjors-tfs { color: var(--tfs); }
.acc-chip.info-tfs { color: var(--info-tfs); }
.acc-chip.prive { color: var(--prive); }

/* -------- Mail rows -------- */
.mailx { padding: 12px 0; border-bottom: 1px solid var(--border); position: relative; }
.mailx:last-child { border: 0; padding-bottom: 0; }
.mailx .mx-sender { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; align-items: center; font-variant-numeric: tabular-nums; }
.mailx .mx-sender > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mailx .mx-subject { font-weight: 500; font-size: 14px; line-height: 1.4; color: var(--text); letter-spacing: -0.008em; }
.mailx.unread .mx-subject { font-weight: 700; }
.mailx.unread .mx-subject::before { content: '•'; color: var(--accent); margin-right: 7px; font-size: 18px; line-height: 0; position: relative; top: -2px; }
.mailx .mx-summary { font-size: 13px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }

/* -------- Skeletons -------- */
.skeleton { background: linear-gradient(90deg, var(--bg-muted) 0%, var(--bg-raised) 50%, var(--bg-muted) 100%); background-size: 200% 100%; animation: skel 1500ms infinite ease-in-out; border-radius: 6px; height: 14px; margin: 4px 0; display: inline-block; }
@keyframes skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* -------- Lijsten -------- */
.row-title { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin: 28px 0 12px; font-weight: 600; }
.list { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }
.list-item { padding: 13px 18px; border-bottom: 1px solid var(--border); font-size: 13px; display: flex; justify-content: space-between; align-items: center; transition: background 0.12s; gap: 16px; }
.list-item:hover { background: var(--bg-muted); }
.list-item:last-child { border-bottom: none; }
.list-item > div:first-child { min-width: 0; flex: 1; }
.list-item .meta { font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* -------- Placeholder -------- */
.placeholder { border: 1px dashed var(--border-strong); border-radius: var(--r-card); padding: 48px 32px; text-align: center; color: var(--text-muted); background: var(--bg-muted); }
.placeholder .pl-ico { width: 28px; height: 28px; color: var(--text-subtle); margin: 0 auto 14px; display: block; }
.placeholder h4 { margin: 0 0 8px; color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: -0.012em; }
.placeholder p { margin: 0; font-size: 13px; max-width: 500px; margin-inline: auto; line-height: 1.55; }

/* -------- Accounts-grid -------- */
.accounts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.acc-card { border: 1px solid var(--border); border-radius: var(--r-tile); padding: 14px 16px; font-size: 12px; background: var(--bg-raised); }
.acc-card .acc-email { font-weight: 500; font-size: 13px; color: var(--text); letter-spacing: -0.005em; }
.acc-card .acc-status { margin-top: 8px; display: flex; align-items: center; gap: 7px; color: var(--text-muted); }
.acc-card .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.acc-card .dot.pending { background: var(--warning); }
.acc-card .dot.none { background: var(--border-strong); }
.acc-card .role { color: var(--text-subtle); margin-top: 6px; font-size: 11px; }

/* -------- Weer -------- */
.wx-now { display: flex; align-items: center; gap: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.wx-now-ico { width: 54px; height: 54px; color: var(--text-muted); flex-shrink: 0; }
.wx-now-main { flex: 1; min-width: 0; }
.wx-now-temp { font-size: 36px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.028em; color: var(--text); }
.wx-now-desc { font-size: 13px; color: var(--text-muted); margin-top: 8px; letter-spacing: -0.005em; }
.wx-now-meta { font-size: 12px; color: var(--text-muted); line-height: 1.8; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wx-now-meta strong { color: var(--text); font-weight: 600; }
.wx-forecast { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--border); margin-top: 4px; }
.wx-day { padding: 14px 10px; text-align: center; border-right: 1px solid var(--border); }
.wx-day:last-child { border-right: none; }
.wx-day-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 600; }
.wx-day-ico { width: 24px; height: 24px; margin: 10px auto 6px; color: var(--text-muted); display: block; }
.wx-day-tmp { font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: -0.005em; }
.wx-day-tmp .wx-max { font-weight: 600; color: var(--text); }
.wx-day-tmp .wx-min { color: var(--text-subtle); margin-left: 6px; }
.wx-day-rain { font-size: 11px; color: var(--text-subtle); margin-top: 5px; font-variant-numeric: tabular-nums; }
.wx-tile-ico { width: 18px; height: 18px; color: var(--text-muted); align-self: center; }

/* -------- Motion -------- */
.main > * { animation: fade-up 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.main > *:nth-child(1) { animation-delay: 0ms; }
.main > *:nth-child(2) { animation-delay: 30ms; }
.main > *:nth-child(3) { animation-delay: 60ms; }
.main > *:nth-child(4) { animation-delay: 90ms; }
.main > *:nth-child(5) { animation-delay: 120ms; }
.main > *:nth-child(6) { animation-delay: 150ms; }
.main > *:nth-child(7) { animation-delay: 180ms; }
.main > *:nth-child(8) { animation-delay: 210ms; }
.main > *:nth-child(9) { animation-delay: 240ms; }
.main > *:nth-child(10) { animation-delay: 270ms; }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* -------- Focus-visible -------- */
*:focus { outline: none; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* -------- Reduced motion -------- */
@media (prefers-reduced-motion: reduce) {
  .main > *, .skeleton, .advisor-card .adv-refresh.loading .ico { animation: none !important; }
  * { transition: none !important; }
}

/* -------- Scrollbars -------- */
.main::-webkit-scrollbar, .right::-webkit-scrollbar, .nav::-webkit-scrollbar { width: 10px; height: 10px; }
.main::-webkit-scrollbar-track, .right::-webkit-scrollbar-track, .nav::-webkit-scrollbar-track { background: transparent; }
.main::-webkit-scrollbar-thumb, .right::-webkit-scrollbar-thumb, .nav::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; border: 2px solid var(--bg); }
.main::-webkit-scrollbar-thumb:hover, .right::-webkit-scrollbar-thumb:hover, .nav::-webkit-scrollbar-thumb:hover { background: var(--text-subtle); }

/* -------- Icon-sprite default sizing -------- */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.i { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; fill: none; flex-shrink: 0; }
svg.i.sm { width: 12px; height: 12px; }

/* ============================================================
   Responsive
   Onder 900px collapt layout naar single column.
   Sidebar wordt een drawer die via de hamburger opent.
   Right-panel verdwijnt onder de main (signalen komen in hun eigen section).
   ============================================================ */

@media (max-width: 1200px) {
  .app { grid-template-columns: 220px 1fr 300px; }
}

@media (max-width: 1000px) {
  .app { grid-template-columns: 220px 1fr; }
  .right { display: none; }
}

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; grid-template-rows: 56px 1fr; }
  .topbar { grid-column: 1; padding: 0 14px; gap: 10px; }
  .main { grid-column: 1; grid-row: 2; padding: 20px 16px 40px; }
  .right { display: none; }

  .sidebar {
    position: fixed; top: 0; bottom: 0; left: 0;
    width: 260px; max-width: 85vw;
    background: var(--bg-raised);
    transform: translateX(-100%); transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 2px 0 12px rgba(20, 18, 10, 0.08);
    z-index: 50;
  }
  .sidebar.open { transform: translateX(0); }

  .drawer-scrim { display: block; pointer-events: none; z-index: 40; }
  .drawer-scrim.open { pointer-events: auto; }

  .hamburger { display: inline-flex; }

  .search { display: none; }
  .quick-action span { display: none; }
  .quick-action { padding: 8px 10px; }
  .status-lamp span:last-child { display: none; }

  .page-title { font-size: 22px; }
  .focus-card .text { font-size: 16px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile .value { font-size: 24px; }
  .wx-now { flex-wrap: wrap; }
  .wx-now-meta { text-align: left; width: 100%; }
  .wx-forecast { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 400px) {
  .tiles { grid-template-columns: 1fr; }
}
