/* VDVE Klantportaal — Design System (matches vanderveldeenergy.nl) */
:root {
  /* Core */
  --black: #0A0A0A;
  --charcoal: #141414;
  --grey-950: #1A1A1A;
  --grey-900: #262626;
  --grey-800: #404040;
  --grey-500: #737373;
  --grey-400: #A3A3A3;
  --grey-300: #D4D4D4;
  --grey-200: #E5E5E5;
  --grey-100: #F5F5F5;
  --grey-50: #FAFAFA;
  --white: #FFFFFF;
  --orange: #F1B707;
  --orange-light: #F5C63A;
  --orange-dark: #D89E00;
  --orange-glow: rgba(241, 183, 7, 0.35);
  --gold: #F1B707;

  /* Semantic */
  --bg: #FFFFFF;
  --bg-alt: #FAFAFA;
  --bg-card: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --fg: #0A0A0A;
  --fg-muted: #525252;
  --fg-dim: #737373;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);

  /* Status */
  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #F1B707;
  --warning-bg: rgba(241, 183, 7, 0.13);
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --info: #171717;
  --info-bg: rgba(0, 0, 0, 0.05);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  /* Layout */
  --container: 1320px;
  --gutter: 32px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;

  /* Shadow */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.16);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-size: 15px;
}

a { color: var(--fg); text-decoration: none; }
img { max-width: 100%; display: block; }

/* Typography - functional, high-clarity for app UI */
.serif { font-family: var(--font-sans); font-weight: 700; font-style: normal; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--fg-muted);
}

/* ==============================
   BUTTONS
================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 100px;
  font: 500 14px/1 var(--font-sans); cursor: pointer;
  border: 1.5px solid transparent; transition: all .25s var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--black); color: var(--white);
}
.btn-primary:hover {
  background: var(--charcoal); transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.btn-secondary {
  background: var(--white); color: var(--fg);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--fg); transform: translateY(-2px);
}
.btn-accent {
  background: var(--orange); color: var(--black);
  font-weight: 600;
}
.btn-accent:hover {
  background: var(--orange-light);
  box-shadow: 0 8px 24px var(--orange-glow);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent; color: var(--fg-muted);
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--fg); }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 15px 28px; font-size: 15px; }
.btn-block { width: 100%; }

/* ==============================
   AUTH PAGES
================================= */
.auth-body {
  min-height: 100vh; background: var(--bg-alt);
  position: relative; overflow: hidden;
}
.auth-body::before {
  content: '';
  position: absolute; top: -300px; right: -300px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--orange-glow), transparent 60%);
  filter: blur(60px); z-index: 0;
}
.auth-wrap {
  min-height: 100vh; display: grid;
  grid-template-columns: 1fr 1fr; gap: 60px;
  max-width: 1200px; margin: 0 auto;
  padding: 40px 32px; align-items: center;
  position: relative; z-index: 1;
}
.auth-brand {
  position: absolute; top: 40px; left: 40px;
  display: flex; align-items: center; gap: 12px;
  z-index: 2;
}
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--black); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px;
  letter-spacing: -0.02em;
}
.brand-name { font-weight: 700; font-size: 15px; color: var(--fg); letter-spacing: -0.01em; }
.brand-sub { font-size: 12px; color: var(--fg-muted); }

.auth-card {
  background: var(--bg-card); padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-width: 480px; width: 100%;
  justify-self: end;
}
.auth-card h1 {
  font-weight: 700;
  font-size: 28px; margin-bottom: 8px;
  letter-spacing: -.01em; line-height: 1.2;
}
.auth-lead { color: var(--fg-muted); margin-bottom: 32px; font-size: 15px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--fg); margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font: 15px var(--font-sans);
  transition: all .2s;
  background: var(--white);
  color: var(--fg);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--black);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}
.row-between {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; font-size: 13px;
}
.checkbox { display: flex; align-items: center; gap: 8px; color: var(--fg-muted); cursor: pointer; }
.link { color: var(--fg); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--orange-dark); }
.divider {
  text-align: center; margin: 24px 0; position: relative;
  color: var(--fg-dim); font-size: 13px;
}
.divider::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: var(--border); z-index: 0;
}
.divider span { background: var(--bg-card); padding: 0 12px; position: relative; z-index: 1; }
.auth-foot {
  text-align: center; margin-top: 28px;
  font-size: 13px; color: var(--fg-muted);
}

.auth-side { display: flex; flex-direction: column; gap: 14px; max-width: 400px; }
.side-card {
  background: var(--bg-card); padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex; gap: 16px; align-items: start;
  box-shadow: var(--shadow-card);
}
.side-card strong { display: block; color: var(--fg); font-size: 15px; margin-bottom: 4px; letter-spacing: -0.01em; }
.side-card span { color: var(--fg-muted); font-size: 13px; }
.check-badge {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  background: var(--black); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}

/* ==============================
   APP LAYOUT
================================= */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: var(--bg-alt); }

.sidebar {
  background: var(--black); color: rgba(255,255,255,0.75);
  padding: 24px 16px;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
}
.sidebar .brand-mark { background: var(--orange); color: var(--black); }
.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
}
.sidebar-brand .brand-name { color: white; }
.sidebar-brand .brand-sub { color: rgba(255,255,255,0.55); }

.nav { list-style: none; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: all .2s var(--ease);
  letter-spacing: -0.005em;
}
.nav a:hover { background: rgba(255,255,255,0.06); color: white; }
.nav a.active { background: var(--orange); color: var(--black); font-weight: 600; }
.nav .icon { width: 18px; height: 18px; flex-shrink: 0; }
.nav .badge {
  margin-left: auto; background: var(--orange); color: var(--black);
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 100px;
}
.nav a.active .badge { background: var(--black); color: var(--orange); }

.sidebar-foot {
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 12px;
}
.sidebar-foot .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.sidebar-foot .name { color: white; font-size: 13px; font-weight: 600; }
.sidebar-foot .role { font-size: 11px; color: rgba(255,255,255,0.5); }

.main { padding: 32px 40px 60px; overflow-x: hidden; }
.topbar {
  display: flex; justify-content: space-between; align-items: end;
  padding-bottom: 32px; margin-bottom: 8px;
  gap: 20px; flex-wrap: wrap;
}
.topbar h1 {
  font-weight: 700;
  font-size: 26px; letter-spacing: -.01em; line-height: 1.2;
}
.topbar p { color: var(--fg-muted); font-size: 15px; margin-top: 6px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.notif-btn {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; transition: all .2s;
}
.notif-btn:hover { border-color: var(--fg); }
.notif-btn::after {
  content: ''; position: absolute; top: 10px; right: 10px;
  width: 8px; height: 8px; background: var(--orange); border-radius: 50%;
  border: 2px solid var(--white);
}

/* ==============================
   CARDS
================================= */
.card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px; box-shadow: var(--shadow-card);
  transition: box-shadow .3s var(--ease);
}
.card-hd {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  gap: 16px; flex-wrap: wrap;
}
.card-hd h3 {
  font-size: 17px; font-weight: 700; letter-spacing: -.01em;
}

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-main { grid-template-columns: 1fr 360px; }

/* STAT CARD */
.stat-card {
  background: var(--bg-card); padding: 24px;
  border-radius: var(--radius); border: 1px solid var(--border);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.stat-card .stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-alt); color: var(--fg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.stat-card.warm .stat-icon { background: var(--orange); color: var(--black); }
.stat-card.dark .stat-icon { background: var(--black); color: var(--orange); }
.stat-card .label { font-size: 13px; color: var(--fg-muted); font-weight: 500; margin-bottom: 6px; }
.stat-card .value {
  font-weight: 700;
  font-size: 22px; color: var(--fg); letter-spacing: -.01em; line-height: 1.2;
}
.stat-card .sub { font-size: 13px; color: var(--fg-muted); margin-top: 8px; line-height: 1.4; }
.stat-card .trend { color: var(--success); font-weight: 600; }
.stat-card .trend.down { color: var(--danger); }

/* STATUS CHIP */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
  border: 1px solid transparent;
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-success { background: var(--success-bg); color: #047857; }
.chip-warning { background: var(--warning-bg); color: #a37a04; }
.chip-info { background: var(--info-bg); color: var(--fg); }
.chip-danger { background: var(--danger-bg); color: #b91c1c; }
.chip-gray { background: var(--grey-100); color: var(--fg-muted); }
.chip-gold { background: var(--orange); color: var(--black); border: none; }
.chip-gold::before { background: var(--black); }

/* PROGRESS */
.progress {
  background: var(--bg-alt); height: 8px; border-radius: 100px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--black);
  border-radius: 100px; transition: width .6s var(--ease);
}
.progress-fill.warm { background: var(--orange); }

/* STEPPER */
.stepper { display: flex; justify-content: space-between; position: relative; margin: 4px 8px 0; }
.stepper::before {
  content: ''; position: absolute; top: 18px; left: 20px; right: 20px;
  height: 2px; background: var(--border); z-index: 0;
}
.step {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  position: relative; z-index: 1; text-align: center; flex: 1;
}
.step-dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: var(--fg-dim);
  transition: all .3s var(--ease);
}
.step.done .step-dot { background: var(--black); border-color: var(--black); color: var(--orange); }
.step.current .step-dot {
  background: var(--orange); border-color: var(--orange); color: var(--black);
  box-shadow: 0 0 0 6px var(--orange-glow);
}
.step .label { font-size: 13px; font-weight: 500; color: var(--fg-dim); line-height: 1.3; }
.step.done .label, .step.current .label { color: var(--fg); font-weight: 600; }

/* LIST */
.list { display: flex; flex-direction: column; gap: 2px; }
.list-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 14px; border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all .15s;
}
.list-item:hover { background: var(--bg-alt); border-color: var(--border); }
.list-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-alt); color: var(--fg);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 18px;
}
.list-item .title { font-weight: 600; font-size: 15px; }
.list-item .meta { font-size: 13px; color: var(--fg-muted); margin-top: 3px; line-height: 1.4; }
.list-item .actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }

/* EMPTY */
.empty {
  text-align: center; padding: 48px 20px; color: var(--fg-muted);
}
.empty .emoji { font-size: 42px; margin-bottom: 12px; opacity: 0.7; }

/* ==============================
   ONBOARDING
================================= */
.onboarding-body {
  background: var(--bg-alt); min-height: 100vh; padding: 40px 24px;
  position: relative; overflow: hidden;
}
.onboarding-body::before {
  content: '';
  position: absolute; top: -400px; right: -300px;
  width: 900px; height: 900px;
  background: radial-gradient(circle, var(--orange-glow), transparent 60%);
  filter: blur(80px); z-index: 0;
}
.onboarding-wrap { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.onb-header { text-align: center; margin-bottom: 36px; }
.onb-header h1 {
  font-weight: 700;
  font-size: 30px; margin-bottom: 8px; letter-spacing: -.01em; line-height: 1.2;
}
.onb-header p { color: var(--fg-muted); font-size: 16px; }
.onb-progress {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin-bottom: 32px;
}
.onb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); transition: all .3s var(--ease); }
.onb-dot.active { background: var(--black); width: 32px; border-radius: 100px; }
.onb-card {
  background: var(--bg-card); padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.onb-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.onb-card > p { color: var(--fg-muted); margin-bottom: 28px; font-size: 15px; line-height: 1.5; }
.onb-actions { display: flex; justify-content: space-between; margin-top: 36px; gap: 12px; }

/* CHECKBOX CARDS */
.check-card {
  display: flex; flex-direction: column; align-items: start; text-align: left;
  padding: 20px; background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer; transition: all .2s var(--ease);
  gap: 6px;
}
.check-card:hover { border-color: var(--fg); background: var(--white); }
.check-card input { margin-bottom: 6px; }
.check-card strong { font-weight: 600; }
.check-card span { font-size: 12px; color: var(--fg-muted); }

/* ==============================
   UPLOAD
================================= */
.upload-zone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 40px 20px; text-align: center;
  cursor: pointer; transition: all .2s var(--ease);
  background: var(--bg-alt);
}
.upload-zone:hover, .upload-zone.drag {
  border-color: var(--black); background: var(--white);
  transform: translateY(-2px);
}
.upload-zone .upload-icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  background: var(--black); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
}
.upload-zone strong { display: block; font-size: 15px; color: var(--fg); margin-bottom: 4px; }
.upload-zone span { font-size: 13px; color: var(--fg-muted); }
.upload-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px; margin-top: 16px;
}
.upload-item {
  aspect-ratio: 1; background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-dim); font-size: 12px; position: relative;
  text-align: center; padding: 12px;
  transition: all .2s;
}
.upload-item:hover { border-color: var(--border-strong); }
.upload-item.filled {
  background: var(--black); color: var(--orange);
  font-weight: 600; border-color: var(--black);
}
.upload-item.filled::after {
  content: '✓'; position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange); color: var(--black);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
}

/* ==============================
   CHAT
================================= */
.chat-window {
  height: 560px; display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.chat-header {
  display: flex; align-items: center; gap: 14px; padding: 18px 22px;
  background: var(--white); border-bottom: 1px solid var(--border);
}
.chat-header .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--black); color: var(--orange);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  position: relative;
}
.chat-header .avatar::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 12px; height: 12px; background: var(--success);
  border-radius: 50%; border: 2px solid var(--white);
}
.chat-header strong { font-size: 15px; letter-spacing: -0.01em; }
.chat-header span { font-size: 12px; color: var(--fg-muted); display: block; margin-top: 2px; }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 24px;
  background: var(--bg-alt);
  display: flex; flex-direction: column; gap: 14px;
}
.msg { display: flex; gap: 8px; align-items: end; max-width: 80%; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg .bubble {
  padding: 12px 16px; border-radius: 18px;
  font-size: 14px; line-height: 1.5;
  background: var(--white); border: 1px solid var(--border);
}
.msg.me .bubble { background: var(--black); color: var(--white); border: none; }
.msg .time { font-size: 11px; color: var(--fg-dim); margin-top: 4px; display: block; }
.msg.me .time { color: var(--fg-dim); text-align: right; }

.chat-input {
  display: flex; gap: 8px; padding: 16px; background: var(--white);
  border-top: 1px solid var(--border);
}
.chat-input input {
  flex: 1; border: 1.5px solid var(--border); padding: 12px 18px;
  border-radius: 100px; font-family: inherit; font-size: 14px;
  background: var(--bg-alt);
}
.chat-input input:focus { outline: none; border-color: var(--black); background: var(--white); }
.chat-input button.btn-primary { border-radius: 50%; width: 44px; height: 44px; padding: 0; }

/* ==============================
   MONITORING
================================= */
.mon-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mon-tile {
  background: var(--bg-card); padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-card);
}
.mon-tile .mon-label { font-size: 13px; color: var(--fg-muted); font-weight: 500; }
.mon-tile .mon-value {
  font-weight: 700;
  font-size: 28px; margin-top: 6px; letter-spacing: -.01em; line-height: 1.1;
}
.mon-tile .mon-unit { font-size: 15px; color: var(--fg-muted); font-family: var(--font-sans); font-weight: 500; }

.chart-box {
  height: 280px; background: var(--bg-alt);
  border-radius: var(--radius);
  position: relative; padding: 24px;
  border: 1px solid var(--border);
}
.chart-svg { width: 100%; height: 100%; }

/* TABLE */
.table {
  width: 100%; border-collapse: collapse;
}
.table th, .table td {
  padding: 14px 8px; text-align: left;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.table th { font-size: 13px; color: var(--fg-muted); font-weight: 600; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg-alt); }

/* HERO GRADIENT CARD */
.gold-card {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--black); border: none;
}
.gold-card h2, .gold-card h3, .gold-card strong { color: var(--black); }
.dark-card {
  background: var(--black); color: var(--white); border: none;
}
.dark-card h2, .dark-card h3, .dark-card strong { color: var(--white); }
.dark-card p, .dark-card span { color: rgba(255,255,255,0.8); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; padding: 90px 20px 40px; gap: 24px; }
  .auth-card { justify-self: center; padding: 32px 24px; }
  .auth-card h1 { font-size: 32px; }
  .auth-side { max-width: 100%; }
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: static; height: auto; padding: 16px;
    flex-direction: row; align-items: center; overflow-x: auto;
  }
  .sidebar-brand { border: none; margin: 0; padding: 0 16px 0 0; border-right: 1px solid rgba(255,255,255,0.08); }
  .nav { flex-direction: row; gap: 4px; overflow-x: auto; padding: 0 12px; }
  .nav a { padding: 8px 14px; white-space: nowrap; }
  .sidebar-foot { display: none; }
  .main { padding: 24px 20px; }
  .topbar h1 { font-size: 28px; }
  .grid-2, .grid-3, .grid-4, .grid-main { grid-template-columns: 1fr; }
  .mon-tiles { grid-template-columns: 1fr 1fr; }
  .onb-card { padding: 28px 20px; }
  .onb-header h1 { font-size: 32px; }
  .stepper { overflow-x: auto; }
}
