/* ====================================================
   Graphics Quick Demo Showcase — Design System v4.0
   Dual-theme (light default / dark) rewrite.
   Light palette per ui-ux-pro-max recommendation:
   slate family (#F8FAFC/#0F172A) + single cyan accent.
   Dark palette: off-black #090C12 + softer cyan.
   Fonts per recommendation: IBM Plex Sans + JetBrains Mono.
   Shape rule: pills & inputs full-round; cards 14px;
   inner blocks 10px; tags/badges 6px.
   ==================================================== */

/* ---------- Tokens: LIGHT (default) ---------- */
:root {
  color-scheme: light;

  --bg-base: #f8fafc;
  --bg-raise: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.78);
  --bg-glass-hover: #ffffff;
  --bg-code: #eef2f7;
  --bg-chip: rgba(30, 41, 59, 0.05);
  --bg-canvas: #0d1420;

  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-accent: rgba(8, 145, 178, 0.5);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent: #0891b2;
  --accent-strong: #0e7490;
  --accent-ink: #ffffff;
  --accent-soft: rgba(8, 145, 178, 0.08);

  --success: #059669;
  --warning: #b45309;
  --danger: #dc2626;

  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 2px 6px rgba(15, 23, 42, 0.05), 0 16px 40px rgba(15, 23, 42, 0.1);

  --grain-opacity: 0.018;
  --hdr-bg: rgba(248, 250, 252, 0.85);

  --code-text: #155e75;

  /* Type badges: text color / bg */
  --bt-video: #b91c1c;  --bb-video: rgba(220, 38, 38, 0.09);
  --bt-github: #6d28d9; --bb-github: rgba(124, 58, 237, 0.08);
  --bt-web: #0e7490;    --bb-web: rgba(8, 145, 178, 0.1);
  --bt-paper: #a16207;  --bb-paper: rgba(202, 138, 4, 0.11);
  --bt-doc: #047857;    --bb-doc: rgba(5, 150, 105, 0.09);
  --bt-interactive: #be185d; --bb-interactive: rgba(219, 39, 119, 0.08);

  --pink-soft: rgba(219, 39, 119, 0.06);
  --pink-text: #be185d;
}

/* ---------- Tokens: DARK ---------- */
[data-theme="dark"] {
  color-scheme: dark;

  --bg-base: #090c12;
  --bg-raise: #0e121a;
  --bg-glass: rgba(18, 24, 36, 0.66);
  --bg-glass-hover: rgba(26, 33, 48, 0.8);
  --bg-code: #0a0e16;
  --bg-chip: rgba(148, 178, 220, 0.06);
  --bg-canvas: #05080e;

  --border-subtle: rgba(148, 178, 220, 0.09);
  --border-strong: rgba(148, 178, 220, 0.18);
  --border-accent: rgba(86, 198, 238, 0.4);

  --text-primary: #e9eef7;
  --text-secondary: #9ca9bf;
  --text-muted: #687591;

  --accent: #56c6ee;
  --accent-strong: #8edcf8;
  --accent-ink: #052632;
  --accent-soft: rgba(86, 198, 238, 0.1);

  --success: #53cf95;
  --warning: #e0b45c;
  --danger: #ec7777;

  --shadow-card: 0 6px 24px rgba(3, 8, 18, 0.45);
  --shadow-hover: 0 14px 44px rgba(3, 8, 18, 0.55);

  --grain-opacity: 0.028;
  --hdr-bg: rgba(9, 12, 18, 0.85);

  --code-text: #9ed8ee;

  --bt-video: #f09992;  --bb-video: rgba(240, 130, 122, 0.13);
  --bt-github: #bcb4f2; --bb-github: rgba(168, 158, 240, 0.13);
  --bt-web: #8ed8ef;    --bb-web: rgba(111, 205, 233, 0.13);
  --bt-paper: #eccf8a;  --bb-paper: rgba(232, 188, 99, 0.13);
  --bt-doc: #84dcb0;    --bb-doc: rgba(95, 211, 154, 0.13);
  --bt-interactive: #f2a9cf; --bb-interactive: rgba(238, 143, 194, 0.13);

  --pink-soft: rgba(238, 143, 194, 0.06);
  --pink-text: #f2a9cf;
}

/* ---------- Shared tokens ---------- */
:root {
  --font-sans: "IBM Plex Sans", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.22s var(--ease);
  --max-width: 1180px;
  --content-width: 820px;
  --header-height: 64px;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image: radial-gradient(ellipse 70% 45% at 15% -10%, var(--accent-soft), transparent);
  transition: background-color var(--transition), color var(--transition);
}
/* Film grain — breaks digital flatness */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-strong); }
::selection { background: var(--accent); color: var(--accent-ink); }

a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* Inline SVG icon alignment */
.ic { display: inline-flex; flex: none; align-items: center; justify-content: center; vertical-align: -0.15em; }
.ic svg { display: block; }

/* Skip link */
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 400;
  padding: 8px 14px; background: var(--accent); color: var(--accent-ink);
  font-size: 13px; font-weight: 600; border-radius: var(--radius-xs);
  transition: top var(--transition);
}
.skip-link:focus { top: 10px; color: var(--accent-ink); }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-height);
  background: var(--hdr-bg);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  max-width: var(--max-width); height: 100%;
  margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; color: var(--text-primary); }
.logo:hover { color: var(--text-primary); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
  box-shadow: 0 0 0 1px var(--border-accent), 0 4px 14px var(--accent-soft);
}
.logo-text { font-size: 15px; font-weight: 600; white-space: nowrap; letter-spacing: 0.01em; display: flex; flex-direction: column; line-height: 1.3; }
.logo-text small { font-size: 11px; font-weight: 400; color: var(--text-secondary); }
.header-search { flex: 1; max-width: 360px; position: relative; }
.header-search input {
  width: 100%; padding: 9px 16px 9px 38px;
  background: var(--bg-glass); border: 1px solid var(--border-subtle);
  border-radius: 999px; color: var(--text-primary); font-size: 13px; font-family: inherit;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.header-search input::placeholder { color: var(--text-muted); }
.header-search input:focus {
  outline: none; border-color: var(--border-accent);
  background: var(--bg-glass-hover);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.header-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-muted); pointer-events: none; }
.header-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header-updated { font-size: 12px; color: var(--text-muted); white-space: nowrap; display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--accent-soft); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.35;} }
.icon-btn {
  width: 34px; height: 34px; border-radius: 999px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border-subtle);
  color: var(--text-secondary); cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform 0.1s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--border-accent); background: var(--accent-soft); }
.icon-btn:active { transform: scale(0.94); }

/* ===== Main Container ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 40px 24px 88px; }
.container-narrow { max-width: var(--content-width); }

/* ===== Hero (Home) — left-aligned editorial ===== */
.hero { padding: 24px 0 40px; max-width: 780px; }
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); opacity: 0.6; flex: none; }
.hero h1 {
  font-size: clamp(32px, 4.6vw, 46px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.1;
  text-wrap: balance;
}
.hero-sub { color: var(--text-secondary); font-size: 15.5px; margin-top: 14px; max-width: 56ch; }
.hero-stats {
  display: flex; margin-top: 34px; flex-wrap: wrap;
  border: 1px solid var(--border-subtle); border-radius: var(--radius);
  background: var(--bg-glass); width: fit-content;
  box-shadow: var(--shadow-card);
}
.stat { padding: 16px 28px; border-left: 1px solid var(--border-subtle); }
.stat:first-child { border-left: none; }
.stat-num {
  font-family: var(--font-mono); font-size: 24px; font-weight: 700;
  color: var(--accent); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.stat-label { font-size: 10.5px; color: var(--text-muted); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.09em; }

/* ===== Toolbar ===== */
.toolbar {
  position: sticky; top: var(--header-height); z-index: 90;
  background: var(--hdr-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 13px 0;
}
.toolbar-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  padding: 7px 15px; border-radius: 999px;
  background: transparent; border: 1px solid var(--border-subtle);
  color: var(--text-secondary); font-size: 13px; cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform 0.1s var(--ease);
  user-select: none; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
}
.pill:hover { color: var(--text-primary); border-color: var(--border-strong); background: var(--bg-chip); }
.pill:active { transform: scale(0.97); }
.pill.active { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.pill-count { font-family: var(--font-mono); font-size: 11px; opacity: 0.65; }

/* ===== Issue Cards (Home List) ===== */
.issue-list { display: flex; flex-direction: column; gap: 14px; }
.issue-card {
  display: flex; gap: 22px; padding: 22px 24px;
  color: var(--text-primary);
  background: var(--bg-glass); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.issue-card:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: var(--bg-glass-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.issue-card:active { transform: translateY(0) scale(0.995); }
.issue-card.highlight { border-left: 3px solid var(--accent); }
.issue-vol {
  flex-shrink: 0; width: 96px; text-align: center;
  padding: 12px 8px; border-radius: var(--radius-sm);
  background: var(--accent-soft); border: 1px solid var(--border-accent);
  align-self: flex-start;
}
.issue-vol-num { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--font-mono); }
.issue-vol-id { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--accent); margin-top: 2px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.issue-vol-date { font-size: 10.5px; color: var(--text-muted); margin-top: 5px; font-family: var(--font-mono); }
.issue-body { flex: 1; min-width: 0; }
.issue-title { font-size: 16.5px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; text-wrap: pretty; }
.issue-title-cn { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.issue-summary { font-size: 13px; color: var(--text-secondary); margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 72ch; }
.issue-meta { display: flex; align-items: center; gap: 10px; margin-top: 13px; flex-wrap: wrap; }
.type-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--radius-xs); font-size: 11.5px; font-weight: 500;
}
.type-video       { color: var(--bt-video); background: var(--bb-video); }
.type-github      { color: var(--bt-github); background: var(--bb-github); }
.type-web         { color: var(--bt-web); background: var(--bb-web); }
.type-paper       { color: var(--bt-paper); background: var(--bb-paper); }
.type-doc         { color: var(--bt-doc); background: var(--bb-doc); }
.type-interactive { color: var(--bt-interactive); background: var(--bb-interactive); }
.issue-week { font-size: 11.5px; color: var(--text-muted); font-family: var(--font-mono); }
.issue-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.issue-tag { padding: 2px 8px; border-radius: var(--radius-xs); background: var(--bg-chip); border: 1px solid var(--border-subtle); font-size: 11px; color: var(--text-muted); }
.issue-arrow { flex-shrink: 0; align-self: center; color: var(--text-muted); transition: color var(--transition), transform var(--transition); display: flex; }
.issue-card:hover .issue-arrow { color: var(--accent); transform: translateX(3px); }

/* ===== Detail Page ===== */
.detail-header { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--border-subtle); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); margin-bottom: 20px; font-family: var(--font-mono); }
.breadcrumb a { color: var(--text-secondary); display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb a:hover { color: var(--accent); }
.detail-vol-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.detail-vol {
  padding: 4px 12px; border-radius: var(--radius-xs);
  background: var(--accent-soft); border: 1px solid var(--border-accent);
  color: var(--accent); font-size: 12px; font-weight: 500; font-family: var(--font-mono);
}
.detail-title { font-size: 30px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
.detail-title-cn { font-size: 15.5px; color: var(--text-secondary); margin-top: 6px; }
.detail-summary { font-size: 15px; color: var(--text-secondary); margin-top: 18px; line-height: 1.75; max-width: 68ch; }

/* ===== Content Sections ===== */
.section { margin-bottom: 52px; }
.section-title {
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: 9px;
}
.section-title .icon { color: var(--accent); display: inline-flex; }

/* Section: Text blocks */
.text-block { margin-bottom: 12px; padding: 13px 16px; background: var(--bg-glass); border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); font-size: 14px; }
.text-block.metric { display: flex; align-items: center; gap: 16px; border-left: 3px solid var(--accent); }
.text-block.metric .metric-label { flex-shrink: 0; width: 100px; font-size: 12px; color: var(--text-muted); }
.text-block.metric .metric-value { font-family: var(--font-mono); font-size: 17px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.text-block.metric .metric-detail { font-size: 13px; color: var(--text-secondary); }
.text-block.kv { display: flex; gap: 16px; align-items: baseline; }
.text-block.kv .kv-label { flex-shrink: 0; width: 80px; font-size: 12px; color: var(--text-muted); font-weight: 500; }
.text-block.kv .kv-value { font-size: 14px; color: var(--text-primary); }
.text-block.code {
  background: var(--bg-code); border: 1px solid var(--border-subtle);
  padding: 16px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.6;
  color: var(--code-text); white-space: pre; border-radius: var(--radius-sm);
}

/* Section: Video */
.video-wrapper { position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-subtle); background: #000; box-shadow: var(--shadow-card); }
.video-wrapper video, .video-wrapper iframe { width: 100%; aspect-ratio: 16/9; display: block; }
.video-note { font-size: 12px; color: var(--text-muted); margin-top: 8px; font-style: italic; }

/* Section: Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-subtle); background: var(--bg-glass); transition: border-color var(--transition), transform var(--transition); }
.gallery-item:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.gallery-item img { width: 100%; height: auto; display: block; object-fit: contain; background: var(--bg-canvas); }
.gallery-item .placeholder { width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; color: var(--text-muted); opacity: 0.5; }
.gallery-caption { padding: 9px 13px; font-size: 12px; color: var(--text-secondary); border-top: 1px solid var(--border-subtle); }

/* Section: Metric Grid */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.metric-card { padding: 20px; background: var(--bg-glass); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); text-align: center; box-shadow: var(--shadow-card); transition: border-color var(--transition), transform var(--transition); }
.metric-card:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.metric-card .m-value { font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.metric-card .m-unit { font-size: 12px; color: var(--text-muted); margin-left: 4px; }
.metric-card .m-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* Section: Interactive */
.interactive-box { border: 1px solid var(--border-subtle); border-radius: var(--radius); overflow: hidden; background: var(--bg-glass); box-shadow: var(--shadow-card); }
.interactive-header { padding: 12px 16px; background: var(--pink-soft); border-bottom: 1px solid var(--border-subtle); font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.interactive-header code { font-family: var(--font-mono); font-size: 12px; color: var(--pink-text); background: var(--bb-interactive); padding: 1px 7px; border-radius: var(--radius-xs); }
.interactive-body { padding: 20px; }
.interactive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.interactive-note { font-size: 12px; color: var(--text-muted); margin-top: 12px; }

/* Slider control */
.control-group { margin-bottom: 16px; }
.control-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.control-label .val { color: var(--accent); font-weight: 600; font-family: var(--font-mono); font-size: 12px; }
input[type="range"] { width: 100%; height: 6px; -webkit-appearance: none; appearance: none; background: var(--bg-code); border-radius: 3px; outline: none; accent-color: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: 0 0 0 3px var(--accent-soft); transition: transform var(--transition); }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); cursor: pointer; border: none; }
canvas.demo-canvas { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-sm); background: var(--bg-canvas); display: block; border: 1px solid var(--border-subtle); }

/* Section: Links */
.link-list { display: flex; flex-direction: column; gap: 10px; }
.link-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  background: var(--bg-glass); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); font-size: 14px; color: var(--text-primary);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.link-item:hover { color: var(--text-primary); border-color: var(--border-accent); background: var(--bg-glass-hover); transform: translateX(3px); }
.link-item .ic { color: var(--accent); }
.link-item .ext { margin-left: auto; color: var(--text-muted); display: inline-flex; }

/* ===== Footer ===== */
.footer { padding: 44px 24px; border-top: 1px solid var(--border-subtle); text-align: center; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-org { font-size: 13px; color: var(--text-secondary); margin-bottom: 22px; }
.footer-org strong { color: var(--text-primary); font-weight: 600; }
.footer-admin {
  display: inline-flex; align-items: center; gap: 24px;
  padding: 15px 32px; margin-bottom: 18px;
  background: var(--bg-glass); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
}
.admin-item { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.admin-role { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.admin-name { font-size: 15px; font-weight: 600; color: var(--accent); }
.admin-divider { width: 1px; height: 30px; background: var(--border-subtle); }
.footer-notice { font-size: 12px; color: var(--text-muted); }

/* ===== Empty State ===== */
.empty-state { text-align: center; padding: 72px 20px; color: var(--text-muted); }
.empty-state-icon { display: flex; justify-content: center; margin-bottom: 14px; color: var(--text-muted); opacity: 0.4; }

/* ===== Loading skeleton ===== */
.sk {
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(100deg, var(--bg-glass) 40%, var(--bg-glass-hover) 50%, var(--bg-glass) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
.sk-card { height: 118px; }
.sk-hero { height: 180px; max-width: 620px; margin-bottom: 28px; }
.sk-list { display: flex; flex-direction: column; gap: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 12px; }
  .header { height: auto; }
  .header-right { margin-left: 0; }
  .toolbar { top: 0; }
  .container { padding: 28px 16px 64px; }
  .issue-card { flex-direction: column; gap: 14px; padding: 18px; }
  .issue-vol { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; }
  .hero h1 { font-size: 28px; }
  .stat { padding: 12px 18px; }
  .detail-title { font-size: 23px; }
  .interactive-grid { grid-template-columns: 1fr; }
  .text-block.metric { flex-direction: column; align-items: flex-start; gap: 4px; }
  .text-block.metric .metric-label { width: auto; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
