:root {
  --paper: #f5faf9;
  --paper-soft: #edf6f4;
  --surface: #ffffff;
  --ink: #10211f;
  --ink-soft: #405d59;
  --muted: #718985;
  --line: #dbe9e6;
  --brand: #167b74;
  --brand-deep: #0d5f59;
  --brand-wash: #d7f2ec;
  --accent: #e46f42;
  --night: #123d3a;
  --night-soft: #1b504c;
  --font: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --h1: 48px;
  --h2: 58px;
  --h3: 18px;
  --body: 16px;
  --small: 13px;
  --micro: 11px;
  --radius-control: 12px;
  --radius-card: 14px;
  --radius-panel: 14px;
  --wrap: 1310px;
  --header-h: 72px;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;
  --s7: 112px;
  --shadow: 0 24px 64px rgba(36, 74, 69, 0.12), 0 3px 12px rgba(36, 74, 69, 0.06);
}

* {
  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.72;
  -webkit-font-smoothing: antialiased;
}

body.reader-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

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

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

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

[hidden] {
  display: none !important;
}

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

.site-header {
  position: sticky;
  top: 0;
  background: rgba(245, 250, 249, 0.94);
  backdrop-filter: blur(16px);
  z-index: 20;
  min-height: var(--header-h);
  background: transparent;
}

.header-inner {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-name {
  display: inline-block;
}

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

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  gap: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.site-nav a {
  padding: 8px 12px;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--brand-deep);
}

.site-nav a[aria-current="page"] {
  border-radius: var(--radius-control);
  background: var(--brand-wash);
  color: var(--brand-deep);
}

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

.header-actions .button,
.header-actions .lang-trigger {
  flex: none;
  white-space: nowrap;
}

.button,
.icon-button,
.lang-trigger,
.mode-button {
  min-height: 47px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--brand);
  color: var(--surface);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(22, 123, 116, 0.17);
}

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

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}

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

.lang-shell {
  position: relative;
}

.lang-trigger {
  min-width: 94px;
  padding: 0 28px 0 16px;
  position: relative;
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}

.chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(calc(-50% - 2px)) rotate(45deg);
  pointer-events: none;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lang-menu a {
  display: block;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink-soft);
  font-size: 14px;
}

.lang-menu a:hover {
  background: var(--paper-soft);
  color: var(--brand-deep);
}

.nav-toggle,
.nav-drawer {
  display: none;
}

.hero {
  padding: 54px 0 var(--s7);
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: var(--s4);
}

.hero-copy {
  max-width: 760px;
  transform: none;
}

.eyebrow {
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--brand);
}

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

h1,
h2 {
  text-wrap: balance;
}

h1 {
  max-width: 590px;
  margin-bottom: var(--s3);
  font-size: var(--h1);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: normal;
  line-height: 1.28;
}

h1 em,
.marker-word {
  position: relative;
  z-index: 0;
  font-style: normal;
  font-weight: inherit;
}

.marker-word {
  white-space: nowrap;
}

.section-heading .marker-word {
  white-space: normal;
  overflow-wrap: anywhere;
}

h1 em {
  white-space: normal;
}

h1 em::after,
.marker-word::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -2px;
  right: -4px;
  bottom: 2px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-wash);
  transform: rotate(-1.4deg);
}

.hero-lead {
  max-width: 560px;
  margin-bottom: var(--s4);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.82;
}

.mode-switch {
  width: fit-content;
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(36, 74, 69, 0.06);
}

.mode-button {
  min-height: 43px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  box-shadow: none;
}

.mode-button.is-active {
  background: var(--brand);
  color: var(--surface);
  box-shadow: 0 6px 16px rgba(22, 123, 116, 0.16);
}

.mode-button:hover:not(.is-active) {
  background: var(--paper-soft);
  color: var(--brand-deep);
}

.hero-note {
  margin: var(--s2) 0 0;
  color: var(--ink-soft);
  font-size: var(--small);
}

.mail-stage {
  width: 100%;
  height: auto;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(127, 161, 156, 0.22);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mail-toolbar {
  min-height: 94px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--s2);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.address-label {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mail-address {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.toolbar-actions,
.reader-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.icon-button {
  width: auto;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  box-shadow: none;
  white-space: nowrap;
}

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

.timer {
  min-width: 90px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brand-deep);
}

.mail-workspace,
.inbox-grid {
  min-height: 0;
  height: 534px;
  flex: 1 1 534px;
  display: grid;
  grid-template-columns: minmax(240px, 37%) minmax(0, 1fr);
}

.mail-list-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--paper-soft);
}

.mail-list-head {
  min-height: 55px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.mail-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.inbox-refresh-status {
  height: 40px;
  flex: 0 0 40px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
}

.mail-row {
  width: 100%;
  height: 76px;
  min-height: 76px;
  max-height: 76px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.mail-row:hover:not(.is-active) {
  background: var(--paper);
}

.mail-row.is-active {
  background: var(--brand-wash);
  box-shadow: inset 3px 0 0 var(--brand);
  color: var(--ink);
}

.sender-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--surface);
  font-size: 12px;
  font-weight: 600;
}

.mail-row-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mail-row-copy strong,
.mail-row-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-row-copy strong {
  font-size: 13px;
}

.mail-row-copy span,
.mail-row time {
  color: var(--ink-soft);
  font-size: 11px;
}

.mail-reader {
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  background: var(--surface);
  color: var(--ink);
}

.reader-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.reader-head h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}

.reader-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--ink-soft);
  font-size: 11px;
}

.reader-close {
  width: auto;
  padding-inline: 14px;
  display: none;
}

.mail-reader:not(.mobile-reader) [data-reader-close] {
  display: none;
}

.reader-body {
  min-height: 438px;
  padding: 24px 28px 40px;
  color: var(--ink-soft);
  font-size: 14px;
  background: var(--surface);
}

.reader-body .demo-letter {
  display: grid;
  gap: 18px;
}

.demo-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-brand strong {
  color: var(--ink);
  font-size: 18px;
}

.demo-stamp {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand-deep);
  font-size: 10px;
  font-weight: 600;
}

.code-board {
  padding: 22px;
  border-radius: var(--radius-card);
  background: var(--paper-soft);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: center;
}

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

.demo-fact {
  padding: 12px;
  border-radius: var(--radius-control);
  background: var(--paper-soft);
  color: var(--ink-soft);
}

.demo-fact small {
  display: block;
  color: var(--muted);
}

.demo-disclaimer {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
}

.mail-toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: var(--radius-control);
  background: var(--night);
  color: var(--surface);
  font-size: 13px;
  box-shadow: var(--shadow);
}

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

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

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

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: var(--s5);
  margin-bottom: var(--s5);
}

.section-heading h2 {
  max-width: 860px;
  margin-bottom: 0;
  font-size: var(--h2);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-intro {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.promise-grid,
.scene-grid,
.note-grid {
  display: grid;
  gap: var(--s2);
}

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

.route-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.route-step {
  min-height: 210px;
  padding: var(--s4);
  position: relative;
}

.route-step + .route-step {
  border-left: 1px solid var(--line);
}

.route-step .promise-number {
  margin-bottom: var(--s4);
}

.route-step h3 {
  margin-bottom: 12px;
  font-size: var(--h3);
  font-weight: 600;
}

.route-step p {
  margin: 0;
  color: var(--ink-soft);
}

.promise-card {
  min-height: 250px;
  padding: var(--s4);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 14px 44px rgba(36, 74, 69, 0.07);
}

.promise-number {
  margin-bottom: var(--s5);
  color: var(--brand);
  font-family: var(--mono);
  font-size: var(--small);
}

.promise-card h3,
.scene-copy h3,
.note-card h3 {
  margin-bottom: 12px;
  font-size: var(--h3);
  font-weight: 600;
}

.promise-card p,
.scene-copy p,
.note-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.guide-workbench {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: var(--s2);
  align-items: stretch;
}

.guide-panel {
  padding: var(--s4);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.guide-panel-head {
  margin-bottom: var(--s3);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--s3);
}

.guide-panel-head .promise-number {
  margin: 0;
}

.guide-panel-head strong {
  font-size: var(--h3);
}

.guide-flow {
  border-top: 1px solid var(--line);
}

.guide-flow-row {
  min-height: 88px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s2);
  border-bottom: 1px solid var(--line);
}

.guide-flow-row div {
  display: grid;
  gap: 3px;
}

.guide-flow-row small {
  color: var(--ink-soft);
  font-size: var(--small);
}

.guide-flow-row a {
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 600;
}

.guide-steps {
  display: grid;
  gap: var(--s2);
}

.guide-steps article {
  padding: var(--s3);
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: var(--s2);
  border-radius: var(--radius-card);
  background: var(--brand-wash);
  color: var(--ink);
}

.guide-steps article > span {
  color: var(--brand-deep);
  font-family: var(--mono);
  font-size: var(--small);
}

.guide-steps h3 {
  margin-bottom: var(--s1);
  font-size: var(--h3);
}

.guide-steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.scene-grid {
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
  align-items: start;
}

.scene-card {
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding-bottom: 32px;
}

.scene-copy {
  padding: 32px 32px 0;
}

.scene-copy h3 {
  max-width: 500px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.28;
}

.route-visual {
  margin: 16px 32px 0;
  padding: 10px 18px;
  border-radius: var(--radius-card);
  background: var(--paper-soft);
}

.route-row {
  min-height: 70px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

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

.route-row span:not(.sender-badge) {
  display: grid;
  color: var(--ink-soft);
  font-size: 12px;
}

.route-row strong {
  color: var(--ink);
}

.route-row b {
  color: var(--brand-deep);
  font-size: 11px;
}

.privacy-band {
  position: relative;
  overflow: hidden;
}

.privacy-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24px;
  background: rgba(255, 255, 255, 0.04);
  clip-path: polygon(0 58%, 12% 44%, 25% 54%, 40% 38%, 55% 52%, 72% 40%, 86% 52%, 100% 42%, 100% 100%, 0 100%);
}

.night-inner {
  padding-bottom: var(--s5);
}

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

.section-night .eyebrow::before {
  background: var(--accent);
}

.section-night .section-intro {
  color: #c8dcd9;
}

.note-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.note-card {
  min-height: 280px;
  padding: var(--s4);
  border-radius: var(--radius-card);
  background: var(--night-soft);
  color: var(--surface);
}

.note-card:not(.accent) p {
  color: #c8dcd9;
}

.note-card.accent {
  background: var(--brand-wash);
  color: var(--ink);
}

.note-card.accent p {
  color: var(--ink-soft);
}

.final-cta {
  padding: var(--s7) 0;
  background: var(--surface);
}

.final-cta-card {
  padding: var(--s5);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--s4);
  border-radius: var(--radius-panel);
  background: var(--brand-wash);
  color: var(--ink);
}

.final-cta h2 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: var(--h2);
  font-weight: 400;
  line-height: 1.2;
}

.final-cta p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.site-footer {
  padding: var(--s6) 0 var(--s4);
  background: var(--night);
  color: var(--surface);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 0.7fr));
  gap: var(--s5);
}

.footer-brand .brand {
  margin-bottom: var(--s3);
}

.footer-brand p {
  max-width: 420px;
  color: #b8d0cd;
}

.footer-group h2 {
  margin-bottom: 18px;
  color: #89aaa5;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-group a {
  display: block;
  width: fit-content;
  margin: 10px 0;
  color: #d8e8e5;
  font-size: 14px;
}

.footer-group a:hover {
  color: var(--surface);
}

.footer-support {
  margin-top: var(--s4);
  padding: var(--s3);
  border-radius: var(--radius-card);
  background: var(--night-soft);
  color: var(--surface);
}

.footer-support p {
  margin-bottom: var(--s2);
  color: #c8dcd9;
  font-size: 14px;
}

.footer-support .button {
  background: var(--surface);
  color: var(--night);
  box-shadow: none;
}

.footer-support .button:hover {
  background: var(--brand-wash);
  color: var(--night);
}

.footer-bottom {
  margin-top: var(--s5);
  padding-top: var(--s3);
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #9db9b5;
  font-size: 12px;
}

@media (max-width: 1500px) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    padding-inline: 8px;
  }
}

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

  .route-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .route-row b {
    grid-column: 2;
    justify-self: start;
  }

  .hero-copy {
    max-width: 780px;
    transform: none;
  }

  .mail-stage {
    width: 100%;
  }
}

@media (max-width: 1240px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    row-gap: 4px;
    padding-block: 8px;
  }

  .brand {
    grid-area: brand;
  }

  .header-actions {
    grid-area: actions;
    justify-self: end;
  }

  .site-nav {
    grid-area: nav;
    justify-content: flex-start;
    gap: 4px;
    min-width: 0;
  }

  .site-nav a {
    padding-inline: 8px;
  }
}

@media (max-width: 820px) {
  :root {
    --h1: 52px;
    --h2: 58px;
    --header-h: 64px;
    --s7: 80px;
  }

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

  .header-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .site-nav,
  .header-login {
    display: none;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    display: grid;
    place-items: center;
    background: var(--surface);
    color: var(--ink);
  }

  .nav-toggle span,
  .nav-toggle::before,
  .nav-toggle::after {
    content: "";
    width: 18px;
    height: 1px;
    display: block;
    background: currentColor;
  }

  .site-header {
    display: block;
  }

  .nav-drawer {
    position: fixed;
    z-index: 50;
    top: calc(var(--header-h) - 10px);
    left: 16px;
    width: min(280px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-drawer:not([hidden]) {
    display: grid;
  }

  .nav-drawer a {
    padding: 10px;
    border-radius: 8px;
    color: var(--ink-soft);
    text-align: left;
  }

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

  .section-heading,
  .promise-grid,
  .route-band,
  .note-grid,
  .guide-workbench,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .route-step + .route-step {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .section-heading {
    align-items: start;
  }

  .section-heading > div,
  .section-heading h2,
  .section-intro {
    min-width: 0;
    max-width: 100%;
  }

  .section-heading .marker-word {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .footer-top {
    gap: var(--s4);
  }
}

@media (max-width: 600px) {
  :root {
    --h1: 48px;
    --h2: 58px;
    --s6: 64px;
    --s7: 72px;
  }

  .brand {
    font-size: 18px;
  }

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

  .header-actions .button {
    display: none;
  }

  .header-actions .lang-trigger {
    min-width: 44px;
    width: 44px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .lang-trigger .lang-text {
    display: none;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .lang-trigger .chevron {
    left: 18px;
    right: auto;
  }

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

  .hero-copy {
    max-width: 350px;
  }

  .hero-lead {
    margin-bottom: var(--s3);
    font-size: 15px;
    line-height: 1.75;
  }

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

  h1 {
    margin-bottom: var(--s3);
    line-height: 1.22;
  }

  .eyebrow {
    margin-bottom: var(--s2);
  }

  .mode-switch {
    width: 100%;
  }

  .mode-button {
    flex: 1;
    padding-inline: 10px;
  }

  .mail-stage {
    min-height: 0;
  }

  .mail-toolbar {
    min-height: 120px;
    grid-template-columns: 1fr;
  }

  .toolbar-actions {
    justify-content: space-between;
  }

  .mail-workspace {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .mail-list-panel {
    min-height: 290px;
    border-right: 0;
  }

  .mail-list {
    flex: 0 1 auto;
    max-height: 220px;
  }

  .mail-reader {
    display: none;
  }

  .mail-reader.mobile-reader {
    position: fixed;
    z-index: 90;
    inset: var(--header-h) 0 0;
    width: 100%;
    height: calc(100dvh - var(--header-h));
    max-height: none;
    display: block;
    overflow-y: auto;
    background: var(--surface);
    color: var(--ink);
    transform: none;
    animation: none;
  }

  .reader-close {
    display: inline-flex;
  }

  .reader-head {
    top: 0;
  }

  .reader-body {
    padding: 22px 18px 48px;
  }

  .demo-facts,
  .scene-grid {
    grid-template-columns: 1fr;
  }

  .guide-panel {
    padding: var(--s3);
  }

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

  .guide-flow-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .guide-flow-row a {
    grid-column: 2;
  }

  .promise-card,
  .scene-copy,
  .note-card,
  .final-cta-card {
    padding: var(--s3);
  }

  .scene-card {
    min-height: 0;
  }

  .scene-copy h3 {
    font-size: 22px;
    overflow-wrap: anywhere;
  }

  .route-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .route-row b {
    grid-column: 2;
    justify-self: start;
  }

  .note-card {
    min-height: 0;
  }

  .route-visual {
    margin: 0 var(--s3) var(--s3);
  }

  .final-cta-card {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* Access and forwarding desk */
.access-main {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--surface);
}

.access-story,
.access-panel {
  min-width: 0;
  padding-block: var(--s6);
}

.access-story {
  padding-left: max(var(--s4), calc((100vw - var(--wrap)) / 2));
  padding-right: var(--s5);
  background: var(--paper-soft);
}

.access-panel {
  padding-left: var(--s5);
  padding-right: max(var(--s4), calc((100vw - var(--wrap)) / 2));
  display: grid;
  align-items: center;
}

.access-story-inner,
.access-card {
  width: min(100%, 560px);
}

.access-story h1 {
  max-width: 520px;
  line-height: 1.24;
}

.access-points {
  margin-top: var(--s5);
  display: grid;
  gap: var(--s3);
}

.access-point {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--s2);
  align-items: start;
}

.access-point span,
.step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--surface);
  font: 600 12px/1 var(--mono);
}

.access-point h2 {
  margin: 0 0 4px;
  font-size: var(--h3);
}

.access-point p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.access-card {
  padding: var(--s4);
  border-radius: var(--radius-panel);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.access-card h2,
[data-code-pane] h2 {
  margin-bottom: var(--s1);
  font-size: 24px;
  font-weight: 500;
}

.access-card > p {
  margin-bottom: var(--s4);
  color: var(--ink-soft);
}

.form-stack {
  display: flow-root;
}

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

.field label {
  margin-bottom: var(--s1);
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.field input {
  width: 100%;
  min-height: 49px;
  padding: 0 var(--s2);
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius-control);
  outline: 0;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
}

.field input:focus {
  border-color: var(--ink-soft);
  box-shadow: none;
}

.form-stack .button {
  width: 100%;
}

.access-notice {
  margin: 0 0 var(--s4);
  padding: var(--s2);
  border-radius: var(--radius-control);
  background: var(--brand-wash);
  color: var(--ink-soft);
  font-size: 13px;
}

.code-actions {
  margin-top: var(--s3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}

.text-button {
  min-height: 42px;
  padding: 0 var(--s2);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

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

.desk-intro {
  margin-bottom: var(--s4);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--s3);
}

.desk-intro h1 {
  max-width: 760px;
  margin-bottom: var(--s1);
}

.session-line {
  color: var(--ink-soft);
  font-size: 14px;
}

.session-line strong {
  font-family: var(--mono);
  color: var(--ink);
}

.desk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: var(--s3);
  align-items: start;
}

.desk-primary,
.desk-secondary {
  min-width: 0;
  display: grid;
  gap: var(--s3);
}

.desk-surface {
  min-width: 0;
  padding: var(--s4);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: 0 14px 44px rgba(36, 74, 69, 0.07);
}

.desk-surface.tint {
  background: var(--brand-wash);
  color: var(--ink);
}

.desk-surface h2 {
  margin-bottom: var(--s1);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
}

.surface-lead {
  margin-bottom: var(--s3);
  color: var(--ink-soft);
  font-size: 14px;
}

.alias-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: var(--s1);
  align-items: center;
}

.alias-input-shell {
  min-width: 0;
  height: 47px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
}

.alias-input-shell:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-wash);
}

.alias-input-shell:focus-within input {
  outline: 0;
}

.alias-input-shell input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 0 0 var(--s2);
  border: 0;
  outline: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
}

.alias-input-shell span {
  padding-right: var(--s2);
  color: var(--ink-soft);
  font: 13px/1 var(--mono);
}

.alias-compose > .button,
.alias-compose > .text-button {
  min-height: 47px;
  font-size: 13px;
  white-space: nowrap;
}

.alias-list,
.archive-list {
  margin-top: var(--s3);
  display: grid;
  gap: var(--s1);
}

.alias-row {
  min-width: 0;
  padding: var(--s2);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s2);
  border-radius: var(--radius-control);
  background: var(--paper-soft);
  color: var(--ink);
}

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

.alias-row.is-paused .status-pill {
  background: #f7dfd6;
  color: #8b3f24;
}

.alias-address {
  min-width: 0;
  overflow-wrap: anywhere;
  font: 600 13px/1.5 var(--mono);
}

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

.row-actions button,
.archive-row {
  cursor: pointer;
}

.mini-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.filter-shell {
  position: relative;
  width: fit-content;
  margin-left: auto;
}

.filter-trigger {
  min-height: 42px;
  margin-block: 16px;
  display: inline-flex;
  align-items: center;
  padding: 0 34px 0 16px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.filter-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  padding: var(--s1);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.filter-menu button {
  width: 100%;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  text-align: left;
}

.archive-row {
  width: 100%;
  padding: var(--s2);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s2);
  border: 0;
  border-radius: var(--radius-control);
  background: var(--paper-soft);
  color: var(--ink);
  text-align: left;
}

.archive-row strong,
.archive-row span {
  display: block;
}

.archive-row span,
.archive-row time {
  color: var(--ink-soft);
  font-size: 12px;
}

.empty-box {
  margin-top: var(--s3);
  padding: var(--s3);
  border-radius: var(--radius-control);
  background: var(--paper-soft);
  color: var(--ink-soft);
  font-size: 14px;
}

.archive-detail {
  min-width: 0;
  max-width: 100%;
  margin-top: var(--s3);
  padding: var(--s3);
  border-radius: var(--radius-card);
  background: var(--paper-soft);
  color: var(--ink);
}

.archive-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s2);
  align-items: start;
}

[data-archive-attachments] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--s2);
}

[data-archive-attachments] .access-notice {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
}

.archive-detail iframe {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 360px;
  margin-top: var(--s2);
  border: 0;
  background: var(--surface);
}

.twofa-status {
  display: flex;
  align-items: center;
  gap: var(--s1);
  margin-bottom: var(--s3);
  color: var(--ink-soft);
  font-size: 13px;
}

.status-pill {
  width: max-content;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 600;
}

.twofa-setup {
  margin-top: var(--s3);
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: var(--s3);
  align-items: start;
}

.twofa-qr {
  width: 144px;
  aspect-ratio: 1;
  padding: var(--s1);
  border-radius: var(--radius-control);
  background: var(--surface);
}

.twofa-qr img {
  width: 100%;
  height: 100%;
}

.twofa-steps {
  display: grid;
  gap: 10px;
}

.twofa-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  color: var(--ink-soft);
  font-size: 13px;
}

.disable-action {
  width: 100%;
  margin-top: 24px;
  display: block;
}

.twofa-setup [data-2fa-disable] {
  margin-top: 24px;
  align-self: center;
}

.twofa-step .step-dot {
  width: 28px;
  height: 28px;
}

.twofa-step [data-twofa-secret] {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(244, 251, 249, 0.16);
  border-radius: var(--radius-control);
  background: var(--night);
  color: #f4fbf9;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.twofa-step [data-twofa-secret]:empty {
  display: none;
}

.twofa-step [data-copy-secret] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  margin: 10px 0 0;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.twofa-step [data-copy-secret]:hover,
.twofa-step [data-copy-secret]:focus-visible {
  background: var(--brand-deep);
  color: #fff;
}

.console-toast {
  position: fixed;
  z-index: 100;
  right: var(--s3);
  bottom: var(--s3);
  padding: 12px 16px;
  border-radius: var(--radius-control);
  background: var(--night);
  color: var(--surface);
  box-shadow: var(--shadow);
  font-size: 13px;
}

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

.mail-empty {
  margin: var(--s2);
  padding: var(--s3);
  display: grid;
  gap: 4px;
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
}

.mail-empty strong {
  color: var(--ink);
}

/* Legal and editorial page components */
.page-hero {
  padding: var(--s5) 0 var(--s6);
}

.page-hero h1 {
  max-width: 820px;
  margin-bottom: var(--s3);
}

.page-hero h1 + .hero-lead,
.page-hero h1 + .section-intro,
.page-hero .hero-lead {
  max-width: 760px;
  margin-top: 24px;
}

.section-heading .eyebrow + h2,
.content-card .eyebrow + h2,
.check-card .eyebrow + h2 {
  margin-top: 20px;
}

.legal-glance,
.content-grid,
.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s2);
}

.legal-glance article,
.content-card,
.check-card {
  padding: var(--s3);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 14px 44px rgba(36, 74, 69, 0.07);
}

.legal-glance h2,
.content-card h2,
.content-card h3,
.check-card h2,
.check-card h3 {
  margin-bottom: 10px;
  font-size: var(--h3);
  font-weight: 600;
}

.legal-glance p,
.content-card p,
.check-card p,
.check-card li {
  color: var(--ink-soft);
}

.prose-shell {
  max-width: var(--wrap);
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.prose-section {
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
}

.prose-section h2 {
  margin-bottom: var(--s2);
  font-size: 32px;
  font-weight: 500;
}

.boundary-table {
  width: 100%;
  border-collapse: collapse;
  overflow-wrap: anywhere;
}

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

.boundary-table th {
  color: var(--ink);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .access-main[data-auth-split] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .access-story,
  .access-panel {
    padding-block: var(--s5);
    padding-inline: var(--s3);
  }

  .access-story-inner,
  .access-card {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  .desk-layout,
  .legal-glance,
  .content-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }
}

/* Long-form field notes */
.article-hero {
  padding: var(--s4) 0 var(--s6);
}

.article-hero h1 {
  max-width: 880px;
  margin-bottom: var(--s3);
}

.article-hero .hero-lead {
  max-width: 780px;
  margin-bottom: var(--s3);
}

.article-crumb {
  margin-bottom: var(--s4);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
}

.article-crumb a {
  color: var(--brand-deep);
  font-weight: 600;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-meta span,
.toc-count {
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 600;
}

.article-layout {
  width: min(calc(100% - 48px), var(--wrap));
  min-width: min(1080px, calc(100% - 48px));
  padding-bottom: var(--s7);
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 820px);
  align-items: start;
  gap: var(--s6);
}

.article-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  z-index: 3;
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 14px 44px rgba(36, 74, 69, 0.07);
}

.article-toc h2 {
  margin-bottom: var(--s2);
  font-size: 18px;
  font-weight: 600;
}

.article-toc ol {
  margin: 0;
  padding-left: 22px;
}

.article-toc li {
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 13px;
}

.article-toc a:hover {
  color: var(--brand-deep);
}

.article-toc .toc-count {
  margin-top: var(--s2);
}

.article-prose {
  min-width: 0;
  font-size: 16px;
  line-height: 1.82;
}

.article-prose section {
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.article-prose .article-deck {
  margin-bottom: var(--s3);
  padding: var(--s3);
  border-left: 3px solid var(--brand);
  background: var(--paper-soft);
  color: var(--ink);
  font-size: 18px;
}

.article-prose h2 {
  margin-bottom: var(--s3);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.35;
}

.article-prose h3 {
  margin: var(--s3) 0 var(--s1);
  font-size: 18px;
  font-weight: 600;
}

.article-prose p {
  margin-bottom: var(--s2);
  color: var(--ink-soft);
}

.article-prose a:not(.button) {
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-prose li {
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.article-callout {
  margin: var(--s3) 0;
  padding: var(--s3);
  border-radius: var(--radius-card);
  background: var(--brand-wash);
  color: var(--ink);
}

.article-callout p {
  margin: var(--s1) 0 0;
  color: var(--ink-soft);
}

.article-prose .article-end-card,
.article-prose .article-cta,
.article-prose .product-recommend {
  margin-top: var(--s5);
  padding: var(--s4);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s3);
  border: 0;
  border-radius: var(--radius-panel);
  background: var(--night);
  color: var(--surface);
}

.article-end-card > svg,
.article-cta > svg {
  padding: 10px;
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--brand-deep);
}

.article-end-card .eyebrow,
.article-cta .eyebrow {
  color: #b8d9d4;
}

.article-end-card h2,
.article-cta h2 {
  margin-bottom: 12px;
  font-size: 30px;
  color: var(--surface);
}

.article-end-card p,
.article-cta p {
  color: #c8dcd9;
}

.article-actions {
  margin-top: var(--s3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}

.article-actions .button {
  text-decoration: none;
}

.article-actions .button.secondary {
  border-color: rgba(255, 255, 255, 0.32);
  background: var(--surface);
  color: var(--night);
}

.recommend-float {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 24px;
  width: min(340px, calc(100vw - 32px));
  padding: var(--s3);
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.recommend-float strong,
.recommend-float a {
  display: block;
}

.recommend-float a {
  margin-top: 4px;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 600;
}

.recommend-float-close {
  width: auto;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  cursor: pointer;
  position: absolute;
  top: -14px;
  right: 12px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s2);
}

.post-card {
  min-height: 300px;
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 14px 44px rgba(36, 74, 69, 0.07);
}

.post-card:hover {
  border-color: var(--brand);
  background: var(--paper);
  color: var(--ink);
}

.post-card time {
  margin: var(--s2) 0 var(--s3);
  color: var(--muted);
  font-size: 12px;
}

.post-card h3 {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.35;
}

.post-card p {
  color: var(--ink-soft);
}

.post-card .post-link {
  margin-top: auto;
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 600;
}

.blog-count {
  width: fit-content;
  margin: var(--s2) 0 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 600;
}

/* Writer articles emit bare tables inside .table-scroll. Legal .boundary-table stays bottom-border only. */
.article-prose .table-scroll{
  margin:var(--s3) 0;
  border:1px solid var(--line);
  border-radius:var(--radius-card);
  background:var(--surface);
}
.article-prose .table-scroll table{
  width:100%;
  min-width:640px;
  margin:0;
  border-collapse:separate;
  border-spacing:0;
  background:var(--surface);
  color:var(--ink);
  font-size:14px;
  line-height:1.55;
}
.article-prose .table-scroll th,
.article-prose .table-scroll td{
  padding:14px 16px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  color:var(--ink-soft);
  text-align:left;
  vertical-align:top;
  overflow-wrap:anywhere;
}
.article-prose .table-scroll th:last-child,
.article-prose .table-scroll td:last-child{border-right:0}
.article-prose .table-scroll tr:last-child td{border-bottom:0}
.article-prose .table-scroll th{
  background:var(--brand-wash);
  color:var(--brand-deep);
  font-size:13px;
  font-weight:600;
}
.article-prose .table-scroll tbody tr:nth-child(even) td{background:var(--paper-soft)}
.article-prose ul,
.article-prose ol{margin:8px 0 var(--s2);padding-left:1.25em}
.article-prose :not(pre)>code{
  padding:1px 6px;
  border-radius:6px;
  background:var(--brand-wash);
  color:var(--brand-deep);
  font-family:var(--mono);
  font-size:.92em;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s4);
  }

  .article-toc {
    position: static;
  }
}

@media (max-width: 600px) {
  :root {
    --h1: 50px;
    --h2: 58px;
  }

  .access-story,
  .access-panel,
  .desk-page {
    padding-block: var(--s4);
  }

  .access-card,
  .desk-surface {
    padding: var(--s3);
  }

  .desk-intro {
    grid-template-columns: 1fr;
  }

  .desk-intro .button {
    width: fit-content;
  }

  .alias-compose,
  .twofa-setup {
    grid-template-columns: 1fr;
  }

  .alias-compose .button,
  .alias-compose .text-button {
    width: 100%;
  }

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

  .row-actions {
    justify-content: start;
  }

  .filter-shell {
    margin-left: 0;
  }
}
