/* Temp Mail website. Same palette as the Android app (AppColors.kt), light and dark. */

:root {
  --bg: #FFFFFF; --bg-soft: #F6F5FB; --card: #FFFFFF; --border: #E9E7F2;
  --accent: #6C47FF; --accent-hover: #5B3AE8; --on-accent: #FFFFFF; --accent-soft: #EDE8FF;
  --text: #17151F; --muted: #6B6880;
  --danger: #E5484D; --danger-soft: #FDECEC; --success: #12A150; --success-soft: #E6F6EC;
  --unread: #F7F4FF; --unread-border: #DCD3FF; --divider: #ECEAF3; --track: #E9E6F5;
  --hero1: #7C5CFF; --hero2: #4F46E5;
  --footer: #F6F5FB;
  --shadow: 0 1px 2px rgba(23, 21, 31, .05), 0 12px 32px rgba(23, 21, 31, .08);
  --shadow-sm: 0 1px 2px rgba(23, 21, 31, .04), 0 4px 14px rgba(23, 21, 31, .04);
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0D14; --bg-soft: #13121A; --card: #17161F; --border: #2A2836;
    --accent: #A594FF; --accent-hover: #B6A8FF; --on-accent: #14102B; --accent-soft: #262040;
    --text: #F2F1F7; --muted: #A09CB3;
    --danger: #FF6B6B; --danger-soft: #3A1E22; --success: #3DD68C; --success-soft: #15301F;
    --unread: #1C1830; --unread-border: #3D3470; --divider: #262433; --track: #2A2836;
    --hero1: #5B43E0; --hero2: #3730A3;
    --footer: #0B0A10;
    --shadow: 0 12px 32px rgba(0, 0, 0, .35); --shadow-sm: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0D14; --bg-soft: #13121A; --card: #17161F; --border: #2A2836;
  --accent: #A594FF; --accent-hover: #B6A8FF; --on-accent: #14102B; --accent-soft: #262040;
  --text: #F2F1F7; --muted: #A09CB3;
  --danger: #FF6B6B; --danger-soft: #3A1E22; --success: #3DD68C; --success-soft: #15301F;
  --unread: #1C1830; --unread-border: #3D3470; --divider: #262433; --track: #2A2836;
  --hero1: #5B43E0; --hero2: #3730A3;
  --footer: #0B0A10;
  --shadow: 0 12px 32px rgba(0, 0, 0, .35); --shadow-sm: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.page { display: flex; flex-direction: column; gap: 18px; padding-top: 24px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html:not(.js) .js-only { display: none !important; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } .hide-sm { display: none; } }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--divider); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav-link { display: flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.nav-link .i { width: 18px; height: 18px; }
.nav-link:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.nav-link.on { color: var(--accent); }
.nav-sep { width: 1px; height: 24px; background: var(--divider); margin: 0 6px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 40px; height: 40px; padding: 0 8px;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.lang-code { font-size: 12px; font-weight: 700; text-transform: uppercase; }
@media (max-width: 820px) { .nav-wide { display: none; } }
@media (max-width: 560px) {
  .nav-link span { display: none; }
  .nav-link { padding: 8px 10px; }
  .nav-sep { display: none; }
}

/* ---------- Hero band ---------- */
.hero-band { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 400px at 85% -10%, rgba(255, 255, 255, .16), transparent 60%),
              linear-gradient(135deg, var(--hero1), var(--hero2)); }
.hero-band::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; left: -160px; bottom: -260px;
  background: rgba(255, 255, 255, .07); pointer-events: none; }
.hero-in { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 64px; text-align: center; }
.hero-h1 { font-size: clamp(30px, 5.4vw, 48px); font-weight: 800; letter-spacing: -.02em; }
.hero-lead { max-width: 640px; margin: 14px auto 0; font-size: clamp(16px, 2.2vw, 19px); opacity: .92; }
@media (max-width: 560px) { .hero-in { padding-top: 32px; padding-bottom: 36px; } }

/* Address box (white card on the purple band) */
.addrbox { max-width: 860px; margin: 32px auto 0; padding: 22px; text-align: left; border-radius: 22px;
  background: var(--card); color: var(--text); box-shadow: 0 20px 50px rgba(20, 12, 70, .28); }
.addrbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--track); flex: none; }
.dot-live { background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.addrbox-row { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.addr { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 14px; background: var(--bg-soft); border: 1px dashed var(--unread-border);
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; font-weight: 700;
  font-size: clamp(17px, 3.2vw, 26px); letter-spacing: -.01em; overflow-wrap: anywhere; cursor: copy; }
.fitted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.addr-actions { display: flex; gap: 8px; flex: none; }
.inline-form { display: contents; }
.addrbox-timer { display: flex; align-items: center; gap: 14px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.timer-text { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.timer-text .i { width: 16px; height: 16px; }
.timer-text b { color: var(--text); font-variant-numeric: tabular-nums; }
progress.life { flex: 1; height: 6px; border: 0; border-radius: 6px; overflow: hidden; background: var(--track); appearance: none; -webkit-appearance: none; }
progress.life::-webkit-progress-bar { background: var(--track); }
progress.life::-webkit-progress-value { background: var(--accent); border-radius: 6px; }
progress.life::-moz-progress-bar { background: var(--accent); border-radius: 6px; }
.addrbox-empty { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.addrbox-title { font-size: 22px; font-weight: 800; margin-bottom: 2px; }
@media (max-width: 720px) {
  .addrbox { padding: 16px; margin-top: 24px; }
  .addrbox-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .addr-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .addr-actions:has(> [data-share][hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html:not(.js) .addr-actions { grid-template-columns: 1fr; }
  .addr-actions .btn { justify-content: center; }
  .addrbox-empty { flex-direction: column; align-items: stretch; text-align: center; }
}
/* Phones: icon above the label, so the three buttons always fit side by side. */
@media (max-width: 560px) {
  .addr-actions .btn { flex-direction: column; gap: 3px; height: 58px; padding: 0 4px; font-size: 13px; min-width: 0; }
  .addr-actions .btn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .addrbox-timer { gap: 10px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border: 0; border-radius: 12px;
  font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn .i { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
.btn-soft:hover { filter: brightness(.97); }
.btn-ghost { background: transparent; color: var(--muted); height: 38px; padding: 0 12px; font-size: 14px; }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }
.btn-lg { height: 54px; padding: 0 26px; font-size: 17px; }
button[disabled] { opacity: .7; cursor: progress; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 700; }
.cta-soft { background: var(--accent-soft); color: var(--accent); margin-top: 16px; }
.cta-soft:hover { text-decoration: none; filter: brightness(.97); }

/* ---------- Sections ---------- */
.section { padding-top: 56px; padding-bottom: 56px; }
.section + .section { padding-top: 0; }
.band-soft { background: var(--bg-soft); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.section-h { font-size: clamp(24px, 3.6vw, 32px); font-weight: 800; letter-spacing: -.01em; text-align: center; margin-bottom: 28px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .grid3 { grid-template-columns: 1fr; gap: 12px; } .section { padding-top: 40px; padding-bottom: 40px; } }
.step, .feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.step h3, .feature h3 { font-size: 18px; margin: 14px 0 6px; }
@media (max-width: 820px) {
  .step { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; padding: 18px; }
  .step-n { grid-row: 1 / span 2; }
  .step h3 { margin: 6px 0 4px; }
  .feature { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px; align-items: start; }
  .feature .bubble { grid-row: 1 / span 2; }
  .feature h3 { margin: 2px 0 2px; }
}
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); font-weight: 800; }
.bubble { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); }
.bubble .i { width: 22px; height: 22px; }
.bubble-muted { background: var(--divider); color: var(--muted); }

/* ---------- App promo (Google Play) ---------- */
.hero-app { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-size: 14px; font-weight: 600; }
.hero-app:hover { background: rgba(255, 255, 255, .24); text-decoration: none; }
.hero-app .i { width: 17px; height: 17px; }
.app-promo { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  padding: 40px 44px; border-radius: 24px; color: #fff; box-shadow: var(--shadow);
  background: radial-gradient(600px 300px at 100% 0%, rgba(255, 255, 255, .18), transparent 60%),
              linear-gradient(135deg, var(--hero1), var(--hero2)); }
.app-promo::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -120px; bottom: -200px;
  background: rgba(255, 255, 255, .07); pointer-events: none; }
.app-promo-text, .app-promo-art { position: relative; z-index: 1; }
.app-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.app-kicker .i { width: 16px; height: 16px; }
.app-promo h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.01em; margin: 14px 0 8px; line-height: 1.2; }
.app-lead { opacity: .92; margin: 0 0 16px; max-width: 520px; }
.app-points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.app-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.app-points .i { width: 20px; height: 20px; flex: none; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, .2); stroke-width: 3; }
.play-btn { display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 16px; border-radius: 14px;
  background: #0B0B0F; color: #fff; border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 10px 24px rgba(10, 6, 40, .35);
  transition: transform .15s ease, box-shadow .15s ease; }
.play-btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 14px 30px rgba(10, 6, 40, .45); }
.play-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.i-play { width: 28px; height: 28px; fill: #fff; flex: none; }
.play-btn-txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.play-btn-txt small { font-size: 11px; letter-spacing: .06em; opacity: .85; }
.play-btn-txt b { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.app-free { margin: 10px 0 0; font-size: 13px; opacity: .8; }
.app-promo-art { display: flex; justify-content: center; }
.phone { width: 200px; height: 360px; border-radius: 34px; background: var(--card); border: 6px solid #0B0B0F; color: var(--text);
  box-shadow: 0 24px 50px rgba(10, 6, 40, .4); display: flex; flex-direction: column; align-items: center; padding: 14px 14px 18px;
  transform: rotate(4deg); }
.phone-notch { width: 70px; height: 8px; border-radius: 8px; background: var(--divider); margin-bottom: 42px; }
.phone img { border-radius: 22px; box-shadow: var(--shadow-sm); }
.phone-name { margin-top: 12px; font-weight: 800; font-size: 18px; }
.phone-note { margin-top: auto; width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 700; }
.phone-note .i { width: 18px; height: 18px; flex: none; }
@media (max-width: 820px) {
  .app-promo { grid-template-columns: 1fr; padding: 28px 22px; gap: 8px; text-align: center; }
  .app-lead { margin-left: auto; margin-right: auto; }
  .app-points { justify-items: center; }
  .app-promo-art { display: none; }
}

/* ---------- Panels (inbox) ---------- */
.card, .panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.section-inbox { padding-top: 0; }
.inbox { overflow: hidden; margin-top: -32px; position: relative; z-index: 2; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 14px 20px; border-bottom: 1px solid var(--divider); }
.panel-title { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: var(--accent); }
.panel-title h2 { font-size: 19px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.panel-head .btn-ghost { flex: none; }
@media (max-width: 560px) {
  .panel-head { padding: 12px 8px 12px 16px; gap: 6px; }
  .panel-title { gap: 8px; }
  .panel-title > .i { display: none; }
  .panel-title h2 { font-size: 17px; }
  .pill { font-size: 11px; padding: 2px 8px; }
  .panel-head .btn-ghost { padding: 0 8px; }
}
.pill { flex: none; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
.progress-line { height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 200% 100%; animation: slide 1s linear infinite; }
@keyframes slide { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Message rows: stacked on phones, columns (from | subject + preview | time) on wide screens. */
.mhead { display: none; }
.mlist { list-style: none; margin: 0; padding: 0; }
.mlist li + li { border-top: 1px solid var(--divider); }
.mrow { display: flex; gap: 12px; align-items: flex-start; padding: 14px 20px; color: var(--text); }
.mrow:hover { background: var(--bg-soft); text-decoration: none; }
.mrow.unread { background: var(--unread); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 17px; }
.mbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mtop { display: flex; justify-content: space-between; gap: 8px; }
.mfrom { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtime { font-size: 13px; color: var(--muted); white-space: nowrap; flex: none; }
.unread .mtime { color: var(--accent); font-weight: 700; }
.msubj { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unread .msubj, .unread .mfrom { font-weight: 800; }
.clip .i { width: 14px; height: 14px; vertical-align: -2px; color: var(--muted); }
.mprev { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 16px; flex: none; }
.unread .unread-dot { background: var(--accent); }
@media (min-width: 820px) {
  .mhead { display: grid; grid-template-columns: 40px 220px 1fr 110px 8px; gap: 16px; padding: 10px 20px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--divider); background: var(--bg-soft); }
  .mrow { display: grid; grid-template-columns: 40px 220px 1fr 110px 8px; column-gap: 16px; align-items: center; padding: 12px 20px; }
  .mbody, .mtop { display: contents; }
  .avatar { grid-column: 1; grid-row: 1 / span 2; }
  .mfrom { grid-column: 2; grid-row: 1 / span 2; }
  .msubj { grid-column: 3; grid-row: 1; }
  .mprev { grid-column: 3; grid-row: 2; -webkit-line-clamp: 1; }
  .mtime { grid-column: 4; grid-row: 1 / span 2; text-align: right; }
  .unread-dot { grid-column: 5; grid-row: 1 / span 2; margin-top: 0; }
}
.inbox:not(.has-msgs) .mhead { display: none; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 20px 40px; gap: 4px; }
.empty-icon { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 10px; }
.empty-icon .i { width: 32px; height: 32px; }
.empty-title { font-weight: 700; font-size: 18px; }
.empty .muted { max-width: 420px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--divider); }
.faq details { border-bottom: 1px solid var(--divider); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 10px; color: var(--muted); }

/* ---------- Banner ---------- */
.banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; margin-top: 16px;
  background: var(--accent-soft); color: var(--text); font-size: 14px; }
.page .banner { margin-top: 0; }
.banner > span { flex: 1 1 220px; }
.banner-error { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.banner-notice { background: var(--accent-soft); color: var(--accent); }
.banner-notice span { color: var(--text); }
.banner-warn { background: var(--danger-soft); color: var(--danger); }
.banner-btn { font-weight: 700; white-space: nowrap; }

/* ---------- Message page ---------- */
.pagebar { display: flex; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; padding: 8px 12px 8px 6px; border-radius: 10px; }
.back:hover { background: var(--accent-soft); text-decoration: none; }
.msg { display: flex; flex-direction: column; gap: 14px; }
.msg-subject { font-size: clamp(22px, 4vw, 30px); font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.msg-head { display: flex; gap: 12px; align-items: flex-start; padding: 16px; }
.msg-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attach { padding: 8px; }
.attach-title { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 6px 8px; color: var(--muted); }
.attach-title .i { width: 16px; height: 16px; }
.attach-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: var(--text); }
.attach-row:hover { background: var(--bg-soft); text-decoration: none; }
.attach-row .i { color: var(--accent); }
.attach-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mailcard { overflow: hidden; background: #fff; }
.mailframe { display: block; width: 100%; height: 60vh; min-height: 120px; border: 0; background: #fff; }

/* ---------- History ---------- */
.page-title { font-size: clamp(26px, 4vw, 34px); font-weight: 800; }
.section-title { font-size: 15px; font-weight: 700; color: var(--muted); margin: 0 4px; }
.hlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hcard { padding: 16px 16px 6px; }
.hcard-active { background: var(--unread); border-color: var(--unread-border); }
.hrow { display: flex; gap: 12px; align-items: center; }
.hmain { flex: 1; min-width: 0; }
.addr-sm { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.hsub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.status { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--divider); color: var(--muted); white-space: nowrap; }
.status-ok { background: var(--success-soft); color: var(--success); }
.status-bad { background: var(--danger-soft); color: var(--danger); }
.htimer { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; }
.htimer .i { width: 14px; height: 14px; }
.hactions { display: flex; justify-content: flex-end; gap: 2px; border-top: 1px solid var(--divider); margin-top: 10px; padding-top: 2px; flex-wrap: wrap; }
.hactions form { display: contents; }
.tbtn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--accent); font-weight: 700;
  font-size: 14px; padding: 10px 10px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.tbtn:hover { background: var(--accent-soft); }
.tbtn .i { width: 18px; height: 18px; }
.tbtn-danger { color: var(--danger); }
.tbtn-danger:hover { background: var(--danger-soft); }

/* ---------- Honeypot (hidden from people, visible to naive bots) ---------- */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: var(--footer); border-top: 1px solid var(--divider); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 28px; }
.footer-brand p { margin-top: 10px; max-width: 360px; }
.footer-title { font-weight: 700; margin-bottom: 10px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-list a { color: var(--muted); }
.footer-list a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--divider); padding-top: 16px; padding-bottom: 28px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { .progress-line { animation: none; } }
