@font-face {
  font-family: "Superstar";
  src: url("../fonts/Superstar.woff2") format("woff2"),
    url("../fonts/Superstar.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #030506;
  --panel: #070b0d;
  --panel-alt: #0d1115;
  --text: #f3f5f7;
  --muted: #8a97a5;
  --border: #161c21;
  --accent: #2f7dff;
  --accent-dark: #1d4fb8;
  --radius: 0px;
  --dock-height: 0px;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.debug-badges {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  z-index: 180;
  pointer-events: none;
}

.debug-badge {
  border: 1px solid var(--border);
  background: rgba(5, 6, 8, 0.92);
  color: var(--text);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto;
}

.debug-badge.is-recaptcha {
  border-color: rgba(240, 196, 116, 0.6);
  color: #f0c674;
}

.debug-badge.is-debug {
  border-color: rgba(47, 125, 255, 0.6);
  color: #a5c7ff;
}

.debug-badge__close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #050608;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
  z-index: 200;
}

.skip-link:focus {
  transform: translateY(0);
}

html[dir="rtl"] .debug-badges {
  left: auto;
  right: 1rem;
}

html[dir="rtl"] .skip-link {
  left: auto;
  right: 0.75rem;
}

.modal-open .skip-link {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 80%, #ffffff);
  outline-offset: 2px;
}

.shell {
  width: min(1180px, 100% - 2rem);
  margin: 0 auto;
}

.quick-report-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.7rem;
}

.feedback-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  backdrop-filter: blur(12px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  background: rgba(2, 6, 14, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(3, 5, 6, 0.92);
  border-bottom: 1px solid var(--border);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.status-banner {
  border-bottom: 1px solid var(--border);
}

.status-banner__inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.status-banner__inner strong {
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.status-banner--info {
  background: rgba(47, 125, 255, 0.12);
  color: #c9ddff;
}

.status-banner--maintenance {
  background: rgba(240, 198, 116, 0.12);
  color: #f0c674;
}

.status-banner--issue {
  background: rgba(255, 85, 99, 0.12);
  color: #ffabb4;
}

.status-banner--fixed {
  background: rgba(61, 213, 152, 0.12);
  color: #94e9c6;
}

.brand {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

.primary-nav {
  display: flex;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.primary-nav a {
  padding: 0.3rem 0.7rem;
  border: 1px solid transparent;
  position: relative;
  transition: color 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.primary-nav a.is-active,
.primary-nav a:hover {
  border-color: var(--border);
  color: var(--text);
}

.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.primary-nav a:hover::after {
  transform: scaleX(1);
}

.primary-nav a.is-active::after {
  transform: scaleX(1);
  opacity: 1;
}

.primary-nav a.is-active {
  border-color: transparent;
}

.header-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.nav-toggle {
  display: none !important;
}

.button {
  border-radius: var(--radius);
  padding: 0.4rem 1.4rem;
  border: 1px solid color-mix(in srgb, var(--border) 68%, #ffffff 32%);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.button[disabled],
.button:disabled,
button[disabled],
button:disabled,
input[type="button"][disabled],
input[type="submit"][disabled],
input[type="reset"][disabled] {
  cursor: not-allowed;
}

.button.solid {
  background: var(--accent);
  background: color-mix(in srgb, var(--accent) 90%, #000000);
  border-color: var(--accent-dark);
  color: #ffffff;
}

.button.ghost {
  background: transparent;
  color: var(--text);
}

.button.outline {
  border-color: var(--accent);
  color: var(--accent);
}

.account-dropdown {
  position: relative;
}

html[dir="rtl"] .site-header .shell,
html[dir="rtl"] .header-actions,
html[dir="rtl"] .primary-nav {
  direction: rtl;
}

html[dir="rtl"] .header-actions {
  flex-direction: row-reverse;
}

.account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  background: #050608;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  min-width: 240px;
  display: none;
  flex-direction: column;
  z-index: 120;
  padding: 0.25rem 0;
  overflow: hidden;
}

html[dir="rtl"] .account-menu {
  right: auto;
  left: 0;
}

.account-menu a,
.account-menu button {
  padding: 0.7rem 1rem;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

html[dir="rtl"] .account-menu a,
html[dir="rtl"] .account-menu button,
html[dir="rtl"] .account-menu__label {
  text-align: right;
}

.account-menu a:hover,
.account-menu button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.account-menu a.is-active {
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: calc(1rem - 2px);
  background: rgba(47, 125, 255, 0.05);
}

html[dir="rtl"] .account-menu a.is-active {
  border-left: 0;
  border-right: 2px solid var(--accent);
  padding-left: 1rem;
  padding-right: calc(1rem - 2px);
}

.account-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(47, 125, 255, 0.7), rgba(47, 125, 255, 0));
}

.account-menu__profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.2rem;
  background: radial-gradient(circle at 20% 20%, rgba(47, 125, 255, 0.08), transparent 55%);
  flex-wrap: wrap;
}

.account-menu__avatar {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 700;
  background: radial-gradient(circle at 30% 30%, rgba(47, 125, 255, 0.18), rgba(255, 255, 255, 0.04));
  overflow: hidden;
  text-transform: uppercase;
}

.account-menu__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-menu__hint {
  width: 100%;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--muted);
}

.account-menu__badge {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.account-menu__section {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.35rem 0;
}

.account-menu__section a {
  padding: 0.65rem 1rem;
}

.account-menu__label {
  margin: 0;
  padding: 0.25rem 1rem 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted);
}

.account-menu__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.6rem 0.8rem 0.8rem;
}

.account-menu__footer .button.full {
  width: 100%;
  justify-content: center;
}

.avatar-editor {
  display: grid;
  gap: 1rem;
}

.avatar-editor__preview {
  width: 100%;
  display: grid;
  place-items: center;
  background: #0a0f14;
  border: 1px dashed var(--border);
  padding: 0.5rem;
}

.avatar-editor__preview canvas {
  max-width: 100%;
  height: auto;
}

.avatar-editor__controls {
  display: grid;
  gap: 0.6rem;
}

.avatar-editor__control {
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.avatar-editor__control input[type="range"] {
  width: 100%;
}
.account-menu__profile strong {
  display: block;
  font-size: 0.95rem;
}

.account-menu__profile small {
  color: var(--muted);
}

.account-toggle {
  gap: 0.35rem;
}

.account-toggle:focus-visible,
.account-dropdown .account-menu a:focus-visible,
.account-dropdown .account-menu button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.account-dropdown.is-open .account-menu {
  display: flex;
}

.account-menu form {
  margin: 0;
}

.notification-toggle {
  position: relative;
  min-width: 74px;
  min-height: 34px;
}

.notification-toggle__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.notification-toggle__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  border: 1px solid #00153a;
  background: #2f7dff;
  color: #fff;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-badge[hidden] {
  display: none;
}

.notification-menu {
  min-width: min(360px, 88vw);
  max-width: min(420px, 92vw);
  padding: 0;
}

.notification-menu__head,
.notification-menu__footer {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.notification-menu__head {
  justify-content: flex-start;
}

.notification-menu__footer {
  border-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.55rem;
}

.notification-menu__footer form {
  margin: 0;
}

.notification-menu__footer form .notification-footer-action,
.notification-menu__footer > .notification-footer-action {
  width: 100%;
}

.notification-menu .notification-footer-action {
  min-height: 32px;
  padding: 0.35rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--border) 68%, #ffffff 32%);
  background: rgba(255, 255, 255, 0.01);
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.notification-menu .notification-footer-action:hover {
  background: rgba(255, 255, 255, 0.08);
}

.notification-menu__body {
  max-height: 360px;
  overflow: auto;
  display: grid;
  gap: 0.2rem;
  padding: 0.35rem 0;
}

.notification-item-form {
  margin: 0;
}

.notification-item {
  display: grid;
  gap: 0.35rem;
  padding: 0.65rem 0.9rem;
  border-left: 2px solid transparent;
}

.notification-item--button {
  width: 100%;
  border: 0;
  text-align: left;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: grid;
  gap: 0.25rem;
  justify-items: start;
}

.notification-item--button.is-pending,
.notification-footer-action.is-pending {
  opacity: 0.65;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.notification-item.is-unread {
  border-left-color: var(--accent);
  background: rgba(47, 125, 255, 0.07);
}

.notification-item__title {
  font-size: 0.85rem;
  font-weight: 600;
}

.notification-item__body {
  font-size: 0.8rem;
  color: var(--muted);
}

.notification-item__meta {
  font-size: 0.72rem;
  color: var(--muted);
}

.notification-menu__pagination {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem;
}

.notification-menu__pagination[hidden] {
  display: none;
}

.feedback-triage-form {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 0.45rem;
  align-items: end;
}

.feedback-triage-form label {
  display: grid;
  gap: 0.2rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.feedback-triage-form select {
  min-height: 32px;
  border: 1px solid var(--border);
  background: #03050a;
  color: var(--text);
  font: inherit;
  padding: 0.35rem 0.5rem;
}

@media (max-width: 900px) {
  .feedback-triage-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feedback-triage-form button {
    grid-column: 1 / -1;
  }
}

.button.lg {
  padding: 0.55rem 1.8rem;
  font-size: 1rem;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 9, 0.85);
  backdrop-filter: blur(14px);
  z-index: 130;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s ease;
  isolation: isolate;
}

html[dir="rtl"] .mobile-nav {
  justify-content: flex-end;
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  z-index: 0;
}

.mobile-nav__content {
  width: min(400px, 90vw);
  background: linear-gradient(160deg, rgba(9, 14, 23, 0.95), rgba(4, 6, 9, 0.98));
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  box-shadow: 15px 0 45px rgba(0, 0, 0, 0.45);
  transform: translate3d(-44px, 0, 0);
  opacity: 0;
  transition: transform 0.64s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.36s ease;
  overflow-y: auto;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  will-change: transform;
}

html[dir="rtl"] .mobile-nav__content {
  border-right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.45);
  transform: translate3d(44px, 0, 0);
}

.mobile-nav.is-open .mobile-nav__content {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.85rem;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav__links a {
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.mobile-nav__links a::after {
  content: '›';
  font-size: 0.75rem;
  opacity: 0.6;
}

html[dir="rtl"] .mobile-nav__links a::after {
  content: '‹';
}

.mobile-nav__links a:hover {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(47, 125, 255, 0.25);
  background: rgba(47, 125, 255, 0.08);
}

.mobile-nav__actions {
  display: grid;
  gap: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.9rem;
}

.mobile-nav__actions .button {
  width: 100%;
  justify-content: center;
}

.mobile-nav__links a,
.mobile-nav__actions .button {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mobile-nav__recent {
  display: flex;
  justify-content: flex-start;
  padding: 0.2rem 0.4rem 0.2rem 0;
}

html[dir="rtl"] .mobile-nav__recent {
  justify-content: flex-end;
  padding: 0.2rem 0 0.2rem 0.4rem;
}

.mobile-nav__links a:focus-visible,
.mobile-nav__actions .button:focus-visible,
.mobile-nav__header .button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

.mobile-nav__user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.mobile-nav__avatar {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 700;
  text-transform: uppercase;
  background: radial-gradient(circle at 30% 30%, rgba(47, 125, 255, 0.16), rgba(255, 255, 255, 0.03));
  overflow: hidden;
}

.mobile-nav__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-nav__user-meta strong {
  display: block;
  font-size: 0.95rem;
}

.mobile-nav__user-meta small {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .primary-nav {
    gap: 0.3rem;
    font-size: 0.86rem;
  }
  .primary-nav a {
    padding: 0.25rem 0.55rem;
  }
  .header-actions .button {
    padding: 0.3rem 1rem;
  }
  .notification-toggle {
    min-width: 66px;
    min-height: 32px;
  }
  .site-header .shell {
    gap: 0.6rem;
  }
}

.mobile-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 25%);
  pointer-events: none;
}

body.mobile-nav-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  .mobile-nav__content,
  .mobile-nav__header,
  .mobile-nav__recent,
  .mobile-nav__user,
  .mobile-nav__links,
  .mobile-nav__actions {
    transition: none !important;
    transform: none !important;
  }
}

@media (max-width: 1000px) {
  .primary-nav,
  .header-actions {
    display: none;
  }
  .nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.8rem;
    border-color: var(--border);
    margin-left: auto;
  }
  html[dir="rtl"] .nav-toggle {
    margin-left: 0;
    margin-right: auto;
  }
  .site-header .shell {
    justify-content: space-between;
    gap: 0.65rem;
  }
}

.hero {
  padding: 4rem 0 3rem;
  background: radial-gradient(circle at 20% 20%,
      color-mix(in srgb, var(--accent) 18%, transparent),
      transparent 55%),
    linear-gradient(120deg,
      color-mix(in srgb, var(--accent) 8%, transparent),
      rgba(0, 0, 0, 0.4));

}

/* Tighten top whitespace when a hero is the first section below header/banner. */
main > .hero:first-child {
  padding-top: 2rem;
}

.hero .shell {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.hero__faces {
  display: grid;
  gap: 1rem;
}

.hero__ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero__actions {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero__actions .favorite-form--hero {
  margin: 0;
}

.hero__utility .button {
  min-width: 0;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.stat-card {
  border: 1px solid var(--border);
  padding: 1rem;
  background: rgba(5, 6, 8, 0.85);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 120px;
  justify-content: center;
}

.stat-card__label {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.2rem;
}

.stat-card__value {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
}

.stat-card span {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero__list {
  grid-column: 1 / -1;
  border: 1px solid var(--border);
  padding: 1rem;
  background: rgba(5, 6, 8, 0.85);
}

.hero__list ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.hero__list li {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.hero__list li span {
  font-size: 0.8rem;
  margin-left: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-size: 0.75rem;
}

.lede {
  font-size: 1.05rem;
  color: #c4cbd4;
}

.feature-list {
  padding-left: 1.1rem;
  color: var(--muted);
}

.feature-list li {
  margin-bottom: 0.35rem;
}

.panel {
  padding: 3rem 0;
  background: var(--panel);
  border-top: 1px solid var(--border);
}

.panel.subtle {
  background: var(--panel-alt);
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.link {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.card-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.watchface-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #050608;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.watchface-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.watchface-card__preview {
  padding: 0;
  background: #030407;
  border-bottom: 1px solid var(--border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.watchface-card__preview img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.watchface-card__image {
  width: 100%;
  border: 1px solid var(--border);
  background: #050608;
}

.watchface-card__badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--border);
  background: rgba(3, 5, 6, 0.85);
}

.watchface-card__body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.watchface-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-recommendations .card-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 420px));
  justify-content: center;
}

.product-recommendations .watchface-card__preview img {
  height: clamp(220px, 24vw, 300px);
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  border: 1px solid var(--border);
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
}

.timeline article {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat-grid div {
  border: 1px solid var(--border);
  padding: 1rem;
}

.platform-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.platform-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.platform-list li:last-child {
  border-bottom: 0;
}

.home-discovery-panel .section-heading p,
.home-surface-panel .section-heading p {
  margin: 0;
  color: var(--muted);
  max-width: 52rem;
}

.home-discovery-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-insight-card {
  border: 1px solid var(--border);
  background: rgba(5, 6, 8, 0.9);
  padding: 1.1rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.home-insight-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.home-insight-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.home-tag-row {
  gap: 0.45rem;
}

.home-tag-row .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-color: color-mix(in srgb, var(--border) 60%, #ffffff 18%);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.28rem 0.62rem;
}

.home-tag-row .tag span {
  color: var(--muted);
  font-size: 0.72rem;
}

.home-platform-list {
  margin: 0;
}

.home-platform-list li {
  gap: 1rem;
}

.home-platform-list strong {
  font-size: 0.86rem;
  font-weight: 600;
  color: #d7e3f8;
  text-align: right;
}

.home-creator-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
}

.home-creator-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.78rem 0.92rem;
  border-bottom: 1px solid var(--border);
}

.home-creator-list li:last-child {
  border-bottom: 0;
}

.home-creator-list strong {
  display: block;
  font-size: 0.92rem;
}

.home-creator-list span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.home-type-panel {
  background:
    radial-gradient(circle at 15% -20%, rgba(47, 125, 255, 0.12), transparent 48%),
    var(--panel);
}

.home-type-grid {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.home-type-card {
  border: 1px solid var(--border);
  background: rgba(5, 6, 8, 0.86);
  padding: 1.1rem;
  display: grid;
  gap: 0.95rem;
}

.home-type-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.home-type-card__head h3 {
  margin: 0;
  font-size: 1.02rem;
}

.home-type-card__head span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-type-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.home-type-card__list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.home-type-card__list li:last-child {
  border-bottom: 0;
}

.home-type-card__list a {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
}

.home-type-card__list span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.home-type-card .button {
  width: 100%;
}

.home-route-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.home-route-card {
  border: 1px solid var(--border);
  background: rgba(5, 6, 8, 0.9);
  padding: 1.1rem;
  display: grid;
  gap: 0.55rem;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.home-route-card strong {
  font-size: 1.02rem;
}

.home-route-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  min-height: 3.9em;
}

.home-route-card span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #96accc;
}

.home-route-card:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  background: rgba(47, 125, 255, 0.08);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .home-discovery-grid {
    grid-template-columns: 1fr;
  }

  .home-route-card p {
    min-height: 0;
  }
}

.filters {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  align-items: end;
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.save-search-form {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.save-search-form .checkbox {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.face-hero {
  background: var(--panel-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}

.face-hero .shell {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.face-hero__preview {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.face-hero__preview img {
  width: 100%;
  max-width: 320px;
  border: 1px solid var(--border);
  background: #050608;
}

.variant-panel {
  border: 1px solid var(--border);
  padding: 1rem;
  width: 150px;
}

.variant-preview {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
}

.install-steps {
  padding-left: 1.5rem;
}

.resource-list {
  list-style: none;
  padding: 0;
}

.resource-list li + li {
  margin-top: 0.3rem;
}

.game-frame {
  border: 1px solid var(--border);
  margin: 1rem 0;
  height: 320px;
}

.game-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.creator-card {
  border: 1px solid var(--border);
  padding: 1.3rem;
  background: #050608;
}

.creator-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.creator-hero dl {
  display: flex;
  gap: 2.5rem;
}

.link-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.legacy-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.legacy-card {
  border: 1px solid var(--border);
  padding: 1.1rem;
  background: #050608;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legacy-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.article-card,
.wiki-card {
  border: 1px solid var(--border);
  padding: 1.5rem;
  background: #050608;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.article-hero__shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.6fr);
  gap: 2rem;
  align-items: start;
}

.article-hero__copy {
  max-width: 48rem;
}

.article-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.article-kicker__link {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2rem;
}

.article-kicker__link:hover {
  border-color: var(--accent);
  color: var(--text);
}

.article-hero h1 {
  margin: 0.4rem 0 0.6rem;
  font-size: clamp(2rem, 2vw + 1rem, 3rem);
}

.article-deck {
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-hero__meta {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  background: rgba(5, 6, 8, 0.75);
  border-radius: var(--radius);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.article-meta__grid {
  display: grid;
  gap: 0.6rem;
}

.article-meta__item {
  display: grid;
  gap: 0.2rem;
}

.article-meta__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-meta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.article-action {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article-action__button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.article-action__button.is-active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(47, 125, 255, 0.12);
}

.article-action__icon {
  width: 16px;
  height: 16px;
}

.article-action--disabled {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}

.article-meta__hint {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 0.2em;
}

.article-meta__hint:hover {
  color: var(--text);
  text-decoration-color: var(--accent);
}

.article-layout {
  display: grid;
  gap: 1.5rem;
}

.article-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(5, 6, 8, 0.96);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 155;
}

.article-dock.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.article-dock__inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.article-dock__share {
  flex: 1;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
}

.article-dock__icon {
  width: 18px;
  height: 18px;
}

.article-dock__save {
  display: flex;
}

.article-dock__icon-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(5, 6, 8, 0.9);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.article-dock__icon-btn:hover {
  transform: translateY(-1px);
}

.article-dock__icon-btn svg {
  width: 20px;
  height: 20px;
}

.article-dock__icon-btn.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.article-body {
  line-height: 1.8;
  color: #d6dde6;
  font-size: 1.05rem;
  max-width: 72ch;
  overflow-wrap: anywhere;
}

.article-body p {
  margin: 1rem 0;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: var(--text);
  line-height: 1.25;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
}

.article-body ul,
.article-body ol {
  margin: 1rem 0 1rem 1.35rem;
  color: var(--text);
}

.article-body li {
  margin: 0.4rem 0;
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 0.9rem 1.2rem;
  border-left: 4px solid var(--accent);
  background: rgba(47, 125, 255, 0.08);
  color: var(--text);
}

.article-body blockquote p {
  margin: 0.4rem 0;
}

.article-preview {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.article-preview-modal {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 65vh;
  height: 100%;
}

.article-preview-modal__status {
  font-size: 0.8rem;
  color: var(--muted);
}

.article-preview-modal.is-ready .article-preview-modal__status {
  color: #8bd1ff;
}

.article-preview-modal.is-error .article-preview-modal__status {
  color: #ff8c98;
}

.article-preview-modal__frame-shell {
  flex: 1;
  border: 1px solid var(--border);
  background: #050608;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 55vh;
}

.article-preview-modal__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #050608;
}

.ui-modal.is-preview-modal .ui-modal__dialog {
  width: min(1100px, 94vw);
}

.ui-modal.is-preview-modal .ui-modal__body {
  max-height: min(78vh, 860px);
  height: min(78vh, 860px);
  display: flex;
  flex-direction: column;
}

.ui-modal.is-preview-modal .ui-modal__body.is-preview-body {
  padding-bottom: 0.75rem;
}

.ui-modal.is-preview-modal .article-preview-modal {
  flex: 1;
}

.article-preview__hero {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}

.article-preview__kicker {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
}

.article-preview__hero h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 1.5vw + 1rem, 2.4rem);
}

.article-preview__deck {
  margin: 0 0 0.75rem;
  color: #c4cbd4;
  line-height: 1.6;
  max-width: 52rem;
}

.article-preview__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.article-preview__meta span {
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(5, 6, 8, 0.6);
}

.article-preview__body {
  max-width: 72ch;
}

.poll-preview {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.35rem;
  margin: 1.5rem 0;
}

.poll-preview__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--muted);
}

.poll-preview__title {
  font-size: 1rem;
}

.poll-preview__meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.article-body img {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.article-body .media-block {
  display: block;
  margin: 1.2rem auto;
  max-width: 100%;
}

.article-body .media-block img {
  width: 100%;
  height: auto;
  display: block;
}

.article-body .media-block.is-small {
  max-width: 240px;
}

.article-body .media-block.is-medium {
  max-width: 480px;
}

.article-body .media-block.is-large {
  max-width: 720px;
}

.article-body .media-block.is-full {
  max-width: 100%;
}

.article-body .media-block.is-inline {
  display: inline-block;
  margin: 0 0.5rem;
  vertical-align: middle;
}

.article-body .media-block.align-left {
  margin-right: auto;
}

.article-body .media-block.align-center {
  margin-left: auto;
  margin-right: auto;
}

.article-body .media-block.align-right {
  margin-left: auto;
}

.article-body .media-caption,
.article-body .table-caption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-left: 3px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0 0.35rem 0.7rem;
}

.article-body .table-caption.is-hidden {
  display: none;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
  --table-border-color: var(--border);
  --table-border-style: solid;
  --table-border-width: 1px;
  --table-bg-color: transparent;
  border-style: var(--table-border-style, solid);
  border-color: var(--table-border-color, var(--border));
  border-width: var(--table-border-width, 1px);
}

.article-body table[align="center"],
.article-body table[align="right"],
.article-body table[style*="margin-left: auto"],
.article-body table[style*="margin-left:auto"],
.article-body table[style*="margin-right: auto"],
.article-body table[style*="margin-right:auto"],
.article-body table[style*="float: right"],
.article-body table[style*="float:right"] {
  display: table;
  overflow-x: visible;
  width: fit-content !important;
  max-width: 100%;
}

.article-body table[align="center"] {
  margin-left: auto;
  margin-right: auto;
}

.article-body table[align="right"] {
  margin-left: auto;
  margin-right: 0;
}

.article-body .table-block {
  margin: 1.5rem 0;
}

.article-body .table-block table {
  margin: 0;
}

.article-body .table-block.align-left {
  float: left;
  margin: 0.4rem 1.2rem 0.8rem 0;
  max-width: 60%;
}

.article-body .table-block.align-center {
  float: none;
  margin: 1.2rem auto;
  clear: both;
}

.article-body .table-block.align-right {
  float: right;
  margin: 0.4rem 0 0.8rem 1.2rem;
  max-width: 60%;
}

.article-body .table-block.align-left table,
.article-body .table-block.align-right table {
  width: auto;
  max-width: 100%;
}

.article-body .table-shell {
  position: relative;
}

.article-body .table-controls {
  display: none;
}

.article-body .table-resize {
  display: none;
}

.article-body table.table--full {
  width: 100%;
}

.article-body table.table--w-40 { width: 40%; }
.article-body table.table--w-45 { width: 45%; }
.article-body table.table--w-50 { width: 50%; }
.article-body table.table--w-55 { width: 55%; }
.article-body table.table--w-60 { width: 60%; }
.article-body table.table--w-65 { width: 65%; }
.article-body table.table--w-70 { width: 70%; }
.article-body table.table--w-75 { width: 75%; }
.article-body table.table--w-80 { width: 80%; }
.article-body table.table--w-85 { width: 85%; }
.article-body table.table--w-90 { width: 90%; }
.article-body table.table--w-95 { width: 95%; }
.article-body table.table--w-100 { width: 100%; }

.article-body table.table--compact th,
.article-body table.table--compact td {
  padding: 0.35rem 0.5rem;
}

.article-body table.table--spacious th,
.article-body table.table--spacious td {
  padding: 0.8rem 1rem;
}

.article-body table.table--strong th,
.article-body table.table--strong td {
  border-width: 2px;
}

.article-body table.table--minimal th,
.article-body table.table--minimal td {
  border-color: rgba(255, 255, 255, 0.08);
}

.article-body table th,
.article-body table td {
  border-width: var(--table-border-width, 1px);
  border-style: var(--table-border-style, solid);
  border-color: var(--table-border-color, var(--border));
  padding: 0.6rem 0.75rem;
  text-align: left;
  background-color: var(--table-bg-color, transparent);
}

.article-body table thead th {
  background: rgba(5, 6, 8, 0.7);
  color: var(--text);
}

.article-body table.table--border-dashed {
  --table-border-style: dashed;
}

.article-body table.table--border-dotted {
  --table-border-style: dotted;
}

.article-body table.table--border-muted {
  --table-border-color: rgba(255, 255, 255, 0.12);
}

.article-body table.table--border-accent {
  --table-border-color: rgba(47, 125, 255, 0.55);
}

.article-body table.table--bg-muted {
  --table-bg-color: rgba(255, 255, 255, 0.03);
}

.article-body table.table--bg-panel {
  --table-bg-color: rgba(5, 6, 8, 0.55);
}

.article-body table.table--bg-accent {
  --table-bg-color: rgba(47, 125, 255, 0.12);
}

.article-body td.cell-align-left,
.article-body th.cell-align-left,
.article-body td.col-align-left,
.article-body th.col-align-left {
  text-align: left;
}

.article-body td.cell-align-center,
.article-body th.cell-align-center,
.article-body td.col-align-center,
.article-body th.col-align-center {
  text-align: center;
}

.article-body td.cell-align-right,
.article-body th.cell-align-right,
.article-body td.col-align-right,
.article-body th.col-align-right {
  text-align: right;
}

.article-body td.cell-valign-top,
.article-body th.cell-valign-top,
.article-body td.col-valign-top,
.article-body th.col-valign-top {
  vertical-align: top;
}

.article-body td.cell-valign-middle,
.article-body th.cell-valign-middle,
.article-body td.col-valign-middle,
.article-body th.col-valign-middle {
  vertical-align: middle;
}

.article-body td.cell-valign-bottom,
.article-body th.cell-valign-bottom,
.article-body td.col-valign-bottom,
.article-body th.col-valign-bottom {
  vertical-align: bottom;
}

.article-body td.cell-bg-muted,
.article-body th.cell-bg-muted,
.article-body td.col-bg-muted,
.article-body th.col-bg-muted {
  background: rgba(255, 255, 255, 0.03);
}

.article-body td.cell-bg-panel,
.article-body th.cell-bg-panel,
.article-body td.col-bg-panel,
.article-body th.col-bg-panel {
  background: rgba(5, 6, 8, 0.55);
}

.article-body td.cell-bg-accent,
.article-body th.cell-bg-accent,
.article-body td.col-bg-accent,
.article-body th.col-bg-accent {
  background: rgba(47, 125, 255, 0.12);
}

.article-body tr.row-align-left > th,
.article-body tr.row-align-left > td {
  text-align: left;
}

.article-body tr.row-align-center > th,
.article-body tr.row-align-center > td {
  text-align: center;
}

.article-body tr.row-align-right > th,
.article-body tr.row-align-right > td {
  text-align: right;
}

.article-body tr.row-valign-top > th,
.article-body tr.row-valign-top > td {
  vertical-align: top;
}

.article-body tr.row-valign-middle > th,
.article-body tr.row-valign-middle > td {
  vertical-align: middle;
}

.article-body tr.row-valign-bottom > th,
.article-body tr.row-valign-bottom > td {
  vertical-align: bottom;
}

.article-body tr.row-bg-muted > th,
.article-body tr.row-bg-muted > td {
  background: rgba(255, 255, 255, 0.03);
}

.article-body tr.row-bg-panel > th,
.article-body tr.row-bg-panel > td {
  background: rgba(5, 6, 8, 0.55);
}

.article-body tr.row-bg-accent > th,
.article-body tr.row-bg-accent > td {
  background: rgba(47, 125, 255, 0.12);
}

.article-body dl {
  margin: 1.5rem 0;
}

.article-body dt {
  font-weight: 600;
  color: var(--text);
}

.article-body dd {
  margin: 0.4rem 0 1rem 1.2rem;
  color: var(--muted);
}

.article-body pre,
.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.article-body :not(pre) > code {
  background: rgba(5, 6, 8, 0.9);
  border: 1px solid var(--border);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95em;
}

.article-body pre {
  position: relative;
  background: linear-gradient(160deg, rgba(12, 16, 22, 0.98), rgba(6, 8, 12, 0.96));
  border: 1px solid rgba(94, 125, 220, 0.22);
  padding: 1.4rem 1.1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.4rem 0;
  tab-size: 2;
  white-space: pre;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.article-body pre.has-copy {
  padding-top: 3rem;
}

.article-body pre.has-lang {
  padding-top: 3.4rem;
}

.article-body pre.has-lang::before {
  content: attr(data-lang);
  position: absolute;
  top: 0.7rem;
  left: 0.9rem;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(214, 223, 236, 0.75);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.article-body pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: #e3e9f2;
  font-size: 0.96rem;
  display: block;
  line-height: 1.6;
  white-space: inherit;
}

.article-body pre code.hljs {
  background: transparent;
  padding: 0;
}

.code-copy {
  position: absolute;
  top: 0.65rem;
  right: 0.7rem;
  background: rgba(5, 9, 14, 0.9);
  border: 1px solid rgba(120, 145, 240, 0.25);
  color: var(--text);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.code-copy:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

body.has-scroll-top .app-toast {
  bottom: calc(88px + var(--dock-height));
}

.article-body .footnotes {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 1.2rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.article-body .footnotes ol {
  margin-left: 1.2rem;
}

.article-body .task-list-item {
  list-style: none;
  margin-left: 0;
}

.article-body .task-list-item-checkbox {
  margin-right: 0.5rem;
  transform: translateY(1px);
}

.article-body mark {
  background: rgba(255, 214, 10, 0.2);
  color: var(--text);
  padding: 0.05rem 0.2rem;
  border-radius: 4px;
}

.article-body kbd {
  background: rgba(5, 6, 8, 0.9);
  border: 1px solid var(--border);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-size: 0.85em;
}

.article-body abbr {
  border-bottom: 1px dotted var(--muted);
  cursor: help;
}

.article-body ins {
  text-decoration: none;
  background: rgba(62, 235, 122, 0.15);
  padding: 0.05rem 0.2rem;
  border-radius: 4px;
}

.article-body del,
.article-body s {
  color: var(--muted);
}

.article-body sup,
.article-body sub {
  font-size: 0.75em;
}

.poll-block {
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  background: linear-gradient(160deg, rgba(8, 12, 18, 0.95), rgba(4, 6, 9, 0.92));
  padding: 1.25rem 1.4rem;
  margin: 1.6rem 0;
  display: grid;
  gap: 0.85rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.poll-block__header {
  display: grid;
  gap: 0.35rem;
}

.poll-block__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--muted);
}

.poll-block__question {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text);
}

.poll-block__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.poll-block__form {
  display: grid;
  gap: 0.85rem;
}

.poll-options {
  display: grid;
  gap: 0.5rem;
}

.poll-option {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 15, 0.75);
  padding: 0.65rem 0.85rem;
  display: grid;
  gap: 0.35rem;
  cursor: pointer;
  border-radius: 10px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.poll-option.is-selected {
  border-color: rgba(47, 125, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(47, 125, 255, 0.25);
  background: rgba(47, 125, 255, 0.08);
}

.poll-option:hover {
  border-color: rgba(47, 125, 255, 0.35);
  background: rgba(47, 125, 255, 0.06);
  transform: translateY(-1px);
}

.poll-option__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.poll-option__control {
  position: relative;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.poll-option__control input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.poll-option__check {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(5, 6, 8, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
}

.poll-option__control input[type="radio"] + .poll-option__check {
  border-radius: 999px;
}

.poll-option__control input:checked + .poll-option__check {
  background: linear-gradient(140deg, rgba(47, 125, 255, 0.95), rgba(84, 255, 230, 0.85));
  border-color: rgba(47, 125, 255, 0.85);
}

.poll-option__control input:checked + .poll-option__check::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 4px;
  border-left: 2px solid #051021;
  border-bottom: 2px solid #051021;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -45%) rotate(-45deg);
}

.poll-option__label {
  flex: 1;
  color: var(--text);
}

.poll-option__value {
  font-size: 0.75rem;
  color: var(--muted);
  display: none;
}

.poll-option__meter {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: none;
}

.poll-option__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #54ffe6);
  box-shadow: inset 0 0 0 1px rgba(47, 125, 255, 0.35);
  transition: width 0.25s ease;
}

.poll-block.is-results-visible .poll-option__meter,
.poll-block.is-results-visible .poll-option__value {
  display: block;
}

.poll-block--results-only .poll-option {
  cursor: default;
}

.poll-block--results-only .poll-option:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 15, 0.75);
}

.poll-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.poll-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.poll-auth-note {
  font-size: 0.75rem;
  color: var(--muted);
}

.poll-block__footer {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.poll-block.is-closed {
  border-color: rgba(255, 140, 152, 0.3);
}

.poll-block--missing {
  border-color: rgba(255, 140, 152, 0.3);
  background: rgba(255, 85, 99, 0.08);
}

.comment__text .poll-block {
  margin: 0.9rem 0;
}

.article-feedback__shell {
  display: flex;
  justify-content: center;
}

.article-feedback__card {
  border: 1px solid var(--border);
  background: rgba(5, 6, 8, 0.85);
  padding: 1.4rem;
  width: min(760px, 100%);
  display: grid;
  gap: 0.8rem;
}

.article-feedback__actions {
  display: flex;
  gap: 0.6rem;
}

.feedback-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: rgba(5, 6, 8, 0.9);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.feedback-btn.is-active {
  border-color: var(--accent);
  color: var(--text);
}

.article-feedback__response {
  font-size: 0.9rem;
  color: var(--muted);
}

.article-feedback__followup {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.article-feedback__followup.is-visible {
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
}

.article-related__grid {
  margin-top: 1.5rem;
}

.article-related__card {
  min-height: 100%;
}

.article-related__card .muted {
  margin: 0.6rem 0 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.form-grid label.full {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid textarea,
.filters input,
.filters select {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #040506;
  color: var(--text);
  padding: 0.5rem 0.7rem;
}

.alert {
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  border: 1px solid color-mix(in srgb, var(--border) 68%, #ffffff 32%);
  margin-bottom: 1rem;
}

.alert.error {
  border-color: #ff5563;
  color: #ff8c98;
}

.alert.success {
  border-color: #2f7dff;
  color: #a5c7ff;
}

.alert-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-left-width: 4px;
  border-radius: 0;
  margin-top: 0.5rem;
}

.submission-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
}

.submission-list li {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.submission-list li:last-child {
  border-bottom: 0;
}

.submission-list--stacked li {
  align-items: flex-start;
}

.submission-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
}

.submission-review-note {
  margin-top: 0.65rem;
  border: 1px solid rgba(47, 125, 255, 0.35);
  background: rgba(47, 125, 255, 0.08);
  padding: 0.6rem 0.7rem;
  display: grid;
  gap: 0.35rem;
}

.submission-review-note p {
  margin: 0;
  font-size: 0.84rem;
}

.review-checklist {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.2rem;
  font-size: 0.82rem;
  color: var(--text);
}

.moderation-form {
  margin-top: 0.75rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  padding-top: 0.75rem;
}

.status {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.status.pending {
  color: #f0c674;
}

.status.approved {
  color: #3dd598;
}

.status.rejected {
  color: #ff8c98;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #050608;
  padding: 3.5rem 0 4rem;
}

.atelier-footer {
  position: relative;
  overflow: hidden;
  --footer-panel: rgba(5, 6, 8, 0.85);
  --footer-border: color-mix(in srgb, var(--border) 80%, transparent);
  background:
    radial-gradient(1200px 520px at 12% -8%, rgba(47, 125, 255, 0.18), transparent 65%),
    radial-gradient(900px 420px at 92% 0%, rgba(47, 125, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(47, 125, 255, 0.06), transparent 45%),
    #050608;
}

.atelier-footer .footer-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.2rem;
}

.atelier-footer .footer-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--footer-border);
}

.atelier-footer .footer-brand h2 {
  margin: 0.4rem 0 0.6rem;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
}

.atelier-footer .footer-brand .lede {
  margin: 0;
  max-width: 36rem;
}

.atelier-footer .footer-cta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.atelier-footer .footer-kicker {
  margin: 1rem 0 0;
  font-size: 0.85rem;
}

.atelier-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.4rem;
}

.atelier-footer .footer-col h4 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.atelier-footer .footer-links {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  color: var(--text);
}

.atelier-footer .footer-links a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.atelier-footer .footer-links a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.atelier-footer .footer-col--newsletter {
  border: 1px solid var(--footer-border);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.75rem;
}

.atelier-footer .subscribe {
  display: grid;
  gap: 0.5rem;
}

.atelier-footer .subscribe__input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--footer-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.atelier-footer .subscribe__input.sm,
.atelier-footer .subscribe-btn.sm {
  padding: 0.45rem 0.65rem;
  font-size: 0.9rem;
}

.atelier-footer .subscribe-btn {
  padding: 0.55rem 0.75rem;
  background: var(--accent);
  background: color-mix(in srgb, var(--accent) 90%, #000000);
  color: #ffffff;
  border: 1px solid var(--accent-dark);
  cursor: pointer;
  font-weight: 700;
}

.atelier-footer .footer-social {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.atelier-footer .footer-social a {
  color: var(--text);
  border: 1px solid var(--footer-border);
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.atelier-footer .footer-social a:hover {
  border-color: var(--accent);
  color: var(--text);
}

.atelier-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid var(--footer-border);
}

html[dir="rtl"] .atelier-footer .footer-bottom {
  flex-direction: row-reverse;
}

.atelier-footer .footer-legal {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

html[dir="rtl"] .atelier-footer .footer-legal {
  flex-direction: row-reverse;
}

.atelier-footer .footer-note {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  color: var(--muted);
}

.atelier-footer .footer-note .footer-version-link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.atelier-footer .footer-note .footer-version-link:hover,
.atelier-footer .footer-note .footer-version-link:focus-visible {
  color: var(--text);
  border-bottom-color: var(--accent);
}

html[dir="rtl"] .atelier-footer .footer-note {
  flex-direction: row-reverse;
}

.atelier-footer .footer-dot {
  width: 4px;
  height: 4px;
  background: var(--border);
  border-radius: 999px;
}

.atelier-footer .footer-locale {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.atelier-footer .footer-locale__label {
  color: var(--muted);
}

.atelier-footer .footer-locale__link {
  border: 1px solid var(--footer-border);
  padding: 0.22rem 0.5rem;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.atelier-footer .footer-locale__link:hover,
.atelier-footer .footer-locale__link.is-active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(47, 125, 255, 0.1);
}

.atelier-footer .footer-hero,
.atelier-footer .footer-grid,
.atelier-footer .footer-bottom {
  animation: footer-reveal 0.7s ease both;
}

.atelier-footer .footer-grid {
  animation-delay: 0.1s;
}

.atelier-footer .footer-bottom {
  animation-delay: 0.2s;
}

@keyframes footer-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atelier-footer .footer-hero,
  .atelier-footer .footer-grid,
  .atelier-footer .footer-bottom {
    animation: none;
  }
}

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

@media (min-width: 980px) {
  .atelier-footer .footer-col--newsletter {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .atelier-footer .footer-cta .button {
    width: 100%;
    justify-content: center;
  }

  .atelier-footer .footer-bottom {
    align-items: flex-start;
  }
}

code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.35rem;
}

@media (max-width: 840px) {
  .primary-nav {
    display: none;
  }

  .site-header .shell {
    flex-direction: row;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .button {
    flex: 1;
    justify-content: center;
  }

  .creator-hero {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    grid-template-columns: 1fr;
  }

  .smart-search__panel {
    position: static;
  }

  .account-hero__stats {
    grid-template-columns: 1fr;
  }

  .account-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .account-dashboard-link-grid {
    grid-template-columns: 1fr;
  }

  .account-dashboard-favorites {
    grid-template-columns: 1fr;
  }

  .account-dashboard-content-list li,
  .account-submission-list li {
    flex-direction: column;
    gap: 0.35rem;
  }

  .account-dashboard-verify {
    flex-direction: column;
  }

  .account-dashboard-hero-aux .button {
    min-width: 0;
    flex: 1 1 calc(50% - 0.5rem);
  }

  .account-dashboard-hero-aux form {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .account-dashboard-hero-aux form .button {
    width: 100%;
  }

  .account-shortcuts-grid {
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  }

  .account-profile-form__actions {
    justify-content: flex-start;
  }

  .account-settings-layout,
  .account-security-quick-grid,
  .account-searches-grid {
    grid-template-columns: 1fr;
  }

  .account-search-list li {
    flex-direction: column;
    gap: 0.45rem;
  }

  .account-collections-form {
    grid-template-columns: 1fr;
  }

  .account-collections-form__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .account-dashboard-hero-aux .button,
  .account-dashboard-hero-aux form {
    flex: 1 1 100%;
  }
}
.gallery {
  display: grid;
  gap: 1rem;
}

.gallery__primary {
  border: 1px solid var(--border);
  padding: 1rem;
  background: #050608;
  position: relative;
  overflow: hidden;
}

.gallery__stage {
  width: 100%;
}

.gallery__primary img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.gallery__thumbs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.gallery__thumbs img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.gallery--interactive .gallery__primary video {
  width: 100%;
  display: block;
  background: #020306;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: rgba(5, 6, 8, 0.92);
  color: #ffffff;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  cursor: pointer;
  z-index: 2;
  transition: transform 0.25s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.gallery__nav--prev {
  left: 1rem;
}

.gallery__nav--next {
  right: 1rem;
}

.gallery__nav:hover,
.gallery__nav:focus-visible {
  transform: translateY(-54%);
  border-color: var(--accent);
  color: #bcd6ff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}

.gallery__nav:active {
  transform: translateY(-51%) scale(0.96);
}

.gallery__nav-icon {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.gallery__nav--prev:hover .gallery__nav-icon {
  transform: translateX(-2px);
}

.gallery__nav--next:hover .gallery__nav-icon {
  transform: translateX(2px);
}

.gallery__nav[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.gallery__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.gallery__toolbar-actions {
  display: inline-flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.gallery__toolbar .muted {
  margin: 0;
  font-size: 0.8rem;
}

.gallery__counter {
  border: 1px solid var(--border);
  background: #020306;
  color: rgba(255, 255, 255, 0.76);
  padding: 0.24rem 0.58rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-thumb {
  display: grid;
  gap: 0.35rem;
  min-width: 112px;
  border: 1px solid var(--border);
  background: #050608;
  color: var(--text);
  padding: 0.35rem;
  text-align: left;
}

.gallery-thumb img {
  width: 100%;
  height: 86px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.gallery-thumb span {
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.76);
}

.gallery-thumb.is-active {
  border-color: rgba(121, 178, 255, 0.65);
}

.gallery-thumb__video {
  display: grid;
  place-items: center;
  height: 86px;
  border: 1px solid var(--border);
  background: #020306;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-lightbox {
  display: grid;
  gap: 0.7rem;
}

.gallery-lightbox img,
.gallery-lightbox video {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border: 1px solid var(--border);
  background: #000;
}

.compat-panel {
  margin-top: 1.2rem;
  border: 1px solid var(--border);
  background: #050608;
  padding: 0.95rem;
  display: grid;
  gap: 0.9rem;
}

.compat-panel__head {
  display: grid;
  gap: 0.2rem;
}

.compat-panel__head p {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: rgba(255, 255, 255, 0.72);
}

.compat-panel__head small {
  color: var(--muted);
}

.compat-table-wrap {
  overflow-x: auto;
}

.compat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.compat-table th,
.compat-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.45rem;
  text-align: left;
  white-space: nowrap;
}

.compat-table th {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.compat-panel__footer {
  display: flex;
  justify-content: flex-end;
}

.install-panel__body {
  display: grid;
  gap: 0.85rem;
}

.install-panel__variants {
  display: grid;
  gap: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.8rem;
}

.install-panel__variants .variant-grid {
  margin-top: 0;
}

.install-inline__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: flex-start;
}

.install-ecosystem {
  display: grid;
  gap: 0.65rem;
}

.install-ecosystem__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.85rem;
}

.install-ecosystem__head strong {
  font-size: 0.95rem;
}

.install-ecosystem__footer {
  display: flex;
  justify-content: flex-end;
}

.install-source {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.65rem;
}

.install-table td {
  white-space: normal;
}

.install-table td:nth-child(3) {
  min-width: 220px;
}

.variant-grid {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.75rem;
}

.variant-card {
  border: 1px solid var(--border);
  background: #050608;
  padding: 0.68rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.variant-card strong {
  display: block;
  margin-bottom: 0.18rem;
}

.variant-card small {
  color: var(--muted);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.review-card {
  border: 1px solid var(--border);
  padding: 1rem 1.05rem;
  background: #050608;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.review-card p {
  margin: 0;
  color: color-mix(in srgb, var(--text) 84%, #ffffff 16%);
  line-height: 1.5;
}

.review-card__body {
  margin: 0;
}

.review-card__body > :first-child {
  margin-top: 0;
}

.review-card__body > :last-child {
  margin-bottom: 0;
}

.review-card small {
  color: var(--muted);
}

.review-card .rating {
  color: #ffd966;
}

.review-form-wrapper {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.6rem;
}

.review-summary {
  border: 1px solid var(--border);
  background: #050608;
  padding: 0.85rem 0.9rem;
  margin-bottom: 0.9rem;
  display: grid;
  grid-template-columns: minmax(140px, 0.45fr) minmax(0, 1fr);
  gap: 0.8rem 1rem;
  align-items: center;
}

.review-summary__score strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.review-summary__score span {
  color: var(--muted);
  font-size: 0.82rem;
}

.review-histogram {
  display: grid;
  gap: 0.35rem;
}

.review-histogram__row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 38px;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.82);
}

.review-histogram__track {
  border: 1px solid var(--border);
  background: #020306;
  height: 0.52rem;
  overflow: hidden;
}

.review-histogram__track i {
  display: block;
  height: 100%;
  background: rgba(47, 125, 255, 0.75);
}

.review-form__intro h3 {
  margin: 0;
}

.review-form__intro p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.favorite-form {
  margin-top: 0.5rem;
}

.review-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.review-form__row {
  display: grid;
  grid-template-columns: minmax(140px, 0.4fr) minmax(0, 1fr);
  gap: 1rem;
}

.review-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.review-field span {
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.review-form__tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  background: #030406;
  padding: 0.45rem 0.6rem;
}

.review-form textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.45;
}

.review-form select,
.review-form input,
.review-form textarea {
  width: 100%;
  background: #050608;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.62rem 0.78rem;
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.review-form select:focus,
.review-form input:focus,
.review-form textarea:focus {
  outline: 0;
  border-color: var(--accent);
}

.review-form__footer {
  border-top: 1px solid var(--border);
  padding-top: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.review-form__footer .muted {
  margin: 0;
  font-size: 0.82rem;
}

.review-form__submit {
  min-width: 0;
}

.review-toolbar {
  margin: 0.2rem 0 1rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.review-toolbar label {
  display: grid;
  gap: 0.35rem;
}

.review-toolbar span {
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.review-toolbar select {
  min-width: 170px;
  background: #050608;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.48rem 0.65rem;
}

.review-toolbar__verified-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.review-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.review-chip {
  border: 1px solid rgba(121, 240, 192, 0.45);
  color: #79f0c0;
  background: rgba(121, 240, 192, 0.08);
  padding: 0.2rem 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-hero .hero__stats {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  border: 1px solid var(--border);
  background: #050608;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
}

.spec-list li:last-child {
  border-bottom: 0;
}

.spec-list span {
  color: var(--muted);
}

.spec-list strong {
  font-weight: 600;
}

.product-notes h3 {
  margin-top: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.feature-grid article {
  border: 1px solid var(--border);
  padding: 0.9rem;
  background: #040506;
}

.feature-grid ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0.5rem 0 0;
}

.version-history__heading {
  align-items: flex-start;
}

.version-history__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
  width: min(100%, 600px);
}

.version-history__stats div {
  border: 1px solid var(--border);
  padding: 0.65rem 0.8rem;
  background: #050608;
}

.version-history__stats span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.version-history__stats strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1rem;
}

.version-history {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.version-history__item {
  border: 1px solid var(--border);
  padding: 1rem 1.1rem;
  background: #050608;
}

.version-history__item.is-latest {
  border-color: var(--accent);
}

.version-history__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.version-history__labels {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.version-history__top small {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.version-badge,
.version-channel {
  border-radius: var(--radius);
  padding: 0.12rem 0.5rem;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
}

.version-badge {
  color: #a5c7ff;
  border-color: rgba(121, 178, 255, 0.45);
  background: rgba(47, 125, 255, 0.14);
}

.version-channel {
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.version-channel.is-stable {
  color: #79f0c0;
  border-color: rgba(121, 240, 192, 0.45);
  background: rgba(121, 240, 192, 0.12);
}

.version-channel.is-beta {
  color: #9dc4ff;
  border-color: rgba(157, 196, 255, 0.42);
  background: rgba(157, 196, 255, 0.12);
}

.version-channel.is-alpha {
  color: #ffd486;
  border-color: rgba(255, 212, 134, 0.45);
  background: rgba(255, 212, 134, 0.12);
}

.version-history__item p {
  margin: 0.6rem 0 0;
  color: color-mix(in srgb, var(--text) 85%, #ffffff 15%);
  line-height: 1.45;
}

.version-history__meta {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.84rem;
}

.version-history__controls {
  margin-bottom: 0.95rem;
  display: grid;
  gap: 0.8rem;
}

.version-history__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.version-history__summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.version-history__item.is-expanded .version-history__summary {
  display: block;
  -webkit-line-clamp: initial;
}

.version-compare {
  border: 1px solid var(--border);
  background: #050608;
  padding: 0.7rem 0.8rem;
}

.version-compare p {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
}

.version-compare__slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.55rem;
}

.version-compare__card {
  border: 1px solid var(--border);
  padding: 0.55rem 0.6rem;
  background: #020306;
  display: grid;
  gap: 0.3rem;
}

.version-compare__card strong {
  font-size: 0.95rem;
}

.version-compare__card span {
  font-size: 0.75rem;
  color: var(--muted);
}

.version-compare__card p {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
}

.version-compare__pick {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.version-history__list-toggle {
  margin-top: 0.85rem;
  display: flex;
  justify-content: flex-start;
}

.review-form.is-tools-collapsed .tox .tox-editor-header,
.review-form.is-tools-collapsed .tox .tox-statusbar {
  display: none;
}

.review-form.is-tools-collapsed .tox .tox-edit-area__iframe {
  min-height: 140px !important;
}

.watchface-sticky-cta {
  position: fixed;
  top: calc(var(--sticky-top, 0px) + 0.35rem);
  left: 0;
  right: 0;
  z-index: 12;
  opacity: 0;
  transform: translate3d(0, -14px, 0);
  pointer-events: none;
  will-change: opacity, transform;
  transition: opacity 0.24s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.watchface-sticky-cta.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.watchface-sticky-cta__shell {
  border: 1px solid var(--border);
  background: rgba(5, 6, 8, 0.95);
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.watchface-sticky-cta__meta {
  display: grid;
  gap: 0.1rem;
}

.watchface-sticky-cta__meta strong {
  font-size: 0.9rem;
}

.watchface-sticky-cta__meta span {
  color: var(--muted);
  font-size: 0.78rem;
}

.watchface-sticky-cta__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

@media (max-width: 760px) {
  .review-summary {
    grid-template-columns: 1fr;
  }

  .review-form__row {
    grid-template-columns: 1fr;
  }

  .review-form__submit {
    width: 100%;
  }

  .watchface-sticky-cta__actions {
    width: 100%;
  }

  .watchface-sticky-cta__actions .button {
    flex: 1 1 auto;
  }

  .version-history__stats {
    width: 100%;
  }

  .version-history__top {
    flex-direction: column;
    gap: 0.4rem;
  }
}

.filter-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  border: 1px solid var(--border);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
}

.filter-pill span {
  color: var(--text);
  font-weight: 600;
}

.filter-pill.is-active {
  border-color: var(--accent);
  color: var(--text);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
}

.chip {
  border: 1px solid var(--border);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
}

.chip.muted {
  color: var(--muted);
}

.chip.success {
  border-color: rgba(61, 213, 152, 0.55);
  color: rgba(61, 213, 152, 0.95);
  background: rgba(61, 213, 152, 0.08);
}

.chip.subtle {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.04);
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 0.85rem;
  line-height: 1.35;
}

.submission-board,
.admin-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.submission-card {
  border: 1px solid var(--border);
  padding: 1rem;
  background: #050608;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.submission-card header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.submission-card__preview {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  object-fit: cover;
  max-height: 240px;
}

.status-pill {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.status-pill.pending {
  border-color: #f0c674;
  color: #f0c674;
}

.status-pill.approved {
  border-color: #3dd598;
  color: #3dd598;
}

.status-pill.rejected {
  border-color: #ff8c98;
  color: #ff8c98;
}

.audit-log {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.audit-log li {
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: #050608;
  font-size: 0.9rem;
}

.audit-log pre {
  margin: 0.5rem 0 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  overflow-x: auto;
}

.admin-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button.sm {
  padding: 0.2rem 0.8rem;
  font-size: 0.8rem;
}

.watchface-card__price {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

.studio-steps {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.studio-step {
  border: 1px solid var(--border);
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.studio-step.is-active {
  border-color: var(--accent);
  color: var(--text);
}

.studio-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-section {
  border: 1px solid var(--border);
  padding: 1rem;
  background: #050608;
}

.account-hero {
  background: radial-gradient(circle at top right, rgba(47, 125, 255, 0.2), transparent 60%);
}

.account-hero__primary {
  max-width: 600px;
}

.account-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.account-pane-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.account-pane {
  border: 1px solid var(--border);
  background: #050608;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.account-pane--wide {
  grid-column: 1 / -1;
}

.account-dashboard-hero {
  background:
    radial-gradient(740px 260px at 85% 12%, rgba(47, 125, 255, 0.22), transparent 70%),
    radial-gradient(640px 220px at 10% 0%, rgba(47, 125, 255, 0.12), transparent 68%);
}

.account-dashboard-hero-ctas {
  margin-top: 1.1rem;
}

.account-dashboard-hero-aux {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.account-dashboard-hero-aux .button {
  min-width: 104px;
  justify-content: center;
}

.account-dashboard-hero-aux form {
  margin: 0;
}

.account-surface-card .section-heading {
  margin-bottom: 0.15rem;
  display: grid;
  gap: 0.28rem;
}

.account-surface-card .section-heading p {
  margin: 0;
}

.account-surface-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}

.account-surface-actions form {
  margin: 0;
}

.account-shortcuts-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 0.85rem;
}

.account-shortcut-card {
  border: 1px solid var(--border);
  background: rgba(5, 6, 8, 0.84);
  padding: 1rem 1.05rem;
  min-height: 132px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.account-shortcut-card strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.account-shortcut-card span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.account-shortcut-card:hover {
  border-color: var(--accent);
  background: rgba(47, 125, 255, 0.08);
}

.account-shortcut-card.is-active {
  border-color: var(--accent);
  background: rgba(47, 125, 255, 0.13);
}

.account-dashboard-verify {
  margin-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.account-dashboard-verify p {
  margin: 0.45rem 0 0;
}

.account-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.account-settings-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  align-items: start;
}

.account-dashboard-card {
  min-height: 100%;
  gap: 1rem;
}

.account-dashboard-card .section-heading {
  margin-bottom: 0.15rem;
  display: grid;
  gap: 0.28rem;
}

.account-dashboard-card .section-heading p {
  margin: 0;
}

.account-meta-list {
  list-style: none;
  margin: 0;
  padding: 0.8rem 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.5rem;
}

.account-meta-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.account-meta-list li span {
  color: var(--muted);
}

.account-meta-list li strong {
  text-align: right;
  font-size: 0.92rem;
}

.account-profile-form {
  align-items: end;
}

.account-profile-form__actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.account-dashboard-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.account-dashboard-link-grid .button {
  width: 100%;
  justify-content: center;
}

.account-collections-form {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.85rem 1rem;
  align-items: start;
}

.account-collections-form textarea {
  min-height: 112px;
  resize: vertical;
}

.account-collections-form__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 0.15rem;
}

.account-collections-form__actions .button {
  min-width: 190px;
}

.account-dashboard-submissions {
  align-items: start;
}

.account-submission-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.account-submission-list li {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.7rem 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.account-submission-list li p {
  margin: 0.25rem 0 0;
}

.account-dashboard-breakdowns {
  margin-top: 1rem;
}

.account-dashboard-content-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
}

.account-dashboard-content-list li + li {
  margin-top: 0;
}

.account-dashboard-content-list small {
  display: block;
  margin-top: 0.25rem;
}

.account-dashboard-publisher-overview {
  margin-top: 1rem;
}

.account-dashboard-favorites {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.account-dashboard-favorites .resource-list li + li {
  margin-top: 0.45rem;
}

.account-action-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.account-action-list li {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.65rem 0.75rem;
}

.account-action-list li .link {
  font-weight: 500;
}

.account-security-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.account-security-quick-grid .account-pane h3 {
  margin: 0;
}

.account-searches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.account-searches-clear {
  margin: 0.25rem 0 0.5rem;
}

.account-search-list {
  margin: 0;
}

.account-search-list li {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.65rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
}

.account-search-list li + li {
  margin-top: 0.55rem;
}

.account-search-list li > div span {
  color: var(--muted);
  font-size: 0.86rem;
}

.account-search-list li form {
  margin: 0;
}

.telemetry-launch {
  gap: 1rem;
}

.telemetry-filter-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(5, 6, 8, 0.92);
  padding: 1rem;
}

.telemetry-filter-form {
  display: grid;
  gap: 0.85rem;
}

.telemetry-filter-form label {
  display: grid;
  gap: 0.35rem;
}

.telemetry-filter-form label span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.telemetry-filter-form select {
  border: 1px solid var(--border);
  background: rgba(5, 6, 8, 0.9);
  color: var(--text);
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
}

.telemetry-chip-row a {
  text-decoration: none;
}

.telemetry-active-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.telemetry-active-list li {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(5, 6, 8, 0.85);
  padding: 0.75rem 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.telemetry-active-list li p {
  margin: 0.3rem 0 0;
}

.telemetry-active-list li small {
  display: block;
  margin-top: 0.3rem;
}

.telemetry-bar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.telemetry-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}

.telemetry-bar-track {
  display: block;
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.telemetry-bar-track--dim {
  height: 8px;
}

.telemetry-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(47, 125, 255, 0.95), rgba(47, 125, 255, 0.35));
  border-radius: inherit;
}

.telemetry-hourly-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.telemetry-hourly-head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
  font-size: 0.88rem;
}

.telemetry-hourly-list small {
  display: block;
  margin-top: 0.28rem;
}

.telemetry-top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}

.telemetry-list-tight {
  margin: 0;
}

.telemetry-list-tight li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: baseline;
}

.telemetry-list-tight li + li {
  margin-top: 0.4rem;
}

.telemetry-audit {
  max-height: 420px;
  overflow: auto;
}

.account-settings-page .stat-card {
  min-width: 0;
}

.account-settings-page .stat-card__value--email {
  font-size: clamp(1.15rem, 2.5vw, 1.9rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.account-settings-page #email .section-heading {
  display: grid;
  gap: 0.35rem;
  justify-content: start;
}

.account-settings-page #email .section-heading p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.account-settings-page .settings-email-form {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem 1rem;
  align-items: end;
}

.account-settings-page .settings-email-form .settings-email-help {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.account-settings-page .settings-notification-form {
  align-items: end;
}

.account-settings-page .settings-submit {
  justify-self: start;
  align-self: end;
  width: auto;
  min-width: 172px;
}

@media (max-width: 900px) {
  .account-settings-page .settings-email-form {
    grid-template-columns: 1fr;
  }

  .account-settings-page .settings-submit {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
  }

  .telemetry-active-list li {
    flex-direction: column;
  }
}

.security-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 980px) {
  .security-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

.security-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.security-pane__body {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  padding: 0.85rem;
  border-radius: var(--radius);
  max-height: 540px;
  scrollbar-gutter: stable;
}

@media (min-width: 980px) {
  .security-pane {
    align-self: stretch;
    height: clamp(520px, 64vh, 720px);
  }

  .security-pane__body {
    max-height: none;
    height: auto;
    flex: 1 1 auto;
    min-height: 0;
  }
}

.security-pane__note {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.85rem;
}

.security-pane__note p {
  margin: 0;
}

.security-pane__note .eyebrow {
  margin-bottom: 0.35rem;
}

.security-actions {
  display: flex;
  justify-content: flex-end;
}

.security-session-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 0;
}

.security-session {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.security-session.is-revoked {
  opacity: 0.7;
}

.security-session__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.security-session__identity {
  min-width: 0;
}

.security-session__hint {
  margin-top: 0.25rem;
  font-size: 0.85rem;
}

.security-session__pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.security-session__pills form {
  margin: 0;
}

.security-session__pills .chip {
  display: inline-flex;
  align-items: center;
}

.security-session__pills .chip-action {
  line-height: 1;
}

.chip-action {
  appearance: none;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.chip-action:hover {
  background: rgba(255, 255, 255, 0.06);
}

.chip-action:focus-visible {
  outline: 2px solid rgba(47, 125, 255, 0.6);
  outline-offset: 2px;
}

.chip-action--accent {
  border-color: rgba(47, 125, 255, 0.55);
  color: rgba(47, 125, 255, 0.95);
  background: rgba(47, 125, 255, 0.08);
}

.chip-action--accent:hover {
  background: rgba(47, 125, 255, 0.12);
}

.security-session__details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  color: var(--text);
  font-size: 0.9rem;
}

.security-session__details .muted {
  font-size: 0.8rem;
}

.security-sep {
  margin: 0 0.25rem;
  opacity: 0.6;
}

.security-history {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.security-history__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.65rem 0.85rem;
}

.security-history__main {
  min-width: 0;
}

.security-history__sub {
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
}

.security-history__time {
  white-space: nowrap;
}

.security-passkeys {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 980px) {
  .security-passkeys {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr);
    align-items: center;
  }
}

.security-passkeys__copy p {
  margin: 0.35rem 0;
}

.security-passkeys__cta {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  text-align: center;
}

.security-passkeys__cta .button {
  width: min(260px, 100%);
}

.security-passkey-list {
  display: grid;
  gap: 0.65rem;
}

.security-passkey-empty {
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.18);
  padding: 0.85rem;
  border-radius: var(--radius);
}

.security-passkey {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem 0.85rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
}

.security-passkey.is-revoked {
  opacity: 0.7;
}

.security-passkey__main {
  min-width: 0;
}

.security-passkey__meta {
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
  font-size: 0.85rem;
}

.security-passkey__actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.security-passkey__actions form {
  margin: 0;
}

.security-recovery-actions {
  margin-top: 0.75rem;
  display: flex;
  justify-content: flex-start;
}

.security-2fa-enabled {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.security-2fa-disable {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.security-2fa-setup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.security-2fa-flow {
  display: grid;
  gap: 1rem;
}

.security-2fa-flow__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
}

@media (min-width: 980px) {
  .security-2fa-flow__intro {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
  }
}

.security-2fa-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

.security-step-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.security-step-card__head {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.security-step-card__footer {
  display: flex;
  justify-content: flex-end;
}

.security-secret-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
}

.security-secret-row code {
  display: block;
  padding: 0.6rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  overflow: auto;
  font-size: 0.85rem;
}

.security-2fa-secret {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.35rem;
}

.security-2fa-secret code,
.recovery-codes code {
  display: inline-block;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}

.recovery-codes {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
}

.security-2fa-otpauth {
  margin-top: 0.75rem;
}

.security-2fa-qr {
  margin-top: 0.75rem;
}

.security-qr {
  margin-top: 0.6rem;
  display: inline-flex;
  padding: 0.7rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.security-qr svg {
  width: 168px;
  height: auto;
  display: block;
}

.security-qr-note-mobile {
  display: none;
}

@media (max-width: 760px) {
  .security-qr-note-mobile {
    display: block;
  }
}

.security-2fa-callout {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
}

@media (min-width: 980px) {
  .security-2fa-callout {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    align-items: center;
  }
}

.security-2fa-callout__title {
  font-size: 1.05rem;
  margin: 0.35rem 0;
}

.security-2fa-callout__cta {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  text-align: center;
  width: 100%;
  align-self: center;
}

.security-2fa-callout__cta form {
  width: 100%;
  display: grid;
  justify-items: center;
}

.security-2fa-callout__cta .button {
  width: min(260px, 100%);
}

.security-confirm-form {
  display: grid;
  gap: 0.75rem;
}

.security-confirm-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
  grid-column: 1 / -1;
}

.security-2fa-callout__note {
  margin: 0;
  font-size: 0.9rem;
}

.security-2fa-bullets {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.4rem;
}

.security-2fa-bullets li {
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.55rem 0.7rem;
}

.security-2fa-bullets strong {
  color: var(--text);
}

.quick-action {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.quick-action p {
  margin: 0;
}

.recent-searches ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--muted);
}

.recent-searches li span {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.watchface-wizard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.watchface-wizard .form-grid {
  align-items: start;
}

.watchface-wizard .form-grid .full {
  grid-column: 1 / -1;
}

.watchface-wizard .wizard-identity-grid {
  gap: 0.85rem;
}

.watchface-wizard .wizard-section-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.watchface-wizard .wizard-section-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.55rem;
}

.watchface-wizard .wizard-section-card__head h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.watchface-wizard .wizard-section-card__head p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.watchface-wizard .wizard-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.watchface-wizard .wizard-disclosure {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
}

.watchface-wizard .wizard-disclosure > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid transparent;
}

.watchface-wizard .wizard-disclosure > summary::-webkit-details-marker {
  display: none;
}

.watchface-wizard .wizard-disclosure > summary span {
  font-size: 0.95rem;
  font-weight: 600;
}

.watchface-wizard .wizard-disclosure > summary small {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.watchface-wizard .wizard-disclosure > summary::after {
  content: "+";
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}

.watchface-wizard .wizard-disclosure[open] > summary::after {
  content: "\2212";
}

.watchface-wizard .wizard-disclosure[open] > summary {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.watchface-wizard .wizard-disclosure > .wizard-section-grid {
  padding: 0.85rem 0.9rem 0.95rem;
}

.wizard-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  width: 100%;
}

.wizard-track__item {
  border: 1px solid var(--border);
  background: #050608;
  color: inherit;
  padding: 0.75rem;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  position: relative;
}

.wizard-track__item.is-active {
  border-color: #2f7dff;
  background: rgba(47, 125, 255, 0.1);
}
.wizard-track__item.has-warning {
  border-color: #f0c674;
  color: #f0c674;
}
.wizard-track__item.has-warning::after {
  content: "!";
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
}
.wizard-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.wizard-header > div:first-child {
  flex: 1;
}
.wizard-header .autosave-indicator {
  align-self: flex-start;
}

.autosave-indicator[data-state='dirty'] {
  color: #ffb347;
}

.autosave-indicator[data-state='saving'] {
  color: #7fa8f5;
}

.autosave-indicator[data-state='saved'] {
  color: #39d7a6;
}

.autosave-indicator[data-state='error'] {
  color: #ff5460;
}

.wizard-progress-label {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wizard-panels {
  position: relative;
}

.wizard-panel {
  display: none;
  border: 1px solid var(--border);
  padding: 1.5rem;
  background: #050608;
  animation: wizardFade 0.25s ease;
  display: none;
}

.wizard-panel.is-active {
  display: block;
}

@keyframes wizardFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.option-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1rem;
}

.card-option {
  border: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card-option input {
  appearance: none;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-top: 0.3rem;
  position: relative;
}

.card-option input::after {
  content: '';
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: transparent;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.card-option input:checked {
  border-color: #2f7dff;
}

.card-option input:checked::after {
  background: #2f7dff;
}

.card-option:hover {
  border-color: #2f7dff;
  transform: translateY(-1px);
}

.card-option strong {
  display: block;
}

.variant-prefill {
  margin-top: 1rem;
  display: none;
}

.variant-prefill.is-visible {
  display: block;
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.tag-pills label,
.chip-row label {
  border: 1px solid var(--border);
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  position: relative;
}

.tag-pills label input,
.chip-row label input {
  appearance: none;
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.tag-pills label span,
.chip-row label span {
  pointer-events: none;
}

.tag-pills label input:checked + span,
.chip-row label input:checked + span {
  color: #fff;
  background: rgba(47, 125, 255, 0.15);
  border-color: #2f7dff;
}

.platform-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.platform-card {
  border: 1px solid var(--border);
  padding: 1rem;
  background: #050608;
  display: none;
  flex-direction: column;
  gap: 0.8rem;
}

.platform-card[data-active="true"] {
  display: flex;
}

.wizard-panel--pricing .platform-grid {
  grid-template-columns: 1fr;
}

.wizard-panel--pricing .platform-card--pricing {
  border: 0;
  background: transparent;
  padding: 0;
  gap: 0.75rem;
}

.wizard-panel--pricing .platform-card--pricing + .platform-card--pricing {
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
  padding-top: 1rem;
}

.wizard-panel--pricing .platform-card--pricing header p {
  margin: 0.2rem 0 0;
}

.platform-card header h3 {
  margin: 0;
}

.platform-subsection {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.wizard-empty {
  border: 1px dashed var(--border);
  padding: 1rem;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.select-shell {
  display: flex;
  flex-direction: column;
}

.select-shell select,
.form-grid input[type='text'],
.form-grid input[type='password'],
.form-grid input[type='email'],
.form-grid input[type='url'],
.form-grid input[type='search'],
.form-grid textarea,
.platform-card input[type='text'],
.platform-card input[type='password'],
.platform-card input[type='email'],
.platform-card input[type='url'],
.platform-card input[type='search'],
.platform-card textarea,
.platform-card select {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  color: #e4e9f5;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  appearance: none;
}
.select-shell select:focus,
.form-grid input[type='text']:focus,
.form-grid input[type='password']:focus,
.form-grid input[type='email']:focus,
.form-grid input[type='url']:focus,
.form-grid input[type='search']:focus,
.form-grid textarea:focus,
.platform-card select:focus {
  border-color: var(--accent);
  outline: none;
}

.platform-card textarea,
.form-grid textarea {
  min-height: 3.4rem;
}

.select-shell {
  position: relative;
}

.select-shell::after {
  content: '';
}

.select-shell select {
  appearance: none;
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  color: #e4e9f5;
  padding: 0.65rem 0.75rem;
  padding-right: 2.6rem;
  border-radius: 0;
  font-size: 0.95rem;
  color-scheme: dark;
  background-image:
    linear-gradient(45deg, transparent 50%, #7584a3 50%),
    linear-gradient(135deg, #7584a3 50%, transparent 50%),
    linear-gradient(90deg, transparent 0%, transparent 70%, rgba(255,255,255,0.04) 70%);
  background-position:
    calc(100% - 1.45rem) 50%,
    calc(100% - 1.1rem) 50%,
    calc(100% - 2.2rem) 0;
  background-size: 6px 6px, 6px 6px, 1px 100%;
  background-repeat: no-repeat;
}
.select-shell select option {
  background: #0c0f16;
  color: #e4e9f5;
}
.select-shell select option:checked,
.select-shell select option:focus,
.select-shell select option:hover {
  background: #17202b;
  color: #ffffff;
}

.dropzone-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 1rem;
}

.dropzone {
  border: 1px dashed var(--border);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.dropzone:hover {
  border-color: #2f7dff;
  transform: translateY(-1px);
}

.dropzone.is-dragging {
  border-color: #2f7dff;
  background: rgba(47, 125, 255, 0.08);
}

.dropzone.has-file {
  border-color: #2f7dff;
  background: rgba(47, 125, 255, 0.12);
}
.file-drop {
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.01);
  padding: 0.85rem;
  position: relative;
  overflow: hidden;
}
.file-drop.is-dragging {
  border-color: #2f7dff;
  background: rgba(47, 125, 255, 0.12);
}
.file-drop input[type='file'] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-drop__inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: center;
}
.file-drop__inner span {
  font-weight: 600;
}
.file-drop__meta {
  font-size: 0.8rem;
  color: var(--muted);
}
.file-drop--compact {
  padding: 0.65rem;
  text-align: left;
}
.package-actions {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.6rem 0;
}
.package-meta {
  font-size: 0.8rem;
  color: var(--muted);
}
.package-meta__list {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0;
}
.package-meta__list li + li {
  margin-top: 0.15rem;
}
.package-meta__section {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}
.package-meta__title {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.package-meta__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
}
.package-meta__row {
  border: 1px solid var(--border);
  padding: 0.45rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.8rem;
}
.package-meta__row span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.65rem;
}
.package-meta__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.package-meta__pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
}
.package-meta__empty {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.package-meta__error {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: #ff94a2;
}
.compatibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}
.device-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.tested-chip {
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
}
.tested-chip.is-active {
  border-color: var(--accent);
  background: rgba(47, 125, 255, 0.12);
  color: #fff;
}
.tested-add {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.tested-add input {
  flex: 1;
}
.compatibility-matrix {
  margin-top: 1rem;
  border: 1px dashed var(--border);
  padding: 0.75rem;
}
.compatibility-matrix__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}
.compatibility-matrix__rows {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.compat-row {
  border: 1px solid var(--border);
  padding: 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem;
  position: relative;
}
.compat-row label span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.compat-row .chip-remove {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
}
.coupon-method {
  display: none;
}
.coupon-method.is-visible {
  display: block;
}
.region-picker {
  border: 1px dashed var(--border);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.region-picker__header small {
  color: var(--muted);
  font-size: 0.75rem;
}
.region-picker__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.region-picker__custom {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.region-picker__custom input {
  flex: 1;
  min-width: 200px;
}
.region-picker__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.region-tag {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
}
.region-tag button {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.date-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}
.date-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.date-field__trigger {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  padding: 0.55rem 0.65rem;
  text-align: left;
  cursor: pointer;
}
.date-field__trigger:hover {
  border-color: var(--accent);
}
.date-picker {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.date-picker input {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  padding: 0.55rem 0.65rem;
}
.matrix-empty {
  font-size: 0.85rem;
  color: var(--muted);
}
.coupon-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.2rem 0 0.6rem;
}

.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.dropzone p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.watchface-wizard input[type='text'],
.watchface-wizard input[type='url'],
.watchface-wizard textarea,
.watchface-wizard select {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  color: inherit;
  padding: 0.65rem 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
}

.watchface-wizard input:focus,
.watchface-wizard textarea:focus,
.watchface-wizard select:focus {
  outline: 2px solid rgba(47, 125, 255, 0.35);
  border-color: #2f7dff;
}

.watchface-wizard textarea[data-richtext='true'].is-editor-loading {
  opacity: 0;
  height: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  margin: 0;
  pointer-events: none;
}

.watchface-wizard .rte-loader {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wizard-conditional {
  display: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.wizard-conditional.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.wizard-preview {
  border: 1px solid var(--border);
  padding: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.watchface-wizard .preview-meta {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.watchface-wizard .wizard-import-preview {
  margin-top: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
}

.watchface-wizard .wizard-import-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: end;
}

.watchface-wizard .wizard-import-row .full {
  margin: 0;
}

.watchface-wizard .wizard-import-row__action {
  min-width: 124px;
  justify-content: center;
  white-space: nowrap;
}

.watchface-wizard .wizard-github-preview {
  display: grid;
  gap: 0.25rem;
}

.watchface-wizard .wizard-github-preview strong {
  font-size: 0.98rem;
}

.watchface-wizard .wizard-github-preview .muted {
  margin: 0;
  font-size: 0.84rem;
}

@media (max-width: 760px) {
  .watchface-wizard .wizard-import-row {
    grid-template-columns: 1fr;
  }

  .watchface-wizard .wizard-import-row__action {
    width: 100%;
  }
}

.wizard-preflight {
  border: 1px solid var(--border);
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.9rem;
  background: rgba(255, 255, 255, 0.01);
}

.wizard-preflight__title {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.wizard-preflight__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.wizard-preflight__list li {
  border: 1px solid var(--border);
  padding: 0.45rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  font-size: 0.88rem;
}

.wizard-preflight__list li.is-ok {
  border-color: rgba(57, 215, 166, 0.4);
}

.wizard-preflight__list li.is-missing {
  border-color: rgba(255, 179, 71, 0.45);
}

.preview-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.preview-badges span {
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
}

.wizard-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.wizard-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.85rem;
  margin: 2rem auto 0;
  max-width: 74rem;
  width: 100%;
  padding: 0.75rem 0;
  position: sticky;
  bottom: -1px;
  z-index: 10;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.85), rgba(5, 6, 8, 0.98));
  border-top: 1px solid var(--border);
}

.wizard-controls .button {
  min-width: 140px;
  justify-content: center;
}

.submission-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.ui-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  /* Must sit above any editor popovers/context docks (HugeRTE/TinyMCE can use very high z-index). */
  z-index: 5000;
}
.ui-modal.is-visible {
  display: flex;
}
.ui-modal__dialog {
  background: #050608;
  border: 1px solid var(--border);
  width: min(500px, 100%);
  border-radius: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.ui-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
}
.ui-modal__body {
  padding: 1rem;
  max-height: 70vh;
  overflow: auto;
}

/* Let in-modal dropdown panels float outside the scroll region while open. */
.ui-modal__body.has-floating-popover {
  overflow: visible;
}
.ui-modal__actions {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.ui-modal__actions .button,
.modal-actions .button {
  min-width: 110px;
}
.ui-modal__close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-form {
  display: grid;
  gap: 0.85rem;
}

.modal-tabs {
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  position: relative;
}

.modal-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0;
  cursor: pointer;
  position: relative;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.modal-tab.is-active {
  color: var(--text);
  border-color: transparent;
  background: transparent;
}

.modal-tab-underline {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--accent);
  pointer-events: none;
  transform: translateX(0);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, width;
}

.modal-tab:hover {
  color: var(--text);
}

.modal-pane {
  display: none;
  gap: 0.85rem;
}

.modal-pane[hidden] {
  display: none !important;
}

.modal-pane.is-active {
  display: grid;
  animation: modal-pane-in 0.25s ease;
}

.modal-tab-panels {
  display: grid;
  gap: 0.85rem;
}

@keyframes modal-pane-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-drop {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  background: rgba(5, 6, 8, 0.6);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.modal-drop.is-dragover {
  border-color: var(--accent);
  background: rgba(47, 125, 255, 0.12);
}

.modal-drop.has-file {
  border-color: rgba(47, 125, 255, 0.5);
  background: rgba(47, 125, 255, 0.08);
}

.modal-drop__title {
  color: var(--text);
  font-weight: 600;
}

.modal-drop__hint {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.modal-file {
  display: none;
}

.modal-status {
  font-size: 0.8rem;
  color: var(--muted);
  min-height: 1.2rem;
}

.modal-status.is-error {
  color: #ff8c98;
}

.modal-status.is-success {
  color: #8bd1ff;
}

.modal-status.is-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.modal-status.is-loading::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  animation: modal-spin 0.8s linear infinite;
}

.feedback-upload-tile {
  min-height: 138px;
  padding: 1rem;
  grid-template-columns: 1fr auto;
}

.feedback-upload-tile .upload-cta {
  gap: 0.35rem;
}

.feedback-upload-tile .upload-cta strong {
  font-size: 0.92rem;
}

.feedback-upload-preview {
  justify-content: flex-end;
  gap: 0.6rem;
}

.feedback-upload-preview img {
  width: 72px;
  height: 72px;
  border-radius: 4px;
}

.feedback-upload-preview small {
  max-width: 120px;
}

.feedback-capture-row {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .feedback-fab {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .feedback-upload-tile {
    grid-template-columns: 1fr;
  }

  .feedback-upload-preview {
    justify-content: flex-start;
  }
}

.modal-loader {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-loader__spinner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  animation: modal-spin 0.8s linear infinite;
}

@keyframes modal-spin {
  to {
    transform: rotate(360deg);
  }
}

.modal-library {
  display: grid;
  gap: 0.6rem;
  border: 1px solid var(--border);
  padding: 0.65rem;
  border-radius: var(--radius);
  background: rgba(5, 6, 8, 0.35);
}

.modal-library[hidden] {
  display: none;
}

.modal-library__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text);
}

.modal-library__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.5rem;
}

.library-tile {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #050608;
  cursor: pointer;
  padding: 0;
  text-align: left;
  display: block;
}

.library-tile img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  display: block;
}

.library-tile__placeholder {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.library-tile__meta {
  padding: 0.35rem 0.4rem;
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.library-tile__meta span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.library-delete {
  border: 1px solid rgba(255, 85, 99, 0.45);
  background: rgba(255, 85, 99, 0.08);
  color: #ff8c98;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
}

.library-delete:hover {
  border-color: #ff8c98;
}

.library-tile.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(47, 125, 255, 0.5);
}

.modal-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text);
}

.modal-toggle input {
  accent-color: var(--accent);
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.modal-input {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #040506;
  color: var(--text);
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
}

.modal-input:where(select) {
  appearance: none;
  padding-right: 2.6rem;
  color-scheme: dark;
  background-image:
    linear-gradient(45deg, transparent 50%, #7584a3 50%),
    linear-gradient(135deg, #7584a3 50%, transparent 50%),
    linear-gradient(90deg, transparent 0%, transparent 70%, rgba(255,255,255,0.04) 70%);
  background-position:
    calc(100% - 1.45rem) 50%,
    calc(100% - 1.1rem) 50%,
    calc(100% - 2.2rem) 0;
  background-size: 6px 6px, 6px 6px, 1px 100%;
  background-repeat: no-repeat;
}

.modal-input:where(select) option {
  background: #0c0f16;
  color: #e4e9f5;
}

.modal-row--color {
  grid-template-columns: minmax(0, 1fr) 64px;
  align-items: center;
}

.modal-color-swatch {
  width: 64px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--swatch, #0b1015);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.modal-color-swatch.is-empty {
  background:
    linear-gradient(135deg, rgba(255, 85, 99, 0.85), rgba(255, 85, 99, 0.1)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 10px, rgba(255, 255, 255, 0.02) 10px 20px);
}

.modal-color-swatch:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.modal-color-swatch:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 80%, #ffffff);
  outline-offset: 2px;
}

.modal-hint {
  font-size: 0.75rem;
  color: var(--muted);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.poll-builder__options {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.poll-builder__option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.poll-builder__option .button {
  white-space: nowrap;
}

.poll-library {
  display: grid;
  gap: 0.65rem;
}

.poll-library__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text);
}

.poll-library__grid {
  display: grid;
  gap: 0.6rem;
}

.poll-card {
  border: 1px solid var(--border);
  padding: 0.75rem;
  background: rgba(5, 6, 8, 0.65);
  display: grid;
  gap: 0.35rem;
}

.poll-card__meta {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.poll-card__detail {
  font-size: 0.8rem;
  color: var(--muted);
}

.poll-card__actions {
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
}

.poll-card.is-closed {
  border-color: rgba(255, 140, 152, 0.4);
}

.poll-insights__filters {
  justify-content: flex-end;
}

.poll-insights__stats {
  margin-top: 1.1rem;
}

.poll-insights__list {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.9rem;
}

.poll-insight-card {
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(8, 12, 18, 0.95), rgba(4, 6, 9, 0.92));
  padding: 1rem 1.05rem;
  display: grid;
  gap: 0.85rem;
}

.poll-insight-card.is-closed {
  border-color: rgba(255, 140, 152, 0.35);
}

.poll-insight-card__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.poll-insight-card__eyebrow {
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.7rem;
  color: var(--muted);
}

.poll-insight-card__head h3 {
  margin: 0;
}

.poll-insight-card__head .muted {
  margin-top: 0.35rem;
}

.poll-insight-card__meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.poll-insight-card__options {
  display: grid;
  gap: 0.55rem;
}

.poll-insight-option {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 8, 12, 0.72);
  padding: 0.55rem 0.65rem;
  display: grid;
  gap: 0.3rem;
}

.poll-insight-option__row {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.poll-insight-option__row strong {
  color: var(--text);
}

.poll-insight-option__meter {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.poll-insight-option__meter span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #54ffe6);
}

.poll-detail__grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  align-items: start;
}

@media (min-width: 980px) {
  .poll-detail__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "graph options controls"
      "embeds events controls";
  }
  .poll-detail__card--graph { grid-area: graph; }
  .poll-detail__card--options { grid-area: options; }
  .poll-detail__card--controls { grid-area: controls; }
  .poll-detail__card--embeds { grid-area: embeds; }
  .poll-detail__card--events { grid-area: events; }
}

.poll-detail__card {
  border: 1px solid var(--border);
  background: rgba(5, 6, 8, 0.72);
  padding: 1rem 1.05rem;
  display: grid;
  gap: 0.85rem;
  min-height: 120px;
}

.poll-detail__card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.poll-detail__card-head h3 {
  margin: 0;
  font-size: 1rem;
}

.poll-detail__graph {
  position: relative;
}

.poll-detail__graph svg {
  width: 100%;
  height: auto;
  display: block;
}

.poll-spark__area {
  fill: url(#pollSparkFill);
  stroke: none;
}

.poll-spark__line {
  fill: none;
  stroke: rgba(47, 125, 255, 0.9);
  stroke-width: 2;
}

.poll-spark__guide {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: 0;
}

.poll-spark__dot {
  fill: transparent;
  stroke: transparent;
}

.poll-spark__dot.is-active {
  fill: rgba(47, 125, 255, 0.18);
  stroke: rgba(47, 125, 255, 0.55);
}

.poll-detail__graph:hover .poll-spark__dot {
  fill: rgba(47, 125, 255, 0.12);
  stroke: rgba(47, 125, 255, 0.35);
}

.poll-spark-tooltip {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 6, 8, 0.96);
  color: var(--text);
  font-size: 0.75rem;
  white-space: nowrap;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45);
}

.poll-spark-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(5, 6, 8, 0.96);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.poll-spark__legend {
  margin-top: 0.6rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.poll-detail__controls {
  display: grid;
  gap: 0.75rem;
}

.poll-detail__control-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.poll-detail__label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  width: 100%;
}

.poll-detail__expires {
  display: grid;
  gap: 0.55rem;
}

.poll-detail__expires-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.poll-detail__embeds,
.poll-detail__events {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.poll-detail__embeds li {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.poll-detail__events li {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 6, 8, 0.5);
  padding: 0.75rem 0.8rem;
  display: grid;
  gap: 0.5rem;
}

.poll-detail__event-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: baseline;
}

.poll-detail__events pre {
  margin: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.55rem;
  overflow-x: auto;
  font-size: 0.8rem;
}

.modal-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.color-picker {
  display: grid;
  gap: 0.75rem;
}

.color-picker__row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
}

.color-picker__preview {
  width: 64px;
  height: 44px;
  border: 1px solid var(--border);
  background: #0b1015;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.color-picker__hex .modal-input {
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.color-picker__sliders {
  display: grid;
  gap: 0.55rem;
}

.color-picker__modes {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.color-picker__pane {
  display: none;
  gap: 0.75rem;
}

.color-picker__pane.is-active {
  display: grid;
}

.color-picker__spectrum {
  position: relative;
  height: 180px;
  border: 1px solid var(--border);
  background: linear-gradient(90deg, #fff, hsl(var(--hue, 220), 100%, 50%));
  overflow: hidden;
  cursor: crosshair;
}

.color-picker__spectrum::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #000, transparent);
}

.color-picker__spectrum-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4);
  transform: translate(-7px, -7px);
  pointer-events: none;
  left: 50%;
  top: 50%;
}

.color-picker__slider {
  width: 100%;
  accent-color: var(--accent);
}

.color-picker__swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
  gap: 0.4rem;
}

.color-swatch {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--swatch);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.color-swatch.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(47, 125, 255, 0.4);
}

.color-swatch:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.table-picker {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
}

.table-picker__grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(16px, 1fr));
  gap: 4px;
  width: min(320px, 100%);
  padding: 0.55rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(5, 6, 8, 0.55);
}

.table-cell {
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.table-cell.is-active {
  border-color: rgba(47, 125, 255, 0.6);
  background: rgba(47, 125, 255, 0.35);
}

.table-picker__label {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.table-picker__tip {
  font-size: 0.72rem;
  color: rgba(214, 221, 230, 0.6);
  text-align: center;
  max-width: 260px;
}

.faceoff-rte__editor.is-dragging {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(47, 125, 255, 0.4);
}

.account-landing .hero__stats {
  margin-top: 2rem;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.resource-section {
  border: 1px solid var(--border);
  background: #050608;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.resource-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.resource-section li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.6rem;
}

.resource-section li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.resource-directory-panel .section-heading p,
.resource-guides-panel .section-heading p {
  margin: 0;
  color: var(--muted);
  max-width: 58rem;
}

.resource-directory-panel .section-heading,
.resource-guides-panel .section-heading {
  flex-direction: column;
  align-items: flex-start;
}

.resource-directory {
  margin-top: 1.8rem;
  display: grid;
  gap: 1.15rem;
}

.resource-directory-group {
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(47, 125, 255, 0.06), transparent 30%),
    rgba(5, 6, 8, 0.92);
  padding: 1.05rem 1.1rem 1.15rem;
}

.resource-directory-group h3 {
  margin: 0;
  font-size: 1.15rem;
}

.resource-directory-group header p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.resource-directory-list {
  list-style: none;
  margin: 1.05rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.resource-directory-list li {
  padding: 0;
  border: 0;
  background: transparent;
  display: block;
}

.resource-directory-list li:last-child {
  border-bottom: 0;
}

.resource-directory-item {
  padding: 0.78rem 0.82rem;
  border: 1px solid color-mix(in srgb, var(--border) 78%, #ffffff 22%);
  background: rgba(2, 6, 14, 0.56);
  display: grid;
  gap: 0.38rem;
  align-content: start;
  min-height: 100%;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-directory-item:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: rgba(47, 125, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.resource-directory-item:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 78%, #ffffff 22%);
  outline-offset: 2px;
}

.resource-directory-item:hover .resource-directory-link {
  color: #ffffff;
  border-color: color-mix(in srgb, var(--accent) 70%, #ffffff 10%);
}

.resource-directory-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  font-size: 1.03rem;
  font-weight: 700;
  color: #e2ecff;
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.resource-directory-link::after {
  content: "→";
  margin-left: 0.35rem;
  font-size: 0.9em;
  opacity: 0.65;
  transform: translateY(1px);
}

.resource-directory-link:hover {
  color: #ffffff;
  border-color: color-mix(in srgb, var(--accent) 70%, #ffffff 10%);
}

.resource-directory-list li p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 56ch;
}

.resource-latest-grid {
  margin-top: 1.5rem;
}

.resource-latest-card {
  padding: 1.05rem;
  border-color: color-mix(in srgb, var(--border) 80%, #ffffff 20%);
  background: rgba(5, 6, 8, 0.88);
}

.resource-latest-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.resource-latest-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.resource-latest-card .link {
  margin-top: 0.15rem;
}

@media (max-width: 980px) {
  .resource-directory-list {
    grid-template-columns: 1fr;
  }
}

.article-card {
  border: 1px solid var(--border);
  padding: 1rem;
  background: #050608;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.auth-hero {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 1fr;
}

.auth-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border: 1px solid var(--border);
  background: #050608;
  padding: 1rem;
}

.auth-highlights li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.auth-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.auth-card {
  border: 1px solid var(--border);
  background: #050608;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-card ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0;
  color: var(--muted);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.2rem;
}

.device-card {
  border: 1px solid var(--border);
  background: #050608;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.device-card header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.device-samples {
  margin-top: 0.5rem;
}

.sample-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sample-row a {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.sample-row img {
  width: 72px;
  height: 72px;
  border: 1px solid var(--border);
  object-fit: cover;
  border-radius: var(--radius);
}

.device-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.import-form {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.import-form label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.device-thumb {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-bottom: 0.6rem;
}

.smart-search {
  position: relative;
}

.smart-search input {
  width: 100%;
}
.smart-search input:focus {
  outline: 1px solid var(--accent);
}

.smart-search__panel {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  right: 0;
  border: 1px solid var(--border);
  background: #050608;
  z-index: 10;
  max-height: 320px;
  overflow-y: auto;
  display: none;
}

.smart-search__panel.is-visible {
  display: block;
}

.smart-search__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.smart-search__item:last-child {
  border-bottom: 0;
}

.smart-search__item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.smart-search__meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.smart-search__icon {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.faceoff-rte {
  border: 1px solid var(--border);
  background: #050608;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.6rem;
}

.faceoff-rte__textarea {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.faceoff-rte__toolbar {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  position: sticky;
  top: calc(var(--sticky-top, 0px) + 0.4rem);
  z-index: 15;
  background: #050608;
  padding: 0.4rem;
  margin: -0.4rem -0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.faceoff-rte__metrics {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(11, 16, 21, 0.7);
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.faceoff-rte__metrics span {
  white-space: nowrap;
}

.faceoff-rte__group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(11, 16, 21, 0.8);
}

.faceoff-rte__button {
  background: #0b1015;
  border: 1px solid transparent;
  color: var(--text);
  font-size: 0.82rem;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.faceoff-rte__button:hover {
  border-color: var(--border);
}

.faceoff-rte__menu {
  position: relative;
}

.faceoff-rte__menu-toggle {
  padding-right: 0.45rem;
}

.faceoff-rte__caret {
  font-size: 0.7rem;
  opacity: 0.7;
}

.faceoff-rte__menu-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 180px;
  background: #050608;
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 0.35rem;
  display: none;
  z-index: 40;
}

.faceoff-rte__menu.is-open .faceoff-rte__menu-panel {
  display: grid;
  gap: 0.2rem;
}

.faceoff-rte__menu-item {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  text-align: left;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
}

.faceoff-rte__menu-item:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.faceoff-rte__editor {
  min-height: 160px;
  border: 1px dashed var(--border);
  padding: 0.6rem;
  outline: none;
  overflow: visible;
}

.faceoff-rte__editor h1,
.faceoff-rte__editor h2,
.faceoff-rte__editor h3,
.faceoff-rte__editor h4,
.faceoff-rte__editor h5,
.faceoff-rte__editor h6 {
  margin: 1rem 0 0.5rem;
  color: var(--text);
}

.faceoff-rte__editor p {
  margin: 0.75rem 0;
}

.faceoff-rte__editor blockquote {
  margin: 1rem 0;
  padding: 0.6rem 0.9rem;
  border-left: 3px solid var(--accent);
  background: rgba(47, 125, 255, 0.08);
}

.faceoff-rte__editor a {
  color: var(--accent);
  text-decoration: underline;
}

.faceoff-rte__editor ul,
.faceoff-rte__editor ol {
  margin: 0.75rem 0 0.75rem 1.2rem;
}

.faceoff-rte__editor li {
  margin: 0.35rem 0;
}

.faceoff-rte__editor pre,
.faceoff-rte__editor code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.faceoff-rte__editor :not(pre) > code {
  background: rgba(5, 6, 8, 0.9);
  border: 1px solid var(--border);
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius);
}

.faceoff-rte__editor pre {
  background: rgba(5, 6, 8, 0.9);
  border: 1px solid var(--border);
  padding: 0.8rem;
  border-radius: var(--radius);
  overflow-x: auto;
  tab-size: 2;
}

.faceoff-rte__editor table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
  --table-border-color: var(--border);
  --table-border-style: solid;
  --table-border-width: 1px;
  --table-bg-color: transparent;
  border-style: var(--table-border-style, solid);
  border-color: var(--table-border-color, var(--border));
  border-width: var(--table-border-width, 1px);
}

.faceoff-rte__editor .table-block {
  margin: 1rem 0;
  position: relative;
  max-width: 100%;
}

.faceoff-rte__editor .table-block.is-active,
.faceoff-rte__editor .table-block:hover {
  margin-bottom: calc(1rem + var(--table-controls-height, 2rem) + 0.3rem);
}

.faceoff-rte__editor .table-block table {
  margin: 0;
}

.faceoff-rte__editor .table-shell {
  position: relative;
  padding-bottom: 0;
  overflow: visible;
  text-align: left;
}

.faceoff-rte__editor .table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  display: inline-block;
  max-width: 100%;
}

.faceoff-rte__editor .table-controls {
  position: absolute;
  left: 50%;
  top: 100%;
  bottom: auto;
  transform: translateX(-50%) translateY(0.25rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  background: rgba(5, 6, 8, 0.92);
  border: 1px solid var(--border);
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.15s ease, transform 0.15s ease;
  max-width: min(100%, 560px);
  margin: 0 auto;
}

.faceoff-rte__editor .table-block.is-active .table-controls,
.faceoff-rte__editor .table-block:hover .table-controls {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0.15rem);
}

.faceoff-rte__editor .table-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}

.faceoff-rte__editor .table-btn:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.faceoff-rte__editor .table-delete {
  color: #ff8c98;
  border-color: rgba(255, 85, 99, 0.4);
  background: rgba(255, 85, 99, 0.08);
}

.faceoff-rte__editor .table-menu {
  position: relative;
}

.faceoff-rte__editor .table-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.faceoff-rte__editor .table-caret {
  font-size: 0.65rem;
  opacity: 0.65;
}

.faceoff-rte__editor .table-menu__panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  bottom: auto;
  min-width: 170px;
  background: #050608;
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 0.35rem;
  display: none;
  z-index: 25;
}

.faceoff-rte__editor .table-menu.is-open .table-menu__panel {
  display: grid;
  gap: 0.2rem;
}

.faceoff-rte__editor .table-menu__item {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  text-align: left;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.75rem;
}

.faceoff-rte__editor .table-menu__item:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.faceoff-rte__editor .table-menu__item.is-danger {
  color: #ff8c98;
}

.faceoff-rte__editor .table-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 0.15rem;
}

.faceoff-rte__editor .table-resize {
  position: absolute;
  right: 0.2rem;
  bottom: 0.2rem;
  width: 16px;
  height: 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(5, 6, 8, 0.9);
  cursor: ew-resize;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  display: none;
}

.faceoff-rte__editor .table-block.is-active .table-resize,
.faceoff-rte__editor .table-block:hover .table-resize {
  opacity: 1;
  pointer-events: auto;
}

.faceoff-rte__editor .table-resize::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  margin: 3px auto;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  transform: rotate(-45deg);
}

.faceoff-rte__editor .table-block.align-left {
  margin: 0.6rem 0;
}

.faceoff-rte__editor .table-block.align-center {
  margin: 0.9rem 0;
  clear: both;
}

.faceoff-rte__editor .table-block.align-right {
  margin: 0.6rem 0;
}

.faceoff-rte__editor .table-block.align-left .table-scroll {
  float: left;
  margin: 0.2rem 1rem 0.6rem 0;
  width: auto;
  max-width: 60%;
}

.faceoff-rte__editor .table-block.align-right .table-scroll {
  float: right;
  margin: 0.2rem 0 0.6rem 1rem;
  width: auto;
  max-width: 60%;
}

.faceoff-rte__editor .table-block.align-center .table-shell {
  text-align: center;
}

.faceoff-rte__editor .table-block.align-center .table-scroll {
  float: none;
  margin: 0 auto;
}

.faceoff-rte__editor .table-block.align-left table,
.faceoff-rte__editor .table-block.align-right table {
  width: auto;
  max-width: 100%;
}

.faceoff-rte__editor table.table--full {
  width: 100%;
}

.faceoff-rte__editor table.table--w-40 { width: 40%; }
.faceoff-rte__editor table.table--w-45 { width: 45%; }
.faceoff-rte__editor table.table--w-50 { width: 50%; }
.faceoff-rte__editor table.table--w-55 { width: 55%; }
.faceoff-rte__editor table.table--w-60 { width: 60%; }
.faceoff-rte__editor table.table--w-65 { width: 65%; }
.faceoff-rte__editor table.table--w-70 { width: 70%; }
.faceoff-rte__editor table.table--w-75 { width: 75%; }
.faceoff-rte__editor table.table--w-80 { width: 80%; }
.faceoff-rte__editor table.table--w-85 { width: 85%; }
.faceoff-rte__editor table.table--w-90 { width: 90%; }
.faceoff-rte__editor table.table--w-95 { width: 95%; }
.faceoff-rte__editor table.table--w-100 { width: 100%; }

.faceoff-rte__editor table.table--compact th,
.faceoff-rte__editor table.table--compact td {
  padding: 0.35rem 0.5rem;
}

.faceoff-rte__editor table.table--spacious th,
.faceoff-rte__editor table.table--spacious td {
  padding: 0.8rem 1rem;
}

.faceoff-rte__editor table.table--strong th,
.faceoff-rte__editor table.table--strong td {
  border-width: 2px;
}

.faceoff-rte__editor table.table--minimal th,
.faceoff-rte__editor table.table--minimal td {
  border-color: rgba(255, 255, 255, 0.08);
}

.faceoff-rte__editor table.table--border-dashed {
  --table-border-style: dashed;
}

.faceoff-rte__editor table.table--border-dotted {
  --table-border-style: dotted;
}

.faceoff-rte__editor table.table--border-muted {
  --table-border-color: rgba(255, 255, 255, 0.12);
}

.faceoff-rte__editor table.table--border-accent {
  --table-border-color: rgba(47, 125, 255, 0.55);
}

.faceoff-rte__editor table.table--bg-muted {
  --table-bg-color: rgba(255, 255, 255, 0.03);
}

.faceoff-rte__editor table.table--bg-panel {
  --table-bg-color: rgba(5, 6, 8, 0.55);
}

.faceoff-rte__editor table.table--bg-accent {
  --table-bg-color: rgba(47, 125, 255, 0.12);
}

.faceoff-rte__editor td.cell-align-left,
.faceoff-rte__editor th.cell-align-left,
.faceoff-rte__editor td.col-align-left,
.faceoff-rte__editor th.col-align-left {
  text-align: left;
}

.faceoff-rte__editor td.cell-align-center,
.faceoff-rte__editor th.cell-align-center,
.faceoff-rte__editor td.col-align-center,
.faceoff-rte__editor th.col-align-center {
  text-align: center;
}

.faceoff-rte__editor td.cell-align-right,
.faceoff-rte__editor th.cell-align-right,
.faceoff-rte__editor td.col-align-right,
.faceoff-rte__editor th.col-align-right {
  text-align: right;
}

.faceoff-rte__editor td.cell-valign-top,
.faceoff-rte__editor th.cell-valign-top,
.faceoff-rte__editor td.col-valign-top,
.faceoff-rte__editor th.col-valign-top {
  vertical-align: top;
}

.faceoff-rte__editor td.cell-valign-middle,
.faceoff-rte__editor th.cell-valign-middle,
.faceoff-rte__editor td.col-valign-middle,
.faceoff-rte__editor th.col-valign-middle {
  vertical-align: middle;
}

.faceoff-rte__editor td.cell-valign-bottom,
.faceoff-rte__editor th.cell-valign-bottom,
.faceoff-rte__editor td.col-valign-bottom,
.faceoff-rte__editor th.col-valign-bottom {
  vertical-align: bottom;
}

.faceoff-rte__editor td.cell-bg-muted,
.faceoff-rte__editor th.cell-bg-muted,
.faceoff-rte__editor td.col-bg-muted,
.faceoff-rte__editor th.col-bg-muted {
  background: rgba(255, 255, 255, 0.03);
}

.faceoff-rte__editor td.cell-bg-panel,
.faceoff-rte__editor th.cell-bg-panel,
.faceoff-rte__editor td.col-bg-panel,
.faceoff-rte__editor th.col-bg-panel {
  background: rgba(5, 6, 8, 0.55);
}

.faceoff-rte__editor td.cell-bg-accent,
.faceoff-rte__editor th.cell-bg-accent,
.faceoff-rte__editor td.col-bg-accent,
.faceoff-rte__editor th.col-bg-accent {
  background: rgba(47, 125, 255, 0.12);
}

.faceoff-rte__editor tr.row-align-left > th,
.faceoff-rte__editor tr.row-align-left > td {
  text-align: left;
}

.faceoff-rte__editor tr.row-align-center > th,
.faceoff-rte__editor tr.row-align-center > td {
  text-align: center;
}

.faceoff-rte__editor tr.row-align-right > th,
.faceoff-rte__editor tr.row-align-right > td {
  text-align: right;
}

.faceoff-rte__editor tr.row-valign-top > th,
.faceoff-rte__editor tr.row-valign-top > td {
  vertical-align: top;
}

.faceoff-rte__editor tr.row-valign-middle > th,
.faceoff-rte__editor tr.row-valign-middle > td {
  vertical-align: middle;
}

.faceoff-rte__editor tr.row-valign-bottom > th,
.faceoff-rte__editor tr.row-valign-bottom > td {
  vertical-align: bottom;
}

.faceoff-rte__editor tr.row-bg-muted > th,
.faceoff-rte__editor tr.row-bg-muted > td {
  background: rgba(255, 255, 255, 0.03);
}

.faceoff-rte__editor tr.row-bg-panel > th,
.faceoff-rte__editor tr.row-bg-panel > td {
  background: rgba(5, 6, 8, 0.55);
}

.faceoff-rte__editor tr.row-bg-accent > th,
.faceoff-rte__editor tr.row-bg-accent > td {
  background: rgba(47, 125, 255, 0.12);
}

.faceoff-rte__editor td.table-cell-selected,
.faceoff-rte__editor th.table-cell-selected {
  background: rgba(47, 125, 255, 0.18);
  outline: 1px solid rgba(47, 125, 255, 0.65);
}

.faceoff-rte__editor img {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: block;
  margin: 0.6rem 0;
}

.faceoff-rte__editor .media-block {
  position: relative;
  display: block;
  margin: 0.9rem 0;
  max-width: 100%;
}

.faceoff-rte__editor .media-block img {
  width: 100%;
  height: auto;
  display: block;
}

.faceoff-rte__editor .media-block.is-small {
  max-width: 220px;
}

.faceoff-rte__editor .media-block.is-medium {
  max-width: 420px;
}

.faceoff-rte__editor .media-block.is-large {
  max-width: 680px;
}

.faceoff-rte__editor .media-block.is-full {
  max-width: 100%;
}

.faceoff-rte__editor .media-block.is-inline {
  display: inline-block;
  margin: 0 0.5rem;
  vertical-align: middle;
}

.faceoff-rte__editor .media-block.align-left {
  margin-right: auto;
}

.faceoff-rte__editor .media-block.align-center {
  margin-left: auto;
  margin-right: auto;
}

.faceoff-rte__editor .media-block.align-right {
  margin-left: auto;
}

.faceoff-rte__editor .media-controls {
  position: absolute;
  right: 0.55rem;
  top: 0.55rem;
  display: flex;
  gap: 0.3rem;
  background: rgba(5, 6, 8, 0.9);
  border: 1px solid var(--border);
  padding: 0.25rem 0.35rem;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.faceoff-rte__editor .media-block.is-active .media-controls,
.faceoff-rte__editor .media-block:hover .media-controls {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.faceoff-rte__editor .media-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  font-size: 0.72rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  cursor: pointer;
}

.faceoff-rte__editor .media-btn:hover {
  border-color: var(--border);
}

.faceoff-rte__editor .media-btn.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.faceoff-rte__editor .media-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 0.1rem;
}

.faceoff-rte__editor .media-delete {
  color: #ff8c98;
  border-color: rgba(255, 85, 99, 0.4);
}

.faceoff-rte__editor .media-caption,
.faceoff-rte__editor .table-caption {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 3px solid rgba(255, 255, 255, 0.18);
  padding: 0.35rem 0.4rem 0.35rem 0.7rem;
  min-height: 1.6rem;
  cursor: text;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.faceoff-rte__editor .table-caption {
  clear: both;
}

.faceoff-rte__editor .table-block.is-active .table-caption,
.faceoff-rte__editor .table-block:hover .table-caption {
  margin-top: calc(var(--table-controls-height, 2rem) + 0.35rem);
}

.faceoff-rte__editor .media-caption:empty::before,
.faceoff-rte__editor .table-caption:empty::before {
  content: attr(data-placeholder);
  color: rgba(214, 221, 230, 0.45);
}

.faceoff-rte__editor .table-caption.is-hidden {
  display: none;
}

.faceoff-rte__editor .media-caption:hover,
.faceoff-rte__editor .table-caption:hover {
  border-left-color: rgba(47, 125, 255, 0.5);
  color: var(--text);
}

.faceoff-rte__editor .media-caption:focus,
.faceoff-rte__editor .table-caption:focus {
  outline: none;
  border-left-color: var(--accent);
  color: var(--text);
}


.faceoff-rte__editor th,
.faceoff-rte__editor td {
  border-width: var(--table-border-width, 1px);
  border-style: var(--table-border-style, solid);
  border-color: var(--table-border-color, var(--border));
  padding: 0.45rem 0.6rem;
  text-align: left;
  background-color: var(--table-bg-color, transparent);
}

.faceoff-rte__editor thead th {
  background: rgba(5, 6, 8, 0.75);
  color: var(--text);
  font-weight: 600;
}

.faceoff-rte__editor hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

.faceoff-rte__editor mark {
  background: rgba(255, 214, 10, 0.2);
  padding: 0.05rem 0.2rem;
  border-radius: 4px;
}

.faceoff-rte__editor kbd {
  background: rgba(5, 6, 8, 0.9);
  border: 1px solid var(--border);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  font-size: 0.85em;
}

.faceoff-rte__editor .task-list-item {
  list-style: none;
}

.faceoff-rte__editor .task-list-item-checkbox {
  margin-right: 0.45rem;
}

.wiki-hero .hero__stats {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.import-form {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.import-form label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.device-thumb {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-bottom: 0.6rem;
}

.compare-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--border);
  padding: 0.75rem;
  text-align: left;
}

.compare-table th {
  width: 180px;
  color: var(--muted);
  font-weight: 500;
}

.saved-searches .resource-list:not(.account-search-list) {
  list-style: none;
  padding: 0;
  margin: 0;
}

.saved-searches .resource-list:not(.account-search-list) li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.saved-searches .resource-list:not(.account-search-list) li form {
  margin: 0;
}

.saved-searches .resource-list li {
  align-items: center;
  gap: 1rem;
}

.comment-thread {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 880px;
  margin: 0 auto;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.comment-form textarea,
.comment-reply textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #050608;
  color: var(--text);
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius);
}

.comment {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  width: 100%;
}

.comment__main {
  display: flex;
  gap: 0.8rem;
  width: 100%;
}

.comment__vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.comment-vote {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.comment-vote.is-active {
  border-color: var(--text);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.comment-score {
  font-weight: 600;
}

.comment__body {
  flex: 1;
}

.comment__meta {
  display: flex;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.comment__meta .comment-author {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.comment__timestamp {
  font-size: 0.8rem;
}

.comment__collapse-indicator {
  font-size: 0.75rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.comment__actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.comment__children {
  border-left: 2px solid var(--border);
  margin-left: 3rem;
  padding-left: 1rem;
}

.comment-reply {
  display: none;
  margin-top: 0.8rem;
}

.comment-reply.is-visible {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comment__text {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

.comment.is-collapsed .comment__collapse-indicator {
  transform: rotate(-90deg);
}

.comment[data-comment-collapsed="true"] {
  padding-bottom: 0.25rem;
  margin-bottom: 0.25rem;
}

.comment[data-comment-collapsed="true"] .comment__text,
.comment[data-comment-collapsed="true"] .comment__actions,
.comment[data-comment-collapsed="true"] .comment-reply,
.comment[data-comment-collapsed="true"] [data-comment-children],
.comment[data-comment-collapsed="true"] .comment-score,
.comment[data-comment-collapsed="true"] .comment-vote {
  display: none;
}

.comment[data-comment-collapsed="true"] .comment__main {
  gap: 0.4rem;
  align-items: center;
}

.comment[data-comment-collapsed="true"] .comment__collapse-indicator {
  transform: rotate(-90deg);
}

.comment:target,
.comment.is-highlighted {
  background: rgba(63, 126, 248, 0.08);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px #3f7ef8;
}

.comment-popover {
  position: fixed;
  min-width: 220px;
  background: #050608;
  border: 1px solid var(--border);
  padding: 0.8rem;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  z-index: 50;
  display: none;
}

.comment-popover.is-visible {
  display: block;
}

.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: rgba(5, 6, 8, 0.92);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  pointer-events: none;
  z-index: 160;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}

.scroll-top:active {
  transform: translateY(-1px) scale(0.96);
}

.scroll-top.is-pressed {
  animation: scroll-pop 0.25s ease;
}

.scroll-top__icon {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.scroll-top:hover .scroll-top__icon {
  transform: translateY(-2px);
}

@keyframes scroll-pop {
  0% {
    transform: translateY(-1px) scale(0.96);
  }
  50% {
    transform: translateY(-6px) scale(1.02);
  }
  100% {
    transform: translateY(-4px) scale(1);
  }
}

@media (max-width: 900px) {
  .article-hero__shell {
    grid-template-columns: 1fr;
  }

  .article-hero__meta {
    padding: 0.85rem 0.9rem;
  }

  .article-meta__grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem 0.8rem;
  }

  .article-meta__label {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-meta__actions {
    display: none;
  }
  .article-dock {
    display: block;
  }
  .article-panel {
    padding-bottom: calc(3.5rem + var(--dock-height));
  }

  .article-body {
    max-width: 100%;
  }

  .article-related__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 78%);
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
  }

  .article-related__card {
    scroll-snap-align: start;
  }

  .scroll-top {
    bottom: calc(16px + var(--dock-height));
    right: 16px;
  }

  .comment-thread {
    padding-bottom: calc(4rem + var(--dock-height));
  }
}

@media (max-width: 720px) {
  .comment__main {
    flex-direction: column;
  }

  .comment__vote {
    flex-direction: row;
    justify-content: flex-start;
  }

  .comment__meta {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .comment__actions {
    flex-wrap: wrap;
  }

  .comment__children {
    margin-left: 1.2rem;
    padding-left: 0.75rem;
  }

  .scroll-top {
    right: 16px;
    bottom: calc(16px + var(--dock-height));
  }
}

.comment-popover__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.comment-popover__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
  background: #0b1015;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.comment-popover__name {
  font-weight: 600;
  margin: 0;
}

.comment-popover__username {
  font-size: 0.85rem;
  color: var(--muted);
}

.comment-popover__meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.app-toast {
  position: fixed;
  bottom: calc(24px + var(--dock-height));
  right: 24px;
  background: rgba(5, 6, 8, 0.95);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 70;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.auth-hero-shell {
  padding: 3rem 0 4rem;
  background: radial-gradient(circle at 10% 10%, rgba(63, 126, 248, 0.18), transparent 50%);
}

.auth-shell {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.auth-copy h1 {
  margin-bottom: 1rem;
}

.auth-pillars {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1rem;
}

.auth-pillars li {
  border: 1px solid var(--border);
  padding: 1rem;
  background: rgba(5, 6, 8, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-pillars strong {
  font-size: 0.95rem;
}

.auth-pillars span {
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-panel {
  border: 1px solid var(--border);
  padding: 2rem;
  background: rgba(5, 6, 8, 0.9);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  background: #050608;
  color: var(--text);
}

.auth-passkey {
  display: grid;
  gap: 0.4rem;
}

.auth-passkey p {
  margin: 0;
}

.auth-inline {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-inline input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
}

.creator-banner {
  position: relative;
  background: linear-gradient(120deg, rgba(63, 126, 248, 0.12), rgba(0, 0, 0, 0.4));
  overflow: hidden;
}

.creator-banner__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--creator-accent, #3f7ef8) 40%, transparent), transparent 65%);
  opacity: 0.4;
}

.creator-banner__grid {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: start;
  padding: 3rem 0;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.creator-banner__identity {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  align-items: center;
}

.creator-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--creator-accent, #3f7ef8);
  object-fit: cover;
}

.creator-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.creator-meta span {
  font-size: 0.8rem;
  color: var(--muted);
}

.creator-meta strong {
  display: block;
  font-size: 1.3rem;
}

.creator-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.creator-banner__panel {
  background: rgba(5, 6, 8, 0.8);
  border: 1px solid color-mix(in srgb, var(--creator-accent, #3f7ef8) 40%, var(--border));
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  min-height: 100%;
}

.creator-story-block h2 {
  margin-top: 0;
}

.creator-banner__cta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.owner-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.8rem;
}

.creator-signals {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.creator-signals span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.creator-signals strong {
  font-size: 1.1rem;
}



/* Wizard enhancements */
.wizard-track__item {
  position: relative;
}
.wizard-track__item.is-complete::after {
  content: "\2713";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #2f7dff;
  font-size: 0.85rem;
}
.wizard-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
}
.wizard-progress small {
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--muted);
}
.autosave-indicator {
  border: 1px solid var(--border);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #a5c7ff;
  background: rgba(47, 125, 255, 0.1);
}
.wizard-errors {
  margin-bottom: 1rem;
  border: 1px solid #ff5563;
  background: rgba(255, 85, 99, 0.1);
  color: #ff94a2;
  padding: 0.75rem 1rem;
}
.field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.field-error {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #ff94a2;
}
.group-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #ff94a2;
}
[data-require-group].has-error {
  border: 1px solid rgba(255, 85, 99, 0.35);
  padding: 0.6rem;
}
.field-invalid {
  border-color: #ff5563 !important;
}
.category-extend {
  margin-top: 0;
  border: 1px solid var(--border);
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.005);
}
.category-extend__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.category-extend__header span {
  color: var(--muted);
  font-size: 0.78rem;
}
.category-extend__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.01);
}
.category-extend__body[hidden] {
  display: none;
}
.category-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
}
.category-add {
  display: flex;
  gap: 0.5rem;
}
.category-add input {
  flex: 1;
}
.category-pills,
.tag-custom-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag-custom-chip {
  border: 1px solid var(--border);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}
.chip-remove {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
}
.tag-input {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}
.tag-input input {
  flex: 1;
  min-width: 220px;
}
.tag-input .button {
  flex: 0 0 auto;
}
.tag-custom {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.tag-custom .chip-option {
  align-self: flex-start;
}
.language-picker {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.language-picker__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.language-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.language-controls input[type="search"] {
  flex: 1;
  min-width: 220px;
}
.language-controls button[disabled] {
  opacity: 0.4;
}
.language-presets {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.language-presets span {
  font-size: 0.8rem;
  color: var(--muted);
}
.language-custom {
  border: 1px dashed var(--border);
  padding: 0.65rem;
}
.language-custom__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.language-actions {
  display: flex;
  gap: 0.4rem;
}
.button.xs {
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
}
.tag-pills label {
  border: 1px solid var(--border);
  padding: 0.15rem 0.4rem;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
  border-radius: 999px;
}
.tag-pills label:hover {
  border-color: #2f7dff;
}
.tag-pills label input {
  appearance: none;
  position: absolute;
  inset: 0;
  opacity: 0;
}
.tag-pills label span {
  padding: 0.2rem 0.45rem;
}
.tag-pills label.is-active {
  border-color: var(--accent);
  background: linear-gradient(120deg, rgba(47, 125, 255, 0.22), rgba(47, 125, 255, 0.06));
  box-shadow: 0 0 0 1px rgba(47, 125, 255, 0.2);
  color: #fff;
}
.chip-option {
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
}
.chip-option:hover,
.chip-option:focus-visible {
  border-color: #2f7dff;
  color: #fff;
}
.chip-option.is-active {
  border-color: var(--accent);
  color: #fff;
  background: rgba(47, 125, 255, 0.15);
  box-shadow: 0 0 0 1px rgba(47, 125, 255, 0.3);
}
.chip-radio {
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  cursor: pointer;
}
.chip-radio input {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  position: relative;
}
.chip-radio input:checked {
  border-color: var(--accent);
  background: var(--accent);
}
.chip-radio input:checked::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #050608;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.chip-radio span {
  font-size: 0.85rem;
}

.watchface-wizard .tag-pills label,
.watchface-wizard .chip-option,
.watchface-wizard .chip-radio,
.watchface-wizard .tag-custom-chip {
  border-radius: 0;
}

.watchface-wizard .language-options {
  max-height: 120px;
}

.language-options {
  max-height: 180px;
  overflow: auto;
}
.dropzone__preview {
  margin-top: 0.5rem;
  min-height: 40px;
}
.dropzone-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}
select option {
  /* Default to dark options across the site. Native select menus are OS-controlled, but this improves Firefox. */
  color: #e4e9f5;
  background: #0c0f16;
}

/* When a modal is open, hide any in-editor context docks so they don't float above the overlay. */
body.modal-open .faceoff-rte__editor .table-controls,
body.modal-open .faceoff-rte__editor .media-controls {
  display: none !important;
}

/* Hide HugeRTE/TinyMCE auxiliary popovers (context toolbars, menus) while a Face-Off modal is open. */
body.modal-open .tox-tinymce-aux {
  display: none !important;
}

/* Custom border-style picker used in FaceOffRTE table properties. */
.fancy-select {
  position: relative;
}

.fancy-select__button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

.fancy-select__value {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.fancy-select__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fancy-select__caret {
  opacity: 0.75;
}

.fancy-select__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  background: #050608;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  padding: 0.35rem;
  display: grid;
  gap: 0.25rem;
  z-index: 40;
  max-height: min(320px, 42vh);
  overflow: auto;
  overscroll-behavior: contain;
}

.fancy-select__panel[hidden] {
  display: none;
}

.fancy-select__option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}

.fancy-select__option:hover,
.fancy-select__option:focus-visible {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
  outline: none;
}

.fancy-select__option.is-active {
  border-color: rgba(47, 125, 255, 0.45);
  background: rgba(47, 125, 255, 0.08);
}

.border-style-swatch {
  width: 44px;
  height: 14px;
  box-sizing: border-box;
  border: 3px solid rgba(214, 221, 230, 0.85);
  border-radius: 0;
  background: transparent;
  flex: 0 0 auto;
}

.border-style-swatch.is-solid { border-style: solid; }
.border-style-swatch.is-dashed { border-style: dashed; }
.border-style-swatch.is-dotted { border-style: dotted; }
.border-style-swatch.is-double { border-style: double; border-width: 4px; }
.border-style-swatch.is-groove { border-style: groove; border-width: 4px; }
.border-style-swatch.is-ridge { border-style: ridge; border-width: 4px; }
.border-style-swatch.is-inset { border-style: inset; border-width: 4px; }
.border-style-swatch.is-outset { border-style: outset; border-width: 4px; }

.border-style-swatch.is-none,
.border-style-swatch.is-hidden {
  border: 0;
  position: relative;
  width: 44px;
  height: 14px;
}

.border-style-swatch.is-none::before,
.border-style-swatch.is-hidden::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(214, 221, 230, 0.12);
  transform: translateY(-50%);
}

.border-style-swatch.is-none::after,
.border-style-swatch.is-hidden::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%) rotate(-18deg);
}

.border-style-swatch.is-none::after {
  background: rgba(138, 151, 165, 0.9);
}

.border-style-swatch.is-hidden::before {
  background: repeating-linear-gradient(
    90deg,
    rgba(214, 221, 230, 0.18) 0 2px,
    transparent 2px 6px
  );
}

.border-style-swatch.is-hidden::after {
  background: rgba(138, 151, 165, 0.8);
}

.wizard-progress-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.wizard-banner {
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  align-items: center;
  background: rgba(47, 125, 255, 0.06);
}
.wizard-banner.is-hidden {
  display: none !important;
}
.wizard-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.store-inspect {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.store-meta {
  border: 1px solid var(--border);
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
}
.store-meta__header {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.store-meta__header img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: cover;
}
.store-meta__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.3rem;
}
.store-meta__list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}
.store-meta__list strong {
  color: #fff;
}
.validation-summary {
  border: 1px solid rgba(255, 136, 0, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  background: rgba(255, 136, 0, 0.08);
}
.validation-summary__title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.5rem;
}
.validation-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.4rem;
  flex-direction: column;
}
.validation-summary li {
  font-size: 0.9rem;
  padding-left: 1.1rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.validation-summary li span {
  flex: 1;
}
.validation-summary li .button {
  flex: 0 0 auto;
}
.validation-summary li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 0.45rem;
  background: #ffb347;
}
.validation-summary li.is-error::before {
  background: #ff5460;
}
.validation-summary li.is-warn::before {
  background: #ffb347;
}
.compat-filter {
  margin-bottom: 1rem;
}
.compat-filter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.compat-filter .chip-option.is-active {
  background: rgba(47, 125, 255, 0.22);
}

.error-hero {
    min-height: 65vh;
    display: flex;
    align-items: center;
    padding: 3rem 0 4rem;
    background: linear-gradient(135deg, rgba(47, 125, 255, 0.12), transparent 45%), #03050b;
  }
  .error-console {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(4, 5, 9, 0.95);
    padding: 2.5rem;
    box-shadow: 0 40px 55px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
  }
  .error-console__header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.25rem;
  }
  .error-code-chip {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid rgba(47, 125, 255, 0.5);
    padding: 0.45rem 0.75rem;
    background: rgba(47, 125, 255, 0.08);
    flex-shrink: 0;
  }
  .error-code-chip.critical {
    border-color: rgba(255, 85, 99, 0.8);
    background: rgba(255, 85, 99, 0.08);
  }
  .error-console__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .error-console__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  .error-console__grid--balanced {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .error-blade {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 160px;
  }
  .error-beacon {
    border-color: rgba(47, 125, 255, 0.4);
    background: rgba(47, 125, 255, 0.07);
  }
  .error-blade__list,
  .error-reasons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
  }
  .error-blade__list li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .error-reasons li {
    line-height: 1.4;
  }
  .error-stack {
    margin: 0;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    line-height: 1.4;
    overflow-x: auto;
  }
  .error-metrics {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 0.75rem;
    font-size: 0.85rem;
    margin: 0;
  }
  .error-metrics dt {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
  }
  .error-metrics dd {
    margin: 0;
    color: #fff;
    font-weight: 500;
  }
  .error-console__footnote {
    font-size: 0.75rem;
    color: var(--muted);
  }

  /* 404 Game */
  .invaders-hero .error-console {
    max-width: 1100px;
    margin: 0 auto;
  }
  .invaders-stage {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .invaders-controls {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .invaders-controls__group {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.6rem 0.7rem;
    display: grid;
    gap: 0.45rem;
    align-content: start;
  }
  .invaders-controls__label {
    font-size: 0.72rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .invaders-controls__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  .invaders-controls__buttons--primary {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .invaders-controls__buttons--primary .button {
    width: 100%;
  }
  .invaders-controls__buttons--primary .button[data-invaders-submit] {
    font-weight: 700;
  }
  .invaders-controls__buttons--secondary {
    margin-top: 0.1rem;
  }
  .invaders-controls__buttons--secondary .button {
    opacity: 0.88;
  }
  .invaders-controls__hint {
    margin: 0.1rem 0 0;
    font-size: 0.76rem;
  }
  .invaders-controls__hint strong {
    color: var(--text);
    font-weight: 700;
  }
  .invaders-controls__buttons .button {
    white-space: nowrap;
  }
  .invaders-mode-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  .invaders-mode-picker .button.is-active {
    border-color: rgba(47, 125, 255, 0.75);
    background: rgba(47, 125, 255, 0.2);
    color: #fff;
  }
  .invaders-mode-picker__note {
    margin: 0;
    font-size: 0.8rem;
  }
  .invaders-theme-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  .invaders-theme-picker .button.is-active {
    border-color: rgba(47, 125, 255, 0.75);
    background: rgba(47, 125, 255, 0.2);
    color: #fff;
  }
  .invaders-mode-help {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }
  .invaders-mode-help__item {
    border: 1px solid rgba(47, 125, 255, 0.24);
    background: linear-gradient(180deg, rgba(47, 125, 255, 0.14), rgba(255, 255, 255, 0.03));
    padding: 0.62rem 0.78rem;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    font-size: 0.84rem;
    line-height: 1.35;
  }
  .invaders-mode-help__item strong {
    font-size: 0.86rem;
  }
  .invaders-daily-briefing {
    border: 1px solid rgba(47, 125, 255, 0.28);
    background: linear-gradient(180deg, rgba(47, 125, 255, 0.14), rgba(255, 255, 255, 0.03));
    padding: 0.72rem;
    display: grid;
    gap: 0.55rem;
  }
  .invaders-daily-briefing[hidden] {
    display: none !important;
  }
  .invaders-daily-briefing__header {
    display: flex;
    justify-content: space-between;
    gap: 0.9rem;
    align-items: flex-start;
    border-bottom: 1px solid rgba(47, 125, 255, 0.22);
    padding-bottom: 0.45rem;
  }
  .invaders-daily-briefing__header .eyebrow,
  .invaders-daily-briefing__header .muted {
    margin: 0;
  }
  .invaders-daily-briefing__header h3 {
    margin: 0.1rem 0 0.1rem;
    font-size: 1.02rem;
  }
  .invaders-daily-briefing__grid {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .invaders-daily-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(4, 10, 20, 0.42);
    padding: 0.52rem 0.66rem;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
  }
  .invaders-daily-card h4 {
    margin: 0;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
  }
  .invaders-daily-card p {
    margin: 0;
    font-size: 0.88rem;
  }
  .invaders-daily-list {
    margin: 0.12rem 0 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.2rem;
    font-size: 0.85rem;
  }
  .invaders-daily-list li {
    margin: 0;
  }
  .invaders-run-type {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.35rem;
  }
  .invaders-run-type__label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .invaders-run-type__buttons {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
  }
  .invaders-run-type__buttons .button.is-active {
    border-color: rgba(47, 125, 255, 0.7);
    background: rgba(47, 125, 255, 0.22);
    color: #fff;
  }
  .invaders-run-type__buttons .button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
  }
  .invaders-run-type__note {
    margin: 0;
    font-size: 0.8rem;
  }
  .invaders-canvas-shell {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.18);
    padding: 0.75rem;
    position: relative;
    overflow: hidden;
  }
  .invaders-canvas {
    display: block;
    width: 100%;
    height: auto;
    background: #f3f6ff;
    border: 1px solid rgba(0, 0, 0, 0.18);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.25);
  }
  .invaders-canvas-shell:fullscreen,
  .invaders-canvas-shell:-webkit-full-screen {
    padding: clamp(0.45rem, 2vw, 1rem);
    border-color: rgba(120, 188, 255, 0.45);
    background: #020713;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .invaders-canvas-shell:fullscreen .invaders-canvas,
  .invaders-canvas-shell:-webkit-full-screen .invaders-canvas {
    width: min(96vw, 1800px);
    max-height: 96vh;
    height: auto;
    margin: 0 auto;
  }
  .invaders-stage[data-theme="crt"] .invaders-canvas-shell {
    border-color: rgba(123, 255, 172, 0.35);
    box-shadow: inset 0 0 0 1px rgba(123, 255, 172, 0.1);
    background: rgba(0, 8, 2, 0.55);
  }
  .invaders-stage[data-theme="crt"] .invaders-canvas {
    border-color: rgba(123, 255, 172, 0.45);
    box-shadow: 0 0 0 1px rgba(123, 255, 172, 0.18), 0 20px 28px rgba(0, 0, 0, 0.35);
  }
  .invaders-stage[data-theme="high"] .invaders-canvas-shell {
    border-color: rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.55);
  }
  .invaders-stage[data-theme="high"] .invaders-canvas {
    border-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  }
  .keycap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.85em;
    padding: 0.05em 0.45em;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.4);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 600;
    font-size: 0.9em;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
  }

  .invaders-modal {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .invaders-leaderboard-tabs {
    justify-content: center;
  }

  .invaders-leaderboard-pane {
    display: grid;
    gap: 0.65rem;
  }

  .invaders-leaderboard-note {
    margin: 0;
  }
  .invaders-leaderboard-empty {
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .invaders-leaderboard {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
  }

  .invaders-leaderboard__entry {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .invaders-leaderboard__entry:last-child {
    border-bottom: 0;
  }
  .invaders-leaderboard__row {
    display: grid;
    grid-template-columns: 40px 1fr 90px auto;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    align-items: baseline;
  }
  .invaders-leaderboard__rank {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
  }
  .invaders-leaderboard__name {
    font-weight: 600;
  }
  .invaders-leaderboard__score {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.9);
  }
  .invaders-leaderboard__expand {
    min-width: 82px;
    justify-self: end;
    padding-inline: 0.5rem;
  }
  .invaders-leaderboard__details {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(3, 9, 20, 0.32);
    padding: 0.56rem 0.75rem 0.64rem;
  }
  .invaders-leaderboard__detail-grid {
    display: grid;
    gap: 0.4rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .invaders-leaderboard__detail-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.35rem 0.45rem;
    display: grid;
    gap: 0.12rem;
  }
  .invaders-leaderboard__detail-label {
    font-size: 0.69rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .invaders-leaderboard__detail-item strong {
    font-size: 0.88rem;
    color: #fff;
    line-height: 1.2;
  }
  .invaders-leaderboard__detail-empty {
    margin: 0;
    font-size: 0.82rem;
  }

  .invaders-history {
    gap: 0.65rem;
  }
  .invaders-history__empty {
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem;
    margin: 0;
  }
  .invaders-history__list {
    display: grid;
    gap: 0.55rem;
    max-height: min(68vh, 560px);
    overflow-y: auto;
    padding-right: 0.15rem;
  }
  .invaders-history__entry {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.56rem 0.65rem;
    display: grid;
    gap: 0.34rem;
  }
  .invaders-history__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .invaders-history__title {
    margin: 0;
    font-weight: 600;
    color: #fff;
    font-size: 0.92rem;
  }
  .invaders-history__meta {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.35;
  }
  .invaders-history__daily {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(148, 185, 255, 0.9);
  }
  .invaders-history__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.18rem 0.42rem;
    white-space: nowrap;
  }
  .invaders-history__badge.is-submitted {
    border-color: rgba(47, 125, 255, 0.55);
    color: rgba(160, 205, 255, 0.95);
    background: rgba(47, 125, 255, 0.16);
  }
  .invaders-history__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.12rem;
  }
  .invaders-history__submit {
    min-width: 86px;
  }
  .invaders-history__hint {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255, 196, 128, 0.9);
  }

  .invaders-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }
  .invaders-form__row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
  .invaders-form__row--inline {
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
  }
  .invaders-form__row--inline input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
  }
  @media (max-width: 720px) {
    .invaders-controls {
      grid-template-columns: 1fr;
    }
    .invaders-leaderboard__row {
      grid-template-columns: 30px 1fr 76px;
      align-items: center;
    }
    .invaders-leaderboard__expand {
      grid-column: 1 / -1;
      justify-self: start;
      margin-top: 0.15rem;
    }
    .invaders-daily-briefing__header {
      flex-direction: column;
      align-items: flex-start;
    }
    .invaders-theme-picker .button,
    .invaders-mode-picker .button,
    .invaders-controls__buttons .button {
      flex: 1 1 auto;
    }
    .invaders-controls__buttons--secondary {
      margin-top: 0;
    }
  }
.collection-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.collection-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 8, 15, 0.9);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 260px;
}
.collection-card header h3 {
  margin: 0.1rem 0 0.35rem;
}
.collection-card__gallery {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.collection-face {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.01);
}
.collection-face img {
  width: 44px;
  height: 44px;
  object-fit: cover;
}
.collection-card__footer {
  margin-top: auto;
}
.collection-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.collection-table th,
.collection-table td {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.6rem 0.75rem;
  text-align: left;
}
.collection-table th {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.table-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 8, 15, 0.9);
  overflow-x: auto;
}
.table-card table {
  width: 100%;
  border-collapse: collapse;
}
.table-card th,
.table-card td {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.6rem 0.75rem;
  text-align: left;
}
.table-card th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}
.admin-account-filter {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 0.9rem;
}
.admin-account-filter__search {
  display: grid;
  gap: 0.35rem;
}
.admin-account-filter__search span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-account-filter__search input {
  width: 100%;
  max-width: 420px;
}
.admin-account-filter__chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.admin-account-filter__chips .button.is-active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(47, 125, 255, 0.15);
}
.draft-history {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }
  .draft-history__row {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
  }
  .draft-history__meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }
  .draft-history__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .draft-history__actions {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
  }
  .draft-history__actions .button {
    white-space: nowrap;
  }
  .draft-history__details {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.65rem;
  }
  .draft-history__details[hidden] {
    display: none;
  }
  .draft-history__detail-body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.85rem;
  }
  .draft-history__detail-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.45rem 0.6rem;
  }
  .draft-history__detail-row span {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: var(--muted);
  }
  .draft-history__detail-value {
    text-align: right;
    font-weight: 600;
  }
  .draft-history__detail-subgroup {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.55rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
  .draft-history__detail-subtitle {
    margin: 0 0 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: var(--muted);
  }
  .draft-history__detail-meta {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
  }
  .draft-history__detail-meta div {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }
  .draft-history__detail-meta span {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    color: var(--muted);
  }

  .draft-history__detail-scroll {
    max-height: 22rem;
    overflow: auto;
    padding-right: 0.4rem;
  }

  .draft-history__section {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.35rem;
    padding: 0.65rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.02);
  }

  .draft-history__section-title {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--muted);
  }

  .draft-history__detail-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.9rem;
  }

  .draft-history__detail-item span {
    flex: 1 1 50%;
    color: #8aa0c2;
  }

  .draft-history__detail-item strong {
    flex: 1 1 50%;
    text-align: right;
    color: #f1f4fb;
    font-weight: 600;
  }
  .draft-history__detail-meta strong {
    font-size: 0.9rem;
  }
  .draft-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 0.5rem;
  }
  .article-form .wizard-banner {
    grid-column: 1 / -1;
  }
  .article-form .article-status {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    margin: 0.75rem 0 1rem;
  }
  .auth-social {
    margin-bottom: 0.8rem;
  }
  .auth-social .button.full {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
  }
  .auth-divider {
    position: relative;
    text-align: center;
    margin: 0.75rem 0 1.25rem;
    color: var(--muted);
    font-size: 0.8rem;
  }
  .auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--border);
  }
  .auth-divider span {
    position: relative;
    padding: 0 0.5rem;
    background: #040506;
  }
  .beta-pill {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .icon-google {
    display: inline-flex;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #4285f4;
    font-weight: 600;
    font-size: 0.85rem;
  }
  .icon-google::before {
    content: 'G';
  }
  .onboarding-hero {
    position: relative;
  }
  .onboarding-gate[hidden],
  .wizard-shell[hidden],
  .onboarding-panels[hidden] {
    display: none !important;
  }
  .onboarding-gate {
    margin-bottom: 1rem;
  }
  .onboarding-panels {
    margin-top: 1.5rem;
  }
.onboarding-panel header {
    margin-bottom: 1rem;
}
.onboarding-panel label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
}
.onboarding-panel input[type="text"],
.onboarding-panel input[type="email"],
.onboarding-panel input[type="url"],
.onboarding-panel input[type="password"],
.onboarding-panel select,
.onboarding-panel textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    color: #e4e9f5;
    padding: 0.65rem 0.75rem;
    font-size: 0.95rem;
    border-radius: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.onboarding-panel select {
    appearance: none;
}
.onboarding-panel textarea {
    min-height: 110px;
    resize: vertical;
}
.onboarding-panel input:focus,
.onboarding-panel select:focus,
.onboarding-panel textarea:focus {
    border-color: #2f7dff;
    outline: none;
    box-shadow: 0 0 0 1px rgba(47, 125, 255, 0.25);
}
.onboarding-panel input[readonly] {
    opacity: 0.65;
}
.onboarding-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.onboarding-grid label.full {
    grid-column: 1 / -1;
}
  .wizard-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  .onboarding-preview {
    position: relative;
    top: 0;
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }
  .onboarding-preview .preview-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .preview-identity {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0.7rem;
    align-items: center;
  }
  .preview-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border: 1px solid var(--border);
    background-size: cover;
    background-position: center;
  }
  .preview-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
  }
  .preview-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
  }
  .preview-meta p {
    margin: 0;
  }
  .preview-meta strong {
    display: block;
  }
  .preview-block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
  .chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
}
  .chip.subtle {
    opacity: 0.8;
  }
  .badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
  }
  .badge-card {
    border: 1px solid var(--border);
    padding: 0.8rem;
    display: flex;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.2s ease;
    border-radius: 6px;
  }
  .badge-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  .badge-card input:checked + div {
    border-color: rgba(63, 126, 248, 0.8);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }
  .link-status {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.8rem;
    color: var(--muted);
  }
  .link-status.is-bad {
    color: #ff9c9c;
  }
  .onboarding-preview.is-hidden {
    display: none;
  }
  .wizard-errors {
    margin-top: 0.5rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(255, 179, 71, 0.4);
    background: rgba(255, 179, 71, 0.08);
    color: #ffc370;
    border-radius: 8px;
    font-size: 0.9rem;
  }
  .upload-tile {
    border: 1px dashed var(--border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    min-height: 180px;
    padding: 1rem;
    display: grid;
    place-items: center;
    text-align: center;
  }
  .upload-cta strong {
    display: block;
    margin-bottom: 0.35rem;
  }
  .upload-preview img {
    max-width: 120px;
    border-radius: 4px;
    border: 1px solid var(--border);
  }
  .upload-actions {
    display: inline-flex;
    gap: 0.65rem;
    justify-content: center;
    align-items: center;
  }
  .upload-actions .button {
    min-width: 120px;
  }
  .upload-actions .button.ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: #e4e9f5;
    padding: 0.45rem 0.65rem;
  }
  .field-inline {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
    align-items: stretch;
  }
  .field-inline .chip {
    padding: 0.55rem 0.75rem;
    height: 100%;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: #e4e9f5;
  }
  .wizard-track__item.is-complete {
    border-color: rgba(63, 126, 248, 0.6);
    color: #fff;
  }
  .wizard-track__item.has-missing {
    border-color: rgba(255, 179, 71, 0.6);
  }
  .validation-summary {
    margin-top: 1rem;
    border: 1px solid var(--border);
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
  }
  .validation-summary ul {
    margin: 0.25rem 0 0;
    padding-left: 1rem;
    color: var(--muted);
  }
  .smart-select {
    position: relative;
  }
.smart-select__control {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.smart-select__control input {
    flex: 1;
}
.smart-select__control .chip {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    color: #e4e9f5;
    padding: 0.55rem 0.7rem;
    border-radius: 0;
    height: 100%;
    display: inline-flex;
    align-items: center;
}
.smart-select__list {
    position: absolute;
    inset: calc(100% + 4px) 0 auto 0;
    background: rgba(10, 12, 18, 0.96);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 0.4rem;
    max-height: 220px;
    overflow: auto;
    z-index: 10;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
    min-width: 100%;
}
.smart-select__option {
    padding: 0.45rem 0.6rem;
    border-radius: 0;
    cursor: pointer;
    border: 1px solid transparent;
}
  .smart-select__option:hover,
  .smart-select__option.is-active {
    background: rgba(63, 126, 248, 0.15);
    border-color: rgba(63, 126, 248, 0.35);
  }
  .intent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
  }
  .intent-option {
    border: 1px solid var(--border);
    padding: 0.85rem;
    display: flex;
    gap: 0.75rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
  }
  .intent-option input {
    margin-top: 0.35rem;
  }
  .pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
  }
  .pill-grid label {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.35rem 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  }
  .pill-grid input {
    display: none;
  }
  .pill-grid input:checked + span {
    background: linear-gradient(135deg, rgba(63, 126, 248, 0.25), rgba(63, 126, 248, 0.05));
    border-color: rgba(63, 126, 248, 0.9);
    color: #fff;
  }
  .pill-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
  }
  .preset-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.25rem 0 0.5rem;
  }
  .link-btn {
    background: transparent;
    border: none;
    color: #8fb3ff;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
  }
  .link-btn:hover {
    color: #cfe0ff;
  }
  .pill-grid.compact label {
    border-radius: 8px;
  }
  .preference-section {
    margin-bottom: 1.25rem;
  }
  .upload-tile {
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    padding: 1.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    position: relative;
    min-height: 220px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }
  .upload-tile:hover {
    border-color: #2f7dff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
  }
  .upload-tile input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
  }
  .upload-cta {
    text-align: left;
    display: grid;
    gap: 0.5rem;
  }
  .upload-cta strong {
    letter-spacing: 0.02em;
    font-size: 1rem;
  }
  .upload-cta small {
    color: var(--muted);
    font-size: 0.9rem;
  }
  .upload-cta .upload-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.3rem;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    background: rgba(255, 255, 255, 0.04);
  }
  .upload-cta .upload-icon::before,
  .upload-cta .upload-icon::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .upload-cta .upload-icon::before {
    width: 18px;
    height: 2px;
  }
  .upload-cta .upload-icon::after {
    width: 2px;
    height: 18px;
  }
  .upload-cta .upload-icon.has-preview {
    border-style: solid;
    background: none;
    padding: 2px;
    overflow: hidden;
  }
  .upload-cta .upload-icon.has-preview::before,
  .upload-cta .upload-icon.has-preview::after {
    display: none;
  }
  .upload-cta .upload-icon.has-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .upload-preview {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    justify-content: flex-end;
  }
  .upload-preview img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
  }
  .upload-preview.is-hidden {
    display: none;
  }
  .timezone-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
  }
  .radio-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
  }
  .creator-fields {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: 8px;
    display: none;
  }
  .creator-fields.is-visible {
    display: block;
  }
  .recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .recommendation-card {
    border: 1px solid var(--border);
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
  }
  .recommendation-card label {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    cursor: pointer;
  }
  .recommendation-card--empty {
    grid-column: 1 / -1;
    padding: 0.85rem 0.9rem;
  }
  .recommendation-card--empty p {
    margin: 0;
  }
  .summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
  }
  .summary-card {
    border: 1px solid var(--border);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    min-height: 120px;
  }
  .wizard-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
    align-items: center;
  }
  .wizard-nav__group {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
  }
  .intent-nav {
    justify-content: space-between;
    align-items: center;
  }
  .wizard-nav__group--left {
    margin-right: auto;
  }
  .wizard-nav__group--right {
    margin-left: auto;
  }
  .summary-card p {
    margin: 0.35rem 0;
    color: #dce5ff;
  }

@keyframes pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.5;
  }
  45% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(0.85);
    opacity: 0.5;
  }
}

.legal-hero {
  padding: 3.1rem 0 2.15rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 66%, transparent);
}

.legal-hero__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 1.5rem;
  align-items: end;
}

.legal-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
  max-width: 70ch;
}

.legal-hero__copy .eyebrow,
.legal-hero__copy h1,
.legal-hero__copy .lede {
  margin: 0;
}

.legal-hero__copy h1 {
  line-height: 1.14;
}

.legal-hero .lede {
  max-width: 58ch;
  font-size: 1.19rem;
  line-height: 1.42;
}

.legal-hero__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: min(320px, 100%);
  justify-self: end;
}

.legal-meta-card {
  min-height: 0;
  padding: 0.85rem 0.95rem;
  justify-content: flex-start;
  gap: 0.35rem;
}

.legal-meta-card .eyebrow {
  margin: 0;
}

.legal-meta-card__value {
  margin: 0;
  line-height: 1.4;
  font-size: 1.02rem;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.34rem;
}

.legal-nav a {
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: rgba(255, 255, 255, 0.01);
  color: var(--muted);
  padding: 0.34rem 0.6rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-nav a.is-active,
.legal-nav a:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line) 60%);
  background: rgba(47, 125, 255, 0.12);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.legal-toc {
  border: 1px solid var(--line);
  background: rgba(5, 8, 14, 0.42);
  padding: 0.95rem;
  position: sticky;
  top: 88px;
}

.legal-toc .eyebrow {
  margin: 0 0 0.55rem;
}

.legal-toc nav {
  display: grid;
  gap: 0.5rem;
}

.legal-toc a {
  color: color-mix(in srgb, var(--text) 78%, var(--muted) 22%);
  font-size: 0.84rem;
  border-left: 2px solid transparent;
  padding-left: 0.58rem;
  line-height: 1.35;
}

.legal-toc a:hover {
  color: var(--text);
  border-left-color: color-mix(in srgb, var(--accent) 72%, transparent);
}

.legal-body {
  display: grid;
  gap: 1rem;
}

.legal-shell {
  display: grid;
  gap: 1rem;
}

.legal-shell--split {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

.legal-shell--split > .alert {
  grid-column: 1 / -1;
}

.legal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.2rem;
}

.legal-card--section h2 {
  margin: 0 0 0.58rem;
  font-size: 1.42rem;
  line-height: 1.25;
}

.legal-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.legal-card p {
  margin: 0;
}

.legal-card p + p,
.legal-card p + form,
.legal-card form + p,
.legal-card p + ul,
.legal-card ul + p {
  margin-top: 0.92rem;
}

.legal-points {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
  line-height: 1.45;
}

.legal-points li::marker {
  color: color-mix(in srgb, var(--accent) 78%, white 22%);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.legal-note {
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.72rem;
}

.legal-note p {
  color: var(--muted);
}

.legal-cookie-form,
.legal-request-form {
  display: grid;
  gap: 0.6rem;
}

.legal-form-fields label {
  display: grid;
  gap: 0.42rem;
  font-size: 0.86rem;
}

.legal-form-fields input[type='email'],
.legal-form-fields textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  color: #e4e9f5;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
}

.legal-form-fields input[type='email']:focus,
.legal-form-fields textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.legal-form-fields textarea {
  min-height: 118px;
  resize: vertical;
}

.legal-consent-switch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  padding: 0.56rem 0.66rem;
  cursor: pointer;
}

.legal-consent-switch__copy {
  display: grid;
  gap: 0.08rem;
}

.legal-consent-switch__copy strong {
  font-size: 0.9rem;
}

.legal-consent-switch__copy small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.34;
}

.legal-consent-switch input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.legal-consent-switch__track {
  width: 2.15rem;
  height: 1.2rem;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem;
  display: inline-flex;
  align-items: center;
}

.legal-consent-switch__thumb {
  width: 0.8rem;
  height: 0.8rem;
  background: rgba(235, 241, 255, 0.88);
  transition: transform 160ms ease, background-color 160ms ease;
}

.legal-consent-switch input[type='checkbox']:checked + .legal-consent-switch__track {
  border-color: color-mix(in srgb, var(--accent) 66%, transparent);
  background: rgba(47, 125, 255, 0.2);
}

.legal-consent-switch input[type='checkbox']:checked + .legal-consent-switch__track .legal-consent-switch__thumb {
  transform: translateX(0.93rem);
  background: #2f7dff;
}

.legal-consent-switch--locked {
  opacity: 0.72;
  cursor: not-allowed;
}

.legal-cookie-actions,
.legal-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.legal-cookie-actions .button,
.legal-cta-row .button {
  min-height: 2rem;
}

.legal-card--section p + .legal-cta-row {
  margin-top: 0.95rem;
}

@media (max-width: 980px) {
  .legal-hero__shell,
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-hero__meta {
    justify-self: stretch;
    width: 100%;
  }

  .legal-toc {
    position: static;
    top: auto;
  }
}

.cookie-consent {
  position: fixed;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 1400;
  width: min(398px, calc(100vw - 1.7rem));
}

.cookie-consent__surface {
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.985), rgba(5, 9, 16, 0.985));
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}

.cookie-consent__surface [data-cookie-panel] {
  animation: cookie-fade 160ms ease;
}

.cookie-consent__surface[data-cookie-view="summary"] [data-cookie-panel="settings"] {
  display: none;
}

.cookie-consent__surface[data-cookie-view="settings"] [data-cookie-panel="summary"] {
  display: none;
}

.cookie-consent__panel[hidden] {
  display: none !important;
}

@keyframes cookie-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cookie-consent__panel {
  padding: 0.82rem 0.86rem;
  display: grid;
  gap: 0.55rem;
}

.cookie-consent__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cookie-consent__badge {
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 60%, white 40%);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  padding: 0.14rem 0.36rem;
}

.cookie-consent__panel h2 {
  margin: 0;
  font-size: 1.01rem;
  line-height: 1.28;
}

.cookie-consent__panel p {
  margin: 0;
}

.cookie-consent__copy {
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--text) 90%, var(--muted) 10%);
}

.cookie-consent__legal {
  font-size: 0.84rem;
  color: var(--muted);
}

.cookie-consent__form {
  display: grid;
  gap: 0.38rem;
}

.cookie-switch {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--panel) 74%, transparent);
  padding: 0.47rem 0.56rem;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.cookie-toggle__label {
  display: grid;
  gap: 0.08rem;
}

.cookie-toggle__label strong {
  font-size: 0.84rem;
}

.cookie-toggle__label small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.26;
}

.cookie-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-switch__track {
  width: 2rem;
  height: 1.14rem;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem;
  display: inline-flex;
  align-items: center;
}

.cookie-switch__thumb {
  width: 0.78rem;
  height: 0.78rem;
  background: rgba(235, 241, 255, 0.88);
  transition: transform 150ms ease, background-color 150ms ease;
}

.cookie-switch input[type="checkbox"]:checked + .cookie-switch__track {
  border-color: color-mix(in srgb, var(--accent) 64%, transparent);
  background: rgba(47, 125, 255, 0.22);
}

.cookie-switch input[type="checkbox"]:checked + .cookie-switch__track .cookie-switch__thumb {
  transform: translateX(0.84rem);
  background: #2f7dff;
}

.cookie-switch:not(.cookie-switch--locked):hover {
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line) 64%);
  background: color-mix(in srgb, var(--panel) 66%, transparent);
}

.cookie-switch--locked {
  opacity: 0.72;
  cursor: not-allowed;
}

.cookie-switch--locked .cookie-switch__track {
  opacity: 0.75;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.cookie-consent__actions .button {
  min-height: 1.95rem;
}

.cookie-consent__actions--summary .button:first-child {
  flex: 1 1 62%;
}

.cookie-consent__actions--summary .button:last-child {
  flex: 1 1 calc(38% - 0.34rem);
}

.cookie-consent__text-action {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--muted) 55%, transparent);
  text-underline-offset: 0.16rem;
  padding: 0;
  width: max-content;
  cursor: pointer;
}

.cookie-consent__text-action:hover {
  color: var(--text);
  text-decoration-color: color-mix(in srgb, var(--accent) 52%, transparent);
}

.cookie-consent__loading {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.86);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--text) 90%, var(--muted) 10%);
}

.cookie-consent__loading[hidden] {
  display: none !important;
}

.cookie-consent__spinner {
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid color-mix(in srgb, var(--line) 65%, transparent);
  border-top-color: color-mix(in srgb, var(--accent) 78%, white 22%);
  border-radius: 999px;
  animation: cookie-spin 560ms linear infinite;
}

@keyframes cookie-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 680px) {
  .cookie-consent {
    right: 0.55rem;
    left: 0.55rem;
    bottom: 0.55rem;
    width: auto;
  }

  .cookie-switch {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
  }

  .cookie-consent__actions .button {
    flex: 1 1 calc(50% - 0.21rem);
  }

  .cookie-consent__actions--summary .button:first-child,
  .cookie-consent__actions--summary .button:last-child {
    flex: 1 1 calc(50% - 0.21rem);
  }
}

@media (max-width: 430px) {
  .cookie-consent__badge {
    display: none;
  }

  .cookie-consent__panel {
    padding: 0.74rem;
  }

  .cookie-consent__actions .button,
  .cookie-consent__actions--summary .button:first-child,
  .cookie-consent__actions--summary .button:last-child {
    flex-basis: 100%;
  }

  .cookie-consent__head .cookie-consent__text-action {
    font-size: 0.78rem;
  }
}

.grecaptcha-badge {
  visibility: hidden;
}
