:root {
  --bg: #dfdfdf;
  --panel: #eceff2;
  --panel-strong: #c9c9c9;
  --ink: #101217;
  --ink-soft: #363a42;
  --muted: #69717c;
  --line: #7b8798;
  --line-dark: #191c22;
  --blue: #e10a17;
  --red: #ed2f45;
  --yellow: #f2c84b;
  --dark: #222429;
  --sidebar-width: 220px;
  --topbar-height: 66px;
  --cut: 20px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Chakra Petch", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

* {
  scrollbar-color: var(--red) transparent;
  scrollbar-width: auto;
}

*::-webkit-scrollbar {
  width: 18px;
  height: 18px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  border: 4px solid transparent;
  background: linear-gradient(135deg, #ff4757 0 18%, var(--red) 18% 82%, #9d1022 82% 100%);
  background-clip: padding-box;
  border-radius: 0;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[data-list-link] {
  cursor: pointer;
}

[data-list-link]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
.page-shell {
  min-height: 100vh;
}

.cut-corners {
  position: relative;
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
}

.cut-corners::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  padding: var(--cut-border-width, 1px);
  background: var(--cut-border-color, var(--line-dark));
  clip-path: inherit;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  content: "";
}

.ui-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
  flex: 0 0 auto;
}

.topbar {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  height: var(--topbar-height);
  display: grid;
  grid-template-columns: minmax(220px, var(--sidebar-width)) minmax(260px, 720px) auto;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  background: var(--bg);
}

.topbar-left,
.topbar-actions,
.brand {
  display: flex;
  align-items: center;
}

.topbar-left {
  gap: 18px;
  min-width: 0;
}

.brand {
  gap: 12px;
  min-width: 0;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark,
.footer-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #111722;
  color: #fff;
  font-weight: 950;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button,
.profile-button,
.save-button,
.rail-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #a6adba;
  background: #e8e8e8;
  color: var(--ink);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.icon-button:hover,
.profile-button:hover,
.save-button:hover,
.rail-button:hover {
  border-color: var(--ink);
}

.menu-button {
  gap: 4px;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.profile-button {
  border-color: #111722;
  background: #111722;
  color: #fff;
  font-weight: 900;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid #a8b4c4;
  background: rgba(255, 255, 255, 0.03);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.search-form .ui-icon {
  position: absolute;
  left: 38px;
  color: var(--ink);
}

.search-form input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 18px 0 76px;
  color: var(--ink);
}

.search-form input::placeholder {
  color: #737d8a;
}

.topbar-actions {
  justify-content: flex-end;
  gap: 12px;
}

.sidebar {
  position: fixed;
  z-index: 40;
  top: var(--topbar-height);
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 34px 26px 28px;
  background: #cfcfcf;
  clip-path: polygon(0 0, 100% 0, 100% 19%, 86% 23%, 86% 72%, 100% 76%, 100% 96%, 86% 100%, 0 100%);
}

.sidebar-main {
  display: grid;
  align-content: start;
  gap: 28px;
}

.sidebar-nav,
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.sidebar-bottom {
  gap: 18px;
}

.sidebar-separator {
  width: 126px;
  height: 1px;
  background: #a7adb7;
}

.nav-link {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 148px;
  min-height: 37px;
  color: #f5f6f7;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.nav-link .ui-icon {
  width: 19px;
  height: 19px;
}

.nav-link span {
  overflow-wrap: anywhere;
}

.nav-link.active::after {
  position: absolute;
  bottom: -4px;
  left: 32px;
  width: 64px;
  height: 2px;
  background: var(--ink);
  content: "";
}

.subscription-panel {
  display: grid;
  gap: 18px;
  width: 142px;
  min-height: 98px;
  margin: 2px 0 0;
  padding: 12px;
  background: #e3e3e3;
}

.subscription-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px;
  align-items: center;
  gap: 6px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.subscription-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.subscription-label .ui-icon {
  width: 16px;
  height: 16px;
}

.subscription-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subscription-head > .ui-icon {
  width: 12px;
  height: 12px;
}

.subscription-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mini-avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: #111722;
  color: #fff;
  font-size: 0;
}

.subscription-user strong,
.subscription-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subscription-user strong {
  color: var(--ink);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.subscription-user small {
  display: none;
}
.sidebar-backdrop {
  position: fixed;
  z-index: 35;
  inset: var(--topbar-height) 0 0;
  display: none;
  background: rgba(16, 18, 23, 0.45);
}

.site-main {
  margin-left: var(--sidebar-width);
  padding-top: var(--topbar-height);
}

.content-shell {
  width: min(100%, 1540px);
  margin: 0 auto;
  padding: 28px 48px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: 24px;
  align-items: stretch;
}

.hero-panel {
  min-height: 430px;
  border: 1px solid #8b98a9;
  background:
    linear-gradient(135deg, transparent 0 72%, rgba(225, 10, 23, 0.08) 72% 73%, transparent 73%),
    var(--bg);
  --cut: 30px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(560px, 100%);
  min-height: 430px;
  padding: 56px 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 10ch;
  margin: 0;
  font-size: 64px;
  line-height: 0.95;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-text {
  max-width: 440px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-weight: 600;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

.hero-stats strong {
  color: var(--ink);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.play-mark {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid var(--ink);
}

.save-button {
  background: transparent;
}

.hero-list {
  display: grid;
  gap: 16px;
  align-content: start;
}

.hero-option {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 82px;
  border: 2px solid var(--blue);
  background: var(--bg);
  padding: 9px 14px 9px 9px;
  --cut: 16px;
}

.hero-option:hover,
.hero-option.active {
  background: #e8edf5;
}

.option-thumb,
.card-media,
.mini-media {
  display: block;
  width: 100%;
  background-color: #aeb8c6;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0 18%, transparent 18% 42%, rgba(0, 0, 0, 0.2) 42% 44%, transparent 44%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 15px);
}

.option-thumb {
  aspect-ratio: 1;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.tone-blue {
  background-color: #e10a17;
}

.tone-red {
  background-color: #d9374b;
}

.tone-yellow {
  background-color: #e8b93c;
}

.tone-black {
  background-color: #171b24;
}

.hero-option strong {
  min-width: 0;
  font-size: 14px;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.analytics-band {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(210px, 18vw, 270px);
  grid-template-columns: none;
  gap: 20px;
  margin-top: 28px;
  margin-left: -50vw;
  padding: 32px max(32px, calc((100vw - 1180px) / 2));
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: var(--dark);
  --cut: 26px;
}

.analytics-band::-webkit-scrollbar {
  display: none;
}

.metric-card {
  min-width: 0;
  min-height: 150px;
  scroll-snap-align: start;
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #eef1f4;
  color: var(--ink);
  --accent: var(--blue);
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.metric-icon {
  width: 18px;
  height: 18px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.metric-delta {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.metric-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-card strong {
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.sparkline {
  width: 100%;
  height: 38px;
  margin-top: 4px;
  background: rgba(225, 10, 23, 0.08);
  color: var(--accent);
}

.sparkline path,
.sparkline circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
}

.sparkline circle {
  fill: currentColor;
}

.accent-blue {
  --accent: var(--blue);
}

.accent-red {
  --accent: var(--red);
}

.accent-yellow {
  --accent: #c99a12;
}

.content-section {
  margin-top: 40px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  font-style: italic;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section-head a {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-dot {
  width: 14px;
  height: 14px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.section-dot.blue {
  background: var(--blue);
}

.section-dot.red {
  background: var(--red);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.versus-card:is(a),
.mini-card:is(a) {
  display: block;
  color: inherit;
  text-decoration: none;
}
.versus-card,
.mini-card {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: #d9e0e8;
  --cut: 18px;
}

.card-media {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line-dark);
}

.card-body {
  padding: 15px;
}

.card-body h3,
.mini-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.card-body p {
  margin: 7px 0 14px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.card-body a {
  color: var(--blue);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.wide-banner {
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  margin-top: 46px;
  padding: 32px;
  color: #fff;
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(255, 255, 255, 0.08) 18% 19%, transparent 19% 54%, rgba(225, 10, 23, 0.36) 54% 55%, transparent 55%),
    linear-gradient(90deg, #111722, #27303c 52%, #ed2f45);
  --cut: 26px;
}

.wide-banner h2 {
  max-width: 540px;
  margin: 0;
  font-size: 48px;
  line-height: 0.95;
  font-weight: 950;
  text-transform: uppercase;
}

.category-section {
  display: grid;
  gap: 26px;
  margin-top: 46px;
}

.category-row {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.category-tile {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 22px;
  color: #fff;
  --cut: 22px;
}

.category-tile::before,
.category-tile::after {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 18px solid rgba(255, 255, 255, 0.18);
  content: "";
  transform: rotate(45deg);
}

.category-tile::before {
  top: -44px;
  right: -28px;
}

.category-tile::after {
  bottom: -58px;
  left: -42px;
}

.category-tile.blue {
  background: var(--blue);
}

.category-tile.red {
  background: var(--red);
}

.category-tile span {
  position: relative;
  font-size: 82px;
  line-height: 0.85;
  font-weight: 950;
}

.category-tile strong {
  position: relative;
  font-size: 16px;
  font-weight: 950;
  text-transform: uppercase;
}

.rail-wrap {
  position: relative;
  min-width: 0;
}

.card-rail {
  display: grid;
  grid-auto-columns: minmax(178px, 1fr);
  grid-auto-flow: column;
  gap: 18px;
  height: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: auto;
}

.card-rail::-webkit-scrollbar {
  display: block;
}

.mini-card {
  min-width: 178px;
}

.mini-media {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line-dark);
}

.mini-card h3,
.mini-card p {
  padding: 0 13px;
}

.mini-card h3 {
  margin-top: 13px;
}

.mini-card p {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.rail-button {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  background: #f0f2f5;
}

.rail-button.prev {
  left: -12px;
}

.rail-button.next {
  right: -12px;
}

.footer {
  margin-top: 62px;
  background: #080a0f;
  color: #fff;
}

.cut-footer {
  clip-path: polygon(0 28px, 44px 0, calc(100% - 44px) 0, 100% 28px, 100% 100%, 0 100%);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 64px;
  width: min(100%, 1540px);
  margin: 0 auto;
  padding: 76px 48px 46px;
}

.footer-brand {
  display: grid;
  gap: 14px;
}

.footer-mark {
  background: var(--red);
}

.footer-brand h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1;
  font-weight: 950;
}

.footer-brand p {
  margin: 0;
  color: #aeb7c5;
  font-weight: 600;
}

.footer-brand > a {
  color: #ff3d41;
  font-weight: 800;
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-row a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #8e98a8;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  transition: border-color .16s ease, color .16s ease, transform .16s ease;
}

.social-row a:hover {
  color: #ff3d41;
  border-color: #ff3d41;
  transform: translateY(-2px);
}

.social-row svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-links section {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-links h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.footer-links a {
  color: #7f8da1;
  font-size: 14px;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 1540px);
  margin: 0 auto;
  border-top: 1px solid #242a34;
  padding: 20px 48px 26px;
  color: #ff3d41;
  font-size: 13px;
  font-weight: 800;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1320px) {
  .topbar {
    grid-template-columns: minmax(190px, 220px) minmax(180px, 1fr) auto;
    padding: 0 22px;
  }

  .content-shell {
    padding-right: 32px;
    padding-left: 32px;
  }
  .analytics-band {
    grid-auto-columns: clamp(205px, 22vw, 260px);
  }
}

@media (max-width: 1120px) {
  :root {
    --sidebar-width: 220px;
  }

  .topbar {
    grid-template-columns: auto minmax(160px, 1fr) auto;
  }

  .sidebar {
    transform: translateX(-104%);
    transition: transform 180ms ease;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  body.nav-open .sidebar-backdrop {
    display: block;
  }

  .site-main {
    margin-left: 0;
  }

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

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

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

  .footer {
    margin-left: 0;
  }
}

@media (max-width: 820px) {
  .topbar {
    gap: 12px;
    padding: 0 14px;
  }

  .brand-name {
    display: none;
  }

  .search-form {
    height: 40px;
  }

  .search-form .ui-icon {
    left: 22px;
  }

  .search-form input {
    padding-left: 56px;
  }

  .content-shell {
    padding: 20px 18px 0;
  }

  .hero-copy,
  .hero-panel {
    min-height: 360px;
  }

  .hero-copy {
    padding: 38px 28px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }
  .analytics-band {
    grid-auto-columns: minmax(190px, 72vw);
    gap: 14px;
    padding: 20px 18px;
  }

  .category-row {
    grid-template-columns: 1fr;
  }

  .category-tile {
    min-height: 150px;
  }

  .footer-inner,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    gap: 34px;
    padding: 66px 22px 36px;
  }

  .footer-bottom {
    flex-direction: column;
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (max-width: 560px) {
  :root {
    --topbar-height: 64px;
  }

  .topbar {
    grid-template-columns: auto minmax(96px, 1fr) auto;
    gap: 8px;
    padding: 0 10px;
  }

  .topbar-left {
    gap: 8px;
  }

  .brand-mark,
  .profile-button,
  .icon-button,
  .save-button {
    width: 36px;
    height: 36px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .topbar-actions .icon-button {
    display: none;
  }

  .search-form {
    height: 38px;
  }

  .search-form .ui-icon {
    left: 13px;
  }

  .search-form input {
    padding-left: 40px;
  }

  .search-form input::placeholder {
    color: transparent;
  }

  .hero-grid,
  .hero-panel,
  .hero-copy,
  .hero-list {
    min-width: 0;
  }

  .hero-text {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .sidebar {
    width: min(88vw, var(--sidebar-width));
    padding-right: 46px;
  }

  .hero-copy,
  .hero-panel {
    min-height: 330px;
  }

  .hero-copy {
    padding: 32px 22px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }
  .hero-list,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero-option {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .wide-banner {
    min-height: 210px;
    padding: 24px;
  }

  .wide-banner h2 {
    font-size: 34px;
  }

  .rail-button {
    display: none;
  }
}
/* Shared layout refinements requested after auth pass. */
.topbar {
  background: #cfcfcf;
}

.topbar .search-form {
  position: absolute;
  top: 50%;
  left: 50vw;
  width: min(46vw, 720px);
  transform: translate(-50%, -50%);
}

.footer.cut-footer {
  width: calc(100% + var(--sidebar-width));
  margin-left: calc(-1 * var(--sidebar-width));
}


body.site-dark-mode {
  --bg: #090909;
  --dark: #0f0f10;
  color-scheme: dark;
}

body.site-dark-mode .topbar,
body.site-dark-mode .sidebar {
  background: #0f0f0f;
}

body.site-dark-mode .brand,
body.site-dark-mode .nav-link,
body.site-dark-mode .search-form .ui-icon,
body.site-dark-mode .search-form input {
  color: #f5f6f7;
}

body.site-dark-mode .nav-link.active::after {
  background: #f5f6f7;
}

body.site-dark-mode .footer {
  background: #000;
}
.discover-shell {
  padding-top: 0;
}

@media (max-width: 1120px) {
  .footer.cut-footer {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 820px) {
  .topbar .search-form {
    width: min(42vw, 360px);
  }
}

@media (max-width: 560px) {
  .topbar .search-form {
    width: min(38vw, 170px);
  }
}



/* Header auth modal and menu alignment refinements. */
.topbar {
  grid-template-columns: minmax(220px, var(--sidebar-width)) minmax(0, 1fr) auto;
}

.topbar-actions {
  grid-column: 3;
  justify-self: end;
  margin-left: auto;
}

.auth-header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.auth-header-button .ui-icon {
  width: 18px;
  height: 18px;
}

.auth-header-button em {
  color: var(--ink);
  font-style: normal;
}

.menu-button.icon-button {
  width: 19px;
  height: 24px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--blue);
  clip-path: none;
  gap: 2px;
}

.menu-button.icon-button:hover {
  border-color: transparent;
}

.menu-button span {
  width: 16px;
  height: 2px;
}

.auth-modal {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
}

body.auth-modal-open {
  overflow: hidden;
}

body.auth-modal-open .auth-modal {
  display: grid;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 18, 23, 0.52);
  backdrop-filter: blur(2px);
}

.auth-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: min(92vh, 940px);
  overflow: auto;
  border: 1px solid #c7d0dc;
  background: #f7f8fa;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 5vw, 58px) 30px;
  color: var(--ink);
  --cut: 32px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
}

.auth-modal-logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  background: #111722;
  color: #fff;
  font-size: 32px;
  font-weight: 950;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.auth-modal-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 50px);
  line-height: 1;
  font-weight: 950;
  text-align: center;
}

.auth-modal-copy {
  max-width: 470px;
  margin: 16px auto 30px;
  color: #778397;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.35;
  font-weight: 650;
  text-align: center;
}

.auth-modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 62px;
  margin-bottom: 28px;
  border: 1px solid #c9d3df;
  background: rgba(255, 255, 255, 0.55);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
}

.auth-modal-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  color: #6f7b8e;
  font-size: 16px;
  font-weight: 950;
  text-transform: uppercase;
}

.auth-modal-tabs button + button {
  border-left: 1px solid #d4dbe4;
}

.auth-modal-tabs .is-active {
  color: var(--blue);
}

.auth-modal-tabs .is-active::after {
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 3px;
  background: var(--blue);
  content: "";
}

.auth-modal-form {
  display: grid;
  gap: 16px;
}

.auth-modal-form[hidden] {
  display: none;
}

.auth-modal-field {
  display: grid;
  gap: 8px;
}

.auth-modal-field label {
  color: #6f7b8e;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.auth-modal-control {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  min-height: 62px;
  border: 1px solid #cfd7e2;
  background: rgba(255, 255, 255, 0.62);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.auth-modal-control > .ui-icon {
  align-self: center;
  justify-self: center;
  color: #738196;
}

.auth-modal-control input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
}

.auth-modal-control input::placeholder {
  color: #a2acbb;
}

.auth-modal-eye {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #738196;
}

.auth-modal-forgot {
  justify-self: end;
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
}

.auth-modal-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 70px;
  margin-top: 8px;
  border: 0;
  background: linear-gradient(135deg, #e10a17, #e10a17 72%, #e10a17);
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}

.auth-modal-legal {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
  border-top: 1px solid #cfd7e1;
  padding-top: 20px;
  color: #7c8799;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.auth-modal-legal a {
  color: var(--blue);
}

@media (max-width: 1320px) and (min-width: 1121px) {
  .topbar {
    padding-left: 28px;
  }
}

@media (max-width: 820px) {
  .auth-header-button .ui-icon {
    display: none;
  }
}

@media (max-width: 560px) {
  .auth-modal {
    padding: 12px;
  }

  .auth-modal-panel {
    max-height: 94vh;
    padding: 28px 18px;
  }

  .auth-modal-control {
    min-height: 56px;
  }

  .auth-modal-submit {
    min-height: 62px;
    font-size: 18px;
  }
}

.menu-button.icon-button {
  align-content: center;
  place-items: center;
  row-gap: 2px;
}

/* Footer content and folded sidebar subscriptions. */
@media (min-width: 1121px) {
  .footer.cut-footer .footer-inner,
  .footer.cut-footer .footer-bottom {
    width: min(calc(100% - var(--sidebar-width) - 32px), 1540px);
    margin-right: 0;
    margin-left: calc(var(--sidebar-width) + 32px);
  }
}

.subscription-panel {
  width: fit-content;
  max-width: 148px;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
}

.subscription-head {
  grid-template-columns: minmax(0, 1fr) 12px;
  width: fit-content;
  max-width: 148px;
  min-height: 37px;
  color: var(--ink);
  font-size: 10px;
}

.subscription-label {
  gap: 12px;
}

.subscription-label .ui-icon {
  width: 19px;
  height: 19px;
}

.subscription-head > .ui-icon {
  transition: transform 160ms ease;
}

.subscription-panel:not(.is-open) .subscription-head > .ui-icon {
  transform: rotate(180deg);
}

.subscription-user {
  display: none;
  margin-left: 31px;
}

.subscription-panel.is-open .subscription-user {
  display: flex;
}

/* Requested input bevels and header auth contrast. */
.auth-header-button {
  min-height: 42px;
  border: 1px solid #111722;
  background: #111722;
  color: #fff;
  padding: 0 14px;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.auth-header-button em,
.auth-header-button .ui-icon {
  color: #fff;
}

.search-form,
.discover-search,
.auth-control,
.auth-modal-control,
input:not([type="checkbox"]):not([type="range"]),
textarea {
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}

/* Global light border pass. */
:root {
  --line: #cfd7e2;
  --line-dark: #cfd7e2;
  --line-soft: #d6dde7;
}

*,
*::before,
*::after {
  border-color: var(--line-soft) !important;
}

.cut-corners::before {
  background: var(--line-soft);
}

[class*="-hero"]:not(.profile-hero),
[class*="-hero"]:not(.profile-hero)::before {
  clip-path: none !important;
}

.notification-header-wrap {
  display: none;
  position: relative;
  overflow: visible;
  place-items: center;
}

.notification-header-button {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-soft);
  background: #eef1f4;
  color: var(--ink);
  padding: 0;
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
}

.auth-header-button[data-auth-signed-in="true"] {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  overflow: hidden;
  background: #dce3ec;
  color: var(--ink);
  font-size: 0;
}

.auth-header-button[data-auth-signed-in="true"]::before {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background-color: #c8d2df;
  background-image: var(--auth-avatar);
  background-position: center;
  background-size: cover;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  content: var(--auth-initial);
}

.auth-header-button[data-auth-signed-in="true"] > * {
  display: none;
}

.topbar-actions:has(.auth-header-button[data-auth-signed-in="true"]) .notification-header-wrap,
.topbar-actions:has(.auth-header-button[data-auth-signed-in="true"]) .notification-header-button {
  display: grid;
}

/* Requested border and home hero image bevel pass. */
:root {
  --line: #aeaeae;
  --line-dark: #aeaeae;
  --line-soft: #aeaeae;
}

*,
*::before,
*::after {
  border-color: #aeaeae !important;
}

.cut-corners::before {
  background: #aeaeae;
}

.hero-panel.cut-corners {
  overflow: hidden;
  background-position: center;
  background-size: cover;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
}

/* Goal final light borders and header polish. */
:root {
  --line: #d6dde7;
  --line-dark: #d6dde7;
  --line-soft: #d6dde7;
}

*,
*::before,
*::after {
  border-color: #d6dde7 !important;
}

.cut-corners::before {
  background: #d6dde7;
}

.search-form,
.topbar .search-form {
  background: #f5f6f7;
}

.menu-button.icon-button,
.menu-button.icon-button .ui-icon {
  color: #000;
}

.hero-copy,
.hero-copy h1,
.hero-copy .hero-text,
.hero-stats,
.hero-stats strong,
.hero-actions .text-action {
  color: #fff;
}
/* Goal mobile rail and square categories pass. */
.creator-link,
.discover-card .creator-link,
.versus-card .creator-link,
.mini-card .creator-link {
  color: var(--red) !important;
}
.creator-boost-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  margin: 2px 0 4px;
  border: 1px solid rgb(237 47 69 / 42%);
  background: rgb(237 47 69 / 12%);
  color: var(--red);
  padding: 0 8px;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.card-rail {
  grid-auto-columns: minmax(240px, 280px);
  align-items: stretch;
}

.mini-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 240px;
}

.mini-media {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line-soft);
}

.mini-card-body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 15px;
}

.mini-card-body h3,
.mini-card-body p {
  margin: 0;
  padding: 0;
}

.mini-card-body p {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.category-tile {
  aspect-ratio: 1 / 1;
  min-height: 0;
}

@media (max-width: 620px) {
  .hero-list {
    display: grid !important;
    visibility: visible;
    opacity: 1;
    grid-template-columns: 1fr;
    width: 100%;
  }
}
@media (min-width: 1121px) {
  body.sidebar-collapsed {
    --sidebar-width: 74px;
  }

  body.sidebar-collapsed .sidebar {
    align-items: center;
    padding-inline: 12px;
  }

  body.sidebar-collapsed .nav-link {
    grid-template-columns: 20px;
    justify-content: center;
    width: 46px;
    padding-inline: 0;
  }

  body.sidebar-collapsed .nav-link span,
  body.sidebar-collapsed .subscription-label span,
  body.sidebar-collapsed .subscription-user,
  body.sidebar-collapsed .sidebar-separator,
  body.sidebar-collapsed .subscription-head > .ui-icon {
    display: none;
  }

  body.sidebar-collapsed .subscription-head {
    justify-content: center;
    width: 46px;
    padding-inline: 0;
  }
}

.versus-card.cut-corners,
.mini-card.cut-corners {
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

.versus-card.cut-corners::before,
.mini-card.cut-corners::before {
  clip-path: inherit;
}

/* Current goal sidebar/header/font pass. */
body,
button,
input,
textarea,
select {
  font-family: "Chakra Petch", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.nav-link,
.subscription-head {
  position: relative;
}

.nav-link::after,
.subscription-head::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  width: auto;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
  content: "";
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after,
.subscription-head:hover::after,
.subscription-head:focus-visible::after,
.subscription-panel.is-open .subscription-head::after {
  transform: scaleX(1);
}

.sidebar-main,
.sidebar-nav {
  gap: 21px;
}

.subscription-panel {
  margin-top: 0;
}

.auth-header-button,
.auth-header-button[data-auth-signed-in="true"],
.notification-header-button {
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
}

.hero-option {
  border: 2px solid var(--blue);
  color: inherit;
  font: inherit;
  text-align: left;
}

/* Current goal sidebar active red specificity fix. */
.nav-link.active::after {
  right: 0;
  bottom: -5px;
  left: 0;
  width: auto;
  height: 3px;
  background: var(--red);
  transform: scaleX(1);
}

/* Legal and settings pages pass. */
[data-owner-admin-link][hidden],
[data-owner-admin-separator][hidden] {
  display: none !important;
}

.legal-shell,
.settings-shell {
  display: grid;
  gap: 28px;
  max-width: 1280px;
}

.legal-hero,
.settings-hero {
  border: 1px solid var(--line-soft);
  background: #eef1f4;
  padding: clamp(24px, 5vw, 48px);
  --cut: 28px;
}

.legal-hero h1,
.settings-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.92;
  font-style: italic;
  font-weight: 950;
  text-transform: uppercase;
}

.legal-hero p,
.settings-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 650;
}

.legal-hero > span {
  display: inline-flex;
  margin-top: 22px;
  border: 1px solid var(--line-soft);
  background: #fff;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.legal-index,
.legal-card,
.settings-panel {
  border: 1px solid var(--line-soft);
  background: rgba(238, 241, 244, 0.8);
  --cut: 20px;
}

.legal-index {
  position: sticky;
  top: calc(var(--topbar-height) + 24px);
  display: grid;
  gap: 10px;
  padding: 16px;
}

.legal-index a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.legal-card {
  padding: clamp(22px, 4vw, 42px);
}

.legal-card h2,
.settings-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
  font-style: italic;
  font-weight: 950;
  text-transform: uppercase;
}

.legal-card h2:not(:first-child) {
  margin-top: 30px;
}

.legal-card p,
.settings-note {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 650;
}

.legal-card a {
  color: var(--red);
  font-weight: 950;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.settings-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.settings-actions-panel {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}

.settings-actions-panel .settings-panel-head,
.settings-actions-panel .settings-note {
  grid-column: 1 / -1;
}

.settings-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 12px;
}

.settings-panel-head span,
.settings-status {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.settings-panel label:not(.settings-toggle) {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.settings-panel input:not([type="checkbox"]),
.settings-panel textarea,
.settings-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-soft);
  background: #f7f8fa;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 800;
}

.settings-panel textarea {
  min-height: 108px;
  padding-top: 12px;
  resize: vertical;
}

.settings-toggle {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.settings-toggle input {
  width: 38px;
  height: 22px;
  accent-color: var(--red);
}

.settings-toggle.is-disabled {
  color: var(--muted);
  opacity: 0.68;
}

.site-compact-cards .card-grid,
.site-compact-cards .discover-grid,
.site-compact-cards .creation-grid {
  gap: 14px;
}

.site-compact-cards .card-body,
.site-compact-cards .discover-card-body,
.site-compact-cards .mini-card-body {
  padding: 12px;
}

.site-reduced-motion *,
.site-reduced-motion *::before,
.site-reduced-motion *::after {
  scroll-behavior: auto !important;
  transition-duration: 0.01ms !important;
  animation-duration: 0.01ms !important;
}

@media (max-width: 920px) {
  .legal-layout,
  .settings-grid,
  .settings-actions-panel {
    grid-template-columns: 1fr;
  }

  .legal-index {
    position: static;
  }
}

/* Current goal rail/grid controls and auth preview pass. */
.card-grid-wrap {
  position: relative;
  min-width: 0;
}

.card-grid[data-grid-rail] {
  --grid-gap: 20px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 60px) / 4);
  grid-template-columns: none;
  gap: var(--grid-gap);
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.card-grid[data-grid-rail]::-webkit-scrollbar,
.card-rail::-webkit-scrollbar {
  display: none;
}

.card-grid[data-grid-rail] > *,
.card-rail > * {
  min-width: 0;
  scroll-snap-align: start;
}

.grid-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-soft);
  background: #eef1f4;
  color: var(--ink);
  transform: translateY(-50%);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}

.grid-arrow-left {
  left: -14px;
}

.grid-arrow-right {
  right: -14px;
}

.category-row {
  gap: 18px;
}

.category-tile {
  width: 100%;
  height: auto;
  align-self: start;
  aspect-ratio: 1 / 1;
}

.card-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 54px) / 4);
  gap: 18px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.mini-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.mini-media {
  aspect-ratio: 16 / 10;
}

body.auth-required-preview .site-main {
  opacity: 0.42;
  filter: blur(1px);
  pointer-events: none;
}

@media (max-width: 1120px) {
  .card-grid[data-grid-rail] {
    grid-auto-columns: calc((100% - 20px) / 2);
  }

  .card-rail {
    grid-auto-columns: calc((100% - 36px) / 3);
  }
}

@media (max-width: 760px) {
  .card-rail {
    grid-auto-columns: calc((100% - 18px) / 2);
  }
}

@media (max-width: 620px) {
  .hero-list {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .card-grid[data-grid-rail],
  .card-rail {
    grid-auto-columns: 100%;
  }

  .grid-arrow,
  .rail-button {
    display: grid;
    width: 38px;
    height: 38px;
  }

  .grid-arrow-left,
  .rail-button.prev {
    left: 4px;
  }

  .grid-arrow-right,
  .rail-button.next {
    right: 4px;
  }
}
/* Global loading states: skeletons and infinite-scroll loader. */
.skeleton-card {
  pointer-events: none;
  overflow: hidden;
  border-color: var(--line-soft, #c7d0dc) !important;
  background: #e8edf2 !important;
}

.skeleton-block,
.skeleton-media,
.skeleton-line {
  display: block;
  position: relative;
  overflow: hidden;
  background: #d7dee7;
}

.skeleton-block::after,
.skeleton-media::after,
.skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  animation: skeleton-sweep 1.15s ease-in-out infinite;
}

.skeleton-media {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.skeleton-line {
  height: 11px;
  max-width: 100%;
}

.skeleton-line.wide {
  width: 82%;
}

.skeleton-line.mid {
  width: 58%;
}

.skeleton-line.short {
  width: 38%;
}

.infinite-loader {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 54px;
  color: var(--red);
}

.card-rail .infinite-loader {
  min-width: 120px;
  height: 100%;
}

.loader-dot {
  width: 8px;
  height: 8px;
  background: currentColor;
  clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px);
  animation: loader-pulse 900ms ease-in-out infinite;
}

.loader-dot:nth-child(2) {
  animation-delay: 120ms;
}

.loader-dot:nth-child(3) {
  animation-delay: 240ms;
}

.infinite-loader button {
  border: 1px solid var(--line-soft, #c7d0dc);
  background: #fff;
  color: var(--red);
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

@keyframes skeleton-sweep {
  100% {
    transform: translateX(100%);
  }
}

@keyframes loader-pulse {
  0%, 100% {
    opacity: 0.36;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-block::after,
  .skeleton-media::after,
  .skeleton-line::after,
  .loader-dot {
    animation: none;
  }
}
/* Owner admin cockpit */
.owner-admin-grid,
.owner-admin-shell [data-admin-root] {
  display: grid;
  gap: 22px;
}

.admin-section {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  padding: 22px;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 14px;
}

.admin-section-head h2,
.admin-mini h3 {
  margin: 0;
  font-size: 22px;
  font-style: italic;
  text-transform: uppercase;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-metrics article,
.admin-mini,
.admin-alerts {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.45);
  padding: 14px;
}

.admin-metrics span,
.admin-metrics small,
.admin-mini small,
.admin-table small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-metrics strong {
  display: block;
  margin: 6px 0;
  font-size: 28px;
  line-height: 1;
}

.admin-alerts,
.admin-activity-grid,
.admin-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-alert,
.admin-ok {
  border: 1px solid var(--line-soft);
  padding: 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-alert.high { color: var(--red); }
.admin-alert.medium { color: #b87a00; }
.admin-alert.low,
.admin-ok { color: var(--blue); }

.admin-mini-row {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--line-soft);
  padding: 10px 0;
  font-size: 13px;
  font-weight: 800;
}

.admin-mini-row:first-of-type { border-top: 0; }
.admin-mini-row a { color: var(--ink); text-decoration: none; }
.admin-mini-row span { color: var(--muted); font-size: 12px; }

.admin-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(130px, 170px)) auto;
  gap: 10px;
}

.admin-filters input,
.admin-filters select,
.admin-filters button,
.admin-actions button {
  border: 1px solid var(--line-soft);
  background: #eef1f4;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
}

.admin-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.admin-table a {
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-actions button:hover,
.admin-filters button:hover {
  color: var(--red);
}

@media (max-width: 900px) {
  .admin-metrics,
  .admin-alerts,
  .admin-activity-grid,
  .admin-split,
  .admin-filters {
    grid-template-columns: 1fr;
  }

  .admin-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* Extended settings controls */
.settings-grid-extended {
  align-items: start;
}

.settings-profile-preview {
  display: grid;
  gap: 6px;
  min-height: 150px;
  border: 1px solid var(--line-soft);
  background: #f5f6f7;
  background-size: cover;
  background-position: center;
  padding: 16px;
  color: var(--ink);
}

.settings-profile-preview span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.72);
  font-size: 28px;
  font-weight: 950;
}

.settings-profile-preview strong {
  font-size: 22px;
  font-style: italic;
  text-transform: uppercase;
}

.settings-profile-preview small,
.settings-profile-preview p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.site-high-contrast {
  --line-soft: #9aa4b2;
}

.site-system-font {
  font-family: Arial, Helvetica, sans-serif;
}

.site-large-ui .site-main {
  font-size: 1.05rem;
}

.site-small-ui .site-main {
  font-size: .94rem;
}

.site-dense-grid .card-grid,
.site-dense-grid .discover-grid,
.site-dense-grid .settings-grid {
  gap: 12px;
}

.site-data-saver img,
.site-data-saver .discover-card-media,
.site-data-saver .mini-media {
  image-rendering: auto;
}

.site-hero-motion-off *,
.site-reduced-motion * {
  animation-duration: .01ms !important;
  transition-duration: .01ms !important;
}
/* Dark mode surface normalization */
body.site-dark-mode {
  --bg: #090909;
  --panel: #0f0f0f;
  --panel-strong: #151515;
  --ink: #f5f6f7;
  --ink-soft: #d7dde6;
  --muted: #9aa4b2;
  --line: #2b2f36;
  --line-dark: #2b2f36;
  --line-soft: #2b2f36;
  --dark: #0f0f10;
  background: var(--bg);
  color: var(--ink);
}

body.site-dark-mode *,
body.site-dark-mode *::before,
body.site-dark-mode *::after {
  border-color: var(--line-soft) !important;
}

body.site-dark-mode .cut-corners::before {
  background: var(--line-soft) !important;
}

body.site-dark-mode .topbar,
body.site-dark-mode .sidebar {
  background: #0f0f0f !important;
}

body.site-dark-mode .footer {
  background: #000 !important;
}

body.site-dark-mode .site-main,
body.site-dark-mode .discover-shell,
body.site-dark-mode .legal-shell,
body.site-dark-mode .settings-shell,
body.site-dark-mode .auth-shell,
body.site-dark-mode .profile-shell,
body.site-dark-mode .create-shell,
body.site-dark-mode .history-shell,
body.site-dark-mode .friends-shell,
body.site-dark-mode .list-shell {
  background: var(--bg) !important;
  color: var(--ink) !important;
}

body.site-dark-mode .search-form,
body.site-dark-mode .discover-search,
body.site-dark-mode .auth-panel,
body.site-dark-mode .auth-card,
body.site-dark-mode .legal-card,
body.site-dark-mode .settings-panel,
body.site-dark-mode .settings-actions-panel,
body.site-dark-mode .settings-profile-preview,
body.site-dark-mode .admin-section,
body.site-dark-mode .admin-metric,
body.site-dark-mode .admin-alert,
body.site-dark-mode .admin-ok,
body.site-dark-mode .admin-table-wrap,
body.site-dark-mode .profile-panel,
body.site-dark-mode .profile-card,
body.site-dark-mode .profile-side-panel,
body.site-dark-mode .profile-fact-card,
body.site-dark-mode .profile-action,
body.site-dark-mode .activity-card,
body.site-dark-mode .friend-card,
body.site-dark-mode .friend-selected,
body.site-dark-mode .message-thread,
body.site-dark-mode .message-bubble,
body.site-dark-mode .list-panel,
body.site-dark-mode .item-card,
body.site-dark-mode .mode-menu,
body.site-dark-mode .mode-select,
body.site-dark-mode .discover-card,
body.site-dark-mode .discover-card-body,
body.site-dark-mode .versus-card,
body.site-dark-mode .card-body,
body.site-dark-mode .mini-card,
body.site-dark-mode .mini-card-body,
body.site-dark-mode .metric-card,
body.site-dark-mode .create-category-card,
body.site-dark-mode .creation-card,
body.site-dark-mode .creation-draft-card,
body.site-dark-mode .draft-item-card,
body.site-dark-mode .ai-flow-panel,
body.site-dark-mode .ai-draft-editor,
body.site-dark-mode .ai-similar-warning,
body.site-dark-mode .draft-select-trigger,
body.site-dark-mode .draft-select-menu,
body.site-dark-mode .filter-trigger,
body.site-dark-mode .filter-menu,
body.site-dark-mode .filter-option,
body.site-dark-mode .view-switch button.active,
body.site-dark-mode .subscription-panel,
body.site-dark-mode .subscription-user,
body.site-dark-mode .notification-header-button {
  background-color: var(--panel) !important;
  color: var(--ink) !important;
}

body.site-dark-mode .discover-card-media,
body.site-dark-mode .card-media,
body.site-dark-mode .mini-media,
body.site-dark-mode .draft-item-media,
body.site-dark-mode .item-media,
body.site-dark-mode .profile-avatar,
body.site-dark-mode .settings-profile-preview span,
body.site-dark-mode .ai-progress-track {
  background-color: var(--panel-strong) !important;
}

body.site-dark-mode input:not([type="checkbox"]):not([type="range"]):not([type="color"]) {
  border-width: 1px !important;
  color: var(--ink) !important;
}

body.site-dark-mode textarea,
body.site-dark-mode select,
body.site-dark-mode .auth-control input,
body.site-dark-mode .auth-modal-control input,
body.site-dark-mode .settings-panel input:not([type="checkbox"]):not([type="color"]),
body.site-dark-mode .settings-panel textarea,
body.site-dark-mode .settings-panel select,
body.site-dark-mode .admin-filters input,
body.site-dark-mode .admin-filters select,
body.site-dark-mode .admin-filters button,
body.site-dark-mode .admin-actions button,
body.site-dark-mode .friend-add input,
body.site-dark-mode .message-composer input,
body.site-dark-mode .prompt-bar input,
body.site-dark-mode .draft-item-card input,
body.site-dark-mode .draft-item-card textarea,
body.site-dark-mode .ai-plan-grid input,
body.site-dark-mode .ai-plan-grid textarea,
body.site-dark-mode .draft-library-actions button {
  border-width: 1px !important;
  background-color: var(--panel-strong) !important;
  color: var(--ink) !important;
}

body.site-dark-mode input::placeholder,
body.site-dark-mode textarea::placeholder,
body.site-dark-mode .search-form input::placeholder,
body.site-dark-mode .discover-search input::placeholder,
body.site-dark-mode .prompt-bar input::placeholder {
  color: var(--muted) !important;
  opacity: 1;
}

body.site-dark-mode button,
body.site-dark-mode .nav-link,
body.site-dark-mode .brand,
body.site-dark-mode .subscription-head,
body.site-dark-mode .auth-header-button,
body.site-dark-mode .menu-button.icon-button,
body.site-dark-mode .menu-button.icon-button .ui-icon,
body.site-dark-mode .search-form .ui-icon,
body.site-dark-mode .search-form input,
body.site-dark-mode .discover-card h2,
body.site-dark-mode .discover-card p,
body.site-dark-mode .card-body h3,
body.site-dark-mode .card-body p,
body.site-dark-mode .mini-card h3,
body.site-dark-mode .mini-card p,
body.site-dark-mode .settings-toggle,
body.site-dark-mode .settings-profile-preview small,
body.site-dark-mode .settings-profile-preview p,
body.site-dark-mode .admin-table a,
body.site-dark-mode .admin-mini-row a {
  color: var(--ink) !important;
}

body.site-dark-mode .settings-panel label:not(.settings-toggle),
body.site-dark-mode .settings-panel-head span,
body.site-dark-mode .settings-status,
body.site-dark-mode .admin-table th,
body.site-dark-mode .admin-mini-row span,
body.site-dark-mode .ai-plan-grid label,
body.site-dark-mode .discover-card-meta,
body.site-dark-mode .card-meta,
body.site-dark-mode .mini-card-body p {
  color: var(--muted) !important;
}

body.site-dark-mode .auth-header-button {
  background: var(--panel-strong) !important;
}

body.site-dark-mode .auth-header-button[data-auth-signed-in="true"]::before {
  background-color: var(--panel-strong) !important;
  color: var(--ink) !important;
}

/* Dark mode page-specific cleanup */
body.site-dark-mode .prompt-bar,
body.site-dark-mode .create-action.secondary,
body.site-dark-mode .mode-option,
body.site-dark-mode .filter-dropdown.is-open .filter-option,
body.site-dark-mode .stage-dots button,
body.site-dark-mode .stage-dots span,
body.site-dark-mode .stage-dots button:not(.active) span {
  background-color: var(--panel-strong) !important;
  color: var(--ink) !important;
}

body.site-dark-mode .filter-option.active,
body.site-dark-mode .filter-dropdown.is-open .filter-option.active,
body.site-dark-mode .stage-dots .active,
body.site-dark-mode .stage-dots button.active,
body.site-dark-mode .stage-dots .active span,
body.site-dark-mode .stage-dots button.active span {
  background-color: var(--red) !important;
  color: #fff !important;
}

body.site-dark-mode .mode-option span,
body.site-dark-mode .mode-option em,
body.site-dark-mode .create-note,
body.site-dark-mode .prompt-bar input::placeholder {
  color: var(--muted) !important;
}

body.site-dark-mode .prompt-bar input,
body.site-dark-mode .create-action.secondary {
  color: var(--ink) !important;
}

body.site-dark-mode *,
body.site-dark-mode *::before,
body.site-dark-mode *::after {
  border-width: 1px !important;
}

/* Settings cockpit redesign */
.settings-control-center {
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
}

.settings-control-center .settings-profile-panel,
.settings-control-center .settings-preferences-panel,
.settings-control-center .settings-actions-panel {
  gap: 14px;
  padding: 18px;
}

.settings-control-center .settings-profile-panel {
  align-self: start;
  position: sticky;
  top: calc(var(--topbar-height) + 18px);
}

.settings-profile-layout,
.settings-profile-fields,
.settings-section-grid,
.settings-actions-grid {
  display: grid;
  gap: 12px;
}

.settings-profile-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-wide-field {
  grid-column: 1 / -1;
}

.settings-control-center .settings-profile-preview {
  min-height: 126px;
  padding: 14px;
}

.settings-control-center .settings-profile-preview span {
  width: 46px;
  height: 46px;
  font-size: 24px;
}

.settings-control-center .settings-profile-preview strong {
  font-size: 18px;
}

.settings-preferences-panel {
  grid-column: 2;
}

.settings-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 12px;
}

.settings-section-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line-soft);
  background: #f7f8fa;
  color: var(--ink);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.settings-section {
  border: 1px solid var(--line-soft);
  background: rgba(247, 248, 250, 0.62);
}

.settings-section summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 14px;
  cursor: pointer;
  list-style: none;
}

.settings-section summary::-webkit-details-marker {
  display: none;
}

.settings-section summary::after {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-soft);
  color: var(--red);
  content: "+";
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.settings-section[open] summary::after {
  content: "-";
}

.settings-section summary span {
  color: var(--ink);
  font-size: 16px;
  font-style: italic;
  font-weight: 950;
  text-transform: uppercase;
}

.settings-section summary small {
  justify-self: end;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-section-grid {
  border-top: 1px solid var(--line-soft);
  padding: 14px;
}

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

.settings-mixed-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-mixed-grid .settings-toggle {
  grid-column: span 1;
}

.settings-control-center .settings-toggle {
  min-height: 44px;
  border: 1px solid var(--line-soft);
  background: #f7f8fa;
  padding: 8px 10px;
}

.settings-control-center .settings-panel input:not([type="checkbox"]),
.settings-control-center .settings-panel textarea,
.settings-control-center .settings-panel select {
  min-height: 40px;
}

.settings-save-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 48px;
}

.settings-save-row .settings-status {
  margin-right: auto;
}

.settings-sticky-save {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  border: 1px solid var(--line-soft);
  background: rgba(238, 241, 244, 0.96);
  padding: 10px;
  backdrop-filter: blur(10px);
}

.settings-control-center .settings-actions-panel {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
}

.settings-actions-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.settings-actions-grid .profile-action {
  width: 100%;
  min-width: 0;
  padding-inline: 10px;
}

body.site-dark-mode .settings-section,
body.site-dark-mode .settings-section-nav a,
body.site-dark-mode .settings-control-center .settings-toggle,
body.site-dark-mode .settings-sticky-save {
  background-color: var(--panel-strong) !important;
  color: var(--ink) !important;
}

body.site-dark-mode .settings-section summary span,
body.site-dark-mode .settings-section-nav a {
  color: var(--ink) !important;
}

body.site-dark-mode .settings-section summary small {
  color: var(--muted) !important;
}



.quest-board-card {
  align-content: start;
  min-height: 330px;
  opacity: 1 !important;
}

.quest-board-copy {
  display: grid;
  gap: 8px;
  min-height: 78px;
}

.quest-tier-switch {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.quest-tier-button {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 50px;
  border: 1px solid var(--line-soft);
  background: #f7f8fa;
  color: var(--ink);
  padding: 7px 5px;
  font: inherit;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.quest-tier-button small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.quest-tier-button.is-active {
  border-color: var(--tier);
  box-shadow: inset 0 -4px 0 var(--tier);
}

.quest-tier-button.is-complete {
  background: color-mix(in srgb, var(--tier) 12%, #f7f8fa);
}

.quest-tier-button.is-locked {
  color: #7a8491;
}

.quest-tier-panels,
.quest-tier-panel {
  display: grid;
  gap: 12px;
}

.quest-tier-panel[hidden] {
  display: none;
}

.quest-badge-action {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-soft);
  background: #dfe4ea;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.quest-badge-action.is-earned {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.quest-badge-action.is-selected {
  border-color: #e10a17;
  background: #e10a17;
  color: #fff;
}

.quest-badge-action.is-locked {
  cursor: not-allowed;
  opacity: 1;
  background: #cfd6df;
  color: #596474;
}

.quest-board-grid.is-list-view {
  grid-template-columns: 1fr;
}

.quest-board-grid.is-list-view .quest-board-card {
  min-height: 0;
  grid-template-columns: minmax(180px, 0.75fr) minmax(260px, 1.1fr) minmax(300px, 1fr);
  align-items: start;
}

.quest-board-grid.is-list-view .quest-board-top {
  grid-column: 1;
  justify-content: flex-start;
}

.quest-board-grid.is-list-view .quest-board-copy {
  grid-column: 1;
  min-height: 0;
}

.quest-board-grid.is-list-view .quest-tier-switch {
  grid-column: 2;
}

.quest-board-grid.is-list-view .quest-tier-panels {
  grid-column: 3;
}

body.site-dark-mode .quest-tier-button {
  background: #101010 !important;
  border-color: var(--line-soft) !important;
  color: var(--ink) !important;
}

body.site-dark-mode .quest-tier-button small,
body.site-dark-mode .quest-tier-button.is-locked {
  color: var(--muted) !important;
}

body.site-dark-mode .quest-tier-button.is-complete {
  background: color-mix(in srgb, var(--tier) 18%, #101010) !important;
}

body.site-dark-mode .quest-badge-action.is-locked {
  background: #242424 !important;
  color: #8e98a6 !important;
  border-color: var(--line-soft) !important;
}

body.site-dark-mode .quest-badge-action.is-earned,
body.site-dark-mode .quest-badge-action.is-selected {
  color: #fff !important;
}

@media (max-width: 1040px) {
  .quest-board-grid.is-list-view .quest-board-card {
    grid-template-columns: 1fr;
  }

  .quest-board-grid.is-list-view .quest-board-top,
  .quest-board-grid.is-list-view .quest-board-copy,
  .quest-board-grid.is-list-view .quest-tier-switch,
  .quest-board-grid.is-list-view .quest-tier-panels {
    grid-column: auto;
  }
}

@media (max-width: 1180px) {
  .settings-control-center {
    grid-template-columns: 1fr;
  }

  .settings-control-center .settings-profile-panel,
  .settings-preferences-panel {
    position: static;
    grid-column: 1;
  }

  .settings-actions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .settings-profile-fields,
  .settings-toggle-grid,
  .settings-mixed-grid,
  .settings-actions-grid {
    grid-template-columns: 1fr;
  }

  .settings-section summary {
    grid-template-columns: minmax(0, 1fr) 24px;
  }

  .settings-section summary small {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: -12px;
  }

  .settings-section summary::after {
    grid-column: 2;
    grid-row: 1;
  }

  .settings-sticky-save {
    bottom: 0;
  }
}

/* Settings readable restart */
.settings-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1320px;
}

.settings-profile-card,
.settings-overview-bar,
.settings-category-card,
.settings-data-card {
  padding: 20px;
  --cut: 16px;
}

.settings-profile-card .settings-panel-head,
.settings-overview-bar .settings-panel-head,
.settings-data-card .settings-panel-head {
  align-items: center;
}

.settings-profile-card .settings-panel-head > div,
.settings-overview-bar .settings-panel-head > div {
  display: grid;
  gap: 5px;
}

.settings-profile-card .settings-profile-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
}

.settings-profile-card .settings-profile-preview {
  min-height: 100%;
  align-content: start;
  gap: 9px;
  padding: 18px;
}

.settings-profile-card .settings-profile-preview span {
  width: 56px;
  height: 56px;
}

.settings-profile-card .settings-profile-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.settings-wide-field {
  grid-column: 1 / -1;
}

.settings-preferences-form {
  display: grid;
  gap: 16px;
}

.settings-overview-bar {
  display: grid;
  gap: 10px;
}

.settings-overview-bar .settings-status,
.settings-profile-card .settings-status {
  min-height: 16px;
}

.settings-preferences-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.settings-category-card {
  display: grid;
  gap: 14px;
}

.settings-category-card h2,
.settings-profile-card h2,
.settings-overview-bar h2,
.settings-data-card h2 {
  font-size: clamp(20px, 2vw, 28px);
}

.settings-category-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 10px;
}

.settings-category-head h2 {
  margin: 0;
  color: var(--ink);
  font-style: italic;
  font-weight: 950;
  text-transform: uppercase;
}

.settings-category-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-align: right;
  text-transform: uppercase;
}

.settings-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.settings-field-grid > label:not(.settings-toggle),
.settings-profile-fields > label:not(.settings-toggle) {
  min-width: 0;
}

.settings-field-grid .settings-toggle {
  min-height: 46px;
  border: 1px solid var(--line-soft);
  background: rgba(247, 248, 250, 0.78);
  padding: 8px 10px;
}

.settings-toggle-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-category-card label,
.settings-profile-card label {
  min-width: 0;
}

.settings-category-card input:not([type="checkbox"]),
.settings-category-card textarea,
.settings-category-card select,
.settings-profile-card input:not([type="checkbox"]),
.settings-profile-card textarea,
.settings-profile-card select {
  min-height: 42px;
}

.settings-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.settings-actions-grid .profile-action {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding-inline: 10px;
  white-space: normal;
}

body.site-dark-mode .settings-category-head h2 {
  color: var(--ink) !important;
}

body.site-dark-mode .settings-category-head span {
  color: var(--muted) !important;
}

body.site-dark-mode .settings-field-grid .settings-toggle {
  background-color: var(--panel-strong) !important;
}

@media (max-width: 1120px) {
  .settings-profile-card .settings-profile-layout,
  .settings-preferences-board {
    grid-template-columns: 1fr;
  }

  .settings-profile-card .settings-profile-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .settings-profile-card,
  .settings-overview-bar,
  .settings-category-card,
  .settings-data-card {
    padding: 16px;
  }

  .settings-profile-card .settings-profile-fields,
  .settings-field-grid,
  .settings-toggle-list,
  .settings-actions-grid {
    grid-template-columns: 1fr;
  }

  .settings-category-head,
  .settings-profile-card .settings-panel-head,
  .settings-overview-bar .settings-panel-head,
  .settings-data-card .settings-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-category-head span {
    text-align: left;
  }
}

.settings-data-card {
  grid-template-columns: 1fr !important;
}

.settings-data-card .settings-panel-head,
.settings-data-card .settings-actions-grid,
.settings-data-card .settings-note {
  grid-column: 1 / -1;
}

/* Quest board and profile badges */
.quest-filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
  width: min(100%, 760px);
  margin: 0 auto;
}

.quest-filter-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.quest-filter-row select {
  min-height: 44px;
  border: 1px solid var(--line-soft);
  background: #f7f8fa;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.quest-board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.quest-board-card,
.quest-board-empty {
  display: grid;
  gap: 12px;
  min-height: 260px;
  border: 1px solid var(--line-soft);
  background: #eef1f4;
  padding: 16px;
  --cut: 16px;
}

.quest-board-card[hidden] {
  display: none;
}

.quest-board-top,
.quest-board-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.quest-tier-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--tier);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.quest-board-card h2,
.quest-board-empty h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-style: italic;
  line-height: 1.05;
  font-weight: 950;
  text-transform: uppercase;
}

.quest-board-card p,
.quest-board-empty p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
}

.quest-board-track {
  height: 10px;
  border: 1px solid var(--line-soft);
  background: #dfe4ea;
}

.quest-board-track span {
  display: block;
  height: 100%;
  background: var(--tier, var(--red));
}

.quest-board-card .profile-action {
  align-self: end;
  width: 100%;
}

.quest-board-card:not(.is-complete) {
  opacity: 0.72;
}

.quest-board-card.is-selected {
  border-color: var(--red) !important;
}

.profile-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.profile-quest-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--badge);
  background: color-mix(in srgb, var(--badge) 16%, #f5f6f7);
  color: var(--ink);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.profile-quest-badge small {
  color: inherit;
  font-size: 10px;
  font-weight: 900;
}

.search-form .ui-icon,
.discover-search .ui-icon {
  color: #000 !important;
  stroke: currentColor;
}

body.site-dark-mode .search-form .ui-icon,
body.site-dark-mode .discover-search .ui-icon {
  color: #fff !important;
}

body.site-dark-mode .quest-filter-row label {
  color: var(--muted) !important;
}

body.site-dark-mode .quest-filter-row select,
body.site-dark-mode .quest-board-card,
body.site-dark-mode .quest-board-empty,
body.site-dark-mode .quest-board-track {
  background: #151515 !important;
  color: var(--ink) !important;
  border-color: var(--line-soft) !important;
}

body.site-dark-mode .quest-board-card h2,
body.site-dark-mode .quest-board-empty h2,
body.site-dark-mode .quest-board-progress strong,
body.site-dark-mode .profile-quest-badge {
  color: var(--ink) !important;
}

body.site-dark-mode .quest-board-card p,
body.site-dark-mode .quest-board-top,
body.site-dark-mode .quest-board-progress {
  color: var(--muted) !important;
}

body.site-dark-mode .profile-quest-badge {
  background: #151515 !important;
}

@media (max-width: 1180px) {
  .quest-board-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .quest-filter-row,
  .quest-board-grid {
    grid-template-columns: 1fr;
  }
}

.topbar {
  border-bottom: 1px solid var(--line-soft);
}

body.site-dark-mode .topbar {
  border-bottom-color: var(--line-soft) !important;
}

@media (min-width: 1121px) {
  body.sidebar-collapsed .subscription-panel {
    display: none !important;
  }
}

/* Dark mode auth modal cleanup */
body.site-dark-mode .auth-modal-backdrop {
  background: rgba(0, 0, 0, 0.72) !important;
  backdrop-filter: blur(5px);
}

body.site-dark-mode .auth-modal-panel {
  border-color: var(--line-soft) !important;
  background:
    linear-gradient(180deg, rgba(15, 15, 15, 0.98), rgba(9, 9, 9, 0.98)) !important;
  color: var(--ink) !important;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.72),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03) !important;
}

body.site-dark-mode .auth-modal-panel.cut-corners::before {
  background: var(--line-soft) !important;
}

body.site-dark-mode .auth-modal-close,
body.site-dark-mode .auth-modal-title,
body.site-dark-mode .auth-modal-control input {
  color: var(--ink) !important;
}

body.site-dark-mode .auth-modal-copy,
body.site-dark-mode .auth-modal-field label,
body.site-dark-mode .auth-modal-legal,
body.site-dark-mode .auth-modal-tabs button:not(.is-active),
body.site-dark-mode .auth-modal-control > .ui-icon,
body.site-dark-mode .auth-modal-eye {
  color: var(--muted) !important;
}

body.site-dark-mode .auth-modal-logo {
  background: var(--panel-strong) !important;
  color: var(--ink) !important;
}

body.site-dark-mode .auth-modal-tabs,
body.site-dark-mode .auth-modal-control {
  border-color: var(--line-soft) !important;
  background: var(--panel-strong) !important;
}

body.site-dark-mode .auth-modal-tabs button + button,
body.site-dark-mode .auth-modal-legal {
  border-color: var(--line-soft) !important;
}

body.site-dark-mode .auth-modal-tabs .is-active,
body.site-dark-mode .auth-modal-forgot,
body.site-dark-mode .auth-modal-legal a {
  color: #ff3d41 !important;
}

body.site-dark-mode .auth-modal-submit {
  background: linear-gradient(135deg, #e10a17, #b5000d 72%, #e10a17) !important;
  color: #fff !important;
}

/* Auth modal no-scroll fit */
.auth-modal {
  overflow: hidden;
}

.auth-modal-panel {
  max-height: none !important;
  overflow: visible !important;
}

@media (max-height: 760px) {
  .auth-modal {
    padding: 12px;
  }

  .auth-modal-panel {
    width: min(100%, 640px);
    padding: 22px 32px 20px !important;
    --cut: 24px;
  }

  .auth-modal-logo {
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    font-size: 24px;
  }

  .auth-modal-title {
    font-size: 34px;
  }

  .auth-modal-copy {
    margin: 8px auto 16px;
    font-size: 14px;
  }

  .auth-modal-tabs {
    min-height: 48px;
    margin-bottom: 14px;
  }

  .auth-modal-form {
    gap: 10px;
  }

  .auth-modal-control {
    min-height: 48px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .auth-modal-submit {
    min-height: 52px;
    font-size: 17px;
  }

  .auth-modal-legal {
    margin-top: 14px;
    padding-top: 12px;
    font-size: 12px;
  }
}

body:not(.site-authenticated) a[href="./friends.html"],
body:not(.site-authenticated) a[href="/friends.html"],
body:not(.site-authenticated) a[href="./quests.html"],
body:not(.site-authenticated) a[href="/quests.html"],
body:not(.site-authenticated) a[href="./settings.html"],
body:not(.site-authenticated) a[href="/settings.html"],
body:not(.site-authenticated) .subscription-panel {
  display: none !important;
}


/* Shared list-card actions and stats. */
.versus-card:is(article),
.mini-card:is(article),
.discover-card:is(article),
.profile-card:is(article) {
  color: inherit;
  text-decoration: none;
}

.list-link-card {
  position: relative;
  cursor: pointer;
}

.versus-card.list-link-card,
.discover-card.list-link-card,
.profile-card.list-link-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.versus-card.list-link-card .card-body,
.discover-card.list-link-card .discover-card-body,
.profile-card.list-link-card .profile-card-body {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
}

.list-card-stats,
.card-meta.list-card-stats,
.discover-card-meta.list-card-stats,
.profile-card-stats.list-card-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.list-card-stats .list-card-stat,
.discover-card-meta.list-card-stats .list-card-stat,
.profile-card-stats.list-card-stats .list-card-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
}

.list-card-stats .list-card-stat::before {
  display: none !important;
  content: none !important;
}

.list-card-stat .ui-icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}

.list-card-stat strong,
.list-card-stat em {
  font: inherit;
  line-height: 1;
}

.list-card-stat strong {
  color: var(--ink);
}

.list-card-stat em {
  color: currentColor;
  font-style: normal;
}

.list-card-stat-items .ui-icon {
  color: var(--blue);
  stroke: var(--blue);
}

.list-card-stat-plays .ui-icon {
  color: var(--red);
  stroke: var(--red);
}

.list-card-stat-upvotes .ui-icon {
  color: var(--yellow);
  stroke: var(--yellow);
}

.list-finish-later-button {
  position: absolute;
  z-index: 6;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-soft);
  background: #111318;
  color: #fff;
  padding: 0;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease, color 160ms ease;
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.list-finish-later-button .ui-icon {
  width: 18px;
  height: 18px;
}

.list-link-card:hover .list-finish-later-button,
.list-link-card:focus-within .list-finish-later-button,
.list-finish-later-button:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.list-finish-later-button:hover,
.list-link-card:hover .list-finish-later-button.is-saved,
.list-link-card:focus-within .list-finish-later-button.is-saved,
.list-finish-later-button.is-saved:focus-visible {
  background: var(--red);
  color: #fff;
}

.finish-later-progress {
  position: relative;
  height: 24px;
  margin-bottom: 10px;
  overflow: hidden;
}

.finish-later-progress span {
  background: var(--red);
}

.finish-later-progress-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.creation-grid .versus-card.list-link-card {
  height: 100%;
  min-height: 100%;
}

.creation-grid .versus-card.list-link-card .card-body {
  min-height: 162px;
}

.creation-grid .versus-card.list-link-card .list-card-stats {
  align-self: end;
}

body.site-dark-mode .list-card-stats,
body.site-dark-mode .card-meta.list-card-stats,
body.site-dark-mode .discover-card-meta.list-card-stats,
body.site-dark-mode .profile-card-stats.list-card-stats,
body.site-dark-mode .list-card-stat strong {
  color: var(--ink) !important;
}

body.site-dark-mode .list-card-stat em {
  color: var(--muted) !important;
}

body.site-dark-mode .list-finish-later-button {
  border-color: var(--line-soft);
  background: var(--panel-strong);
  color: var(--red);
}

body.site-dark-mode .list-finish-later-button:hover,
body.site-dark-mode .list-link-card:hover .list-finish-later-button.is-saved,
body.site-dark-mode .list-link-card:focus-within .list-finish-later-button.is-saved,
body.site-dark-mode .list-finish-later-button.is-saved:focus-visible {
  background: var(--red);
  color: #fff;
}

@media (hover: none) {
  .list-finish-later-button:not(.is-saved) {
    opacity: 1;
    transform: none;
  }

  .list-finish-later-button.is-saved {
    opacity: 0;
    transform: translateY(-5px);
  }

  .list-finish-later-button.is-saved:focus-visible {
    opacity: 1;
    transform: none;
  }
}


/* Header search suggestions and one-side sidebar border. */
.search-form {
  isolation: isolate;
}

.search-suggestions-panel {
  position: fixed;
  z-index: 90;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line-soft);
  background: #f5f6f7;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(15, 18, 24, 0.18);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}

.search-suggestions-panel[hidden] {
  display: none;
}

.search-suggestion {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  padding: 7px 9px;
  text-align: left;
  cursor: pointer;
}

.search-suggestion:hover,
.search-suggestion:focus-visible {
  border-color: var(--line-soft);
  background: #e8edf3;
}

.search-suggestion-thumb {
  width: 48px;
  aspect-ratio: 1;
  background: #d6dde7 center / cover;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.search-suggestion-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.search-suggestion-copy strong,
.search-suggestion-copy small,
.search-suggestion-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion-copy strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.search-suggestion-copy small,
.search-suggestion-meta,
.search-suggestion-empty {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.search-suggestion-meta {
  justify-self: end;
}

.search-suggestion-empty {
  padding: 14px;
}

.sidebar {
  border: 0;
  border-right: 1px solid var(--line-soft);
}

body.site-dark-mode .search-suggestions-panel {
  border-color: var(--line-soft);
  background: var(--panel);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.42);
}

body.site-dark-mode .search-suggestion {
  color: var(--ink);
}

body.site-dark-mode .search-suggestion:hover,
body.site-dark-mode .search-suggestion:focus-visible {
  border-color: var(--line-soft);
  background: var(--panel-strong);
}

body.site-dark-mode .search-suggestion-copy strong {
  color: var(--ink);
}

body.site-dark-mode .search-suggestion-copy small,
body.site-dark-mode .search-suggestion-meta,
body.site-dark-mode .search-suggestion-empty {
  color: var(--muted);
}

/* Current profile/home carousel polish. */
.metrics-grid-wrap {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
}

.metrics-grid-wrap .analytics-band {
  left: auto;
  width: 100%;
  max-width: none;
  margin-left: 0;
  padding-left: max(calc(var(--sidebar-width, 220px) + 32px), calc((100vw - 1180px) / 2));
  padding-right: max(32px, calc((100vw - 1180px) / 2));
}

.metrics-grid-wrap .grid-arrow-left {
  left: max(calc(var(--sidebar-width, 220px) + 10px), 18px);
}

.metrics-grid-wrap .grid-arrow-right {
  right: 18px;
}

.metric-card,
body.site-dark-mode .metric-card {
  background: #eef1f4 !important;
  color: #151922 !important;
}

.metric-card p,
body.site-dark-mode .metric-card p {
  color: #5f6976 !important;
}


body.site-dark-mode .grid-arrow,
body.site-dark-mode .rail-button {
  background: var(--panel-strong) !important;
  color: var(--ink) !important;
}

body.site-dark-mode .grid-arrow:hover,
body.site-dark-mode .grid-arrow:focus-visible,
body.site-dark-mode .rail-button:hover,
body.site-dark-mode .rail-button:focus-visible {
  background: #20242b !important;
  color: #fff !important;
}

.card-grid[data-grid-rail],
.card-rail,
.analytics-band {
  cursor: grab;
  user-select: none;
}

.card-grid[data-grid-rail].is-dragging,
.card-rail.is-dragging,
.analytics-band.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

@media (max-width: 1120px) {
  .hero-list {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .metrics-grid-wrap {
    left: auto;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .metrics-grid-wrap .analytics-band {
    padding-left: 18px;
    padding-right: 18px;
  }

  .metrics-grid-wrap .grid-arrow-left {
    left: 4px;
  }

  .metrics-grid-wrap .grid-arrow-right {
    right: 4px;
  }
}


/* Goal correction: aligned analytics rail. */

.metrics-grid-wrap {
  left: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 28px 0 0 !important;
}

.metrics-grid-wrap .analytics-band {
  left: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.metrics-grid-wrap .grid-arrow-left {
  left: -14px !important;
}

.metrics-grid-wrap .grid-arrow-right {
  right: -14px !important;
}

.metric-card,
body.site-dark-mode .metric-card {
  background: #1e1e1e !important;
  color: #ffffff !important;
}

.metric-card p,
body.site-dark-mode .metric-card p {
  color: rgba(255, 255, 255, 0.74) !important;
}

.metric-card .sparkline,
body.site-dark-mode .metric-card .sparkline {
  background: rgba(255, 255, 255, 0.06) !important;
}

:where(
  .card-grid[data-grid-rail],
  .card-rail,
  .analytics-band,
  .profile-card-row,
  .profile-tabs,
  .list-tabs,
  .rating-list,
  .admin-table-wrap
) {
  cursor: grab;
  user-select: none;
}

:where(
  .card-grid[data-grid-rail],
  .card-rail,
  .analytics-band,
  .profile-card-row,
  .profile-tabs,
  .list-tabs,
  .rating-list,
  .admin-table-wrap
).is-dragging {
  cursor: grabbing;
  scroll-snap-type: none !important;
}

@media (max-width: 1120px) {
  .metrics-grid-wrap .grid-arrow-left {
    left: 4px !important;
  }

  .metrics-grid-wrap .grid-arrow-right {
    right: 4px !important;
  }
}




/* Current fixes: finish later value and quest dropdown filters. */

.finish-later-progress-value {
  inset: 2px 6px 2px auto !important;
  min-width: 62px;
  width: max-content;
  padding: 0 10px;
  background: rgba(8, 10, 15, 0.82);
  line-height: 1;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.quest-filter-row .quest-dropdown {
  width: 100%;
}

.quest-filter-row .filter-trigger {
  min-height: 50px;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  padding: 0 13px;
}

.quest-filter-row .filter-option {
  min-height: 50px;
  padding: 0 13px;
}

.quest-filter-row .filter-option.active {
  min-height: 54px;
}

.quest-filter-row .filter-icon {
  color: var(--blue);
}

body.site-dark-mode .quest-filter-row .filter-trigger,
body.site-dark-mode .quest-filter-row .filter-menu,
body.site-dark-mode .quest-filter-row .filter-option {
  border-color: var(--line-soft) !important;
  background: var(--panel) !important;
  color: var(--ink) !important;
}


/* Local bevel-border implementation for the header search. */
.search-form {
  --header-search-border: var(--line-soft);
  --header-search-surface: rgba(255, 255, 255, 0.03);
  box-sizing: border-box;
  border: 0 !important;
  background: var(--header-search-border) !important;
  padding: 1px;
  overflow: hidden;
  isolation: isolate;
}

.search-form::before {
  position: absolute;
  inset: 1px;
  z-index: 0;
  pointer-events: none;
  background: var(--header-search-surface);
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 0 100%);
  content: "";
}

.search-form .ui-icon,
.search-form input {
  position: relative;
  z-index: 1;
}

body.site-dark-mode .search-form {
  --header-search-border: var(--line-soft);
  --header-search-surface: var(--panel);
  background: var(--header-search-border) !important;
}


/* Current home button and analytics polish. */
.text-action,
.hero-actions .text-action {
  border: 0 !important;
  background: var(--red) !important;
  color: #fff !important;
  padding: 0 16px;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}

.text-action .play-mark,
.hero-actions .text-action .play-mark {
  border-left-color: #fff !important;
}

.save-button {
  border: 0 !important;
  background: var(--blue) !important;
  color: #fff !important;
}

.analytics-band.cut-corners {
  border: 0 !important;
}

.analytics-band.cut-corners::before {
  display: none !important;
  content: none !important;
}

#home-official-grid {
  grid-auto-columns: calc((100% - 40px) / 3) !important;
}

@media (max-width: 1120px) {
  #home-official-grid {
    grid-auto-columns: calc((100% - 20px) / 2) !important;
  }
}

@media (max-width: 620px) {
  #home-official-grid {
    grid-auto-columns: 100% !important;
  }
}

/* Current sidebar colored hover bands. */
.sidebar-nav .nav-link:nth-child(1) { --nav-accent: var(--blue); }
.sidebar-nav .nav-link:nth-child(2) { --nav-accent: var(--red); }
.sidebar-nav .nav-link:nth-child(3) { --nav-accent: #ffd43b; }
.sidebar-nav .nav-link:nth-child(4) { --nav-accent: #ffd100; }
.sidebar-nav .nav-link:nth-child(5) { --nav-accent: #ff8a00; }
.sidebar-nav .nav-link:nth-child(6) { --nav-accent: #ff3d41; }
.sidebar-nav .nav-link:nth-child(7) { --nav-accent: #ffd100; }
.sidebar-nav .subscription-panel { --nav-accent: #ff3b5c; }
.sidebar-bottom .nav-link:nth-child(1) { --nav-accent: #ffd100; }
.sidebar-bottom .nav-link:nth-child(2) { --nav-accent: #adb5bd; }

.nav-link::after,
.subscription-head::after,
.nav-link.active::after {
  background: var(--nav-accent, var(--red)) !important;
}

.nav-link::before,
.subscription-head::before {
  display: none !important;
}

/* Current settings hero sizing and sidebar bands. */
.settings-shell {
  --settings-shell-pad: 48px;
}

.settings-hero {
  width: calc(100% + var(--sidebar-width) + (var(--settings-shell-pad) * 2));
  min-height: 520px;
  margin-left: calc(-1 * (var(--sidebar-width) + var(--settings-shell-pad)));
  margin-right: calc(-1 * var(--settings-shell-pad));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px 56px 82px calc(var(--sidebar-width) + var(--settings-shell-pad) + 56px) !important;
}

@media (max-width: 1320px) {
  .settings-shell { --settings-shell-pad: 32px; }
}

@media (max-width: 1120px) {
  .settings-hero {
    width: calc(100% + (var(--settings-shell-pad) * 2));
    margin-left: calc(-1 * var(--settings-shell-pad));
    margin-right: calc(-1 * var(--settings-shell-pad));
    padding-left: 56px !important;
  }
}

@media (max-width: 720px) {
  .settings-shell { --settings-shell-pad: 18px; }
  .settings-hero {
    min-height: 430px;
    padding: 34px 24px 54px !important;
  }
}

/* Current YouTube-like header search suggestions. */
.search-suggestions-panel {
  gap: 0 !important;
  border: 1px solid var(--line-soft) !important;
  background: #f5f6f7 !important;
  padding: 8px 0 !important;
  box-shadow: 0 18px 40px rgba(15, 18, 24, 0.18) !important;
  clip-path: none !important;
}

.search-suggestion {
  display: flex !important;
  align-items: center;
  min-height: 42px !important;
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  color: var(--ink) !important;
  padding: 0 18px !important;
  text-align: left;
}

.search-suggestion::before {
  width: 18px;
  height: 18px;
  margin-right: 14px;
  flex: 0 0 auto;
  background: currentColor;
  opacity: 0.72;
  clip-path: polygon(7px 0, 11px 0, 11px 7px, 18px 7px, 18px 11px, 11px 11px, 11px 18px, 7px 18px, 7px 11px, 0 11px, 0 7px, 7px 7px);
  content: "";
}

.search-suggestion:hover,
.search-suggestion:focus-visible {
  background: #e8edf3 !important;
  outline: 0;
}

.search-suggestion-query {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
}

.search-suggestion-thumb,
.search-suggestion-copy,
.search-suggestion-meta {
  display: none !important;
}

.search-suggestion-empty {
  padding: 12px 18px !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  text-transform: none !important;
}

body.site-dark-mode .search-suggestions-panel {
  border-color: var(--line-soft) !important;
  background: #111 !important;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.48) !important;
}

body.site-dark-mode .search-suggestion {
  color: #fff !important;
}

body.site-dark-mode .search-suggestion:hover,
body.site-dark-mode .search-suggestion:focus-visible {
  background: #1e1e1e !important;
}

/* Current dropdown dark icons and hero option progress. */
.hero-option {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: var(--line-soft) !important;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.hero-option::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(255, 46, 78, 0.2), rgba(225, 10, 23, 0.12));
  content: "";
  pointer-events: none;
}

.hero-option > * {
  position: relative;
  z-index: 1;
}

.hero-option.active {
  border-color: var(--red) !important;
  background: #edf1f7 !important;
  color: var(--ink) !important;
}

.hero-option.active::after {
  animation: heroOptionLoad 6s linear forwards;
}

.hero-option:hover,
.hero-option:focus-visible {
  border-color: var(--red) !important;
  background: #f5f7fa !important;
  outline: 0;
}

@keyframes heroOptionLoad {
  from { width: 0; }
  to { width: 100%; }
}

body.site-dark-mode .filter-trigger .filter-icon,
body.site-dark-mode .filter-option .filter-icon,
body.site-dark-mode .filter-trigger .filter-icon .ui-icon,
body.site-dark-mode .filter-option .filter-icon .ui-icon {
  color: #fff !important;
  stroke: currentColor !important;
}

body.site-dark-mode .hero-option {
  border-color: var(--line-soft) !important;
  background: #121212 !important;
  color: #fff !important;
}

body.site-dark-mode .hero-option strong {
  color: #fff !important;
}

body.site-dark-mode .hero-option::after {
  background: linear-gradient(90deg, rgba(255, 46, 78, 0.34), rgba(255, 46, 78, 0.1));
}

body.site-dark-mode .hero-option.active {
  border-color: var(--red) !important;
  background: #191919 !important;
  color: #fff !important;
}

body.site-dark-mode .hero-option:hover,
body.site-dark-mode .hero-option:focus-visible {
  border-color: var(--red) !important;
  background: #202020 !important;
}

/* Current settings hero full-bleed and dropdown icon visibility fix. */
.settings-shell {
  width: 100% !important;
  max-width: none !important;
  padding-top: 0 !important;
}

.settings-hero {
  width: calc(100% + var(--sidebar-width) + (var(--settings-shell-pad) * 2)) !important;
  min-height: 520px;
  margin-top: 0 !important;
  margin-left: calc(-1 * (var(--sidebar-width) + var(--settings-shell-pad))) !important;
  margin-right: calc(-1 * var(--settings-shell-pad)) !important;
  border-color: var(--line-soft) !important;
  background:
    linear-gradient(0deg, rgba(245, 246, 247, 0.94), rgba(245, 246, 247, 0.78)),
    url("../assets/discover-hero.png") center / cover !important;
  color: var(--ink) !important;
}

.settings-hero h1,
.settings-hero p,
.settings-hero .eyebrow {
  color: var(--ink) !important;
}

.filter-trigger .filter-icon .ui-icon,
.filter-option .filter-icon .ui-icon {
  display: block !important;
  color: currentColor !important;
  stroke: currentColor !important;
}

.filter-trigger .filter-icon,
.filter-option .filter-icon {
  color: var(--ink) !important;
}

body.site-dark-mode .settings-hero {
  border-color: var(--line-soft) !important;
  background:
    linear-gradient(0deg, rgba(9, 9, 9, 0.92), rgba(9, 9, 9, 0.7)),
    url("../assets/discover-hero.png") center / cover !important;
  color: #fff !important;
}

body.site-dark-mode .settings-hero h1,
body.site-dark-mode .settings-hero p,
body.site-dark-mode .settings-hero .eyebrow {
  color: #fff !important;
}

@media (max-width: 1120px) {
  .settings-hero {
    width: calc(100% + (var(--settings-shell-pad) * 2)) !important;
    margin-left: calc(-1 * var(--settings-shell-pad)) !important;
    margin-right: calc(-1 * var(--settings-shell-pad)) !important;
  }
}

/* Contributors nav accent. */
.sidebar-nav .contributors-nav-link { --nav-accent: #ff3b5c; }


.subscription-list {
  display: grid;
  gap: 8px;
}

.subscription-list .subscription-user {
  text-decoration: none;
}

.profile-follow-action.is-following {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: #fff !important;
}

.profile-friend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.profile-friend-grid .friend-line {
  text-decoration: none;
}

body.site-dark-mode .profile-friend-grid .friend-line,
body.site-dark-mode .subscription-list .subscription-user {
  border-color: var(--line-soft) !important;
  background: var(--panel-strong) !important;
  color: var(--ink) !important;
}


/* Owner admin cockpit restructure and requested surfaces. */
.legal-hero,
.settings-hero {
  border: 1px solid var(--line-soft) !important;
  background: #000000 !important;
  padding: clamp(24px, 5vw, 48px) !important;
  --cut: 28px;
  color: #fff !important;
}

.legal-hero h1,
.legal-hero p,
.legal-hero .eyebrow,
.legal-hero > span,
.settings-hero h1,
.settings-hero p,
.settings-hero .eyebrow,
.settings-hero > span {
  color: #fff !important;
}

.owner-admin-shell {
  max-width: 1680px;
}

body.owner-admin-page .sidebar,
body.owner-admin-page .sidebar-backdrop,
body.owner-admin-page [data-sidebar-toggle] {
  display: none !important;
}

body.owner-admin-page .site-main {
  margin-left: 0;
}

body.owner-admin-page .content-shell.owner-admin-shell {
  width: 100%;
  max-width: none;
  padding-right: clamp(18px, 3vw, 48px);
  padding-left: clamp(18px, 3vw, 48px);
}

@media (min-width: 1121px) {
  body.owner-admin-page .footer.cut-footer .footer-inner,
  body.owner-admin-page .footer.cut-footer .footer-bottom {
    width: min(100%, 1680px);
    margin-right: auto;
    margin-left: auto;
  }
}

.owner-admin-shell .legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.owner-admin-shell .legal-hero h1 {
  max-width: 11ch;
}

.owner-admin-shell .legal-hero > span {
  border-color: var(--line-soft) !important;
  background: rgb(255 255 255 / 8%) !important;
}

.owner-admin-grid,
.owner-admin-shell [data-admin-root] {
  display: block;
}

.admin-cockpit {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-command-rail {
  position: sticky;
  top: calc(var(--topbar-height) + 18px);
  display: grid;
  gap: 14px;
  border: 1px solid var(--line-soft);
  background: #050505;
  padding: 16px;
  --cut: 22px;
}

.admin-rail-brand,
.admin-rail-score,
.admin-rail-health,
.admin-rail-nav a {
  border: 1px solid var(--line-soft);
  background: rgb(0 0 0 / 45%);
}

.admin-rail-brand {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.admin-rail-brand span,
.admin-rail-brand small,
.admin-rail-health span,
.admin-rail-score span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-rail-brand strong {
  color: #fff;
  font-size: 22px;
  line-height: 1;
  font-style: italic;
  text-transform: uppercase;
}

.admin-rail-score {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 12px;
  padding: 14px;
}

.admin-rail-score strong {
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.admin-rail-nav {
  display: grid;
  gap: 8px;
}

.admin-rail-nav a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.admin-rail-nav a:hover,
.admin-rail-nav a:focus-visible {
  background: var(--red);
}

.admin-rail-health {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.admin-workspace {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.admin-module-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: 18px;
  align-items: start;
}

.admin-section {
  background: #060606 !important;
  border-color: var(--line-soft) !important;
  min-width: 0;
}

.admin-overview,
.admin-content,
.admin-moderation {
  grid-column: 1 / -1;
}

.admin-metrics article,
.admin-mini,
.admin-alerts {
  border: 1px solid var(--line-soft) !important;
  background: rgb(0 0 0 / 45%) !important;
  padding: 14px !important;
}

.admin-section-head {
  align-items: end;
}

.admin-section-head h2,
.admin-mini h3,
.admin-metrics strong,
.admin-table a,
.admin-mini-row a {
  color: #fff !important;
}

.admin-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-overview .admin-metrics {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.admin-activity-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-table-wrap,
.admin-filters input,
.admin-filters select,
.admin-filters button,
.admin-actions button {
  background: rgb(0 0 0 / 45%) !important;
  border-color: var(--line-soft) !important;
  color: #fff !important;
}

.admin-table th,
.admin-table td {
  border-color: var(--line-soft) !important;
}

.admin-filters button,
.admin-actions button,
.owner-admin-shell .profile-action.primary {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: #fff !important;
}

@media (max-width: 1280px) {
  .admin-cockpit,
  .admin-module-grid {
    grid-template-columns: 1fr;
  }

  .admin-command-rail {
    position: static;
  }

  .admin-rail-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-overview .admin-metrics,
  .admin-activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .owner-admin-shell .legal-hero,
  .admin-rail-nav,
  .admin-metrics,
  .admin-overview .admin-metrics,
  .admin-activity-grid {
    grid-template-columns: 1fr;
  }
}

/* Expanded legal pages. */
.legal-card .legal-updated {
  display: inline-flex;
  margin: 0 0 22px;
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.legal-card ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.65;
}

.legal-card li::marker {
  color: var(--red);
}

.legal-card li,
.legal-card p {
  line-height: 1.65;
}

body.site-dark-mode .legal-index,
body.site-dark-mode .legal-card {
  border-color: var(--line-soft) !important;
  background: rgba(17, 18, 20, 0.92) !important;
  color: var(--ink) !important;
}

body.site-dark-mode .legal-card .legal-updated {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

body.site-dark-mode .legal-card h2 {
  color: var(--ink) !important;
}

body.site-dark-mode .legal-card p,
body.site-dark-mode .legal-card ul,
body.site-dark-mode .legal-card li {
  color: var(--muted) !important;
}

body.site-dark-mode .legal-index a,
body.site-dark-mode .legal-card a {
  color: var(--red) !important;
}

@media (max-width: 760px) {
  .legal-card ul {
    padding-left: 16px;
  }

  .legal-card .legal-updated {
    width: 100%;
  }
}
/* Dark skeleton loading polish. */
body.site-dark-mode .skeleton-card {
  border-color: var(--line-soft) !important;
  background: #121315 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

body.site-dark-mode .skeleton-block,
body.site-dark-mode .skeleton-media,
body.site-dark-mode .skeleton-line {
  background: #1d2024 !important;
}

body.site-dark-mode .skeleton-block::after,
body.site-dark-mode .skeleton-media::after,
body.site-dark-mode .skeleton-line::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent) !important;
}

body.site-dark-mode .infinite-loader button {
  border-color: var(--line-soft);
  background: var(--panel-strong);
  color: var(--red);
}
/* Current sidebar mini avatar image bevel. */
.mini-avatar {
  --mini-avatar-cut: 5px;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  clip-path: polygon(var(--mini-avatar-cut) 0, calc(100% - var(--mini-avatar-cut)) 0, 100% var(--mini-avatar-cut), 100% calc(100% - var(--mini-avatar-cut)), calc(100% - var(--mini-avatar-cut)) 100%, var(--mini-avatar-cut) 100%, 0 calc(100% - var(--mini-avatar-cut)), 0 var(--mini-avatar-cut));
}

.mini-avatar.has-image {
  color: transparent !important;
  font-size: 0 !important;
}

/* Google OAuth button in auth modal. */
.google-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  margin: 0 0 16px;
  border: 1px solid var(--line-soft);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}

.google-logo,
.google-logo svg {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.auth-modal-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.auth-modal-divider::before,
.auth-modal-divider::after {
  height: 1px;
  background: var(--line-soft);
  content: "";
}

.auth-modal-error {
  margin: 0 0 16px;
  border: 1px solid rgba(239, 59, 59, 0.34);
  background: rgba(239, 59, 59, 0.08);
  color: var(--red);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}

.auth-modal-error[hidden] {
  display: none;
}

body.site-dark-mode .notification-filters button:not(.active) {
  background: #171a1e;
  color: #fff;
}

body.site-dark-mode .google-auth-button {
  border-color: var(--line-soft);
  background: #171a1e;
  color: #fff;
}
/* Finish Later toggle states: inactive black, active blue. */
.list-finish-later-button,
body.site-dark-mode .list-finish-later-button,
.list-finish-later-button:hover:not(.is-saved),
body.site-dark-mode .list-finish-later-button:hover:not(.is-saved) {
  border-color: var(--line-soft) !important;
  background: #111318 !important;
  color: #fff !important;
}

.list-finish-later-button.is-saved,
.list-link-card:hover .list-finish-later-button.is-saved,
.list-link-card:focus-within .list-finish-later-button.is-saved,
.list-finish-later-button.is-saved:focus-visible,
body.site-dark-mode .list-finish-later-button.is-saved,
body.site-dark-mode .list-link-card:hover .list-finish-later-button.is-saved,
body.site-dark-mode .list-link-card:focus-within .list-finish-later-button.is-saved,
body.site-dark-mode .list-finish-later-button.is-saved:focus-visible {
  border-color: var(--blue) !important;
  background: var(--blue) !important;
  color: #fff !important;
}
/* Premium plan promotion and page. */
.premium-nav-link {
  --nav-accent: #ff3d41;
}

.premium-wide-banner {
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    linear-gradient(135deg, transparent 0 18%, rgb(255 255 255 / 10%) 18% 19%, transparent 19% 54%, rgb(225 10 23 / 32%) 54% 55%, transparent 55%),
    linear-gradient(100deg, #111318 0%, #17243a 46%, #e10a17 74%, #ff3158 100%) !important;
}

.premium-wide-banner p:not(.eyebrow) {
  max-width: 620px;
  margin: 12px 0 0;
  color: rgb(255 255 255 / 82%);
  font-weight: 800;
}

.premium-banner-link,
.premium-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 18px;
  border: 1px solid rgb(255 255 255 / 36%);
  background: var(--red);
  color: #fff;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.premium-banner-stats {
  display: grid;
  gap: 10px;
  min-width: min(100%, 270px);
}

.premium-banner-stats span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgb(255 255 255 / 28%);
  background: rgb(0 0 0 / 22%);
  padding: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.premium-shell {
  display: grid;
  gap: 28px;
}

.premium-hero,
.premium-card {
  border: 1px solid var(--line-soft);
  padding: 28px;
}

.premium-hero {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(110deg, rgb(9 9 9 / 78%), rgb(9 9 9 / 28%)),
    url("../assets/discover-hero.png") center / cover no-repeat;
  color: #fff;
}

.premium-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .9;
  text-transform: uppercase;
}

.premium-hero p:not(.eyebrow) {
  max-width: 680px;
  color: rgb(255 255 255 / 82%);
  font-weight: 800;
}

.premium-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.premium-hero-actions a:last-child {
  background: #111318;
}

.premium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.premium-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 520px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 6%) 0 18%, transparent 18% 52%, rgb(237 47 69 / 12%) 52% 53%, transparent 53%),
    #111318;
  color: #fff;
  --cut: 24px;
}

.premium-card.featured {
  border-color: var(--blue);
  background:
    linear-gradient(150deg, rgb(225 10 23 / 30%), transparent 42%),
    linear-gradient(135deg, rgb(255 255 255 / 6%) 0 18%, transparent 18% 52%, rgb(237 47 69 / 16%) 52% 53%, transparent 53%),
    #111318;
}

.premium-card span {
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  text-transform: uppercase;
}

.premium-card h2 {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 4px 0 0;
  font-size: clamp(42px, 5vw, 64px);
  line-height: .9;
  text-transform: uppercase;
}

.premium-card h2 small {
  margin-top: 7px;
  color: rgb(255 255 255 / 68%);
  font-size: 15px;
  line-height: 1;
}

.premium-card p {
  margin: 0;
  color: rgb(255 255 255 / 78%);
  font-weight: 800;
}

.premium-benefits {
  display: grid;
  gap: 15px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.premium-benefits li {
  position: relative;
  min-height: 24px;
  padding-left: 32px;
  color: #fff;
  font-size: 14px;
  font-weight: 850;
}

.premium-benefits li::before {
  position: absolute;
  top: 3px;
  left: 0;
  width: 16px;
  height: 16px;
  background: var(--red);
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
  content: "";
}

.premium-plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: auto;
  border: 1px solid rgb(255 255 255 / 36%);
  background: #fff;
  color: #111318;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.premium-plan-button:hover,
.premium-plan-button:focus-visible {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  outline: 0;
}

.save-button,
body.site-dark-mode .save-button {
  border-color: var(--line-soft) !important;
  background: #111318 !important;
  color: #fff !important;
}

.save-button.is-saved,
.save-button[aria-pressed="true"],
body.site-dark-mode .save-button.is-saved,
body.site-dark-mode .save-button[aria-pressed="true"] {
  border-color: var(--blue) !important;
  background: var(--blue) !important;
  color: #fff !important;
}


@media (max-width: 1120px) {
  .premium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-wide-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .premium-hero,
  .premium-card {
    padding: 20px;
  }
}

.category-tile.has-image {
  padding: 0;
  background: transparent !important;
}

.category-tile.has-image::after {
  display: none;
}

.category-tile-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  clip-path: inherit;
  z-index: 0;
}

.category-tile.has-image::before {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  transform: none;
  z-index: 3;
  pointer-events: none;
  padding: var(--cut-border-width, 1px);
  background: var(--cut-border-color, var(--line-dark));
  clip-path: inherit;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  content: "";
}

body.site-dark-mode .category-tile.has-image::before {
  background: var(--line-soft) !important;
}

.ai-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 14px;
}

.ai-mode-options label {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.ai-mode-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ai-mode-options span {
  font-weight: 800;
}

.ai-mode-options small {
  color: var(--muted);
  font-size: 0.78rem;
}

.ai-mode-options label:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 520px) {
  .ai-mode-options {
    grid-template-columns: 1fr;
  }
}
.notification-header-wrap {
  position: relative;
  overflow: visible;
}

.notification-header-button {
  text-decoration: none;
}

.notification-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  border: 2px solid var(--surface) !important;
  pointer-events: none;
  z-index: 5;
}

.notifications-shell {
  display: grid;
  gap: 18px;
}

.notifications-hero,
.notifications-controls,
.notification-card,
.notification-empty {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 0;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px) !important;
}

.notifications-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 4vw, 42px);
}

.notifications-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
}

.notifications-hero p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
}

.notifications-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.notifications-summary span,
.notification-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 0;
  color: var(--muted);
  background: var(--panel-strong);
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
}

.notifications-controls {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.notification-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notification-filters button {
  border: 1px solid var(--line-soft);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  padding: 9px 13px;
  font-weight: 900;
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
}

.notification-filters button.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.notification-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.notification-setting {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 0;
  background: var(--panel-strong);
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
}

.notification-setting span {
  display: grid;
  gap: 2px;
}

.notification-setting small,
.notification-card p {
  color: var(--muted);
}

.notifications-list {
  display: grid;
  gap: 12px;
}

.notification-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.notification-card.is-unread {
  box-shadow: inset 4px 0 0 var(--red);
}

.notification-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-strong);
  font-weight: 900;
  background-size: cover;
  background-position: center;
}

.notification-top,
.notification-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.notification-top span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.notification-card h2 {
  margin: 4px 0;
  font-size: 1.05rem;
}

.notification-card p {
  margin: 0 0 8px;
}

.notification-open {
  color: #fff;
  background: var(--red);
  font-weight: 900;
  text-decoration: none;
  border: 1px solid var(--red);
  border-radius: 0;
  padding: 8px 12px;
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
}

.notification-empty {
  padding: 22px;
}

.list-invite-field,
.list-invite-field select,
.list-invite-modal textarea {
  display: grid;
  width: 100%;
  gap: 6px;
}

.list-invite-field select,
.list-invite-modal textarea {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--ink);
  padding: 10px;
}

.list-invite-modes {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}

.list-invite-modes label {
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel-strong);
}

@media (max-width: 680px) {
  .notifications-hero,
  .notification-card {
    grid-template-columns: 1fr;
  }
  .notifications-hero {
    display: grid;
  }
  .notification-open {
    justify-self: start;
  }
}
#home-metrics .metric-card strong,
body.site-dark-mode #home-metrics .metric-card strong {
  color: #fff !important;
}
.updates-shell {
  display: grid;
  gap: 18px;
}

.updates-hero,
.updates-editor,
.update-card,
.updates-empty {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 0;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px) !important;
}

.updates-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(24px, 4vw, 46px);
}

.updates-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.updates-hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
}

.updates-summary,
.update-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.updates-summary {
  justify-content: flex-end;
}

.updates-summary span,
.update-tags span,
.update-draft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  background: var(--panel-strong);
  color: var(--muted);
  font-weight: 850;
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
}

.updates-editor {
  padding: 18px;
}

.updates-editor[hidden] {
  display: none !important;
}

.updates-editor-head,
.update-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.updates-editor h2,
.update-card h2 {
  margin: 0;
}

.updates-editor form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.updates-editor label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.updates-editor label:nth-of-type(4),
.updates-editor label:nth-of-type(5),
.updates-editor label:nth-of-type(6),
.updates-editor label:nth-of-type(7),
.updates-editor-actions {
  grid-column: 1 / -1;
}

.updates-editor input,
.updates-editor textarea,
.updates-editor select {
  width: 100%;
  border: 1px solid var(--line-soft);
  background: var(--panel-strong);
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}

.updates-editor button,
.update-edit {
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  padding: 10px 14px;
  font-weight: 950;
  text-transform: uppercase;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}

.updates-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.updates-timeline {
  position: relative;
  display: grid;
  gap: 14px;
  padding-left: 24px;
}

.updates-timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 6px;
  width: 3px;
  background: linear-gradient(var(--red), var(--blue), var(--yellow));
  content: "";
}

.update-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
}

.update-card::before {
  position: absolute;
  left: -25px;
  top: 25px;
  width: 15px;
  height: 15px;
  background: var(--red);
  border: 2px solid var(--surface);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  content: "";
}

.update-version {
  display: grid;
  align-content: start;
  gap: 8px;
}

.update-version strong {
  font-size: 1.5rem;
  color: var(--red);
}

.update-version time,
.update-summary,
.update-card p {
  color: var(--muted);
}

.update-main {
  display: grid;
  gap: 10px;
}

.update-main > p {
  margin: 0;
}

.update-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.update-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  background: var(--panel-strong);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}

.updates-empty {
  padding: 22px;
}

@media (max-width: 760px) {
  .updates-hero,
  .update-card,
  .updates-editor form {
    grid-template-columns: 1fr;
  }
  .updates-hero {
    display: grid;
  }
  .updates-summary {
    justify-content: flex-start;
  }
}
.auth-reset-shell {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
}

.auth-reset-panel {
  width: min(100%, 620px);
  border: 1px solid var(--line-soft);
  background: var(--panel);
  padding: clamp(24px, 5vw, 46px);
}

.auth-reset-panel h1,
.auth-reset-panel p {
  margin: 0 0 14px;
}

.auth-reset-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.auth-reset-form label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-weight: 850;
}

.auth-reset-form input {
  width: 100%;
  border: 1px solid var(--line-soft);
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  font: inherit;
}

body.site-dark-mode .auth-reset-panel {
  background: #171a1e;
}

body.site-dark-mode .auth-reset-form input {
  background: #111318;
  color: #fff;
}
/* Settings category layout */
.settings-shell {
  width: min(100%, 1240px) !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding-top: clamp(28px, 4vw, 54px) !important;
}

.settings-page-title {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
}

.settings-page-title h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 0.95;
  font-style: italic;
  font-weight: 950;
  text-transform: uppercase;
}

.settings-page-title p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.settings-workspace[data-settings-tabs] {
  display: grid !important;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) !important;
  align-items: start;
  gap: clamp(24px, 4vw, 44px);
  width: 100%;
  max-width: none !important;
  margin: 0 auto;
}

.settings-side-nav {
  position: sticky;
  top: calc(var(--topbar-height) + 22px);
  display: grid;
  gap: 6px;
}

.settings-tab-button {
  display: grid;
  gap: 3px;
  min-height: 42px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  padding: 8px 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 950;
  text-align: left;
  cursor: pointer;
}

.settings-tab-button span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-tab-button:hover,
.settings-tab-button:focus-visible {
  background: rgba(255, 46, 78, 0.08);
  color: var(--ink);
  outline: 0;
}

.settings-tab-button.is-active {
  border-left-color: var(--red);
  background: var(--red);
  color: #fff;
}

.settings-tab-button.is-active span {
  color: rgba(255, 255, 255, 0.78);
}

.settings-panels {
  min-width: 0;
}

.settings-panels > .settings-panel,
.settings-panels > .settings-preferences-form {
  width: 100%;
}

.settings-profile-card,
.settings-overview-bar,
.settings-category-card,
.settings-data-card {
  padding: clamp(20px, 3vw, 34px) !important;
}

.settings-profile-card .settings-profile-layout {
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) !important;
}

.settings-profile-card .settings-profile-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.settings-preferences-form {
  gap: 14px !important;
}

.settings-preferences-board {
  display: block !important;
}


.settings-category-card {
  min-height: 420px;
}

.settings-field-grid,
.settings-toggle-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.settings-data-card .settings-actions-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.site-dark-mode .settings-page-title h1 {
  color: var(--ink) !important;
}

body.site-dark-mode .settings-tab-button {
  color: var(--ink-soft) !important;
}

body.site-dark-mode .settings-tab-button span {
  color: var(--muted) !important;
}

body.site-dark-mode .settings-tab-button:hover,
body.site-dark-mode .settings-tab-button:focus-visible {
  background: rgba(255, 46, 78, 0.18) !important;
  color: #fff !important;
}

body.site-dark-mode .settings-tab-button.is-active,
body.site-dark-mode .settings-tab-button.is-active span {
  color: #fff !important;
}

@media (max-width: 980px) {
  .settings-workspace[data-settings-tabs] {
    grid-template-columns: 1fr !important;
  }

  .settings-side-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .settings-shell {
    padding-top: 22px !important;
  }

  .settings-side-nav,
  .settings-profile-card .settings-profile-layout,
  .settings-profile-card .settings-profile-fields,
  .settings-field-grid,
  .settings-toggle-list,
  .settings-data-card .settings-actions-grid {
    grid-template-columns: 1fr !important;
  }

  .settings-tab-button span {
    white-space: normal;
  }
}

.settings-panels [hidden],
.settings-panels [data-settings-preferences-form][hidden] {
  display: none !important;
}





/* Owner admin command center single-panel cleanup. */
.owner-admin-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto) auto;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  padding: 8px 0 24px;
}

.owner-admin-status h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 64px);
  line-height: .92;
  font-style: italic;
  text-transform: uppercase;
}

.owner-admin-status p:not(.eyebrow),
.owner-admin-status span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.owner-admin-status span {
  justify-self: end;
  border: 1px solid var(--line-soft);
  padding: 10px 12px;
  text-transform: uppercase;
}

.admin-workspace > .admin-section[hidden] {
  display: none !important;
}

.admin-cockpit {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) !important;
  gap: clamp(22px, 3vw, 44px) !important;
}

.admin-command-rail,
.admin-section {
  border-radius: 0 !important;
  clip-path: none !important;
}

.admin-command-rail {
  gap: 18px !important;
  padding: 20px !important;
}

.admin-rail-nav {
  gap: 10px !important;
}

.admin-rail-nav a {
  min-height: 44px !important;
  border-radius: 0 !important;
  clip-path: none !important;
}

.admin-rail-nav a.is-active,
.admin-rail-nav a[aria-current="page"] {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: #fff !important;
}

.admin-workspace {
  gap: 0 !important;
}

.admin-section {
  gap: clamp(22px, 3vw, 34px) !important;
  padding: clamp(24px, 3vw, 42px) !important;
}

.admin-section-head {
  margin-bottom: 4px;
  padding-bottom: 20px !important;
}

.admin-metrics,
.admin-overview .admin-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.admin-activity-grid,
.admin-split {
  gap: 18px !important;
}

.admin-mini,
.admin-alerts,
.admin-metrics article,
.admin-table-wrap {
  clip-path: none !important;
}

body.site-dark-mode .owner-admin-status h1 {
  color: #fff !important;
}

@media (max-width: 980px) {
  .owner-admin-status,
  .admin-cockpit {
    grid-template-columns: 1fr !important;
  }

  .owner-admin-status span {
    justify-self: start;
  }

  .admin-metrics,
  .admin-overview .admin-metrics,
  .admin-activity-grid,
  .admin-split {
    grid-template-columns: 1fr !important;
  }
}