/* ==========================================================================
   Warnung vor Toms Car Hifi – ruhiges, professionelles Layout
   ========================================================================== */

/* Light theme aligned with toms-car-hifi.de: white / gray / orange #FF7D01 */
:root {
  --bg: #ffffff;
  --bg-alt: #f1f1f1;
  --surface: #ffffff;
  --text: #000000;
  --text-muted: #555555;
  --border: #dddddd;
  --primary: #ff7d01;
  --primary-hover: #e56f00;
  --primary-soft: #fff3e8;
  --accent: #ff7d01;
  --ok: #2f6b3a;
  --ok-bg: #e8f2ea;
  --wait: #b36b00;
  --wait-bg: #fff4e0;
  --danger: #c62828;
  --star: #ff9900;
  --star-empty: #cccccc;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --radius: 2px;
  --radius-sm: 2px;
  --header-h: 60px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 960px;
  --narrow: 680px;
  --ring: color-mix(in srgb, var(--primary) 28%, transparent);
  --home-stack-gap: 0.65rem;
}

[data-theme="dark"] {
  --bg: #121212;
  --bg-alt: #1a1a1a;
  --surface: #1e1e1e;
  --text: #f1f1f1;
  --text-muted: #aaaaaa;
  --border: #333333;
  --primary: #ff8a1a;
  --primary-hover: #ff9f40;
  --primary-soft: #2a1a0a;
  --accent: #ff8a1a;
  --ok: #6bb07a;
  --ok-bg: #1a2a1e;
  --wait: #ffb347;
  --wait-bg: #2a2008;
  --danger: #ef5350;
  --star: #ff9900;
  --star-empty: #444444;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --ring: color-mix(in srgb, var(--primary) 30%, transparent);
  --radius: 2px;
  --radius-sm: 2px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4 {
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 650;
  margin: 0 0 0.55em;
}

h1 { font-size: clamp(1.45rem, 2.8vw, 1.85rem); font-weight: 700; }
h2 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); }
h3 { font-size: 1rem; }

p { margin: 0 0 0.9em; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.narrow { width: min(100% - 2rem, var(--narrow)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
  font-size: 0.875rem;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .site-header {
  background: var(--surface);
}
.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--primary);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}
.logo-badge {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 2px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: none;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.logo-text strong {
  font-size: 0.84rem;
  color: var(--text);
  font-weight: 650;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--text);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.1rem 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.84rem;
  padding: 0.3rem 0;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--primary); }
.btn-nav {
  padding: 0.35rem 0.75rem !important;
  font-size: 0.84rem !important;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 0.85rem;
}
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: inline; }

@media (max-width: 820px) {
  .nav-toggle { display: flex; order: 2; }
  .theme-toggle { order: 3; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: var(--header-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 1rem 0.9rem;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }
  .site-nav a {
    display: block;
    padding: 0.55rem 0.45rem;
    border-radius: var(--radius-sm);
  }
  .site-nav a:hover { background: var(--bg-alt); }
  .btn-nav { text-align: center; margin-top: 0.25rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 550;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
  box-shadow: none;
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff !important;
}
.btn-secondary {
  background: var(--surface);
  color: var(--text) !important;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: color-mix(in srgb, var(--text-muted) 50%, var(--border));
  box-shadow: 0 0 0 3px var(--ring);
}
.btn-danger {
  background: transparent;
  color: var(--danger) !important;
  border-color: color-mix(in srgb, var(--danger) 45%, var(--border));
}
.btn-danger:hover { background: var(--primary-soft); }
.btn-lg { padding: 0.55rem 1.1rem; }
.btn-block { width: 100%; }
.btn-block + .btn-block { margin-top: 0.45rem; }

.text-link {
  color: var(--primary);
  font-weight: 550;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}
.text-link:hover { text-decoration: underline; }

/* Flash */
.flash-wrap { padding-top: 0.85rem; }
.flash {
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.45rem;
  border: 1px solid var(--border);
  font-size: 0.875rem;
}
.flash-success { background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--primary-soft); color: var(--primary); }

/* Homepage: equal small gaps between intro / poll / reviews cards */
.home-stack {
  display: flex;
  flex-direction: column;
  gap: var(--home-stack-gap);
  width: min(100% - 2rem, var(--max));
  margin: 1.25rem auto 1.5rem;
}
.home-stack > .hero,
.home-stack > .section {
  padding: 0;
  margin: 0;
  width: 100%;
}
.home-stack > .hero > .container,
.home-stack > .section > .container {
  width: 100%;
  margin: 0;
  max-width: none;
}
.home-stack .hero-simple .container,
.home-stack .poll-box,
.home-stack .newsletter-box,
.home-stack .home-reviews-panel {
  margin: 0;
}

/* Hero */
.hero {
  padding: 1.5rem 0 0;
  border-bottom: none;
  position: relative;
}
.hero-simple {
  padding-bottom: 0;
  margin-bottom: 0;
}
.hero-simple .container {
  position: relative;
  padding: 1.35rem 1.4rem 1.45rem;
  background: var(--surface);
  border: 2px dotted var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.hero-simple .container::before {
  display: none;
}
.intro-prose {
  width: 100%;
  max-width: none;
  font-size: 0.94rem;
  color: var(--text-muted);
}
.intro-prose p {
  margin-bottom: 0;
  max-width: none;
}
.intro-prose strong { color: var(--text); font-weight: 650; }
.hero-simple h1 {
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  text-align: center;
}
.hero-simple .intro-prose {
  text-align: center;
}
.hero-simple .intro-prose p {
  margin-left: auto;
  margin-right: auto;
}
.score-inline {
  margin: 1.1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 1rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
}
.score-inline-lg {
  font-size: 1.15rem;
}
.score-inline-center {
  justify-content: center;
  text-align: center;
  width: 100%;
}
.score-inline .score-num {
  color: var(--primary);
  font-size: 1.85rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.score-inline .score-of {
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 0.15rem;
}
.score-inline .stars {
  font-size: 1.45rem;
  letter-spacing: 0.06em;
}
.score-inline .score-count {
  color: var(--text-muted);
}
.score-inline .score-count strong {
  color: var(--text);
  font-size: 1.1em;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.9fr;
  gap: 1.75rem;
  align-items: start;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.lead {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: none;
}
.lead-secondary {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.1rem 0 0;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}
.hero-card-label {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.score-big {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.score-value {
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.score-meta {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stars {
  color: var(--star-empty);
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  line-height: 1;
}
.star.filled, .star.half { color: var(--star); }

.dist-list {
  list-style: none;
  margin: 0 0 0.95rem;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}
.dist-list li {
  display: grid;
  grid-template-columns: 2rem 1fr 1.25rem;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.bar {
  height: 0.35rem;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--star);
  border-radius: inherit;
  opacity: 0.85;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Sections */
.section { padding: 2.25rem 0; }
.section-tight { padding: 0; }
.home-stack > .section-tight {
  padding: 0;
  margin: 0;
}
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.card-panel,
.review-card,
.hero-simple .container {
  background: #ffffff;
}
[data-theme="dark"] .card-panel,
[data-theme="dark"] .review-card,
[data-theme="dark"] .hero-simple .container {
  background: var(--surface);
}
.section-head { margin-bottom: 1.15rem; }
.section-head p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9rem;
  max-width: 36rem;
}
.row-between {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}
.section-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.85rem 0 0;
}
#neueste .section-foot {
  margin-top: 0.75rem;
}
/* FAQ */
.faq-list {
  display: grid;
  gap: 0.65rem;
}
.faq-item {
  padding: 0;
  overflow: hidden;
  border: 2px dotted var(--primary);
  box-shadow: var(--shadow-sm);
}
.faq-question {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 0.98rem;
  padding: 0.95rem 1.1rem;
  line-height: 1.4;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+";
  float: right;
  color: var(--primary);
  font-weight: 700;
  margin-left: 0.75rem;
}
details.faq-item[open] > .faq-question::after { content: "−"; }
.faq-answer {
  padding: 0 1.1rem 1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.impressum-body { line-height: 1.65; }

/* Mobile-only CTA at bottom of homepage */
.home-mobile-cta {
  display: none;
  padding: 0.35rem 0 0.85rem;
}
.home-mobile-cta-btn {
  width: 100%;
  min-height: 2.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  justify-content: center;
  text-align: center;
}
@media (max-width: 800px) {
  .home-mobile-cta {
    display: block;
  }
}

.section-foot-center {
  justify-content: center;
  text-align: center;
}
.section-head-center {
  text-align: center;
}
.section-head-center p {
  margin-left: auto;
  margin-right: auto;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2rem;
}
@media (max-width: 800px) {
  .content-grid { grid-template-columns: 1fr; }
}

.prose-block h2 { margin-bottom: 0.65rem; }
.prose-block p,
.prose-block li {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.prose-block p strong,
.prose-block li strong { color: var(--text); font-weight: 600; }

.quiet-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.55rem;
}
.quiet-list li { padding-left: 0.15rem; }

.h3-quiet {
  margin-top: 1.35rem;
  font-size: 0.95rem;
  color: var(--text);
}

.info-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}
.info-panel p {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.mb-0 { margin-bottom: 0 !important; }

.alert-box {
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
}
.alert-box strong { color: var(--text); }
.alert-box h2 { margin-bottom: 0.35rem; font-size: 1.05rem; }
.alert-box p:last-child { margin: 0; }
.alert-box.soft {
  background: var(--bg-alt);
  border-color: var(--border);
  border-left-color: var(--text-muted);
}

/* Reviews – focus */
.review-list {
  display: grid;
  gap: 0.75rem;
}
.review-list-home { gap: 0.65rem; }

.review-card {
  background: var(--surface);
  border: 2px dotted var(--primary);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem 1.05rem 1.2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  /* visible so share dropdown is not clipped */
  overflow: visible;
  z-index: 1;
}
.review-card:focus-within,
.review-card:hover {
  z-index: 5;
}
.review-card::before {
  display: none;
}
.review-card-full {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.review-card-full:target {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 18%, transparent);
}

.review-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.review-card-link:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.review-card-link:hover h3 { color: var(--primary); }
.review-card-link h3 {
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
  color: var(--text);
  transition: color 0.15s;
}

.review-card-full h2 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}
.review-top time {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.review-body {
  color: var(--text-muted);
  white-space: pre-wrap;
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.65;
  letter-spacing: 0.01em;
}
.review-body-block {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.65;
}
.review-body-block p {
  margin: 0 0 0.85em;
}
.review-body-block p:last-child {
  margin-bottom: 0;
}
.review-author {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.35rem;
}
.review-more {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 550;
}
.review-card-link:hover .review-more { text-decoration: underline; }
.muted { color: var(--text-muted); }

.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.empty-state .btn { margin-top: 0.55rem; }

/* Steps */
.steps {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.65rem;
}
.steps li {
  padding-left: 0.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.steps strong { color: var(--text); }

.forum-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}
.forum-cta h2 { margin-bottom: 0.3rem; }
.forum-cta p {
  margin: 0;
  color: var(--text-muted);
  max-width: 34rem;
  font-size: 0.9rem;
}

/* Share + footer */
.share-section {
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  padding: 0.55rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  box-shadow: none;
  position: relative;
}
.share-label {
  font-weight: 650;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.share-buttons,
.share-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  align-items: center;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.3;
}
.share-btn:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  color: var(--primary);
  background: var(--primary-soft);
}
/* Circular social pictograms */
.share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: none;
  color: #fff;
  background: #555;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  padding: 0;
  line-height: 0;
  flex-shrink: 0;
}
.share-icon:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}
.share-icon svg { display: block; }
.share-fb { background: #1877f2; }
.share-x { background: #0f1419; }
.share-ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.share-wa { background: #25d366; }
.share-tg { background: #229ed9; }
.share-li { background: #0a66c2; }
.share-mail { background: #6b7280; }
.share-copy { background: var(--primary); }
[data-theme="dark"] .share-x { background: #e7e9ea; color: #0f1419; }
[data-theme="dark"] .share-x:hover { color: #0f1419; }
.share-toast {
  font-size: 0.75rem;
  color: var(--ok);
  font-weight: 600;
  margin-left: 0.35rem;
}

/* Public poll on homepage – full content width, same accent as other cards */
.poll-box {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: center;
  position: relative;
  overflow: visible;
}
.poll-box::before {
  display: none;
}

/* Homepage newsletter signup card */
.newsletter-box {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: center;
  position: relative;
  overflow: visible;
}
.newsletter-box::before {
  display: none;
}
.newsletter-title {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}
.newsletter-lead {
  margin: 0 auto 1rem;
  max-width: 36rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.newsletter-lead strong { color: var(--text); font-weight: 650; }
.newsletter-form { margin: 0 auto; max-width: 28rem; }
.newsletter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: stretch;
}
.newsletter-row input[type="email"] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}
.newsletter-row input[type="email"]:focus {
  outline: 2px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
}
.newsletter-row .btn {
  flex: 0 0 auto;
  min-height: 2.55rem;
}
.newsletter-note {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Admin data table (newsletter etc.) */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-alt);
}
.admin-table tbody tr:hover { background: var(--bg-alt); }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-th-check { width: 2.5rem; }
.admin-td-actions { text-align: right; white-space: nowrap; }

.admin-msg-unread {
  border-left-color: var(--primary) !important;
  background: color-mix(in srgb, var(--primary-soft) 55%, var(--surface));
}
.admin-msg-body {
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.contact-form {
  border-left: 3px solid var(--primary);
}
.poll-title {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}
.poll-hint {
  margin: 0 0 1rem;
  font-size: 0.82rem;
}
.poll-options {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--home-stack-gap);
  text-align: left;
}
@media (min-width: 720px) {
  .poll-options {
    grid-template-columns: repeat(3, 1fr);
  }
}
.poll-option {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.35;
  height: 100%;
  min-height: 3rem;
}
.poll-option:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}
.poll-option input {
  margin-top: 0.15rem;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.poll-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.poll-form .btn {
  min-width: 8rem;
}
.poll-results-link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.poll-results-link:hover {
  color: var(--primary);
}
.poll-back-wrap {
  margin: 0.85rem 0 0;
  text-align: center;
}
.poll-msg {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  min-height: 1.2em;
}
.poll-total {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
}
.poll-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  text-align: left;
}
.poll-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}
.poll-bar-meta {
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.poll-bar-track {
  height: 0.55rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.poll-bar-fill {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
  min-width: 0;
  transition: width 0.35s ease;
}

/* Homepage reviews – outer panel matches intro/poll cards */
.home-reviews-panel {
  width: 100%;
  position: relative;
  overflow: visible;
  margin: 0;
}
.home-reviews-panel::before {
  display: none;
}
.home-reviews-panel .section-head {
  margin-bottom: 0.85rem;
}

/* Homepage review cards – side by side inside panel */
.home-review-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: var(--home-stack-gap);
  align-items: stretch;
}
.review-list-home {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: var(--home-stack-gap);
}
.home-review-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  border: 2px dotted var(--primary);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 0.95rem;
  box-shadow: none;
  position: relative;
  min-height: 100%;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s, background 0.15s;
}
.home-review-card:hover {
  border-style: solid;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  background: var(--surface);
}
/* Smartphone: only last 3 reviews on homepage */
@media (max-width: 767px) {
  .home-review-grid .home-review-card:nth-child(n + 4) {
    display: none;
  }
}
.home-review-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.home-review-card-top time {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.home-review-card h3 {
  font-size: 0.98rem;
  margin: 0 0 0.4rem;
  line-height: 1.3;
}
.home-review-card h3 a {
  color: var(--text);
  text-decoration: none;
}
.home-review-card h3 a:hover { color: var(--primary); }
.home-review-excerpt {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-review-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}
.home-review-card-foot .review-author {
  margin: 0;
  font-size: 0.8rem;
}
.home-review-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
.home-review-more:hover { text-decoration: underline; }

@media (min-width: 900px) {
  .home-review-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1100px) {
  .home-review-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

/* Share dropdown */
.share-dd {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  z-index: 20;
}
.share-dd.is-open {
  z-index: 100;
}
.share-dd-btn { min-width: 5.5rem; }
.share-dd-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 4px);
  top: auto;
  z-index: 200;
  min-width: 12.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.25rem 0;
  display: flex;
  flex-direction: column;
}
.share-dd-menu[hidden] { display: none !important; }
.share-dd-menu a,
.share-dd-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.85rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
}
.share-dd-menu a:hover,
.share-dd-menu button:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.review-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.75rem;
}
.review-footer-row .review-author { margin: 0; }
.review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  z-index: 30;
}


.review-list {
  overflow: visible;
}

.search-panel {
  margin-bottom: 1.15rem;
}
.search-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
}
.search-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}
.search-input:focus {
  outline: 2px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
}
.search-status {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  min-height: 1.2em;
}

/* Compact share row under single review – low visual weight, centered */
.share-box-compact {
  margin-top: 0.75rem;
  padding: 0.55rem 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.55rem;
  text-align: center;
}
.share-box-compact .permalink-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  width: 100%;
}
.share-box-compact .permalink-input {
  flex: 1 1 10rem;
  min-width: 0;
  max-width: 22rem;
  font-size: 0.72rem !important;
  padding: 0.28rem 0.45rem !important;
  color: var(--text-muted) !important;
  background: var(--bg-alt) !important;
  border-color: var(--border) !important;
}
.share-box-compact .btn,
.share-box-compact .share-dd-btn {
  font-size: 0.72rem !important;
  padding: 0.28rem 0.5rem !important;
  font-weight: 500;
  color: var(--text-muted) !important;
  border-color: var(--border) !important;
  background: transparent !important;
  box-shadow: none !important;
}
.share-box-compact .btn:hover,
.share-box-compact .share-dd-btn:hover {
  color: var(--primary) !important;
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border)) !important;
  background: var(--primary-soft) !important;
}
.share-box-compact .share-toast {
  font-size: 0.7rem;
  margin: 0;
}
.btn-sm {
  font-size: 0.75rem !important;
  padding: 0.3rem 0.55rem !important;
}
.share-box {
  margin-top: 1.15rem;
}
.share-box-title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.permalink-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.55rem;
}
.permalink-input {
  flex: 1 1 14rem;
  min-width: 0;
  font-size: 0.85rem !important;
  padding: 0.5rem 0.65rem !important;
}
.warn-hint {
  color: var(--primary) !important;
  font-weight: 550;
}
.alert-box + .review-form,
.alert-box + .card-panel {
  margin-top: 1rem;
}

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 1.1rem 0 1.35rem;
  font-size: 0.82rem;
}
.footer-only {
  margin: 0;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.footer-only a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-only a:hover { color: var(--primary); }

.review-title-link {
  color: inherit;
  text-decoration: none;
}
.review-title-link:hover { color: var(--primary); }
.review-detail-title {
  font-size: 1.25rem;
  margin: 0.35rem 0 0.65rem;
}

.admin-section {
  margin-bottom: 1.5rem;
}
.admin-section-title {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}
.admin-subtitle {
  font-size: 0.95rem;
  margin: 1.15rem 0 0.55rem;
}
.admin-toggle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.5rem;
}
.admin-shop-form .form-group { margin-bottom: 0.75rem; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 640px) {
  .form-row-2 { grid-template-columns: 1fr; }
}
input[type="number"] {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

/* Page hero */
.page-hero {
  padding: 1.35rem 0 0.25rem;
  background: var(--bg);
  text-align: center;
}
.page-hero .lead {
  font-size: 0.9rem;
  margin-left: auto;
  margin-right: auto;
}
.page-hero .breadcrumb {
  justify-content: center;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

/* Toolbar / pills */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.per-page-control {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.per-page-control label {
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}
.per-page-select {
  font: inherit;
  font-size: 0.875rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  min-width: 4.5rem;
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.pill {
  display: inline-flex;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
}
.pill:hover, .pill.active {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  color: var(--primary);
  background: var(--primary-soft);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.page-info { color: var(--text-muted); font-size: 0.84rem; }

/* Forms */
.card-panel {
  background: var(--surface);
  border: 2px dotted var(--primary);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}
.req { color: var(--primary); }
.optional { font-weight: 400; color: var(--text-muted); font-size: 0.82rem; }
.hint { margin: 0.3rem 0 0; font-size: 0.78rem; color: var(--text-muted); }

input[type="text"],
input[type="password"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}
input:focus, textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
}
textarea { resize: vertical; min-height: 130px; }

.star-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.1rem;
}
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label {
  font-size: 1.65rem;
  color: var(--star-empty);
  cursor: pointer;
  margin: 0;
  transition: color 0.1s;
  line-height: 1;
}
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
  color: var(--star);
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-actions { margin-top: 0.35rem; }
.legal-note {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.encourage {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid color-mix(in srgb, var(--primary) 55%, var(--border));
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
}
.encourage h2 { font-size: 1rem; }
.encourage ul { margin: 0.45rem 0 0; padding-left: 1.1rem; color: var(--text-muted); }
.encourage li { margin-bottom: 0.3rem; }

/* Court / prose */
.prose .judgment h2 { margin-top: 0; }

.judgment-download {
  margin: 1.15rem 0 1rem;
  border-left: 3px solid var(--primary);
  text-align: left;
}
.judgment-download h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.judgment-download p { margin: 0 0 0.75rem; font-size: 0.9rem; }
.judgment-download .btn { margin: 0 0.4rem 0.4rem 0; }
.judgment-download-meta {
  margin: 0.55rem 0 0 !important;
  font-size: 0.78rem !important;
}
.meta-list {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 1.15rem;
  padding: 0;
}
.meta-list.compact { margin-top: 0; }
.meta-list > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.4rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.meta-list dt {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.meta-list dd { margin: 0; }
@media (max-width: 560px) {
  .meta-list > div { grid-template-columns: 1fr; gap: 0.1rem; }
}

.related { margin-top: 1.5rem; }

/* Admin shell – matches main site orange/white/gray */
.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--bg-alt);
}
.admin-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1rem 0.85rem 1.1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}
.admin-brand {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.35rem 0.5rem 1rem;
  border-bottom: 3px solid var(--primary);
  margin-bottom: 0.85rem;
}
.admin-brand strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}
.admin-brand span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.35;
  max-width: 11rem;
}
.admin-nav-label {
  margin: 0.85rem 0 0.3rem;
  padding: 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.admin-nav-label:first-child { margin-top: 0; }
.admin-side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  overflow-y: auto;
}
.admin-side-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.admin-side-nav a:hover {
  background: var(--bg-alt);
  color: var(--text);
}
.admin-side-nav a.active {
  background: var(--primary-soft);
  color: var(--primary);
  border-left-color: var(--primary);
}
.admin-side-nav a.admin-nav-sub {
  font-size: 0.82rem;
  font-weight: 500;
  padding-left: 1.85rem;
  color: var(--text-muted);
}
.admin-side-nav a.admin-nav-sub:hover,
.admin-side-nav a.admin-nav-sub.active {
  color: var(--primary);
}
.admin-nav-icon {
  width: 1.15rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.85;
  flex-shrink: 0;
}
.admin-nav-badge {
  margin-left: auto;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.admin-side-foot {
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
}
.admin-side-foot a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}
.admin-side-foot a:hover { color: var(--primary); }
.admin-logout-form { margin: 0; }
.admin-logout-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 500;
  font-size: inherit;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
}
.admin-logout-btn:hover { color: var(--primary); }
.admin-side-foot .theme-toggle {
  align-self: flex-start;
  margin-top: 0.15rem;
}
.admin-content {
  min-width: 0;
  padding: 1.1rem 1.35rem 2.5rem;
}
.admin-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 3px solid var(--primary);
}
.admin-page-title {
  margin: 0;
  font-size: 1.35rem;
  flex: 1;
  min-width: 0;
}
.admin-menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 2.35rem;
  height: 2.35rem;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
}
.admin-menu-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.admin-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 35;
}
.admin-main-panel { max-width: 1100px; }
.admin-lead {
  margin: -0.25rem 0 1rem;
  font-size: 0.9rem;
}
.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.stat-link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.stat-link:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  color: inherit;
}
.stat-box.stat-warn .stat-n { color: var(--wait); }
.stat-box.stat-active {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.admin-grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.85rem;
}
@media (max-width: 960px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(280px, 88vw);
    height: 100vh;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    border-right: 1px solid var(--border);
    border-bottom: 0;
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .admin-backdrop:not([hidden]) { display: block; }
  .admin-grid-2 { grid-template-columns: 1fr; }
  body.admin-nav-open { overflow: hidden; }
}
.admin-panel-card {
  margin-bottom: 0.85rem;
  border-left: 3px solid color-mix(in srgb, var(--primary) 55%, var(--border));
}
.admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.admin-panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
}
.admin-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.admin-mini-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}
.admin-mini-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.admin-mini-list strong { display: block; font-size: 0.9rem; }
.admin-mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.admin-status-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.admin-status-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  padding: 0.45rem 0.55rem;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}
.admin-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.admin-search-bar {
  margin-bottom: 1rem;
  border-left: 3px solid var(--primary);
}
.admin-search-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.75rem;
  align-items: center;
}
.admin-search-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.admin-full-select {
  width: 100% !important;
  min-height: 2.5rem;
}
.admin-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--primary);
}
.admin-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.admin-check-all,
.admin-check-label,
.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.admin-check { margin-right: 0.35rem; }
.admin-review-meta {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}
.admin-edit-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.admin-edit-form .admin-actions { margin-top: 0.5rem; }
.admin-danger-zone {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed color-mix(in srgb, var(--danger) 35%, var(--border));
}
.admin-subhead {
  font-size: 0.92rem;
  margin: 0 0 0.65rem;
}
.admin-vote-form {
  padding: 0.85rem;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.admin-opt-row { margin-bottom: 0.35rem; }
.admin-opt-new {
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
  margin-top: 0.35rem;
}
.admin-login-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 3px solid var(--primary);
}
.admin-login-brand h1 { margin: 0; font-size: 1.2rem; }

/* Admin login */
.admin-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, var(--primary-soft) 0%, transparent 42%),
    var(--bg-alt);
}
.admin-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.admin-login {
  width: min(100%, 400px);
  border-left: 3px solid var(--primary);
}
.admin-login h1 { font-size: 1.25rem; margin-bottom: 0.2rem; }
.admin-login .center { text-align: center; margin-top: 0.85rem; font-size: 0.875rem; }

.admin-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
  margin-bottom: 1.15rem;
  font-size: 0.9rem;
}
.admin-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.admin-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
}
.admin-nav a:hover { color: var(--primary); }
.admin-main { padding-bottom: 2.5rem; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}
.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 0.85rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-n {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.stat-l { font-size: 0.75rem; color: var(--text-muted); }

.admin-list { display: grid; gap: 0.75rem; }
.admin-review {
  border-left: 3px solid color-mix(in srgb, var(--primary) 45%, var(--border));
  transition: border-color 0.15s, box-shadow 0.15s;
}
.admin-review:hover {
  border-left-color: var(--primary);
  box-shadow: var(--shadow);
}
.admin-review-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.4rem;
}
.admin-review h2 { font-size: 1rem; margin-bottom: 0.35rem; }
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.admin-actions form { display: inline; margin: 0; }
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 650;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.3rem;
}
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-wait { background: var(--wait-bg); color: var(--wait); }

@media (max-width: 520px) {
  .admin-stats { grid-template-columns: 1fr; }
  .admin-content { padding: 0.85rem 0.85rem 2rem; }
}

.center { text-align: center; }

/* Alternatives */
.alt-list {
  display: grid;
  gap: 0.85rem;
}
.alt-card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.alt-card h2 a {
  color: var(--text);
  text-decoration: none;
}
.alt-card h2 a:hover { color: var(--primary); }
.alt-url {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.alt-card p { font-size: 0.9rem; color: var(--text-muted); }
.alt-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Feature switches (admin)
   -------------------------------------------------------------------------- */
.feature-switch-grid {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}
@media (min-width: 720px) {
  .feature-switch-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.feature-switch-form {
  margin: 0;
}
.feature-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  cursor: default;
}
.feature-switch-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.feature-switch-label {
  font-weight: 650;
  font-size: 0.9rem;
}
.feature-switch-hint {
  font-size: 0.75rem;
  line-height: 1.35;
}
.feature-switch-state {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 2.2rem;
  text-align: center;
}
.switch-track {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  border-radius: 999px;
  border: none;
  background: #c5c5c5;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.18s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}
.feature-switch.is-on .switch-track {
  background: var(--primary);
}
.switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.5rem - 4px);
  height: calc(1.5rem - 4px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease;
}
.feature-switch.is-on .switch-thumb {
  transform: translateX(1.25rem);
}
.switch-track:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Homepage clickable aggregate stars
   -------------------------------------------------------------------------- */
.home-score-rate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
}
.stars-clickable {
  display: inline-flex;
  gap: 0.05rem;
  line-height: 1;
}
.stars-clickable .star-click {
  font-size: 1.55rem;
  color: var(--star-empty);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.1s ease, transform 0.1s ease;
  line-height: 1;
  padding: 0 0.02rem;
}
.stars-clickable .star-click.filled,
.stars-clickable .star-click.half {
  color: var(--star);
}
.stars-clickable .star-click.half {
  background: linear-gradient(90deg, var(--star) 50%, var(--star-empty) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stars-clickable.is-hovering .star-click {
  color: var(--star-empty);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.stars-clickable.is-hovering .star-click.is-hover-on {
  color: var(--star);
  transform: scale(1.08);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.stars-clickable .star-click:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}
.score-rate-hint {
  flex-basis: 100%;
  text-align: center;
  font-size: 0.78rem;
  margin: 0.15rem 0 0;
}

/* Inner pages use same stack/card rhythm as homepage */
.page-stack .hero-simple h1 {
  text-align: center;
}
.page-stack .breadcrumb {
  justify-content: center;
}
.page-stack .section-tight > .container {
  display: flex;
  flex-direction: column;
  gap: var(--home-stack-gap);
}
.page-stack .prose {
  display: flex;
  flex-direction: column;
  gap: var(--home-stack-gap);
}
.page-cta-panel {
  text-align: center;
}
.related-panel h2 {
  margin-top: 0;
}
.page-stack .judgment-download {
  margin-top: 1rem;
}
.page-stack .meta-list {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}
