@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: static;
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  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);
}



.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;
}



.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;
  max-height: calc(100vh - 5rem);
  max-height: calc(100dvh - 5rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.account-menu > * { flex-shrink: 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;
}


.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);
}


.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(4, minmax(0, 1fr));
  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: 34px;
  border: 1px solid var(--border);
  background: #03050a;
  color: #d7e2f3;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 0.4rem 0.75rem;
}

.feedback-triage-form .feedback-triage-submit {
  min-height: 38.6px;
  width: 100%;
  border: 1px solid var(--border);
  background: #03050a;
  color: #d7e2f3;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 0.4rem 0.75rem;
  padding-right: 2.6rem;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  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;
}

.feedback-triage-form .feedback-triage-submit:hover {
  border-color: #395e93;
  background: #060a12;
}

.feedback-triage-form .feedback-triage-submit:focus-visible {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 1px rgba(47, 125, 255, 0.25);
}

.feedback-quick-actions {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.feedback-quick-actions form {
  margin: 0;
}

.feedback-quick-actions .chip-action {
  text-decoration: none;
}

.feedback-quick-actions .chip-action[disabled] {
  color: var(--muted);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.02);
  opacity: 0.65;
  cursor: default;
}

.admin-issue-fixed-drawer {
  margin-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
}

.admin-issue-fixed-drawer > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  padding: 0.25rem 0;
}

.admin-issue-fixed-drawer > summary::-webkit-details-marker {
  display: none;
}

.admin-issue-fixed-drawer > summary span {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-issue-fixed-drawer > summary small {
  font-size: 0.78rem;
}

.admin-issue-fixed-drawer > summary::after {
  content: '+';
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  margin-left: auto;
}

.admin-issue-fixed-drawer[open] > summary::after {
  content: '\2212';
}

.admin-issue-fixed-list {
  margin-top: 0.65rem;
}

.admin-issue-fixed-list li {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
  padding: 0.65rem 0.75rem;
}

.admin-issue-fixed-list li + li {
  margin-top: 0.5rem;
}

.admin-issue-fixed-list__message {
  margin-top: 0.35rem;
}

@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;
}


.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;
}


.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;
}


.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;
}


.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;
  }
  .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(min(100%, 320px), 1fr));
}

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

.catalog-hero .shell {
  display: block;
}

.catalog-hero {
  padding-bottom: 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;
}

.home-page-mode .hero__stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-page-mode .hero h1 {
  max-width: 18ch;
}

.home-page-mode .stat-card {
  border: 0;
  padding: 0;
  min-height: 0;
  background: transparent;
}

.home-page-mode .stat-card__value {
  order: -1;
  margin-bottom: 0.35rem;
}

.home-page-mode .hero__list {
  padding: 1.25rem 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
}

.home-page-mode .hero__list h2 {
  font-size: 1rem;
  margin: 0;
}

.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__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.watchface-card__heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.watchface-card__heading h3 {
  min-width: 0;
  margin: 0;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.watchface-card__heading .watchface-card__price {
  white-space: nowrap;
  flex-shrink: 0;
}

.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 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}

.home-insight-card {
  display: grid;
  gap: 1.25rem;
  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;
}

.home-creator-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.78rem 0;
  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: 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-top: 1px solid var(--border);
  padding: 1rem 0;
  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;
}

.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));
}

@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;
}

.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-layout.has-outline {
  grid-template-columns: minmax(0, 72ch) minmax(12rem, 1fr);
  grid-template-areas: "body contents";
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.article-layout.has-outline .article-body {
  grid-area: body;
}

.article-contents {
  grid-area: contents;
  position: sticky;
  top: 6rem;
  border-left: 1px solid var(--border);
  padding-left: 1.25rem;
  font-size: 0.9rem;
  max-height: calc(100dvh - 7rem);
  overflow-y: auto;
}

.article-contents summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}

.article-contents ol {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.article-contents li + li {
  margin-top: 0.65rem;
}

.article-contents a {
  color: var(--muted);
  display: inline-block;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.article-contents a:hover,
.article-contents a:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 960px) {
  .article-layout.has-outline {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "contents" "body";
    gap: 1.5rem;
  }
  .article-contents {
    position: static;
    max-height: none;
  }
}

.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;
  min-width: 0;
  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;
  scroll-margin-top: 6rem;
}

.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%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.article-body img.article-lightbox-target {
  cursor: zoom-in;
}

.article-lightbox-open {
  overflow: hidden;
}

.article-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1700;
  background: rgba(2, 3, 6, 0.94);
  padding: clamp(0.8rem, 2vw, 1.6rem);
  display: grid;
  place-items: center;
}

.article-lightbox[hidden] {
  display: none !important;
}

.article-lightbox__frame {
  position: relative;
  width: min(1200px, 100%);
  max-height: 100%;
  display: grid;
  justify-items: center;
  gap: 0.65rem;
}

.article-lightbox__image {
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  width: auto;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #010203;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}

.article-lightbox__caption,
.article-lightbox__counter {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-lightbox__counter {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.article-lightbox__close,
.article-lightbox__nav {
  position: absolute;
  border: 1px solid var(--border-strong);
  background: rgba(3, 8, 18, 0.85);
  color: var(--text);
  padding: 0.42rem 0.65rem;
  min-height: 2rem;
  cursor: pointer;
}

.article-lightbox__close {
  top: 0.35rem;
  right: 0.35rem;
}

.article-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.article-lightbox__nav--prev {
  left: 0.35rem;
}

.article-lightbox__nav--next {
  right: 0.35rem;
}

.article-lightbox__close:hover,
.article-lightbox__nav:hover {
  border-color: var(--accent);
}

.article-body iframe,
.article-body video,
.article-body audio {
  display: block;
  max-width: 100%;
  margin: 1.25rem auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.article-body iframe,
.article-body video {
  width: 100%;
  min-height: 320px;
  background: #020305;
}

.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);
}

.crud-bulk-scope {
  display: grid;
  gap: 0.75rem;
}

.crud-bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.crud-bulk-select-all {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.crud-bulk-select-all input {
  margin: 0;
}

.crud-bulk-count {
  font-size: 0.84rem;
  color: var(--muted);
}

.crud-bulk-toolbar form {
  margin-left: auto;
}

.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;
}

.crud-row-select {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.4rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.crud-row-select input {
  margin: 0;
}

.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;
}

button[data-enable-richtext].is-active {
  border-color: color-mix(in srgb, var(--border) 45%, #3dd598 55%);
  color: #7de0be;
}

.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: 1.25rem;
  border-bottom: 1px solid var(--footer-border);
}

.atelier-footer .footer-brand h2 {
  margin: 0.4rem 0 0.6rem;
  font-size: 1.35rem;
}

.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);
}


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


.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);
}


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





.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;
  }
}
.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);
}

.footer-col--newsletter .muted {
  margin : 0;
}

.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;
}

.admin-email-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.admin-email-form {
  margin: 0;
}

.admin-email-template-description {
  margin: 0 0 0.15rem;
}

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

.admin-email-preview {
  min-width: 0;
}

.admin-email-preview__frame {
  width: 100%;
  min-height: 560px;
  border: 1px solid var(--border);
  background: #050608;
}

@media (max-width: 1120px) {
  .admin-email-layout {
    grid-template-columns: 1fr;
  }

  .admin-email-preview__frame {
    min-height: 420px;
  }
}

.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%);
  padding-block: 2.5rem 0;
}

.account-hero > .shell {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.75rem 2rem;
  align-items: center;
}

.account-hero__primary {
  grid-column: 1 / -1;
  min-width: 0;
  max-width: 52rem;
}

.account-dashboard-page .account-hero__primary {
  grid-column: 1;
}

.account-hero__primary h1 {
  margin: 0 0 0.75rem;
  overflow-wrap: anywhere;
}

.account-hero__primary .lede {
  margin: 0;
}

.account-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  max-width: 26rem;
}

.account-hero__actions form {
  margin: 0;
}

.account-hero__stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 1.25rem 2rem;
  margin: 0;
}

.account-hero .stat-card {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  justify-content: flex-start;
  overflow-wrap: anywhere;
}

.account-hero .stat-card__label {
  font-size: 0.78rem;
  margin: 0 0 0.15rem;
}

.account-hero .stat-card__value {
  font-size: 1.15rem;
  line-height: 1.35;
}

.account-hero .stat-card span {
  font-size: 0.8rem;
}

.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(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.account-dashboard-card {
  min-width: 0;
  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 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  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-page .account-dashboard-submissions {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  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-nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.75rem;
  margin: 0;
  border-top: 1px solid var(--border);
}

.account-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 1rem 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.account-nav a[aria-current] {
  border-bottom-color: var(--accent);
  color: var(--text);
}

.account-nav a:hover,
.account-nav a:focus-visible {
  color: var(--text);
}

.account-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.account-settings-layout > .account-pane {
  min-width: 0;
}

.account-settings-page .account-hero__stats {
  grid-template-columns: minmax(0, 1fr);
}

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

.account-settings-layout .section-heading p {
  margin: 0;
}

.account-settings-page .settings-watch-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-settings-page .settings-watch-form .settings-submit {
  grid-column: 1 / -1;
}

.account-settings-page #delete > p {
  max-width: 80ch;
}

.account-settings-page [data-settings-delete-body] {
  width: min(100%, 20rem);
}

.account-settings-page .stat-card__value--email {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  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-layout,
  .account-settings-page .settings-watch-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .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);
}

@media (max-width: 840px) {
  .account-hero > .shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-dashboard-page .account-hero__primary {
    grid-column: 1 / -1;
  }

  .account-hero__actions {
    justify-content: flex-start;
    max-width: none;
  }

  .account-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-nav {
    gap: 0 clamp(0.5rem, 3vw, 1.25rem);
  }

  .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%;
  }
}

@media (max-width: 360px) {
  .account-nav {
    gap: 0 0.5rem;
  }

  .account-nav a {
    font-size: 0.84rem;
  }
}

.watchface-wizard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.watchface-wizard .form-grid {
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.watchface-wizard .form-grid > *,
.watchface-wizard .wizard-section-grid > *,
.watchface-wizard .platform-card {
  min-width: 0;
}

.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(min(100%, 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(min(100%, 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(min(100%, 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(min(100%, 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(min(100%, 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;
}
.date-picker label { display: grid; gap: .35rem; font-size: .85rem; }
.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(min(100%, 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%;
  }
}

/* Keep the outer step boundary; nested sections need the writing space on phones. */
@media (max-width: 600px) {
  .watchface-wizard .wizard-panel { padding: 1rem; }
  .watchface-wizard .wizard-section-card { border: 0; background: transparent; padding: 0; }
  .watchface-wizard .wizard-section-card__head { flex-direction: column; align-items: start; gap: .35rem; }
  .watchface-wizard .wizard-section-grid { grid-template-columns: minmax(0, 1fr); }
  .watchface-wizard .platform-card { padding: .75rem; }
  .watchface-wizard .wizard-panel--pricing .platform-card--pricing { padding: 0; }
  .watchface-wizard .wizard-actions { flex-wrap: wrap; }
}

.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);
}

.article-quality-checklist .wizard-preflight__list li {
  align-items: flex-start;
}

.article-quality-checklist .wizard-preflight__detail {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.article-quality-checklist__summary {
  margin: 0.7rem 0 0;
  font-size: 0.82rem;
}

.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;
  flex-wrap: wrap;
  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: block;
  max-width: 100%;
}

.modal-loader__content {
  display: grid;
  gap: 0.48rem;
  min-width: 0;
}

.modal-loader__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.modal-loader__spinner {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent);
  animation: modal-spin 0.8s linear infinite;
}

.modal-loader__message {
  margin: 0;
  color: var(--text);
  font-size: 0.99rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.modal-loader__progress {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 0;
  border: 0;
  background: rgba(139, 155, 175, 0.2);
  overflow: hidden;
}

.modal-loader__progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 14%;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(47, 125, 255, 0.92), rgba(113, 188, 255, 0.92));
  box-shadow: 0 0 12px rgba(47, 125, 255, 0.4);
  transition: width 0.25s ease;
}

.modal-loader__status-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.modal-loader__status {
  margin: 0;
  font-size: 0.8rem;
  color: #8ed1ff;
  overflow-wrap: anywhere;
}

.modal-loader__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.modal-loader__steps {
  margin: 0.1rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.28rem;
}

.modal-loader__steps li {
  color: var(--muted);
  font-size: 0.8rem;
  transition: color 0.18s ease;
  overflow-wrap: anywhere;
}

.modal-loader__steps li.is-active {
  color: var(--text);
}

.modal-loader__steps li.is-done {
  color: #8bd1ff;
}

.modal-loader__hint {
  margin: 0.18rem 0 0;
  padding-top: 0.42rem;
  border-top: 1px solid rgba(162, 173, 190, 0.2);
  color: var(--muted);
  font-size: 0.74rem;
  overflow-wrap: anywhere;
}

@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 {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 600px at -12% 0%, rgba(47, 125, 255, 0.32), transparent 70%),
    radial-gradient(900px 420px at 100% 100%, rgba(47, 125, 255, 0.18), transparent 74%),
    linear-gradient(160deg, #061025 0%, #05080f 56%, #050608 100%);
}

.wiki-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 207, 255, 0.35), transparent);
}

.wiki-hero--device .shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.wiki-hero__primary h1 {
  margin-bottom: 0.65rem;
}

.wiki-hero__summary {
  margin: 0 0 0.9rem;
  color: #d3e3fb;
  max-width: 72ch;
  line-height: 1.6;
}

.wiki-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.wiki-hero__meta span,
.wiki-hero__meta a {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(5, 8, 14, 0.75);
  padding: 0.25rem 0.58rem;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}

.wiki-hero__meta a {
  text-transform: none;
  letter-spacing: 0.03em;
  font-size: 0.74rem;
}

.wiki-page-panel {
  padding-top: 1.65rem;
}

.wiki-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 1.55rem;
  align-items: start;
}

.wiki-main,
.wiki-sidebar {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.wiki-main {
  max-width: 900px;
}

.wiki-layout > * {
  min-width: 0;
}

.wiki-main > * {
  min-width: 0;
}

.wiki-sidebar {
  position: sticky;
  top: calc(var(--sticky-top, 72px) + 0.5rem);
  align-self: start;
}

.wiki-layout--preview {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
}

.wiki-layout--preview .wiki-sidebar {
  position: static;
  top: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.wiki-layout--preview .wiki-sidebar .wiki-section-card {
  margin: 0;
}

.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: 280px;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-bottom: 0.6rem;
}

.device-thumb--hero {
  max-height: 340px;
}

.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;
}

.wiki-automation-strip {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.wiki-automation-badge,
.wiki-automation-state,
.wiki-automation-confidence {
  border: 1px solid var(--border);
  background: rgba(5, 6, 8, 0.9);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.55rem;
}

.wiki-automation-badge {
  color: #7dcfff;
  border-color: rgba(125, 207, 255, 0.35);
}

.wiki-section-card {
  border: 1px solid color-mix(in srgb, var(--border) 76%, #2f7dff 24%);
  background: linear-gradient(180deg, rgba(6, 10, 15, 0.94) 0%, rgba(4, 6, 10, 0.94) 100%);
  box-shadow: none;
  padding: 0.95rem 1rem;
  margin: 0;
}

.wiki-section-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.wiki-evidence-disclosure > summary {
  cursor: pointer;
  padding: .65rem 0;
  color: var(--accent);
  min-height: 44px;
}
.wiki-evidence-disclosure > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.wiki-evidence-disclosure .wiki-evidence a {
  text-transform: none;
  letter-spacing: normal;
}

.wiki-section-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.17rem;
}

.wiki-section-card h3,
.wiki-section-card h4 {
  margin: 0.82rem 0 0.48rem;
  font-size: 0.95rem;
}

.wiki-section-card p {
  margin: 0;
  color: #c8d3df;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wiki-section-card--overview {
  border-color: rgba(125, 207, 255, 0.38);
}

.wiki-main .wiki-article-section {
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-top: 1px solid rgba(125, 207, 255, 0.24);
  background: transparent;
  padding: 1.05rem 0 0.3rem;
}

.wiki-main .wiki-article-section h2 {
  margin-bottom: 0.58rem;
  padding-bottom: 0.28rem;
  border-bottom: 1px solid rgba(125, 207, 255, 0.22);
}

.wiki-main .wiki-section-card--overview.wiki-article-section {
  border-top: 0;
  padding-top: 0.2rem;
}

.wiki-main .wiki-section-card--timeline.wiki-article-section {
  border: 1px solid color-mix(in srgb, var(--border) 76%, #2f7dff 24%);
  background: linear-gradient(180deg, rgba(6, 10, 15, 0.94), rgba(4, 6, 10, 0.94));
  padding: 0.95rem 1rem;
}

.wiki-main .wiki-section-card--timeline.wiki-article-section h2 {
  border-bottom: 0;
  padding-bottom: 0;
}

.wiki-comment-panel {
  padding-top: 0.4rem;
}

.wiki-article-body {
  line-height: 1.72;
}

.wiki-article-body p {
  margin: 0.68rem 0 0;
  font-size: 1.02rem;
  color: #dbe5f0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wiki-topic-grid {
  gap: 0.95rem;
}

.wiki-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.wiki-list li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wiki-list--compact {
  gap: 0.26rem;
}

.wiki-extra-list {
  margin-top: 0.6rem;
}

.wiki-extra-list summary {
  cursor: pointer;
  color: #8ed0ff;
  font-size: 0.8rem;
}

.wiki-spec-card .spec-list {
  margin-top: 0.65rem;
}

.wiki-spec-grid {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.wiki-spec-grid div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(162, 173, 190, 0.2);
  background: rgba(7, 11, 16, 0.84);
}

.wiki-spec-grid dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.wiki-spec-grid dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  max-width: 62%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

.wiki-fact-grid div {
  border: 1px solid rgba(162, 173, 190, 0.22);
  background: rgba(7, 11, 16, 0.84);
  padding: 0.55rem 0.65rem;
}

.wiki-fact-grid dt {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.wiki-fact-grid dd {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.wiki-infobox {
  border-color: rgba(125, 207, 255, 0.38);
  background: linear-gradient(180deg, rgba(8, 14, 22, 0.95), rgba(5, 8, 14, 0.95));
}

.wiki-infobox h2 {
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c5dbf6;
}

.wiki-infobox__hero {
  max-height: 250px;
  margin-bottom: 0.8rem;
}

.wiki-spec-grid--infobox div {
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom: 1px solid rgba(125, 207, 255, 0.16);
  border-radius: 0;
  padding: 0.45rem 0;
}

.wiki-spec-grid--infobox div:last-child {
  border-bottom: 0;
}

.wiki-infobox .wiki-list {
  padding-left: 1rem;
  gap: 0.28rem;
}

.wiki-infobox .wiki-list li {
  font-size: 0.84rem;
  line-height: 1.42;
}

.wiki-section-card--toc {
  border-color: rgba(125, 207, 255, 0.28);
  background: rgba(5, 9, 14, 0.92);
}

.wiki-section-card--toc-mobile {
  display: none;
}

.wiki-toc {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.wiki-toc li {
  margin: 0;
}

.wiki-toc a {
  font-size: 0.84rem;
}

.wiki-pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.wiki-pill-list li {
  border: 1px solid rgba(125, 207, 255, 0.24);
  background: rgba(8, 12, 18, 0.95);
  border-radius: 999px;
  padding: 0.28rem 0.66rem;
  font-size: 0.78rem;
  color: #d8e8ff;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.wiki-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.25rem;
}

.wiki-gallery__item {
  margin: 0;
  border: 1px solid var(--border);
  background: rgba(5, 6, 8, 0.88);
  display: grid;
  gap: 0.35rem;
  padding-bottom: 0.4rem;
}

.wiki-gallery__item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.wiki-gallery__item figcaption {
  margin: 0;
  padding: 0 0.55rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.wiki-gallery__item > a {
  padding: 0 0.55rem;
  font-size: 0.74rem;
}

.wiki-gallery__item.is-no-image {
  border-style: dashed;
  background: rgba(7, 11, 16, 0.84);
  padding-top: 0.5rem;
}

.wiki-section-card--timeline {
  --wiki-timeline-zoom: 2;
}

.wiki-timeline-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 0.7rem 0;
  min-width: 0;
}

.wiki-timeline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.wiki-timeline-filters .button.is-active {
  border-color: rgba(125, 207, 255, 0.6);
  color: #dff4ff;
}

.wiki-timeline-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.wiki-timeline-zoom {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.wiki-timeline-zoom input {
  width: 140px;
}

.wiki-timeline-range {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.wiki-timeline-range input[type="date"] {
  width: 140px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.34rem 0.44rem;
}

.wiki-update-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.wiki-update-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.wiki-timeline-scroll {
  border: 1px solid rgba(162, 173, 190, 0.25);
  background: linear-gradient(180deg, rgba(6, 8, 12, 0.94), rgba(4, 5, 8, 0.94));
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 0.75rem;
}

.wiki-timeline-canvas {
  position: relative;
  min-height: 220px;
  width: max(840px, 100%);
}

.wiki-timeline-grid {
  position: absolute;
  inset: 0;
}

.wiki-timeline-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(162, 173, 190, 0.16);
}

.wiki-timeline-tick.is-major {
  background: rgba(125, 207, 255, 0.4);
}

.wiki-timeline-tick.is-quarter {
  background: rgba(162, 173, 190, 0.28);
}

.wiki-timeline-tick__label {
  position: absolute;
  top: 0.2rem;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.04em;
}

.wiki-timeline-lane-labels {
  position: absolute;
  inset: 0 auto 0 0;
  width: 90px;
  border-right: 1px solid rgba(162, 173, 190, 0.2);
  background: linear-gradient(90deg, rgba(4, 7, 11, 0.96), rgba(4, 7, 11, 0.7));
}

.wiki-timeline-lane-labels span {
  position: absolute;
  left: 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #9fb4cb;
}

.wiki-timeline-lane-labels [data-lane-label="stable"] {
  top: calc(var(--wiki-lane-stable-top, 56px) - 0.55rem);
}

.wiki-timeline-lane-labels [data-lane-label="beta"] {
  top: calc(var(--wiki-lane-beta-top, 94px) - 0.55rem);
}

.wiki-timeline-lane-labels [data-lane-label="alpha"] {
  top: calc(var(--wiki-lane-alpha-top, 132px) - 0.55rem);
}

.wiki-timeline-lane-labels [data-lane-label="unknown"] {
  top: calc(var(--wiki-lane-unknown-top, 170px) - 0.55rem);
}

.wiki-timeline-canvas::before,
.wiki-timeline-canvas::after {
  content: "";
  position: absolute;
  left: 90px;
  right: 0;
  border-top: 1px dashed rgba(162, 173, 190, 0.22);
}

.wiki-timeline-canvas::before {
  top: var(--wiki-lane-beta-top, 94px);
}

.wiki-timeline-canvas::after {
  top: var(--wiki-lane-alpha-top, 132px);
}

.wiki-update-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #6f7c8f;
  transform: translate(-50%, -50%);
}

.wiki-update-dot--interactive {
  appearance: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.wiki-update-dot--interactive:hover,
.wiki-update-dot--interactive:focus-visible {
  transform: translate(-50%, -50%) scale(1.18);
  box-shadow: 0 0 0 2px rgba(125, 207, 255, 0.32);
  outline: none;
}

.wiki-update-dot.is-hidden-by-filter {
  opacity: 0.14;
  pointer-events: none;
}

.wiki-update-dot--stable {
  background: #5cbc72;
}

.wiki-update-dot--beta {
  background: #f0a034;
}

.wiki-update-dot--alpha {
  background: #ff6e4d;
}

.wiki-update-dot--unknown {
  background: #7d89a1;
}

.wiki-release-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.62rem;
}

.wiki-release-list--timeline {
  max-height: 520px;
  overflow: auto;
  padding-right: 0.25rem;
}

.wiki-release-list li {
  border: 1px solid rgba(162, 173, 190, 0.2);
  background: rgba(6, 9, 14, 0.85);
  padding: 0.64rem 0.76rem;
  position: relative;
}

.wiki-release-list li.is-hidden-by-filter {
  display: none;
}

.wiki-release-list p {
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
}

.wiki-release-list__open {
  position: absolute;
  right: 0.55rem;
  top: 0.55rem;
  border: 1px solid rgba(162, 173, 190, 0.35);
  background: transparent;
  color: var(--muted);
  padding: 0.14rem 0.44rem;
  border-radius: 999px;
  font-size: 0.7rem;
  cursor: pointer;
}

.wiki-release-list__open:hover,
.wiki-release-list__open:focus-visible {
  color: var(--text);
  border-color: rgba(125, 207, 255, 0.65);
  outline: none;
}

.wiki-release-list__heading {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding-right: 4.6rem;
  min-width: 0;
}

.wiki-release-list__heading span {
  color: var(--muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wiki-release-list__meta {
  margin-top: 0.22rem;
  color: #9fc7ee;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wiki-release-list__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.wiki-release-panel {
  margin-top: 0.75rem;
  border: 1px solid rgba(125, 207, 255, 0.32);
  background: rgba(5, 8, 13, 0.9);
  padding: 0.72rem 0.8rem;
  display: grid;
  gap: 0.45rem;
}

.wiki-release-panel[hidden] {
  display: none;
}

.wiki-release-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.wiki-release-panel__head h3 {
  margin: 0;
  font-size: 0.92rem;
}

.wiki-release-panel__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.wiki-source-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.wiki-source-item {
  border: 1px solid rgba(162, 173, 190, 0.2);
  background: rgba(6, 9, 14, 0.82);
  padding: 0.58rem 0.66rem;
  display: grid;
  gap: 0.22rem;
}

.wiki-source-item__title a {
  overflow-wrap: anywhere;
}

.wiki-source-item__meta {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.wiki-source-badge {
  display: inline-flex;
  border: 1px solid rgba(162, 173, 190, 0.32);
  background: rgba(9, 13, 19, 0.9);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.09rem 0.34rem;
  margin-left: 0.3rem;
}

.wiki-source-badge--high {
  border-color: rgba(66, 190, 130, 0.45);
  color: #8ef0ba;
}

.wiki-source-badge--medium {
  border-color: rgba(125, 207, 255, 0.45);
  color: #9fd6ff;
}

.wiki-source-badge--community {
  border-color: rgba(238, 177, 93, 0.42);
  color: #ffd49b;
}

.wiki-source-badge--low {
  border-color: rgba(238, 99, 99, 0.45);
  color: #ffb0b0;
}

.wiki-source-warning {
  color: #ffb0b0;
  font-size: 0.72rem;
}

.wiki-release-modal {
  display: grid;
  gap: 0.45rem;
}

.wiki-release-modal p {
  margin: 0;
}

.wiki-release-modal__highlights {
  color: var(--text);
}

.wiki-release-modal__links {
  margin-top: 0.2rem;
}

@media (max-width: 960px) {
  .wiki-hero--device .shell,
  .wiki-layout {
    grid-template-columns: 1fr;
  }

  .wiki-sidebar {
    position: static;
  }

  .wiki-layout--preview .wiki-sidebar {
    grid-template-columns: 1fr;
  }

  .wiki-sidebar .wiki-section-card--toc {
    display: none;
  }

  .wiki-section-card--toc-mobile {
    display: block;
  }

}

@media (max-width: 760px) {
  .wiki-main .wiki-article-section {
    padding-top: 0.95rem;
  }

  .wiki-article-body p {
    font-size: 0.98rem;
  }

  .wiki-timeline-controls {
    width: 100%;
    justify-content: space-between;
  }

  .wiki-timeline-zoom input {
    width: 118px;
  }

  .wiki-timeline-range input[type="date"] {
    width: 124px;
  }

  .wiki-release-list__open {
    position: static;
    margin-bottom: 0.35rem;
  }

  .wiki-release-list__heading {
    padding-right: 0;
  }

  .wiki-spec-grid div {
    flex-direction: column;
    align-items: flex-start;
  }

  .wiki-spec-grid dd {
    max-width: 100%;
    text-align: left;
  }

  .wiki-timeline-lane-labels {
    width: 74px;
  }

  .wiki-release-list--timeline {
    max-height: 440px;
  }

  .wiki-timeline-canvas::before,
  .wiki-timeline-canvas::after {
    left: 74px;
  }
}

.wiki-admin-details {
  margin: 0.6rem 0 0.75rem;
}

.wiki-admin-details summary {
  cursor: pointer;
  color: var(--muted);
}

.wiki-admin-details pre {
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--border);
  padding: 0.65rem;
  background: rgba(5, 6, 8, 0.94);
  color: #d6dde6;
}

.wiki-admin-thumb {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #0a0d12;
}

.wiki-admin-reason {
  min-width: 140px;
  border: 1px solid var(--border);
  background: #050608;
  color: var(--text);
  padding: 0.3rem 0.45rem;
}

.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-password-field {
  position: relative;
}

.auth-password-field input[data-password-input] {
  padding-right: 5.6rem;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.35rem;
  cursor: pointer;
}

.auth-password-toggle:hover {
  color: var(--text);
}

.auth-password-toggle:focus-visible {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent, #4f7cff) 60%, var(--border));
  border-radius: 0.45rem;
  outline: none;
}

.auth-password-toggle__icon {
  width: 0.95rem;
  height: 0.6rem;
  border: 1.6px solid currentColor;
  border-radius: 999px;
  position: relative;
  display: inline-block;
}

.auth-password-toggle__icon::after {
  content: '';
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 50%;
  background: currentColor;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.auth-password-toggle.is-visible .auth-password-toggle__icon::before {
  content: '';
  position: absolute;
  width: 1.05rem;
  height: 1.6px;
  background: currentColor;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-28deg);
}

.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;
}
.fancy-select__button[aria-invalid='true'] { border-color: #ff5563; }
.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: min(100%, 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: min(100%, 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);
}
.wizard-release-media__previews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.wizard-release-media__previews[hidden] { display: none; }
.wizard-release-media__previews figure { margin: 0; min-width: 0; }
.wizard-release-media__previews img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #080b0f;
  border: 1px solid var(--border);
}
.wizard-release-media__previews figcaption {
  margin-top: 6px;
  font-size: 0.75rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  color: var(--muted);
}
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;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  color: #e4e9f5;
  padding: 0.62rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  appearance: none;
}
.admin-account-filter__search input::placeholder {
  color: color-mix(in srgb, var(--muted) 88%, #ffffff 12%);
}
.admin-account-filter__search input:focus {
  border-color: var(--accent);
  outline: none;
}
.admin-account-filter__search input::-webkit-search-decoration,
.admin-account-filter__search input::-webkit-search-cancel-button,
.admin-account-filter__search input::-webkit-search-results-button,
.admin-account-filter__search input::-webkit-search-results-decoration {
  appearance: none;
}
.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 {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 0.5rem;
  }
  .article-form .draft-actions > .button { min-height: 44px; }
  .article-form .wizard-banner {
    grid-column: 1 / -1;
  }
  .article-form .article-status {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0.25rem 0 0.5rem;
  }
  .article-form .article-status p { margin: 0; }
  .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;
  }
  .setup-shell { max-width: 1080px; }
  .catalog-results { scroll-margin-top: 8rem; }
  .catalog-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; }
  .setup-wizard .wizard-track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .setup-wizard .wizard-panel { scroll-margin-top: 8rem; }
  .setup-wizard .onboarding-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
  .setup-status-row, .setup-skip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem; }
  .setup-avatar { display: grid; justify-items: start; gap: 0.65rem; min-width: 0; }
  .setup-avatar .file-drop { width: 100%; }
  .setup-avatar .file-drop input[type="file"] { width: 100%; height: 100%; }
  .setup-avatar .file-drop:focus-within { outline: 2px solid var(--accent, #2f7dff); outline-offset: 3px; }
  .setup-avatar .file-drop[aria-busy="true"] { opacity: 0.65; cursor: wait; }
  .setup-avatar img { object-fit: cover; border: 1px solid var(--border); }
  .setup-actions { margin-top: 1rem; justify-content: flex-end; }
  .setup-skip { margin-top: 1.5rem; font-size: 0.85rem; }
  .setup-review { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 0.6rem 1rem; margin: 1.5rem 0; }
  .setup-review dt { color: var(--muted); }
  .setup-review dd { margin: 0; overflow-wrap: anywhere; }
  .setup-wizard [hidden] { display: none !important; }
  @media (max-width: 540px) {
    .setup-wizard .wizard-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .setup-wizard .wizard-panel { padding: 1rem; }
    .setup-review { grid-template-columns: 1fr; gap: 0.3rem; }
    .setup-review dd { margin-bottom: 0.6rem; }
  }
  .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;
}
.form-grid.watchface-editor {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.watchface-editor > .full { grid-column: 1 / -1; }
#coupon-stock { margin-top: 2rem; scroll-margin-top: 6rem; }
#coupon-stock .resource-list li,
.watchface-release-history li { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.coupon-stock__form > .full { grid-column: 1 / -1; }
.watchface-editor > h2 { margin: 1.5rem 0 0; }
.watchface-editor fieldset {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--border);
}
.watchface-editor legend { padding: 0 0.4rem; }
.watchface-editor__section { border: 1px solid var(--border); padding: 1rem; min-width: 0; }
.watchface-editor__section > summary { cursor: pointer; font-weight: 600; }
.watchface-editor__section[open] > summary { margin-bottom: 1.25rem; }
.watchface-editor [hidden], .draft-recovery[hidden], .draft-recovery [hidden] { display: none !important; }
.watchface-editor__previews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1rem;
}
.watchface-editor__preview { display: grid; gap: 1rem; }
.watchface-editor .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.watchface-editor .form-grid > .full { grid-column: 1 / -1; }
.watchface-editor label.checkbox { display: flex; flex-direction: row; align-items: center; }
.watchface-editor label.checkbox input,
.watchface-editor .pill-grid input { display: inline-block; width: auto; }
.watchface-editor .pill-grid label { border-radius: 0; flex-direction: row; }
.watchface-editor .pill-grid input:checked + span { background: none; }
.watchface-editor .pill-grid label:has(input:checked) { border-color: var(--accent); }
.watchface-editor .pill-grid label:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) {
  .form-grid.watchface-editor,
  .watchface-editor .form-grid { grid-template-columns: minmax(0, 1fr); }
}


/* Wiki review and timeline controls use the existing page/form palette. */
.wiki-revision-diff { table-layout: fixed; width: 100%; }
.wiki-revision-diff th:first-child { width: 20%; }
.wiki-revision-diff pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font: inherit; }
.wiki-timeline-overview { display: flex; align-items: center; gap: .75rem; margin: .75rem 0; color: var(--muted); }
.wiki-timeline-overview input { min-width: 0; flex: 1; }
.wiki-admin-reason, .wiki-timeline-controls input[type='search'] { max-width: 100%; }

.wiki-review-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.app-release-channel { padding: 1rem 0 1.5rem; border-bottom: 1px solid var(--border); }
.app-release-gallery { display:flex; flex-wrap:wrap; gap:1rem; }
.app-release-gallery img { width:auto; max-width:100%; max-height:28rem; object-fit:contain; }

/* App product pages share the watch-face gallery, with their own content layout. */
.watchapp-product { --app-product-gap: clamp(1.5rem, 4vw, 3.5rem); }
.watchapp-product [id] { scroll-margin-top: 6rem; }
.app-product-nav { border-block: 1px solid var(--border); background: var(--surface, #080d10); }
.app-product-nav .shell { display: flex; gap: 1.75rem; overflow-x: auto; padding-block: .9rem; }
.app-product-nav a { color: var(--muted); white-space: nowrap; font-size: .88rem; text-decoration: none; }
.app-product-nav a:hover, .app-product-nav a:focus-visible { color: var(--text); }
.app-product-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .85fr); gap: var(--app-product-gap); align-items: start; }
.app-product-grid > *, .app-product-sidebar > * { min-width: 0; }
.app-product-media .section-heading { align-items: baseline; margin-bottom: 1rem; }
.app-product-media .section-heading p { font-size: .85rem; }
.watchapp-product .gallery__primary { height: clamp(20rem, 36vw, 29rem); aspect-ratio: auto; }
.watchapp-product .gallery__stage { width: 100%; height: 100%; }
.watchapp-product .gallery__stage img, .watchapp-product .gallery__stage video { width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.watchapp-product .gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr)); gap: .5rem; }
.watchapp-product .gallery-thumb { min-width: 0; }
.watchapp-product .gallery-thumb img { width: 100%; height: 4.75rem; object-fit: contain; }
.watchapp-product .gallery-thumb span { font-size: .65rem; }
.app-product-sidebar { display: grid; gap: 1.5rem; }
.app-product-downloads, .app-product-facts, .app-product-card { padding: clamp(1.1rem, 2.4vw, 1.75rem); border: 1px solid var(--border); background: var(--panel, #05090c); }
.app-product-downloads { border-top: 2px solid var(--blue, #2e70e8); background: linear-gradient(145deg, rgba(40, 105, 220, .09), transparent 65%), var(--panel, #05090c); }
.app-product-downloads > h2, .app-product-facts > h2, .app-product-card > h2 { font-size: 1.15rem; margin: 0 0 1.3rem; }
.app-product-download + .app-product-download { border-top: 1px solid var(--border); margin-top: 1.5rem; padding-top: 1.5rem; }
.app-product-download__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.app-product-download__heading h3 { margin: 0; font-size: 1.15rem; }
.app-product-price { color: var(--text); font-weight: 600; }
.app-product-tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 1rem 0; }
.app-product-tags li { border: 1px solid var(--border); color: var(--muted); font-size: .77rem; padding: .3rem .5rem; }
.app-product-download__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.15rem; }
.app-product-download__actions .button { flex: 1 1 auto; min-width: 0; gap: .8rem; justify-content: center; }
.app-product-filename { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.app-product-disclosure { border-top: 1px solid var(--border); padding-top: .85rem; margin-top: 1rem; }
.app-product-disclosure summary { cursor: pointer; color: var(--muted); font-size: .85rem; min-height: 2rem; }
.app-product-disclosure p { font-size: .85rem; line-height: 1.65; }
.app-product-checksum { display: block; overflow-wrap: anywhere; font-size: .75rem; }
.app-product-facts .spec-list { margin: 0; }
.app-product-facts .spec-list li { gap: 1.5rem; align-items: baseline; padding-inline: 0; }
.app-product-facts .spec-list strong { text-align: right; overflow-wrap: anywhere; }
.app-product-description > h2 { margin-top: 0; }
.app-product-description .editor-content { max-width: 70ch; line-height: 1.8; }
.app-product-description .editor-content a { color: var(--blue, #4a8bff); text-decoration: underline; text-underline-offset: .15em; }
.app-product-features { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.app-product-features li { display: flex; align-items: baseline; gap: .7rem; font-size: .9rem; }
.app-product-features li::before { content: '+'; color: var(--blue, #4a8bff); }
.app-product-permission-note { color: var(--muted); font-size: .85rem; line-height: 1.7; }
.app-product-release { border-block-start: 1px solid var(--border); padding: 1.25rem 0; }
.app-product-release summary { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; cursor: pointer; min-height: 2rem; }
.app-product-release summary::before { content: '+'; color: var(--blue, #4a8bff); }
.app-product-release[open] summary::before { content: '−'; }
.app-product-release time { margin-left: auto; color: var(--muted); font-size: .8rem; }
.app-product-noscript { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
@media (max-width: 800px) {
  .app-product-grid { grid-template-columns: minmax(0, 1fr); }
  .app-product-nav .shell { gap: 1.3rem; }
  .watchapp-product .gallery__primary { height: clamp(16rem, 80vw, 27rem); }
  .watchapp-product .gallery__thumbs { display: flex; flex-wrap: nowrap; overflow-x: auto; }
  .watchapp-product .gallery-thumb { flex: 0 0 4.5rem; }
  .app-product-about .app-product-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .app-product-about .app-product-sidebar { grid-template-columns: minmax(0, 1fr); }
  .app-product-downloads, .app-product-facts, .app-product-card { padding: 1.15rem; }
  .app-product-nav a { font-size: .8rem; }
}

@media (max-width:640px) {
  .watchface-wizard .wizard-header { min-width:0; }
  .watchface-wizard .wizard-track { display:flex; overflow-x:auto; gap:0.4rem; padding-bottom:0.4rem; }
  .watchface-wizard .wizard-track__item { flex:0 0 auto; width:auto; min-width:7.5rem; padding:0.65rem 0.75rem; }
}
.correction-file-list{list-style:none;margin:1rem 0;padding:0;display:grid;gap:1rem}
.correction-file-list>li{display:grid;grid-template-columns:64px minmax(0,1fr);gap:.75rem;padding:1rem 0;border-bottom:1px solid var(--border,#242b36);align-items:center}
.correction-file-list img{object-fit:cover;max-width:64px}.correction-file-list label{min-width:0;grid-column:1/-1}.correction-file-list>li>div{min-width:0;overflow-wrap:anywhere}.correction-file-list input[type=file]{width:100%;min-width:0;max-width:100%}
.correction-file-icon{width:64px;height:64px;display:grid;place-items:center;border:1px solid var(--border,#242b36);font-size:.8rem}
.correction-attachments{border:1px solid var(--border,#242b36);padding:1rem}.correction-attachments summary{cursor:pointer;font-weight:600}
@media(min-width:900px){.correction-file-list>li{grid-template-columns:64px minmax(0,1fr) minmax(160px,1fr) minmax(100px,.7fr)}.correction-file-list label{grid-column:auto}}
.submission-changes{margin:1rem 0}.submission-changes summary{cursor:pointer}.submission-changes td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;max-width:32rem}.submission-changes table{width:100%}
.review-change-image{display:inline-block;object-fit:contain;max-width:100%;margin:.5rem}
.published-comparison{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.5rem;padding:1rem 0;border-bottom:1px solid var(--border,#242b36)}
.published-comparison>div,.published-comparison label{min-width:0}.published-comparison__text{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;color:var(--text-muted,#aeb8c6);max-height:24rem;overflow:auto}
.published-comparison textarea{width:100%;min-width:0}@media(max-width:700px){.published-comparison{grid-template-columns:minmax(0,1fr);gap:.5rem}}
.library-hero .shell{display:block}.library-hero{padding:2.5rem 0}.library-hero .hero__copy{max-width:48rem}.library-tabs{display:flex;flex-wrap:wrap;border-bottom:1px solid var(--border,#242b36);gap:.3rem;margin-bottom:2rem}.library-tabs a{padding:.8rem 1rem;color:inherit}.library-tabs a[aria-current=page]{border-bottom:2px solid var(--accent,#3477ed);background:rgba(52,119,237,.09)}.library-tabs span{color:var(--text-muted,#aeb8c6);margin-left:.4rem}
.library-toolbar{display:flex;align-items:end;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1.5rem}.library-search{display:flex;align-items:end;gap:.6rem;flex-wrap:wrap}.library-search label{display:grid;gap:.4rem}.library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));list-style:none;padding:0;gap:1.25rem}.library-card{min-width:0;border:1px solid var(--border,#242b36);padding:1rem;display:flex;flex-direction:column}.library-card__main{color:inherit;overflow-wrap:anywhere}.library-card__main img{display:block;width:100%;height:180px;object-fit:contain;background:rgba(0,0,0,.15)}.library-card__type{display:grid;place-items:center;min-height:6rem;color:var(--text-muted,#aeb8c6);border-bottom:1px solid var(--border,#242b36)}.library-card h3{margin:.9rem 0}.library-card__actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:auto;padding-top:.75rem}.library-pagination{display:flex;justify-content:center;align-items:center;gap:1rem;margin-top:2rem}.library-empty{padding:2rem 0}
.collection-form-fields{border:0;padding:0;min-width:0}.collection-builder{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:2rem;margin:2rem 0}.collection-builder section{min-width:0}.collection-catalog-results,.collection-selected-list{list-style:none;padding:0;display:grid;gap:.5rem}.collection-catalog-results{max-height:38rem;overflow:auto}.collection-catalog-results>li,.collection-selected-list>li{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:.75rem;border-bottom:1px solid var(--border,#242b36);padding:.75rem 0}.collection-selected-list>li{grid-template-columns:1.3rem 64px minmax(0,1fr)}.collection-catalog-results strong,.collection-selected-list strong{overflow-wrap:anywhere}.collection-catalog-results li>div span{display:block;font-size:.85rem;color:var(--text-muted,#aeb8c6)}.collection-builder img{object-fit:contain;width:64px;height:64px}.collection-thumbnail-placeholder{display:grid;place-items:center;width:64px;height:64px;font-size:.7rem;border:1px solid var(--border,#242b36);text-align:center}.collection-order-controls{grid-column:2/-1;display:flex;gap:.3rem;flex-wrap:wrap}.collection-preview{border:1px solid var(--border,#242b36);padding:1rem;margin:1.5rem 0}.collection-preview summary{cursor:pointer;font-weight:600}.collection-preview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr));list-style:none;padding:0;gap:1rem}.collection-preview-grid li{display:flex;flex-direction:column;gap:.5rem;overflow-wrap:anywhere}.collection-preview-grid img{height:150px;width:100%;object-fit:contain}.collection-review-items{padding-left:1.5rem}.collection-review-items li{padding:.5rem 0;overflow-wrap:anywhere}.collection-review-items img{object-fit:contain;vertical-align:middle;margin-right:.7rem}.collection-workspaces{list-style:none;padding:0}.collection-workspaces>li{padding:1.5rem 0;border-bottom:1px solid var(--border,#242b36);display:flex;gap:1rem;justify-content:space-between;align-items:center;flex-wrap:wrap}.collection-workspaces h2{margin:0 0 .5rem;font-size:1.25rem}@media(max-width:850px){.collection-builder{grid-template-columns:minmax(0,1fr)}.collection-catalog-results{max-height:25rem}.collection-builder .library-pagination{gap:.5rem}}
.collection-builder--readonly{grid-template-columns:minmax(0,1fr)}.library-search input[type=search]{background:var(--bg-input,#0c1015);border:1px solid var(--border,#242b36);color:inherit;padding:.65rem .75rem;font:inherit;min-width:0;max-width:100%}.library-search label{min-width:0;max-width:100%}
.library-pagination[hidden]{display:none}

.coupon-wallet-card__heading { display: flex; align-items: start; justify-content: space-between; gap: .75rem; }
.coupon-wallet-card__heading h3 { margin: 0; overflow-wrap: anywhere; }
.coupon-wallet-card__heading .status-pill { flex: none; }
.coupon-wallet-code { display: block; padding: .75rem; border: 1px solid var(--border); overflow-wrap: anywhere; user-select: all; }
.coupon-wallet-dates { font-size: .85rem; display: grid; gap: .6rem; }
.coupon-wallet-dates dt { color: var(--muted); }
.coupon-wallet-dates dd { margin: .2rem 0 0; }
@media (max-width: 480px) { .library-pagination { flex-wrap: wrap; gap: .75rem; } }
.browse-summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1rem 0}.browse-pagination{display:flex;align-items:center;justify-content:center;gap:1rem;flex-wrap:wrap;margin-top:2rem}#results{scroll-margin-top:5rem}
.smart-search__panel[hidden]{display:none}.smart-search__item{width:100%;text-align:left;color:inherit;text-decoration:none;font:inherit;border:0}.smart-search__item:focus-visible{outline:2px solid var(--accent,#3477ed);outline-offset:-2px;background:rgba(52,119,237,.14)}.smart-search__meta{display:block}.search-status{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.my-watch-links .actions { display:flex; flex-wrap:wrap; gap:.65rem; align-items:center; }
.my-watch-evidence { border-left:3px solid var(--accent, #3275ec); margin-bottom:1rem; }
.editor-operation-tools { margin-top:1rem; }
.editor-operation-tools [hidden] { display:none; }
.editor-operation-dialog { background:#10151e; color:#ecf1fa; border:1px solid #34445e; width:min(850px,94vw); max-height:88vh; overflow:auto; padding:1.5rem; }
.editor-operation-dialog::backdrop { background:rgba(0,0,0,.8); }
.editor-operation-previews { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.editor-operation-previews figure { margin:0; min-width:0; }
.editor-operation-previews img { width:100%; max-width:350px; }
.editor-operation-dialog li { overflow-wrap:anywhere; margin-block:.5rem; }
.editor-core-artwork { border:1px solid var(--border, #263548); padding:1rem; margin-block:1rem; min-width:0; }
.editor-core-artwork[hidden] { display:none; }
.editor-core-artwork h2 { font-size:1rem; margin:0 0 .5rem; }
.editor-core-artwork ul { list-style:none; padding:0; margin:0; display:grid; gap:.75rem; }
.editor-core-artwork li { display:grid; gap:.35rem; overflow-wrap:anywhere; padding-block:.5rem; border-top:1px solid var(--border, #263548); }
.editor-font-sample { font-size:clamp(1.3rem,4vw,2rem); padding:1rem; border:1px solid #34445e; overflow-wrap:anywhere; }
[data-current-font] { overflow-wrap:anywhere; }
/* Snapshot review shares Studio's square, restrained controls. */
.editor-review { width:min(1180px,96vw); padding:clamp(.9rem,2vw,1.5rem); background:var(--bg,#080b10); color:var(--text,#ecf1fa); }
.editor-review__header { display:flex; justify-content:space-between; align-items:start; gap:1rem; }
.editor-review__header h2 { margin:.2rem 0 .5rem; font-size:clamp(1.3rem,3vw,1.9rem); }
.editor-review__header .eyebrow { margin:0; }
.editor-review__header p { margin-block:.3rem; }
.editor-review__header .button { flex-shrink:0; }
.editor-review__intro { max-width:80ch; margin-block:.6rem .25rem; }
.editor-review__status { min-height:1.5em; color:var(--muted,#a8b6ca); margin-block:.25rem .6rem; font-size:.85rem; }
.editor-review__controls { display:flex; flex-wrap:wrap; gap:.65rem; align-items:end; padding-block:1rem; border-block:1px solid var(--border,#263548); }
.editor-review__controls label { display:grid; gap:.3rem; min-width:0; font-size:.8rem; }
.editor-review__custom { min-width:0; flex:1 1 280px; }
.editor-review__custom>summary { cursor:pointer; padding:.6rem; border:1px solid var(--border,#263548); width:fit-content; font-size:.85rem; }
.editor-review__metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.6rem; margin-top:.8rem; align-items:end; }
.editor-review__metrics input { width:100% !important; box-sizing:border-box; }
.editor-review__readout { font-size:.8rem; color:var(--muted,#a8b6ca); margin:0 0 .65rem; }
.editor-review__controls input,.editor-review__controls select,.editor-review__issues select { background:var(--panel,#10151e); color:inherit; border:1px solid var(--border,#263548); padding:.55rem; font:inherit; min-width:0; }
.editor-review__controls input[type="number"] { width:7.5rem; }
.editor-review__body { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(240px,1fr); gap:1.5rem; margin-block:1.3rem; }
.editor-review__previews,.editor-review__issues { min-width:0; }
.editor-review__pair { display:grid; grid-template-columns:1fr 1fr; gap:.8rem; }
.editor-review__pair figure { margin:0; min-width:0; }
.editor-review__pair img { display:block; width:100%; aspect-ratio:auto; background:#000; border:1px solid var(--border,#263548); }
.editor-review__pair img:not([src]),.editor-review__pair img[src=""] { min-height:150px; }
.editor-review__pair figcaption { font-weight:600; margin-block:.5rem .2rem; }
.editor-review__pair p { margin:0; font-size:.75rem; }
.editor-review__enlarge { display:block; width:100%; padding:0; background:transparent; border:0; cursor:zoom-in; color:inherit; }
.editor-review__enlarge:focus-visible { outline:2px solid var(--accent,#2c75ef); outline-offset:3px; }
.editor-review__zoom { width:min(700px,95vw); }
.editor-review__zoom img { display:block; width:100%; height:auto; margin-top:1rem; }
.editor-review__strip { display:flex; flex-wrap:wrap; gap:.4rem; margin-top:1rem; }
.editor-review__strip button { background:transparent; color:inherit; border:1px solid var(--border,#263548); padding:.5rem .65rem; font:inherit; font-size:.78rem; cursor:pointer; }
.editor-review__strip button[aria-pressed="true"] { border-color:var(--accent,#2c75ef); background:rgba(44,117,239,.1); }
.editor-review__issues h3 { margin-top:0; }
.editor-review__issues>select { width:100%; }
.editor-review__finding { border-top:1px solid var(--border,#263548); margin-top:.85rem; padding-top:.85rem; overflow-wrap:anywhere; }
.editor-review__finding strong { color:var(--muted,#a8b6ca); font-size:.75rem; text-transform:uppercase; letter-spacing:.04em; }
.editor-review__finding[data-severity="repair"] strong { color:#f2ba81; }
.editor-review__finding p { font-size:.85rem; margin-block:.35rem .6rem; }
.editor-review__finding .editor-review__layer { font-weight:600; }
.editor-review__finding-group { border-block:1px solid var(--border,#263548); padding-block:.8rem; margin-top:1rem; }
.editor-review__finding-group>summary { cursor:pointer; font-size:.9rem; }
.editor-review__actions { display:flex; flex-wrap:wrap; gap:.5rem; border-top:1px solid var(--border,#263548); padding-top:1rem; }
@media (max-width:760px) {
  .editor-review__body { grid-template-columns:minmax(0,1fr); }
  .editor-review__controls { display:grid; grid-template-columns:1fr 1fr; }
  .editor-review__custom { grid-column:1/-1; }
  .editor-review__metrics { grid-template-columns:1fr 1fr; }
  .editor-review__controls input,.editor-review__controls select { width:100%; max-width:100%; box-sizing:border-box; }
  .editor-review__header { flex-wrap:wrap; }
}
.editor-animation-repair .editor-review__pair canvas { width: 100%; height: auto; display: block; background: #000; }
.editor-animation-repair > label { display: grid; gap: .6rem; margin-block: 1rem; }
.editor-animation-repair input[type="range"] { width: 100%; min-width: 0; }
.editor-animation-repair output { color: var(--muted, #9bb1c7); font-variant-numeric: tabular-nums; }
.preserve-lines { white-space:pre-wrap; overflow-wrap:anywhere; }
.wiki-evidence td { min-width:10rem; overflow-wrap:anywhere; }
.app-maintenance > .full { grid-column:1 / -1; }
.app-maintenance fieldset { min-width:0; padding:1rem; border:1px solid var(--border); }
.app-maintenance [hidden] { display:none; }
.app-maintenance input[type="file"] { max-width:100%; }
.app-maintenance > .button { justify-self:start; align-self:start; }
.brand, .primary-nav a { white-space:nowrap; }
.account-toggle [data-account-label] { max-width:12ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (min-width:1001px) { .header-actions { flex-wrap:nowrap; flex-shrink:0; } }

/* Complete discussion controls */
.comment-thread label,.comment-edit form{display:grid;gap:.5rem}.comment-thread textarea{max-width:100%;width:100%}.comment__meta{flex-wrap:wrap}.comment-thread details{margin:.7rem 0}.comment__children{margin-left:clamp(.4rem,3vw,1.5rem)}.comment-thread [hidden]{display:none!important}.comment__body{min-width:0;overflow-wrap:anywhere}

.home-page-mode > main > .hero .shell { display:block; }

/* Single-column management pages share the ordinary hero hierarchy. */
.hero--single .shell { display:block; }
.hero--single .hero__copy { max-width:840px; }
.table-wrap { max-width:100%; overflow-x:auto; }
.inventory-table { width:100%; border-collapse:collapse; }
.inventory-table th,.inventory-table td { padding:.85rem .65rem; text-align:left; vertical-align:top; border-bottom:1px solid var(--line, #252a32); }
.inventory-table th { font-size:.8rem; color:var(--muted); font-weight:500; }
.inventory-table small { display:block; }
.inventory-filters input[type=checkbox] { width:auto; }
.home-page-mode .card-grid { grid-template-columns:repeat(auto-fill,minmax(min(240px,100%),1fr)); }
.comment button.link { background:transparent; border:0; padding:.2rem 0; color:var(--accent, #3f7ef8); font:inherit; font-size:.8rem; text-transform:none; cursor:pointer; }
.comment__meta button.link { min-width:1.5rem; min-height:1.5rem; }
.comment { scroll-margin-top:6rem; }
.comment button.link:focus-visible { outline:2px solid var(--accent, #3f7ef8); outline-offset:3px; }

.studio-inventory-hero { padding-block:2.5rem; }
.studio-inventory-heading { display:flex; align-items:center; justify-content:space-between; gap:1.5rem; }
.studio-inventory-heading h1 { font-size:clamp(1.85rem,3.4vw,2.75rem); margin:0 0 .35rem; }
.studio-inventory-heading .lede { margin:0; font-size:1rem; }
.studio-inventory-create { display:flex; flex-wrap:wrap; gap:.5rem; justify-content:flex-end; }
.studio-inventory { padding-top:1.25rem; }
.studio-inventory-tools { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.5rem 1.25rem; margin-bottom:1.2rem; font-size:.85rem; }
.studio-inventory-filter label { display:grid; gap:.4rem; min-width:0; color:var(--muted); font-size:.8rem; }
.studio-inventory-search { display:grid; grid-template-columns:minmax(12rem,1fr) minmax(10rem,15rem) auto; gap:.75rem; align-items:end; }
.studio-inventory-filter input,.studio-inventory-filter select { width:100%; min-width:0; }
.studio-inventory-filter select,.studio-inventory-filter input[name=platform] { min-height:42px; }
.studio-inventory-filter input[type=search] { min-height:42px; padding:.65rem .8rem; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg-soft,#080b0e); color:var(--text); font:inherit; appearance:none; }
.studio-inventory-filter input[type=search]::placeholder { color:var(--muted); }
.studio-inventory-filter input[type=search]:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.inventory-filter-disclosure { margin-top:.6rem; }
.inventory-filter-disclosure summary { cursor:pointer; padding:.6rem 0; color:var(--muted); font-size:.8rem; width:fit-content; }
.studio-inventory-extra { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) auto auto; gap:.75rem; align-items:end; padding:.5rem 0 1rem; }
.studio-inventory-filter .studio-inventory-attention { display:flex; gap:.5rem; align-items:center; min-height:42px; white-space:nowrap; }
.studio-inventory-attention input { width:auto; }
.studio-inventory-states { display:flex; flex-wrap:wrap; gap:0 1.4rem; border-bottom:1px solid var(--border); margin-top:.6rem; }
.studio-inventory-states a { color:var(--muted); font-size:.85rem; padding:.85rem 0; border-bottom:2px solid transparent; text-decoration:none; }
.studio-inventory-states a[aria-current] { color:var(--text); border-color:var(--accent); }
.studio-inventory-states a:hover { color:var(--text); }
.studio-inventory-results { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin:1.2rem 0 .4rem; color:var(--muted); font-size:.8rem; }
.studio-inventory-results p { margin:0; }
.studio-inventory-results strong { color:var(--text); font-weight:500; }
.studio-inventory-columns,.studio-inventory-item { display:grid; grid-template-columns:minmax(0,1fr) 10.5rem 7rem 10.5rem; gap:1.25rem; align-items:start; }
.studio-inventory-columns { padding:.75rem .6rem; border-bottom:1px solid var(--border); color:var(--muted); font-size:.7rem; letter-spacing:.05em; text-transform:uppercase; }
.studio-inventory-columns > :last-child { text-align:right; }
.studio-inventory-list { list-style:none; padding:0; margin:0; }
.studio-inventory-item { padding:1.2rem .6rem; border-bottom:1px solid var(--border); }
.studio-inventory-item > div { min-width:0; }
.studio-inventory-item__work h2 { font-size:1rem; line-height:1.4; margin:0 0 .25rem; font-weight:600; overflow-wrap:anywhere; }
.studio-inventory-item__work h2 a { color:var(--text); text-decoration:none; }
.studio-inventory-item__work h2 a:hover { color:var(--accent); }
.studio-inventory-item__type { margin:0; font-size:.75rem; color:var(--muted); overflow-wrap:anywhere; }
.studio-inventory-item__feedback { margin:.6rem 0 0; font-size:.8rem; line-height:1.5; color:var(--text); overflow-wrap:anywhere; }
.studio-inventory-item__feedback > span { color:var(--muted); }
.studio-inventory-status { display:inline-block; font-size:.75rem; line-height:1.4; padding:.2rem .45rem; border:1px solid var(--border); color:var(--muted); }
.studio-inventory-status--draft { color:#a9caff; border-color:rgba(84,144,235,.3); }
.studio-inventory-status--pending { color:#e6c883; border-color:rgba(230,200,131,.3); }
.studio-inventory-status--rejected { color:#ffadb5; border-color:rgba(255,140,152,.35); }
.studio-inventory-status--published { color:#8ad5bb; border-color:rgba(61,213,152,.3); }
.studio-inventory-item__state small { display:block; margin-top:.35rem; font-size:.7rem; color:var(--muted); line-height:1.45; }
.studio-inventory-item__date { font-size:.75rem; color:var(--muted); padding-top:.3rem; }
.studio-inventory-date-label { display:none; }
.studio-inventory-item__action { text-align:right; }
.studio-inventory-item__action .button { justify-content:flex-end; white-space:normal; text-align:right; gap:.4rem; }
.studio-inventory-empty { padding:2.5rem 0; border-bottom:1px solid var(--border); }
.studio-inventory-empty h2 { margin:0 0 .5rem; font-size:1.25rem; }
.studio-inventory-empty p { max-width:45rem; margin:.5rem 0 1rem; }
.studio-inventory-pagination { margin-top:1.5rem; }
.studio-inventory a:focus-visible,.studio-inventory summary:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }

@media(max-width:1000px) {
 .studio-inventory-heading { align-items:flex-start; }
 .studio-inventory-create { max-width:22rem; }
 .studio-inventory-extra { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .studio-inventory-columns,.studio-inventory-item { grid-template-columns:minmax(0,1fr) 9.5rem 6rem 9rem; gap:.8rem; }
}
@media(max-width:720px) {
 .studio-inventory-hero { padding-block:1.75rem; }
 .studio-inventory-heading { display:block; }
 .studio-inventory-create { justify-content:flex-start; margin-top:1.15rem; max-width:none; }
 .studio-inventory-search { grid-template-columns:minmax(0,1fr) auto; }
 .studio-inventory-search > label:first-child { grid-column:1/-1; }
 .studio-inventory-extra { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .studio-inventory-states { gap:0 1.15rem; }
 .studio-inventory-columns { display:none; }
 .studio-inventory-item { grid-template-columns:minmax(0,1fr) auto; gap:.8rem; padding:1.2rem 0; }
 .studio-inventory-item__work { grid-column:1/-1; }
 .studio-inventory-item__state { grid-column:1; grid-row:2; }
 .studio-inventory-item__date { grid-column:1; grid-row:3; padding:0; }
 .studio-inventory-date-label { display:inline; }
 .studio-inventory-item__action { grid-column:2; grid-row:2/4; align-self:center; max-width:11rem; }
 .studio-inventory-item__action .button { min-height:44px; padding-inline:.6rem; }
}
@media(max-width:400px) {
 .studio-inventory-extra { grid-template-columns:minmax(0,1fr); }
 .studio-inventory-create .button { flex:1 1 auto; }
}
.library-workbench__heading h2{margin-bottom:.4rem}
.library-workbench__filters{display:flex;align-items:end;flex-wrap:wrap;gap:1rem;margin:1.5rem 0}
.library-workbench__filters label{flex:1 1 14rem;min-width:0}
.library-workbench__filters input{width:100%;min-width:0}
.library-workbench__filters label:first-child{flex-grow:2}
.library-workbench__batch{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem 1.3rem;padding:1rem;border:1px solid var(--border, #283341);margin:1.5rem 0 2.5rem}
.library-workbench__batch label{display:flex;align-items:center;gap:.5rem;margin:0}
.library-workbench__batch input[type=checkbox],.library-candidate__select input{width:1.1rem;height:1.1rem;accent-color:var(--accent,#2875ee);flex:none}
.library-workbench__batch p{flex-basis:100%;font-size:.82rem;margin:0}
.library-workbench__families{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2.5rem 1.4rem;margin-top:2.5rem;align-items:start}
.library-workbench__family{min-width:0}
.library-workbench__family--multiple{grid-column:1/-1}
.library-workbench__family--single .library-workbench__variants{grid-template-columns:minmax(0,1fr)}
.library-workbench__family-heading{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--border,#283341);padding-bottom:.6rem;margin-bottom:1.2rem}
.library-workbench__family-heading h2{font-size:1.3rem;margin:0}
.library-workbench__family-heading span{font-size:.85rem;color:var(--text-muted,#a3b3c8)}
.library-workbench__variants{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.4rem;align-items:start}
.library-candidate{min-width:0;border:1px solid var(--border,#283341);padding:1.1rem;background:var(--surface,#080d12)}
.library-candidate__title{display:flex;align-items:start;gap:.7rem;margin-bottom:1rem}
.library-candidate__title h3{font-size:1.15rem;margin:0 0 .3rem;overflow-wrap:anywhere}
.library-candidate__title p{font-size:.85rem;margin:0}
.library-candidate__select{margin:.1rem 0 0;cursor:pointer}
.library-candidate .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.library-candidate__previews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}
.library-candidate__previews figure{min-width:0;margin:0}
.library-candidate__previews img,.library-candidate__unavailable{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;background:#030506}
.library-candidate__previews a{display:block}
.library-candidate__unavailable{display:grid;place-items:center;text-align:center;font-size:.75rem;padding:.6rem;color:var(--text-muted,#a3b3c8)}
.library-candidate__previews figcaption{font-size:.72rem;color:var(--text-muted,#a3b3c8);margin-top:.4rem}
.library-candidate__scope{font-size:.75rem;line-height:1.5}
.library-candidate__flags{list-style:none;display:flex;flex-wrap:wrap;gap:.4rem;padding:0;margin:.8rem 0}
.library-candidate__flags li{font-size:.72rem;letter-spacing:.02em;color:#d4b778;border:1px solid #59482b;padding:.15rem .45rem}
.library-candidate__description,.library-candidate>p{font-size:.85rem;overflow-wrap:anywhere}
.library-candidate__warning{border-left:2px solid #c39b52;padding-left:.7rem;color:#dfc68f}
.library-candidate details{border-top:1px solid var(--border,#283341);margin-top:1rem;padding-top:.8rem}
.library-candidate summary{cursor:pointer;font-size:.85rem}
.library-candidate__edit form{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;padding-top:1rem}
.library-candidate__edit label{min-width:0}
.library-candidate__evidence dl{display:grid;grid-template-columns:6.5rem minmax(0,1fr);gap:.5rem;font-size:.76rem}
.library-candidate__evidence dt{color:var(--text-muted,#a3b3c8)}
.library-candidate__evidence dd{margin:0;overflow-wrap:anywhere;min-width:0}
.library-candidate__evidence code{white-space:normal;overflow-wrap:anywhere;font-size:.72rem}
.library-candidate__evidence ul{font-size:.76rem;line-height:1.65;padding-left:1.1rem;overflow-wrap:anywhere}
.library-workbench__empty{padding:2rem 0}
@media(max-width:800px){.library-workbench__families,.library-workbench__variants{grid-template-columns:minmax(0,1fr)}.library-candidate__previews{max-width:36rem}.library-workbench__family-heading{align-items:start}}
@media(max-width:420px){.library-candidate{padding:.8rem}.library-candidate__previews{gap:.35rem}.library-candidate__unavailable{font-size:.65rem;padding:.3rem}.library-candidate__previews figcaption{font-size:.65rem}.library-candidate__evidence dl{grid-template-columns:minmax(0,1fr)}.library-workbench__batch{padding:.8rem}}
.footer-report-link { appearance:none;border:0;padding:0;background:none;color:inherit;font:inherit;cursor:pointer; }
.footer-report-link:hover { color:var(--accent,#2f7dff); }
.footer-report-link:focus-visible { outline:1px solid var(--accent,#2f7dff);outline-offset:4px; }
/* Public home: content first, with the existing square-edged house style. */
.home-page-mode > main > .home-hero > .shell { display:grid; grid-template-columns:1.05fr 1fr; gap:3rem; align-items:center; }
.home-hero { padding-bottom:3rem; }
.home-hero .hero__copy { min-width:0; }
.home-page-mode .home-hero h1 { max-width:15ch; margin-bottom:1rem; }
.home-hero .lede { max-width:46ch; margin-bottom:1.75rem; }
.home-project { display:grid; grid-template-columns:minmax(0,1fr) minmax(120px,170px); gap:1.5rem; align-items:center; padding:1.5rem 0 1.5rem 2rem; border-left:1px solid color-mix(in srgb,var(--accent) 40%,var(--border)); }
.home-project h2 { font-size:1.5rem; margin:.5rem 0 .7rem; line-height:1.2; }
.home-project__copy > p:not(.home-kicker) { color:var(--muted); font-size:.9rem; line-height:1.6; margin:0 0 1rem; }
.home-project > img { width:100%; height:auto; display:block; }
.home-kicker { color:var(--muted); font-size:.7rem; letter-spacing:.05em; text-transform:uppercase; margin:0; line-height:1.6; }
.home-text-link { color:var(--accent); font-size:.85rem; line-height:1.6; }
.home-text-link > [aria-hidden] { display:inline-block; margin-left:.35em; transition:translate var(--motion-fast,140ms) ease; }
.home-page-mode .section-heading { gap:1rem; align-items:baseline; }
.home-page-mode .section-heading > h2 { margin:0; font-size:1.55rem; }
.home-page-mode .section-heading > a { flex-shrink:0; }
.home-page-mode .home-face-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.home-face-grid .watchface-card { min-width:0; }
.home-face-grid .watchface-card__preview { aspect-ratio:1; flex:none; background:transparent; overflow:visible; }
.home-face-grid .watchface-card__preview img { position:absolute; inset:0; width:100%; height:100%; max-width:100%; padding:clamp(.5rem,.9vw,.85rem); object-fit:contain; object-position:center; }
.home-face-grid .watchface-card__heading { flex-wrap:wrap; }
.home-face-grid .watchface-card h3 { overflow-wrap:anywhere; }
.home-empty { color:var(--muted); padding:1rem 0; }
.home-reading,.home-help { background:var(--panel); }
.home-stories { display:grid; grid-template-columns:1.25fr 1fr; column-gap:3rem; }
.home-story { padding:1.1rem 0; min-width:0; }
.home-story--lead { grid-row:span 2; padding:1.1rem 3rem 1.1rem 0; border-right:1px solid var(--border); }
.home-story:not(.home-story--lead) + .home-story { border-top:1px solid var(--border); }
.home-story time { color:var(--muted); font-size:.75rem; }
.home-story h3 { margin:.65rem 0; font-size:1.2rem; line-height:1.4; overflow-wrap:anywhere; }
.home-story--lead h3 { font-size:clamp(1.65rem,2.6vw,2.15rem); line-height:1.25; }
.home-story p { color:var(--muted); font-size:.9rem; line-height:1.7; margin:.7rem 0 1rem; }
.home-story--lead p { font-size:1rem; }
.home-story .home-text-link { display:inline-flex; align-items:center; gap:.25rem; min-height:36px; }
.home-story .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.home-app-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; }
.home-app { display:flex; gap:1rem; padding:1.1rem 0; border-top:1px solid var(--border); align-items:flex-start; min-width:0; }
.home-app > img { width:72px; height:72px; object-fit:contain; flex-shrink:0; }
.home-app > div { min-width:0; flex:1; }
.home-app > [aria-hidden] { color:var(--accent); font-size:.85rem; }
.home-app h3 { margin:.25rem 0 .5rem; font-size:1.05rem; line-height:1.35; overflow-wrap:anywhere; }
.home-app div > p:last-child { margin:0; color:var(--muted); font-size:.8rem; line-height:1.6; }
.home-help-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:3rem; }
.home-help-grid--with-wiki { grid-template-columns:1.45fr 1fr; }
.home-tools { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; }
.home-help-grid--with-wiki .home-tools { grid-template-columns:minmax(0,1fr); gap:0; }
.home-tools > a { padding:1.1rem 0; border-top:1px solid var(--border); min-width:0; }
.home-tools h3 { font-size:1rem; font-weight:500; margin:0 0 .45rem; display:flex; justify-content:space-between; gap:.5rem; }
.home-tools h3 > span { color:var(--accent); }
.home-tools p,.home-wiki__intro { color:var(--muted); margin:0; line-height:1.65; font-size:.85rem; }
.home-wiki { border-left:1px solid var(--border); padding-left:2rem; min-width:0; }
.home-wiki > ul { padding:0; list-style:none; margin:1rem 0; }
.home-wiki li { border-top:1px solid var(--border); }
.home-wiki li > a { min-height:52px; padding:.9rem 0; display:flex; align-items:center; justify-content:space-between; gap:1rem; font-size:.95rem; }
.home-wiki li span { color:var(--accent); }
.home-project:focus-visible,.home-app:focus-visible,.home-tools > a:focus-visible,.home-wiki a:focus-visible,.home-story a:focus-visible,.home-text-link:focus-visible { outline:2px solid var(--accent); outline-offset:5px; }
@media (hover:hover) and (pointer:fine) {
  .home-story h3 a:hover,.home-tools > a:hover h3,.home-app:hover h3 { color:var(--accent); }
  .home-text-link:hover > [aria-hidden],.home-project:hover .home-text-link > [aria-hidden] { translate:2px -2px; }
}
@media (max-width:1050px) {
  .home-page-mode > main > .home-hero > .shell { gap:2rem; grid-template-columns:1fr 1fr; }
  .home-project { padding-left:1.5rem; gap:1rem; grid-template-columns:minmax(0,1fr) 120px; }
  .home-app-list { grid-template-columns:minmax(0,1fr); gap:0; }
  .home-app > img { width:64px; height:64px; }
}
@media (max-width:760px) {
  .home-page-mode > main > .home-hero > .shell { grid-template-columns:minmax(0,1fr); gap:2rem; }
  .home-project { border-left:0; border-top:1px solid var(--border); padding:1.5rem 0 0; grid-template-columns:minmax(0,1fr) 140px; }
  .home-page-mode .home-hero h1 { max-width:19ch; }
  .home-page-mode .home-face-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
  .home-stories { gap:1.75rem; }
  .home-story--lead { padding-right:1.75rem; }
  .home-help-grid--with-wiki { grid-template-columns:minmax(0,1fr); }
  .home-wiki { border-left:0; padding-left:0; }
}
@media (max-width:520px) {
  .home-project { grid-template-columns:minmax(0,1fr) 110px; gap:1rem; }
  .home-project h2 { font-size:1.2rem; }
  .home-project__copy > p:not(.home-kicker) { font-size:.8rem; }
  .home-page-mode .section-heading > h2 { font-size:1.25rem; }
  .home-page-mode .section-heading > a { font-size:.75rem; }
  .home-face-grid .watchface-card__body { padding:.85rem; }
  .home-face-grid .watchface-card h3 { font-size:1rem; }
  .home-stories { grid-template-columns:minmax(0,1fr); gap:0; }
  .home-story--lead { grid-row:auto; padding-right:0; border-right:0; }
  .home-story + .home-story { border-top:1px solid var(--border); }
  .home-tools { grid-template-columns:minmax(0,1fr); gap:0; }
  .home-text-link { min-height:44px; display:inline-flex; align-items:center; }
}
/* Progressive scroll motion only: ordinary/reduced-motion rendering stays visible. */
@supports (animation-timeline:view()) {
  @media (prefers-reduced-motion:no-preference) {
    .home-story,.home-app,.home-tools > a { animation:home-content-arrive 1ms linear both; animation-timeline:view(); animation-range:entry 0% entry 65%; }
    @keyframes home-content-arrive { from { opacity:.65; translate:0 10px; } to { opacity:1; translate:0 0; } }
  }
}
/* Interaction feedback only: content remains visible without JavaScript. */
:root {
  --motion-fast: 140ms;
  --motion-standard: 200ms;
  --motion-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

.button {
  transition: background-color var(--motion-fast) ease,
    border-color var(--motion-fast) ease, color var(--motion-fast) ease,
    translate var(--motion-fast) var(--motion-ease);
}

.button:not(:disabled):not([aria-disabled="true"]):active {
  translate: 0 1px;
}

@media (hover: hover) and (pointer: fine) {
  .button:not(:disabled):not([aria-disabled="true"]):hover {
    border-color: var(--accent);
  }

  .button.solid:not(:disabled):not([aria-disabled="true"]):hover {
    background-color: var(--accent);
  }
}

.account-dropdown.is-open .account-menu {
  animation: control-open var(--motion-standard) var(--motion-ease);
}

.ui-modal.is-visible {
  animation: surface-open var(--motion-fast) ease;
}

.ui-modal.is-visible .ui-modal__dialog {
  animation: control-open var(--motion-standard) var(--motion-ease);
}

.fancy-select__panel:not([hidden]) {
  animation: surface-open var(--motion-fast) ease;
}

.autosave-indicator {
  transition: color var(--motion-fast) ease;
}

.wizard-progress-bar {
  transition: width var(--motion-standard) var(--motion-ease);
}

@keyframes surface-open {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes control-open {
  from { opacity: 0; translate: 0 6px; }
  to { opacity: 1; translate: 0 0; }
}

/* Cover existing wizard, footer, gallery and editor/vendor motion as well. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
