/* Temp77 — global stylesheet. Hand-written, no frameworks.
   Visual language: quiet-luxury editorial — warm near-white ground,
   ink primary, deep evergreen accent, champagne details, generous air. */

/* ---------- Design tokens ---------- */
:root {
  --bg: #f7f6f2;             /* page ground, warm near-white */
  --surface: #fffefb;        /* raised cards */
  --surface-dim: #f1f0ea;    /* subtle inset */
  --ink: #1c1e1a;            /* primary text */
  --ink-2: #585d52;          /* secondary text */
  --ink-3: #a0a396;          /* tertiary text */
  --line: #e6e4da;           /* hairlines */
  --line-dark: #23261f;      /* editorial rules */
  --ever: #17433b;           /* deep evergreen accent */
  --ever-soft: #ecf1ed;      /* pale evergreen wash */
  --gold: #a98d54;           /* champagne, tiny details only */
  --danger: #a4432a;
  --danger-soft: #f6e7df;
  --r-lg: 16px;
  --r-md: 10px;
  --font-serif: "Source Serif Pro", Georgia, "Songti SC", "Noto Serif SC", "Hiragino Mincho ProN", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --shadow-card: 0 1px 2px rgba(28, 30, 26, 0.04), 0 12px 32px rgba(28, 30, 26, 0.06);
  --shadow-float: 0 4px 12px rgba(28, 30, 26, 0.10), 0 18px 48px rgba(28, 30, 26, 0.16);
  --maxw: 1152px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--ever); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
button { font-family: inherit; cursor: pointer; }
img, svg { vertical-align: middle; }
::selection { background: #d8e2da; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  padding: 11px 22px;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease,
              box-shadow .18s ease, transform .06s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--ever); outline-offset: 2px; }
.btn-primary { background: var(--ink); color: #fbfaf6; }
.btn-primary:hover { background: #34382f; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink-3); background: var(--surface); }
.btn-quiet {
  background: none; border: none; color: var(--ink-2);
  font-size: 13.5px; padding: 7px 11px; border-radius: var(--r-md);
  transition: background-color .18s ease, color .18s ease;
}
.btn-quiet:hover { color: var(--ink); background: var(--surface-dim); }
.btn-danger-quiet:hover { color: var(--danger); background: var(--danger-soft); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.ico { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(247, 246, 242, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.site-header .wrap { display: flex; align-items: center; gap: 6px; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--ink); font-family: var(--font-serif);
  font-size: 20.5px; font-weight: 700; letter-spacing: 0;
}
.brand:hover { text-decoration: none; }
.brand .brand-mark { width: 30px; height: 30px; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav a {
  color: var(--ink-2); font-size: 14.5px; padding: 8px 13px; border-radius: 8px;
  transition: color .15s ease, background-color .15s ease;
}
.main-nav a:hover { color: var(--ink); background: var(--surface-dim); text-decoration: none; }
.main-nav a.active { color: var(--ink); background: var(--surface-dim); font-weight: 600; }
.nav-divider { width: 1px; height: 16px; background: var(--line); margin: 0 8px; }

/* language switcher */
.lang-switch { position: relative; }
.lang-switch > button {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; border-radius: 8px;
  color: var(--ink-2); font-size: 13.5px; padding: 8px 11px;
  transition: color .15s ease, background-color .15s ease;
}
.lang-switch > button:hover { color: var(--ink); background: var(--surface-dim); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-float); padding: 6px; min-width: 158px; z-index: 50;
  display: none;
}
.lang-menu.open { display: block; }
.lang-menu a {
  display: block; padding: 9px 13px; border-radius: 8px;
  color: var(--ink); font-size: 14px;
}
.lang-menu a:hover { background: var(--surface-dim); text-decoration: none; }
.lang-menu a.current { color: var(--ever); font-weight: 600; }

/* mobile nav */
.nav-toggle { display: none; background: none; border: none; color: var(--ink); padding: 8px; }
.nav-toggle .ico { width: 22px; height: 22px; }

@media (max-width: 820px) {
  .main-nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 18px 18px;
    box-shadow: 0 20px 32px rgba(28, 30, 26, 0.08);
    margin-left: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 11px; font-size: 16px; }
  .nav-divider { display: none; }
  /* language switch stays in the header bar, right next to the hamburger;
     on pages without a language switch (blog articles use hideLang) the
     hamburger itself takes the auto margin so it still hugs the right edge */
  .lang-switch { margin-left: auto; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .lang-switch ~ .nav-toggle { margin-left: 0; }
}

/* ---------- First screen: workbench ---------- */
.workbench { padding: 64px 0 36px; }
.hero-row {
  display: grid; grid-template-columns: minmax(340px, 11fr) 9fr;
  gap: clamp(48px, 5vw, 72px); align-items: center;
  margin-bottom: 72px;
}
/* slim figures band inside the first screen (compact form of the spec strip) */
.hero-facts {
  display: flex; flex-wrap: wrap; align-items: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 15px 0; margin-bottom: 52px;
}
.hf { display: inline-flex; align-items: baseline; gap: 9px; margin: 0; padding: 0 28px; }
.hf:first-child { padding-left: 0; }
.hf + .hf { border-left: 1px solid var(--line); }
.hf b { font-family: var(--font-serif); font-size: 19px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.hf span { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.wb-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: .2em; font-weight: 600;
  color: #85682c; margin-bottom: 16px;
}
.wb-kicker::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.wb-intro h1 {
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
/* Highlight must survive multi-line wrapping (long phrases in pt/fr/ja),
   so it is painted as a background stripe instead of an absolute ::after. */
.hl-mark {
  padding: 0 2px; margin: 0 -2px;
  background: linear-gradient(transparent 64%, rgba(169, 141, 84, 0.26) 64%, rgba(169, 141, 84, 0.26) 94%, transparent 94%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.wb-intro .wb-sub {
  color: var(--ink-2); font-size: 16.5px; line-height: 1.75;
  margin-top: 16px; max-width: 40em;
}

/* three-step usage line: keeps the hero informative while adding height */
.hero-steps {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  list-style: none; margin: 28px 0 0; padding: 20px 0 0;
  border-top: 1px dashed #d8d5c8;
}
.hero-steps li {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--ink-2);
}
.hs-n {
  width: 23px; height: 23px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--gold); border-radius: 50%;
  font-family: var(--font-serif); font-size: 12.5px; font-weight: 600;
  color: #85682c;
}

/* mailbox card */
.mbx-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.mbx-head { padding: 20px 26px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mbx-head .mbx-label {
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
}
.mbx-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--ever); white-space: nowrap;
}
.mbx-live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ever);
}
@media (prefers-reduced-motion: no-preference) {
  .mbx-live i { animation: t77live 2.2s ease-in-out infinite; }
  @keyframes t77live {
    0%, 100% { box-shadow: 0 0 0 0 rgba(23, 67, 59, 0.35); }
    55% { box-shadow: 0 0 0 6px rgba(23, 67, 59, 0); }
  }
}
.mbx-body { padding: 10px 26px 24px; }
.mbx-address {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2.4vw, 20px);
  word-break: break-all;
  line-height: 1.5;
  color: var(--ink);
  min-height: 1.5em;
}
.mbx-address.loading { color: var(--ink-3); }
.mbx-address.loading::after { content: "…"; animation: t77blink 1s steps(3) infinite; }
@keyframes t77blink { 50% { opacity: .2; } }
.mbx-actions { display: flex; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.mbx-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 13px 26px;
  border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-2);
}
.mbx-timer {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 13.5px; color: var(--ever);
  background: var(--ever-soft); border-radius: 999px; padding: 5px 13px;
  font-variant-numeric: tabular-nums;
}
.mbx-timer.low { color: var(--danger); background: var(--danger-soft); }
.mbx-meta .spacer { flex: 1; }
.wb-forward-hint { margin-top: 20px; font-size: 13.5px; color: var(--ink-3); }
.wb-forward-hint a { color: var(--ever); }

/* hero doodles: hand-drawn accents anchored to the address card */
.wb-intro { position: relative; }
.hero-doodle { position: absolute; pointer-events: none; user-select: none; }
.doodle-envelope { width: 108px; top: -64px; left: -76px; }
.doodle-seal { width: 96px; bottom: -30px; right: -24px; z-index: -1; opacity: .85; }
@media (prefers-reduced-motion: no-preference) {
  .doodle-envelope { animation: t77bob 5.5s ease-in-out infinite; }
  @keyframes t77bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
  }
}
@media (max-width: 920px) {
  .hero-doodle { display: none; }
}

/* hero placement: the address card is the anchor of the first screen */
.hero-row .mbx-card {
  position: relative;
  border-top: 3px solid var(--ever);
  box-shadow: var(--shadow-float);
}
.hero-row .mbx-card::before {
  content: ""; position: absolute; z-index: -1;
  inset: 16px -14px -14px 14px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
}
.hero-row .mbx-head { padding: 26px 30px 0; }
.hero-row .mbx-body { padding: 14px 30px 30px; }
.hero-row .mbx-meta { padding: 15px 30px; }
.hero-row .mbx-address { font-size: clamp(18px, 1.9vw, 23px); }
.hero-row .mbx-actions { margin-top: 26px; }
.hero-row .mbx-actions .btn-primary { padding: 13px 28px; font-size: 15px; }

/* ---------- Inbox workspace (list + reading pane) ---------- */
.inbox {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.inbox-split {
  display: grid; grid-template-columns: minmax(300px, 5fr) 8fr;
  height: 720px;
  min-height: 0;
}
.inbox-split[hidden] { display: none; }
.list-pane {
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  border-right: 1px solid var(--line);
}
.read-pane {
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  background: #fff;
}
.read-placeholder {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 30px; color: var(--ink-3);
}
.read-placeholder .ico { width: 44px; height: 44px; stroke-width: 1.2; color: #d4d2c6; margin-bottom: 14px; }
.read-placeholder h3 { font-size: 16px; color: var(--ink-2); margin-bottom: 8px; }
.read-placeholder p { font-size: 13.5px; line-height: 1.75; max-width: 26em; }
.inbox.is-reading .read-placeholder { display: none; }
.read-pane .mail-detail.open { min-height: 0; }
/* back bar is a narrow-screen affordance only */
.read-pane .detail-bar { display: none; }
.list-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  background: #fbfaf6;
}
.list-head h2 { font-size: 16px; }
.inbox-count { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.list-head .head-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.poll-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ever);
  animation: t77pulse 2.6s ease infinite;
}
@keyframes t77pulse { 0%,100% { opacity: .9; } 50% { opacity: .2; } }
.refresh-btn.spinning .ico { animation: t77spin .7s linear infinite; }
@keyframes t77spin { to { transform: rotate(360deg); } }

.mail-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.mail-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 18px 14px 20px; border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background-color .15s ease;
}
.mail-row:hover { background: #faf9f5; }
.mail-row.selected { background: #f4f2e9; box-shadow: inset 3px 0 0 var(--ever); }
.row-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ever-soft); color: var(--ever);
  font-weight: 600; font-size: 13.5px;
}
.mail-row .row-main { flex: 1; min-width: 0; }
.mail-row .row-top { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.mail-row .row-from {
  flex: 1; min-width: 0; font-size: 13.5px; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mail-row.unread .row-from { color: var(--ink); font-weight: 600; }
.mail-row .row-side {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.mail-row .row-side .ico { width: 14px; height: 14px; }
.mail-row .row-dot { width: 7px; height: 7px; border-radius: 50%; background: transparent; }
.mail-row.unread .row-dot { background: var(--ever); }
/* flex keeps trailing badges (demo tag) visible: only the inner text span
   truncates, the badge itself never gets clipped by the ellipsis */
.mail-row .row-subject {
  display: flex; align-items: center; min-width: 0;
  font-size: 14.5px; color: var(--ink-2);
}
.mail-row .row-subject-text {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mail-row.unread .row-subject { color: var(--ink); font-weight: 600; }
.badge-demo {
  font-size: 11px; color: var(--gold); border: 1px solid #d6c9a8;
  border-radius: 4px; padding: 0 6px; margin-left: 8px; vertical-align: 1px;
  font-weight: 500; flex: none;
}

/* demo banner + live-listening note, shown while the inbox is empty */
.demo-note {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-bottom: 1px solid var(--line);
  background: #f8f3e1;
}
.demo-note .demo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.demo-note p { margin: 0; font-size: 12.5px; line-height: 1.6; color: #85682c; }
.demo-note b { font-weight: 600; margin-right: 6px; }
.row-tag {
  display: inline-flex; align-items: center; margin-top: 7px;
  padding: 2.5px 9px; border-radius: 6px;
  background: #f1efe6; color: var(--ink-2);
  font-size: 12px; font-family: var(--font-mono);
}
.listen-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-3);
}

/* mail detail (swaps with list inside the panel) */
.mail-detail { display: none; flex-direction: column; flex: 1; min-height: 0; }
.mail-detail.open { display: flex; }
.detail-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
}
.detail-bar .bar-right { margin-left: auto; }
/* archive detail on the relay console keeps the labelled-lines layout */
.detail-meta { padding: 18px 24px 14px; border-bottom: 1px solid var(--line); }
.detail-meta h3 { font-size: 18.5px; margin-bottom: 10px; word-break: break-word; }
.detail-meta .meta-line { font-size: 13.5px; color: var(--ink-2); word-break: break-all; }

/* compact single-block header for the homepage reading pane */
.detail-head {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 28px 16px; border-bottom: 1px solid var(--line);
}
.detail-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ever-soft); color: var(--ever);
  font-weight: 600; font-size: 15px;
}
.detail-head .head-main { flex: 1; min-width: 0; }
.detail-head h3 { font-size: 18px; line-height: 1.4; margin: 0 0 4px; word-break: break-word; }
.head-sub {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
  font-size: 13px; color: var(--ink-3); margin: 0;
}
.head-sub .head-from { color: var(--ink-2); word-break: break-all; }
.head-sub .head-time { font-variant-numeric: tabular-nums; }
.detail-head .btn-quiet { flex-shrink: 0; margin-top: 4px; }
.detail-body { flex: 1; overflow-y: auto; padding: 26px 32px; background: #fff; }
.detail-body iframe { width: 100%; border: none; display: block; }
.detail-body pre { font-family: var(--font-sans); white-space: pre-wrap; word-break: break-word; margin: 0; font-size: 15px; }
.detail-attachments { border-top: 1px solid var(--line); padding: 16px 32px; background: #fbfaf6; flex-shrink: 0; }
.detail-attachments h4 {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); font-family: var(--font-sans); font-weight: 600; margin-bottom: 10px;
}
/* long attachment lists scroll inside the panel instead of stretching it
   past the pane/modal bounds (which would clip the overflow away) */
.detail-attachments .att-box {
  max-height: min(168px, 24vh);
  overflow-y: auto;
}
.att-item {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); padding: 7px 13px; margin: 0 8px 8px 0;
  font-size: 13.5px; color: var(--ink);
  transition: border-color .15s ease, color .15s ease;
}
.att-item:hover { border-color: var(--ever); color: var(--ever); text-decoration: none; }
.att-size { color: var(--ink-3); font-size: 12px; }

/* expired state inside inbox */
.inbox-expired { padding: 52px 30px; text-align: center; }
.inbox-expired h3 { font-size: 17.5px; margin-bottom: 10px; }
.inbox-expired p { color: var(--ink-2); font-size: 14px; margin-bottom: 22px; }

@media (max-width: 920px) {
  .workbench { padding-top: 34px; }
  .hero-row { grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
  .inbox-split { display: flex; flex-direction: column; height: auto; min-height: 340px; }
  .list-pane { border-right: none; flex: 1; }
  .read-pane { display: none; }
  .inbox.is-reading .list-pane { display: none; }
  .inbox.is-reading .read-pane { display: flex; }
  .read-pane .detail-bar { display: flex; }
}

/* ---------- Below-the-fold sections ---------- */
.section { padding: 96px 0 0; }
.section:last-of-type { padding-bottom: 96px; }
.section.section-tight { padding-top: 40px; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .kicker {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(24px, 2.6vw, 30px); }
.section-head .lede { color: var(--ink-2); margin-top: 12px; font-size: 15.5px; }

/* steps — editorial columns under dark rules */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.step { border-top: 1px solid var(--line-dark); padding-top: 22px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 12px; color: var(--gold);
  display: block; margin-bottom: 14px; letter-spacing: .12em;
}
.step h3 { font-size: 17.5px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--ink-2); line-height: 1.75; }

/* feature grid — open editorial columns with small stroke icons */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 40px; }
.feat .feat-ico {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--ever-soft); color: var(--ever);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feat .feat-ico .ico { width: 17px; height: 17px; stroke-width: 1.6; }
.feat h3 { font-size: 16.5px; margin-bottom: 8px; }
.feat p { font-size: 14.5px; color: var(--ink-2); line-height: 1.75; }
@media (max-width: 920px) { .feat-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 28px; } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }

/* lifecycle — vertical editorial timeline */
.life-flow { border-left: 1px solid var(--line-dark); margin-left: 5px; }
.life-node { position: relative; padding: 0 0 36px 34px; }
.life-node:last-child { padding-bottom: 0; }
.life-node::before {
  content: ""; position: absolute; left: -5px; top: 7px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-dark);
}
.life-node .life-stage {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em;
  color: var(--gold); display: block; margin-bottom: 6px;
}
.life-node h3 { font-size: 17px; margin-bottom: 7px; }
.life-node p { font-size: 14.5px; color: var(--ink-2); line-height: 1.75; max-width: 46em; }

/* chooser — two quiet cards */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.choice {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 34px 36px;
  display: flex; flex-direction: column;
}
.choice h3 { font-size: 18px; margin-bottom: 14px; }
.choice ul { margin: 0 0 22px; padding: 0; list-style: none; flex: 1; }
.choice li {
  font-size: 14.5px; color: var(--ink-2); line-height: 1.7;
  padding-left: 24px; position: relative; margin-top: 9px;
}
.choice li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 12px; height: 1px; background: var(--gold);
}
.choice .choice-link { font-size: 14.5px; font-weight: 500; }
@media (max-width: 720px) { .choice-grid { grid-template-columns: 1fr; } }

/* forwarding — full evergreen band */
.forward-panel {
  border-radius: 20px;
  background: linear-gradient(160deg, #17433b 0%, #0e2f29 100%);
  color: rgba(251, 250, 246, 0.82);
  padding: 60px 56px;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center;
}
.forward-panel h2 { color: #fbfaf6; font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 14px; }
.forward-panel p { font-size: 15px; line-height: 1.8; }
.forward-panel p a { color: #fbfaf6; text-decoration: underline; text-underline-offset: 3px; }
.forward-panel .fw-points { margin: 22px 0 0; padding: 0; list-style: none; }
.forward-panel .fw-points li {
  font-size: 14.5px; padding-left: 26px; position: relative; margin-top: 11px;
}
.forward-panel .fw-points li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 14px; height: 1px; background: var(--gold);
}
.forward-panel .fw-cta { text-align: center; }
.forward-panel .fw-cta .btn {
  width: 100%; max-width: 264px;
  background: #fbfaf6; color: var(--ink); border: none;
}
.forward-panel .fw-cta .btn:hover { background: #ebe9e0; }
.forward-panel .fw-cta .fw-note { font-size: 12.5px; color: rgba(251, 250, 246, 0.55); margin-top: 12px; }
@media (max-width: 820px) {
  .forward-panel { grid-template-columns: 1fr; padding: 40px 28px; }
}

/* scenarios — quiet boxed grid */
.scene-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.scene { padding: 32px 34px; }
.scene:nth-child(odd) { border-right: 1px solid var(--line); }
.scene:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.scene h3 { font-size: 17px; margin-bottom: 9px; }
.scene p { font-size: 14.5px; color: var(--ink-2); line-height: 1.75; }
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .scene-grid { grid-template-columns: 1fr; }
  .scene:nth-child(odd) { border-right: none; }
  .scene:not(:last-child) { border-bottom: 1px solid var(--line); }
}

/* FAQ */
.faq-list { border-top: 1px solid var(--line-dark); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
  padding: 21px 4px; font-family: var(--font-serif); font-size: 17px; font-weight: 600;
  transition: color .15s ease;
}
.faq-item summary:hover { color: var(--ever); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-plus { margin-left: auto; flex: none; color: var(--ink-3); stroke-width: 1.4; transition: transform .2s ease, color .2s ease; }
.faq-item[open] summary .faq-plus { transform: rotate(45deg); color: var(--ever); }
.faq-item .faq-a { padding: 0 4px 24px; color: var(--ink-2); font-size: 15px; line-height: 1.8; max-width: 54em; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 36px;
  font-size: 14px; color: var(--ink-2);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand .brand { font-size: 18px; }
.footer-brand p { margin-top: 14px; max-width: 30em; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.footer-col h4 {
  font-family: var(--font-sans); font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--ink-2); }
.footer-col a:hover { color: var(--ever); }
.footer-base {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3);
}
.footer-base .spacer { flex: 1; }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Toast ---------- */
.toast-stack {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 100; align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--ink); color: #f7f6f2;
  border-radius: var(--r-md); padding: 11px 20px; font-size: 14px;
  box-shadow: var(--shadow-float);
  animation: t77toast .25s ease;
  max-width: min(90vw, 420px);
}
.toast.err { background: var(--danger); }
@keyframes t77toast { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Confirm dialog ---------- */
.t77-dialog-backdrop {
  position: fixed; inset: 0; background: rgba(28, 30, 26, 0.44);
  display: flex; align-items: center; justify-content: center; z-index: 90;
  padding: 20px;
  animation: t77veil .22s ease;
}
.t77-dialog,
.t77-modal,
.arch-modal {
  animation: t77lift .28s cubic-bezier(.21, .9, .3, 1);
}
@keyframes t77veil { from { opacity: 0; } }
@keyframes t77lift { from { opacity: 0; transform: translateY(16px) scale(.965); } }
/* smooth exit: JS adds .is-closing, waits for the animation, then sets hidden */
.t77-dialog-backdrop.is-closing { animation: t77unveil .18s ease forwards; }
.t77-dialog-backdrop.is-closing .t77-dialog,
.t77-dialog-backdrop.is-closing .t77-modal,
.t77-dialog-backdrop.is-closing .arch-modal {
  animation: t77settle .18s ease forwards;
}
@keyframes t77unveil { to { opacity: 0; } }
@keyframes t77settle { to { opacity: 0; transform: translateY(10px) scale(.975); } }
@media (prefers-reduced-motion: reduce) {
  .t77-dialog-backdrop, .t77-dialog, .t77-modal, .arch-modal,
  .t77-dialog-backdrop.is-closing { animation: none; }
}
.t77-dialog {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
  max-width: 430px; width: 100%; padding: 30px;
}
.t77-dialog h3 { font-size: 19px; margin-bottom: 12px; }
.t77-dialog p { color: var(--ink-2); font-size: 14.5px; line-height: 1.75; }
.t77-dialog .dlg-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 26px; }
.btn-danger { background: var(--danger); color: #fbfaf6; }
.btn-danger:hover { background: #8c3620; }

/* ---------- Relay console (forwarding module) ---------- */
.relay-main { padding: 56px 0 96px; }
.relay-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40vh; color: var(--ink-3); font-size: 14px; }
.spin-ring {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--ever);
  animation: t77spin .8s linear infinite;
}

/* auth (logged-out) layout */
.auth-layout { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: start; }
.auth-intro h1 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.015em; }
.auth-intro .auth-sub { color: var(--ink-2); font-size: 15.5px; line-height: 1.8; margin-top: 14px; max-width: 36em; }
.auth-points { margin: 26px 0 0; padding: 0; list-style: none; }
.auth-points li {
  font-size: 14.5px; color: var(--ink-2); line-height: 1.7;
  padding-left: 24px; position: relative; margin-top: 10px;
}
.auth-points li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 12px; height: 1px; background: var(--gold);
}
.auth-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 34px 36px;
}
.auth-card h2 { font-size: 20px; margin-bottom: 6px; }
.auth-card .auth-lead { font-size: 13.5px; color: var(--ink-2); margin-bottom: 22px; line-height: 1.7; }
.field-label { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 8px; }
.txt-input {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff; color: var(--ink);
  font-size: 15px; font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.txt-input:focus { outline: none; border-color: var(--ever); box-shadow: 0 0 0 3px rgba(23, 67, 59, 0.10); }
.txt-input::placeholder { color: var(--ink-3); }
.auth-card .btn { width: 100%; margin-top: 18px; }
.auth-note { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; line-height: 1.7; }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.auth-row .btn-quiet { font-size: 13px; }

/* six-digit code boxes */
.code-boxes { display: flex; gap: 9px; justify-content: space-between; }
.code-boxes input {
  width: 100%; max-width: 54px; height: 56px; text-align: center;
  font-family: var(--font-mono); font-size: 21px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.code-boxes input:focus { outline: none; border-color: var(--ever); box-shadow: 0 0 0 3px rgba(23, 67, 59, 0.10); }

@media (max-width: 880px) {
  .auth-layout { grid-template-columns: 1fr; gap: 30px; }
  .auth-card { padding: 26px 22px; }
}

/* guest-only feature preview below the login area */
.guest-more {
  margin-top: 88px; padding-top: 72px;
  border-top: 1px solid var(--line);
  display: grid; gap: 80px;
}
.state-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.state-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 20px;
}
.state-item .badge { margin-bottom: 12px; }
.state-item p { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; margin: 0; }
@media (max-width: 900px) { .state-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .state-grid { grid-template-columns: 1fr; } }

/* console overview */
.console-head {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 20px 26px;
}
.acct-id { min-width: 0; }
.acct-id .acct-label { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.acct-id .acct-email { font-family: var(--font-mono); font-size: 15px; margin-top: 3px; word-break: break-all; }
.quota-pill {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: var(--ever-soft); color: var(--ever);
  border-radius: 999px; padding: 6px 15px; font-size: 13px;
}
.quota-pill b { font-family: var(--font-mono); font-size: 14.5px; font-weight: 600; }
.console-head .spacer { flex: 1; }

/* segmented tabs */
.seg-tabs {
  display: inline-flex; gap: 4px; margin-top: 28px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px;
}
.seg-tabs button {
  border: none; background: none; color: var(--ink-2);
  font-size: 14px; padding: 8px 20px; border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}
.seg-tabs button.on { background: var(--ink); color: #fbfaf6; }
.seg-tabs button:not(.on):hover { color: var(--ink); }

.relay-panel { margin-top: 22px; }

/* alias creation form */
.alias-form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 24px 26px;
}
.alias-form .prefix-row { display: flex; gap: 10px; flex-wrap: wrap; }
.prefix-wrap {
  flex: 1; min-width: 220px; display: flex; align-items: stretch;
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.prefix-wrap:focus-within { border-color: var(--ever); box-shadow: 0 0 0 3px rgba(23, 67, 59, 0.10); }
.prefix-wrap input {
  flex: 1; min-width: 0; border: none; background: none; padding: 11px 0 11px 14px;
  font-size: 15px; font-family: var(--font-mono); color: var(--ink);
}
.prefix-wrap input:focus { outline: none; }
.prefix-wrap .suffix-tag {
  display: flex; align-items: center; padding: 0 14px;
  font-family: var(--font-mono); font-size: 14px; color: var(--ink-3);
  border-left: 1px dashed var(--line); margin-left: 10px;
}
.alias-form .form-hint { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; line-height: 1.7; }
/* inline error next to the field it belongs to (server-side create failures) */
.field-error { font-size: 13px; color: var(--danger); line-height: 1.6; }
.field-error:empty { display: none; }
.alias-form .field-error { margin-top: 10px; }

/* list panels (aliases + archive share the container) */
.list-panel {
  margin-top: 22px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.list-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 22px; border-bottom: 1px solid var(--line);
}
.list-bar h2 { font-size: 16.5px; }
.list-bar .bar-count { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.list-bar .bar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* custom dropdown — replaces native select popups so the menu matches the site look */
.dd { position: relative; display: inline-block; }
.dd-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 10px 8px 12px; font-size: 13.5px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
  max-width: 300px;
  transition: border-color .15s ease;
}
.dd-btn:hover { border-color: var(--ink-3); }
.dd-btn:focus-visible { outline: 2px solid var(--ever); outline-offset: 2px; }
.dd.open .dd-btn { border-color: var(--ever); }
.dd-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-caret { width: 13px; height: 13px; color: var(--ink-2); flex: none; transition: transform .18s ease; }
.dd.open .dd-caret { transform: rotate(180deg); }
.dd-menu {
  /* fixed so overflow-hidden ancestors (rounded cards) cannot clip it;
     coordinates are set by shell.js when the menu opens */
  display: none; position: fixed; z-index: 60;
  max-width: min(400px, 90vw); max-height: 300px; overflow: hidden auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-float); padding: 5px;
}
.dd.open .dd-menu { display: block; }
.dd-opt {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 8px 12px 8px 9px; border: none; background: none; border-radius: 7px;
  font-size: 13.5px; color: var(--ink-2);
  transition: background-color .12s ease, color .12s ease;
}
.dd-opt:hover, .dd-opt:focus { background: var(--surface-dim); color: var(--ink); outline: none; }
.dd-opt .dd-check { width: 13px; height: 13px; flex: none; visibility: hidden; color: var(--ever); }
.dd-opt.on { color: var(--ever); font-weight: 600; }
.dd-opt.on .dd-check { visibility: visible; }
.dd-opt span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.row-list { list-style: none; margin: 0; padding: 0; }
.empty-note { padding: 46px 28px; text-align: center; color: var(--ink-2); }
.empty-note h3 { font-size: 16px; color: var(--ink); margin-bottom: 8px; }
.empty-note p { font-size: 13.5px; line-height: 1.75; max-width: 34em; margin: 0 auto; }

/* alias rows */
.alias-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 15px 22px; border-bottom: 1px solid var(--line);
}
.alias-row:last-child { border-bottom: none; }
.alias-row .al-addr { font-family: var(--font-mono); font-size: 14.5px; word-break: break-all; }
.alias-row .al-copy { padding: 4px 7px; }
.alias-row .al-copy .ico { width: 14px; height: 14px; }
.alias-row .al-count { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.alias-row .al-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }

/* status badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; border-radius: 999px; padding: 3px 11px;
  white-space: nowrap;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-on   { background: var(--ever-soft); color: var(--ever); }
.badge-off  { background: var(--surface-dim); color: var(--ink-3); }
.badge-fwd  { background: var(--ever-soft); color: var(--ever); }
.badge-spam { background: #f3ecd9; color: #8a6d2f; }
.badge-fail { background: var(--danger-soft); color: var(--danger); }
.badge-wait { background: var(--surface-dim); color: var(--ink-2); }

/* archive rows */
.arch-row {
  /* the badge track grows with long localized status labels (pt "Encaminhado",
     jp long katakana) instead of letting the pill bleed into the text column */
  display: grid; grid-template-columns: minmax(92px, max-content) 1fr auto;
  gap: 14px; align-items: center;
  padding: 14px 22px; border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background-color .15s ease;
}
.arch-row:hover { background: #faf9f5; }
/* Grid blockifies inline-flex and stretches it; keep the pill at its content width */
.arch-row .badge { justify-self: start; }
.arch-row .arch-main { min-width: 0; }
/* block display is required for text-overflow to clip; the <br> between the
   two spans becomes redundant once they are blocks */
.arch-row .arch-main br { display: none; }
.arch-row .arch-from { display: block; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arch-row .arch-subject { display: block; font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arch-row .arch-side { text-align: right; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; line-height: 1.6; }
@media (max-width: 640px) {
  .arch-row { grid-template-columns: 1fr; gap: 6px; }
  .arch-row .arch-side { text-align: left; }
  /* narrow screens: wrap instead of clipping, long addresses may break anywhere */
  .arch-row .arch-from,
  .arch-row .arch-subject { white-space: normal; overflow-wrap: anywhere; }
}

/* archive mail detail modal (reuses .detail-meta/.detail-body component family) */
.arch-modal {
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
  width: 100%; max-width: 780px;
  max-height: 88vh; overflow: hidden;
}
.arch-modal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px 12px 22px; border-bottom: 1px solid var(--line);
  background: #fbfaf6; flex-shrink: 0;
}
.arch-modal-bar .bar-right { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.arch-modal .detail-meta,
.arch-modal .spam-note { flex-shrink: 0; }
.arch-modal .detail-body { min-height: 140px; }
/* on short viewports the attachments panel gives up height first,
   its list stays reachable through its own scrollbar */
.arch-modal .detail-attachments { display: flex; flex-direction: column; min-height: 0; flex-shrink: 1; }
.arch-modal .detail-attachments h4 { flex-shrink: 0; }
.arch-modal .detail-attachments .att-box { min-height: 46px; }
.spam-note {
  margin: 12px 24px 0; padding: 12px 16px;
  background: #f3ecd9; border-radius: var(--r-md);
  font-size: 13.5px; color: #6f5722; line-height: 1.7;
}

/* security (2FA) modal */
.t77-modal {
  position: relative;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
  max-width: 500px; width: 100%; padding: 32px;
  max-height: 88vh; overflow-y: auto;
}
.t77-modal h3 { font-size: 19px; margin-bottom: 4px; }
.t77-modal .tfa-state { font-size: 13px; margin: 10px 0 16px; }
.t77-modal p { color: var(--ink-2); font-size: 14px; line-height: 1.75; }
.t77-modal .modal-close { position: absolute; top: 14px; right: 14px; }
.t77-modal-wrap { position: relative; }
.qr-box { text-align: center; margin: 18px 0 6px; }
.qr-box img { width: 172px; height: 172px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.qr-slot:empty { display: none; }
.secret-line {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-dim); border-radius: var(--r-md);
  padding: 10px 14px; margin-top: 12px;
}
.secret-line code { font-family: var(--font-mono); font-size: 12.5px; word-break: break-all; flex: 1; }
.tfa-warn {
  margin-top: 14px; padding: 12px 16px;
  background: var(--danger-soft); border-radius: var(--r-md);
  font-size: 13.5px; color: var(--danger); line-height: 1.7;
}
.t77-modal .tfa-howto { margin-top: 16px; font-size: 13.5px; }
.tfa-steps { margin: 8px 0 0; padding-left: 22px; }
.tfa-steps li { font-size: 13.5px; color: var(--ink-2); line-height: 1.85; }
.t77-modal .tfa-lost { margin-top: 16px; font-size: 12.5px; color: var(--ink-3); }
.t77-modal .tfa-lost a { color: var(--ink-2); text-decoration: underline; }
.t77-modal .code-boxes { margin-top: 16px; }
.t77-modal .btn { width: 100%; margin-top: 18px; }

/* ---------- Language gateway (root page) ---------- */
.gateway {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 32px; text-align: center;
}
.gateway .brand-mark { width: 52px; height: 52px; margin-bottom: 20px; }
.gateway h1 { font-size: 24px; margin-bottom: 10px; }
.gateway p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 30px; }
.gateway-langs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 520px; }
.gateway-langs a {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 24px; color: var(--ink); font-size: 15px; background: var(--surface);
  transition: border-color .15s ease, color .15s ease;
}
.gateway-langs a:hover { border-color: var(--ever); color: var(--ever); text-decoration: none; }

/* ---------- Knowledge base: list page ---------- */
.kb-main { padding: 56px 0 96px; }
.kb-hero { max-width: 680px; margin-bottom: 38px; }
.kb-hero .kicker {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 14px;
}
.kb-hero h1 { font-size: clamp(27px, 3vw, 36px); letter-spacing: -0.015em; }
.kb-hero .lede { color: var(--ink-2); margin-top: 14px; font-size: 15.5px; line-height: 1.8; }

.kb-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.kb-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.kb-chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: 999px; font-size: 13.5px; padding: 7px 16px;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.kb-chip b { font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.kb-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.kb-chip.on { background: var(--ink); border-color: var(--ink); color: #fbfaf6; }
.kb-chip.on b { color: rgba(251, 250, 246, 0.6); }
.kb-toolbar .kb-count { margin-left: auto; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.kb-feat-card {
  display: block;
  background: linear-gradient(160deg, #17433b 0%, #0e2f29 100%);
  border-radius: 20px; padding: 42px 46px;
  color: rgba(251, 250, 246, 0.75);
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease;
}
.kb-feat-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-float); }
.kb-feat-badge {
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.kb-feat-card h2 { color: #fbfaf6; font-size: clamp(21px, 2.4vw, 27px); margin: 14px 0 12px; }
.kb-feat-card .kb-excerpt { font-size: 14.5px; line-height: 1.8; max-width: 48em; }
.kb-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: 12.5px; color: var(--ink-3); }
.kb-feat-card .kb-meta { color: rgba(251, 250, 246, 0.55); }
.kb-cat { border: 1px solid var(--line); border-radius: 4px; padding: 1px 8px; font-size: 11.5px; }
.kb-feat-card .kb-cat { border-color: rgba(251, 250, 246, 0.3); }

.kb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.kb-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 30px 32px; color: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.kb-card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--ink-3); box-shadow: var(--shadow-float); }
.kb-card h2 { font-size: 18.5px; line-height: 1.4; }
.kb-card .kb-excerpt { color: var(--ink-2); font-size: 14px; line-height: 1.75; margin-top: 10px; flex: 1; }

@media (max-width: 760px) {
  .kb-grid { grid-template-columns: 1fr; }
  .kb-feat-card { padding: 30px 26px; }
  .kb-toolbar .kb-count { margin-left: 0; width: 100%; }
}

/* ---------- Knowledge base: article page ---------- */
.art-main { padding: 44px 0 96px; }
.crumbs {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3); margin-bottom: 30px;
}
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--ever); }

.art-head { max-width: 800px; }
.art-head .art-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3); margin-bottom: 16px;
}
.art-head h1 { font-size: clamp(27px, 3.2vw, 38px); line-height: 1.22; letter-spacing: -0.015em; }
.art-standfirst {
  margin-top: 18px; padding-left: 18px; border-left: 2px solid var(--gold);
  color: var(--ink-2); font-size: 15.5px; line-height: 1.85;
}

.art-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 260px;
  gap: 60px; align-items: start; margin-top: 36px;
}
.art-prose { font-size: 15.5px; line-height: 1.95; color: #2a2d26; }
.art-prose p { margin: 0 0 20px; }
.art-prose h2 {
  font-size: 22.5px; margin: 46px 0 18px; padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  scroll-margin-top: 88px;
}
.art-prose h3 { font-size: 17.5px; margin: 30px 0 12px; }
.art-prose ul, .art-prose ol { margin: 0 0 20px; padding-left: 24px; }
.art-prose li { margin-bottom: 8px; }
.art-prose strong { color: var(--ink); }
.art-prose .table-scroll { overflow-x: auto; margin: 6px 0 24px; }
.art-prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.art-prose th, .art-prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.art-prose th { background: var(--surface-dim); font-family: var(--font-sans); font-weight: 600; white-space: nowrap; }

/* table of contents */
.art-side { position: sticky; top: 92px; }
.toc-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow-card);
}
.toc-box summary {
  list-style: none; cursor: pointer;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
}
.toc-box summary::-webkit-details-marker { display: none; }
.toc-box ol { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: toc; }
.toc-box li { margin-top: 9px; }
.toc-box a { display: block; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.toc-box a::before {
  counter-increment: toc; content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 11px; color: var(--gold); margin-right: 9px;
}
.toc-box a:hover { color: var(--ever); text-decoration: none; }

/* end-of-article CTA */
.art-cta {
  margin-top: 52px; border-radius: 20px;
  background: linear-gradient(160deg, #17433b 0%, #0e2f29 100%);
  color: rgba(251, 250, 246, 0.8); padding: 36px 40px;
}
.art-cta .cta-title {
  display: block; color: #fbfaf6; font-family: var(--font-serif);
  font-size: 21px; font-weight: 600; margin-bottom: 10px;
}
.art-cta p { font-size: 14.5px; line-height: 1.8; }
.art-cta .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.art-cta .btn.light { background: #fbfaf6; color: var(--ink); border: none; }
.art-cta .btn.light:hover { background: #ebe9e0; }
.art-cta .btn.hollow { background: transparent; color: #fbfaf6; border: 1px solid rgba(251, 250, 246, 0.4); }
.art-cta .btn.hollow:hover { border-color: #fbfaf6; }

/* related reading — text-only cards */
.art-related { margin-top: 60px; }
.art-related > h2 { font-size: 20px; padding-top: 24px; border-top: 1px solid var(--line-dark); margin-bottom: 22px; }
.rel-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rel-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 24px 26px; color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.rel-card:hover { text-decoration: none; border-color: var(--ink-3); box-shadow: var(--shadow-float); }
.rel-card h3 { font-size: 16px; line-height: 1.45; }
.rel-card p { color: var(--ink-2); font-size: 13.5px; line-height: 1.7; margin-top: 8px; flex: 1; }
.rel-card time { font-size: 12px; color: var(--ink-3); margin-top: 14px; }
@media (max-width: 640px) { .rel-cards { grid-template-columns: 1fr; } }

/* floating recommendation card */
.float-tip {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 268px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-float);
  padding: 20px 22px;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.float-tip.show { opacity: 1; transform: none; pointer-events: auto; }
.float-tip p { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; margin: 0 22px 14px 0; }
.float-tip .btn { width: 100%; padding: 9px 16px; font-size: 14px; }
.float-tip .tip-close {
  position: absolute; top: 10px; right: 10px;
  background: none; border: none; color: var(--ink-3);
  padding: 5px; border-radius: 6px;
}
.float-tip .tip-close:hover { color: var(--ink); background: var(--surface-dim); }
.float-tip .tip-close .ico { width: 14px; height: 14px; }
@media (max-width: 640px) { .float-tip { right: 14px; left: 14px; bottom: 14px; width: auto; } }

@media (max-width: 960px) {
  /* minmax(0, ...) keeps wide children (tables) from blowing up the column;
     the .table-scroll wrapper then scrolls them horizontally. */
  .art-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .art-side { position: static; order: -1; }
}

/* ---------- Generic marketing page hero ---------- */
.page-hero { padding: 64px 0 10px; }
.page-hero .kicker {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 14px;
}
.page-hero h1 { font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -0.015em; line-height: 1.2; max-width: 22em; }
.page-hero .lede { color: var(--ink-2); margin-top: 16px; font-size: 15.5px; line-height: 1.8; max-width: 44em; }
.page-hero .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* "more help" line under FAQ blocks */
.faq-more { margin-top: 26px; font-size: 14px; color: var(--ink-2); }

/* hero with a side illustration */
.page-hero.with-art .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) 330px;
  gap: 56px; align-items: center;
}
.hero-art { width: 100%; height: auto; display: block; }
@media (max-width: 860px) {
  .page-hero.with-art .wrap { grid-template-columns: 1fr; gap: 8px; }
  .hero-art { max-width: 280px; margin-top: 18px; }
}

/* small illustration inside the auth intro column */
.auth-art { width: 100%; max-width: 250px; height: auto; display: block; margin-top: 36px; }
@media (max-width: 860px) { .auth-art { display: none; } }

/* content block with a side illustration */
.flow-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 64px; align-items: center; }
.flow-art { width: 100%; height: auto; display: block; }
@media (max-width: 900px) {
  .flow-grid { grid-template-columns: 1fr; gap: 30px; }
  .flow-art { max-width: 280px; margin: 0 auto; }
}

/* ---------- Guide page: numbered editorial steps ---------- */
.g-steps { border-bottom: 1px solid var(--line); }
.g-step {
  display: grid; grid-template-columns: 96px minmax(0, 1fr);
  gap: 30px; padding: 42px 0; border-top: 1px solid var(--line-dark);
}
.g-num {
  font-family: var(--font-serif); font-size: 42px; font-weight: 600;
  color: var(--ink); line-height: 1;
}
.g-num::after { content: ""; display: block; width: 26px; height: 2px; background: var(--gold); margin-top: 14px; }
.g-step h3 { font-size: 20px; margin-bottom: 12px; }
.g-step p { color: var(--ink-2); font-size: 15px; line-height: 1.85; margin: 0 0 12px; max-width: 62em; }
.g-step p:last-child { margin-bottom: 0; }
.g-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.g-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 15px; font-size: 13px; color: var(--ink-2);
}
.g-chip .ico { width: 14px; height: 14px; color: var(--ever); }
@media (max-width: 640px) {
  .g-step { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .g-num { font-size: 30px; }
}

/* lifetime rail */
.rail-wrap {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 36px 38px 30px;
}
.rail { position: relative; height: 6px; border-radius: 999px; background: var(--surface-dim); }
.rail-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 12.5%; border-radius: 999px; background: var(--ever); }
.rail-tick { position: absolute; top: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ever); transform: translateX(-50%); }
.rail-marks { display: flex; justify-content: space-between; margin-top: 18px; gap: 8px; }
.rail-mark { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.rail-mark b {
  display: block; font-family: var(--font-mono); font-size: 13px;
  color: var(--ink); margin-bottom: 3px; font-weight: 600;
}
.rail-mark:not(:first-child) { text-align: right; }

/* inline callout note */
.callout {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--r-md); padding: 18px 22px; margin-top: 24px;
  font-size: 14px; color: var(--ink-2); line-height: 1.8;
}
.callout .ico { color: var(--gold); margin-top: 4px; }
.callout.warn { border-left-color: var(--danger); }
.callout.warn .ico { color: var(--danger); }
.callout p { margin: 0; }

/* ---------- Help center: category jump cards ---------- */
.help-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 38px; }
.help-cat {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 28px 30px; color: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.help-cat:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--ink-3); box-shadow: var(--shadow-float); }
.help-cat h2 { font-size: 17.5px; margin: 14px 0 8px; }
.help-cat p { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; flex: 1; }
.help-cat .cat-n {
  margin-top: 18px; font-family: var(--font-mono); font-size: 12px;
  color: var(--gold); letter-spacing: .1em;
}
@media (max-width: 720px) { .help-cats { grid-template-columns: 1fr; } }

/* ---------- About page: stats band ---------- */
.stat-band {
  border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, #17433b 0%, #0e2f29 100%);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.stat { padding: 36px 38px; }
.stat b { display: block; font-family: var(--font-serif); font-size: 31px; font-weight: 600; color: #fbfaf6; line-height: 1.15; }
.stat span { display: block; font-size: 13px; color: rgba(251, 250, 246, 0.55); margin-top: 8px; line-height: 1.6; }
@media (max-width: 780px) { .stat-band { grid-template-columns: 1fr 1fr; } .stat { padding: 26px 28px; } }
@media (max-width: 480px) { .stat-band { grid-template-columns: 1fr; } }

/* ---------- Plain document pages (legal texts) ---------- */
.doc-main { padding: 56px 0 96px; }
.doc-main .wrap { max-width: 820px; }
.doc-head .kicker {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 14px;
}
.doc-head h1 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.015em; }
.doc-head .doc-updated { font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.doc-body { margin-top: 34px; font-size: 15px; line-height: 1.9; color: #2a2d26; }
.doc-body h2 {
  font-size: 19.5px; margin: 40px 0 14px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.doc-body h3 { font-size: 16px; margin: 24px 0 10px; }
.doc-body p { margin: 0 0 16px; }
.doc-body ul { margin: 0 0 16px; padding-left: 22px; }
.doc-body li { margin-bottom: 7px; }
.doc-body strong { color: var(--ink); }
.doc-body .table-scroll { overflow-x: auto; margin: 6px 0 20px; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.7; }
.doc-body th, .doc-body td { border: 1px solid var(--line); padding: 9px 13px; text-align: left; vertical-align: top; }
.doc-body th { background: var(--surface-dim); font-weight: 600; white-space: nowrap; }

/* ---------- Homepage enrichment components ---------- */

/* soft color washes behind the first screen */
.workbench { position: relative; overflow: hidden; }
.workbench::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 400px at 82% -10%, rgba(23, 67, 59, 0.10), transparent 65%),
    radial-gradient(520px 360px at -6% 30%, rgba(169, 141, 84, 0.12), transparent 60%);
}
.workbench .wrap { position: relative; }

/* trust chips under the hero lede */
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; }
.hero-chips li {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 14px;
}
.hero-chips .ico { width: 13px; height: 13px; color: var(--ever); stroke-width: 2; }

/* spec strip — editorial figures between hairlines */
.spec-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line);
}
.spec { padding: 30px 26px 30px 0; }
.spec + .spec { padding-left: 26px; border-left: 1px solid var(--line); }
.spec b {
  display: block; font-family: var(--font-serif);
  font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; line-height: 1.1; color: var(--ink);
}
.spec .spec-unit { font-size: 15px; font-weight: 500; color: var(--gold); margin-left: 3px; }
.spec span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 9px; line-height: 1.65; }
@media (max-width: 860px) {
  .spec-strip { grid-template-columns: 1fr 1fr; }
  .spec { padding: 20px 18px 20px 0; }
  .spec + .spec { padding-left: 0; border-left: none; }
  .spec:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .spec:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* hand-drawn spot art inside the steps */
.step-art { width: 64px; height: 64px; margin-bottom: 16px; display: block; }

/* temp-vs-alias comparison table */
.vs-scroll-hint {
  display: none;
  margin: 0;
  padding: 12px 16px 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
  text-align: center;
}
.vs-block {
  margin-top: 30px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 640px) {
  .vs-scroll-hint { display: block; }
  .vs-block {
    background:
      linear-gradient(to right, var(--surface) 24px, transparent),
      linear-gradient(to left, var(--surface) 24px, transparent) 100% 0,
      radial-gradient(farthest-side at 0 50%, rgba(28, 30, 26, .10), transparent),
      radial-gradient(farthest-side at 100% 50%, rgba(28, 30, 26, .10), transparent) 100% 0;
    background-color: var(--surface);
    background-repeat: no-repeat;
    background-size: 28px 100%, 28px 100%, 12px 100%, 12px 100%;
    background-attachment: local, local, scroll, scroll;
  }
}
.vs-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; min-width: 560px; }
.vs-table th, .vs-table td { padding: 14px 24px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.vs-table thead th { border-top: none; font-family: var(--font-serif); font-size: 15.5px; padding-top: 20px; }
.vs-table thead th:first-child {
  font-family: var(--font-sans); font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 600;
}
.vs-table tbody th { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--ink-3); white-space: nowrap; width: 128px; }
.vs-table td { color: var(--ink-2); }
.vs-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 9px; vertical-align: 1px; }
.vs-dot.ever { background: var(--ever); }
.vs-dot.gold { background: var(--gold); }

/* scenario tile icons (gold family, distinct from evergreen feature icons) */
.scene-ico {
  width: 34px; height: 34px; border-radius: 9px;
  background: #f3ecd9; color: #8a6d2f;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.scene-ico .ico { width: 17px; height: 17px; stroke-width: 1.6; }

/* privacy pledge — illustration beside a checklist */
.pledge-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; align-items: center; }
.pledge-art { width: 100%; height: auto; display: block; }
.check-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 13px; font-size: 14.5px; color: var(--ink-2); line-height: 1.75; }
.check-list li b { color: var(--ink); font-weight: 600; }
.check-list .ico { width: 19px; height: 19px; color: var(--ever); margin-top: 3px; }
@media (max-width: 900px) {
  .pledge-grid { grid-template-columns: 1fr; gap: 28px; }
  .pledge-art { max-width: 260px; margin: 6px auto 0; order: 2; }
}

/* ---------- Relay guest-area enrichment ---------- */

/* forwarding journey — four connected pipeline nodes */
.pipe-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pipe-node {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-card);
  padding: 24px 22px;
}
.pipe-node:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -18px; width: 16px; height: 0;
  border-top: 2px dashed #d6c9a8;
}
.pipe-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.pipe-ico {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--ever-soft); color: var(--ever);
  display: inline-flex; align-items: center; justify-content: center;
}
.pipe-ico .ico { width: 17px; height: 17px; stroke-width: 1.6; }
.pipe-num { font-family: var(--font-mono); font-size: 12px; color: var(--gold); letter-spacing: .12em; }
.pipe-node h3 { font-size: 16px; margin-bottom: 8px; }
.pipe-node p { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
@media (max-width: 920px) {
  .pipe-flow { grid-template-columns: 1fr 1fr; }
  .pipe-node:not(:last-child)::after { display: none; }
}
@media (max-width: 540px) { .pipe-flow { grid-template-columns: 1fr; } }

/* quota / rule tiles with big serif figures */
.rule-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rule-tile {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px 24px 22px;
}
.rule-tile b { display: block; font-family: var(--font-serif); font-size: 30px; font-weight: 600; line-height: 1.1; color: var(--ink); }
.rule-tile .rt-unit { font-size: 15px; font-weight: 500; color: var(--gold); margin-left: 3px; }
.rule-tile b::after { content: ""; display: block; width: 22px; height: 2px; background: var(--gold); margin-top: 12px; }
.rule-tile span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 12px; line-height: 1.65; }
@media (max-width: 900px) { .rule-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .rule-tiles { grid-template-columns: 1fr; } }

/* key-points brief at the top of legal pages */
.doc-brief {
  margin-top: 30px;
  background: var(--ever-soft); border: 1px solid #d8e2da;
  border-radius: var(--r-lg); padding: 24px 28px;
}
.doc-brief h2 {
  font-family: var(--font-sans); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ever); font-weight: 600; margin: 0 0 12px;
}
.doc-brief ul { margin: 0; padding-left: 20px; }
.doc-brief li { font-size: 14px; color: #2a3d37; line-height: 1.8; margin-bottom: 6px; }
.doc-brief li:last-child { margin-bottom: 0; }
.doc-brief p { font-size: 12.5px; color: var(--ink-3); margin: 12px 0 0; }

/* ---------- Phone-first fold overrides (keep at end of file) ----------
   These rules must win over the base declarations of .wb-kicker,
   .hero-chips, .hero-steps, .hero-row .mbx-* etc., which share the same
   specificity. Source order decides the winner, so this block stays last. */
@media (max-width: 720px) {
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 0; padding: 12px 0; }
  /* long localized labels (fr/pt) must wrap inside the half-width cell
     instead of overflowing it, so drop the nowrap from the base rule */
  .hf { padding: 0; border-left: none; flex-wrap: wrap; row-gap: 1px; }
  .hf span { white-space: normal; }

  /* Phone-first fold: the 1-2 visible mail rows baseline is judged on
     phones, so trim decorative hero text and push the figures band
     below the inbox to let the list enter the first screen. */
  .workbench { padding-top: 24px; }
  .wb-kicker, .hero-chips, .hero-steps, .wb-forward-hint { display: none; }
  .wb-intro h1 { font-size: 29px; }
  .wb-intro .wb-sub { font-size: 15px; margin-top: 10px; }
  .workbench .wrap { display: flex; flex-direction: column; }
  .hero-row { margin-bottom: 18px; }
  .hero-facts { order: 1; margin: 26px 0 0; border-bottom: none; }
  .hero-row .mbx-head { padding: 18px 22px 0; }
  .hero-row .mbx-body { padding: 12px 22px 22px; }
  .hero-row .mbx-meta { padding: 12px 22px; }
  .hero-row .mbx-actions { margin-top: 18px; }
  .hero-row .mbx-actions .btn-primary { padding: 11px 22px; font-size: 14.5px; }
}
/* Meta separator dot between sender and time in the detail head */
.head-sub .head-sep{opacity:.55}
