/* ==========================================================================
   MAILDROP design system — light premium
   Warm off-white surfaces, navy ink typography, restrained amber signal.
   All colour, spacing, radius and motion values are tokens — never inline.
   ========================================================================== */

:root {
  /* surfaces (names kept stable; values are light) */
  --ink-900: #f7f6f3;   /* recessed panels, inputs, page base */
  --ink-850: #ffffff;   /* cards */
  --ink-800: #ffffff;   /* raised cards */
  --ink-750: #f4f2ee;   /* secondary buttons */
  --ink-700: #eae7e0;   /* secondary button hover */
  --line:    rgba(19, 26, 38, 0.09);
  --line-strong: rgba(19, 26, 38, 0.15);

  /* text */
  --fg:        #131a26;
  --fg-muted:  #545e6e;
  --fg-subtle: #7c8695;

  /* accent */
  --accent:        #c98a1a;
  --accent-strong: #e2a533;
  --accent-ink:    #2a1c04;
  --accent-soft:   rgba(226, 165, 51, 0.14);
  --accent-line:   rgba(201, 138, 26, 0.30);

  /* status */
  --live:    #1c9c62;
  --danger:  #c8382f;
  --info:    #2a6fd6;

  /* shape + motion */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shell:     1160px;
  --shadow-soft: 0 1px 2px rgba(19,26,38,0.04);
  --shadow-lift: 0 24px 50px -34px rgba(19,26,38,0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --fast: 140ms var(--ease);
  --slow: 320ms var(--ease);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  background:
    radial-gradient(1100px 540px at 50% -260px, rgba(226,165,51,0.14), transparent 72%),
    #fbfaf8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 620; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1.1em; color: var(--fg-muted); }
a  { color: var(--fg); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
img { max-width: 100%; height: auto; }
code, kbd { font-family: var(--mono); font-size: 0.92em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink-750); color: var(--fg); padding: 12px 18px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
}
.brand__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 160px;
  object-fit: contain;
  margin: 0;
  padding: 0;
}
/* compact header/login variant — wordmark-only cropped asset */
.brand__logo--header {
  height: 24px;
  max-width: 135px;
}

.site-nav { margin-left: auto; display: flex; gap: 4px; }
.site-nav a {
  padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.92rem;
  color: var(--fg-muted); text-decoration: none; transition: color var(--fast), background var(--fast);
}
.site-nav a:hover { color: var(--fg); background: rgba(19,26,38,0.05); }
.site-nav a[aria-current="page"] { color: var(--fg); background: var(--accent-soft); }

.nav-toggle {
  display: none; margin-left: auto; width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--ink-800); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 16px; height: 1.5px; background: var(--fg); margin: 0 auto; position: relative;
}
.nav-toggle span::before { content: ""; position: absolute; top: -5px; }
.nav-toggle span::after  { content: ""; position: absolute; top: 5px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 2px;
    padding: 10px 16px 18px; background: var(--ink-850); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px; font-size: 1rem; }
  .brand__logo { height: 26px; max-width: 140px; }
  .brand__logo--header { height: 20px; max-width: 115px; }
}

/* tablet — 768px and below */
@media (max-width: 768px) {
  .brand__logo--header { height: 20px; max-width: 115px; }
}

/* very small mobile — 360px and below */
@media (max-width: 360px) {
  .brand__logo--header { height: 19px; max-width: 105px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--ink-750); color: var(--fg);
  font: inherit; font-size: 0.94rem; font-weight: 560; cursor: pointer; text-decoration: none;
  transition: transform var(--fast), background var(--fast), border-color var(--fast), color var(--fast);
}
.btn:hover { background: var(--ink-700); border-color: var(--line-strong); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn--primary {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: var(--accent-ink); border-color: transparent; font-weight: 640;
}
.btn--primary:hover { background: linear-gradient(180deg, #eeb24a, var(--accent)); }
.btn--ghost { background: transparent; }
.btn--quiet { border-color: transparent; background: transparent; color: var(--fg-muted); }
.btn--quiet:hover { color: var(--fg); background: rgba(19,26,38,0.05); }
.btn--danger { color: var(--danger); border-color: rgba(200,56,47,0.28); background: rgba(200,56,47,0.07); }
.btn--sm { min-height: 36px; font-size: 0.86rem; padding: 0 12px; }

/* ---------- hero + mailbox console ---------- */
.hero { padding: clamp(40px, 7vw, 76px) 0 8px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 12px; border-radius: 999px; font-size: 0.74rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-strong);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.hero__lede { font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 54ch; color: var(--fg-muted); }

.console {
  margin-top: 30px; border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #ffffff, #fdfcfa);
  box-shadow: var(--shadow-soft), var(--shadow-lift);
  overflow: hidden;
}
.console__address {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: clamp(18px, 3vw, 26px); border-bottom: 1px solid var(--line);
}
.address-field {
  flex: 1 1 320px; min-width: 0; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-lg);
  background: var(--ink-900); border: 1px solid var(--line);
}
.address-field__value {
  font-family: var(--mono); font-size: clamp(1rem, 2.6vw, 1.35rem); letter-spacing: -0.01em;
  overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.address-field__value::-webkit-scrollbar { display: none; }
.address-field.is-loading .address-field__value { color: var(--fg-subtle); }
.address-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.console__status {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding: 12px clamp(18px, 3vw, 26px); border-bottom: 1px solid var(--line);
  font-size: 0.87rem; color: var(--fg-muted); background: rgba(19,26,38,0.018);
}
.status-dot { display: inline-flex; align-items: center; gap: 8px; }
.status-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 4px rgba(74,222,128,0.14); animation: pulse 2.4s var(--ease) infinite;
}
.status-dot--idle::before { background: var(--fg-subtle); box-shadow: none; animation: none; }
.status-dot--expired::before { background: var(--danger); box-shadow: none; animation: none; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }

.countdown { font-family: var(--mono); color: var(--fg); }
.countdown--low { color: var(--danger); }
.receive-only { margin-left: auto; font-size: 0.8rem; color: var(--fg-subtle); }

/* ---------- inbox ---------- */
.inbox__head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px clamp(18px, 3vw, 26px) 10px;
}
.inbox__title { font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-subtle); margin: 0; }
.badge {
  min-width: 22px; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 620;
  background: var(--accent-soft); color: var(--accent-strong); border: 1px solid var(--accent-line);
}
.inbox__spinner { margin-left: auto; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent); opacity: 0; transition: opacity var(--fast); }
.inbox__spinner.is-active { opacity: 1; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.message-list { list-style: none; margin: 0; padding: 0 10px 10px; }
.message-item { border-radius: var(--radius-lg); }
.message-item + .message-item { margin-top: 2px; }
.message-item__btn {
  width: 100%; display: grid; grid-template-columns: 10px 1fr auto; gap: 14px; align-items: start;
  padding: 16px; border: 1px solid transparent; border-radius: var(--radius-lg);
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: background var(--fast), border-color var(--fast);
}
.message-item__btn:hover { background: rgba(19,26,38,0.04); border-color: var(--line); }
.message-item__dot { margin-top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.message-item.is-read .message-item__dot { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.message-item__from { font-weight: 600; }
.message-item__subject { color: var(--fg-muted); }
.message-item.is-read .message-item__from { font-weight: 500; color: var(--fg-muted); }
.message-item__preview { display: block; font-size: 0.87rem; color: var(--fg-subtle); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-item__time { font-size: 0.8rem; color: var(--fg-subtle); white-space: nowrap; }
.message-item.is-new { animation: slide-in var(--slow) both; }
@keyframes slide-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.empty-state { padding: clamp(34px, 6vw, 60px) 24px; text-align: center; }
.empty-state__orb {
  width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%;
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  display: grid; place-items: center; position: relative;
}
.empty-state__orb::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid var(--accent-line); opacity: 0.45; animation: halo 2.8s var(--ease) infinite;
}
@keyframes halo { 0% { transform: scale(0.85); opacity: 0.5; } 100% { transform: scale(1.25); opacity: 0; } }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--fg-subtle); max-width: 42ch; margin: 0 auto; }

.skeleton-row { display: grid; gap: 8px; padding: 16px; }
.skeleton {
  height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, var(--ink-750), var(--ink-700), var(--ink-750));
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
.skeleton--short { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- message viewer ---------- */
.viewer { border-top: 1px solid var(--line); }
.viewer__bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px clamp(14px, 3vw, 22px); border-bottom: 1px solid var(--line); }
.viewer__bar .spacer { margin-left: auto; }
.viewer__head { padding: clamp(18px, 3vw, 26px); display: grid; gap: 6px; border-bottom: 1px solid var(--line); }
.viewer__subject { font-size: 1.2rem; font-weight: 620; }
.viewer__meta { font-size: 0.88rem; color: var(--fg-muted); }
.viewer__meta strong { color: var(--fg); font-weight: 560; }
.viewer__body { padding: clamp(18px, 3vw, 26px); }
.viewer__text { font-family: var(--mono); font-size: 0.9rem; white-space: pre-wrap; word-break: break-word; color: var(--fg-muted); margin: 0; }
.viewer iframe { width: 100%; min-height: 320px; border: 0; border-radius: var(--radius); background: #ffffff; }

.otp-panel {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 clamp(18px,3vw,26px) 4px;
  padding: 14px 16px; border-radius: var(--radius-lg);
  border: 1px solid var(--accent-line); background: var(--accent-soft);
}
.otp-panel__label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-strong); }
.otp-panel__code { font-family: var(--mono); font-size: 1.5rem; letter-spacing: 0.18em; }

.links-panel { margin: 18px clamp(18px,3vw,26px); padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ink-900); }
.links-panel h4 { margin: 0 0 10px; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-subtle); }
.links-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.links-panel li { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 0.9rem; }
.links-panel .host { font-family: var(--mono); font-size: 0.82rem; color: var(--fg-subtle); }
.links-panel .host--external { color: var(--info); }

.attachments { margin: 0 clamp(18px,3vw,26px) 22px; display: grid; gap: 8px; }
.attachment {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-900);
}
.attachment__meta { font-size: 0.8rem; color: var(--fg-subtle); }
.attachment .btn { margin-left: auto; }

.notice {
  margin: 0 clamp(18px,3vw,26px) 18px; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(42,111,214,0.06); color: var(--fg-muted); font-size: 0.87rem;
}

/* ---------- toast ---------- */
.toast-stack { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 60; width: min(92vw, 380px); }
.toast {
  padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: #131a26; color: #fbfaf8; font-size: 0.9rem; box-shadow: 0 18px 40px -22px rgba(19,26,38,0.5);
  animation: toast-in 220ms var(--ease) both;
}
.toast--error { border-color: rgba(200,56,47,0.35); color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- content pages ---------- */
.page-head { padding: clamp(38px, 6vw, 68px) 0 8px; }
.page-head h1 { max-width: 20ch; }
.page-head .lede { font-size: 1.08rem; max-width: 62ch; }

.prose { max-width: 74ch; padding-bottom: 20px; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { color: var(--fg-muted); padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.94rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--fg-muted); }
.prose th { color: var(--fg); font-weight: 600; }
.prose blockquote { margin: 1.5em 0; padding: 14px 18px; border-left: 2px solid var(--accent-line); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p:last-child { margin-bottom: 0; }

.layout-with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 46px; align-items: start; padding-bottom: 40px; }
@media (max-width: 900px) { .layout-with-aside { grid-template-columns: 1fr; gap: 26px; } }
.toc { position: sticky; top: 88px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; background: var(--ink-850); }
.toc h2 { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-subtle); margin-bottom: 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toc a { font-size: 0.9rem; color: var(--fg-muted); text-decoration: none; }
.toc a:hover { color: var(--accent-strong); }

.breadcrumbs { padding: 18px 0 0; font-size: 0.84rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; color: var(--fg-subtle); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--fg-subtle); }
.breadcrumbs a { color: var(--fg-muted); text-decoration: none; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding-bottom: 40px; }
.card {
  display: block; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--ink-850); text-decoration: none;
  transition: border-color var(--fast), transform var(--fast), background var(--fast);
}
.card:hover { border-color: var(--accent-line); background: var(--ink-800); transform: translateY(-2px); }
.card h3 { margin-bottom: 6px; font-size: 1.02rem; }
.card p { margin: 0; font-size: 0.9rem; color: var(--fg-subtle); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 44px 0; }
.feature { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ink-850); }
.feature h3 { font-size: 1rem; }
.feature p { margin: 0; font-size: 0.92rem; }

.steps { counter-reset: step; display: grid; gap: 14px; margin: 30px 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; padding: 18px 18px 18px 60px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ink-850); color: var(--fg-muted); }
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 18px;
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-strong); border: 1px solid var(--accent-line);
  font-size: 0.82rem; font-weight: 640;
}
.steps li strong { color: var(--fg); display: block; margin-bottom: 2px; }

.faq-list { display: grid; gap: 8px; padding-bottom: 30px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ink-850); overflow: hidden; }
.faq-item summary { padding: 16px 18px; cursor: pointer; font-weight: 560; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--fg-subtle); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-item__body { padding: 0 18px 16px; color: var(--fg-muted); }

.cta { margin: 50px 0 60px; }
.cta__inner {
  padding: clamp(28px, 5vw, 46px); border-radius: var(--radius-xl); text-align: center;
  border: 1px solid var(--accent-line);
  background: radial-gradient(700px 240px at 50% -60px, rgba(226,165,51,0.18), transparent 70%), var(--ink-850);
}
.cta h2 { margin-bottom: 8px; }
.cta p { max-width: 52ch; margin: 0 auto 20px; }

.ad-slot { margin: 34px 0; padding: 10px; border: 1px dashed var(--line); border-radius: var(--radius-lg); text-align: center; }
.ad-slot__label { display: block; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-subtle); margin-bottom: 6px; }

/* ---------- tools ---------- */
.tool-panel { display: grid; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--ink-850); margin-bottom: 30px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.82rem; color: var(--fg-muted); }
.input, textarea.input, select.input {
  width: 100%; min-height: 44px; padding: 11px 14px; font: inherit; color: var(--fg);
  background: var(--ink-900); border: 1px solid var(--line); border-radius: var(--radius);
}
textarea.input { min-height: 130px; font-family: var(--mono); font-size: 0.9rem; resize: vertical; }
.tool-output { font-family: var(--mono); font-size: 0.9rem; word-break: break-all; white-space: pre-wrap; padding: 14px; background: var(--ink-900); border: 1px solid var(--line); border-radius: var(--radius); min-height: 52px; }
.inline-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; background: var(--ink-850); }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 40px; padding-top: 44px; padding-bottom: 30px; }
.site-footer__brand p { font-size: 0.9rem; max-width: 34ch; margin-top: 12px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.site-footer h2 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-subtle); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { font-size: 0.92rem; color: var(--fg-muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }
.site-footer__legal { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 26px; }
.site-footer__legal p { font-size: 0.84rem; color: var(--fg-subtle); margin: 0; }
@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 30px; }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ---------- admin ---------- */
.admin-body { background: var(--ink-900); }
.admin-shell { display: grid; grid-template-columns: 220px minmax(0,1fr); min-height: 100vh; }
@media (max-width: 800px) { .admin-shell { grid-template-columns: 1fr; } }
.admin-side { border-right: 1px solid var(--line); padding: 20px 14px; background: var(--ink-850); }
.admin-side nav { display: grid; gap: 4px; margin-top: 22px; }
.admin-side a { padding: 9px 12px; border-radius: var(--radius-sm); color: var(--fg-muted); text-decoration: none; font-size: 0.92rem; }
.admin-side a:hover, .admin-side a[aria-current="page"] { background: rgba(19,26,38,0.05); color: var(--fg); }
.admin-main { padding: 26px clamp(16px, 3vw, 34px) 60px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ink-850); }
.stat__label { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-subtle); }
.stat__value { font-size: 1.7rem; font-weight: 640; font-family: var(--mono); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th, table.data td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { color: var(--fg-subtle); font-weight: 560; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
table.data td { color: var(--fg-muted); }
.login-card { max-width: 380px; margin: 12vh auto; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--ink-850); }
.alert { padding: 12px 14px; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 14px; }
.alert--error { background: rgba(200,56,47,0.09); color: var(--danger); border: 1px solid rgba(200,56,47,0.28); }
.alert--ok { background: rgba(28,156,98,0.10); color: var(--live); border: 1px solid rgba(28,156,98,0.28); }

/* ---------- utilities ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.text-muted { color: var(--fg-muted); }
.mono { font-family: var(--mono); }
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- refinement layer: header CTA, mailbox card, inbox chrome ---------- */
.header-cta { margin-left: 14px; white-space: nowrap; }
@media (max-width: 820px) {
  .header-cta { margin-left: auto; margin-right: 10px; }
}
@media (max-width: 420px) {
  .header-cta { display: none; }
}

.address-block { flex: 1 1 320px; min-width: 0; display: grid; gap: 8px; }
.address-label {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-subtle);
}
.btn--copy { min-height: 52px; padding: 0 26px; align-self: end; }
@media (max-width: 560px) {
  .console__address { flex-direction: column; align-items: stretch; }
  .btn--copy { width: 100%; }
  .address-field__value { font-size: 1rem; }
}

.console__status { gap: 14px 18px; }
.console__expiry { color: var(--fg-muted); }
.console__actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) {
  .console__actions { margin-left: 0; width: 100%; }
  .console__actions .btn { flex: 1 1 auto; }
}

.inbox__title { font-size: 0.78rem; }
.inbox__refresh { margin-left: auto; }
.inbox__spinner { margin-left: 4px; }

.listening {
  display: flex; align-items: center; gap: 8px; margin: 0;
  padding: 12px clamp(18px, 3vw, 26px) 18px;
  font-size: 0.82rem; color: var(--fg-subtle);
}
.listening__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 4px rgba(28,156,98,0.14); animation: pulse 2.4s var(--ease) infinite;
}

.trust-strip {
  display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none;
  margin: 18px 0 0; padding: 0;
}
.trust-strip li {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(19,26,38,0.025); color: var(--fg-muted); font-size: 0.82rem;
}

.section { padding: clamp(38px, 6vw, 64px) 0 0; }
.prose { max-width: 68ch; }
.prose p { color: var(--fg-muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- light-theme polish ---------- */
.site-footer { background: #ffffff; }
.site-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .site-footer__cols { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.console { box-shadow: 0 1px 2px rgba(19,26,38,0.04), 0 30px 60px -40px rgba(19,26,38,0.30); }
.address-field { background: #fbfaf8; }
.toast--error { background: #2a1113; color: #ffd9d5; }
.card, .feature, .steps li, .faq-item, .stat { box-shadow: var(--shadow-soft); }
.card:hover { box-shadow: 0 18px 40px -30px rgba(19,26,38,0.32); }
.viewer__body iframe { width: 100%; min-height: 340px; border: 0; background: #fff; border-radius: var(--radius); }
.status-dot--live { color: var(--live); }

/* ------------------------------------------------ mailbox action layer */
.console__primary-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn--outline {
  border: 1px solid var(--accent-strong);
  background: #fff;
  color: var(--accent-strong);
  font-weight: 600;
}
.btn--outline:hover { background: rgba(217, 138, 12, 0.08); }
.btn--outline[disabled] { opacity: .55; }
.console__actions .btn svg { opacity: .75; }
.btn.is-busy svg { animation: md-spin .9s linear infinite; }
@keyframes md-spin { to { transform: rotate(360deg); } }
.empty-state [data-regenerate] { margin-top: 14px; }
@media (max-width: 640px) {
  .console__primary-actions { width: 100%; }
  .console__primary-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ------------------------------------------------ mobile console fixes */
@media (max-width: 560px) {
  /* column flex made flex-basis a height, stretching the address block */
  .address-block { flex: 0 0 auto; }
  .console__primary-actions { width: 100%; }
  .console__primary-actions .btn { flex: 1 1 100%; }
}
.message-item__btn > span, .message-item__main { min-width: 0; }
.message-item__line {
  display: block; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
