/* ==========================================================================
   IRGC Mouthpiece Browser — Left Sidebar + Scroll Rail Layout
   ========================================================================== */

:root {
  --bg-base: #090d16;
  --bg-navbar: rgba(13, 17, 28, 0.92);
  --bg-canvas: #0f1422;
  --bg-paper: #131929;
  --bg-card: rgba(22, 30, 49, 0.85);
  --bg-card-hover: rgba(28, 39, 64, 0.95);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(56, 189, 248, 0.4);
  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --primary: #38bdf8;
  --primary-dim: rgba(56, 189, 248, 0.12);
  --echo-highlight: rgba(0, 120, 255, 0.32);
  --echo-border: #0078ff;
  --echo-active-highlight: rgba(255, 140, 0, 0.45);
  --echo-active-border: #ff8c00;
  --islamist-highlight: rgba(180, 30, 30, 0.35);
  --islamist-border: #b41e1e;
  --islamist-active-highlight: rgba(255, 140, 0, 0.45);
  --islamist-active-border: #ff8c00;
  --tag-bg: #1d4ed8;
  --tag-color: #ffffff;
  --islamist-tag-bg: #991b1b;
  --user-highlight: rgba(16, 185, 129, 0.22);
  --user-tag-bg: #059669;
  --green-accent: #10b981;
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --sidebar-w: 140px;
  --rail-w: 22px;
}

body.light-theme {
  --bg-base: #f4f6fa;
  --bg-navbar: rgba(255, 255, 255, 0.92);
  --bg-canvas: #ffffff;
  --bg-paper: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --border-color: rgba(0, 0, 0, 0.09);
  --border-accent: rgba(2, 132, 199, 0.4);
  --text-main: #0f172a;
  --text-body: #1e293b;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --primary: #0284c7;
  --primary-dim: rgba(2, 132, 199, 0.08);
  --echo-highlight: rgba(0, 100, 220, 0.22);
  --echo-border: #0064dc;
  --echo-active-highlight: rgba(255, 140, 0, 0.35);
  --echo-active-border: #d97706;
  --islamist-highlight: rgba(180, 30, 30, 0.22);
  --islamist-border: #b41e1e;
  --tag-bg: #0284c7;
  --islamist-tag-bg: #991b1b;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-base);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
}
#app { display: flex; min-height: 100vh; }
.hidden { display: none !important; }

/* ==========================================================================
   LEFT SIDEBAR — fixed, always visible, overwatch-style
   ========================================================================== */
.left-sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-navbar);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--border-color);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 8px 6px;
  gap: 3px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.left-sidebar::-webkit-scrollbar { width: 3px; }
.left-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.ls-brand {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  text-align: center;
  padding: 4px 0 6px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4px;
  line-height: 1.3;
  user-select: none;
}

.ls-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ls-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-body);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.ls-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-accent);
  color: var(--text-main);
}
.ls-btn.active {
  background: var(--primary);
  color: #090d16;
  border-color: var(--primary);
}

.ls-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
  text-decoration: none;
}
.ls-btn-sm:hover { background: rgba(255,255,255,0.1); color: var(--text-main); }

.ls-page-info {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-dim);
  font-family: 'Fira Code', monospace;
  text-align: center;
  padding: 2px 0;
  user-select: none;
}

.ls-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}

.ls-spacer { flex: 1; }

/* Propagandist dropdown inside sidebar */
.propagandist-wrap-ls { position: relative; }
.prop-btn-ls { gap: 4px; }

.red-dot {
  width: 5px; height: 5px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 4px #ef4444;
  flex-shrink: 0;
}

.prop-dropdown {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 4px;
  min-width: 220px;
  max-height: 380px;
  overflow-y: auto;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  z-index: 200;
  padding: 3px 0;
}
.prop-dropdown.open { display: block; }

.prop-dropdown-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: background 0.1s;
}
.prop-dropdown-item:hover { background: rgba(255,255,255,0.08); color: var(--text-main); }
.prop-dropdown-item.active { background: var(--primary); color: #090d16; }
.prop-dropdown-item .echo-count { font-family: 'Fira Code', monospace; font-size: 9px; opacity: 0.7; }

/* ==========================================================================
   SCROLL RAIL — paragraph jump buttons along left edge of content
   ========================================================================== */
.scroll-rail {
  position: fixed;
  left: var(--sidebar-w);
  top: 0;
  bottom: 0;
  width: var(--rail-w);
  background: rgba(0, 0, 0, 0.25);
  border-right: 1px solid var(--border-color);
  z-index: 50;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  padding: 2px 0;
}
.scroll-rail::-webkit-scrollbar { display: none; }

.rail-tick {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: 'Fira Code', monospace;
  font-size: 7px;
  cursor: pointer;
  text-align: center;
  line-height: 1;
  min-height: 10px;
  flex-shrink: 0;
  transition: all 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rail-tick:hover { background: rgba(56, 189, 248, 0.2); color: var(--text-main); }
.rail-tick.has-echo { color: var(--echo-border); font-weight: 700; }
.rail-tick.has-islamist { color: var(--islamist-border); font-weight: 700; }
.rail-tick.has-both { background: linear-gradient(90deg, rgba(0,120,255,0.15), rgba(180,30,30,0.15)); }

/* ==========================================================================
   MAIN CONTENT — offset by sidebar + rail
   ========================================================================== */
#content {
  margin-left: calc(var(--sidebar-w) + var(--rail-w));
  flex: 1;
  overflow-y: auto;
  position: relative;
}

.view { display: none; }
.view.active { display: block; }

/* Reader */
#reader-view { padding: 6px 8px 40px; }
#reader-content { max-width: 820px; margin: 0 auto; }

.reader-page {
  background: var(--bg-paper);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px 22px;
  margin-bottom: 10px;
  box-shadow: var(--card-shadow);
  font-family: 'Lora', Georgia, serif;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-body);
}

.page-header {
  font-family: 'Fira Code', monospace;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  opacity: 0.5;
}

.para-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  align-items: baseline;
  position: relative;
}

.para-num {
  font-family: 'Fira Code', monospace;
  font-size: 9px;
  color: var(--text-dim);
  width: 26px;
  flex-shrink: 0;
  text-align: right;
  user-select: none;
}
.para-num.has-echo { color: var(--primary); font-weight: 700; cursor: pointer; }
.para-num.has-echo:hover { text-decoration: underline; }

.para-content { flex: 1; text-align: justify; }

/* ==========================================================================
   WORD HIGHLIGHTING — semitransparent overlay, zero displacement
   ========================================================================== */
.word {
  display: inline;
  position: relative;
  cursor: pointer;
  transition: background-color 0.12s ease;
}
.word.selecting { background: rgba(56, 189, 248, 0.28); }
.word.selected { background: rgba(56, 189, 248, 0.42); border-radius: 2px; }

/* Western: bright blue → orange on active */
.word.echo-highlight { background: var(--echo-highlight); box-shadow: 0 1px 0 var(--echo-border); border-radius: 2px; }
.word.echo-highlight.active-echo { background: var(--echo-active-highlight) !important; box-shadow: 0 2px 0 var(--echo-active-border) !important; }
.word.echo-highlight.dimmed { opacity: 0.22; }

/* Islamist: dark red → orange on active */
.word.islamist-highlight { background: var(--islamist-highlight); box-shadow: 0 1px 0 var(--islamist-border); border-radius: 2px; }
.word.islamist-highlight.active-echo { background: var(--islamist-active-highlight) !important; box-shadow: 0 2px 0 var(--islamist-active-border) !important; }
.word.islamist-highlight.dimmed { opacity: 0.22; }

/* User annotations */
.word.user-highlight { background: var(--user-highlight); box-shadow: 0 1px 0 var(--green-accent); border-radius: 2px; }

/* Floating badges — zero displacement */
.echo-badge-top {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 0;
  font-family: -apple-system, sans-serif;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  background: var(--tag-bg);
  color: var(--tag-color);
  padding: 2px 4px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  z-index: 20;
  user-select: none;
  transition: transform 0.12s;
}
.echo-badge-top:hover { background: #2563eb; transform: translateY(-1px); }
.echo-badge-top.islamist-badge { background: var(--islamist-tag-bg); }
.echo-badge-top.islamist-badge:hover { background: #7f1d1d; }

.user-badge-top {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 0;
  font-family: -apple-system, sans-serif;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  background: var(--user-tag-bg);
  color: #fff;
  padding: 2px 4px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  z-index: 20;
  user-select: none;
}

/* ==========================================================================
   PDF VIEW
   ========================================================================== */
#pdf-view { padding: 8px; text-align: center; }
#pdf-container { display: inline-block; background: #fff; box-shadow: var(--card-shadow); border-radius: 6px; overflow: hidden; max-width: 100%; }
#pdf-canvas { display: block; max-width: 100%; height: auto; }

/* ==========================================================================
   ANALYTICS
   ========================================================================== */
#analytics-view { padding: 12px 8px 40px; max-width: 900px; margin: 0 auto; }
.analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 14px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 12px; text-align: center; }
.stat-number { font-size: 28px; font-weight: 800; color: var(--primary); font-family: 'Fira Code', monospace; }
.stat-label { font-size: 9px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
#word-cloud-container, #recent-feed { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 14px; margin-bottom: 14px; }
#word-cloud-container h2, #recent-feed h2 { font-size: 12px; font-weight: 700; margin-bottom: 10px; color: var(--text-main); }
#word-cloud { min-height: 180px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.cloud-word { display: inline-block; padding: 2px 5px; border-radius: 3px; cursor: pointer; transition: transform 0.15s; }
.cloud-word:hover { transform: scale(1.15); }

/* ==========================================================================
   POPUP, SIDEBAR, TWEETCARD, TOAST — same as before
   ========================================================================== */
.popup {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 24px); max-width: 440px;
  background: var(--bg-card); backdrop-filter: blur(20px);
  border: 1px solid var(--border-color); border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6); z-index: 1000; padding: 12px;
  animation: slideUp 0.2s ease-out;
}
@keyframes slideUp { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.popup-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.popup-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); }
.popup-close { background: none; border: none; color: var(--text-muted); font-size: 14px; cursor: pointer; padding: 2px 6px; border-radius: 4px; }
.popup-close:hover { background: rgba(255,255,255,0.1); color: var(--text-main); }
.selected-quote { font-size: 11px; font-style: italic; color: var(--text-muted); background: rgba(0,0,0,0.25); border-left: 3px solid var(--primary); border-radius: 0 4px 4px 0; padding: 5px 8px; margin-bottom: 8px; max-height: 60px; overflow-y: auto; }
#comment-input { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--border-color); border-radius: 5px; color: var(--text-main); padding: 6px 8px; font-family: inherit; font-size: 12px; resize: vertical; outline: none; margin-bottom: 6px; }
#comment-input:focus { border-color: var(--primary); }
.popup-actions { display: flex; align-items: center; gap: 6px; }
.mic-btn { background: rgba(255,255,255,0.06); border: 1px solid var(--border-color); border-radius: 4px; color: var(--text-main); padding: 4px 8px; font-size: 11px; cursor: pointer; }
.mic-btn.recording { background: #ef4444 !important; color: #fff !important; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.6; } }
.name-input { flex: 1; background: rgba(0,0,0,0.3); border: 1px solid var(--border-color); border-radius: 4px; color: var(--text-main); padding: 4px 8px; font-size: 11px; outline: none; }
.save-btn { background: var(--primary); color: #090d16; border: none; border-radius: 4px; padding: 4px 12px; font-size: 11px; font-weight: 700; cursor: pointer; }

.sidebar {
  position: fixed; top: 0; right: 0; width: 320px; max-width: 100%; height: 100%;
  background: var(--bg-card); backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-color);
  box-shadow: -6px 0 24px rgba(0,0,0,0.5);
  transform: translateX(100%); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 500; display: flex; flex-direction: column;
}
.sidebar.open { transform: translateX(0); }
.sidebar-header { padding: 10px 12px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.sidebar-title { font-size: 12px; font-weight: 700; color: var(--text-main); }
#annotations-list { flex: 1; overflow-y: auto; padding: 8px 10px; }
.annotation-card { background: rgba(0,0,0,0.22); border: 1px solid var(--border-color); border-left: 3px solid var(--green-accent); border-radius: 0 6px 6px 0; padding: 10px; margin-bottom: 8px; cursor: pointer; transition: all 0.15s; }
.annotation-card:hover { background: rgba(0,0,0,0.35); }
.annotation-card .quote { font-size: 10px; font-style: italic; color: var(--text-muted); margin-bottom: 4px; }
.annotation-card .comment { font-size: 12px; color: var(--text-main); margin-bottom: 4px; }
.annotation-card .meta { font-size: 10px; color: var(--text-dim); display: flex; justify-content: space-between; }
.annotation-card .delete-btn { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 11px; padding: 2px 5px; border-radius: 3px; }
.annotation-card .delete-btn:hover { color: #ef4444; }
.empty-state { text-align: center; color: var(--text-dim); font-size: 12px; padding: 30px 10px; }

/* Tweetcard */
.tweetcard-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(8px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 12px; }
.tweetcard-modal-backdrop.open { display: flex; }
.tweetcard-card { width: 100%; max-width: 500px; background: #000; border: 1px solid #2f3336; border-radius: 14px; padding: 14px 18px; box-shadow: 0 20px 50px rgba(0,0,0,0.8); color: #e7e9ea; animation: modalScale 0.18s ease-out; }
@keyframes modalScale { from { opacity:0; transform:scale(0.96); } to { opacity:1; transform:scale(1); } }
.tc-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tc-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #2f3336; }
.tc-user-details { flex: 1; min-width: 0; }
.tc-name-row { display: flex; align-items: center; gap: 4px; }
.tc-name { font-size: 14px; font-weight: 700; color: #f7f9f9; }
.tc-badge { color: #1d9bf0; font-size: 13px; }
.tc-handle { font-size: 12px; color: #71767b; }
.tc-close-btn { background: none; border: none; color: #71767b; font-size: 16px; cursor: pointer; padding: 4px 8px; border-radius: 50%; }
.tc-close-btn:hover { background: rgba(255,255,255,0.1); }
.tc-tweet-text { font-size: 14px; line-height: 1.5; color: #e7e9ea; margin-bottom: 12px; white-space: pre-wrap; word-break: break-word; }
.tc-metrics-row { display: flex; gap: 16px; padding: 8px 0; border-top: 1px solid #2f3336; border-bottom: 1px solid #2f3336; font-size: 11px; color: #71767b; margin-bottom: 10px; }
.tc-metrics-row strong { color: #e7e9ea; }
.tc-irgc-box { background: rgba(16,185,129,0.12); border-left: 3px solid #10b981; border-radius: 0 5px 5px 0; padding: 6px 10px; }
.tc-irgc-lead { font-size: 9px; font-weight: 700; text-transform: uppercase; color: #10b981; margin-bottom: 2px; }
.tc-irgc-quote { font-family: 'Lora', Georgia, serif; font-style: italic; font-size: 11px; line-height: 1.45; color: #cbd5e1; }

/* Toast */
/* Admin Gear Button */
.admin-gear {
  border: 1px dashed rgba(255,255,255,0.15) !important;
  color: var(--text-dim) !important;
  font-size: 9px !important;
  text-align: center;
}
.admin-gear:hover { border-color: var(--primary) !important; color: var(--primary) !important; }

/* Sidebar items container */
.sidebar-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-height: 0;
}

/* Compare User accent */
.ls-compare { border-color: rgba(245,158,11,0.4) !important; color: #f59e0b !important; }
.ls-compare:hover { background: rgba(245,158,11,0.15) !important; }

/* Admin Panel — sidebar order editor */
.admin-panel {
  position: fixed;
  left: var(--sidebar-w);
  top: 40px;
  width: 260px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  z-index: 300;
  padding: 10px 12px;
  animation: slideRight 0.18s ease-out;
}
@keyframes slideRight { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
.admin-panel.hidden { display: none; }
.admin-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.admin-panel-title { font-size: 11px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; }
.admin-hint { font-size: 9px; color: var(--text-dim); margin-bottom: 8px; }
.admin-actions { margin-top: 8px; display: flex; justify-content: flex-end; }

.admin-sortable { display: flex; flex-direction: column; gap: 2px; }
.admin-sort-item {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: grab;
  transition: background 0.1s, border-color 0.1s;
  user-select: none;
}
.admin-sort-item:hover { background: rgba(255,255,255,0.08); }
.admin-sort-item.dragging { opacity: 0.4; }
.admin-sort-item.drag-over { border-color: var(--primary); background: rgba(56,189,248,0.1); }

.admin-grip { font-size: 12px; color: var(--text-dim); cursor: grab; width: 14px; text-align: center; }
.admin-item-label { flex: 1; font-size: 10px; font-weight: 600; color: var(--text-body); }
.admin-arrows { display: flex; gap: 2px; }
.admin-arrow-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  color: var(--text-muted);
  font-size: 8px;
  width: 18px; height: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.1s;
}
.admin-arrow-btn:hover { background: var(--primary); color: #090d16; border-color: var(--primary); }

.toast { position: fixed; bottom: 16px; left: 50%; transform: translate(-50%, 20px); background: #1e293b; color: #f8fafc; border: 1px solid rgba(255,255,255,0.15); padding: 8px 16px; border-radius: 6px; font-size: 12px; font-weight: 600; z-index: 3000; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* Responsive */
@media (max-width: 768px) {
  .left-sidebar { width: 44px; padding: 4px 2px; }
  .ls-brand { font-size: 7px; }
  .ls-btn { font-size: 8px; padding: 3px 3px; }
  .scroll-rail { left: 44px; width: 16px; }
  #content { margin-left: 60px; }
  .sidebar { width: 100%; }
  .admin-panel { left: 44px; width: 220px; }
}
