/* ═══════════════════════════════════════════════════════════
   自媒体卡片 · Design System
   Language : Premium Creative Tool
   Palette  : Warm Neutral × Deep Violet
   ═══════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  /* Backgrounds — warm off-white layering */
  --bg:        #F2F1F8;
  --surface:   #FFFFFF;
  --surface-2: #F8F7FC;
  --surface-3: #EEEDF6;

  /* Typography */
  --text:   #1A1730;
  --text-2: #4B4868;
  --muted:  #9592B0;

  /* Borders — violet-tinted */
  --border:   rgba(91, 79, 190, 0.10);
  --border-2: rgba(91, 79, 190, 0.06);

  /* Brand — deep violet */
  --primary:       #5B4FBE;
  --primary-hover: #4C41A8;
  --primary-rgb:   91, 79, 190;
  --primary-light: rgba(91, 79, 190, 0.08);
  --gradient:      linear-gradient(135deg, #5B4FBE 0%, #7C6CE0 50%, #A78BFA 100%);

  /* Shadows — layered for depth */
  --sh-xs: 0 1px 2px rgba(26,23,48,.04);
  --sh-sm: 0 1px 3px rgba(26,23,48,.06), 0 1px 2px rgba(26,23,48,.04);
  --sh-md: 0 4px 8px -2px rgba(26,23,48,.08), 0 2px 4px -2px rgba(26,23,48,.04);
  --sh-card:
    0 0 0 1px rgba(26,23,48,.04),
    0 2px 4px rgba(26,23,48,.04),
    0 8px 20px rgba(26,23,48,.07),
    0 20px 40px rgba(26,23,48,.04);
  --sh-card-hover:
    0 0 0 1px rgba(91,79,190,.10),
    0 4px 8px rgba(26,23,48,.06),
    0 16px 36px rgba(26,23,48,.10),
    0 32px 56px rgba(26,23,48,.05);
  --sh-popover:
    0 0 0 1px rgba(26,23,48,.06),
    0 4px 8px rgba(26,23,48,.08),
    0 16px 32px rgba(26,23,48,.10);

  /* Radius */
  --r-xs:   4px;
  --r-sm:   8px;
  --r:      12px;
  --r-lg:   16px;
  --r-full: 9999px;

  /* Motion */
  --ease:     cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);
  --dur:      150ms;
  --dur-md:   220ms;

  /* Preview dot grid */
  --dot: rgba(91, 79, 190, 0.07);

  /* Sidebar width */
  --sidebar-w: 280px;
}

[data-theme="dark"] {
  --bg:        #0C0B18;
  --surface:   #121226;
  --surface-2: #1A193A;
  --surface-3: #22214C;
  --text:      #EEEEFF;
  --text-2:    #A8A6CC;
  --muted:     #6A6888;
  --border:    rgba(139, 128, 232, 0.12);
  --border-2:  rgba(139, 128, 232, 0.06);
  --primary:       #8B80E8;
  --primary-hover: #7B70D8;
  --primary-rgb:   139, 128, 232;
  --primary-light: rgba(139, 128, 232, 0.12);
  --sh-xs: 0 1px 2px rgba(0,0,0,.4);
  --sh-sm: 0 1px 3px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.4);
  --sh-md: 0 4px 8px -2px rgba(0,0,0,.5), 0 2px 4px -2px rgba(0,0,0,.4);
  --sh-card:
    0 0 0 1px rgba(255,255,255,.04),
    0 2px 4px rgba(0,0,0,.3),
    0 8px 20px rgba(0,0,0,.3),
    0 20px 40px rgba(0,0,0,.2);
  --sh-card-hover:
    0 0 0 1px rgba(139,128,232,.20),
    0 4px 8px rgba(0,0,0,.4),
    0 16px 36px rgba(0,0,0,.35),
    0 32px 56px rgba(0,0,0,.2);
  --sh-popover:
    0 0 0 1px rgba(255,255,255,.06),
    0 4px 8px rgba(0,0,0,.4),
    0 16px 32px rgba(0,0,0,.5);
  --dot: rgba(139, 128, 232, 0.06);
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button  { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* ─── Layout ─────────────────────────────────────────────── */
.workspace {
  display: grid;
  grid-template-columns: auto 420px 1fr;
  height: 100vh;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   HISTORY SIDEBAR
   ═══════════════════════════════════════════════════════════ */

.history-sidebar {
  position: relative;
  display: flex;
  width: 44px;
  transition: width var(--dur-md) var(--ease);
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow: hidden;
  z-index: 10;
}
.history-sidebar.open { width: var(--sidebar-w); }

.history-tab {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
  z-index: 2;
  flex-shrink: 0;
}
.history-tab:hover { color: var(--primary); }

.history-drawer {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--dur-md) var(--ease);
  padding-bottom: 16px;
}
.history-sidebar.open .history-drawer { opacity: 1; }

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .3px;
  text-transform: uppercase;
}

.history-hint {
  padding: 0 16px 12px;
  font-size: 11px;
  color: var(--muted);
}

.history-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px;
}

.history-item {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  margin-bottom: 2px;
  transition: background var(--dur) var(--ease);
  border: 1px solid transparent;
}
.history-item:hover {
  background: var(--primary-light);
  border-color: var(--border);
}

.history-item-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 3px;
}
.history-item-meta {
  font-size: 11px;
  color: var(--muted);
}
.history-empty {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 32px 16px;
}

/* ═══════════════════════════════════════════════════════════
   EDITOR PANEL
   ═══════════════════════════════════════════════════════════ */

.editor-panel {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow: hidden;
}

/* ─── Brand Row ──────────────────────────────────────────── */
.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 13px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.brand-info {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.4px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.page-count {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.brand-actions { display: flex; gap: 4px; }

/* ─── Icon Buttons ───────────────────────────────────────── */
.icon-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--r-sm);
  background: none;
  color: var(--muted);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn[data-active="true"] { color: var(--primary); }
.icon-btn[data-active="false"] { color: var(--muted); opacity: .7; }

/* ─── Profile Row ────────────────────────────────────────── */
.profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--surface-2);
}

.avatar-picker { flex-shrink: 0; cursor: pointer; }

.avatar-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface-3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.avatar-wrap:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.avatar-wrap img { width: 100%; height: 100%; object-fit: cover; display: none; }
.avatar-wrap img.visible { display: block; }

.avatar-placeholder { color: var(--muted); display: flex; }

.profile-inputs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.profile-input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  width: 100%;
  transition: color var(--dur);
}
.name-input   { font-weight: 600; font-size: 14px; letter-spacing: -.2px; }
.handle-input { font-size: 12px; color: var(--muted); }
.profile-input::placeholder { color: var(--muted); opacity: .7; }
.profile-input:focus { color: var(--text); }

/* ─── Toolbar ────────────────────────────────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.tool-btn, .tool-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border: none;
  border-radius: var(--r-xs);
  background: none;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  user-select: none;
  white-space: nowrap;
}
.tool-btn:hover, .tool-label:hover {
  background: var(--surface-2);
  color: var(--text);
}
.tool-label { cursor: pointer; }

.toolbar-sep {
  width: 1px;
  height: 16px;
  background: var(--border);
  margin: 0 3px;
  flex-shrink: 0;
}
.toolbar-flex { flex: 1; }

/* ─── Design Settings Popover ────────────────────────────── */
.tool-details { position: relative; }
.tool-details[open] .design-toggle { background: var(--primary-light); color: var(--primary); }

.design-toggle { gap: 5px; }

.design-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--sh-popover);
  z-index: 200;
  width: 256px;
}

.design-section { margin-bottom: 14px; }
.design-section:last-child { margin-bottom: 0; }
.design-section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 8px;
}

.design-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.design-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.design-item.full { grid-column: 1 / -1; }

.design-item input[type="color"] {
  width: 100%;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  cursor: pointer;
  padding: 2px 3px;
  background: var(--surface);
}
.design-item input[type="number"],
.design-item select {
  width: 100%;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  outline: none;
  transition: border-color var(--dur);
}
.design-item input[type="number"]:focus,
.design-item select:focus { border-color: var(--primary); }

/* Theme Presets */
.theme-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.theme-preset {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 500;
  transition: all var(--dur) var(--ease);
}
.theme-preset:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.preset-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid;
  flex-shrink: 0;
  display: inline-block;
}

/* Background Swatches */
.bg-swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.bg-swatch {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  overflow: hidden;
}
.bg-swatch:hover { transform: scale(1.08); box-shadow: var(--sh-md); }
.bg-swatch.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.bg-swatch.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(var(--primary-rgb), .15);
  border-radius: 5px;
}
/* Solid color swatch — checkered to signal "use color picker" */
.bg-swatch-solid {
  background-image:
    linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
    linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
    linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0;
  background-color: #fff;
}
.bg-swatch-label {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  color: rgba(0,0,0,.55);
  text-shadow: 0 1px 2px rgba(255,255,255,.8);
  letter-spacing: .2px;
}
.bg-swatch-label.light { color: rgba(255,255,255,.85); text-shadow: 0 1px 2px rgba(0,0,0,.4); }

/* Ratio Buttons */
.ratio-btns { display: flex; gap: 6px; }
.ratio-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 4px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  transition: all var(--dur) var(--ease);
}
.ratio-btn.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.ratio-btn:hover:not(.active) {
  border-color: var(--text-2);
  color: var(--text);
}
.ratio-icon {
  display: block;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.r-square   { width: 10px; height: 10px; }
.r-portrait { width: 8px;  height: 11px; }
.r-landscape{ width: 13px; height: 9px; }

/* ─── Editor Textarea ────────────────────────────────────── */
.editor-textarea {
  flex: 1;
  padding: 18px;
  border: none;
  outline: none;
  resize: none;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text);
  background: var(--surface);
  font-family: 'Fira Code', 'SF Mono', 'Monaco', 'Consolas', monospace;
  tab-size: 2;
  transition: background var(--dur-md);
}
.editor-textarea::placeholder { color: var(--muted); opacity: .6; }
.editor-textarea:focus { background: var(--surface); }

/* ═══════════════════════════════════════════════════════════
   PREVIEW PANEL
   ═══════════════════════════════════════════════════════════ */

.preview-panel {
  display: flex;
  flex-direction: column;
  /* Dot grid background — signature design element */
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, var(--dot) 1.5px, transparent 0);
  background-size: 24px 24px;
  overflow: hidden;
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 11px;
  background: rgba(var(--bg-rgb, 242, 241, 248), 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.topbar-left { display: flex; align-items: center; gap: 10px; }
.preview-title { font-size: 13px; font-weight: 600; color: var(--text-2); }

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 500;
}

.topbar-actions { display: flex; gap: 8px; }

/* Primary Download Button */
.primary-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1px;
  box-shadow: 0 1px 3px rgba(var(--primary-rgb), .4);
  transition: opacity var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.primary-btn:hover {
  opacity: .9;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), .4);
  transform: translateY(-1px);
}
.primary-btn:active { transform: translateY(0); }
.primary-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ─── Cards Grid ─────────────────────────────────────────── */
.pages {
  flex: 1;
  overflow-y: auto;
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-content: flex-start;
}

/* ─── Card Wrapper ───────────────────────────────────────── */
.card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.card-num {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
}

.card-actions { display: flex; gap: 6px; }
.card-action-btn {
  padding: 5px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  box-shadow: var(--sh-xs);
  transition: all var(--dur) var(--ease);
}
.card-action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  box-shadow: var(--sh-sm);
}

/* ─── The Card ───────────────────────────────────────────── */
.card {
  width: 375px;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow: var(--sh-card);
  transition: transform var(--dur-md) var(--ease-out),
              box-shadow var(--dur-md) var(--ease-out);
}
.card-wrap:hover .card {
  transform: translateY(-4px);
  box-shadow: var(--sh-card-hover);
}

/* ─── Card Header ────────────────────────────────────────── */
.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 10px;
  flex-shrink: 0;
}

.card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,.3);
}

.card-avatar-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 17px;
  font-weight: 700;
  color: white;
}

.card-profile { flex: 1; min-width: 0; }
.card-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-handle {
  display: block;
  font-size: 12px;
  opacity: .5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
}

/* ─── Card Content ───────────────────────────────────────── */
/* Shared by .card-content AND .measure-el */
.card-content {
  flex: 1;
  overflow: hidden;
  padding: 4px 20px 14px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.card-content p,   .measure-el p   { margin-bottom: .8em; }
.card-content p:last-child         { margin-bottom: 0; }
.card-content h1,  .measure-el h1  { font-size: 1.35em; font-weight: 800; line-height: 1.25; margin-bottom: .5em; letter-spacing: -.3px; }
.card-content h2,  .measure-el h2  { font-size: 1.15em; font-weight: 700; line-height: 1.35; margin-bottom: .4em; letter-spacing: -.2px; }
.card-content h3,  .measure-el h3  { font-size: 1.05em; font-weight: 600; margin-bottom: .35em; }
.card-content strong               { font-weight: 800; }
.card-content em                   { font-style: italic; }
.card-content ul, .card-content ol,
.measure-el ul, .measure-el ol     { padding-left: 1.3em; margin-bottom: .8em; }
.card-content li, .measure-el li   { margin-bottom: .28em; }

.card-content blockquote,
.measure-el blockquote {
  border-left: 3px solid var(--card-accent, #5B4FBE);
  padding: 8px 14px;
  margin: .9em 0;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  opacity: .78;
  background: rgba(var(--primary-rgb, 91,79,190), .05);
}

.card-content hr,  .measure-el hr  { border: none; border-top: 1px solid; opacity: .12; margin: 1em 0; }
.card-content img  { max-width: 100%; border-radius: 8px; margin: .5em 0; display: block; }
.card-content code { font-family: 'Fira Code', 'SF Mono', monospace; font-size: .82em; padding: 2px 5px; border-radius: 4px; background: rgba(0,0,0,.06); }
.card-content pre  { padding: 10px 14px; border-radius: 8px; margin: .9em 0; overflow-x: auto; background: rgba(0,0,0,.05); font-size: .82em; }
.card-content pre code { background: none; padding: 0; }

/* ─── Card Footer ────────────────────────────────────────── */
.card-footer {
  padding: 6px 18px 12px;
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}
.card-page-num {
  font-size: 11px;
  font-weight: 500;
  opacity: .35;
  letter-spacing: .5px;
}

/* ─── Empty State ────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 64px 40px;
  text-align: center;
}

.empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 4px;
}

.empty-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.3px;
}

.empty-desc {
  font-size: 13px;
  color: var(--muted);
  max-width: 260px;
  line-height: 1.7;
}

/* ─── Measure El Override ────────────────────────────────── */
.measure-el {
  position: fixed !important;
  left: -9999px !important;
  top: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  flex: none !important;
  overflow: visible !important;
  height: auto !important;
}

/* ─── Scrollbars ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
