:root {
  --paper: #fff;
  --ink: #171a21;
  --muted: #626b78;
  --faint: #8b94a1;
  --line: #e6eaf0;
  --wash: #f4f7fa;
  --sidebar: #edf2f6;
  --brand: #3549db;
  --brand-hover: #2639c4;
  --brand-soft: #edf0ff;
  --accent: #d9633d;
  --accent-soft: #fff2e9;
  --wrap: 1140px;
  --header-h: 75px;
  --h1: 52px;
  --h2: 29px;
  --h3: 18px;
  --body: 16px;
  --lead: 18px;
  --small: 13px;
  --tiny: 11px;
  --radius-control: 4px;
  --radius-card: 10px;
  --radius-window: 10px;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 64px;
  --s7: 96px;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; font-size: var(--body); line-height: 1.7; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.site-header { height: var(--header-h); background: var(--paper); position: relative; z-index: 30; }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--s5); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: var(--h3); font-weight: 700; letter-spacing: -.045em; white-space: nowrap; line-height: 1; }
.brand img { width: 29px; height: 29px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: var(--s5); margin-left: auto; }
.site-nav a, .header-actions a { font-size: var(--small); font-weight: 500; white-space: nowrap; }
.site-nav a:hover, .header-actions a:hover, .footer-links a:hover { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: var(--s3); }
.header-login { border: 1px solid var(--line); border-radius: var(--radius-control); padding: 7px 14px; }
.lang-wrap { position: relative; }
.lang-trigger { display: inline-flex; align-items: center; gap: 9px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-control); min-height: 36px; padding: 0 12px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.chevron { display: inline-block; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); flex: none; }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 150px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(28,40,70,.1); border-radius: var(--radius-card); padding: 6px; z-index: 50; }
.lang-menu a { display: block; padding: 7px 10px; font-size: 13px; border-radius: var(--radius-control); }
.lang-menu a:hover { background: var(--brand-soft); color: var(--brand); }
.menu-button, .nav-drawer { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--radius-control); font-size: 15px; font-weight: 500; line-height: 1.2; border: 1px solid transparent; transition: background .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--paper); }
.btn-primary:hover { background: var(--brand-hover); color: var(--paper); }
.btn-outline { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--wash); color: var(--ink); }
.btn-small { min-height: 34px; padding: 0 12px; font-size: var(--small); }
.hero { text-align: center; padding-top: 76px; }
.hero h1 { max-width: 900px; margin: 0 auto; font-size: var(--h1); font-weight: 500; line-height: 1.4; letter-spacing: -.025em; font-synthesis: none; }
.hero-lead { max-width: 780px; margin: 20px auto 0; font-size: var(--lead); font-weight: 400; line-height: 1.8; color: var(--muted); }
.hero-actions { display: inline-flex; gap: 10px; margin: 30px auto 0; }
.stage-wrap { margin: 42px auto 0; }
.mail-stage { display: flex; flex-direction: column; height: 670px; min-height: 600px; overflow: hidden; text-align: left; border: 1px solid var(--line); border-radius: var(--radius-window); background: var(--paper); box-shadow: 0 18px 36px rgba(39,53,71,.10), 0 3px 8px rgba(39,53,71,.04); }
.inbox-grid { display: grid; grid-template-columns: minmax(270px,30%) minmax(0,1fr); flex: 1; height: 670px; min-height: 0; }
.mail-stage .inbox-grid { min-height: 640px; }
.mail-stage .mail-side { min-width: 0; }
.mail-stage .mail-reader { min-width: 0; min-height: 0; overflow-y: auto; }
.mail-stage .reader-inner { min-height: 0; }
.mail-reader { display: flex; flex-direction: column; overflow: auto; min-height: 0; }
.mail-reader .reader-inner { width: 100%; flex: 1; overflow-y: auto; }
.mail-side { background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.mailbox-head { padding: 24px 20px 18px; border-bottom: 1px solid #dfe5eb; }
.mailbox-topline { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.mailbox-label { display: inline-flex; align-items: center; gap: 8px; font-size: var(--small); font-weight: 600; }
.mailbox-label:before { content: ''; width: 8px; height: 8px; background: var(--brand); border-radius: 50%; }
.mailbox-countdown { font-size: var(--small); color: var(--muted); font-variant-numeric: tabular-nums; }
.address-row { display: flex; align-items: center; min-width: 0; gap: 7px; }
.address { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 500 15px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; border: 1px solid #d7dfe8; border-radius: var(--radius-control); background: var(--paper); color: var(--ink); }
.icon-button:hover { background: var(--brand-soft); color: var(--brand); }
.icon-button svg { width: 16px; height: 16px; }
.mailbox-controls { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.mailbox-controls button { font-size: var(--small); background: var(--paper); color: var(--ink); border: 1px solid #d7dfe8; border-radius: var(--radius-control); padding: 5px 9px; line-height: 1.4; max-width: 100%; white-space: nowrap; }
.mailbox-controls button:hover { background: var(--brand-soft); color: var(--brand); }
@media (max-width: 640px) {
  .hero { padding-top: 36px; }
  .hero h1 { font-size: 34px; }
  .hero-lead { margin-top: 12px; font-size: 15px; }
  .stage-wrap { margin-top: 24px; }
  .mailbox-head { padding: 12px 14px; }
  .mailbox-topline { margin-bottom: 8px; }
  .mailbox-controls { margin-top: 8px; }
  .metrics { margin-top: 64px; }
}
.list-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 8px; font-weight: 600; font-size: var(--small); }
.mail-list { overflow: auto; flex: 1; min-height: 0; padding: 0 8px; }
.mail-row { display: block; width: 100%; text-align: left; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--ink); padding: 12px; min-height: 76px; }
.mail-row:hover { background: #e5ebf2; color: var(--ink); }
.mail-row.is-active { background: var(--paper); color: var(--ink); }
.mail-row-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sender-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: var(--radius-control); font-weight: 700; font-size: 13px; background: var(--accent-soft); color: var(--accent); }
.sender-icon.reddit { background: var(--accent-soft); color: var(--accent); }
.mail-sender { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-time { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.mail-subject { font-size: var(--small); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 4px 0 0 36px; }
.unread-dot { width: 6px; height: 6px; background: var(--brand); border-radius: 50%; flex: none; }
.mail-reader { min-width: 0; overflow: auto; position: relative; background: var(--paper); color: var(--ink); }
.reader-toolbar { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; border-bottom: 1px solid var(--line); font-size: var(--small); color: var(--muted); }
.reader-toolbar-actions { display: flex; gap: 8px; }
.reader-toolbar button { border: 0; background: transparent; color: var(--muted); font-size: var(--small); padding: 7px; }
.reader-toolbar button:hover { color: var(--brand); }
.reader-back { display: none; }
@media (max-width: 640px) { .mobile-reader .reader-back { display: inline-block; }
 .address { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; font-size: 13px; }
 }
.reader-inner { max-width: 680px; margin: auto; padding: 30px 42px 46px; }
.reader-subject { margin: 0 0 20px; font-size: var(--h3); font-weight: 600; line-height: 1.35; }
.reader-byline { display: flex; align-items: center; gap: 10px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.reader-byline .sender-icon { width: 28px; height: 28px; font-size: 13px; }
 
.reader-byline .demo-pill { margin-left: 16px; }
.reader-byline strong { display: block; font-size: 13px; line-height: 1.4; }
.reader-byline small { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; }
.reader-date { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.reader-body { padding-top: 24px; font-size: var(--small); line-height: 1.8; overflow-wrap: anywhere; }
.reader-body p { margin: 0 0 16px; }
.reader-body .letterhead { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: var(--h3); margin: 0 0 26px; }
.reader-body .letterhead svg { width: 28px; height: 28px; }
.reader-body .code-block { display: inline-block; background: var(--wash); color: var(--ink); padding: 12px 24px; border-radius: var(--radius-control); font: 600 30px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; margin: 5px 0 22px; }
.reader-body .demo-disclaimer { margin-top: 30px; font-size: var(--small); color: var(--muted); }
.demo-pill { display: inline-flex; align-items: center; margin-bottom: 0; font-size: 11px; font-weight: 500; border-radius: 50%; padding: 2px 8px; background: var(--brand-soft); color: var(--brand); }
.is-real .demo-pill { display: none; }
.reader-empty, .mail-empty { min-height: 160px; padding: 32px; color: var(--muted); font-size: var(--small); background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius-control); margin: 16px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: var(--radius-control); font-size: 13px; }
.metrics { display: grid; grid-template-columns: repeat(3,1fr); max-width: 780px; margin: 90px auto 120px; text-align: center; }
.metrics div + div { border-left: 1px solid var(--line); }
.metrics strong { display: block; font-size: var(--h2); line-height: 1.2; font-weight: 600; }
.metrics span { display: block; color: var(--muted); font-size: 13px; margin-top: 8px; }
.section-heading { text-align: center; max-width: 700px; margin: 0 auto 100px; }
h2 { font-size: var(--h2); font-weight: 500; line-height: 1.4; letter-spacing: -.02em; margin: 0 0 20px; }
h3 { font-size: var(--h3); line-height: 1.4; margin: 0 0 12px; font-weight: 600; }
.section-intro { color: var(--muted); font-size: var(--lead); font-weight: 400; line-height: 1.8; margin: 20px 0 0; }
.story-section { padding: 72px 0 108px; }
.story-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: 96px; margin-bottom: 160px; }
.story-row:last-child { margin-bottom: 0; }
.story-row.reverse .story-copy { order: 2; }
.story-copy { max-width: 450px; }
.story-copy p { color: var(--muted); font-size: var(--body); font-weight: 400; line-height: 1.9; margin: 0 0 24px; }
.story-copy .eyebrow { margin: 0 0 20px; }
.eyebrow { display: block; color: var(--brand); font-size: var(--small); font-weight: 600; letter-spacing: .04em; margin: 0 0 20px; }
.story-visual { background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 32px; min-height: 320px; display: flex; flex-direction: column; justify-content: center; }
.story-visual .visual-caption { color: var(--muted); font-size: var(--small); margin-top: 24px; }
.visual-mail { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-control); padding: 16px; box-shadow: 0 8px 20px rgba(39,53,71,.05); }
.visual-mail + .visual-mail { margin: 10px 0 0 32px; }
.visual-mail strong { font-size: var(--small); }
.visual-mail small { color: var(--muted); float: right; font-size: 11px; }
.visual-mail p { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.visual-code { align-self: flex-start; background: var(--accent-soft); color: var(--accent); font: 600 26px/1.4 ui-monospace, monospace; padding: 12px 20px; border-radius: var(--radius-control); margin: 12px 0 0 20px; }
.feature-band { background: var(--wash); padding: 110px 0 120px; }
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.feature-card { background: var(--paper); color: var(--ink); border-radius: var(--radius-card); padding: 28px; min-height: 220px; }
.feature-card svg { width: 28px; height: 28px; color: var(--brand); margin-bottom: 28px; }
.feature-card p { font-size: var(--small); color: var(--muted); font-weight: 400; margin: 0; line-height: 1.7; }
.guide-band { padding: 120px 0; }
.guide-panel { background: var(--wash); border-radius: var(--radius-card); padding: 56px 64px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.guide-panel p { color: var(--muted); margin: 0; max-width: 590px; }
.site-footer { padding: 80px 0 32px; background: var(--paper); }
.footer-layout { display: grid; grid-template-columns: 1.4fr repeat(3, .7fr); gap: 48px; }
.footer-brand p { font-size: 13px; color: var(--muted); max-width: 300px; margin: 20px 0; }
.footer-brand .support-link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--paper); color: var(--brand); font-size: var(--small); }
.footer-links strong { display: block; font-size: 13px; margin-bottom: 16px; }
.footer-links a { display: block; font-size: 13px; color: var(--muted); margin: 0 0 10px; overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 64px; padding-top: 22px; color: var(--muted); font-size: var(--small); }
@media (max-width: 800px) {
  .site-nav, .header-actions .header-login { display: none; }
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; gap: 12px; }
  .menu-button { display: inline-flex; border: 0; background: var(--paper); color: var(--ink); font-size: var(--h3); padding: 4px; }
  .nav-drawer:not([hidden]) { display: flex; flex-direction: column; position: absolute; left: 24px; right: auto; top: 68px; width: min(270px,calc(100vw - 48px)); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); box-shadow: 0 12px 30px rgba(28,40,70,.12); padding: 12px; z-index: 60; text-align: left; }
  .nav-drawer a { padding: 9px 12px; font-size: var(--small); }
  .hero { padding-top: 64px; }
  .hero h1 { font-size: 42px; line-height: 1.28; }
  .hero-lead { font-size: 17px; }
  .story-row { gap: 32px; }
  .footer-layout { gap: 24px; }
}
@media (max-width: 640px) {
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
  .site-header { height: 64px; }
  .brand { font-size: 18px; }
  .brand img { width: 26px; height: 26px; }
  .lang-trigger { width: 36px; height: 36px; min-height: 36px; justify-content: center; padding: 0; }
  .lang-trigger .lang-name { display: none; }
  .hero { padding-top: 60px; }
  .hero h1 { font-size: 37px; line-height: 1.35; }
  .hero-lead { font-size: 16px; line-height: 1.7; margin-top: 20px; }
  .hero-actions { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 24px; gap: 8px; }
  .hero-actions .btn { padding: 0 13px; font-size: 13px; min-height: 42px; }
  .stage-wrap { margin-top: 36px; }
  .mail-stage { display: block; height: auto; min-height: 0; overflow: visible; border-radius: var(--radius-card); }
  .inbox-grid { display: block; min-height: 0; height: auto; }
  .mail-stage .mail-side { width: 100%; }
  .mail-stage .mail-reader { display: none; }
  .mail-side { border-right: 0; border-radius: var(--radius-card) var(--radius-card) 0 0; }
  .mailbox-head { padding: 18px 14px; }
  .mail-list { padding: 0 6px 8px; max-height: 190px; }
  .list-head { padding: 12px 14px 4px; }
  .mail-row { min-height: 70px; padding: 8px; }
  .mail-reader { display: none; }
  .mail-stage .mail-reader.mobile-reader { display: block; position: fixed; z-index: 90; top: 64px; left: 0; right: 0; bottom: 0; height: calc(100dvh - 64px); overflow: auto; }
  .reader-toolbar { position: sticky; top: 0; z-index: 2; background: var(--paper); padding: 0 16px; }
  .reader-inner { padding: 24px 20px 44px; }
  .reader-subject { font-size: var(--h3); }
  body.reader-open { overflow: hidden; }
  .metrics { margin: 76px auto 88px; }
  .metrics strong { font-size: 19px; }
  .metrics span { font-size: 11px; }
  .story-section { padding: 30px 0 70px; }
  .section-heading { margin-bottom: 64px; }
  .story-row, .story-row.reverse { display: flex; flex-direction: column; align-items: stretch; margin-bottom: 96px; gap: 32px; }
  .story-row.reverse .story-copy { order: 0; }
  .story-visual { min-height: 260px; padding: 20px; }
  .feature-band { padding: 80px 0; }
  .feature-grid { grid-template-columns: minmax(0,1fr); }
  .feature-card { min-height: 0; padding: 24px; }
  .feature-card svg { margin-bottom: 16px; }
  .guide-band { padding: 80px 0; }
  .guide-panel { display: block; padding: 32px 24px; }
  .guide-panel .btn { margin-top: 24px; }
  .footer-layout { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px 20px; }
  .footer-brand { grid-column: span 2; }
  .site-footer { padding-top: 64px; }
}
.auth-layout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 96px; padding-top: 96px; padding-bottom: 144px; align-items: center; min-height: 780px; }
.auth-story h1 { font-size: 44px; font-weight: 500; line-height: 1.28; letter-spacing: -.025em; margin: 0 0 24px; font-synthesis: none; }
.auth-story > p { color: var(--muted); max-width: 440px; margin: 0 0 48px; font-weight: 400; }
.auth-note { display: flex; align-items: center; gap: 20px; padding: 14px 0; color: var(--muted); font-size: var(--small); }
.auth-note-number { font: 500 13px ui-monospace,monospace; color: var(--brand); }
.auth-panel { min-width: 0; }
.auth-card { padding: 48px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); box-shadow: 0 18px 36px rgba(39,53,71,.05); }
.auth-card > p { margin: 0 0 32px; color: var(--muted); font-size: var(--small); }
.auth-card form { display: grid; gap: 12px; }
.auth-card label, .desk-section label { display: block; font-size: 13px; font-weight: 500; }
.auth-card input, .desk-section input { min-width: 0; width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--paper); color: var(--ink); font-size: var(--small); }
.auth-card input:focus, .desk-section input:focus { outline: none; border-color: var(--ink); }
.auth-card form .btn { margin-top: 12px; }
.auth-card .sent-notice { margin: 48px 0 20px; font-size: var(--small); color: var(--muted); }
.auth-secondary { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.quiet-button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; }
.quiet-button:hover { background: var(--wash); color: var(--ink); }
.dialog-backdrop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(23,26,33,.42); padding: 24px; }
.dialog-card { width: min(400px,100%); padding: 32px; background: var(--paper); color: var(--ink); border-radius: var(--radius-card); box-shadow: 0 18px 36px rgba(39,53,71,.12); }
.dialog-card p { margin: 0 0 24px; }
.dialog-card button + button { margin-left: 8px; }
.desk-main { padding-top: 80px; padding-bottom: 120px; }
.desk-intro { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 64px; }
.desk-intro h1 { font-size: 44px; font-weight: 500; line-height: 1.28; margin: 0 0 16px; }
.desk-intro p { margin: 0; color: var(--muted); max-width: 640px; }
.session-chip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.session-chip span { color: var(--muted); overflow-wrap: anywhere; }
.desk-section { padding: 48px 0; }
.desk-section + .desk-section { margin-top: 64px; }
.desk-section h2 { margin-bottom: 12px; }
.desk-section > p { max-width: 660px; margin: 0 0 32px; color: var(--muted); }
.alias-composer { display: flex; align-items: stretch; gap: 8px; margin: 0 0 32px; max-width: 850px; }
.alias-composer input { width: auto; flex: 1; border-radius: var(--radius-control); }
.alias-composer:focus-within [data-alias-prefix], .alias-composer:focus-within .alias-suffix { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.alias-composer [data-alias-prefix]:focus { outline: none; box-shadow: none; border-color: var(--brand); }
.alias-suffix { display: inline-flex; align-items: center; padding: 0 12px; background: var(--wash); color: var(--ink); font: 13px ui-monospace,monospace; border-radius: var(--radius-control); }
.alias-composer .btn, .alias-composer .quiet-button { min-height: 44px; font-size: var(--small); }
.alias-list { display: grid; gap: 8px; }
.alias-row { display: flex; align-items: center; gap: 20px; padding: 16px 20px; background: var(--wash); color: var(--ink); border-radius: var(--radius-card); }
.alias-address { font: 500 14px ui-monospace,monospace; overflow-wrap: anywhere; min-width: 0; }
.state-pill { display: inline-flex; align-items: center; width: max-content; padding: 4px 10px; border-radius: 50px; background: var(--brand-soft); color: var(--brand); font-size: var(--small); white-space: nowrap; }
.alias-row .state-pill.is-active { background: var(--brand-soft); color: var(--brand); }
.alias-row .state-pill.is-paused { background: var(--accent-soft); color: var(--accent); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.archive-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.archive-tools { display: flex; align-items: center; gap: 8px; }
.filter-wrap { position: relative; }
.filter-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 4; min-width: 150px; padding: 6px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: 0 12px 32px rgba(39,53,71,.1); }
.filter-menu button { display: block; width: 100%; padding: 8px; border: 0; text-align: left; background: var(--paper); color: var(--ink); font-size: 13px; }
.filter-menu button:hover { background: var(--wash); color: var(--ink); }
.archive-list { display: grid; gap: 8px; }
.archive-row { width: 100%; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); color: var(--ink); text-align: left; }
.archive-row:hover { background: var(--wash); color: var(--ink); }
.archive-row strong, .archive-row span { display: block; }
.archive-row span { margin-top: 8px; font-size: 13px; color: var(--muted); }
.desk-empty { padding: 32px; border-radius: var(--radius-card); background: var(--wash); color: var(--muted); font-size: var(--small); }
.desk-empty strong { display: block; color: var(--ink); margin-bottom: 8px; }
.archive-detail { margin-top: 24px; padding: 32px; background: var(--wash); color: var(--ink); border-radius: var(--radius-card); }
.archive-detail-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.archive-detail-head h3 { margin: 0; }
.archive-detail-meta { margin: 16px 0 24px; display: flex; gap: 12px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.archive-body { padding: 24px; background: var(--paper); color: var(--ink); border-radius: var(--radius-control); }
.archive-body iframe { width: 100%; min-height: 320px; border: 0; }
.archive-detail-actions { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.twofa-ribbon { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; background: var(--wash); color: var(--ink); border-radius: var(--radius-card); }
.twofa-ribbon p { margin: 8px 0 0; color: var(--muted); font-size: var(--small); }
.twofa-howto { margin: 20px 0 0; padding: 20px 24px 20px 48px; background: var(--wash); color: var(--ink); border-radius: var(--radius-card); font-size: var(--small); }
.twofa-howto li + li { margin-top: 8px; }
.twofa-setup { margin-top: 24px; padding: 32px; background: var(--wash); color: var(--ink); border-radius: var(--radius-card); }
.twofa-setup-grid { display: grid; grid-template-columns: 184px minmax(0, 1fr); align-items: stretch; gap: 32px; }
.twofa-setup img { width: 184px; height: 184px; padding: 12px; object-fit: contain; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-card); }
.twofa-setup-grid > div { display: flex; flex-direction: column; align-items: stretch; gap: 16px; min-width: 0; }
.twofa-setup h3,
.twofa-setup label,
.twofa-setup input,
.twofa-setup .twofa-actions { align-self: flex-start; }
.twofa-setup h3 { margin: 0; }
.twofa-setup code { display: block; margin: 0; padding: 10px 12px; color: var(--ink); overflow-wrap: anywhere; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-control); }
.twofa-setup label { display: block; margin: 0; color: var(--muted); font-size: var(--small); }
.twofa-setup input { width: min(100%, 220px); max-width: 240px; margin: 0; }
.twofa-setup .twofa-actions { margin: 0; }
.twofa-setup > .twofa-howto { margin: 0 0 24px; padding: 0 0 0 22px; background: transparent; }
.twofa-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 0; }
.twofa-actions.row-actions { margin-top: 24px; margin-left: 0; }
.twofa-actions.row-actions [data-2fa-disable] { margin-top: 0; }
.twofa-actions.row-actions { align-items: center; }
@media (max-width: 960px) {
  .auth-layout { grid-template-columns: minmax(0,1fr); gap: 48px; padding-top: 64px; }
  .auth-story, .auth-panel { max-width: 640px; width: 100%; margin-inline: auto; }
}
@media (max-width: 640px) {
  .auth-layout { padding-top: 48px; padding-bottom: 80px; }
  .auth-story h1, .desk-intro h1 { font-size: 32px; }
  .auth-card { padding: 28px 24px; }
  .desk-main { padding-top: 48px; }
  .desk-intro { display: block; }
  .session-chip { margin-top: 24px; }
  .alias-composer { flex-direction: column; }
  .alias-composer input { flex: auto; }
  .alias-suffix { min-height: 40px; }
  .alias-row { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .alias-address, .row-actions { grid-column: 1 / -1; }
  .row-actions { margin-left: 0; }
  .archive-header { align-items: start; flex-direction: column; }
  .twofa-ribbon { align-items: start; flex-direction: column; }
  .twofa-setup-grid { grid-template-columns: minmax(0,1fr); }
  .secret-row { flex-direction: column; align-items: stretch; }
  .twofa-setup .secret-row .quiet-button { align-self: flex-start; }
}
.site-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); border-radius: var(--radius-control); padding: 6px 9px; }
.hero h1, .section-heading h2, .story-copy h2 { text-wrap: balance; }
.toast { width: max-content; max-width: min(430px,calc(100% - 32px)); text-align: center; overflow-wrap: anywhere; }
.archive-detail { min-width: 0; max-width: 100%; overflow: hidden; }
.archive-detail iframe { max-width: 100%; }
.filter-menu [role="option"] { display: flex; align-items: center; }
[data-filter-trigger] { display: inline-flex; align-items: center; gap: 9px; }
.alias-suffix { border-radius: 0 var(--radius-control) var(--radius-control) 0; }
[data-alias-prefix] { padding-left: 16px !important; }
.mail-reader:not(.mobile-reader) [data-reader-close] { display: none; }
.mail-reader { min-height: 0; overflow-y: auto; }
.chevron { transform: rotate(45deg); }
.auth-card h2 { font-size: 22px; }
.twofa-ribbon > [data-twofa-start] { white-space: nowrap; flex: none; align-self: flex-start; min-height: 44px; background: var(--brand); color: var(--paper); border-color: var(--brand); }
.twofa-ribbon > [data-twofa-start]:hover { background: var(--brand-hover); color: var(--paper); }
.article-main { padding-top: 92px; padding-bottom: 120px; }
.article-hero { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.article-hero h1 { font-size: 48px; font-weight: 500; line-height: 1.25; margin: 0; text-wrap: balance; }
.article-hero .section-intro { font-size: var(--lead); }
.legal-glance, .checklist-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 88px; }
.checklist-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.overview-card { background: var(--wash); color: var(--ink); border-radius: var(--radius-card); padding: 28px; }
.overview-card strong { display: block; font-size: var(--h3); font-weight: 600; }
.overview-card p { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.article-copy { max-width: 780px; margin: auto; font-size: 16px; line-height: 1.9; }
.article-copy h2 { margin: 68px 0 24px; }
.article-copy p { margin: 0 0 20px; color: var(--muted); font-weight: 400; }
.article-copy a:not(.btn) { color: var(--brand); text-decoration: underline; }
.legal-table-wrap { overflow-x: auto; margin: 44px 0 64px; }
.legal-table { border-collapse: collapse; width: 100%; min-width: 570px; font-size: 14px; }
.legal-table caption { text-align: left; font-weight: 600; margin-bottom: 14px; }
.legal-table th, .legal-table td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table thead { background: var(--wash); color: var(--ink); }
.legal-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 32px 0; }
.legal-choices li { margin: 8px 0; color: var(--muted); }
.article-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.checklist-grid:has(.post-card) { grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; }
@media (max-width: 800px) {
  .checklist-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .checklist-grid:has(.post-card) { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .article-main { padding-top: 64px; padding-bottom: 80px; }
  .article-hero h1 { font-size: 34px; }
  .legal-glance, .checklist-grid, .legal-choices { grid-template-columns: minmax(0,1fr); }
  .checklist-grid:has(.post-card) { grid-template-columns: minmax(0,1fr); }
  .legal-glance, .checklist-grid { margin-bottom: 48px; }
  .overview-card { padding: 22px; }
}
.site-header { position: sticky; top: 0; }
.lang-trigger { overflow: hidden; }
[data-filter-trigger] { min-height: 40px; margin-block: 16px; border: 1px solid var(--line); padding: 0 12px; background: var(--paper); color: var(--ink); }
.twofa-ribbon > div > strong { margin-inline-end: 16px; }
[data-2fa-badge] { border: 1px solid var(--brand); margin: 0; vertical-align: middle; }
[data-twofa-disable-panel] { margin-top: 24px; }
[data-2fa-disable] { margin-top: 24px; }
.row-actions [data-2fa-disable] { margin-top: 0; }
.twofa-actions { align-items: center; }
.mail-list .mail-empty, .reader-body .reader-empty, [data-inbox-empty], [data-reader-empty] { min-height: 160px; padding: 32px; background: var(--wash); color: var(--muted); border: 1px solid var(--line); }
@media (max-width: 640px) {
  button.lang-trigger.lang-compact { width: 36px; font-size: 0; gap: 0; overflow: hidden; }
  .lang-trigger.lang-trigger .lang-name { display: none; font-size: 0; }
  .lang-trigger span:not(.chevron) { display: none; font-size: 0; }
}
.recommend-float { position: fixed; z-index: 29; bottom: 24px; right: 24px; width: min(285px,calc(100% - 32px)); padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: 0 12px 32px rgba(39,53,71,.12); background: var(--paper); color: var(--ink); }
.recommend-float strong { display: block; padding-right: 24px; }
.recommend-float p { color: var(--muted); font-size: 13px; margin: 8px 0 18px; }
.recommend-float a { color: var(--brand); font-size: 13px; }
.recommend-float button.float-close { position: absolute; right: 12px; top: 12px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--paper); color: var(--ink); width: 28px; height: 28px; }
.brand-name { display: inline-block; white-space: nowrap; }
.overview-card time { display: block; color: var(--muted); font-size: 12px; margin-top: 20px; }
.overview-card small { color: var(--brand); font-size: 12px; }
.filter-wrap { margin-block: 16px; }
.archive-tools [data-filter-trigger] { margin-top: 16px; margin-bottom: 16px; }
.desk-section > p { margin-bottom: 32px; }
.alias-composer { margin-top: 24px; }
.post-card { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.overview-card.post-card strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; line-height: 1.35; text-wrap: balance; }
.overview-card.post-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; line-height: 1.6; }
.overview-card.post-card time { margin-top: auto; padding-top: 20px; }
.secret-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.secret-row code { flex: 1; min-width: 150px; }
@media (max-width: 640px) {
  .twofa-setup .secret-row { flex-direction: column; align-items: stretch; }
  .twofa-setup .secret-row .quiet-button { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
