:root {
  --font-body: "Aptos", "Trebuchet MS", sans-serif;
  --font-display: "Aptos Display", "Trebuchet MS", sans-serif;
  --brand-ink: #151b18;
  --brand-canvas: #f7f8f3;
  --brand-surface: #ffffff;
  --brand-line: #dfe3da;
  --brand-muted: #5c655f;
  --brand-accent: #b8f34a;
  --control-radius: 6px;
  --surface-radius: 8px;
  --ink: var(--brand-ink);
  --paper: var(--brand-canvas);
  --white: var(--brand-surface);
  --lime: var(--brand-accent);
  --coral: #ff765e;
  --blue: #76a9ff;
  --line-dark: #343a36;
  --line-light: var(--brand-line);
  --muted: var(--brand-muted);
  --scrollbar-track: var(--paper);
  --scrollbar-thumb: var(--muted);
  --scrollbar-thumb-hover: var(--ink);
  color-scheme: light;
  font-family: var(--font-body);
  font-synthesis: none;
  letter-spacing: 0;
}

:root:has(.dashboard-page) {
  --scrollbar-track: light-dark(#ecebe4, #141816);
  --scrollbar-thumb: light-dark(#aaa99f, #69746c);
  --scrollbar-thumb-hover: light-dark(#101412, #f5f2e8);
}

:root:has(.dashboard-page[data-theme="system"]) {
  color-scheme: light dark;
}

:root:has(.dashboard-page[data-theme="light"]) {
  color-scheme: light;
}

:root:has(.dashboard-page[data-theme="dark"]) {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

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

*::-webkit-scrollbar-track,
*::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border: 3px solid var(--scrollbar-track);
  border-radius: 8px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

.site-header {
  align-items: center;
  background: var(--brand-surface);
  border-bottom: 1px solid var(--line-light);
  display: flex;
  height: 76px;
  justify-content: space-between;
  padding-left: max(24px, calc((100vw - 1200px) / 2));
  padding-right: max(24px, calc((100vw - 1200px) / 2));
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  gap: 9px;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: var(--control-radius);
  color: var(--lime);
  display: inline-flex;
  font-family: var(--font-body);
  font-size: 0.62rem;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.primary-nav,
.site-footer nav {
  align-items: center;
  display: flex;
  font-size: 0.9rem;
  gap: 28px;
}

.primary-nav > a:not(.button):hover,
.site-footer nav a:hover,
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.button {
  align-items: center;
  background: var(--lime);
  border: 1px solid var(--lime);
  border-radius: var(--control-radius);
  color: var(--ink);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 700;
  gap: 24px;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  background: var(--white);
  border-color: var(--white);
}

.button-small {
  min-height: 38px;
  padding: 0 16px;
}

.hero {
  background: var(--ink);
  color: var(--white);
  min-height: calc(100svh - 116px);
  overflow: hidden;
  padding: 11vh 4vw 96px;
  position: relative;
}

.hero-copy {
  max-width: 750px;
  position: relative;
  z-index: 3;
}

.eyebrow {
  color: var(--lime);
  font-size: 0.76rem;
  font-weight: 700;
  margin: 0 0 24px;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: #3f5f00;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
}

h1 {
  font-size: 4.8rem;
  line-height: 0.98;
  margin-bottom: 30px;
  max-width: 780px;
}

.hero-summary {
  color: #d3d7d2;
  font-size: 1.12rem;
  line-height: 1.65;
  max-width: 580px;
}

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

.text-link {
  font-size: 0.92rem;
}

.hero-scene {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
}

.scene-header {
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  color: #aab0aa;
  display: flex;
  font-size: 0.7rem;
  justify-content: space-between;
  padding: 19px 4vw;
  position: absolute;
  right: 0;
  top: 0;
  width: 46%;
}

.live-indicator {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  text-transform: uppercase;
}

.live-indicator span {
  animation: status-pulse 2.4s ease-in-out infinite;
  background: var(--lime);
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.scene-rule {
  background: var(--line-dark);
  height: 100%;
  opacity: 0.75;
  position: absolute;
  top: 0;
  width: 1px;
}

.scene-rule-one { right: 38%; }
.scene-rule-two { right: 22%; }
.scene-rule-three { right: 6%; }

.publication-lane {
  align-items: center;
  background: #171c19;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  display: grid;
  gap: 14px;
  grid-template-columns: 90px 1fr auto;
  min-height: 74px;
  padding: 12px 16px;
  position: absolute;
  right: 4vw;
  width: min(500px, 38vw);
}

.lane-one { top: 22%; }
.lane-two { top: 39%; right: 8vw; }
.lane-three { top: 56%; }

.lane-site {
  color: #929992;
  font-size: 0.66rem;
  font-weight: 700;
}

.lane-title {
  font-family: "Palatino Linotype", serif;
  font-size: 1rem;
}

.lane-state {
  border-radius: 4px;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 7px 9px;
}

.state-published { background: var(--lime); color: var(--ink); }
.state-scheduled { background: var(--blue); color: var(--ink); }
.state-ready { background: var(--coral); color: var(--ink); }

.scene-count {
  bottom: 8%;
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 4vw;
  text-align: right;
}

.scene-count strong {
  color: var(--coral);
  font-family: "Palatino Linotype", serif;
  font-size: 4rem;
  line-height: 1;
}

.scene-count span {
  color: #929992;
  font-size: 0.72rem;
}

.hero-proof {
  bottom: 28px;
  display: flex;
  font-size: 0.7rem;
  gap: 26px;
  left: 4vw;
  position: absolute;
  text-transform: uppercase;
  z-index: 3;
}

.hero-proof span::before {
  color: var(--lime);
  content: "+";
  margin-right: 7px;
}

.workflow {
  padding: 110px 4vw 120px;
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  margin-bottom: 70px;
}

.section-intro h2,
.plans-preview h2,
.final-call h2 {
  font-size: 3.25rem;
  line-height: 1.06;
  margin-bottom: 0;
  max-width: 760px;
}

.workflow-steps {
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.workflow-steps li {
  border-right: 1px solid var(--line-light);
  min-height: 280px;
  padding: 28px 36px 20px 0;
}

.workflow-steps li + li {
  padding-left: 36px;
}

.workflow-steps li:last-child {
  border-right: 0;
}

.step-number {
  color: var(--muted);
  font-family: "Palatino Linotype", serif;
  font-size: 0.8rem;
}

.workflow-steps h3 {
  font-family: "Palatino Linotype", serif;
  font-size: 1.75rem;
  margin: 62px 0 18px;
}

.workflow-steps p {
  color: #555a56;
  line-height: 1.7;
  max-width: 350px;
}

.plans-preview {
  align-items: end;
  background: var(--white);
  border-bottom: 1px solid var(--line-light);
  border-top: 1px solid var(--line-light);
  display: grid;
  gap: 48px;
  grid-template-columns: 1.2fr 1fr auto;
  padding: 84px 4vw;
}

.plan-limits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 30px;
}

.plan-limits span {
  align-items: baseline;
  display: flex;
  gap: 9px;
}

.plan-limits strong {
  color: #3f5f00;
  font-family: "Palatino Linotype", serif;
  font-size: 1.65rem;
}

.button-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.button-ink:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--ink);
}

.final-call {
  background: var(--coral);
  padding: 100px 4vw 110px;
}

.final-call .eyebrow {
  color: var(--ink);
}

.final-call h2 {
  font-size: 4rem;
  margin-bottom: 42px;
  max-width: 900px;
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding: 36px 4vw;
}

.brand-footer .brand-mark {
  background: var(--lime);
  color: var(--ink);
}

.footer-version {
  color: #929992;
  font-size: 0.72rem;
  justify-self: end;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (max-width: 980px) {
  .primary-nav > a:not(.button) {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 104px);
    padding-top: 80px;
  }

  h1 {
    font-size: 3.9rem;
    max-width: 620px;
  }

  .hero-summary {
    max-width: 500px;
  }

  .hero-scene {
    opacity: 0.34;
  }

  .publication-lane {
    right: 3vw;
    width: 54vw;
  }

  .lane-two { right: 8vw; }

  .plans-preview {
    align-items: start;
    grid-template-columns: 1fr 1fr;
  }

  .plans-preview .button {
    justify-self: start;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer nav {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: 64px;
    padding: 0 18px;
  }

  .brand {
    font-size: 1.05rem;
  }

  .brand-mark {
    height: 28px;
    width: 28px;
  }

  .hero {
    min-height: calc(100svh - 88px);
    padding: 64px 20px 104px;
  }

  .hero-scene {
    opacity: 0.16;
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  h1 {
    font-size: 3rem;
    line-height: 1;
  }

  .hero-summary {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    margin-top: 28px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-proof {
    bottom: 22px;
    flex-wrap: wrap;
    gap: 8px 18px;
    left: 20px;
  }

  .scene-header,
  .scene-count {
    display: none;
  }

  .publication-lane {
    grid-template-columns: 1fr auto;
    opacity: 0.75;
    right: -90px;
    width: 320px;
  }

  .lane-site {
    display: none;
  }

  .lane-one { top: 12%; }
  .lane-two { top: 32%; right: -130px; }
  .lane-three { top: 52%; }

  .workflow {
    padding: 76px 20px 80px;
  }

  .section-intro {
    display: block;
    margin-bottom: 48px;
  }

  .section-intro h2,
  .plans-preview h2 {
    font-size: 2.35rem;
  }

  .workflow-steps {
    display: block;
  }

  .workflow-steps li,
  .workflow-steps li + li {
    border-bottom: 1px solid var(--line-light);
    border-right: 0;
    min-height: 0;
    padding: 28px 0 34px;
  }

  .workflow-steps h3 {
    margin: 24px 0 12px;
  }

  .plans-preview {
    display: block;
    padding: 70px 20px;
  }

  .plan-limits {
    margin: 38px 0;
  }

  .plans-preview .button {
    width: 100%;
  }

  .final-call {
    padding: 78px 20px 84px;
  }

  .final-call h2 {
    font-size: 2.75rem;
  }

  .final-call .button {
    width: 100%;
  }

  .site-footer {
    padding: 30px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .live-indicator span {
    animation: none;
  }
}

.public-inner-page,
.legal-page {
  background: var(--white);
}

.page-heading {
  background: var(--paper);
  border-bottom: 1px solid var(--line-light);
  padding: 92px 4vw 76px;
}

.page-heading h1 {
  color: var(--ink);
  font-size: 4rem;
  line-height: 1.03;
  max-width: 900px;
}

.page-heading > p:last-child {
  color: #555a56;
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 700px;
}

.pricing-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  max-width: 1280px;
  padding: 42px max(20px, calc((100vw - 1200px) / 2)) 72px;
}

.plan-card {
  background: var(--brand-surface);
  border: 1px solid var(--line-light);
  border-radius: var(--surface-radius);
  min-height: 490px;
  padding: 48px 30px;
  position: relative;
}

.plan-card:first-child {
  border-left: 1px solid var(--line-light);
}

.plan-card-featured {
  background: var(--brand-canvas);
  box-shadow: inset 0 5px 0 var(--coral);
}

.plan-name {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.plan-price {
  align-items: baseline;
  display: flex;
  gap: 8px;
  margin: 22px 0 0;
}

.plan-price strong {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
}

.plan-cadence {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 8px 0 0;
}

.site-count {
  align-items: baseline;
  display: flex;
  gap: 10px;
  margin: 24px 0;
}

.site-count strong {
  font-family: "Palatino Linotype", serif;
  font-size: 3.5rem;
  line-height: 1;
}

.plan-card ul {
  border-top: 1px solid var(--line-light);
  color: #555a56;
  line-height: 1.6;
  list-style: none;
  margin: 0 0 36px;
  padding: 28px 0 0;
}

.plan-card li + li {
  margin-top: 12px;
}

.plan-card li::before {
  color: #3f5f00;
  content: "+";
  margin-right: 8px;
}

.plan-status {
  bottom: 52px;
  color: var(--muted);
  font-size: 0.78rem;
  position: absolute;
}

.pricing-disclosure {
  background: var(--ink);
  color: #d3d7d2;
  line-height: 1.6;
  margin: 0;
  padding: 30px 4vw;
}

.pricing-disclosure strong {
  color: var(--lime);
}

.auth-page {
  background: var(--ink);
  color: var(--white);
  min-height: 100svh;
}

.auth-header {
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  height: 76px;
  justify-content: space-between;
  padding-left: max(24px, calc((100vw - 1200px) / 2));
  padding-right: max(24px, calc((100vw - 1200px) / 2));
}

.auth-header .brand-mark {
  background: var(--lime);
  color: var(--ink);
}

.auth-back {
  color: #b9beb9;
  font-size: 0.86rem;
}

.auth-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: calc(100svh - 76px);
}

.auth-context {
  align-content: center;
  border-right: 1px solid var(--line-dark);
  display: grid;
  justify-items: end;
  padding: 8vh clamp(32px, 4vw, 64px) 8vh 7vw;
  position: relative;
}

.auth-context > * {
  width: min(100%, 560px);
}

.auth-context h1 {
  font-size: 4rem;
  max-width: 720px;
}

.auth-context > p:last-child {
  color: #aab0aa;
  line-height: 1.7;
  max-width: 560px;
}

.auth-signal {
  align-items: center;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  margin: 48px 0;
  max-width: 650px;
}

.auth-signal span {
  color: var(--lime);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-signal i {
  background: var(--line-dark);
  height: 1px;
  margin: 0 14px;
  position: relative;
}

.auth-signal i::after {
  background: var(--coral);
  border-radius: 50%;
  content: "";
  height: 7px;
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
}

.auth-tool {
  align-self: center;
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--surface-radius);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
  color: var(--ink);
  justify-self: start;
  margin: 40px;
  max-height: calc(100svh - 112px);
  overflow-y: auto;
  padding: 48px;
  width: min(420px, calc(100% - 80px));
}

.auth-panel {
  display: none;
}

.auth-page[data-page="register"] [data-panel="register"],
.auth-page[data-page="login"] [data-panel="login"],
.auth-page[data-page="verify-email"] [data-panel="verify-email"],
.auth-page[data-page="forgot-password"] [data-panel="forgot-password"],
.auth-page[data-page="reset-password"] [data-panel="reset-password"] {
  display: block;
}

.form-kicker,
.app-kicker {
  color: #3f5f00;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-tool h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.google-sign-in {
  border-radius: var(--control-radius);
  display: block;
  height: 40px;
  margin: 28px auto 0;
  text-decoration: none;
  width: 180px;
}

.google-sign-in img {
  display: block;
  height: 40px;
  width: 180px;
}

.google-sign-in:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

.auth-divider {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-size: 0.68rem;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  margin-top: 22px;
}

.auth-divider::before,
.auth-divider::after {
  background: #d4d3cc;
  content: "";
  height: 1px;
}

.auth-divider + form {
  margin-top: 22px;
}

.form-intro,
.form-switch,
.form-links,
.auth-panel > p {
  color: var(--muted);
  line-height: 1.55;
}

.auth-tool form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.auth-tool label {
  display: grid;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 8px;
}

.auth-tool input {
  appearance: none;
  background: var(--white);
  border: 1px solid #aaa9a2;
  border-radius: var(--control-radius);
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 0 13px;
  width: 100%;
}

.auth-tool input:focus {
  border-color: var(--ink);
  outline: 3px solid var(--lime);
  outline-offset: 1px;
}

.auth-tool small {
  color: var(--muted);
  line-height: 1.5;
}

.auth-tool button {
  margin-top: 8px;
  width: 100%;
}

.auth-tool button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.form-switch {
  margin: 26px 0 0;
}

.form-links {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

.form-links a,
.form-switch a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.form-status,
.app-status {
  background: #eaf4d6;
  border-left: 4px solid #638d12;
  color: #294000;
  line-height: 1.5;
  margin: 26px 0 0;
  padding: 12px 14px;
}

.form-status:empty,
.app-status:empty {
  display: none;
}

.form-status.error,
.app-status.error {
  background: #ffe7e1;
  border-color: #c53d27;
  color: #65170b;
}

.auth-result-action {
  margin-top: 24px;
}

[hidden] {
  display: none !important;
}

.legal-main {
  background: var(--paper);
  min-height: calc(100svh - 150px);
  padding: 90px 4vw 110px;
}

.legal-document {
  display: none;
  margin: 0 auto;
  max-width: 820px;
}

.legal-page[data-page="privacy"] [data-legal="privacy"],
.legal-page[data-page="terms"] [data-legal="terms"],
.legal-page[data-page="refunds"] [data-legal="refunds"] {
  display: block;
}

.legal-document h1 {
  color: var(--ink);
  font-size: 4rem;
}

.legal-lead {
  border-bottom: 1px solid var(--ink);
  font-size: 1.16rem;
  line-height: 1.7;
  margin-bottom: 52px;
  padding-bottom: 44px;
}

.legal-document h2 {
  font-size: 1.45rem;
  margin: 38px 0 10px;
}

.legal-document p:not(.eyebrow) {
  color: #4e534f;
  line-height: 1.75;
}

.dashboard-page {
  --app-canvas: var(--brand-canvas);
  --app-canvas: light-dark(var(--brand-canvas), #141816);
  --app-surface: var(--brand-surface);
  --app-surface: light-dark(var(--brand-surface), #202622);
  --app-surface-soft: #f7f7f3;
  --app-surface-soft: light-dark(#f7f7f3, #181d1a);
  --app-text: var(--brand-ink);
  --app-text: light-dark(var(--brand-ink), #f5f2e8);
  --app-muted: var(--brand-muted);
  --app-muted: light-dark(var(--brand-muted), #abb3ab);
  --app-kicker: #3f5f00;
  --app-kicker: light-dark(#3f5f00, #b8f34a);
  --app-border-strong: #bbb9b0;
  --app-border-strong: light-dark(#bbb9b0, #4b554e);
  --app-border: var(--brand-line);
  --app-border: light-dark(var(--brand-line), #3f4842);
  --app-border-soft: #e8ebe4;
  --app-border-soft: light-dark(#e8ebe4, #343c37);
  --app-row-border: #e5e3db;
  --app-row-border: light-dark(#e5e3db, #303833);
  --app-control-border: #aaa99f;
  --app-control-border: light-dark(#aaa99f, #69746c);
  --app-sidebar: #101412;
  --app-sidebar: light-dark(#101412, #090c0a);
  --app-sidebar-copy: #b9beb9;
  --app-sidebar-copy: light-dark(#b9beb9, #c5ccc5);
  --app-sidebar-muted: #929992;
  --app-sidebar-muted: light-dark(#929992, #929d94);
  --app-sidebar-active: #252b27;
  --app-sidebar-active: light-dark(#252b27, #28322b);
  --app-primary: #101412;
  --app-primary: light-dark(#101412, #b8f34a);
  --app-primary-copy: #fffdf7;
  --app-primary-copy: light-dark(#fffdf7, #101412);
  --app-primary-hover: #28302b;
  --app-primary-hover: light-dark(#28302b, #d7ff8b);
  --app-primary-hover-copy: #b8f34a;
  --app-primary-hover-copy: light-dark(#b8f34a, #101412);
  --app-field: #f7f7f3;
  --app-field: light-dark(#f7f7f3, #171c19);
  --app-field-label: #383d39;
  --app-field-label: light-dark(#383d39, #dce1dc);
  --app-field-border: #bdbdb4;
  --app-field-border: light-dark(#bdbdb4, #59645c);
  --app-dialog-border: #8f918a;
  --app-dialog-border: light-dark(#8f918a, #657068);
  --app-danger: #9a2b20;
  --app-danger: light-dark(#9a2b20, #ff8a76);
  --app-overlay: rgba(16, 20, 18, 0.68);
  --app-overlay: light-dark(rgba(16, 20, 18, 0.68), rgba(0, 0, 0, 0.76));
  --app-success-bg: #eaf4d6;
  --app-success-bg: light-dark(#eaf4d6, #25351c);
  --app-success-border: #638d12;
  --app-success-border: light-dark(#638d12, #9bd23b);
  --app-success-text: #294000;
  --app-success-text: light-dark(#294000, #dff7ad);
  --app-error-bg: #ffe7e1;
  --app-error-bg: light-dark(#ffe7e1, #42231f);
  --app-error-border: #c53d27;
  --app-error-border: light-dark(#c53d27, #ff765e);
  --app-error-text: #65170b;
  --app-error-text: light-dark(#65170b, #ffd0c7);
  background: var(--app-canvas);
  color: var(--app-text);
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100svh;
  transition: grid-template-columns 180ms ease;
}

.dashboard-page[data-theme="system"] {
  color-scheme: light dark;
}

.dashboard-page[data-theme="light"] {
  color-scheme: light;
}

.dashboard-page[data-theme="dark"] {
  color-scheme: dark;
}

.dashboard-page .app-kicker {
  color: var(--app-kicker);
}

.dashboard-page .app-status {
  background: var(--app-success-bg);
  border-color: var(--app-success-border);
  color: var(--app-success-text);
}

.dashboard-page .app-status.error {
  background: var(--app-error-bg);
  border-color: var(--app-error-border);
  color: var(--app-error-text);
}

.app-sidebar {
  background: var(--app-sidebar);
  color: var(--app-text);
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 26px 20px;
  position: sticky;
  top: 0;
}

.sidebar-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.brand-app {
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
}

.brand-app .brand-name {
  white-space: nowrap;
}

.sidebar-version {
  color: var(--app-sidebar-muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.7rem;
  margin: auto 0 0;
  padding-top: 12px;
  text-align: center;
}

.app-icon {
  fill: none;
  flex: 0 0 auto;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.icon-tooltip {
  position: relative;
}

.icon-tooltip::after {
  background: #f5f2e8;
  border: 1px solid #101412;
  border-radius: 4px;
  bottom: calc(100% + 8px);
  color: #101412;
  content: attr(data-tooltip);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  left: 50%;
  line-height: 1;
  opacity: 0;
  padding: 7px 8px;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, 4px);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: nowrap;
  z-index: 30;
}

.icon-tooltip:hover::after,
.icon-tooltip:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sidebar-toggle,
.mobile-theme-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--app-control-border);
  border-radius: 4px;
  color: var(--app-sidebar-copy);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 36px;
  height: 36px;
  justify-content: center;
  padding: 0;
  width: 36px;
}

.mobile-theme-toggle {
  display: none;
}

.sidebar-toggle:hover,
.mobile-theme-toggle:hover {
  background: var(--app-sidebar-active);
  color: var(--lime);
}

.sidebar-toggle:focus-visible,
.mobile-theme-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.mobile-theme-icon {
  display: none;
}

.dashboard-page[data-theme="system"] .mobile-theme-system-icon,
.dashboard-page[data-theme="light"] .mobile-theme-light-icon,
.dashboard-page[data-theme="dark"] .mobile-theme-dark-icon {
  display: block;
}

.sidebar-toggle.icon-tooltip::after {
  bottom: auto;
  left: auto;
  right: 0;
  top: calc(100% + 8px);
  transform: translateY(-4px);
}

.sidebar-toggle.icon-tooltip:hover::after,
.sidebar-toggle.icon-tooltip:focus-visible::after {
  transform: translateY(0);
}

.sidebar-toggle-expand-icon,
.sidebar-toggle-menu-icon,
.sidebar-toggle-close-icon {
  display: none;
}

.app-sidebar nav {
  display: grid;
  gap: 4px;
  margin-top: 42px;
}

.app-sidebar nav a,
.sidebar-command {
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--app-sidebar-copy);
  display: flex;
  gap: 10px;
  align-items: center;
  font: inherit;
  font-size: 0.84rem;
  padding: 12px 14px;
  text-align: left;
}

.app-sidebar nav a:hover,
.app-sidebar nav a.active {
  background: var(--app-sidebar-active);
  color: var(--lime);
}

.sidebar-nav-divider {
  border: 0;
  border-top: 1px solid rgba(197, 204, 197, 0.28);
  margin: 6px 0;
  width: 100%;
}

.sidebar-nav-label {
  color: var(--app-sidebar-muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  margin: 6px 14px 2px;
  text-transform: uppercase;
}

.app-sidebar nav .icon-tooltip::after,
.sidebar-command.icon-tooltip::after {
  display: none;
}

.theme-switcher {
  border: 1px solid var(--app-control-border);
  border-radius: 5px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  padding: 3px;
}

.theme-switcher button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 3px;
  color: var(--app-sidebar-copy);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 32px;
  padding: 6px 5px;
}

.theme-switcher button[aria-pressed="true"] {
  background: var(--lime);
  color: #101412;
}

.theme-switcher button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.theme-switcher .icon-tooltip::after {
  bottom: auto;
  top: calc(100% + 8px);
  transform: translate(-50%, -4px);
}

.theme-switcher .icon-tooltip:hover::after,
.theme-switcher .icon-tooltip:focus-visible::after {
  transform: translate(-50%, 0);
}

.sidebar-command {
  cursor: pointer;
  margin: 0;
  width: 100%;
}

.sidebar-command:hover {
  color: var(--coral);
}

.dashboard-page[data-sidebar-collapsed="true"] {
  grid-template-columns: 80px minmax(0, 1fr);
}

.dashboard-page[data-sidebar-collapsed="true"] .app-sidebar {
  padding-inline: 12px;
}

.dashboard-page[data-sidebar-collapsed="true"] .sidebar-header {
  align-items: center;
  flex-direction: column;
}

.dashboard-page[data-sidebar-collapsed="true"] .brand-app {
  justify-content: center;
}

.dashboard-page[data-sidebar-collapsed="true"] .brand-name,
.dashboard-page[data-sidebar-collapsed="true"] .nav-label,
.dashboard-page[data-sidebar-collapsed="true"] .sidebar-label,
.dashboard-page[data-sidebar-collapsed="true"] .sidebar-nav-label {
  display: none;
}

.dashboard-page[data-sidebar-collapsed="true"] .sidebar-toggle-collapse-icon {
  display: none;
}

.dashboard-page[data-sidebar-collapsed="true"] .sidebar-toggle-expand-icon {
  display: block;
}

.dashboard-page[data-sidebar-collapsed="true"] .app-sidebar nav {
  margin-top: 12px;
}

.dashboard-page[data-sidebar-collapsed="true"] .app-sidebar nav a,
.dashboard-page[data-sidebar-collapsed="true"] .sidebar-command {
  justify-content: center;
  padding-inline: 0;
}

.dashboard-page[data-sidebar-collapsed="true"] .theme-switcher {
  grid-template-columns: 1fr;
  width: 100%;
}

.dashboard-page[data-sidebar-collapsed="true"] .app-sidebar nav .icon-tooltip::after,
.dashboard-page[data-sidebar-collapsed="true"] .sidebar-command.icon-tooltip::after,
.dashboard-page[data-sidebar-collapsed="true"] .theme-switcher .icon-tooltip::after {
  bottom: auto;
  display: block;
  left: calc(100% + 10px);
  top: 50%;
  transform: translate(4px, -50%);
}

.dashboard-page[data-sidebar-collapsed="true"] .app-sidebar nav .icon-tooltip:hover::after,
.dashboard-page[data-sidebar-collapsed="true"] .app-sidebar nav .icon-tooltip:focus-visible::after,
.dashboard-page[data-sidebar-collapsed="true"] .sidebar-command.icon-tooltip:hover::after,
.dashboard-page[data-sidebar-collapsed="true"] .sidebar-command.icon-tooltip:focus-visible::after,
.dashboard-page[data-sidebar-collapsed="true"] .theme-switcher .icon-tooltip:hover::after,
.dashboard-page[data-sidebar-collapsed="true"] .theme-switcher .icon-tooltip:focus-visible::after {
  transform: translate(0, -50%);
}

.app-main {
  min-width: 0;
  padding: 34px 40px 70px;
}

.app-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.app-header-actions {
  align-items: center;
  display: flex;
  gap: 18px;
}

.app-header h1 {
  color: var(--app-text);
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0;
}

.app-health {
  align-items: center;
  display: flex;
  font-size: 0.72rem;
  gap: 8px;
}

.app-health i {
  background: #638d12;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.app-summary {
  border-bottom: 1px solid var(--app-border-strong);
  border-top: 1px solid var(--app-border-strong);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 34px 0;
}

.app-summary > div {
  border-right: 1px solid var(--app-border-strong);
  display: grid;
  gap: 22px;
  padding: 24px;
}

.app-summary > div:last-child {
  border-right: 0;
}

.app-summary span {
  color: var(--app-muted);
  font-size: 0.72rem;
}

.app-summary strong {
  font-family: var(--font-display);
  font-size: 2.5rem;
}

.app-section {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--surface-radius);
  margin-top: 20px;
  padding: 26px;
}

.app-section-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.settings-tabs {
  border-bottom: 1px solid var(--app-border-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.settings-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--app-muted);
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  min-height: 42px;
  padding: 10px 14px;
}

.settings-tab-icon {
  display: none;
}

.settings-tabs button[aria-selected="true"] {
  border-bottom-color: var(--app-primary);
  color: var(--app-text);
}

.settings-tabs button:focus-visible,
.avatar-category-tabs button:focus-visible,
.avatar-color-options button:focus-visible,
.avatar-grid button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.settings-panel {
  padding-top: 24px;
}

.account-profile-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
}

.account-identity-summary {
  align-content: start;
  border-right: 1px solid var(--app-border-soft);
  display: grid;
  gap: 18px;
  justify-items: start;
  padding-right: 28px;
}

.account-identity-summary > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.account-identity-summary strong,
.account-identity-summary span {
  overflow-wrap: anywhere;
}

.account-identity-summary > div > span {
  color: var(--app-muted);
  font-size: 0.72rem;
}

.profile-avatar {
  align-items: center;
  color: #101412;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  line-height: 1;
  overflow: hidden;
}

.profile-avatar-large {
  border-radius: 50%;
  font-size: 3rem;
  height: 88px;
  width: 88px;
}

.profile-avatar-small {
  border-radius: 50%;
  font-size: 1rem;
  height: 38px;
  width: 38px;
}

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

.settings-form label {
  color: var(--app-field-label);
  display: grid;
  font-size: 0.75rem;
  font-weight: 700;
  gap: 8px;
}

.settings-form input {
  background: var(--app-field);
  border: 1px solid var(--app-field-border);
  border-radius: 3px;
  color: var(--app-text);
  font: inherit;
  font-size: 0.86rem;
  letter-spacing: 0;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

.settings-form input[readonly] {
  color: var(--app-muted);
  cursor: not-allowed;
}

.settings-form small {
  color: var(--app-muted);
  font-size: 0.68rem;
  font-weight: 400;
}

.avatar-picker-trigger {
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.avatar-picker-trigger:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.avatar-library-open {
  overflow: hidden;
}

.avatar-library-backdrop {
  align-items: center;
  background: var(--app-overlay);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 80;
}

.avatar-library-dialog {
  background: var(--app-surface);
  border: 1px solid var(--app-border-strong);
  border-radius: 8px;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.42);
  color: var(--app-text);
  display: grid;
  gap: 16px;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  max-height: min(720px, calc(100svh - 40px));
  min-height: 0;
  padding: 20px;
  width: min(960px, calc(100vw - 40px));
}

.avatar-library-dialog:focus {
  outline: none;
}

.avatar-library-header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.avatar-library-header > div {
  display: grid;
  gap: 4px;
}

.avatar-library-header h2,
.avatar-library-header p,
.avatar-color-section h3 {
  margin: 0;
}

.avatar-library-header h2 {
  font-family: "Palatino Linotype", serif;
  font-size: 1.25rem;
}

.avatar-library-header p,
.settings-note {
  color: var(--app-muted);
  font-size: 0.7rem;
}

.avatar-color-section {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.avatar-color-section h3 {
  color: var(--app-field-label);
  font-size: 0.78rem;
}

.avatar-color-options {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 30px;
}

.avatar-color-options button {
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  max-width: 30px;
  padding: 0;
  width: 30px;
}

.avatar-color-options button.active {
  border-color: var(--app-text);
  box-shadow: inset 0 0 0 2px var(--app-surface);
}

.avatar-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 0;
}

.avatar-category-tabs button {
  background: color-mix(in srgb, var(--app-surface) 92%, var(--app-text));
  border: 1px solid var(--app-control-border);
  border-radius: 8px;
  color: var(--app-muted);
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-size: 0.68rem;
  min-height: 34px;
  padding: 7px 10px;
}

.avatar-category-icon {
  display: none;
  font-size: 1rem;
  line-height: 1;
}

.avatar-category-tabs button[aria-selected="true"] {
  background: var(--app-sidebar-active);
  color: var(--app-text);
}

.avatar-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 4px 4px 0;
}

.avatar-grid button {
  align-items: center;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.05rem;
  height: 48px;
  justify-content: center;
  min-height: 48px;
  padding: 0;
  width: 48px;
}

.avatar-grid button.active {
  border-color: var(--app-text);
}

.settings-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.icon-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--app-control-border);
  border-radius: 4px;
  color: var(--app-text);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  height: 36px;
  justify-content: center;
  padding: 0;
  width: 36px;
}

.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.settings-detail-list {
  border-top: 1px solid var(--app-row-border);
}

.settings-detail-row {
  align-items: center;
  border-bottom: 1px solid var(--app-row-border);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  min-height: 62px;
  padding: 10px 0;
}

.settings-detail-row > span {
  color: var(--app-muted);
  font-size: 0.74rem;
}

.settings-note {
  margin: 18px 0 0;
}

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

.admin-stat-grid .settings-detail-row:nth-child(odd) {
  padding-right: 24px;
}

.admin-stat-grid .settings-detail-row:nth-child(even) {
  border-left: 1px solid var(--app-row-border);
  padding-left: 24px;
}

.admin-user-identity {
  align-items: center;
  display: flex !important;
  gap: 12px !important;
  min-width: 0;
}

.app-command,
.row-actions button,
.dialog-close {
  background: transparent;
  border: 1px solid var(--app-control-border);
  border-radius: 4px;
  color: var(--app-text);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  min-height: 36px;
  padding: 8px 12px;
}

.app-command:hover,
.row-actions button:hover {
  border-color: var(--app-text);
}

.app-command-primary {
  background: var(--app-primary);
  border-color: var(--app-primary);
  color: var(--app-primary-copy);
}

.app-command-primary:hover {
  background: var(--app-primary-hover);
  color: var(--app-primary-hover-copy);
}

.app-command:disabled,
.row-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.app-section-split {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 1fr;
}

.data-row {
  align-items: center;
  border-bottom: 1px solid var(--app-row-border);
  display: flex;
  justify-content: space-between;
  min-height: 62px;
}

.data-row:last-child {
  border-bottom: 0;
}

.data-row > div {
  display: grid;
  gap: 4px;
}

.data-row .row-controls {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
}

.row-copy {
  min-width: 0;
}

.row-copy strong,
.row-copy span {
  overflow-wrap: anywhere;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.row-actions .danger-command {
  color: var(--app-danger);
}

.data-row strong {
  font-size: 0.84rem;
}

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

.status-badge {
  border-radius: 4px;
  color: var(--ink) !important;
  font-weight: 700;
  padding: 6px 8px;
  text-transform: capitalize;
}

.status-pending,
.status-paused { background: #f2dfaa; }
.status-processing { background: var(--blue); }
.status-published,
.status-active { background: var(--lime); }
.status-failed { background: #ffb4a6; }
.status-canceled { background: #d8d8d3; }

.empty-state {
  color: var(--app-muted);
  font-size: 0.82rem;
  padding: 24px 0 8px;
}

.subscription-strip {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(330px, 1.5fr) minmax(260px, 1fr);
}

.subscription-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.subscription-metrics > div {
  border-left: 1px solid var(--app-border-soft);
  display: grid;
  gap: 8px;
  padding: 4px 20px;
}

.subscription-metrics span {
  color: var(--app-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.subscription-metrics strong {
  font-family: "Palatino Linotype", serif;
  font-size: 1.25rem;
}

.subscription-copy p {
  color: var(--app-muted);
  font-size: 0.8rem;
  margin: 0 0 12px;
}

.checkout-confirmation {
  border-block: 1px solid var(--app-border-soft);
  margin: 0 0 14px;
  padding: 14px 0;
}

.checkout-confirmation p {
  color: var(--app-text);
}

.checkout-confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkout-confirmation-actions .app-command {
  min-width: 0;
}

.subscription-copy a {
  font-size: 0.76rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.app-dialog {
  background: var(--app-surface);
  border: 1px solid var(--app-dialog-border);
  border-radius: 6px;
  color: var(--app-text);
  max-height: min(820px, calc(100svh - 40px));
  max-width: 680px;
  padding: 0;
  width: calc(100% - 32px);
}

.app-dialog-wide {
  max-width: 840px;
}

.app-dialog::backdrop {
  background: var(--app-overlay);
}

.app-form {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
  padding: 28px;
}

.dialog-heading,
.dialog-actions,
.field-span {
  grid-column: 1 / -1;
}

.dialog-heading {
  align-items: start;
  border-bottom: 1px solid var(--app-border-soft);
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
}

.dialog-heading h2 {
  font-family: "Palatino Linotype", serif;
  font-size: 1.45rem;
  margin: 0;
}

.dialog-close {
  border: 0;
  font-size: 1.45rem;
  line-height: 1;
  min-height: 34px;
  padding: 4px 8px;
}

.app-form label,
.site-picker {
  color: var(--app-field-label);
  display: grid;
  font-size: 0.75rem;
  font-weight: 700;
  gap: 8px;
}

.app-form input,
.app-form select,
.app-form textarea {
  background: var(--app-field);
  border: 1px solid var(--app-field-border);
  border-radius: 3px;
  color: var(--app-text);
  font: inherit;
  font-size: 0.86rem;
  letter-spacing: 0;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

.settings-form input:not([type="checkbox"]):not([type="hidden"]),
.app-form input:not([type="checkbox"]):not([type="hidden"]),
.app-form select {
  height: 46px;
  min-height: 46px;
}

.app-form textarea {
  line-height: 1.5;
  resize: vertical;
}

.app-form small {
  color: var(--app-muted);
  font-size: 0.68rem;
  font-weight: 400;
}

.app-form .field-checkbox,
.site-picker label {
  align-items: center;
  display: flex;
  gap: 9px;
}

.app-form .field-checkbox input,
.site-picker input {
  min-height: 18px;
  width: 18px;
}

.site-picker {
  border: 1px solid var(--app-border);
  margin: 0;
  padding: 14px;
}

.site-picker legend {
  padding: 0 6px;
}

#publication-site-options {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

.dialog-actions {
  border-top: 1px solid var(--app-border-soft);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 20px;
}

@media (max-width: 1050px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan-card:nth-child(3) {
    border-left: 1px solid var(--line-light);
  }

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

  .auth-context {
    padding: 8vh 5vw;
  }

  .auth-context h1 {
    font-size: 3.2rem;
  }
}

@media (max-width: 780px) {
  .page-heading {
    padding: 70px 20px 58px;
  }

  .page-heading h1,
  .legal-document h1 {
    font-size: 2.8rem;
  }

  .pricing-grid {
    display: block;
    padding: 0 20px;
  }

  .plan-card,
  .plan-card:first-child,
  .plan-card:nth-child(3) {
    border-bottom: 1px solid var(--line-light);
    border-left: 1px solid var(--line-light);
    min-height: 430px;
  }

  .pricing-disclosure {
    padding: 28px 20px;
  }

  .auth-header {
    height: 64px;
    padding: 0 20px;
  }

  .auth-layout {
    display: block;
    min-height: calc(100svh - 64px);
    padding: 30px 20px;
  }

  .auth-context {
    border-bottom: 1px solid var(--line-dark);
    border-right: 0;
    display: block;
    padding: 28px 0 34px;
  }

  .auth-context h1 {
    font-size: 2.45rem;
  }

  .auth-context > p:last-child,
  .auth-signal {
    display: none;
  }

  .auth-tool {
    margin: 30px 0 0;
    max-height: none;
    padding: 34px 24px;
    width: 100%;
  }

  .legal-main {
    padding: 70px 20px 80px;
  }

  .dashboard-page {
    display: block;
  }

  .app-sidebar {
    align-items: center;
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 12px 16px;
    position: static;
  }

  .sidebar-header {
    align-items: center;
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: flex-start;
    width: 100%;
  }

  .sidebar-header .brand-app {
    margin-right: auto;
  }

  .mobile-theme-toggle {
    display: inline-flex;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .sidebar-toggle.icon-tooltip::after {
    display: none;
  }

  .dashboard-page .sidebar-toggle-collapse-icon,
  .dashboard-page .sidebar-toggle-expand-icon {
    display: none;
  }

  .dashboard-page .sidebar-toggle-menu-icon {
    display: block;
  }

  .dashboard-page[data-mobile-menu-open="true"] .sidebar-toggle-menu-icon {
    display: none;
  }

  .dashboard-page[data-mobile-menu-open="true"] .sidebar-toggle-close-icon {
    display: block;
  }

  .app-sidebar nav {
    border-top: 1px solid rgba(197, 204, 197, 0.28);
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 12px 0 0;
    padding: 12px 0 0;
  }

  .dashboard-page[data-mobile-menu-open="true"] .app-sidebar nav {
    display: grid;
  }

  .app-sidebar nav a,
  .app-sidebar nav .sidebar-command {
    width: 100%;
  }

  .sidebar-nav-divider {
    display: block;
  }

  .sidebar-nav-label {
    margin-inline: 14px;
  }

  .sidebar-version {
    border-top: 1px solid rgba(197, 204, 197, 0.28);
    display: none;
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 12px 0 0;
    padding-top: 12px;
    text-align: left;
    white-space: nowrap;
  }

  .dashboard-page[data-mobile-menu-open="true"] .sidebar-version {
    display: block;
  }

  .theme-switcher {
    display: none;
  }

  .settings-tabs,
  .avatar-category-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
  }

  .settings-tabs button,
  .avatar-category-tabs button {
    align-items: center;
    display: flex;
    justify-content: center;
    min-width: 0;
    padding-left: 4px;
    padding-right: 4px;
    width: 100%;
  }

  .settings-tab-icon,
  .avatar-category-icon {
    display: block;
  }

  .settings-tab-label,
  .avatar-category-label {
    display: none;
  }

  .settings-tabs .icon-tooltip::after,
  .avatar-category-tabs .icon-tooltip::after {
    bottom: auto;
    top: calc(100% + 8px);
    transition: none;
  }

  .settings-tabs .icon-tooltip:first-child::after,
  .avatar-category-tabs .icon-tooltip:nth-child(5n + 1)::after {
    left: 0;
    transform: translate(0, 6px);
  }

  .settings-tabs .icon-tooltip:first-child:hover::after,
  .settings-tabs .icon-tooltip:first-child:focus-visible::after,
  .avatar-category-tabs .icon-tooltip:nth-child(5n + 1):hover::after,
  .avatar-category-tabs .icon-tooltip:nth-child(5n + 1):focus-visible::after {
    transform: translate(0, 0);
  }

  .settings-tabs .icon-tooltip:last-child::after,
  .avatar-category-tabs .icon-tooltip:nth-child(5n)::after {
    left: auto;
    right: 0;
    transform: translate(0, 6px);
  }

  .settings-tabs .icon-tooltip:last-child:hover::after,
  .settings-tabs .icon-tooltip:last-child:focus-visible::after,
  .avatar-category-tabs .icon-tooltip:nth-child(5n):hover::after,
  .avatar-category-tabs .icon-tooltip:nth-child(5n):focus-visible::after {
    transform: translate(0, 0);
  }

  .app-main {
    padding: 28px 18px 60px;
  }

  .app-header {
    align-items: flex-start;
    gap: 18px;
  }

  .app-header-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 10px;
  }

  .app-summary {
    grid-template-columns: 1fr;
  }

  .app-summary > div {
    border-bottom: 1px solid var(--app-border-strong);
    border-right: 0;
    grid-template-columns: 1fr auto;
  }

  .app-section-split {
    display: block;
  }

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

  .account-identity-summary {
    align-items: center;
    border-bottom: 1px solid var(--app-border-soft);
    border-right: 0;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 0 0 22px;
  }

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

  .settings-form > label,
  .settings-form > fieldset,
  .settings-form > .settings-actions {
    grid-column: 1;
  }

  .avatar-library-backdrop {
    align-items: stretch;
    padding: 12px;
  }

  .avatar-library-dialog {
    max-height: calc(100svh - 24px);
    padding: 16px;
    width: 100%;
  }

  .avatar-grid {
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  }

  .avatar-grid button {
    height: 44px;
    min-height: 44px;
    width: 44px;
  }

  .admin-stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-stat-grid .settings-detail-row:nth-child(odd),
  .admin-stat-grid .settings-detail-row:nth-child(even) {
    border-left: 0;
    padding-inline: 0;
  }

  .app-section-split > div + div {
    margin-top: 40px;
  }

  .subscription-strip {
    gap: 22px;
    grid-template-columns: 1fr;
  }

  .subscription-metrics > div:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .data-row {
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
  }

  .data-row .row-controls {
    align-items: flex-end;
    flex-direction: column;
  }

  .app-form {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .app-form > label,
  .app-form > fieldset {
    grid-column: 1;
  }

  #publication-site-options {
    grid-template-columns: 1fr;
  }
}

/* Public homepage */
.home-page {
  background: var(--brand-canvas);
  color: var(--brand-ink);
  font-family: var(--font-body);
}

.home-page main {
  overflow: hidden;
}

.home-page .home-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--brand-line);
  height: 76px;
  padding-left: max(24px, calc((100vw - 1200px) / 2));
  padding-right: max(24px, calc((100vw - 1200px) / 2));
  position: sticky;
  top: 0;
}

.home-page .brand {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  gap: 9px;
}

.home-page .brand-mark {
  background: var(--brand-ink);
  border-radius: var(--control-radius);
  color: var(--lime);
  font-family: var(--font-body);
  font-size: 0.62rem;
  height: 34px;
  width: 34px;
}

.home-page .primary-nav {
  font-size: 0.88rem;
  gap: 30px;
}

.home-page .button {
  background: var(--lime);
  border-color: #9dd12f;
  border-radius: var(--control-radius);
  color: var(--brand-ink);
  min-height: 50px;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.home-page .button:hover {
  background: #d0ff71;
  border-color: #151b18;
  transform: translateY(-1px);
}

.home-page .button-small {
  min-height: 40px;
}

.landing-hero {
  background: #f7f8f3;
  padding: 76px max(24px, calc((100vw - 1200px) / 2)) 0;
}

.hero-intro {
  margin: 0 auto;
  max-width: 940px;
  text-align: center;
}

.home-page .eyebrow {
  color: #41670b;
  font-size: 0.72rem;
  margin-bottom: 20px;
}

.home-page .hero-intro h1,
.home-page .home-section-heading h2,
.home-page .home-final-call h2 {
  color: var(--brand-ink);
  font-family: var(--font-display);
  font-weight: 800;
}

.home-page .hero-intro h1 {
  font-size: 4.35rem;
  line-height: 1.01;
  margin: 0 auto 24px;
  max-width: 920px;
}

.home-page .hero-intro h1 span {
  box-shadow: inset 0 -0.16em rgba(184, 243, 74, 0.46);
  display: inline;
}

.home-page .hero-summary {
  color: var(--brand-muted);
  font-size: 1.12rem;
  line-height: 1.62;
  margin: 0 auto;
  max-width: 720px;
}

.home-page .hero-actions {
  justify-content: center;
  margin-top: 30px;
}

.home-page .button-secondary {
  background: #ffffff;
  border-color: #aeb6ad;
}

.home-page .button-secondary:hover {
  background: #ffffff;
  border-color: #151b18;
}

.hero-facts {
  align-items: center;
  color: #657068;
  display: flex;
  font-size: 0.8rem;
  gap: 24px;
  justify-content: center;
  margin-top: 22px;
}

.hero-facts span {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.hero-facts span::before {
  align-items: center;
  background: #dff4ba;
  border-radius: 50%;
  color: #355904;
  content: "\2713";
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 800;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.product-preview {
  background: #ffffff;
  border: 1px solid #c9cfc6;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 28px 70px rgba(22, 36, 27, 0.16);
  height: 500px;
  margin: 58px auto 0;
  max-width: 1200px;
  overflow: hidden;
  position: relative;
  text-align: left;
  z-index: 2;
}

.preview-bar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #dfe3da;
  color: #657068;
  display: grid;
  font-size: 0.68rem;
  grid-template-columns: 1fr auto 1fr;
  height: 42px;
  padding: 0 16px;
}

.preview-bar > span:last-child {
  justify-self: end;
}

.preview-lights {
  display: flex;
  gap: 6px;
}

.preview-lights i {
  background: #c7ccc5;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.preview-lights i:first-child { background: #ff765e; }
.preview-lights i:nth-child(2) { background: #f4c95d; }
.preview-lights i:last-child { background: #8fcf36; }

.preview-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  height: calc(100% - 42px);
}

.preview-sidebar {
  background: #151b18;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
}

.preview-brand {
  align-items: center;
  display: flex;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 9px;
}

.preview-brand b {
  align-items: center;
  background: var(--lime);
  border-radius: 4px;
  color: #151b18;
  display: inline-flex;
  font-size: 0.52rem;
  height: 25px;
  justify-content: center;
  width: 25px;
}

.preview-nav {
  display: grid;
  gap: 5px;
  margin-top: 40px;
}

.preview-nav span {
  border-radius: 4px;
  color: #b8c0ba;
  font-size: 0.7rem;
  padding: 10px 11px;
}

.preview-nav .active {
  background: #2a332d;
  color: var(--lime);
}

.preview-sidebar small {
  color: #7f8982;
  font-size: 0.58rem;
  margin-top: auto;
}

.preview-main {
  background: #eef0eb;
  min-width: 0;
  padding: 24px 28px;
}

.preview-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.preview-heading > div > span,
.preview-queue-heading > div > span {
  color: #5f7751;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-heading h2 {
  color: #151b18;
  font-family: "Aptos Display", "Trebuchet MS", sans-serif;
  font-size: 1.5rem;
  margin: 3px 0 0;
}

.preview-connected {
  align-items: center;
  color: #4f5b53;
  display: inline-flex;
  font-size: 0.65rem;
  gap: 7px;
}

.preview-connected i {
  background: #69a61a;
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.preview-stats {
  border-bottom: 1px solid #c6cbc3;
  border-top: 1px solid #c6cbc3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0;
}

.preview-stats div {
  border-right: 1px solid #c6cbc3;
  display: grid;
  gap: 12px;
  padding: 13px 16px;
}

.preview-stats div:last-child {
  border-right: 0;
}

.preview-stats span {
  color: #68716b;
  font-size: 0.62rem;
}

.preview-stats strong {
  font-family: "Aptos Display", "Trebuchet MS", sans-serif;
  font-size: 1.65rem;
}

.preview-queue {
  background: #ffffff;
  border: 1px solid #d0d5cd;
  border-radius: 6px;
  padding: 18px 20px 7px;
}

.preview-queue-heading {
  align-items: center;
  border-bottom: 1px solid #e2e5df;
  display: flex;
  justify-content: space-between;
  padding-bottom: 13px;
}

.preview-queue-heading h3 {
  font-family: "Aptos Display", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  margin: 3px 0 0;
}

.preview-queue-heading > span {
  color: #4c6253;
  font-size: 0.62rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.preview-row {
  align-items: center;
  border-bottom: 1px solid #eceeea;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(150px, 1.3fr) minmax(100px, 1fr) minmax(95px, 0.8fr) auto;
  min-height: 52px;
}

.preview-row:last-child {
  border-bottom: 0;
}

.preview-row strong,
.preview-row span {
  font-size: 0.67rem;
  min-width: 0;
}

.preview-row span {
  color: #6c746e;
}

.preview-row-head {
  color: #7a827c;
  min-height: 32px;
  text-transform: uppercase;
}

.preview-row-head span {
  font-size: 0.52rem;
  font-weight: 800;
}

.preview-status {
  border-radius: 4px;
  font-size: 0.58rem;
  padding: 6px 8px;
  text-align: center;
}

.preview-status.published { background: #c9f57c; }
.preview-status.scheduled { background: #bfcdfd; }
.preview-status.ready { background: #ffd0c7; }

.trust-strip {
  align-items: center;
  background: #151b18;
  color: #ffffff;
  display: grid;
  gap: 36px;
  grid-template-columns: auto 1fr;
  margin-top: -240px;
  padding: 267px max(24px, calc((100vw - 1200px) / 2)) 27px;
  position: relative;
  z-index: 1;
}

.trust-strip p {
  color: var(--lime);
  font-size: 0.75rem;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
}

.trust-strip ul {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-strip li {
  border-left: 1px solid #3c4740;
  color: #cbd1cc;
  font-size: 0.7rem;
  padding-left: 16px;
}

.publishing-flow,
.home-plans {
  background: #ffffff;
  padding: 110px max(24px, calc((100vw - 1200px) / 2));
}

.home-section-heading {
  margin: 0 auto 64px;
  max-width: 760px;
  text-align: center;
}

.home-page .home-section-heading h2,
.home-page .home-final-call h2 {
  font-size: 3.15rem;
  line-height: 1.08;
  margin-bottom: 22px;
}

.home-section-heading > p:last-child {
  color: #626b65;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 690px;
}

.flow-steps {
  border-bottom: 1px solid #cfd4cc;
  border-top: 1px solid #151b18;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.flow-steps li {
  border-right: 1px solid #cfd4cc;
  min-height: 300px;
  padding: 25px 28px 30px;
}

.flow-steps li:last-child {
  border-right: 0;
}

.home-page .step-number {
  color: #668646;
  font-family: "Aptos", "Trebuchet MS", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
}

.flow-steps h3 {
  font-family: "Aptos Display", "Trebuchet MS", sans-serif;
  font-size: 1.35rem;
  margin: 78px 0 14px;
}

.flow-steps p {
  color: #626b65;
  font-size: 0.88rem;
  line-height: 1.65;
}

.control-features {
  background: #1a211d;
  color: #ffffff;
  padding: 110px max(24px, calc((100vw - 1200px) / 2));
}

.home-section-heading-light h2 {
  color: #ffffff !important;
}

.home-section-heading-light > p:last-child {
  color: #b8c0ba;
}

.feature-grid {
  border-left: 1px solid #3b463f;
  border-top: 1px solid #3b463f;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.feature-grid article {
  border-bottom: 1px solid #3b463f;
  border-right: 1px solid #3b463f;
  min-height: 230px;
  padding: 36px;
}

.feature-grid article > span {
  color: var(--lime);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-grid h3 {
  font-family: "Aptos Display", "Trebuchet MS", sans-serif;
  font-size: 1.45rem;
  margin: 48px 0 12px;
}

.feature-grid p {
  color: #b8c0ba;
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 0;
  max-width: 470px;
}

.home-plans {
  background: #f7f8f3;
}

.home-plan-grid {
  border: 1px solid #cbd1c8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.home-plan-grid a {
  border-right: 1px solid #cbd1c8;
  display: grid;
  min-height: 220px;
  padding: 28px;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.home-plan-grid a:last-child {
  border-right: 0;
}

.home-plan-grid a:hover {
  background: #ffffff;
  box-shadow: inset 0 5px 0 var(--lime);
}

.home-plan-grid span {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.home-plan-grid strong {
  align-self: end;
  font-family: "Aptos Display", "Trebuchet MS", sans-serif;
  font-size: 3.3rem;
  line-height: 1;
}

.home-plan-grid small {
  color: #6b746e;
  font-size: 0.7rem;
  margin-top: 8px;
}

.home-plan-link {
  display: table;
  font-weight: 800;
  margin: 34px auto 0;
}

.home-final-call {
  align-items: center;
  background: #dff0bd;
  display: flex;
  gap: 60px;
  justify-content: space-between;
  padding: 82px max(24px, calc((100vw - 1200px) / 2));
}

.home-final-call > div {
  max-width: 760px;
}

.home-final-call .eyebrow {
  color: #3d5f0c;
}

.home-final-call h2 {
  margin: 0 !important;
}

.home-final-call .button {
  background: #151b18;
  border-color: #151b18;
  color: #ffffff;
  flex: 0 0 auto;
}

.home-final-call .button:hover {
  background: #ffffff;
  color: #151b18;
}

.home-page .site-footer {
  font-family: "Aptos", "Trebuchet MS", sans-serif;
}

.home-page .brand-footer .brand-mark {
  background: var(--lime);
  color: #151b18;
}

@keyframes home-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-intro > * {
  animation: home-rise 520ms ease both;
}

.hero-intro > :nth-child(2) { animation-delay: 60ms; }
.hero-intro > :nth-child(3) { animation-delay: 110ms; }
.hero-intro > :nth-child(4) { animation-delay: 160ms; }
.hero-intro > :nth-child(5) { animation-delay: 210ms; }
.product-preview { animation: home-rise 650ms 180ms ease both; }

@media (max-width: 1040px) {
  .home-page .hero-intro h1 {
    font-size: 3.65rem;
  }

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

  .preview-main {
    padding: 22px;
  }

  .preview-row {
    gap: 12px;
    grid-template-columns: minmax(130px, 1.3fr) minmax(90px, 1fr) auto;
  }

  .preview-row > :nth-child(3) {
    display: none;
  }

  .trust-strip {
    align-items: start;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-steps li:nth-child(2) {
    border-right: 0;
  }

  .flow-steps li:nth-child(-n+2) {
    border-bottom: 1px solid #cfd4cc;
  }

  .home-final-call {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .home-page .home-header {
    height: 64px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-page .brand {
    font-size: 1rem;
  }

  .home-page .brand-mark {
    height: 30px;
    width: 30px;
  }

  .home-page .primary-nav {
    gap: 12px;
  }

  .home-page .primary-nav > a:not(.button) {
    display: none;
  }

  .home-page .primary-nav > a.nav-sign-in {
    display: inline-flex;
  }

  .home-page .button-small {
    min-height: 36px;
    padding: 0 12px;
  }

  .landing-hero {
    padding: 48px 20px 0;
  }

  .home-page .hero-intro h1 {
    font-size: 2.65rem;
    line-height: 1.04;
  }

  .home-page .hero-summary {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .home-page .hero-actions {
    align-items: stretch;
    flex-direction: row;
    gap: 10px;
    margin-top: 24px;
  }

  .home-page .hero-actions .button {
    flex: 1;
    gap: 8px;
    padding: 0 14px;
    width: auto;
  }

  .hero-facts {
    flex-wrap: wrap;
    gap: 9px 18px;
    margin-top: 18px;
  }

  .product-preview {
    height: 310px;
    margin-top: 38px;
  }

  .preview-bar {
    grid-template-columns: 1fr auto;
  }

  .preview-bar > span:first-of-type {
    display: none;
  }

  .preview-sidebar {
    display: none;
  }

  .preview-layout {
    display: block;
  }

  .preview-main {
    height: 100%;
    padding: 13px 14px;
  }

  .preview-heading h2 {
    font-size: 1.15rem;
  }

  .preview-stats {
    display: none;
  }

  .preview-queue {
    padding: 10px 12px 4px;
  }

  .preview-queue-heading {
    padding-bottom: 8px;
  }

  .preview-queue-heading h3 {
    font-size: 0.88rem;
  }

  .preview-row-head {
    display: none;
  }

  .preview-row {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 42px;
  }

  .preview-row > span {
    display: none;
  }

  .preview-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .preview-status {
    min-width: 68px;
  }

  .trust-strip {
    margin-top: -90px;
    padding: 118px 20px 28px;
  }

  .trust-strip ul {
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-strip li {
    line-height: 1.45;
  }

  .publishing-flow,
  .home-plans,
  .control-features {
    padding: 78px 20px;
  }

  .home-section-heading {
    margin-bottom: 46px;
  }

  .home-page .home-section-heading h2,
  .home-page .home-final-call h2 {
    font-size: 2.3rem;
  }

  .flow-steps {
    display: block;
  }

  .flow-steps li,
  .flow-steps li:nth-child(2) {
    border-bottom: 1px solid #cfd4cc;
    border-right: 0;
    min-height: 0;
    padding: 26px 4px 30px;
  }

  .flow-steps li:last-child {
    border-bottom: 0;
  }

  .flow-steps h3 {
    margin: 24px 0 10px;
  }

  .feature-grid {
    display: block;
  }

  .feature-grid article {
    min-height: 0;
    padding: 28px 24px 32px;
  }

  .feature-grid h3 {
    margin-top: 28px;
  }

  .home-plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-plan-grid a {
    min-height: 180px;
    padding: 22px;
  }

  .home-plan-grid a:nth-child(2) {
    border-right: 0;
  }

  .home-plan-grid a:nth-child(-n+2) {
    border-bottom: 1px solid #cbd1c8;
  }

  .home-plan-grid strong {
    font-size: 2.7rem;
  }

  .home-final-call {
    gap: 32px;
    padding: 68px 20px 72px;
  }

  .home-final-call .button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .home-page .home-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-page .primary-nav {
    gap: 8px;
  }

  .home-page .nav-sign-in {
    font-size: 0.76rem;
  }

  .home-page .button-small {
    font-size: 0.78rem;
  }

  .home-page .hero-intro h1 {
    font-size: 2.42rem;
  }

  .home-page .hero-actions .button {
    font-size: 0.82rem;
    min-height: 47px;
  }

  .hero-facts {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-intro > *,
  .product-preview {
    animation: none;
  }

  .home-page .button {
    transition: none;
  }
}

/* Shared visual system across public, account, and workspace surfaces. */
.public-inner-page h1,
.public-inner-page h2,
.public-inner-page h3,
.legal-page h1,
.legal-page h2,
.legal-page h3,
.auth-page h1,
.auth-page h2,
.auth-page h3,
.dashboard-page h1,
.dashboard-page h2,
.dashboard-page h3 {
  font-family: var(--font-display);
}

.button,
.app-command,
.row-actions button,
.dialog-close,
.icon-button {
  border-radius: var(--control-radius);
}

.auth-tool,
.app-section,
.app-dialog,
.avatar-library-dialog {
  border-radius: var(--surface-radius);
}

.auth-tool input,
.settings-form input:not([type="checkbox"]):not([type="hidden"]),
.app-form input:not([type="checkbox"]):not([type="hidden"]),
.app-form select,
.app-form textarea {
  border-radius: var(--control-radius);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 2px;
}