.site { min-height: 100vh; }
.language-switch { display: inline-flex; gap: 2px; flex-shrink: 0; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px; }
.language-switch button { width: auto; min-width: 0; padding: 5px 8px; margin: 0; background: transparent; border: 0; font-size: 12px; color: var(--muted); white-space: nowrap; }
.language-switch button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); }
.language-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.language-switch.standalone { display: flex; width: max-content; margin: 16px 16px 0 auto; }
.site-nav { gap: 12px; flex-wrap: wrap; }
.site-nav nav { flex-wrap: wrap; }
.wb-nav-right { flex-wrap: wrap; }
html[lang="en"] .player-actions { flex-wrap: wrap; }
html[lang="en"] .legal, html[lang="en"] .auth-card { overflow-wrap: anywhere; }
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 13, 11, 0.86);
  backdrop-filter: blur(16px);
}
.site-nav nav { display: flex; gap: 10px; align-items: center; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 14px; }
.site-nav .brand-kicker {
  font-size: 13px;
  letter-spacing: 0.18em;
}
.nav-cta {
  background: var(--accent);
  color: var(--accent-ink) !important;
  padding: 8px 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.landing {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px 96px;
}
.hero {
  display: block;
  padding: 72px 0 0;
}
.hero .eyebrow {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.28;
  margin: 16px 0 18px;
}
.lede { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 36em; }
.hero-actions { display: flex; gap: 16px; align-items: center; margin: 28px 0 0; flex-wrap: wrap; }
.primary {
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  padding: 12px 18px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.ghost-link { color: var(--muted); text-decoration: none; }
.ghost-link:hover { color: var(--ink); }
.points {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}
.points li {
  padding-left: 1.1em;
  position: relative;
}
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.auth-card {
  max-width: 440px;
  margin: 48px auto 80px;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.auth-card h1 { margin: 0 0 8px; font-size: 28px; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.auth-card label { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.auth-card input {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 11px 12px;
}
.auth-card input:focus { border-color: var(--accent); outline: none; }
.auth-card button[type="submit"] {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  padding: 12px 14px;
  font-weight: 600;
}
.auth-card a { color: var(--accent); }

.account-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.account-bar a { color: var(--muted); text-decoration: none; }
.account-bar a:hover { color: var(--ink); }
.account-bar button.ghost {
  display: inline;
  width: auto;
  padding: 2px 8px;
  font-size: 12px;
}

.billing-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 7, 5, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 24px;
}
.billing-backdrop[hidden] { display: none; }
.billing-panel {
  width: min(860px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 22px;
  max-height: min(90vh, 760px);
  overflow: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.billing-panel header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.billing-panel h2 { margin: 0; font-size: 22px; font-weight: 600; }
.billing-plan-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--bg-2);
}
.billing-plan-card strong { display: block; font-size: 20px; margin: 4px 0; }
.billing-cycle { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 12px; }
.billing-skus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.billing-sku {
  border: 1px solid var(--line);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: var(--radius);
  background: var(--bg-2);
}
.billing-sku.featured { border-color: var(--accent); background: var(--accent-soft); }
.billing-sku h3 { margin: 0; font-size: 16px; font-weight: 600; }
.billing-price { font-size: 22px; margin: 0; font-family: var(--font); }
.billing-price small { font-size: 13px; color: var(--muted); }
.billing-sku .primary, .billing-sku .ghost { width: 100%; }
@media (max-width: 800px) {
  .billing-skus { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .site-nav, .landing { padding-left: 20px; padding-right: 20px; }
}
.billing-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.msg.error { color: var(--danger); }

.site-footer {
  padding: 28px 32px 40px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 32px 72px;
}
.legal-kicker {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin: 12px 0 20px; }
.legal h2 { font-size: 20px; margin: 32px 0 12px; }
.legal p, .legal li { line-height: 1.7; color: var(--ink); }
.legal ul { padding-left: 1.2em; margin: 0 0 12px; }
.legal li { margin: 8px 0; }
.legal a { color: var(--accent); }
.legal-banner {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 14px;
}
.legal-end { color: var(--muted); font-size: 13px; margin-top: 40px; }

.auth-card label.check {
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.auth-card label.check input {
  width: auto;
  margin-top: 3px;
  flex: 0 0 auto;
}
.create-card .check {
  align-items: flex-start;
  line-height: 1.45;
}
.create-card .check input { margin-top: 3px; flex: 0 0 auto; }
.create-card .legal-check span { min-width: 0; }
.check a { color: var(--accent); text-decoration: none; }
.check a:hover { text-decoration: underline; }
.check.hidden { display: none; }

.admin-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}
.admin-page .eyebrow {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
}
.admin-page h1 { margin: 10px 0 8px; font-size: 32px; }
.admin-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 20px;
}
.admin-stats div {
  min-width: 120px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.admin-stats strong { display: block; font-size: 28px; font-family: var(--font); }
.admin-stats span { color: var(--muted); font-size: 13px; }
.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.admin-table th { color: var(--muted); font-weight: 500; font-size: 12px; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}
.admin-pill.ok { background: rgba(122, 158, 106, 0.2); color: var(--ok); }
.admin-pill.wait { background: var(--accent-soft); color: var(--accent); }
.site-nav .ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 6px 10px;
  font-size: 13px;
}
.auth-card button.google-signin[type="submit"] {
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #747775;
  width: 100%;
}

/* Desktop product pages; legacy workbench and account layouts keep their styles. */
.desktop-page { max-width: 1000px; margin: 0 auto; padding: 48px 28px 80px; }
.desktop-page .hero { padding: 24px 0 16px; }
.desktop-page h1 { max-width: 18em; font-size: clamp(30px, 5vw, 48px); line-height: 1.3; margin: 12px 0 20px; }
.desktop-page > .eyebrow { color: var(--accent); font-family: var(--mono); letter-spacing: .12em; }
.desktop-page p { line-height: 1.8; }
.desktop-page a:not(.primary) { color: var(--accent); }
.desktop-section { margin-top: 36px; max-width: 760px; }
.desktop-section h2 { font-size: 21px; margin: 0 0 12px; }
.desktop-section p { color: var(--muted); margin: 8px 0 12px; }
.desktop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 24px 0 36px; }
.desktop-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 24px; }
.desktop-card h2 { margin-top: 0; }
.desktop-card .desktop-price { font-size: 40px; margin: 16px 0; color: var(--ink); }
.desktop-price small { font-size: 14px; color: var(--muted); }
.desktop-card button.primary { width: 100%; margin-top: 12px; }
.desktop-card a.primary { display: inline-block; }
.desktop-site [hidden] { display: none !important; }
.desktop-notice { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); }
.desktop-site button:disabled { opacity: .55; cursor: not-allowed; }
.desktop-page pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 14px; line-height: 1.7; margin-top: 24px; color: var(--muted); }
.desktop-site .site-footer { max-width: 1000px; margin: auto; }
@media (max-width: 640px) {
  .desktop-page { padding: 28px 20px 56px; }
  .desktop-grid { grid-template-columns: 1fr; }
  .desktop-site .site-nav { position: static; }
  .desktop-site .site-nav nav { gap: 12px; }
}
