:root {
  --paper: #faf6e9;
  --paper-deep: #f0ead9;
  --paper-warm: #e7deca;
  --ink: #191206;
  --ink-soft: #33291b;
  --muted: #716858;
  --line: rgba(25, 18, 6, 0.16);
  --line-dark: rgba(255, 250, 237, 0.16);
  --brand: #f04a16;
  --brand-deep: #c8320d;
  --brand-wash: #ffd8c7;
  --signal: #dc3f42;
  --white: #ffffff;
  --night: #171106;
  --night-raised: #241c0e;
  --night-muted: #bdb5a5;
  --wrap: 1280px;
  --header-h: 72px;
  --h1: clamp(2.75rem, 4.2vw, 3.5rem);
  --h2: clamp(2.25rem, 3.5vw, 3rem);
  --h3: 1.5rem;
  --body: 1rem;
  --small: 0.875rem;
  --radius-control: 999px;
  --radius-card: 32px;
  --radius-inner: 16px;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;
  --s7: 120px;
  --font: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: var(--body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(calc(100% - 48px), var(--wrap));
  margin-inline: auto;
}

.announcement {
  min-height: 32px;
  display: grid;
  place-items: center;
  padding: 6px 24px;
  color: var(--paper);
  background: var(--night);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header[data-ready="true"] {
  position: sticky;
  top: 0;
}

.nav-shell {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand img {
  width: 28px;
  height: 28px;
}

.brand-name {
  display: inline-block;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-right: auto;
}

.primary-nav > a {
  font-size: 14px;
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-menu {
  position: relative;
}

.language-trigger,
.nav-login,
.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--brand-wash);
  border-radius: var(--radius-control);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.language-trigger {
  position: relative;
  padding-right: 32px;
  line-height: 1;
}

.language-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(calc(-50% - 1px)) rotate(45deg);
  pointer-events: none;
}

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

.button-primary:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

.language-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 168px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-inner);
  background: var(--paper);
  box-shadow: 0 16px 40px rgba(25, 18, 6, 0.08);
}

.language-panel a {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 14px;
}

.language-panel a:hover {
  background: var(--paper-deep);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.nav-toggle span {
  width: 16px;
  height: 1px;
  margin: 4px auto;
  display: block;
  background: var(--ink);
}

.nav-drawer {
  display: none;
}

.hero {
  padding: var(--s5) 0 var(--s7);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.22fr);
  gap: var(--s5);
  align-items: start;
}

.hero-copy {
  position: sticky;
  top: var(--s4);
  padding-top: var(--s5);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--s3);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

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

h1 {
  max-width: 560px;
  margin-bottom: var(--s3);
  font-size: var(--h1);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

h1 em {
  color: var(--signal);
  font-style: normal;
  font-weight: inherit;
  white-space: nowrap;
}

.inner-hero h1 {
  max-width: none;
  overflow-wrap: anywhere;
}

.inner-hero h1 em {
  white-space: normal;
}

h2 {
  max-width: 800px;
  margin-bottom: var(--s3);
  font-size: var(--h2);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

h3 {
  margin-bottom: var(--s2);
  font-size: var(--h3);
  line-height: 1.2;
}

.hero-summary {
  max-width: 500px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 700;
}

.hero-note {
  max-width: 480px;
  margin-bottom: var(--s4);
  color: var(--muted);
}

.mode-switch {
  width: fit-content;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--paper-deep);
}

.mode-switch a,
.mode-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.mode-switch .is-active {
  color: var(--white);
  background: var(--brand);
}

.mailbox-window {
  min-width: 0;
  min-height: 628px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  animation: settle-in 600ms ease-out both;
}

@keyframes settle-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.mailbox-addressbar {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s3);
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}

.address-block {
  min-width: 0;
  margin-right: auto;
}

.address-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mailbox-address {
  display: block;
  overflow: hidden;
  font-family: var(--mono);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 700;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timer {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}

.icon-button {
  min-width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.mailbox-main {
  min-height: 532px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.message-list {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.message-list-head {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s2);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.message-row {
  width: 100%;
  height: 76px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 0 var(--s2);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.message-row.is-active {
  box-shadow: inset 3px 0 0 var(--brand);
  background: var(--white);
}

.message-row:hover {
  background: var(--paper-deep);
}

.sender-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.sender-avatar.whatsapp {
  color: var(--night);
  background: var(--paper-warm);
}

.message-meta {
  min-width: 0;
}

.message-meta strong,
.message-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-meta strong {
  font-size: 13px;
}

.message-meta span,
.message-time {
  color: var(--muted);
  font-size: 11px;
}

.message-row > span:last-child {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.unread-dot {
  width: 7px;
  height: 7px;
  display: block;
  border-radius: 50%;
  background: var(--brand);
}

.mail-frame {
  width: 100%;
  min-height: 360px;
  display: block;
  flex: 0 0 auto;
  border: 0;
}

.inbox-idle {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 3px 10px;
  padding: var(--s3) var(--s2);
  color: var(--muted);
  font-size: 11px;
}

.inbox-idle strong {
  color: var(--ink-soft);
  font-size: 12px;
}

.inbox-idle > span:last-child {
  grid-column: 2;
}

.pulse-mark {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border: 2px solid var(--brand);
  border-radius: 50%;
}

.reader {
  min-width: 0;
  max-height: 532px;
  overflow-y: auto;
  background: var(--white);
}

.reader-chrome {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--line);
}

.reader-chrome .sender-avatar {
  width: 44px;
  height: 44px;
}

.reader-from {
  min-width: 0;
  margin-right: auto;
}

.reader-from strong,
.reader-from span {
  display: block;
}

.reader-from span {
  color: var(--muted);
  font-size: 12px;
}

.reader-date {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.reader-chrome .demo-badge {
  flex: 0 0 auto;
}

.demo-badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: var(--radius-control);
  color: #a82a09;
  background: var(--brand-wash);
  font-size: 11px;
  font-weight: 800;
}

.reader-body {
  padding: var(--s4);
}

.demo-letter {
  max-width: 520px;
  margin: 0 auto;
}

.demo-letter-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--s4);
}

.demo-letter h2 {
  margin-bottom: var(--s2);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.code-block {
  margin: var(--s3) 0;
  padding: var(--s3);
  background: var(--night);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
}

.demo-disclaimer {
  margin-top: var(--s4);
  color: var(--muted);
  font-size: 11px;
}

.mailbox-toolbar {
  display: flex;
  gap: 8px;
  margin-top: var(--s3);
}

.section {
  padding: var(--s6) 0;
}

.section-intro {
  max-width: 680px;
  margin-bottom: var(--s4);
  color: var(--muted);
  font-size: 17px;
}

.night-section {
  color: var(--paper);
  background: var(--night);
}

.night-section .eyebrow {
  color: #ff8a60;
}

.night-section .section-intro {
  color: var(--night-muted);
}

.night-section input,
.night-section textarea {
  color: var(--paper);
  border-color: var(--line-dark);
  background: var(--night-raised);
}

.feature-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s2);
}

.feature-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  padding: var(--s4);
  border-radius: var(--radius-card);
  background: var(--night-raised);
}

.feature-plate {
  width: 100%;
  height: 190px;
  margin-bottom: var(--s3);
  color: #ff7650;
}

.feature-plate .plate-dim {
  stroke: rgba(255, 246, 233, 0.24);
}

.feature-plate .plate-hot {
  stroke: currentColor;
}

.feature-plate path,
.feature-plate rect,
.feature-plate circle,
.feature-plate line,
.feature-plate polyline {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card .feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: var(--s2);
  border-radius: 50%;
  color: var(--signal);
  background: rgba(220, 63, 66, 0.12);
  font-size: 20px;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--night-muted);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--s2);
}

.story-panel {
  min-height: 440px;
  padding: var(--s5);
  border-radius: var(--radius-card);
  background: var(--paper-deep);
}

.story-panel > h3 {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.story-panel > p {
  max-width: 720px;
  color: var(--muted);
}

.story-panel-accent {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  background: var(--brand-deep);
}

.story-panel-accent > p,
.story-panel-accent p {
  color: var(--white);
}

.story-panel-accent .metric {
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
  margin-top: var(--s5);
}

.step-number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: var(--s3);
  border-radius: 50%;
  color: var(--white);
  background: var(--brand-deep);
  font-family: var(--mono);
  font-weight: 700;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  padding: var(--s3) 48px var(--s3) 0;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  color: var(--brand);
  content: "+";
  font-size: 24px;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  max-width: 760px;
  padding-bottom: var(--s3);
  color: var(--muted);
}

.final-cta {
  padding: var(--s6) 0;
  color: var(--white);
  background: var(--brand);
}

.final-cta-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--s4);
}

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

.final-cta .eyebrow::before {
  background: var(--ink);
}

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

.site-footer {
  padding: var(--s5) 0 var(--s3);
  color: var(--paper);
  background: var(--night);
}

.footer-mast {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--s4);
  max-width: 36rem;
}

.footer-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(240px, 1.2fr);
  gap: var(--s3);
  align-items: start;
}

.footer-about p,
.footer-mast p {
  max-width: 420px;
  color: var(--night-muted);
}

.footer-column strong {
  display: block;
  margin-bottom: var(--s2);
  font-size: 13px;
}

.footer-column a {
  display: block;
  margin: 9px 0;
  color: var(--night-muted);
  font-size: 13px;
}

.footer-support {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  grid-column: 4;
  grid-row: 1 / span 2;
  min-width: 0;
  padding: 28px 24px;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  background: #2c2212;
  box-shadow: inset 3px 0 0 var(--brand);
}

.footer-support strong {
  display: block;
  margin: 0;
  color: var(--paper);
  font-size: 18px;
  font-weight: 700;
}

.footer-support p {
  margin: 0;
  max-width: 28ch;
  color: var(--night-muted);
  font-size: 14px;
  line-height: 1.5;
}

.footer-support a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 4px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.footer-support a:hover {
  color: var(--white);
  background: var(--brand-deep);
}

.footer-search {
  display: grid;
  gap: 8px;
}

.footer-search input {
  min-height: 38px;
  color: var(--paper);
  border-color: var(--line-dark);
  background: var(--night-raised);
}

.footer-search button {
  min-height: 38px;
  border: 0;
  border-radius: var(--radius-control);
  color: var(--white);
  background: var(--brand);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--line-dark);
  color: var(--night-muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 11px 18px;
  border-radius: var(--radius-control);
  color: var(--paper);
  background: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.mobile-reader {
  display: none;
}

@media (max-width: 980px) {
  .primary-nav,
  .nav-actions .nav-login {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: block;
  }

  .nav-drawer {
    position: absolute;
    top: 100%;
    left: 24px;
    right: 24px;
    padding: var(--s3);
    border: 1px solid var(--line);
    border-radius: var(--radius-inner);
    background: var(--paper);
  }

  .nav-drawer.is-open {
    display: grid;
    gap: var(--s2);
  }

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

  .hero-copy {
    position: static;
  }

  .feature-editorial,
  .steps {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 260px;
  }
}

@media (max-width: 720px) {
  :root {
    --h1: clamp(2.4rem, 11vw, 3.1rem);
    --h2: clamp(2rem, 9vw, 2.6rem);
    --s6: 64px;
    --s7: 80px;
  }

  .wrap {
    width: min(calc(100% - 32px), var(--wrap));
  }

  .announcement {
    padding-inline: 16px;
  }

  .language-trigger {
    min-width: 40px;
    padding-inline: 12px 28px;
  }

  .nav-actions > .button-primary {
    display: none;
  }

  .hero {
    padding-top: var(--s4);
  }

  .hero-grid {
    gap: var(--s4);
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-summary {
    font-size: 16px;
  }

  .hero-note {
    margin-bottom: var(--s3);
  }

  .mode-switch {
    width: 100%;
  }

  .mode-switch a,
  .mode-switch button {
    padding-inline: 10px;
  }

  .mailbox-window {
    min-height: 0;
    overflow: visible;
    border-radius: 24px;
  }

  .mailbox-addressbar {
    min-height: 0;
    flex-wrap: wrap;
    padding: var(--s2);
  }

  .address-block {
    flex: 1 1 calc(100% - 56px);
  }

  .mailbox-address {
    overflow-wrap: anywhere;
    font-size: clamp(14px, 4.15vw, 16px);
    text-overflow: clip;
    white-space: normal;
  }

  .timer {
    order: 4;
    margin-left: auto;
  }

  .mailbox-addressbar .icon-button {
    order: 3;
  }

  .mailbox-main {
    min-height: 0;
    display: block;
  }

  .message-list {
    border-right: 0;
  }

  .reader {
    display: none;
  }

  body.sheet-open .announcement {
    display: none;
  }

  body.sheet-open .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 120;
  }

  .mobile-reader {
    position: fixed;
    z-index: 100;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: none;
    height: auto;
    color: var(--ink);
    background: var(--paper);
  }

  .mobile-reader-toolbar {
    position: sticky;
    z-index: 3;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .reader-text-button {
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--white);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    white-space: normal;
    cursor: pointer;
  }

  .mobile-reader-close {
    position: static;
    margin: 0;
  }

  .mobile-reader .reader-body {
    padding: var(--s3);
    color: var(--ink);
    background: var(--paper);
  }

  .mobile-reader .reader-chrome {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-right: var(--s3);
  }

  .mobile-reader .reader-from {
    flex: 1 1 calc(100% - 64px);
  }

  .mobile-reader .reader-date {
    margin-left: 56px;
  }

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

  .story-panel {
    min-height: 340px;
    padding: var(--s4);
  }

  .final-cta-row,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .footer-mast,
  .footer-about,
  .footer-support {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

form {
  display: flow-root;
}

input,
textarea,
.listbox-trigger {
  min-width: 0;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  color: var(--ink);
  background: var(--white);
}

.night-section input,
.night-section textarea,
.console-stage input,
.console-stage textarea,
[data-desk-root] input,
[data-desk-root] textarea {
  color: var(--paper);
  border-color: var(--line-dark);
  background: var(--night-raised) !important;
}

.access-card input,
.access-card textarea,
.access-card .code-field,
.access-stage .field-stack input {
  color: var(--ink) !important;
  border: 1.5px solid rgba(255, 250, 237, 0.58);
  background: var(--paper) !important;
}

.access-card input::placeholder,
.access-card .code-field::placeholder {
  color: var(--muted);
}

input,
textarea,
.alias-composer,
.composer {
  color: var(--paper);
  background-color: var(--night-raised) !important;
}

.surface-safety input,
.surface-safety textarea,
.surface-safety .code-field,
[data-desk-root] .surface-safety input,
[data-desk-root] .surface-safety textarea,
[data-desk-root] .surface-safety .code-field {
  color: var(--ink) !important;
  border-color: var(--line);
  background: var(--white) !important;
}

.surface-safety input::placeholder,
.surface-safety .code-field::placeholder {
  color: var(--muted);
}

textarea {
  min-height: 120px;
  padding-block: 16px;
  border-radius: var(--radius-inner);
  resize: vertical;
}

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

.table-shell {
  margin-top: var(--s2);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: var(--s2);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill {
  width: max-content;
  display: inline-flex;
  padding: 5px 10px;
  border-radius: var(--radius-control);
  color: var(--ink);
  background: var(--paper-warm);
  font-size: 11px;
  font-weight: 700;
}

.empty-state {
  margin-top: var(--s2);
  padding: var(--s4);
  border-radius: var(--radius-inner);
  background: var(--paper-deep);
  color: var(--muted);
}

.alias-line,
.archive-line {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: var(--s2);
  align-items: center;
  padding: var(--s2) 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.archive-line > span:first-child {
  min-width: 0;
}

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

@media (max-width: 720px) {
  .alias-line,
  .archive-line {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* Cross-page interaction and editorial safeguards */
.primary-nav > a[aria-current="page"] {
  padding: 7px 12px;
  border-radius: var(--radius-control);
  background: var(--brand-wash);
}

h1,
h2 {
  text-wrap: balance;
}

.eyebrow + h1,
.eyebrow + h2 {
  margin-top: 20px;
}

.toast {
  width: max-content;
  max-width: min(430px, calc(100% - 32px));
  border-radius: 18px;
  text-align: center;
  white-space: normal;
}

.archive-detail,
[data-archive-detail] {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.archive-detail iframe,
[data-archive-detail] iframe {
  width: 100%;
  max-width: 100%;
  border: 0;
}

.alias-line button,
[data-copy-alias],
[data-toggle-alias],
[data-remove-alias] {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--brand-wash);
  border-radius: var(--radius-control);
  background: var(--paper);
}

.status-pill.is-active {
  background: var(--brand-wash);
}

.status-pill.is-paused {
  color: var(--muted);
  background: var(--paper-deep);
}

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

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

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

  .mailbox-window {
    animation: none;
  }
}
