/* ═══════════════════════════════════════════════════════════════════════════
   CLAJAMA Design System — v2 (AEON Design Acquisition)
   
   Design heritage: ÆON's thermodynamic minimalism acquired into CLAJAMA's
   conversational operating environment. Gold + deep dark + purple accent.
   
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: var(--header-h);
  padding-bottom: calc(var(--input-h) + 16px);
  margin: 0;
  width: 100%;
  max-width: 100vw;
  position: relative;
  min-height: 100vh;
}

/* ── Ambient Background (AEON heritage) ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(196, 169, 110, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(123, 77, 255, 0.03) 0%, transparent 50%);
}

/* Ambient grid overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(196, 169, 110, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 169, 110, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* Landing page override — no fixed header or input bar */
body.landing-active {
  padding-top: 0;
  padding-bottom: 0;
}

/* Chat/dashboard pages — global input bar suppressed */
body.chat-active {
  padding-bottom: 0;
}

/* ── CSS Custom Properties ── */
:root {
  /* ── Core backgrounds (AEON deep dark) ── */
  --bg-deep:         #030406;
  --bg-soft:         #070a10;
  --bg-surface:      #0b0d12;
  --bg-panel:        rgba(7, 10, 16, 0.88);
  --bg-raised:       rgba(11, 13, 18, 0.92);

  /* ── Accent Gold (AEON primary) ── */
  --accent:          #c4a86a;
  --accent-mid:      #d8bd82;
  --accent-glow:     #e8d49a;
  --accent-soft:     rgba(196, 169, 110, 0.10);
  --accent-border:   rgba(196, 169, 110, 0.18);
  --accent-tint:     rgba(196, 169, 110, 0.06);

  /* ── Accent Purple (CLAJAMA heritage, secondary) ── */
  --accent-purple:     #7B4DFF;
  --accent-purple-mid: #9C6BFF;
  --accent-purple-tint: rgba(123, 77, 255, 0.10);

  /* ── Accent Cyan (AEON secondary) ── */
  --accent-cyan:       #00ffe0;
  --accent-cyan-tint:  rgba(0, 255, 224, 0.08);

  /* ── Status colors (AEON heritage) ── */
  --status-green:    #3ae878;
  --status-red:      #ff5a6e;
  --status-yellow:   #ffc107;

  /* ── Text ── */
  --text-primary:    rgba(255, 255, 255, 0.92);
  --text-body:       rgba(255, 255, 255, 0.80);
  --text-secondary:  rgba(255, 255, 255, 0.55);
  --text-muted:      rgba(255, 255, 255, 0.25);

  /* ── Glassmorphism borders (AEON gold-tinted) ── */
  --border-subtle:   rgba(196, 169, 110, 0.06);
  --border-light:    rgba(196, 169, 110, 0.08);
  --border-medium:   rgba(196, 169, 110, 0.12);
  --border-strong:   rgba(196, 169, 110, 0.18);

  /* ── Glows & Shadows ── */
  --glow-primary:    0 0 40px rgba(196, 169, 110, 0.25);
  --glow-subtle:     0 0 20px rgba(196, 169, 110, 0.15);
  --glow-modal:      0 0 40px rgba(196, 169, 110, 0.10);
  --shadow-modal:    0 25px 50px rgba(0, 0, 0, 0.50);
  --glow-bg:         radial-gradient(circle at 50% 0%, rgba(196, 169, 110, 0.20) 0%, transparent 70%);

  /* ── Radius ── */
  --radius-sm:       10px;
  --radius-md:       12px;
  --radius-lg:       20px;
  --radius-xl:       24px;
  --radius-pill:     50px;

  /* ── Spacing ── */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* ── Type Scale (rem = 16px) ── */
  --text-xs:   11px;
  --text-sm:   12px;
  --text-base: 13px;
  --text-md:   14px;
  --text-body: 15px;
  --text-lg:   18px;
  --text-xl:   24px;
  --text-2xl:  32px;
  --text-3xl:  42px;

  /* ── Timing ── */
  --motion-fast:  150ms ease;
  --motion-base:  240ms ease;
  --motion-slow:  400ms ease;

  /* ── Layout ── */
  --header-h:     56px;
  --sidebar-w:    240px;
  --sidebar-w-collapsed: 60px;
  --context-w:    280px;
  --context-w-wide: 320px;
  --input-h:      68px;

  /* ── Font family ── */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════════════ */

.heading-aeon {
  font-weight: 200;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.heading-xl {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 200;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.15;
}

.accent { color: var(--accent); }
.accent-cyan { color: var(--accent-cyan); }
.accent-purple { color: var(--accent-purple); }
.muted { color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS — Pill style (AEON heritage)
   ═══════════════════════════════════════════════════════════════════════════ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--motion-base);
  background: linear-gradient(135deg, var(--accent), var(--accent-mid));
  color: #030406;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(196, 169, 110, 0.20);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--motion-base);
  background: rgba(196, 169, 110, 0.10);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}
.btn-secondary:hover {
  background: rgba(196, 169, 110, 0.18);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--motion-fast);
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.btn-ghost:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

/* ── Legacy button aliases (for backward compatibility) ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--motion-base);
  border: none;
  cursor: pointer;
}
.btn.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-mid)); color: #030406; }
.btn.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(196,169,110,0.2); }
.btn.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border-medium); }
.btn.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════════════════
   APP SHELL — Three-Column Layout
   ═══════════════════════════════════════════════════════════════════════════ */

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--context-w);
  min-height: calc(100vh - var(--header-h));
}

/* ── Main Content Area ── */
.main-content {
  overflow-y: auto;
  padding: 20px 24px;
  max-width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   APP HEADER — Fixed 56px Bar
   ═══════════════════════════════════════════════════════════════════════════ */

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(3, 4, 6, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--motion-fast);
}
.header-hamburger:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-mid));
  color: #030406;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.header-logo-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-search {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-sans);
  outline: none;
  transition: all var(--motion-fast);
}
.header-search::placeholder { color: var(--text-muted); }
.header-search:focus {
  border-color: var(--accent-border);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 10px rgba(196, 169, 110, 0.08);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SIDEBAR — Semantic Command Dock
   ═══════════════════════════════════════════════════════════════════════════ */

.sidebar {
  width: var(--sidebar-w);
  background: rgba(7, 10, 16, 0.95);
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
  height: calc(100vh - var(--header-h));
  position: sticky;
  top: var(--header-h);
  padding: 12px 8px;
}

.sidebar-section {
  margin-bottom: 8px;
}

.sidebar-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 8px 12px 4px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: all var(--motion-fast);
  cursor: pointer;
}
.sidebar-item:hover {
  background: rgba(196, 169, 110, 0.06);
  color: var(--text-primary);
}
.sidebar-item.active {
  background: rgba(196, 169, 110, 0.08);
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARDS — AEON style (rounded, gold-tinted borders, hover lift)
   ═══════════════════════════════════════════════════════════════════════════ */

.card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 24px;
  transition: all var(--motion-base);
}
.card:hover {
  border-color: var(--accent-border);
  background: var(--bg-raised);
}

.card .card-icon {
  font-size: 1.3rem;
  margin-bottom: 12px;
  display: block;
}

.card h3, .card h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.card p {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHAT / MESSAGING
   ═══════════════════════════════════════════════════════════════════════════ */

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
}

.chat-msg {
  display: flex;
  gap: 10px;
  max-width: 85%;
}

.chat-msg.ai { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.chat-avatar.ai {
  background: rgba(196, 169, 110, 0.12);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}
.chat-avatar.user {
  background: rgba(123, 77, 255, 0.12);
  color: var(--accent-purple);
  border: 1px solid rgba(123, 77, 255, 0.20);
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  word-wrap: break-word;
}
.chat-bubble.ai {
  background: rgba(11, 13, 18, 0.70);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  border-radius: 20px 20px 20px 4px;
}
.chat-bubble.user {
  background: rgba(123, 77, 255, 0.10);
  border: 1px solid rgba(123, 77, 255, 0.16);
  color: var(--text-primary);
  border-radius: 20px 20px 4px 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INPUT BAR
   ═══════════════════════════════════════════════════════════════════════════ */

.input-bar-wrapper {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-w);
  right: var(--context-w);
  z-index: 40;
  padding: 10px 24px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(3,4,6,0.95) 40%);
}

.input-bar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: rgba(11, 13, 18, 0.80);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 8px 12px 8px 16px;
  backdrop-filter: blur(18px);
  transition: border-color var(--motion-fast);
}
.input-bar:focus-within {
  border-color: var(--accent-border);
  box-shadow: 0 0 12px rgba(196, 169, 110, 0.08);
}

.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 300;
  font-family: var(--font-sans);
  outline: none;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  line-height: 1.5;
  padding: 6px 0;
}
.chat-input::placeholder { color: var(--text-muted); }

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-mid));
  color: #030406;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--motion-fast);
  flex-shrink: 0;
}
.chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(196, 169, 110, 0.20);
}
.chat-send-btn:active {
  transform: scale(0.95);
}

/* Quick action chips */
.quick-chips {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.qa-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(11, 13, 18, 0.50);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--motion-fast);
}
.qa-chip:hover {
  border-color: var(--accent-border);
  background: rgba(196, 169, 110, 0.06);
  color: var(--text-primary);
}
.qa-chip:active {
  transform: scale(0.96);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL SHELL
   ═══════════════════════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-panel {
  background: rgba(7, 10, 16, 0.92);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 0 40px rgba(196, 169, 110, 0.10), 0 25px 50px rgba(0, 0, 0, 0.50);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}
.modal-header h2 {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--motion-fast);
}
.modal-close:hover {
  background: rgba(196, 169, 110, 0.08);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTEXT PANEL
   ═══════════════════════════════════════════════════════════════════════════ */

.context-panel {
  width: var(--context-w);
  background: rgba(7, 10, 16, 0.90);
  border-left: 1px solid var(--border-subtle);
  height: calc(100vh - var(--header-h));
  position: sticky;
  top: var(--header-h);
  overflow-y: auto;
  padding: 16px 12px;
}

.context-section {
  margin-bottom: 20px;
}

.context-section-title {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GRID & LAYOUT HELPERS
   ═══════════════════════════════════════════════════════════════════════════ */

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--grid-min, 260px), 1fr));
  gap: var(--grid-gap, 16px);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; }

@media (max-width: 1023px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STATS ROW (AEON heritage)
   ═══════════════════════════════════════════════════════════════════════════ */

.stats-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-value {
  font-size: 28px;
  font-weight: 200;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════════════════════ */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}
th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-muted);
  font-weight: 400;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(196, 169, 110, 0.03);
}
td {
  padding: 10px 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════════════════ */

.input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 300;
  font-family: var(--font-sans);
  outline: none;
  transition: all var(--motion-fast);
}
.input::placeholder { color: var(--text-muted); }
.input:focus {
  border-color: var(--accent-border);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 8px rgba(196, 169, 110, 0.06);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION DIVIDERS
   ═══════════════════════════════════════════════════════════════════════════ */

.section-divider {
  border: none;
  height: 1px;
  background: var(--border-subtle);
  margin: 0;
}

.section-divider-lg {
  margin: 40px 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE: MOBILE (< 640px)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 639px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  
  .sidebar { display: none; }
  .context-panel { display: none; }
  
  .header-hamburger { display: flex; }
  .header-search { display: none; }
  
  .input-bar-wrapper {
    left: 0;
    right: 0;
    padding: 8px 12px 12px;
  }
  
  .chat-msg-content { max-width: 88%; }
  .chat-bubble { font-size: 15px; padding: 10px 14px; }
  .chat-input { font-size: 15px; padding: 11px 14px; min-height: 40px; }
  .chat-send-btn { width: 40px; height: 40px; }

  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-panel {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE: TABLET (640–1023px)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 640px) and (max-width: 1023px) {
  .app-shell {
    grid-template-columns: 60px 1fr;
  }
  
  .sidebar { width: 60px; }
  .sidebar-item span { display: none; }
  .sidebar-label { display: none; }
  .context-panel { position: fixed; right: -320px; transition: right var(--motion-base); z-index: 45; }
  .context-panel.open { right: 0; }
  
  .input-bar-wrapper {
    left: 60px;
    right: 0;
  }

  .header-hamburger { display: flex; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE: DESKTOP (1024px+)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 1024px) {
  .header-hamburger { display: none; }
  
  .app-shell {
    grid-template-columns: var(--sidebar-w) 1fr var(--context-w);
  }
}

@media (min-width: 1280px) {
  :root {
    --context-w: 320px;
  }
}
