@charset "UTF-8";

:root {
  --paper: #ffffff;
  --paper-soft: #f7f8fa;
  --paper-warm: #fff9e8;
  --ink: #172033;
  --ink-soft: #293348;
  --muted: #687187;
  --line: #e4e7ed;
  --line-strong: #8e98aa;
  --night: #0d1424;
  --night-soft: #151e31;
  --night-line: #2a3449;
  --night-muted: #a9b1c1;
  --brand: #f5b800;
  --brand-deep: #8f5a00;
  --brand-wash: #fff3c4;
  --danger: #c94d3f;
  --wrap: 1250px;
  --header-h: 65px;
  --h1: 48px;
  --h2: 32px;
  --h3: 20px;
  --body: 18px;
  --small: 14px;
  --micro: 12px;
  --radius-control: 7px;
  --radius-card: 12px;
  --radius-stage: 12px;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;
  --s7: 128px;
  --font: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", 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,
select,
textarea {
  font: inherit;
}

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

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

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

button {
  border: 0;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  top: var(--s2);
  left: var(--s2);
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s3);
}

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

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

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

.nav-burger {
  flex: 0 0 auto;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 21px;
  font-size: 15px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.site-nav > a[aria-current="page"] {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand-deep);
}

.nav-dot {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  margin-right: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  vertical-align: middle;
}

.site-nav > a:nth-child(1) .nav-dot::before {
  content: "✉";
}

.site-nav > a:nth-child(2) .nav-dot::before {
  content: "✓";
}

.site-nav > a:nth-child(3) .nav-dot::before {
  content: "▤";
}

.site-nav > a:nth-child(4) .nav-dot::before {
  content: "▣";
}

.site-nav > a[aria-current="page"] .nav-dot {
  color: var(--brand-deep);
}

.lang-menu {
  position: relative;
}

.lang-trigger,
.menu-trigger {
  position: relative;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}

.lang-trigger {
  padding-right: 28px;
}

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

.lang-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: 150px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
  box-shadow: 0 16px 40px rgba(23, 32, 51, 0.1);
}

.lang-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: var(--small);
}

.lang-list a:hover,
.lang-list a:focus-visible {
  background: var(--paper-soft);
}

.nav-auth {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}

.menu-trigger {
  display: none;
}

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

.hero-stage {
  min-height: 690px;
  display: grid;
  grid-template-columns: 0.9fr 1.5fr;
  overflow: visible;
  border-radius: var(--radius-stage);
  background: var(--night);
  color: var(--paper);
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: var(--s5) var(--s4) var(--s5) var(--s5);
}

.hero-symbol {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: var(--s4);
  border: 1px solid var(--brand);
  border-radius: 22px 22px 22px 7px;
  background: var(--brand);
  color: var(--night);
  font-size: 40px;
  line-height: 1;
}

.hero h1 {
  max-width: 430px;
  margin: 0;
  font-size: 44px;
  font-weight: 700;
  font-synthesis: none;
  letter-spacing: normal;
  line-height: 1.08;
}

.hero h1 em {
  color: var(--brand);
  font-style: normal;
  font-weight: inherit;
}

.hero-summary {
  max-width: 430px;
  margin: var(--s3) 0 0;
  color: var(--night-muted);
  font-size: 16px;
  line-height: 1.75;
}

.hero-switch {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s4);
}

.hero-switch a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: var(--radius-control);
  color: var(--night-muted);
  font-size: 15px;
}

.hero-switch a[aria-current="true"] {
  padding-inline: var(--s2);
  background: var(--brand);
  color: var(--night);
  font-weight: 600;
}

.mailroom-shell {
  min-width: 0;
  min-height: 704px;
  align-self: stretch;
  margin-top: -14px;
  overflow: hidden;
  border-top: 1px solid var(--night-line);
  border-left: 1px solid var(--night-line);
  border-radius: var(--radius-card) var(--radius-card) var(--radius-card) 0;
  background: var(--night-soft);
}

.address-bar {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s3);
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--night-line);
}

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

.address-label,
.panel-kicker {
  display: block;
  margin: 0 0 4px;
  color: var(--night-muted);
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mail-address {
  display: block;
  overflow: hidden;
  color: var(--paper);
  font-family: var(--mono);
  font-size: clamp(17px, 1.65vw, 24px);
  font-weight: 600;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-actions {
  display: flex;
  align-items: center;
  gap: var(--s1);
}

.timer {
  min-width: 72px;
  color: var(--brand);
  font-family: var(--mono);
  font-size: 14px;
  text-align: center;
}

.icon-button,
.action-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--paper);
  font-size: 13px;
  cursor: pointer;
}

.icon-button:hover,
.action-button:hover {
  border-color: var(--brand);
}

.mailroom-grid {
  height: 621px;
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(360px, 1.28fr);
}

.message-list {
  min-width: 0;
  overflow-y: auto;
  border-right: 1px solid var(--night-line);
}

.list-head {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s2);
  border-bottom: 1px solid var(--night-line);
}

.list-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.message-count {
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: var(--micro);
}

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

.message-row[aria-current="true"] {
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 3px 0 0 var(--brand);
}

.message-row.is-unread .message-from::after {
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-left: var(--s1);
  border-radius: 50%;
  background: var(--brand);
  content: "";
  vertical-align: 1px;
}

.sender-badge {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--paper-warm);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.sender-badge.reddit {
  background: #fff0ea;
  color: var(--danger);
}

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

.message-from,
.message-subject {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-from {
  font-size: 13px;
  font-weight: 600;
}

.message-subject {
  margin-top: 2px;
  color: var(--night-muted);
  font-size: 12px;
}

.message-time {
  align-self: start;
  margin-top: 18px;
  color: var(--night-muted);
  font-family: var(--mono);
  font-size: 10px;
}

.list-idle {
  display: flex;
  align-items: center;
  gap: var(--s1);
  margin: var(--s3) var(--s2);
  color: #7f899d;
  font-size: 11px;
}

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

.message-reader {
  min-width: 0;
  overflow-y: auto;
  background: var(--night);
  color: var(--paper);
}

.reader-head {
  min-height: 96px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--night-line);
}

.reader-head .sender-badge {
  width: 42px;
  height: 42px;
}

.reader-subject {
  margin: 0;
  color: var(--paper);
  font-size: 16px;
  font-weight: 600;
}

.reader-from {
  margin: 3px 0 0;
  color: var(--night-muted);
  font-size: 12px;
}

.demo-pill {
  padding: 3px 7px;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  color: var(--night-muted);
  font-size: 10px;
}

.reader-body {
  padding: var(--s4);
  color: #d9deea;
  font-size: 14px;
  line-height: 1.7;
}

.mail-brandline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s4);
  color: var(--paper);
  font-weight: 600;
}

.mail-brandline svg {
  width: 34px;
  height: 24px;
}

.code-block {
  width: fit-content;
  margin: var(--s3) 0;
  padding: 12px 18px;
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.mail-note {
  margin-top: var(--s4);
  padding-top: var(--s2);
  border-top: 1px solid var(--night-line);
  color: var(--night-muted);
  font-size: 11px;
}

.reader-actions {
  display: flex;
  gap: var(--s1);
  margin-top: var(--s4);
}

.mail-frame {
  width: 100%;
  min-height: 320px;
  display: block;
  flex: 0 0 auto;
  border: 0;
  background: var(--night);
}

.form-field {
  display: grid;
  gap: var(--s1);
  min-width: 0;
}

.form-field label {
  font-size: var(--small);
  font-weight: 600;
}

.form-field input,
.form-field textarea,
.control-input,
.alias-field input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  outline: none;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--small);
}

.form-field textarea {
  min-height: 128px;
  padding-block: 12px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.control-input:focus {
  border-color: var(--ink);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1);
  margin-top: var(--s2);
}

.secondary-button,
.table-actions button,
.row-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.data-table {
  width: 100%;
  margin-top: var(--s2);
  border-collapse: collapse;
  font-size: var(--small);
}

.data-table thead {
  display: none;
}

.data-table,
.data-table tbody,
.data-table tr,
.data-table td {
  display: block;
  width: 100%;
}

.data-table tr {
  display: grid;
  gap: var(--s2);
  margin-top: var(--s2);
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
}

.data-table td {
  padding: 0;
  border: 0;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  font-size: var(--micro);
  font-weight: 600;
}

.alias-card-address,
.data-table code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
}

.table-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.empty-state {
  margin-top: var(--s2);
  padding: var(--s3);
  border-radius: var(--radius-card);
  background: var(--paper-soft);
  color: var(--muted);
  font-size: var(--small);
}

.route-desk {
  padding: var(--s5) 0 var(--s6);
}

.desk-intro {
  margin-bottom: var(--s4);
}

.desk-intro h1 {
  margin: var(--s2) 0 0;
  font-size: 42px;
  line-height: 1.1;
}

.desk-intro > p:last-child,
.route-panel > p,
.delivery-head p,
.gate-copy p {
  color: var(--muted);
  font-size: 16px;
}

.gate-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s4);
  max-width: 520px;
  min-height: 0;
  margin: 0 auto;
  overflow: visible;
  background: transparent;
  color: inherit;
}

.gate-copy,
.gate-form {
  padding: 0;
}

.gate-copy {
  align-self: start;
}

.gate-copy h1,
.gate-copy h2 {
  margin: var(--s2) 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 36px);
}

.gate-copy p {
  color: var(--muted);
}

.gate-form {
  display: grid;
  align-content: start;
  padding: var(--s4);
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.06);
}

.gate-form label {
  color: var(--ink-soft);
}

.session-bar,
.work-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s4);
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
}

.session-id {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.session-mail {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.desk-stack,
.route-desk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s5);
  align-items: start;
  min-width: 0;
}

.route-panel {
  padding: var(--s4);
  border-radius: var(--radius-card);
  background: var(--paper-soft);
}

.route-panel + .route-panel {
  margin-top: var(--s3);
}

.route-panel h2,
.delivery-head h2 {
  margin: var(--s2) 0 0;
  font-size: 26px;
  line-height: 1.2;
}

.route-alias {
  background: var(--paper-warm);
}

.route-factor {
  border: 1px solid var(--line);
  background: var(--paper);
}

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

.alias-compose .button-row {
  margin-top: 0;
  align-self: center;
}

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

.alias-field input {
  border-radius: var(--radius-control) 0 0 var(--radius-control);
}

.alias-field:focus-within {
  border-radius: var(--radius-control);
  outline: 3px solid color-mix(in srgb, var(--brand) 28%, transparent);
}

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

.alias-field span {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-left: 0;
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.delivery-board {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--night);
  color: var(--paper);
}

.delivery-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s4);
  border-bottom: 1px solid var(--night-line);
}

.delivery-head p {
  color: var(--night-muted);
}

.delivery-board .archive-row {
  color: var(--paper);
  border-color: var(--night-line);
}

.delivery-board .archive-main span,
.delivery-board .archive-meta time {
  color: var(--night-muted);
}

.delivery-board .empty-state {
  margin: var(--s3);
  background: var(--night-soft);
  color: var(--night-muted);
}

.filter-menu {
  position: relative;
  flex: none;
}

.filter-trigger {
  margin-block: 16px;
}

.filter-button,
.filter-trigger,
.filter-menu > button {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 32px 0 14px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius-control);
  background: var(--night-soft);
  color: var(--paper);
  font-size: 14px;
  white-space: nowrap;
  line-height: 1;
  cursor: pointer;
}

.filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 8;
  min-width: 196px;
  padding: 6px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius-card);
  background: var(--night-soft);
}

.filter-menu [role="option"],
.filter-menu > div button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--paper);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.filter-menu [role="option"]:hover,
.filter-menu [role="option"][aria-selected="true"] {
  background: var(--night);
}

.delivery-detail {
  margin: var(--s3);
  padding: var(--s3);
  border-radius: var(--radius-card);
  background: var(--paper);
  color: var(--ink);
}

.delivery-detail iframe {
  width: 100%;
  min-height: 420px;
  margin-top: var(--s2);
  border: 0;
}

.factor-disable-panel {
  margin-top: var(--s3);
}

.factor-disable-row .control-input {
  width: 160px;
}

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

.archive-main,
.archive-copy,
.archive-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.archive-copy {
  overflow-wrap: anywhere;
}

.archive-main span,
.archive-meta time {
  overflow: hidden;
  color: var(--muted);
  font-size: var(--micro);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-meta {
  justify-items: end;
}

.factor-setup {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: var(--s2);
  margin-top: var(--s2);
  padding: var(--s2);
  border-radius: var(--radius-card);
  background: var(--paper);
}

.factor-setup img {
  width: 144px;
  aspect-ratio: 1;
}

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

.notes-hero-grid {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: var(--s5);
  padding: var(--s5);
  border-radius: var(--radius-stage);
  background: var(--night);
  color: var(--paper);
}

.notes-hero h1 {
  max-width: 650px;
  margin: var(--s2) 0 var(--s3);
  font-size: 44px;
  line-height: 1.05;
  text-wrap: balance;
}

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

.notes-hero p:last-child {
  max-width: 600px;
  color: var(--night-muted);
  font-size: 17px;
}

.notes-index {
  display: grid;
  grid-template-columns: 32px minmax(0, 0.45fr) minmax(0, 1fr);
  align-items: center;
  column-gap: var(--s2);
}

.notes-index > * {
  min-height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--night-line);
}

.notes-index span,
.notes-index small {
  color: var(--night-muted);
  font-size: var(--micro);
}

.notes-heading {
  margin-bottom: var(--s4);
}

.notes-heading h2 {
  margin: var(--s2) 0;
  font-size: var(--h2);
}

.notes-heading .message-count {
  display: block;
  width: fit-content;
  color: var(--muted);
}

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

.note-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
}

.note-card-dark {
  border-color: var(--night);
  background: var(--night);
  color: var(--paper);
}

.note-date {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--micro);
}

.note-card-dark .note-date,
.note-card-dark p {
  color: #c2c8d4;
}

.note-mark {
  margin-top: var(--s5);
  font-size: 32px;
}

.note-card h3 {
  max-width: 500px;
  margin: var(--s2) 0;
  font-size: 27px;
  line-height: 1.2;
}

.note-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.note-card.note-card-dark p {
  color: #c2c8d4;
}

.notes-hero .eyebrow {
  color: var(--brand);
}

.note-card .text-link {
  width: fit-content;
  margin-top: auto;
  border-color: currentColor;
}

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

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

.article-hero .article-wrap {
  padding: var(--s5);
  border-radius: var(--radius-stage);
  background: var(--night);
  color: var(--paper);
}

.article-crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: var(--s4);
  color: var(--night-muted);
  font-size: var(--small);
}

.article-crumb a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-hero .eyebrow {
  margin: 0 0 var(--s2);
  color: var(--brand);
}

.article-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: 44px;
  line-height: 1.08;
  text-wrap: balance;
}

.article-deck {
  max-width: 780px;
  margin: var(--s3) 0 0;
  color: var(--night-muted);
  font-size: 18px;
}

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

.article-meta span,
.toc-count {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  color: var(--night-muted);
  font-size: var(--micro);
}

.article-reading-chrome {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: var(--s5);
  padding: var(--s4) 0 var(--s6);
}

.article-toc {
  position: sticky;
  top: calc(var(--header-h) + var(--s3));
  z-index: 3;
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
}

.article-toc strong {
  font-size: 17px;
}

.article-toc ol {
  margin: var(--s2) 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: var(--small);
}

.article-toc li {
  margin: 0 0 7px;
}

.article-toc a:hover,
.article-toc a:focus-visible {
  color: var(--brand-deep);
  text-decoration: underline;
}

.article-toc .toc-count {
  display: block;
  margin-top: var(--s2);
  border-color: var(--line);
  color: var(--muted);
}

.article-prose {
  min-width: 0;
  max-width: 760px;
  font-size: 17px;
  line-height: 1.78;
}

.article-prose > :first-child {
  margin-top: 0;
}

.article-prose p {
  margin: 0 0 var(--s3);
}

.article-prose h2 {
  margin: var(--s5) 0 var(--s2);
  font-size: 28px;
  line-height: 1.22;
  scroll-margin-top: calc(var(--header-h) + var(--s3));
}

.article-prose h3 {
  margin: var(--s4) 0 var(--s1);
  font-size: 20px;
}

.article-prose ul {
  margin: 0 0 var(--s3);
  padding-left: 24px;
}

.article-prose li {
  margin-bottom: 7px;
}

.article-prose a:not(.primary-button):not(.text-link) {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-lead {
  font-size: 20px;
  line-height: 1.65;
}

.article-callout {
  display: grid;
  gap: var(--s1);
  margin: var(--s4) 0;
  padding: var(--s3);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  background: var(--paper-warm);
}

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

.route-compare div {
  display: grid;
  gap: var(--s1);
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.route-compare span,
.route-compare small {
  color: var(--muted);
  font-size: var(--small);
}

.article-cta {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--s3);
  margin-top: var(--s6);
  padding: var(--s4);
  border-radius: var(--radius-card);
  background: var(--night);
  color: var(--paper);
}

.article-cta h2 {
  margin: 0 0 var(--s1);
  color: var(--paper);
}

.article-cta p {
  margin-bottom: var(--s3);
  color: var(--night-muted);
}

.article-cta-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--night-line);
  border-radius: var(--radius-card);
  color: var(--brand);
}

.article-cta-icon svg {
  width: 32px;
  height: 32px;
}

.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
}

.article-cta .text-link {
  margin-top: 0;
  min-height: 42px;
  padding-bottom: 0;
  color: var(--paper);
  border-color: var(--paper);
}

.recommend-float {
  position: fixed;
  right: var(--s3);
  bottom: var(--s3);
  z-index: 45;
  width: min(340px, calc(100% - 48px));
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: var(--s2);
  border: 1px solid var(--night-line);
  border-radius: var(--radius-card);
  background: var(--night);
  color: var(--paper);
  box-shadow: 0 16px 44px rgba(13, 20, 36, 0.2);
}

.recommend-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--night-line);
  border-radius: var(--radius-control);
  color: var(--brand);
}

.recommend-icon svg {
  width: 24px;
  height: 24px;
}

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

.recommend-float span {
  margin: 2px 0 8px;
  color: var(--night-muted);
  font-size: var(--micro);
}

.recommend-float a {
  width: fit-content;
  color: var(--brand);
  font-size: var(--small);
}

.recommend-float-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-control);
  background: var(--night-soft);
  color: var(--paper);
  cursor: pointer;
}

.toast {
  position: fixed;
  right: var(--s3);
  bottom: var(--s3);
  z-index: 80;
  max-width: min(360px, calc(100% - 48px));
  padding: 12px var(--s2);
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--small);
  box-shadow: 0 14px 35px rgba(23, 32, 51, 0.18);
  pointer-events: none;
}

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

.section-heading {
  max-width: 700px;
  margin: 0 auto var(--s5);
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-deep);
  font-size: var(--small);
  font-weight: 700;
}

.section-heading .eyebrow {
  margin-inline: auto;
}

.section-heading h2 {
  margin: var(--s3) 0 0;
  font-size: var(--h2);
  line-height: 1.2;
}

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

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
}

.signal-card {
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.signal-card h3 {
  margin: var(--s2) 0 var(--s1);
  font-size: var(--h3);
}

.signal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.signal-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-wash);
  font-size: 20px;
}

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

.usage-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: var(--s5);
  align-items: center;
}

.usage-copy h2 {
  margin: var(--s3) 0 0;
  font-size: var(--h2);
  line-height: 1.2;
}

.usage-copy p {
  color: var(--muted);
  font-size: 16px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--s2);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.event-stack {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
}

.event-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s2);
  padding: 0 var(--s3);
  border-bottom: 1px solid var(--line);
}

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

.event-row .sender-badge {
  background: var(--brand-wash);
}

.event-main strong,
.event-main span {
  display: block;
}

.event-main strong {
  font-size: 15px;
}

.event-main span {
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--brand-wash);
  color: #6d4b00;
  font-size: 11px;
  font-weight: 700;
}

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

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

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

.use-card {
  min-height: 260px;
  padding: var(--s4);
  border-radius: var(--radius-card);
  background: var(--paper-soft);
}

.use-card:nth-child(2),
.use-card:nth-child(3) {
  background: var(--paper-warm);
}

.use-card .index {
  color: var(--brand-deep);
  font-family: var(--mono);
  font-size: 13px;
}

.use-card h3 {
  margin: var(--s4) 0 var(--s2);
  font-size: 24px;
}

.use-card p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.faq-list {
  max-width: 880px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

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

.faq-list summary {
  padding: var(--s3) var(--s1);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.faq-list p {
  margin: 0;
  padding: 0 var(--s1) var(--s3);
  color: var(--muted);
  font-size: 15px;
}

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

.prefooter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s5);
  border-radius: var(--radius-stage);
  background: var(--night);
  color: var(--paper);
}

.prefooter-panel h2 {
  margin: 0;
  font-size: var(--h2);
}

.prefooter-panel p {
  margin: var(--s2) 0 0;
  color: var(--night-muted);
  font-size: 16px;
}

.primary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: var(--radius-control);
  background: var(--brand);
  color: var(--night);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

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

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, max-content) minmax(0, 1fr);
  gap: var(--s5) 48px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-brand .brand,
.footer-brand p,
.footer-brand .footer-copy,
.footer-brand .footer-mail {
  grid-column: auto;
}

.footer-mail {
  color: var(--night-muted);
  font-size: 14px;
}

.footer-brand p,
.footer-brand .footer-copy {
  max-width: 36ch;
  margin: 0;
  color: var(--night-muted);
  font-size: 14px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s3) 20px;
}

.footer-group h2 {
  margin: 0 0 var(--s2);
  font-size: 14px;
}

.footer-group a {
  display: block;
  margin-top: 9px;
  max-width: 100%;
  color: var(--night-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--night-line);
  color: var(--night-muted);
  font-size: 14px;
}

.footer-contact a {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: var(--radius-control);
  background: var(--brand);
  color: var(--night);
  font-weight: 700;
}

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

.attachment-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-top: var(--s2);
}

.row-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

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

.page-hero > .wrap,
.score-hero-grid {
  padding: var(--s5);
  border-radius: 24px;
  background: var(--night);
  color: var(--paper);
}

.page-hero h1 {
  max-width: 760px;
  margin: var(--s3) 0;
  font-size: 44px;
  line-height: 1.05;
  text-wrap: balance;
}

.page-hero p:last-child {
  max-width: 720px;
  color: var(--night-muted);
  font-size: 16px;
}

.legal-hero .eyebrow,
.score-hero .eyebrow {
  color: var(--brand);
}

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

.overview-card {
  min-height: 220px;
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.overview-card > span {
  color: var(--brand-deep);
  font-family: var(--mono);
  font-size: var(--micro);
}

.overview-card h2 {
  margin: var(--s4) 0 var(--s2);
  font-size: 21px;
}

.overview-card p,
.legal-prose p,
.boundary-card li {
  color: var(--muted);
  font-size: 15px;
}

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

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

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + var(--s3));
  display: grid;
  gap: 10px;
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
  font-size: 14px;
}

.legal-toc strong {
  margin-bottom: var(--s1);
}

.legal-toc a {
  color: var(--muted);
}

.legal-prose {
  max-width: 920px;
}

.legal-prose section + section {
  margin-top: var(--s5);
}

.legal-prose h2 {
  margin: 0 0 var(--s2);
  font-size: 28px;
}

.table-scroll {
  margin-top: var(--s3);
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 14px;
}

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

.legal-table th {
  background: var(--paper-warm);
}

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

.terms-boundaries {
  background: var(--paper-warm);
}

.boundary-card {
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
}

.boundary-card h3 {
  margin-top: 0;
}

.boundary-card li + li {
  margin-top: 10px;
}

.boundary-card.allowed {
  border-color: var(--brand);
}

.boundary-card.blocked {
  border-color: var(--night-line);
  background: var(--night);
  color: var(--paper);
}

.boundary-card.blocked li {
  color: var(--night-muted);
}

.score-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: var(--s5);
  align-items: center;
}

.score-preview {
  display: grid;
  border-top: 1px solid var(--night-line);
}

.score-preview span {
  display: grid;
  grid-template-columns: 42px 1fr;
  padding: 13px 0;
  border-bottom: 1px solid var(--night-line);
  color: var(--night-muted);
  font-size: 14px;
}

.score-preview b {
  color: var(--brand);
  font-family: var(--mono);
}

.score-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: var(--s5);
  align-items: start;
}

.score-form {
  display: grid;
  gap: var(--s2);
  margin-top: var(--s4);
}

.score-form label {
  display: flex;
  gap: 12px;
  padding: var(--s2);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  font-size: 15px;
}

.score-form input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.score-form .primary-button {
  width: fit-content;
  margin-top: var(--s2);
}

.score-result {
  position: sticky;
  top: calc(var(--header-h) + var(--s3));
  padding: var(--s4);
  border-radius: var(--radius-card);
  background: var(--night);
  color: var(--paper);
}

.score-result > span,
.score-result small {
  color: var(--brand);
  font-size: 13px;
}

.score-result strong {
  display: block;
  margin-top: var(--s3);
  font-size: 25px;
}

.score-result p {
  color: var(--night-muted);
  font-size: 15px;
}

.score-meter {
  height: 8px;
  margin: var(--s4) 0 var(--s1);
  overflow: hidden;
  border-radius: 999px;
  background: var(--night-line);
}

.score-meter i {
  width: 0;
  height: 100%;
  display: block;
  background: var(--brand);
  transition: width 180ms ease;
}

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

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
}

.choice-grid article {
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
}

.choice-grid article > span {
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 700;
}

.choice-grid h3 {
  margin: var(--s3) 0 var(--s2);
}

.choice-grid p,
.check-rows p {
  color: var(--muted);
  font-size: 15px;
}

.choice-grid a {
  font-size: 14px;
  font-weight: 700;
}

.check-rows {
  border-top: 1px solid var(--line);
}

.check-rows > div {
  display: grid;
  grid-template-columns: minmax(180px, 0.4fr) minmax(0, 1fr);
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line);
}

.check-rows p {
  margin: 0;
}

.mobile-reader,
.mobile-reader-panel {
  color: var(--paper);
}

.mobile-reader {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
}

.footer-copy {
  max-width: 36ch;
  margin: 0;
  color: var(--night-muted);
  font-size: 14px;
}

@media (max-width: 1050px) {
  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-nav {
    gap: 14px;
  }

  .hero-stage {
    grid-template-columns: 0.82fr 1.38fr;
  }

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

@media (max-width: 820px) {
  :root {
    --h1: 40px;
    --h2: 28px;
  }

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

  .site-nav > a:not(.nav-auth),
  .site-nav > .lang-menu {
    display: none;
  }

  .menu-trigger {
    display: inline-flex;
  }

  .site-nav.is-open {
    position: absolute;
    top: var(--header-h);
    right: 16px;
    z-index: 40;
    width: min(280px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    display: grid;
    gap: 4px;
    padding: var(--s2);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--paper);
    box-shadow: 0 16px 40px rgba(23, 32, 51, 0.1);
  }

  .site-nav.is-open > a:not(.nav-auth),
  .site-nav.is-open > .lang-menu,
  .site-nav.is-open a {
    display: block;
    min-width: 0;
    padding: 7px 8px;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .site-nav.is-open .lang-list {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }

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

  .hero-stage {
    display: block;
    min-height: 0;
    overflow: visible;
    background: var(--night);
  }

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

  .hero-symbol {
    width: 56px;
    height: 56px;
    margin-bottom: var(--s3);
    font-size: 31px;
  }

  .hero-summary {
    margin-top: var(--s2);
  }

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

  .mailroom-shell {
    min-height: 0;
    margin-top: 0;
    overflow: visible;
    border-left: 0;
    border-radius: 0;
  }

  .address-bar {
    grid-template-columns: 1fr;
    gap: var(--s2);
  }

  .address-actions {
    flex-wrap: wrap;
  }

  .mailroom-grid {
    height: auto;
    display: block;
  }

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

  .message-reader {
    display: none;
  }

  .mobile-reader {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    overflow-y: auto;
    background: var(--night);
  }

  .mobile-reader.is-open {
    display: block;
  }

  .mobile-reader .message-reader {
    min-height: 100%;
    display: block;
  }

  .mobile-close {
    position: sticky;
    top: 10px;
    z-index: 2;
    float: right;
    margin: 10px;
  }

  .signal-grid,
  .usage-layout,
  .use-grid,
  .route-desk-grid,
  .desk-stack,
  .factor-setup,
  .gate-panel,
  .notes-hero-grid,
  .notes-grid,
  .legal-glance,
  .legal-layout,
  .boundary-grid,
  .score-hero-grid,
  .score-layout,
  .choice-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .alias-compose {
    grid-template-columns: minmax(0, 1fr);
  }

  .session-bar,
  .work-toolbar {
    align-items: flex-start;
  }

  .delivery-head {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-menu {
    align-self: start;
  }

  .data-table thead {
    display: none;
  }

  .data-table tr,
  .data-table td {
    display: block;
  }

  .legal-toc,
  .score-result,
  .article-toc {
    position: static;
  }

  .article-reading-chrome {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s4);
  }

  .article-prose {
    max-width: none;
  }

  .gate-form {
    border: 1px solid var(--line);
    padding: var(--s3);
  }

  .desk-intro h1 {
    font-size: 36px;
  }

  .gate-copy,
  .gate-form {
    padding: var(--s3);
  }

  .gate-copy {
    padding: 0;
  }

  .usage-layout {
    gap: var(--s4);
  }

  .prefooter-panel {
    display: block;
    padding: var(--s4);
  }

  .prefooter-panel .primary-button {
    margin-top: var(--s3);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }

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

@media (max-width: 520px) {
  :root {
    --h1: 36px;
    --body: 16px;
  }

  .brand {
    font-size: 18px;
  }

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

  .site-nav {
    gap: 8px;
  }

  .nav-auth {
    display: none;
  }

  .site-nav.is-open .nav-auth {
    display: inline-flex;
  }

  .hero {
    padding-bottom: 0;
  }

  .hero-stage {
    border-radius: 18px;
  }

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

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

  .hero h1 {
    max-width: 320px;
    font-size: var(--h1);
  }

  .notes-hero-grid {
    min-height: 0;
    padding: var(--s4) var(--s3);
  }

  .notes-hero h1,
  .article-hero h1 {
    max-width: 300px;
    font-size: 34px;
    line-height: 1.12;
  }

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

  .article-hero .article-wrap {
    padding: var(--s4) var(--s3);
  }

  .article-reading-chrome {
    padding-top: var(--s3);
  }

  .article-prose h2 {
    font-size: 25px;
  }

  .route-compare,
  .article-cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .recommend-float {
    right: var(--s2);
    bottom: var(--s2);
    width: calc(100% - 32px);
  }

  .notes-index {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .notes-index small {
    grid-column: 2;
    min-height: 40px;
  }

  .hero-switch {
    width: 100%;
  }

  .hero-switch a {
    flex: 1;
    padding-inline: 9px;
    font-size: 13px;
  }

  .mail-address {
    overflow-wrap: anywhere;
    font-size: clamp(15px, 5vw, 20px);
    text-overflow: clip;
    white-space: normal;
  }

  .address-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .timer {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: left;
  }

  .icon-button,
  .action-button {
    width: 100%;
  }

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

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

  .section-heading {
    margin-bottom: var(--s4);
  }

  .signal-grid {
    gap: var(--s2);
  }

  .use-card {
    min-height: 220px;
    padding: var(--s3);
  }

  .event-row {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: var(--s3);
  }

  .event-row .status-pill {
    grid-column: 2;
    width: fit-content;
  }

  .reader-head {
    padding-inline: var(--s2);
  }

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

  .prefooter-panel {
    border-radius: var(--radius-card);
  }

  .footer-links {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s3);
  }

  .page-hero > .wrap,
  .score-hero-grid {
    padding: var(--s4) var(--s3);
    border-radius: 18px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .check-rows > div {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s1);
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin-top: 8px;
  }
}

.site-header {
  position: sticky;
  top: 0;
}
