/* ============================================================
   Reputation Dashboard — design system
   Direction: warm-modern editorial. Cream surfaces, refined
   violet accent, characterful serif display, geometric sans UI.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* ---- Light theme (default) ---- */
  --canvas:        #FAF7F1;
  --canvas-deep:   #F4EFE5;
  --surface:       #FFFFFF;
  --surface-2:     #FBF8F2;
  --surface-3:     #F3EEE4;
  --border:        #EAE4D5;
  --border-soft:   #F0EADD;

  --ink:           #1C1814;
  --ink-2:         #3F392F;
  --muted:         #7A7060;
  --muted-2:       #9E9484;

  --violet:        #6E55FF;
  --violet-2:      #5942E8;
  --violet-soft:   #EFEAFF;
  --violet-deep:   #2E1C8A;

  --pos:           #2F9E7B;
  --pos-soft:      #DFF3EB;
  --neu:           #9B8E70;
  --neu-soft:      #EFE9DA;
  --neg:           #C2453F;
  --neg-soft:      #F6E2E0;
  --warn:          #C28935;
  --warn-soft:     #F4E8D2;

  --shadow-xs:     0 1px 2px rgba(40, 30, 16, 0.05);
  --shadow-sm:     0 2px 6px rgba(40, 30, 16, 0.06), 0 1px 2px rgba(40, 30, 16, 0.04);
  --shadow-md:     0 12px 28px -16px rgba(40, 30, 16, 0.18), 0 2px 6px rgba(40, 30, 16, 0.05);
  --shadow-lg:     0 24px 60px -24px rgba(40, 30, 16, 0.25), 0 4px 12px rgba(40, 30, 16, 0.06);
  --shadow-violet: 0 24px 60px -20px rgba(110, 85, 255, 0.45);

  --grain-color:   0.12, 0.10, 0.07;  /* RGB for noise overlay */
  --grain-opacity: 0.4;
  --grain-blend:   multiply;

  --bg-blob-1:     rgba(110, 85, 255, 0.08);
  --bg-blob-2:     rgba(194, 137, 53, 0.06);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-full: 999px;

  --font-display: 'Bricolage Grotesque', 'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-sans:    'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, 'Menlo', monospace;
}

/* ---- Dark theme ---- */
[data-theme="dark"] {
  --canvas:        #14110C;
  --canvas-deep:   #0D0B08;
  --surface:       #1C1812;
  --surface-2:     #221E16;
  --surface-3:     #2B261C;
  --border:        #3A3328;
  --border-soft:   #2B2620;

  --ink:           #F2EBDC;
  --ink-2:         #D8CFBB;
  --muted:         #9E9079;
  --muted-2:       #75694F;

  --violet:        #9580FF;
  --violet-2:      #8270FF;
  --violet-soft:   rgba(149, 128, 255, 0.16);
  --violet-deep:   #5A45D9;

  --pos:           #6BD0AC;
  --pos-soft:      rgba(107, 208, 172, 0.14);
  --neu:           #B9AB89;
  --neu-soft:      rgba(185, 171, 137, 0.14);
  --neg:           #EE8B85;
  --neg-soft:      rgba(238, 139, 133, 0.14);
  --warn:          #E5B469;
  --warn-soft:     rgba(229, 180, 105, 0.14);

  --shadow-xs:     0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-sm:     0 2px 6px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md:     0 12px 28px -16px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg:     0 24px 60px -24px rgba(0, 0, 0, 0.7), 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-violet: 0 24px 60px -20px rgba(149, 128, 255, 0.5);

  --grain-color:   0.92, 0.86, 0.74;
  --grain-opacity: 0.06;
  --grain-blend:   screen;

  --bg-blob-1:     rgba(149, 128, 255, 0.10);
  --bg-blob-2:     rgba(212, 156, 78, 0.05);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background-color: var(--canvas);
  background-image:
    radial-gradient(900px 600px at 88% -10%, var(--bg-blob-1), transparent 60%),
    radial-gradient(700px 500px at -10% 0%, var(--bg-blob-2), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
  transition: background-color .25s ease, color .25s ease;
}

/* Grain — light theme: dark noise, multiply */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.10 0 0 0 0 0.07 0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Grain — dark theme: light noise, screen */
[data-theme="dark"] body::before {
  opacity: 0.07;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='nd'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 0.95 0 0 0 0 0.82 0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23nd)'/></svg>");
}

/* Display & headings — modern grotesque (Bricolage), tight tracking */
.display, .ds {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 72;
}

/* Emphasis word: weight + violet accent, no italic */
h1 em, h2 em, .display em, .ds em {
  font-style: normal;
  color: var(--violet);
  font-weight: 700;
}

h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.012em; color: var(--ink); }

/* ============================================================
   Layout: shell (sidebar + workspace)
   ============================================================ */

.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.sidebar {
  background: var(--canvas-deep);
  background-image: linear-gradient(180deg, var(--canvas-deep) 0%, color-mix(in oklab, var(--canvas-deep) 92%, var(--violet) 8%) 100%);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  transition: background-color .25s ease, border-color .25s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 25%, #B7A6FF 0%, transparent 55%),
    linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
  box-shadow: 0 6px 18px -6px rgba(110, 85, 255, 0.6), inset 0 1px 0 rgba(255,255,255,0.4);
  display: grid; place-items: center;
}
.brand-mark svg { width: 18px; height: 18px; color: #fff; }
.brand-name { font-family: var(--font-display); font-size: 22px; line-height: 1; letter-spacing: -0.04em; font-weight: 600; font-variation-settings: "opsz" 36; }
.brand-name em { font-style: normal; color: var(--violet); font-weight: 700; }

.search-input {
  width: 100%;
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 9px 12px 9px 34px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink-2);
  outline: none;
  transition: border-color .15s, background .15s;
}
.search-input:focus { border-color: var(--violet); background: #fff; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted-2); width: 14px; height: 14px; }

.nav-section { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-2); padding: 0 10px 6px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: var(--r-md);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s, transform .15s;
}
.nav-link:hover { background: color-mix(in oklab, var(--surface) 60%, transparent); text-decoration: none; }
.nav-link svg { width: 16px; height: 16px; color: var(--muted); transition: color .15s; }
.nav-link.active {
  background: var(--surface);
  background-image: linear-gradient(180deg, var(--surface) 0%, color-mix(in oklab, var(--surface) 85%, var(--violet) 15%) 100%);
  color: var(--violet);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--border-soft);
}
[data-theme="dark"] .nav-link.active {
  background-image: linear-gradient(180deg, var(--surface) 0%, color-mix(in oklab, var(--surface) 70%, var(--violet) 30%) 100%);
  box-shadow: 0 0 0 1px var(--border-soft), 0 6px 16px -8px rgba(149, 128, 255, 0.4);
}
.nav-link.active svg { color: var(--violet); }

.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 10px; }

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: color-mix(in oklab, var(--surface) 65%, transparent);
  border-radius: var(--r-md);
  font-size: 13px;
}
.avatar {
  width: 28px; height: 28px; border-radius: 9px;
  background: linear-gradient(135deg, #FFC78A 0%, #E0A0FF 100%);
  color: #3F2A14;
  display: grid; place-items: center;
  font-weight: 600; font-size: 12px;
  box-shadow: var(--shadow-xs);
}
.user-email { color: var(--ink-2); font-size: 12.5px; }
.user-meta { color: var(--muted); font-size: 11px; }

/* ============================================================
   Workspace + topbar
   ============================================================ */

.workspace { position: relative; padding: 24px 32px 40px; max-width: 1440px; }

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.topbar h1 {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 72;
}
.topbar h1 em { font-style: normal; color: var(--violet); font-weight: 700; }
.topbar .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-full);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn svg { width: 14px; height: 14px; }

.btn-ghost { background: transparent; border-color: var(--border); color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface); }

.btn-primary {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-2) 100%);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(110, 85, 255, 0.6);
}
.btn-primary:hover { box-shadow: 0 10px 24px -10px rgba(110, 85, 255, 0.7); }

.btn-pill {
  padding: 6px 14px;
  font-size: 12.5px;
  background: var(--violet-soft);
  color: var(--violet-2);
  border-radius: var(--r-full);
  font-weight: 500;
  border: none;
  cursor: pointer;
}
.btn-pill:hover { background: #E5DEFF; }

.btn-danger { background: var(--neg-soft); color: var(--neg); }
.btn-danger:hover { background: #F0CFCB; }

.btn-sm { padding: 6px 12px; font-size: 12.5px; }

/* ============================================================
   Cards
   ============================================================ */

.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  position: relative;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.card-head h2 { font-size: 15px; font-weight: 600; }
.card-head .action { margin-left: auto; color: var(--muted); font-size: 12px; text-decoration: none; }

/* Stat card */
.stat-card { padding: 16px 18px; min-height: 110px; }
.stat-card .label { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; }
.stat-card .value {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.045em;
  margin: 8px 0 6px;
  color: var(--ink);
  font-weight: 600;
  font-variation-settings: "opsz" 96;
}
.stat-card .value em { font-style: normal; color: var(--violet); font-weight: 700; font-size: 0.75em; }
.stat-card .meta { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.stat-card .meta.pos { color: var(--pos); }
.stat-card .meta.neg { color: var(--neg); }

.stat-icon {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--violet-soft);
  color: var(--violet-2);
  margin-bottom: 6px;
}
.stat-icon svg { width: 16px; height: 16px; }
.stat-icon.pos { background: var(--pos-soft); color: var(--pos); }
.stat-icon.warn { background: var(--warn-soft); color: var(--warn); }
.stat-icon.neg { background: var(--neg-soft); color: var(--neg); }

/* Featured (gradient) card */
.featured {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,0.16), transparent 60%),
    linear-gradient(160deg, #8170FF 0%, var(--violet) 38%, var(--violet-deep) 100%);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-violet);
  overflow: hidden;
}
.featured::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n2'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n2)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.5;
}
.featured h2 { color: rgba(255,255,255,0.95); font-size: 13px; font-weight: 500; letter-spacing: 0.02em; }
.featured .pill {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--r-full);
  padding: 4px 10px;
  font-size: 11px;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
}

/* ============================================================
   Tables
   ============================================================ */

.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}
.tbl thead th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 500;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border-soft);
  background: transparent;
}
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--ink-2);
  vertical-align: middle;
}
.tbl tbody tr:last-child td { border-bottom: none; }

.tbl-wrap { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--border-soft); box-shadow: var(--shadow-sm); overflow: hidden; }
.tbl-foot { padding: 12px 14px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--border-soft); background: var(--surface-2); }

/* Row leading: avatar + name */
.row-lead { display: flex; align-items: center; gap: 11px; }
.row-avatar {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, #A993FF, #6E55FF);
  box-shadow: var(--shadow-xs);
}
.row-avatar.c1 { background: linear-gradient(135deg, #FFB373, #FF7A3D); }
.row-avatar.c2 { background: linear-gradient(135deg, #88D7B5, #2F9E7B); }
.row-avatar.c3 { background: linear-gradient(135deg, #FFCC73, #E89A22); }
.row-avatar.c4 { background: linear-gradient(135deg, #F394A3, #C2453F); }
.row-avatar.c5 { background: linear-gradient(135deg, #A993FF, #6E55FF); }
.row-avatar.c6 { background: linear-gradient(135deg, #7CB6FF, #3A78D6); }
.row-name { font-weight: 500; color: var(--ink); line-height: 1.2; }
.row-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.2; }

/* ============================================================
   Pills / chips
   ============================================================ */

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 500;
  border-radius: var(--r-full);
  background: var(--surface-3);
  color: var(--ink-2);
  border: 1px solid var(--border-soft);
  white-space: nowrap;
}
.chip-pos { background: var(--pos-soft); color: var(--pos); border-color: transparent; }
.chip-neu { background: var(--neu-soft); color: var(--neu); border-color: transparent; }
.chip-neg { background: var(--neg-soft); color: var(--neg); border-color: transparent; }
.chip-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip-violet { background: var(--violet-soft); color: var(--violet-2); border-color: transparent; }

.priority {
  font-weight: 500; font-size: 11.5px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.priority-high { background: var(--neg-soft); color: var(--neg); }
.priority-med { background: var(--warn-soft); color: var(--warn); }
.priority-low { background: var(--pos-soft); color: var(--pos); }

.stars { color: #E5A93F; letter-spacing: 1px; font-size: 13px; white-space: nowrap; }
.stars .off { color: var(--border); }

/* ============================================================
   Forms
   ============================================================ */

.field {
  display: flex; flex-direction: column; gap: 4px;
}
.field-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; }
.field-input, .field-select, .field-textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field-input:focus, .field-select:focus, .field-textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(110, 85, 255, 0.13);
}
.field-textarea { font-family: var(--font-mono); font-size: 12.5px; resize: vertical; line-height: 1.5; }

/* ============================================================
   Dry-run banner
   ============================================================ */

.dry-banner {
  background: linear-gradient(90deg, #FFE9D1 0%, #FFD9A9 50%, #FFE9D1 100%);
  color: #5A2A0E;
  font-size: 12.5px;
  text-align: center;
  padding: 7px 16px;
  border-bottom: 1px solid #F4C58A;
  position: relative;
  z-index: 10;
}
.dry-banner strong { font-weight: 600; }
[data-theme="dark"] .dry-banner {
  background: linear-gradient(90deg, #3D2C13 0%, #4E3818 50%, #3D2C13 100%);
  color: #FFD9A9;
  border-bottom-color: #5A4220;
}
.dry-banner code { background: rgba(0, 0, 0, 0.08) !important; }
[data-theme="dark"] .dry-banner code { background: rgba(255, 217, 169, 0.15) !important; color: #FFE2B8; }

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: color-mix(in oklab, var(--surface) 55%, transparent);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 6px 6px 6px 12px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s;
}
.theme-toggle:hover { background: var(--surface); }
.theme-toggle-track {
  display: flex;
  background: var(--surface-3);
  border-radius: 999px;
  padding: 2px;
  gap: 0;
}
.theme-toggle-opt {
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 999px;
  color: var(--muted);
  transition: background .15s, color .15s;
}
.theme-toggle-opt svg { width: 12px; height: 12px; }
.theme-toggle-opt.active {
  background: var(--surface);
  color: var(--violet);
  box-shadow: var(--shadow-xs);
}

/* ============================================================
   Slide-over (review detail)
   ============================================================ */

#detail {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(640px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -24px 0 80px -32px rgba(40, 30, 16, 0.35);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  overflow-y: auto;
  z-index: 50;
}
#detail.open { transform: translateX(0); }

/* ============================================================
   Utility helpers
   ============================================================ */

.muted { color: var(--muted); }
.sm { font-size: 12px; }
.xs { font-size: 11px; }
.mono { font-family: var(--font-mono); }

.divider { height: 1px; background: var(--border-soft); margin: 14px 0; }

a { color: var(--violet-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.htmx-swapping { opacity: 0; transition: opacity .15s; }
.htmx-settling { opacity: 1; transition: opacity .15s; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; border: 2px solid var(--canvas); }
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }

::selection { background: rgba(110, 85, 255, 0.22); color: var(--ink); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .workspace { padding: 18px; }
}
