:root {
  --bg: #f0f2f5;
  --sidebar-bg: #1e293b;
  --sidebar-ink: #94a3b8;
  --sidebar-active-bg: #2563eb;
  --sidebar-active-ink: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --panel: #ffffff;
  --blue: #2563eb;
  --blue-light: #eff6ff;
  --green: #0f8a67;
  --green-light: #ecfdf5;
  --amber: #b86b00;
  --amber-light: #fffbeb;
  --rose: #c2415d;
  --rose-light: #fff1f3;
  --slate: #364152;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.1);
  --sidebar-w: 220px;
  --transition: .18s ease;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── APP LAYOUT ───────────────────────────────── */

.app {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ──────────────────────────────────── */

.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 10;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.logo-text {
  font-size: 18px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -.3px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 10px;
  flex: 1;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--sidebar-ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-align: left;
  width: 100%;
}

.nav-btn:hover {
  background: rgba(255,255,255,.07);
  color: #f1f5f9;
}

.nav-btn.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-ink);
}

.nav-btn svg { flex-shrink: 0; }

.sidebar-footer {
  padding: 14px 10px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ── THEME TOGGLE ─────────────────────────────── */

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background var(--transition);
}

.theme-toggle:hover { background: rgba(255,255,255,.07); }

.theme-toggle input { display: none; }

.toggle-slider {
  width: 34px;
  height: 20px;
  background: #475569;
  border-radius: 999px;
  position: relative;
  transition: background var(--transition);
  flex-shrink: 0;
}

.toggle-slider::after {
  content: "";
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform var(--transition);
}

.theme-toggle input:checked + .toggle-slider { background: var(--blue); }
.theme-toggle input:checked + .toggle-slider::after { transform: translateX(14px); }

.toggle-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sidebar-ink);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── MAIN CONTENT ──────────────────────────────── */

.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── TOP HEADER ───────────────────────────────── */

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px 16px;
  gap: 16px;
}

.header-left { display: flex; flex-direction: column; gap: 2px; }

h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -.3px;
}

.header-subtitle {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

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

.file-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  min-height: 36px;
  padding: 0 14px;
  transition: opacity var(--transition);
}

.file-btn:hover { opacity: .85; }
.file-btn input { display: none; }

.icon-btn {
  width: 36px;
  height: 36px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.icon-btn:hover { background: var(--line); color: var(--ink); }

/* ── STATUS BAR ────────────────────────────────── */

.status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px 14px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.85); }
}

#statusText {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

/* ── TAB CONTENT ──────────────────────────────── */

.tab-content { display: none; padding: 0 28px 28px; }
.tab-content.active { display: block; }

/* ── STATS HERO ───────────────────────────────── */

.stats-hero {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: default;
}

.stat-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

.stat-card.stat-hero {
  background: var(--ink);
  border-color: var(--ink);
}

.stat-card.stat-hero .stat-value,
.stat-card.stat-hero .stat-label { color: #fff; }

.stat-card.stat-hero .stat-icon { color: rgba(255,255,255,.8); }

.stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: var(--blue-light);
  color: var(--blue);
}

.stat-card.stat-hero .stat-icon {
  background: rgba(255,255,255,.15);
  color: #fff;
}

.stat-data { display: flex; flex-direction: column; gap: 3px; }

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -.5px;
}

.stat-label {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── OVERVIEW GRID ─────────────────────────────── */

.overview-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.overview-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

/* ── PANELS ────────────────────────────────────── */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

h3 {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── QUICK STATS ──────────────────────────────── */

.quick-stats-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.quick-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}

.quick-stat-label { color: var(--ink); }
.quick-stat-value { color: var(--blue); font-size: 12px; }
.quick-stat-sub { color: var(--muted); font-size: 11.5px; font-weight: 500; }

/* ── PARTICIPANTS BARS ─────────────────────────── */

.participants-bars,
.content-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.participant-bar,
.content-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
}

.bar-label { color: var(--ink); }
.bar-count { color: var(--muted); font-weight: 700; }

.bar-track {
  background: var(--line);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}

/* ── TOP TAGS ─────────────────────────────────── */

.top-tags-panel { margin-bottom: 0; }

.top-tags-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.top-tags-section { display: flex; flex-direction: column; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: #f1f4f8;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--slate);
  font-size: 12.5px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tag strong {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 800;
}

.message-text, .tag { font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
.tag strong { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

/* ── PARTICIPANTS FULL ─────────────────────────── */

.participants-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.participant-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.participant-row:last-child { border-bottom: 0; }

.participant-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.participant-info { flex: 1; min-width: 0; }

.participant-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}

.participant-sub {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.participant-stats {
  display: flex;
  gap: 20px;
  align-items: center;
}

.pstat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.pstat-val { font-size: 15px; font-weight: 800; color: var(--ink); }
.pstat-lbl { font-size: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

/* ── RHYTHM ────────────────────────────────────── */

.rhythm-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.rhythm-item {
  background: var(--bg);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rhythm-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.rhythm-value { font-size: 22px; font-weight: 800; color: var(--ink); }
.rhythm-sub { font-size: 11px; color: var(--muted); font-weight: 500; }

/* ── TIMING CHARTS ──────────────────────────────── */

.timing-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* ── CONTENT GRID ─────────────────────────────── */

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.panel.full-width { grid-column: 1 / -1; }

.content-full-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.content-item:last-child { border-bottom: 0; }

.content-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── EMOJI CHART ──────────────────────────────── */

.emoji-chart {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.emoji-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border-radius: 999px;
  padding: 5px 10px 5px 8px;
  font-size: 13px;
  font-weight: 600;
}

.emoji-chip strong {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}

/* ── WORD CLOUD ────────────────────────────────── */

.word-cloud { min-height: 180px; }

/* ── EXPLORER ─────────────────────────────────── */

.explorer-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  padding-left: 36px;
}

select {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  min-height: 38px;
  padding: 0 10px;
  cursor: pointer;
}

input {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  min-height: 38px;
  padding: 0 12px;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.explorer-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.view-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.view-btn {
  width: 38px;
  height: 38px;
  background: var(--panel);
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.view-btn:hover { background: var(--line); color: var(--ink); }
.view-btn.active { background: var(--ink); color: #fff; }

/* ── CHAT BUBBLES (Explorer) ─────────────────────── */

.chat-bubbles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 1px 4px;
}

.bubble-row.mine { flex-direction: row-reverse; }

.bubble-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  align-self: flex-end;
}

.bubble-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-width: 72%;
}

.bubble-row.mine .bubble-wrap { align-items: flex-end; }

.bubble-sender {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  padding: 0 4px;
}

.bubble {
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 100%;
}

.bubble-row:not(.mine) .bubble {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 4px;
}

.bubble-row.mine .bubble {
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #fff;
  border-radius: 18px 18px 4px 18px;
}

.bubble-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
}

.bubble-row.mine .bubble-meta { flex-direction: row-reverse; }

.bubble-time {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}

.bubble-type {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .6;
}

/* Compact view for explorer */
.chat-bubbles.compact .bubble-row { padding: 1px 2px; }
.chat-bubbles.compact .bubble-avatar { width: 22px; height: 22px; font-size: 9px; }
.chat-bubbles.compact .bubble { padding: 5px 9px; font-size: 12.5px; border-radius: 14px 14px 14px 4px; }
.chat-bubbles.compact .bubble-row.mine .bubble { border-radius: 14px 14px 4px 14px; }
.chat-bubbles.compact .bubble-sender { display: none; }

/* ── TOOLTIP ──────────────────────────────────── */

.tooltip {
  position: fixed;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 500;
  max-width: 220px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity .12s ease;
  box-shadow: var(--shadow-lg);
  line-height: 1.4;
}

.tooltip.visible { opacity: 1; }

/* ── CHART CANVASES ───────────────────────────── */

canvas { max-width: 100%; width: 100%; }

/* ── LOADING SCREEN ───────────────────────────── */

#loadingScreen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.loading-content {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px 44px;
  min-width: 360px;
}

.loading-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.loading-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.loading-progress-bar {
  flex: 1;
  height: 10px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.loading-progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 999px;
  transition: width .25s ease;
  width: 0%;
}

.loading-progress span {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  min-width: 48px;
  text-align: right;
}

.loading-logs {
  border-top: 1px solid var(--line);
  max-height: 140px;
  overflow-y: auto;
  padding-top: 12px;
  width: 100%;
}

.log-entry {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", "Roboto Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}

.log-entry:first-child { color: var(--ink); font-weight: 600; }

/* ── DARK MODE ────────────────────────────────── */

:root.dark {
  --bg: #0f172a;
  --ink: #f1f5f9;
  --muted: #64748b;
  --line: #1e293b;
  --panel: #1e293b;
  --slate: #94a3b8;
}

:root.dark .sidebar { background: #020617; }
:root.dark .logo-text { color: #f1f5f9; }
:root.dark .nav-btn { color: #64748b; }
:root.dark .nav-btn:hover { background: rgba(255,255,255,.06); color: #f1f5f9; }
:root.dark .nav-btn.active { background: var(--blue); color: #fff; }
:root.dark .toggle-label { color: #64748b; }
:root.dark .icon-btn { background: var(--panel); color: var(--muted); }
:root.dark .icon-btn:hover { background: var(--line); color: var(--ink); }
:root.dark .stat-card { background: var(--panel); border-color: var(--line); }
:root.dark .stat-card.stat-hero { background: #1e293b; border-color: #1e293b; }
:root.dark .panel { background: var(--panel); border-color: var(--line); }
:root.dark .tag { background: #1e293b; border-color: var(--line); color: var(--slate); }
:root.dark .message { background: var(--panel); border-color: var(--line); }
:root.dark .message:hover { border-color: #334155; }
:root.dark input, :root.dark select { background: var(--panel); border-color: var(--line); color: var(--ink); }
:root.dark input:focus, :root.dark select:focus { border-color: var(--blue); }
:root.dark .quick-stat-label { color: var(--ink); }
:root.dark .quick-stat-value { color: #60a5fa; }
:root.dark .bar-label { color: var(--ink); }
:root.dark .content-item { border-color: var(--line); }
:root.dark .view-btn { background: var(--panel); }
:root.dark .view-btn:hover { background: var(--line); }
:root.dark .view-btn.active { background: var(--blue); }
:root.dark .loading-content { background: var(--panel); border-color: var(--line); }
:root.dark .log-entry:first-child { color: #e2e8f0; }
:root.dark .stat-card.stat-hero .stat-icon { background: rgba(37,99,235,.2); }
:root.dark .stat-card.stat-hero .stat-icon svg { color: #93c5fd; }
:root.dark .stat-card.stat-hero .stat-value { color: #f1f5f9; }
:root.dark .stat-card.stat-hero .stat-label { color: #64748b; }
:root.dark .stat-card.stat-hero { background: #1e293b; border-color: #1e293b; }
:root.dark .stat-card.stat-hero .stat-icon { background: rgba(37,99,235,.25); }
:root.dark .participant-row { border-color: var(--line); }
:root.dark .content-item { border-color: var(--line); }
:root.dark .loading-progress-bar { background: var(--line); }
:root.dark .search-wrap input, :root.dark select { background: #1e293b; }
:root.dark .view-toggle { border-color: var(--line); }

/* ── RESPONSIVE ───────────────────────────────── */

@media (max-width: 1200px) {
  .stats-hero { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .timing-charts { grid-template-columns: 1fr 1fr; }
  .timing-charts .panel:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 60px; }
  .logo-text, .toggle-label, .nav-btn span { display: none; }
  .sidebar-logo { justify-content: center; padding: 18px; }
  .logo-icon { width: 32px; height: 32px; }
  .nav-btn { justify-content: center; padding: 12px; }
  .nav-btn svg { width: 20px; height: 20px; }
  .sidebar-footer { padding: 14px 10px; }
  .theme-toggle { justify-content: center; padding: 10px; }
  .stats-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid, .overview-grid-2, .content-grid { grid-template-columns: 1fr; }
  .top-tags-grid { grid-template-columns: 1fr; }
  .timing-charts { grid-template-columns: 1fr; }
  .top-header { padding: 16px 18px 12px; }
  .tab-content { padding: 0 18px 20px; }
  .status-bar { padding: 0 18px 12px; }
}

@media (max-width: 600px) {
  .stats-hero { grid-template-columns: 1fr 1fr; gap: 8px; }
  .header-left h1 { font-size: 18px; }
  .header-actions { gap: 6px; }
  .file-btn { min-height: 32px; font-size: 12px; padding: 0 10px; }
}
