@import url("/css/season-theme.css");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[hidden] { display: none !important; }

:root {
  --bg-primary: #15181e;
  --bg-secondary: #1a1e26;
  --bg-card: #1a1e26;
  --bg-inset: #101318;
  --bg-neutral: #20252e;
  --bg-hover: #272d38;

  --border-color: #2b3340;
  --border-muted: #232a35;
  --border-strong: #3c4759;

  --text-bright: #f2f5f8;
  --text-primary: #e4e9ee;
  --text-secondary: #b9c4cf;
  --text-muted: #8792a0;

  --accent-blue: #3f8ae0;
  --accent-blue-emphasis: #64a8f2;
  --accent-green: #3fa34d;
  --accent-green-hover: #4cbf5c;
  --accent-gold: #e0a93a;
  --accent-red: #f2554a;
  --accent-purple: #1c3f66;
  --accent-lilac: #b18cf5;

  --shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.3);
  --shadow-glow: 6px 6px 0 rgb(63 138 224 / 0.24);
  --shadow-glow-gold: 6px 6px 0 rgb(224 169 58 / 0.22);
  --radius: 13px;
  --radius-lg: 18px;

  --crystal-gradient: linear-gradient(135deg,
    var(--accent-blue) 0 50%, var(--accent-purple) 50% 100%);

  --crystal-watermark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='white' opacity='0.5'%3E%3Crect x='24' y='30' width='14' height='14'/%3E%3Crect x='60' y='18' width='10' height='10'/%3E%3Crect x='140' y='40' width='18' height='18'/%3E%3Crect x='170' y='90' width='10' height='10'/%3E%3Crect x='30' y='120' width='12' height='12'/%3E%3Crect x='90' y='150' width='16' height='16'/%3E%3Crect x='150' y='160' width='10' height='10'/%3E%3Crect x='70' y='90' width='8' height='8'/%3E%3C/g%3E%3C/svg%3E");

  --doc-article: 948px;
  --doc-pad-x: 40px;
  --doc-gutter: 32px;
  --doc-measure: calc(var(--doc-article) - var(--doc-pad-x) * 2 - 2px);

  --font-sans: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
  --font-display: "Unbounded", var(--font-sans);

  color-scheme: dark;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  color: var(--text-bright);
  font-weight: 600;
  line-height: 1.25;
}

p { line-height: 1.6; }
p:not(:last-child) { margin-bottom: 1em; }

strong, b { color: var(--text-bright); font-weight: 700; }
em, i { font-style: italic; }

p a, li a, blockquote a {
  text-decoration: underline;
  text-decoration-color: rgba(63, 138, 224, 0.45);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}
p a:hover, li a:hover, blockquote a:hover {
  text-decoration-color: var(--accent-blue-emphasis);
}

blockquote {
  margin: 20px 0;
  padding: 2px 20px;
  border-left: 3px solid var(--accent-blue);
  color: var(--text-secondary);
  font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }

.lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent-blue);
  padding-left: 14px;
}

::selection { background: rgba(56, 139, 253, 0.4); }

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-hover) transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--bg-hover);
  border-radius: 10px;
  border: 1px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover { background: #484f58; }

.btn,
.create-guide-btn,
.add-track-btn,
.business-toggle,
.track-download,
.track-copy,
.auth-btn,
.btn-approve,
.btn-reject,
.btn-preview,
.fmt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-neutral);
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--border-color);
  transition: background-color 0.15s, border-color 0.15s, transform 0.12s, box-shadow 0.12s;
}
.btn:active,
.create-guide-btn:active,
.add-track-btn:active,
.track-copy:active,
.auth-btn:active,
.btn-approve:active,
.btn-reject:active,
.btn-preview:active,
.fmt-btn:active {
  background: #282e33;
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--border-color);
}
.btn:hover,
.create-guide-btn:hover,
.add-track-btn:hover,
.business-toggle:hover,
.track-download:hover,
.track-copy:hover,
.auth-btn:hover,
.btn-approve:hover,
.btn-reject:hover,
.btn-preview:hover,
.fmt-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--border-color);
  text-decoration: none;
  color: var(--text-bright);
}
.btn-lg {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
}

.btn-primary,
.create-guide-btn,
.add-track-btn,
.track-download {
  background: var(--accent-blue);
  border-color: var(--border-color);
  color: var(--bg-primary);
}
.btn-primary:hover,
.create-guide-btn:hover,
.add-track-btn:hover,
.track-download:hover {
  background: var(--accent-blue-emphasis);
  border-color: var(--border-strong);
  color: var(--bg-primary);
}

.btn-success,
.btn-approve {
  background: var(--accent-green);
  border-color: rgba(240, 246, 252, 0.1);
  color: #fff;
}
.btn-success:hover,
.btn-approve:hover {
  background: var(--accent-green-hover);
  border-color: rgba(240, 246, 252, 0.1);
  color: #fff;
}

.btn-info,
.btn-preview,
.business-toggle {
  background: var(--accent-blue-emphasis);
  border-color: rgba(240, 246, 252, 0.1);
  color: #fff;
}
.btn-info:hover,
.btn-preview:hover,
.business-toggle:hover {
  background: #388bfd;
  border-color: rgba(240, 246, 252, 0.1);
  color: #fff;
}

.btn-danger,
.btn-reject {
  background: var(--bg-neutral);
  border-color: var(--border-color);
  color: var(--accent-red);
}
.btn-danger:hover,
.btn-reject:hover {
  background: #da3633;
  border-color: #f85149;
  color: #fff;
}

.btn-warning {
  background: var(--bg-neutral);
  border-color: var(--border-color);
  color: var(--accent-gold);
}
.btn-warning:hover {
  background: #9e6a03;
  border-color: #d29922;
  color: #fff;
}

.header {
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  padding: 0 22px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-muted);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-right: 8px;
  white-space: nowrap;
}
.logo a.logo-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: var(--text-bright);
  padding: 6px 0;
  border-radius: var(--radius);
  font-weight: 800;
  text-transform: lowercase;
}
.logo a.logo-tag:hover { text-decoration: none; opacity: 0.8; }
.logo-br { color: var(--accent-blue); }
.logo-c7x { color: var(--text-bright); }
.logo-dot { color: var(--accent-blue); }
.logo-sub {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: 7px;
  align-self: center;
}

.nav {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-bright);
  font-size: 16px;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--border-strong); background: var(--bg-neutral); }
.nav a {
  font-weight: 600;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: var(--radius);
  color: var(--text-bright);
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover {
  color: var(--text-muted);
  text-decoration: none;
}
.nav a.is-active {
  color: var(--accent-blue-emphasis);
  background: var(--bg-hover);
}

.nav .nav-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 10px;
  color: var(--text-muted);
  cursor: default;
  opacity: 0.6;
}
.nav-soon small {
  font-size: 10px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-muted);
  background: var(--bg-inset);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1px 5px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 22px 56px;
  text-align: center;
  border-bottom: 1px solid var(--border-muted);
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(56, 139, 253, 0.18) 0%, rgba(13, 17, 23, 0) 70%),
    radial-gradient(40% 80% at 80% 20%, rgba(188, 140, 255, 0.12) 0%, rgba(13, 17, 23, 0) 70%),
    radial-gradient(35% 70% at 15% 85%, rgba(210, 153, 34, 0.1) 0%, rgba(13, 17, 23, 0) 70%),
    var(--bg-primary);
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 520px;
  height: 520px;
  background-image: var(--crystal-watermark);
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  background: rgba(22, 27, 34, 0.6);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 18px;
}
.hero-eyebrow i { color: var(--accent-blue); }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin-bottom: 20px;
  background: var(--crystal-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 22px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.container {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 22px auto;
  padding: 0 22px;
  display: flex;
  gap: 22px;
}
.main-content { flex: 3; min-width: 0; }

.section-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title i { color: var(--text-muted); font-size: 16px; }

.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, background-color 0.2s;
  display: flex;
}
.news-card:hover {
  border-color: var(--border-strong);
  background: #1c2129;
}
.news-card .news-img {
  flex: 0 0 200px;
  background-size: cover;
  background-position: center;
  min-height: 150px;
  background-color: var(--bg-neutral);
}
.news-card .news-body { padding: 16px 20px; flex: 1; }
.news-card .tag {
  display: inline-block;
  background: rgba(56, 139, 253, 0.15);
  border: 1px solid rgba(56, 139, 253, 0.4);
  font-size: 12px;
  font-weight: 500;
  padding: 0 10px;
  line-height: 22px;
  border-radius: 100px;
  color: var(--accent-blue);
  margin-bottom: 8px;
}
.news-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.news-card h3 a { color: var(--text-bright); }
.news-card h3 a:hover { color: var(--accent-blue); text-decoration: none; }
.news-card .meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.news-card p { color: var(--text-muted); font-size: 14px; }
.news-card .read-more {
  display: inline-block;
  margin-top: 12px;
  font-weight: 500;
  font-size: 14px;
}
.news-card .read-more:hover { text-decoration: underline; }

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.guide-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: border-color 0.2s, background-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.guide-item:hover {
  border-color: var(--border-strong);
  background: #1c2129;
}
.guide-item .guide-icon {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.guide-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.guide-item h4 a { color: var(--accent-blue); }
.guide-item .guide-meta { font-size: 12px; color: var(--text-muted); }

.sidebar {
  flex: 1;
  min-width: 240px;
  max-width: 316px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.sidebar-block h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-muted);
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-block h3 i { color: var(--text-muted); font-size: 14px; }

.sidebar-block:has(.guide-of-day) {
  position: relative;
  overflow: hidden;
  border-color: rgba(210, 153, 34, 0.35);
  box-shadow: var(--shadow-glow-gold);
}
.sidebar-block:has(.guide-of-day)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--crystal-gradient);
}

.guide-of-day .badge {
  display: inline-block;
  background: rgba(210, 153, 34, 0.15);
  border: 1px solid rgba(210, 153, 34, 0.4);
  color: var(--accent-gold);
  font-weight: 500;
  font-size: 12px;
  padding: 0 10px;
  line-height: 22px;
  border-radius: 100px;
}
.guide-of-day h4 { font-size: 14px; margin: 12px 0 4px; }
.guide-of-day p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }

.sidebar-list { list-style: none; padding: 0; font-size: 13px; }
.sidebar-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list .event-date { color: var(--text-secondary); font-weight: 500; }
.sidebar-list .stat-value { color: var(--text-bright); font-weight: 600; }

.guides-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.guides-header .section-title { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.guides-page .guide-count {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

.guides-grid.guides-page-grid,
.guides-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, background-color 0.2s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.guide-card:hover {
  border-color: var(--border-strong);
  background: #1c2129;
}
.guide-card-img {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-neutral);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.cover-crystal {
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center, top left, center;
  background-size: 55% 55%, cover, cover;
}
.cover-crystal--1 { background-image: var(--crystal-watermark), radial-gradient(120% 100% at 15% 0%, rgba(255,255,255,0.16), transparent 55%), linear-gradient(135deg, var(--accent-blue) 0 50%, var(--accent-purple) 50% 100%); }
.cover-crystal--2 { background-image: var(--crystal-watermark), radial-gradient(120% 100% at 85% 0%, rgba(255,255,255,0.16), transparent 55%), linear-gradient(150deg, var(--accent-purple) 0 50%, var(--accent-blue) 50% 100%); }
.cover-crystal--3 { background-image: var(--crystal-watermark), radial-gradient(120% 100% at 15% 0%, rgba(255,255,255,0.16), transparent 55%), linear-gradient(120deg, var(--accent-blue-emphasis) 0 50%, var(--accent-blue) 50% 100%); }
.cover-crystal--4 { background-image: var(--crystal-watermark), radial-gradient(120% 100% at 85% 100%, rgba(255,255,255,0.14), transparent 55%), linear-gradient(200deg, var(--accent-blue) 0 50%, var(--accent-blue-emphasis) 50% 100%); }
.cover-crystal--5 { background-image: var(--crystal-watermark), radial-gradient(120% 100% at 15% 100%, rgba(255,255,255,0.14), transparent 55%), linear-gradient(160deg, var(--accent-purple) 0 50%, var(--accent-blue) 50% 100%); }
.cover-crystal--6 { background-image: var(--crystal-watermark), radial-gradient(120% 100% at 85% 0%, rgba(255,255,255,0.16), transparent 55%), linear-gradient(140deg, var(--accent-blue-emphasis) 0 50%, var(--accent-purple) 50% 100%); }

.guide-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.guide-card-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.guide-card-body h3 a { color: var(--text-bright); }
.guide-card-body h3 a:hover { color: var(--accent-blue); text-decoration: none; }
.guide-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}
.guide-card-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.guide-card-meta i { margin-right: 4px; }
.guide-card-meta a[title="Редактировать гайд"] {
  margin-left: auto;
  color: var(--text-muted);
  transition: color 0.2s;
}
.guide-card-meta a[title="Редактировать гайд"]:hover { color: var(--accent-blue); }
.guide-card-meta a[title="Редактировать гайд"] i { margin-right: 0; }
.guide-card-body .read-more {
  align-self: flex-start;
  font-weight: 500;
  font-size: 14px;
}

.guide-container,
.guide-view-container {
  width: 100%;
  max-width: calc(var(--doc-article) + var(--doc-gutter) * 2);
  margin: 22px auto;
  padding: 0 var(--doc-gutter);
}
.guide-view-container { flex: 1; }

.guide-content { background: none; padding: 0; }

.breadcrumbs {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.guide-article {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px var(--doc-pad-x);
  overflow-wrap: break-word;
}
.guide-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--text-bright);
  word-break: break-word;
  line-height: 1.3;
}
.guide-meta-header {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-muted);
}
.guide-meta-header i { margin-right: 6px; }

.guide-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.guide-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-inset);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 10px 22px;
  color: var(--text-bright);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s, transform 0.1s;
}
.guide-like-btn i { font-size: 16px; }
.guide-like-btn #likeCount { color: var(--text-muted); font-weight: 500; }
.guide-like-btn:hover:not(:disabled) { border-color: var(--accent-blue); color: var(--accent-blue); background: rgba(100, 168, 242, 0.08); }
.guide-like-btn.is-liked { color: var(--accent-blue); border-color: var(--accent-blue); background: rgba(100, 168, 242, 0.12); }
.guide-like-btn:active:not(:disabled) { transform: scale(0.96); }
.guide-like-btn:disabled { cursor: default; opacity: 0.6; }

.guide-comments { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border-muted); }
.guide-comments__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; margin: 0 0 16px;
}
.guide-comments__title i { color: var(--text-muted); }
.guide-comments__title span { color: var(--text-muted); font-weight: 400; font-size: 14px; }
.guide-comments__empty { color: var(--text-muted); font-size: 14px; }
.guide-comment-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.guide-comment-form textarea,
.guide-comment-form input[type="text"] {
  width: 100%; min-height: 80px; resize: vertical;
  background: var(--bg-inset); border: 1px solid var(--border-color); border-radius: var(--radius);
  color: var(--text-bright); padding: 10px 12px; font: inherit; font-size: 14px;
}
.guide-comment-form input[type="text"] { min-height: auto; }
.guide-comment-form textarea:focus,
.guide-comment-form input[type="text"]:focus { outline: none; border-color: var(--accent-blue); }
.guide-comment-form button { align-self: flex-end; }
.guide-comment-login { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }
.guide-comment-list { display: flex; flex-direction: column; gap: 14px; }
.guide-comment { background: var(--bg-inset); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 12px 14px; }
.guide-comment__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.guide-comment__meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.guide-comment__author { font-weight: 600; color: var(--text-bright); font-size: 13px; }
.guide-comment__date { color: var(--text-muted); font-size: 12px; }
.guide-comment__body { margin: 0; font-size: 14px; color: var(--text-primary); white-space: pre-wrap; word-break: break-word; }
.guide-comment__delete {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 4px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s;
}
.guide-comment__delete:hover { color: var(--accent-red); }

.reddit-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
  width: 100%;
  max-width: 1200px;
  margin: 22px auto;
  padding: 0 var(--doc-gutter);
}
.reddit-layout .guide-view-container,
.reddit-layout .guide-article,
.reddit-layout .guide-comments { margin: 0; padding: 0; max-width: none; }
.reddit-main { min-width: 0; }

.reddit-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: sticky;
  top: 16px;
}
.reddit-sidebar h4 {
  font-size: 13px;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.reddit-sidebar-list { display: flex; flex-direction: column; gap: 4px; }
.reddit-sidebar-list a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  text-decoration: none;
}
.reddit-sidebar-list a:hover { background: var(--bg-hover); }
.reddit-sidebar-list a.is-active { background: var(--bg-hover); color: var(--accent-blue-emphasis); font-weight: 600; }

.reddit-info-panel { display: flex; flex-direction: column; gap: 14px; }
.reddit-info-panel .guide-meta-header { border: none; padding: 0; margin: 0; flex-direction: column; gap: 8px; }
.reddit-info-panel p { margin: 0; font-size: 14px; color: var(--text-secondary); }
.reddit-info-panel .btn { width: 100%; text-align: center; justify-content: center; }
.reddit-mod-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.reddit-mod-list a { color: var(--text-primary); }
.reddit-mod-list .role-tag { color: var(--text-muted); font-size: 11px; margin-left: 4px; }

.sort-tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.sort-tab {
  background: var(--bg-inset);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sort-tab:hover { color: var(--text-bright); border-color: var(--border-strong); }
.sort-tab.is-active { color: var(--accent-blue-emphasis); border-color: var(--accent-blue); background: rgba(100, 168, 242, 0.1); }

.post-row { display: flex; gap: 0; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; }
.post-row + .post-row { margin-top: 10px; }
.vote-col {
  flex-shrink: 0;
  width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 4px;
  background: var(--bg-inset);
  border-right: 1px solid var(--border-muted);
}
.vote-col button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.vote-col button:hover:not(:disabled) { color: var(--accent-blue-emphasis); }
.vote-col button.is-liked { color: var(--accent-blue-emphasis); }
.vote-col button:disabled { cursor: default; opacity: 0.5; }
.vote-col .vote-count { font-size: 13px; font-weight: 700; color: var(--text-bright); }
.post-row-body { flex: 1; min-width: 0; padding: 14px 16px; }
.post-row-body h3 { margin: 0 0 4px; font-size: 16px; }
.post-row-body h3 a { color: var(--text-bright); text-decoration: none; }
.post-row-body h3 a:hover { text-decoration: underline; }
.post-row-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-author-avatar {
  width: 20px; height: 20px; border-radius: 50%; object-fit: cover;
  background: var(--bg-inset); border: 1px solid var(--border-color);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 10px; font-weight: 700; color: var(--text-bright);
  flex-shrink: 0;
}
.post-row-meta .post-author-link { font-weight: 700; }
.post-row-body p { margin: 0; font-size: 14px; color: var(--text-secondary); }
.post-row-actions { margin-top: 8px; display: flex; gap: 14px; font-size: 12px; color: var(--text-muted); }

.post-card {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 14px 16px;
}
.post-card + .post-card { margin-top: 10px; }

.post-card__rail { flex-shrink: 0; width: 44px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 2px; }
.rail-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 11px; font-weight: 700; text-decoration: none; width: 100%;
}
.rail-btn:hover { color: var(--text-bright); text-decoration: none; }
.rail-btn__icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-neutral); border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.rail-btn:hover .rail-btn__icon { background: var(--bg-hover); border-color: var(--border-strong); color: var(--accent-blue-emphasis); }
.rail-btn.is-liked .rail-btn__icon { color: var(--accent-blue-emphasis); border-color: var(--accent-blue-emphasis); }
.rail-btn.vote-up:disabled { cursor: default; opacity: 0.5; }
.rail-btn.vote-up:disabled .rail-btn__icon { background: var(--bg-neutral); border-color: var(--border-color); }

.post-card__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.post-card__head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.post-card__avatar {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  background: var(--bg-inset); border: 1px solid var(--border-color);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 11px; font-weight: 700; color: var(--text-bright);
  flex-shrink: 0;
}
.post-card__author { font-weight: 700; text-decoration: none; }
.post-card__author:hover { text-decoration: underline; }
.post-card__dot, .post-card__time { color: var(--text-muted); }
.post-card__community { color: var(--accent-blue); font-weight: 600; text-decoration: none; }
.post-card__community:hover { text-decoration: underline; }
.post-card__title { margin: 0; font-size: 17px; font-weight: 700; }
.post-card__title a { color: var(--text-bright); text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; }
.post-card__flair {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(224, 169, 58, 0.14); border: 1px solid rgba(224, 169, 58, 0.4);
  color: var(--accent-gold); border-radius: 999px; padding: 3px 12px;
  font-size: 12px; font-weight: 600;
}
.post-card__body { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.post-card__image { max-width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border-color); }
.post-card__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.post-card__footer .comment-reply-btn { padding: 4px 6px; }

@media (max-width: 480px) {
  .post-card { gap: 8px; }
  .post-card__rail { width: 36px; }
  .rail-btn__icon { width: 28px; height: 28px; font-size: 12px; }
}

.comment-thread { display: flex; flex-direction: column; gap: 10px; }
.comment-node { }
.comment-node .comment-children {
  margin-top: 10px;
  margin-left: 18px;
  padding-left: 14px;
  border-left: 2px solid var(--border-muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guide-comment__body--hidden { color: var(--text-muted); font-style: italic; }
.comment-reply-btn {
  background: none; border: none; color: var(--text-muted); font-size: 12px;
  cursor: pointer; padding: 4px 0; font-weight: 600;
}
.comment-reply-btn:hover { color: var(--accent-blue-emphasis); }
.comment-reply-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.comment-reply-form textarea {
  width: 100%; min-height: 60px; resize: vertical;
  background: var(--bg-inset); border: 1px solid var(--border-color); border-radius: var(--radius);
  color: var(--text-bright); padding: 8px 10px; font: inherit; font-size: 13px;
}
.comment-reply-form-actions { display: flex; gap: 8px; align-self: flex-end; }

@media (max-width: 900px) {
  .reddit-layout { grid-template-columns: 1fr; }
  .reddit-sidebar { position: static; }
}

.profile-avatar-wrap { position: relative; display: inline-block; flex-shrink: 0; }
.profile-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
  background: var(--bg-inset);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 34px; font-weight: 700;
  color: var(--text-bright);
}
.profile-avatar-edit {
  position: absolute; right: -2px; bottom: -2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-blue); border: 1px solid var(--bg-primary);
  color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.profile-avatar-edit:hover { background: var(--accent-blue-emphasis); }
.page-hero__inner { align-items: flex-start; }
.profile-hero-row { display: flex; gap: 20px; align-items: flex-start; }
.profile-bio { color: var(--text-secondary); font-size: 14px; margin: 6px 0 0; max-width: 480px; }
.profile-bio-edit-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; color: var(--text-muted); font-size: 12px;
  font-family: var(--font-sans); line-height: 1; cursor: pointer; margin-left: 8px;
  vertical-align: middle;
}
.profile-bio-edit-btn:hover { color: var(--accent-blue-emphasis); }

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badge-chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-inset); border: 1px solid var(--border-color); border-radius: 999px;
  padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--text-secondary);
  cursor: help;
}
.badge-chip i { color: var(--accent-gold); }

.badge-chip[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 20;
  width: max-content;
  max-width: 220px;
  padding: 6px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(1, 4, 9, 0.55);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  pointer-events: none;
}
.badge-chip[data-tooltip]:hover::after,
.badge-chip[data-tooltip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.profile-section-heading {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--text-bright); margin: 22px 0 12px;
}
.activity-item {
  background: var(--bg-inset); border: 1px solid var(--border-color); border-radius: var(--radius);
  padding: 10px 14px; margin-bottom: 10px; font-size: 14px;
}
.activity-item-meta { color: var(--text-muted); font-size: 12px; margin-bottom: 4px; }
.activity-item-meta .activity-type { color: var(--accent-blue-emphasis); font-weight: 600; margin-right: 6px; }
.activity-item a { color: var(--text-primary); }

@keyframes fade-slide-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-item { animation: fade-slide-in 0.25s ease-out; }

@keyframes skeleton-shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}
.skeleton-row {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 14px 16px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px;
}
.skeleton-line {
  height: 12px; border-radius: var(--radius);
  background: linear-gradient(90deg, var(--bg-inset) 25%, var(--bg-hover) 37%, var(--bg-inset) 63%);
  background-size: 400px 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
.skeleton-line--title { width: 55%; height: 16px; }
.skeleton-line--short { width: 30%; }
.skeleton-line--full { width: 100%; }

.feed-compact .post-row-body p,
.feed-compact .post-row-body img,
.feed-compact .post-card__body,
.feed-compact .post-card__image,
.feed-compact .activity-item p,
.feed-compact .ticket-row p { display: none; }
.feed-compact .post-row-meta { margin-bottom: 0; }
.feed-compact .post-card__main { gap: 6px; }

.feed-view-toggle {
  background: var(--bg-inset); border: 1px solid var(--border-color); border-radius: 999px;
  padding: 8px 12px; color: var(--text-secondary); font-size: 13px; cursor: pointer;
}
.feed-view-toggle:hover { color: var(--text-bright); border-color: var(--border-strong); }

.new-posts-banner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(100, 168, 242, 0.12); border: 1px solid var(--accent-blue);
  color: var(--accent-blue-emphasis); border-radius: var(--radius); padding: 10px;
  margin-bottom: 12px; cursor: pointer; font-size: 14px; font-weight: 600;
}
.new-posts-banner:hover { background: rgba(100, 168, 242, 0.2); }

.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 28px 20px; color: var(--text-muted); text-align: center;
}
.empty-state i { font-size: 32px; opacity: 0.4; }
.empty-state p { margin: 0; font-size: 14px; }

.profile-sidebar { flex: 0 0 300px; display: flex; flex-direction: column; gap: 16px; }
.profile-sidebar .btn { width: 100%; text-align: center; justify-content: center; }
@media (max-width: 900px) {
  .profile-sidebar { flex-basis: auto; position: static; }
}

.guide-article .guide-content,
.guide-content { line-height: 1.6; color: var(--text-primary); }

.guide-article,
.guide-content,
.guide-content .ed-rich {
  overflow-wrap: break-word;
  word-break: normal;
}

.guide-article h1:not(.guide-title), .guide-content h1:not(.guide-title),
.guide-article h2, .guide-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 18px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-muted);
  color: var(--text-bright);
}
.guide-article h1:not(.guide-title),
.guide-content h1:not(.guide-title) { font-size: 28px; }
.guide-article h3, .guide-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 18px 0 12px;
  color: var(--text-bright);
}
.guide-article h4, .guide-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--text-bright);
}
.guide-article p, .guide-content p { margin-bottom: 16px; color: var(--text-primary); }
.guide-article ul, .guide-content ul,
.guide-article ol, .guide-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.guide-article li, .guide-content li { margin-bottom: 4px; }
.guide-article strong, .guide-content strong,
.guide-article b, .guide-content b { color: var(--text-bright); font-weight: 600; }
.guide-article em, .guide-content em,
.guide-article i, .guide-content i { font-style: italic; }
.guide-content u { text-decoration: underline; }
.guide-content s, .guide-content strike, .guide-content del {
  text-decoration: line-through;
  color: var(--text-muted);
}
.guide-content img,
.guide-article img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 16px 0;
  display: block;
  border: 1px solid var(--border-color);
}
.guide-content a { color: var(--accent-blue); }
.guide-content hr,
.guide-article hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 18px 0;
  height: 1px;
}
.guide-content font[size="1"] { font-size: 11px; }
.guide-content font[size="2"] { font-size: 13px; }
.guide-content font[size="3"] { font-size: 14px; }
.guide-content font[size="4"] { font-size: 18px; }
.guide-content font[size="5"] { font-size: 24px; }
.guide-content font[size="6"] { font-size: 32px; }
.guide-content font[size="7"] { font-size: 40px; }

.guide-content img.guide-img--w75,
.guide-article img.guide-img--w75 { width: 75%; }
.guide-content img.guide-img--w50,
.guide-article img.guide-img--w50 { width: 50%; }
.guide-img--square { aspect-ratio: 1 / 1; object-fit: cover; }
.guide-img--4-3 { aspect-ratio: 4 / 3; object-fit: cover; }
.guide-img--16-9 { aspect-ratio: 16 / 9; object-fit: cover; }
.guide-img--center { margin-left: auto; margin-right: auto; }

.guide-columns {
  display: grid;
  gap: 16px;
  margin: 16px 0;
}
.guide-columns--2 { grid-template-columns: repeat(2, 1fr); }
.guide-columns--3 { grid-template-columns: repeat(3, 1fr); }
.guide-columns--4 { grid-template-columns: repeat(4, 1fr); }

.guide-col { min-width: 0; }
.guide-col > :first-child { margin-top: 0; }
.guide-col > :last-child { margin-bottom: 0; }
.guide-col h2, .guide-col h3, .guide-col h4 {
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
}

.guide-columns--square .guide-col { aspect-ratio: 1 / 1; }
.guide-columns--4-3 .guide-col { aspect-ratio: 4 / 3; }
.guide-columns--16-9 .guide-col { aspect-ratio: 16 / 9; }

.guide-columns--square .guide-col,
.guide-columns--4-3 .guide-col,
.guide-columns--16-9 .guide-col { overflow: hidden; }

.guide-columns--square .guide-col:not(.guide-col--media),
.guide-columns--4-3 .guide-col:not(.guide-col--media),
.guide-columns--16-9 .guide-col:not(.guide-col--media) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  background: var(--bg-inset);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: auto;
}
.guide-col--media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  display: block;
}
.guide-col > pre { height: 100%; margin: 0; }

.gb-canvas {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(var(--gb-row, 28px), auto);
  gap: var(--gb-gap, 16px);
  align-items: stretch;
  align-content: start;
}

.gb-cell {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.gb-cell > div:not([class]) { display: contents; }

.gb-cell--full { grid-column: 1 / -1; }

.gb-cell > :first-child,
.gb-cell > div > :first-child { margin-top: 0; }
.gb-cell > :last-child,
.gb-cell > div > :last-child { margin-bottom: 0; }
.gb-cell h2, .gb-cell h3, .gb-cell h4 { margin-top: 0; }
.gb-cell:not(.gb-cell--full) h2 { border-bottom: none; padding-bottom: 0; }

.gb-cell .guide-grow { flex: 1; min-height: 0; }

.gb-cell img.guide-grow {
  object-fit: cover;
  width: 100%;
  margin: 0;
}
.gb-cell pre.guide-grow { margin: 0; overflow: auto; }

.guide-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
}
.guide-tile__icon {
  font-size: 20px;
  color: var(--accent-blue);
  line-height: 1;
}
.guide-tile__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-bright);
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.guide-tile__text {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}
.guide-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  text-align: center;
}
.guide-stat__value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-bright);
}
.guide-stat__label {
  font-size: 13px;
  color: var(--text-muted);
}

.guide-callout {
  display: flex;
  gap: 12px;
  padding: 4px 0 4px 16px;
  border-left: 4px solid var(--border-color);
  font-size: 14px;
}
.guide-callout__icon { flex-shrink: 0; line-height: 1.6; }
.guide-callout__body { flex: 1; min-width: 0; }
.guide-callout__body > :first-child { margin-top: 0; }
.guide-callout__body > :last-child { margin-bottom: 0; }

.guide-callout--info { border-left-color: var(--accent-blue); }
.guide-callout--info .guide-callout__icon { color: var(--accent-blue); }
.guide-callout--warn { border-left-color: var(--accent-gold); }
.guide-callout--warn .guide-callout__icon { color: var(--accent-gold); }
.guide-callout--success { border-left-color: #3fb950; }
.guide-callout--success .guide-callout__icon { color: #3fb950; }
.guide-callout--danger { border-left-color: var(--accent-red); }
.guide-callout--danger .guide-callout__icon { color: var(--accent-red); }

.guide-btn-wrap { display: flex; align-items: center; gap: 8px; }
.guide-btn-wrap--center { justify-content: center; }
.guide-btn-wrap--right { justify-content: flex-end; }
.guide-content .guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius);
  background: var(--accent-green);
  border: 1px solid rgba(240, 246, 252, 0.1);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s;
}
.guide-content a.guide-btn:hover { background: var(--accent-green-hover); text-decoration: none; }

.guide-content .guide-btn--grey,
.guide-content .guide-btn--secondary {
  background: var(--bg-neutral);
  border-color: var(--border-color);
  color: var(--text-primary);
}
.guide-content a.guide-btn--grey:hover,
.guide-content a.guide-btn--secondary:hover { background: var(--bg-hover); }

.guide-content .guide-btn--blue { background: var(--accent-blue-emphasis); }
.guide-content a.guide-btn--blue:hover { background: #388bfd; }

.guide-content .guide-btn--red { background: #da3633; }
.guide-content a.guide-btn--red:hover { background: #f85149; }

.guide-content .guide-btn--gold { background: #9e6a03; }
.guide-content a.guide-btn--gold:hover { background: #bb8009; }

.guide-content .guide-btn--purple { background: #8957e5; }
.guide-content a.guide-btn--purple:hover { background: #a371f7; }

.guide-content .guide-btn--sm { padding: 4px 12px; font-size: 13px; }
.guide-content .guide-btn--lg { padding: 12px 20px; font-size: 16px; }

.guide-fill {
  padding: 20px;
  border-radius: var(--radius-lg);
}
.guide-fill.guide-callout { padding: 16px; border-radius: var(--radius); }

.guide-frame {
  padding: 20px;
  border-radius: var(--radius-lg);
  border-width: 2px;
  border-style: solid;
}
.guide-frame.guide-callout { padding: 16px; border-radius: var(--radius); }
img.guide-frame { padding: 0; }

.guide-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: auto 0;
  width: 100%;
}

.guide-content [id] { scroll-margin-top: 52px; }

.guide-nav-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  z-index: 250;
}
.guide-nav-toggle:hover,
.guide-nav-toggle.is-active { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }

.guide-nav-panel {
  position: fixed;
  right: 24px;
  bottom: 84px;
  width: 260px;
  max-height: min(420px, 60vh);
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 8px;
  z-index: 250;
}
.guide-nav-title {
  padding: 8px 10px 6px;
  font-size: 12px;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-muted);
}
.guide-nav-item {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.guide-nav-item:hover { background: var(--bg-neutral); color: var(--text-primary); }
.guide-nav-item.is-current { color: var(--accent-blue); font-weight: 600; }

@media (max-width: 768px) {
  .guide-nav-toggle { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .guide-nav-panel { right: 16px; left: 16px; width: auto; bottom: 72px; }
}

@media (max-width: 768px) {
  .gb-canvas { display: block; }
  .gb-cell { display: block; margin-bottom: 16px; }
  .gb-cell > div:not([class]) { display: block; }
  .gb-cell > img,
  .gb-cell > div > img { height: auto; }
}

.guide-content blockquote,
.guide-article blockquote {
  border-left: 4px solid var(--border-color);
  padding: 0 16px;
  margin: 16px 0;
  color: var(--text-muted);
}
.guide-content blockquote p:last-child { margin-bottom: 0; }

.guide-signature {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border-muted);
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
}

.toc {
  background: var(--bg-inset);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 18px;
}
.toc-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-bright);
}
.toc-title i { margin-right: 8px; color: var(--text-muted); }
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2 220px;
  column-gap: 22px;
}
.toc ul li { margin-bottom: 4px; break-inside: avoid; }
.toc ul li a { color: var(--accent-blue); font-size: 14px; }

code {
  font-family: var(--font-mono);
  font-size: 85%;
  padding: 0.2em 0.4em;
  border-radius: var(--radius);
  background: rgba(110, 118, 129, 0.4);
  color: var(--text-primary);
}
.guide-content pre,
.guide-article pre {
  background: var(--bg-inset);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 16px 0;
  font-size: 85%;
  line-height: 1.45;
}
.guide-content pre code,
.guide-article pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  border: none;
}
.guide-article code.command { color: var(--accent-blue-emphasis); }

kbd {
  display: inline-block;
  padding: 3px 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 10px;
  color: var(--text-primary);
  vertical-align: middle;
  background: var(--bg-neutral);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: inset 0 -1px 0 var(--border-color);
  margin: 0 2px;
}

.coords {
  font-family: var(--font-mono);
  color: var(--accent-blue-emphasis);
  font-size: 85%;
  white-space: nowrap;
  padding: 0.2em 0.4em;
  border-radius: var(--radius);
  background: rgba(110, 118, 129, 0.4);
}

.important-block {
  border-left: 4px solid var(--accent-gold);
  background: none;
  padding: 8px 16px;
  margin: 16px 0;
  color: var(--text-primary);
}
.important-block i { color: var(--accent-gold); margin-right: 8px; }

.commands-block {
  background: var(--bg-inset);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-blue-emphasis);
  padding: 16px;
  border-radius: var(--radius);
  margin: 16px 0;
}
.commands-block p:last-child,
.commands-block ul:last-child { margin-bottom: 0; }
.commands-block code { color: var(--accent-blue); }

.table-responsive { overflow-x: auto; margin: 16px 0; }
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}
.guide-table th {
  background: var(--bg-secondary);
  color: var(--text-bright);
  padding: 8px 13px;
  text-align: left;
  font-weight: 600;
  border: 1px solid var(--border-color);
}
.guide-table td {
  padding: 8px 13px;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}
.guide-table tr:nth-child(2n) td { background: var(--bg-secondary); }

.business-toggle { margin: 16px 0; }

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 16px;
  align-items: center;
}
.filters-row label {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.filters-row input,
.filters-row select,
.filter-row input,
.filter-row select,
.modal-content input,
.modal-content select,
.form-control {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 5px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-sans);
  line-height: 20px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.filters-row input:focus,
.filters-row select:focus,
.filter-row input:focus,
.filter-row select:focus,
.modal-content input:focus,
.modal-content select:focus,
.form-control:focus {
  border-color: var(--accent-blue-emphasis);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.3);
}
.filters-row input::placeholder,
.filter-row input::placeholder,
.modal-content input::placeholder,
.form-control::placeholder { color: #6e7681; }
.filters-row input[type="number"] { width: 90px; }

.custom-select { position: relative; display: inline-flex; }
.custom-select__btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  min-width: 130px;
  background: var(--bg-primary); border: 1px solid var(--border-color); color: var(--text-primary);
  padding: 5px 12px; border-radius: var(--radius); font-size: 14px; font-family: var(--font-sans);
  line-height: 20px; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.15s;
}
.custom-select__btn:hover { border-color: var(--border-strong); background: var(--bg-hover); }
.custom-select.is-open .custom-select__btn,
.custom-select__btn:focus-visible {
  border-color: var(--accent-blue-emphasis);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.3);
  outline: none;
}
.custom-select__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-select__chevron { font-size: 11px; color: var(--text-muted); flex-shrink: 0; transition: transform 0.18s ease; }
.custom-select.is-open .custom-select__chevron { transform: rotate(180deg); color: var(--accent-blue-emphasis); }

.custom-select__panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 160px;
  background: var(--bg-neutral); border: 1px solid var(--border-color); border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  padding: 4px; z-index: 60; max-height: 280px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: top center;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.custom-select.is-open .custom-select__panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.custom-select__option {
  display: block; width: 100%; text-align: left; background: none; border: none;
  border-radius: calc(var(--radius) * 0.7); padding: 8px 10px; font-size: 13.5px;
  color: var(--text-secondary); cursor: pointer; font-family: var(--font-sans);
}
.custom-select__option:hover { background: var(--bg-hover); color: var(--text-bright); }
.custom-select__option.is-selected { color: var(--accent-blue-emphasis); font-weight: 600; }

.table-scroll-wrapper { position: relative; overflow: visible; }
.table-scroll-bottom {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 60vh;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) var(--bg-inset);
}
.table-scroll-bottom::-webkit-scrollbar { width: 12px; height: 12px; }
.table-scroll-bottom::-webkit-scrollbar-track { background: var(--bg-inset); }
.table-scroll-bottom::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 100px;
  border: 3px solid var(--bg-inset);
}
.table-scroll-bottom::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }
.table-scroll-bottom::-webkit-scrollbar-corner { background: var(--bg-inset); }

.table-scroll-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(1, 4, 9, 0.5);
  transition: background-color 0.15s, border-color 0.15s, opacity 0.15s;
}
.table-scroll-nav:hover { background: var(--bg-neutral); border-color: var(--accent-blue); }
.table-scroll-nav:disabled,
.table-scroll-nav[hidden] { display: none; }
.table-scroll-nav--left { left: -14px; }
.table-scroll-nav--right { right: -14px; }
@media (max-width: 900px) {
  .table-scroll-nav--left { left: 4px; }
  .table-scroll-nav--right { right: 4px; }
}

.business-table {
  width: 100%;
  min-width: 1200px;
  border-collapse: collapse;
  font-size: 13px;
}
.business-table th,
.business-table td {
  padding: 8px 12px;
  text-align: center !important;
  vertical-align: middle !important;
}
.business-table th {
  background: var(--bg-secondary);
  color: var(--text-bright);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}
.business-table thead th { position: sticky; top: 0; z-index: 2; }
.business-table th:first-child,
.business-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg-card);
}
.business-table thead th:first-child { z-index: 3; background: var(--bg-secondary); }
.business-table th:hover { background: var(--bg-neutral); }
.business-table td {
  border-bottom: 1px solid var(--border-muted);
  color: var(--text-primary);
}
.business-table tr:hover td { background: var(--bg-secondary); }

.business-table .coords {
  background: none;
  padding: 0;
  color: var(--accent-blue-emphasis);
}
.business-table .location-tag {
  display: inline-block;
  background: rgba(56, 139, 253, 0.15);
  border: 1px solid rgba(56, 139, 253, 0.4);
  padding: 0 8px;
  line-height: 20px;
  border-radius: 100px;
  font-size: 12px;
  color: var(--accent-blue);
}

.business-table th .sort-indicator {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  opacity: 0.4;
}
.business-table th .sort-indicator.active { opacity: 1; color: var(--accent-blue); }
.business-table th .sort-indicator.asc::after { content: "▲"; }
.business-table th .sort-indicator.desc::after { content: "▼"; }
.business-table th .sort-indicator.default::after { content: "⇅"; }

.table-count { font-size: 12px; color: var(--text-muted); margin-top: 12px; }

.tier-step {
  display: inline-block;
  padding: 0 8px;
  line-height: 20px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(63, 185, 80, 0.15);
  border: 1px solid rgba(63, 185, 80, 0.4);
  color: #3fb950;
}
.tier-step--mult {
  background: rgba(210, 153, 34, 0.15);
  border-color: rgba(210, 153, 34, 0.4);
  color: var(--accent-gold);
}

.biz-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  justify-content: center;
  background: rgba(1, 4, 9, 0.85);
  padding: 22px 18px;
  overflow-y: auto;
}
.biz-modal[hidden] { display: none; }

.biz-modal-inner {
  position: relative;
  width: 100%;
  max-width: 1500px;
  height: max-content;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
}

.biz-modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.biz-modal-close:hover { color: var(--text-bright); background: var(--bg-neutral); }

.biz-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-right: 30px;
}
.biz-modal-head h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 8px;
}
.biz-modal-head h3 i { color: var(--text-muted); font-size: 16px; }

.biz-tabs { display: flex; gap: 6px; }
.biz-tab {
  padding: 6px 14px;
  background: var(--bg-neutral);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.biz-tab:hover { color: var(--text-primary); background: var(--bg-hover); }
.biz-tab.is-active {
  background: var(--accent-blue-emphasis);
  border-color: rgba(240, 246, 252, 0.1);
  color: #fff;
}

.biz-panel[hidden] { display: none; }
.biz-panel > p { color: var(--text-secondary); margin-bottom: 16px; }
.biz-panel > p i { color: var(--accent-gold); }

.tier-expand {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-primary);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  text-align: left;
}
.tier-expand:hover { color: var(--accent-blue); }
.tier-expand i { margin-left: 4px; font-size: 11px; color: var(--text-muted); transition: transform 0.2s; }
.tier-expand i.is-active { color: var(--accent-blue); transform: rotate(90deg); }

.tier-detail-row td {
  background: var(--bg-inset);
  padding: 0 !important;
  text-align: left !important;
}
.tier-detail { padding: 16px; }
.tier-detail p { color: var(--text-secondary); margin-bottom: 12px; font-size: 13px; }
.tier-detail .guide-table { font-size: 13px; }

@media (max-width: 640px) {
  .biz-modal { padding: 0; }
  .biz-modal-inner { max-width: 100%; height: 100%; border-radius: 0; border: none; }
}

.gtbl-open { margin: 16px 0; }
.gtbl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.gtbl-table th,
.gtbl-table td {
  padding: 8px 12px;
  text-align: left;
  vertical-align: middle;
}
.gtbl-table th {
  background: var(--bg-secondary);
  color: var(--text-bright);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}
.gtbl-table th:hover { background: var(--bg-neutral); }
.gtbl-table td {
  border-bottom: 1px solid var(--border-muted);
  color: var(--text-primary);
}
.gtbl-table tr:hover td { background: var(--bg-secondary); }
.gtbl-table thead th { position: sticky; top: 0; z-index: 2; }
.gtbl-table th:first-child,
.gtbl-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg-card);
}
.gtbl-table thead th:first-child { z-index: 3; background: var(--bg-secondary); }
.gtbl-table .sort-icon { margin-left: 4px; font-size: 11px; opacity: 0.4; }
.gtbl-table .sort-icon.active { opacity: 1; color: var(--accent-blue); }

.lib-hub-intro {
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 18px;
}

.lib-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.lib-hub-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 0.22s ease, background-color 0.22s ease,
              transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
}
.lib-hub-card:not(.lib-hub-card--soon):hover {
  border-color: var(--accent-blue);
  background: var(--bg-neutral);
  transform: rotate(-1deg) translateY(-4px);
  box-shadow: 6px 8px 0 rgb(63 138 224 / 0.16);
  text-decoration: none;
}
.lib-hub-card:nth-child(even):not(.lib-hub-card--soon):hover { transform: rotate(1deg) translateY(-4px); }
.lib-hub-card--soon {
  opacity: 0.6;
  cursor: default;
}

.lib-hub-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 20px;
}
.lib-hub-icon--blue {
  background: rgba(88, 166, 255, 0.15);
  color: var(--accent-blue);
}
.lib-hub-icon--muted {
  background: var(--bg-neutral);
  color: var(--text-muted);
}

.lib-hub-body { flex: 1; min-width: 0; }
.lib-hub-body h3 { color: var(--text-bright); font-size: 16px; margin-bottom: 4px; }
.lib-hub-body p { color: var(--text-secondary); font-size: 13px; margin-bottom: 8px; }
.lib-hub-count {
  display: inline-block;
  padding: 2px 10px;
  background: var(--bg-neutral);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 12px;
}

.lib-hub-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  margin-top: 4px;
  transition: transform 0.2s, color 0.2s;
}
.lib-hub-card:hover .lib-hub-arrow { color: var(--accent-blue); transform: translateX(3px); }

.library-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.library-toolbar .section-title { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }

.library-filters {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 18px;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}
.filter-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 13px;
}
.filter-row label i { color: var(--text-muted); }

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.track-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, background-color 0.2s;
}
.track-card:hover {
  border-color: var(--border-strong);
  background: #1c2129;
}
.track-card-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}
.track-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

img.img-fallback {
  background-color: var(--bg-neutral);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23545e6b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40%;
}
.track-card-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(1, 4, 9, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0 8px;
  line-height: 20px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
}
.track-like {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(1, 4, 9, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0 8px;
  height: 24px;
  line-height: 22px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.track-like i { color: var(--text-muted); transition: color 0.15s; }
.track-like:hover { border-color: var(--accent-red); }
.track-like.is-liked { color: var(--accent-red); }
.track-like.is-liked i { color: var(--accent-red); }

.track-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
}
.track-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-bright);
}
.track-artist { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }

.track-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.track-difficulty { color: var(--accent-gold); font-size: 12px; }
.track-difficulty .far { color: var(--border-color); }

.track-modes { display: flex; gap: 4px; flex-wrap: wrap; }
.track-mode {
  display: inline-block;
  padding: 0 8px;
  line-height: 20px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 12px;
  background: var(--bg-neutral);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}
.track-mode.mode-osu {
  background: rgba(248, 81, 73, 0.15);
  border-color: rgba(248, 81, 73, 0.4);
  color: #ff7b72;
}
.track-mode.mode-mania {
  background: rgba(188, 140, 255, 0.15);
  border-color: rgba(188, 140, 255, 0.4);
  color: rgb(188, 140, 255);
}

.track-map-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
}
.track-map-code {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}
.track-map-code i { margin-right: 4px; }
.track-map-link {
  color: var(--text-muted);
  font-size: 13px;
  transition: color 0.15s;
  margin-left: auto;
}
.track-map-link:hover { color: var(--accent-blue); }

.track-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  vertical-align: middle;
}
.track-copy-btn:hover { color: var(--accent-blue); }

.track-edit-row { display: flex; gap: 12px; }
.track-edit-row > div { flex: 1; }
.track-edit-modes { display: flex; gap: 16px; margin-bottom: 12px; }
.track-edit-modes label { display: flex; align-items: center; gap: 6px; font-size: 14px; }

.track-copy {
  margin-top: auto;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 34px 18px;
  color: var(--text-muted);
  font-size: 14px;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
}
.track-count { text-align: left; font-size: 12px; color: var(--text-muted); }
.error-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 18px;
  color: var(--accent-red);
  border: 1px solid rgba(248, 81, 73, 0.4);
  background: rgba(248, 81, 73, 0.1);
  border-radius: var(--radius);
}

.copy-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  z-index: 9999;
  animation: fadeInUp 0.2s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(1, 4, 9, 0.8);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 18px;
}
.modal-overlay.open,
.modal-overlay.active { display: flex; }
.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 18px;
  border-radius: var(--radius-lg);
  max-width: 448px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow);
}
.modal-content--wide { max-width: 640px; }

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text-bright); }
.modal-content > h2 {
  color: var(--text-bright);
  font-size: 20px;
  margin-bottom: 4px;
}
.modal-content > p { color: var(--text-muted); margin-bottom: 16px; font-size: 13px; }
.modal-content input,
.modal-content select,
.modal-content textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--bg-inset);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-bright);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  outline: none;
  transition: border-color 0.2s;
}
.modal-content textarea { resize: vertical; }
.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus { border-color: var(--accent-blue); }
.modal-content input::placeholder,
.modal-content textarea::placeholder { color: var(--text-muted); }
.modal-modes {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-size: 14px;
}
.modal-modes label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.modal-modes input { width: auto; margin: 0; }
.modal-content button[type="submit"] {
  width: 100%;
  padding: 6px 16px;
  background: var(--accent-green);
  border: 1px solid rgba(240, 246, 252, 0.1);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}
.modal-content button[type="submit"]:hover { background: var(--accent-green-hover); }
.modal-message { margin-top: 16px; text-align: center; font-size: 13px; }
.modal-message.success { color: #3fb950; }
.modal-message.error { color: var(--accent-red); }

.auth-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-search { position: relative; display: flex; align-items: center; }
.site-search-toggle {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--radius);
  color: var(--text-bright);
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.15s, color 0.15s;
}
.site-search-toggle:hover,
.site-search-toggle.is-active { background: var(--bg-hover); color: var(--accent-blue); }
.site-search-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(1, 4, 9, 0.55);
  z-index: 400;
  overflow: hidden;
}
.site-search-panel input {
  width: 100%;
  padding: 12px 14px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
}
.site-search-panel input::placeholder { color: var(--text-muted); }
.site-search-results { max-height: 360px; overflow-y: auto; }
.site-search-empty {
  padding: 16px 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.site-search-group {
  padding: 8px 14px 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: none;
  letter-spacing: normal;
}
.site-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
}
.site-search-item:hover { background: var(--bg-hover); text-decoration: none; }
.site-search-item i { color: var(--text-muted); width: 14px; text-align: center; flex-shrink: 0; }

.notif-bell-wrap { position: relative; }
.notif-bell {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.15s, border-color 0.15s;
}
.notif-bell:hover { background: var(--bg-hover); border-color: var(--border-strong); }
.notif-bell-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 100px;
  background: var(--accent-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
@keyframes notif-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.4); }
  65% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.notif-bell-badge.is-new { animation: notif-pop 0.5s ease; }
.notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(1, 4, 9, 0.55);
  z-index: 400;
  overflow: hidden;
}
.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-bright);
}
.notif-panel-head button {
  background: none;
  border: none;
  color: var(--accent-blue-emphasis);
  font-size: 12px;
  font-family: var(--font-sans);
  cursor: pointer;
}
.notif-panel-head button:hover { text-decoration: underline; }
.notif-panel-list { max-height: 360px; overflow-y: auto; }
.notif-empty {
  padding: 18px 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.notif-item {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-muted);
  color: var(--text-primary);
  text-decoration: none;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-hover); text-decoration: none; }
.notif-item.is-unread { background: rgba(63, 138, 224, 0.08); }
.notif-item-msg { font-size: 13px; line-height: 1.4; }
.notif-item-date { margin-top: 4px; font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }
.auth-btn {
  min-width: 0;
  height: 32px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}
.auth-btn-login {
  background: var(--bg-neutral);
  border-color: var(--border-color);
  color: var(--text-primary);
}
.auth-btn-login:hover { background: var(--bg-hover); border-color: var(--border-strong); }
.auth-btn-profile {
  background: var(--bg-neutral);
  border-color: var(--border-color);
  color: var(--text-secondary);
}
.auth-btn-profile:hover { background: var(--bg-hover); border-color: var(--border-strong); color: var(--text-primary); }

.header-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: var(--accent-blue);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: 2px 2px 0 var(--border-color);
  color: var(--bg-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, transform 0.12s, box-shadow 0.12s;
}
.header-support-btn:hover {
  background: var(--accent-blue-emphasis);
  border-color: var(--border-strong);
  color: var(--bg-primary);
  text-decoration: none;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--border-color);
}
.header-support-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--border-color);
}
.header-support-btn i { font-size: 12px; }

.auth-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 44px;
  gap: 20px;
}

.login-container,
.register-container {
  width: 100%;
  max-width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
  padding: 18px;
  margin: 0;
}
.login-container label,
.register-container label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.login-container input[type="text"],
.login-container input[type="password"],
.register-container input[type="text"],
.register-container input[type="password"] {
  width: 100%;
  padding: 9px 12px;
  margin-bottom: 18px;
  background: var(--bg-inset);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login-container input:focus,
.register-container input:focus {
  border-color: var(--accent-blue);
  box-shadow: 3px 3px 0 rgb(63 138 224 / 0.3);
}

.password-field { position: relative; margin-bottom: 18px; }
.password-field input[type="password"],
.password-field input[type="text"] { padding-right: 30px; margin-bottom: 0; }
.password-toggle {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 15px;
  transition: color 0.15s;
}
.password-toggle:hover { color: var(--text-bright); }

.password-field input[type="password"]::-ms-reveal,
.password-field input[type="password"]::-ms-clear {
  display: none;
}
.login-container button[type="submit"],
.register-container button[type="submit"] {
  width: 100%;
}

.auth-remember {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-weight: 400 !important;
  font-size: 13px !important;
  color: var(--text-muted);
  cursor: pointer;
}
.auth-remember input { width: auto !important; margin: 0 !important; }

.auth-alt {
  width: 100%;
  max-width: 360px;
  border: 1px solid var(--border-color);
  background: var(--bg-neutral);
  padding: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text-primary);
}
.auth-alt a { color: var(--accent-blue); font-weight: 600; }
.auth-alt a:hover { color: var(--accent-blue-emphasis); }

.error,
.logout-msg {
  display: none;
  padding: 12px 16px;
  margin-bottom: 18px;
  border: 1px solid;
  font-size: 14px;
}
.error {
  color: var(--text-primary);
  background: rgb(242 85 74 / 0.12);
  border-color: rgb(242 85 74 / 0.5);
}
.logout-msg {
  color: var(--text-primary);
  background: rgb(63 163 77 / 0.12);
  border-color: rgb(63 163 77 / 0.5);
}

.field-status {
  font-size: 12px;
  margin: -10px 0 14px;
  min-height: 14px;
}
.field-status.is-checking { color: var(--text-muted); }
.field-status.is-ok { color: var(--accent-green); }
.field-status.is-bad { color: var(--accent-red); }

.password-checklist {
  list-style: none;
  margin: -6px 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.password-checklist li { display: flex; align-items: center; gap: 6px; }
.password-checklist li i { width: 12px; font-size: 10px; text-align: center; }
.password-checklist li.is-met { color: var(--accent-green); }

.notice {
  padding: 12px 16px;
  margin-bottom: 18px;
  border: 1px solid;
  font-size: 14px;
}
.notice--error {
  color: var(--text-primary);
  background: rgb(242 85 74 / 0.12);
  border-color: rgb(242 85 74 / 0.5);
}
.notice--success {
  color: var(--text-primary);
  background: rgb(63 163 77 / 0.12);
  border-color: rgb(63 163 77 / 0.5);
}
.notice--warning {
  color: var(--text-primary);
  background: rgb(224 169 58 / 0.12);
  border-color: rgb(224 169 58 / 0.5);
}

.support-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
}
.support-card__lede {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  border-left: 3px solid var(--accent-blue);
  padding-left: 14px;
}
.support-card__lede + .support-card__lede {
  border-left: none;
  padding-left: 17px;
  margin-top: -8px;
  font-size: 14px;
  color: var(--text-muted);
}
.support-form { display: flex; flex-direction: column; gap: 6px; }
.support-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 10px;
}
.support-form input,
.support-form textarea {
  width: 100%;
  background: var(--bg-inset);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-bright);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
}
.support-form textarea { min-height: 140px; resize: vertical; }
.support-form input:focus,
.support-form textarea:focus { outline: none; border-color: var(--accent-blue); }
.support-form button { margin-top: 16px; align-self: flex-start; }

.profile-container {
  width: 100%;
  max-width: 600px;
  margin: 22px auto 34px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
}
.profile-container hr {
  border: none;
  border-top: 2px solid var(--border-muted);
  margin: 16px 0;
}
.profile-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
}
.profile-info label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-muted);
  width: 120px;
  flex-shrink: 0;
}
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.profile-inline-btn {
  padding: 3px 10px;
  font-size: 12px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1;
  vertical-align: middle;
}
.role-badge i { font-size: 11px; }
.role-badge--admin {
  color: var(--accent-red);
  text-shadow: 0 0 10px rgba(242, 85, 74, 0.55);
}
.role-badge--moderator {
  color: var(--accent-lilac);
  text-shadow: 0 0 10px rgba(177, 140, 245, 0.55);
}
.role-badge--user {
  color: var(--accent-blue-emphasis);
  text-shadow: 0 0 10px rgba(100, 168, 242, 0.55);
}

.role-color--admin {
  color: var(--accent-red);
  text-shadow: 0 0 8px rgba(242, 85, 74, 0.45);
}
.role-color--moderator {
  color: var(--accent-lilac);
  text-shadow: 0 0 8px rgba(177, 140, 245, 0.45);
}
.role-color--user {
  color: var(--accent-blue-emphasis);
  text-shadow: 0 0 8px rgba(100, 168, 242, 0.45);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
}
.status-badge--pending { color: var(--accent-gold); }
.status-badge--approved { color: var(--accent-green); }
.status-badge--rejected { color: var(--accent-red); }

.profile-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-bright);
  cursor: pointer;
  text-align: left;
}
.profile-section-toggle:hover { color: var(--accent-blue); }
.profile-section-toggle i { font-size: 14px; color: var(--text-muted); transition: transform 0.2s; }
.profile-section-toggle.is-open i { transform: rotate(180deg); }
.profile-section-body { margin-top: 12px; }

.admin-container {
  width: 100%;
  max-width: 1012px;
  margin: 22px auto;
  padding: 0 22px 34px;
}
.admin-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-muted);
}

.admin-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--border-color);
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: -2px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.admin-tab:hover { color: var(--text-bright); }
.admin-tab.is-active { color: var(--accent-blue); border-color: var(--accent-blue); }
.admin-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--bg-neutral);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.admin-tab.is-active .admin-tab-count { color: var(--accent-blue); border-color: var(--accent-blue); }

.admin-panel { display: none; }
.admin-panel.is-active { display: block; }

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.admin-stat-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}
.admin-stat-label { font-size: 12px; color: var(--text-muted); }
.admin-stat-value { font-family: var(--font-sans); font-size: 28px; font-weight: 600; color: var(--text-bright); }
.admin-stat-sub { font-size: 12px; color: var(--text-secondary); }

.admin-stats-chart-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 12px;
}
.admin-stats-chart { width: 100%; max-width: 640px; height: auto; }
.admin-stats-bar { fill: var(--accent-blue); }
.admin-stats-baseline { stroke: var(--border-color); stroke-width: 1; }
.admin-stats-axis-label {
  fill: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.admin-search {
  display: block;
  width: 100%;
  max-width: 360px;
  margin-bottom: 16px;
  padding: 9px 12px;
  background: var(--bg-inset);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
}
.admin-search::placeholder { color: var(--text-muted); }
.admin-search:focus { outline: none; border-color: var(--accent-blue); }
.track-moderation {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.track-moderation:hover { border-color: var(--border-strong); }
.track-moderation.is-resolved { opacity: 0.55; }
.track-moderation img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}
.track-info { flex: 1; min-width: 200px; }
.track-info h3, .track-info p { overflow-wrap: anywhere; }
.track-info h3 { font-size: 16px; margin-bottom: 4px; }
.track-meta { color: var(--text-muted); font-size: 13px; overflow-wrap: anywhere; }
.track-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.ticket-chat {
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-inset);
  padding: 12px;
}
.ticket-chat__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 12px;
}
.ticket-chat__empty { color: var(--text-muted); font-size: 13px; }
.ticket-msg {
  align-self: flex-start;
  max-width: 85%;
  background: var(--bg-neutral);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 8px 12px;
}
.ticket-msg--mine { align-self: flex-end; }
.ticket-msg--admin {
  background: rgba(63, 138, 224, 0.12);
  border-color: var(--accent-blue-emphasis);
}
.ticket-msg__head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: none;
  letter-spacing: normal;
}
.ticket-msg--admin .ticket-msg__head { color: var(--accent-blue-emphasis); }
.ticket-msg__body {
  font-size: 14px;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}
.ticket-chat__form { display: flex; gap: 8px; align-items: flex-end; }
.ticket-chat__form button[type="submit"] { width: auto; flex-shrink: 0; }
.ticket-chat__form textarea {
  flex: 1;
  min-height: 44px;
  max-height: 140px;
  resize: vertical;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 8px 12px;
}
.ticket-chat__form textarea:focus { outline: none; border-color: var(--accent-blue); }
.ticket-chat__closed {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 13px;
}

.empty {
  text-align: center;
  color: var(--text-muted);
  padding: 22px;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 14px;
}

#previewModal {
  align-items: flex-start;
  padding: 28px var(--doc-gutter);
  overflow-y: auto;
}
#previewModal .modal-content {
  max-width: var(--doc-article);
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}
#previewModal .modal-close { z-index: 10; }

.footer {
  border-top: 1px solid var(--border-muted);
  padding: 28px 22px 22px;
  margin-top: 34px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 22px;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-bright);
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
}
.footer-col ul li a:hover { color: var(--accent-blue); text-decoration: underline; }

.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 18px;
  margin-top: 8px;
  border-top: 1px solid var(--border-muted);
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .container { flex-direction: column; }
  .sidebar {
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar-block { flex: 1 1 240px; }
  .news-card { flex-direction: column; }
  .news-card .news-img { flex: 0 0 180px; width: 100%; }
}

@media (max-width: 900px) {
  .guide-columns--3,
  .guide-columns--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --doc-pad-x: 16px; --doc-gutter: 16px; }
  .header { padding: 12px 16px; }

  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg-primary);
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    padding: 8px 16px 16px;
  }
  .nav.is-open { display: flex; }
  .nav a, .nav .nav-soon {
    width: 100%;
    padding: 12px 8px;
    font-size: 15px;
    border-bottom: 1px solid var(--border-muted);
  }

  .container { padding: 0 16px; margin: 18px auto; }
  .admin-container { padding-left: 16px; padding-right: 16px; }
  .guide-article { padding: 20px var(--doc-pad-x); }
  .guide-title { font-size: 24px; }
  .toc ul { columns: 1; }
  .hero { padding: 44px 16px 38px; }
  .footer { padding: 22px 16px 18px; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }

  .guide-columns { grid-template-columns: 1fr; }
  .guide-columns .guide-col { aspect-ratio: auto; }
}

@media (max-width: 600px) {
  .logo { margin-right: 0; }
  .guides-grid { grid-template-columns: 1fr; }
  .guides-page-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .filter-row { flex-direction: column; align-items: stretch; }
  .filter-row label { flex-wrap: wrap; }
  .tracks-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .filters-row { flex-direction: column; align-items: stretch; }
  .filters-row input[type="number"] { width: 100%; }
  .track-moderation { flex-direction: column; align-items: stretch; }
}

@media (max-width: 400px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.home-hero {
  position: relative;
  padding: 44px 22px 34px;
  overflow: hidden;
  background:
    radial-gradient(120% 160% at 82% -15%, rgb(63 138 224 / 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}
.home-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 22px;
  align-items: start;
}
.home-hero__slab {
  position: absolute; top: -60px; right: -140px; width: 620px; height: 620px;
  background: var(--accent-blue); opacity: 0.14; transform: rotate(18deg);
  z-index: 0; pointer-events: none;
}
.home-hero__clouds {
  position: absolute; left: 0; right: 0; top: 24px; height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='40'%3E%3Cg fill='%23E9EFDD' fill-opacity='0.35'%3E%3Crect x='10' y='14' width='36' height='10'/%3E%3Crect x='18' y='8' width='18' height='6'/%3E%3Crect x='150' y='20' width='28' height='8'/%3E%3Crect x='156' y='14' width='14' height='6'/%3E%3Crect x='250' y='10' width='40' height='10'/%3E%3Crect x='260' y='4' width='18' height='6'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 320px 40px;
  animation: home-drift-clouds 46s linear infinite;
  z-index: 0; pointer-events: none;
  transition: transform 200ms ease-out;
}
.home-hero__skyline {
  position: absolute; left: 0; right: 0; bottom: 0; height: 132px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='140'%3E%3Cg fill='%234a5b72'%3E%3Crect x='0' y='94' width='34' height='46'/%3E%3Crect x='44' y='70' width='22' height='70'/%3E%3Crect x='76' y='86' width='40' height='54'/%3E%3Crect x='120' y='42' width='24' height='8'/%3E%3Crect x='124' y='50' width='16' height='90'/%3E%3Crect x='156' y='80' width='30' height='60'/%3E%3Crect x='198' y='98' width='48' height='42'/%3E%3Crect x='258' y='64' width='26' height='76'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: 0 bottom;
  background-size: 300px 140px;
  opacity: 0.92;
  animation: home-drift-skyline 70s linear infinite;
  z-index: 0; pointer-events: none;
  transition: transform 200ms ease-out;
}
@keyframes home-drift-skyline { from { background-position-x: 0; } to { background-position-x: -300px; } }
@keyframes home-drift-clouds { from { background-position-x: 0; } to { background-position-x: 320px; } }
.home-hero { --mx: 0; --my: 0; }
.home-hero:hover .home-hero__slab { transform: translate(calc(var(--mx) * 26px), calc(var(--my) * 26px)) rotate(18deg); }
.home-hero:hover .home-hero__clouds { transform: translate(calc(var(--mx) * 14px), calc(var(--my) * 8px)); }
.home-hero:hover .home-hero__skyline { transform: translate(calc(var(--mx) * -8px), 0); }

.home-hero__sky-body {
  position: absolute; width: 42px; height: 42px; border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 0; pointer-events: none;
  transition: left 4s linear, top 4s linear, opacity 900ms ease, background 900ms ease, box-shadow 900ms ease;
  opacity: 0;
}
.home-hero__sky-body.is-visible { opacity: 1; }
.home-hero__sky-body.is-sun {
  background: radial-gradient(circle at 35% 32%, #fff8de 0%, #ffda6e 45%, #ffab2e 100%);
  box-shadow: 0 0 46px 14px rgba(255, 178, 60, 0.35);
}
.home-hero__sky-body.is-moon {
  width: 34px; height: 34px;
  background: radial-gradient(circle at 38% 34%, #f4f7ff 0%, #cdd8ec 55%, #98a8c4 100%);
  box-shadow: 0 0 30px 9px rgba(180, 200, 235, 0.25);
}

.home-hero__content, .home-hero__side { position: relative; z-index: 1; }
.home-hero__eyebrow {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent-blue); margin: 0 0 12px;
  opacity: 0; animation: home-rise 500ms cubic-bezier(.22,1,.36,1) 120ms forwards;
}
.home-hero__title {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(32px, 5vw, 60px);
  line-height: 0.96; text-transform: uppercase; letter-spacing: -0.005em; margin: 0 0 16px;
  opacity: 0; animation: home-rise 600ms cubic-bezier(.22,1,.36,1) 220ms forwards;
}
.home-hero__title span { display: block; }
.home-hero__title .solid { color: var(--text-bright); }
.home-hero__title .accent {
  color: var(--accent-blue); display: inline-block;
}
.home-hero__title .accent.is-glitching { animation: home-glitch 0.2s steps(2, end) infinite; }
@keyframes home-glitch {
  0%   { opacity: 1;   transform: translate(0, 0)     skew(0deg); }
  25%  { opacity: .82; transform: translate(-3px, 1px) skew(-1.2deg); }
  50%  { opacity: 1;   transform: translate(4px, -1px) skew(.9deg); }
  75%  { opacity: .9;  transform: translate(-2px, 0)   skew(-.5deg); }
  100% { opacity: 1;   transform: translate(0, 0)      skew(0deg); }
}
.home-hero__title .ghost,
.home-section-head h2 .ghost,
.page-hero__title .ghost {
  color: #2f6fb0;
  -webkit-text-stroke: 1.5px #123151;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}
.home-hero__lede {
  font-size: 16px; color: var(--text-muted); max-width: 44ch; margin: 0 0 18px;
  opacity: 0; animation: home-rise 600ms cubic-bezier(.22,1,.36,1) 320ms forwards;
}
.home-hero__actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  opacity: 0; animation: home-rise 600ms cubic-bezier(.22,1,.36,1) 420ms forwards;
}
@keyframes home-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.home-hero__side { position: relative; min-height: 300px; padding-top: 8px; perspective: 700px; }

.home-scoreboard {
  background: rgb(9 10 7 / 0.72); border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--border-color);
  padding: 12px 14px 10px; width: 220px; margin-left: auto;
  transition: transform 200ms ease-out;
}
.home-hero:hover .home-scoreboard { transform: rotateY(calc(var(--mx) * 6deg)) rotateX(calc(var(--my) * -6deg)); }
.home-scoreboard__title {
  font-family: var(--font-display); font-weight: 800; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text-bright); margin: 0 0 4px;
}
.home-scoreboard__rule { height: 2px; background: var(--accent-blue); opacity: 0.5; margin-bottom: 8px; }
.home-scoreboard__row { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-mono); font-size: 12px; padding: 3px 0; }
.home-scoreboard__row .l { color: var(--text-muted); white-space: nowrap; }
.home-scoreboard__row .fill { flex: 1; border-bottom: 1px dotted rgba(255,255,255,0.15); transform: translateY(-3px); }
.home-scoreboard__row .v { color: var(--accent-blue); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.home-sticker {
  position: absolute; font-family: var(--font-display); font-weight: 700; font-size: 13px; text-transform: lowercase;
  padding: 8px 14px; border: 2px solid var(--accent-blue); background: var(--bg-card); color: var(--text-primary);
  white-space: nowrap; box-shadow: 5px 5px 0 rgb(63 138 224 / 0.2); cursor: default;
  transition: transform 180ms cubic-bezier(.34,1.56,.64,1), box-shadow 180ms ease;
}
.home-sticker:hover { transform: translate(-3px, -4px) rotate(calc(var(--r) * 1.6)) !important; box-shadow: 9px 11px 0 rgb(63 138 224 / 0.28); }
.home-sticker--1 { top: 224px; right: -6px; --r: -8deg; transform: rotate(-8deg); }
.home-sticker--2 { top: 280px; right: 60px; --r: 5deg; transform: rotate(5deg); background: var(--accent-purple); color: var(--bg-primary); border-color: var(--accent-purple); }
.home-sticker--3 { top: 336px; right: -2px; --r: -4deg; transform: rotate(-4deg); background: var(--accent-blue); color: var(--bg-primary); border-color: var(--accent-blue); }

.home-ticker { background: var(--accent-blue); overflow: hidden; border-top: 2px solid var(--text-bright); border-bottom: 2px solid var(--text-bright); }
.home-ticker__track {
  display: flex; white-space: nowrap; animation: home-ticker 28s linear infinite; padding: 9px 0;
  will-change: transform;
  animation-play-state: paused;
}
.home-ticker__track.is-running { animation-play-state: running; }
.home-ticker:hover .home-ticker__track { animation-play-state: paused; }
@keyframes home-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.home-ticker__item { font-family: var(--font-display); font-weight: 800; font-size: 13px; text-transform: uppercase; color: var(--bg-primary); padding: 0 20px; border-right: 2px solid rgba(0,0,0,0.2); }

@media (prefers-reduced-motion: reduce) {
  .home-hero__title, .home-hero__eyebrow, .home-hero__lede, .home-hero__actions { opacity: 1 !important; animation: none !important; transform: none !important; }
  .home-hero__clouds, .home-hero__skyline { animation: none !important; }
  .home-ticker__track { animation: none !important; }
}

.home-section { max-width: 1240px; margin: 0 auto; padding: 34px 22px; }
.home-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.home-section-head h2 {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 3vw, 30px);
  text-transform: uppercase; margin: 0; letter-spacing: -0.005em; color: var(--text-bright);
}
.home-section-head a.home-all { font-family: var(--font-display); font-weight: 700; font-size: 13px; text-transform: uppercase; color: var(--accent-blue); text-decoration: none; white-space: nowrap; }

.home-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.home-news-card,
.home-news-card:hover {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 20px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.home-news-card:hover { border-color: var(--accent-blue); transform: rotate(-1deg) translateY(-4px); box-shadow: 6px 8px 0 rgb(63 138 224 / 0.14); }
.home-news-card:nth-child(2):hover { transform: rotate(1deg) translateY(-4px); }
.home-news-card .k { font-family: var(--font-mono); font-size: 11px; color: var(--accent-blue); text-transform: uppercase; letter-spacing: 0.05em; }
.home-news-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; text-transform: none; margin: 0; line-height: 1.25; color: var(--text-bright); }
.home-news-card p { margin: 0; font-size: 14px; color: var(--text-muted); flex: 1; }
.home-news-card .meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); border-top: 1px solid var(--border-color); padding-top: 10px; }

@media (max-width: 900px) {
  .home-hero__inner { grid-template-columns: 1fr; }
  .home-hero__side { display: none; }
  .home-news-grid { grid-template-columns: 1fr; }
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 22px;
  border-bottom: 1px solid var(--border-color);
}
.page-hero__slab {
  position: absolute; top: -60px; right: -100px; width: 360px; height: 360px;
  background: var(--accent-blue); opacity: 0.08; transform: rotate(18deg);
  z-index: 0; pointer-events: none;
  transition: transform 200ms ease-out;
}
.page-hero__clouds {
  position: absolute; left: 0; right: 0; top: 16px; height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='40'%3E%3Cg fill='%23E9EFDD' fill-opacity='0.3'%3E%3Crect x='10' y='14' width='36' height='10'/%3E%3Crect x='18' y='8' width='18' height='6'/%3E%3Crect x='150' y='20' width='28' height='8'/%3E%3Crect x='156' y='14' width='14' height='6'/%3E%3Crect x='250' y='10' width='40' height='10'/%3E%3Crect x='260' y='4' width='18' height='6'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 320px 40px;
  animation: home-drift-clouds 46s linear infinite;
  z-index: 0; pointer-events: none;
  transition: transform 200ms ease-out;
}
.page-hero__skyline {
  position: absolute; left: 0; right: 0; bottom: 0; height: 62px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='140'%3E%3Cg fill='%234a5b72'%3E%3Crect x='0' y='94' width='34' height='46'/%3E%3Crect x='44' y='70' width='22' height='70'/%3E%3Crect x='76' y='86' width='40' height='54'/%3E%3Crect x='120' y='42' width='24' height='8'/%3E%3Crect x='124' y='50' width='16' height='90'/%3E%3Crect x='156' y='80' width='30' height='60'/%3E%3Crect x='198' y='98' width='48' height='42'/%3E%3Crect x='258' y='64' width='26' height='76'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: 0 bottom;
  background-size: 210px 98px;
  opacity: 0.6;
  animation: home-drift-skyline 70s linear infinite;
  z-index: 0; pointer-events: none;
  transition: transform 200ms ease-out;
}
.page-hero { --mx: 0; --my: 0; }
.page-hero:hover .page-hero__slab { transform: translate(calc(var(--mx) * 16px), calc(var(--my) * 16px)) rotate(18deg); }
.page-hero:hover .page-hero__clouds { transform: translate(calc(var(--mx) * 10px), calc(var(--my) * 5px)); }
.page-hero:hover .page-hero__skyline { transform: translate(calc(var(--mx) * -6px), 0); }

.page-hero__inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-hero__eyebrow { font-family: var(--font-mono); font-size: 12px; color: var(--accent-blue); margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.page-hero__title {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 3.4vw, 38px);
  text-transform: uppercase; letter-spacing: -0.005em; margin: 0; color: var(--text-bright);
}
.page-hero__title .accent { color: var(--accent-blue); }
.page-hero__count { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: 8px; }
.page-hero__action { flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  .page-hero__clouds, .page-hero__skyline { animation: none !important; }
}

.fx-season-decor { position: fixed; inset: 0; z-index: 9998; pointer-events: none; overflow: hidden; }
.fx-snowflake, .fx-bat {
  position: absolute; top: -30px; left: 0;
  animation-name: fx-season-fall; animation-timing-function: linear; animation-iteration-count: infinite;
}
.fx-snowflake { color: #eef3f8; opacity: 0.85; text-shadow: 0 0 4px rgba(255,255,255,0.5); }
.fx-bat { opacity: 0.8; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); }
@keyframes fx-season-fall {
  from { transform: translateY(-30px) translateX(0) rotate(0deg); }
  to { transform: translateY(110vh) translateX(var(--drift, 0px)) rotate(12deg); }
}
