/* CompMails — free temp mail -------------------------------------------
   Hand-written CSS, no framework and no third-party stylesheet: the page
   paints from this file alone, with system fonts, so a first visit costs
   one request instead of three. Dark is the default; `html[data-theme=
   "light"]` repaints the same tokens. */

/* Tokens -------------------------------------------------------------- */
:root {
  color-scheme: dark;
  --bg: #070b09;
  --bg-soft: #0b110f;
  --surface: #0f1614;
  --surface-2: #131d19;
  --line: #1e2a26;
  --line-strong: #2c3b36;
  --text: #e7efeb;
  --muted: #94a6a0;
  --subtle: #6c7e78;
  --accent: #34d399;
  --accent-soft: #0f9b6c;
  --accent-ink: #05170e;
  --danger: #f87171;
  --shadow: 0 20px 60px rgb(0 0 0 / 45%);
  --radius: 16px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8f7;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f4f2;
  --line: #e2e5e3;
  --line-strong: #c8cdca;
  --text: #101a16;
  --muted: #4e5c57;
  --subtle: #74837e;
  --accent: #0a8148;
  --accent-soft: #0a8148;
  --accent-ink: #ffffff;
  --shadow: 0 16px 40px rgb(16 26 22 / 10%);
}

/* Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed; inset: 0; z-index: -1; content: "";
  background:
    radial-gradient(720px 420px at 12% -8%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 70%),
    radial-gradient(560px 340px at 96% 4%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 72%);
  pointer-events: none;
}
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.022em; font-weight: 600; }
h1 { font-size: clamp(30px, 5.4vw, 50px); letter-spacing: -0.035em; }
h2 { font-size: clamp(21px, 3vw, 29px); }
h3 { font-size: 15.5px; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--mono); font-variant-ligatures: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(100% - 40px, 1120px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 9px 14px; border-radius: 10px; background: var(--surface); color: var(--text); border: 1px solid var(--line); transition: top 150ms ease; }
.skip:focus { top: 12px; }
.skip:focus, .skip:hover { text-decoration: none; }

/* Top bar ------------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); }
.topbar-inner { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 88%, #000), var(--accent-soft)); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%); }
.mark svg { width: 17px; height: 17px; stroke-width: 2; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 14.5px; letter-spacing: -0.01em; }
.brand-text small { color: var(--subtle); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a { padding: 7px 11px; border-radius: 9px; color: var(--muted); font-size: 12.5px; transition: color 140ms ease, background 140ms ease; }
.topnav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.icon-btn { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); cursor: pointer; transition: color 140ms ease, border-color 140ms ease; }
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
html[data-theme="dark"] .when-light, html[data-theme="light"] .when-dark { display: none; }

/* Hero ---------------------------------------------------------------- */
.hero { padding: 64px 0 30px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.hero h1 { max-width: 17ch; margin: 20px 0 0; }
.hero h1 em { font-style: normal; box-decoration-break: clone; background: linear-gradient(180deg, transparent 62%, color-mix(in srgb, var(--accent) 34%, transparent) 62%); padding: 0 3px; }
.lede { max-width: 62ch; margin-top: 18px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; }
.chips svg { width: 13px; height: 13px; color: var(--accent); stroke-width: 2.4; }

/* Buttons -------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease; }
.btn:hover { text-decoration: none; border-color: var(--line-strong); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); border-color: var(--accent); }
.btn-solid { background: var(--surface); border-color: var(--line-strong); }
.btn-solid:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-quiet { background: var(--surface); color: var(--muted); font-weight: 500; }
.btn-quiet:hover { color: var(--text); }
kbd { padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--bg-soft); color: var(--subtle); font-family: var(--mono); font-size: 10px; line-height: 1.4; }
@media (hover: none) { kbd { display: none; } }

/* The inbox card ------------------------------------------------------- */
.app { padding-top: 26px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.address-card { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; padding: 22px; background: linear-gradient(140deg, var(--surface-2), var(--surface) 62%); box-shadow: var(--shadow); }
.ac-main { min-width: 0; flex: 1 1 320px; }
.ac-label { color: var(--subtle); font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; }
.ac-address { margin: 8px 0 12px; font-family: var(--mono); font-size: clamp(17px, 3.6vw, 26px); font-weight: 600; letter-spacing: -0.02em; word-break: break-all; user-select: all; }
.ac-address.is-flash { color: var(--accent); }
.ac-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.mini { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini svg { width: 12px; height: 12px; }
.mini.live { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 32%, var(--line)); }
.mini.live.is-busy { color: var(--muted); border-color: var(--line); }
.mini.live.is-busy .dot, .mini.live.is-down .dot { background: var(--muted); box-shadow: none; animation: none; }
.mini.live.is-down { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 34%, var(--line)); }
.mini .dot { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.ac-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 16px; }
.badge { min-width: 18px; padding: 1px 5px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); font-family: var(--mono); font-size: 10.5px; text-align: center; }
.field-inline { display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px 5px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 12px; }
.field-inline select { border: 0; background: none; color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
.keys { position: relative; margin-left: auto; }
.keys summary { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 12px; cursor: pointer; list-style: none; }
.keys summary::-webkit-details-marker { display: none; }
.keys summary:hover { color: var(--text); }
.keys ul { position: absolute; right: 0; z-index: 20; width: min(280px, 78vw); margin: 8px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); list-style: none; }
.keys li { display: flex; gap: 8px; padding: 4px 0; color: var(--muted); font-size: 12px; }

/* Workspace ------------------------------------------------------------ */
.workspace { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px; }
.panel { display: flex; flex-direction: column; min-height: 460px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.search { position: relative; flex: 1 1 auto; min-width: 0; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--subtle); }
.search input { width: 100%; min-height: 34px; padding: 7px 10px 7px 32px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-soft); color: var(--text); font: inherit; font-size: 12.5px; }
.search input::placeholder { color: var(--subtle); }
.switch-inline { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; cursor: pointer; }
.switch-inline input { accent-color: var(--accent); }
.count { color: var(--subtle); font-size: 11px; white-space: nowrap; }

.msg-list { flex: 1 1 auto; overflow-y: auto; max-height: 620px; }
.msg { display: block; width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background 140ms ease; }
.msg:hover { background: var(--surface-2); }
.msg.is-active { background: var(--surface-2); border-left-color: var(--accent); }
.msg-top { display: flex; align-items: baseline; gap: 8px; }
.msg-from { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 600; }
.msg-time { color: var(--subtle); font-family: var(--mono); font-size: 10px; }
.msg-subject { margin-top: 3px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-intro { margin-top: 2px; color: var(--subtle); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg.is-unread .msg-subject { font-weight: 600; }
.msg.is-unread .msg-from::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--accent); vertical-align: middle; }

.state { padding: 34px 24px; text-align: center; }
.state h3 { margin-top: 12px; }
.state p { max-width: 44ch; margin: 8px auto 0; color: var(--subtle); font-size: 12.5px; }
.state-icon { display: grid; width: 44px; height: 44px; margin: 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); color: var(--subtle); }
.state-icon svg { width: 20px; height: 20px; }
.state .btn { margin-top: 16px; }
.listening { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.sk { padding: 14px; border-bottom: 1px solid var(--line); }
.sk-line { display: block; height: 9px; margin: 9px 0; border-radius: 5px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 37%, var(--surface-2) 63%); background-size: 300% 100%; animation: shimmer 1.6s ease-in-out infinite; }
.sk-line.big { height: 16px; }
.w30 { width: 30%; } .w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; } .w55 { width: 55%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
@keyframes shimmer { 0% { background-position: 120% 0; } 100% { background-position: -20% 0; } }

.reader { position: relative; }
.reader-empty { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: center; padding: 40px 28px; text-align: center; }
.reader-empty p { max-width: 46ch; margin: 8px auto 0; color: var(--subtle); font-size: 12.5px; }
.reader-skeleton { padding: 20px; }
.reader-body { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.reader-head { padding: 14px 16px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.rh-top { display: flex; align-items: flex-start; gap: 10px; }
.rh-top h3 { flex: 1 1 auto; min-width: 0; font-size: 16.5px; overflow-wrap: anywhere; }
.rh-tools { display: flex; gap: 5px; flex: 0 0 auto; }
.tool { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); cursor: pointer; transition: color 140ms ease, border-color 140ms ease; }
.tool:hover { color: var(--text); border-color: var(--line-strong); }
.tool.is-on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.tool.danger:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.rh-meta { display: grid; gap: 3px; margin: 11px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.rh-meta > div { display: flex; gap: 8px; font-size: 11.5px; }
.rh-meta dt { flex: 0 0 42px; color: var(--subtle); }
.rh-meta dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.raw { max-height: 190px; margin: 0; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); color: var(--muted); font-family: var(--mono); font-size: 11px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; overflow: auto; }
.attachments { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.att-label { display: inline-flex; align-items: center; gap: 6px; color: var(--subtle); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.att-list { display: flex; flex-wrap: wrap; gap: 6px; }
.att { display: inline-flex; align-items: center; gap: 7px; max-width: 240px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font: inherit; font-size: 11.5px; cursor: pointer; }
.att:hover { color: var(--text); border-color: var(--line-strong); }
.att span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att em { color: var(--subtle); font-style: normal; font-family: var(--mono); font-size: 10px; }
.frame-holder { position: relative; flex: 1 1 auto; min-height: 320px; background: #fff; }
.frame-holder iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.only-phone { display: none; }
.spin { animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Advertisement -------------------------------------------------------- */
.adblock { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 46px; padding: 20px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--bg-soft); text-align: center; }
.ad-head { display: inline-flex; align-items: center; gap: 9px; color: var(--subtle); font-size: 11px; }
.ad-tag { padding: 2px 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--muted); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.ad-slot { min-height: 300px; width: 160px; }
.ad-slot iframe { border: 0; }
.ad-note { max-width: 46ch; color: var(--subtle); font-size: 11.5px; }

/* Sections ------------------------------------------------------------- */
.section { margin-top: 82px; }
.section .lead { max-width: 62ch; margin-top: 12px; color: var(--muted); }
.steps { display: grid; gap: 14px; margin-top: 26px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.num { color: var(--accent); font-size: 11px; letter-spacing: 0.16em; }
.step h3 { margin-top: 9px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.grid { display: grid; gap: 14px; margin-top: 26px; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.feature { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color 160ms ease, transform 160ms ease; }
.feature:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.feature h3 { margin-top: 12px; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.ficon { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.ficon svg { width: 17px; height: 17px; }
.uses { display: grid; gap: 12px; margin-top: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.use { padding: 16px 18px; border-left: 2px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--bg-soft); border-radius: 0 12px 12px 0; }
.use h3 { font-size: 14px; }
.use p { margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.note { max-width: 74ch; margin-top: 24px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 12.5px; }
.note strong { color: var(--text); }
.faq { margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; font-size: 13.5px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface-2); }
.faq summary svg { color: var(--subtle); transition: transform 180ms ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .ans { padding: 0 18px 16px; color: var(--muted); font-size: 13px; }

/* Footer --------------------------------------------------------------- */
.site-foot { margin-top: 96px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 32px; padding: 40px 0 28px; }
.foot-brand { flex: 1 1 300px; max-width: 380px; }
.foot-brand p { margin-top: 14px; color: var(--muted); font-size: 12.5px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 34px; margin-left: auto; }
.foot-cols h3 { color: var(--subtle); font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; }
.foot-cols ul { margin: 12px 0 0; padding: 0; list-style: none; }
.foot-cols li { margin-bottom: 8px; }
.foot-cols a { color: var(--muted); font-size: 12.5px; }
.foot-cols a:hover { color: var(--text); }
.foot-base { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; padding: 16px 0 34px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 11.5px; }

/* Cookie notice, toast, modals ---------------------------------------- */
.consent { position: fixed; right: 16px; bottom: 16px; left: 16px; z-index: 50; max-width: 420px; margin-left: auto; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); animation: rise 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.consent p { color: var(--muted); font-size: 12.5px; }
.consent-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: flex; align-items: center; gap: 9px; max-width: min(360px, calc(100vw - 32px)); padding: 11px 15px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow); font-size: 12.5px; animation: rise 260ms ease both; }
.toast svg { color: var(--accent); }
.toast.is-error svg { color: var(--danger); }
html.has-consent .toast { bottom: 108px; }
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; background: color-mix(in srgb, #000 62%, transparent); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: min(100%, 460px); padding: 24px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); animation: rise 220ms ease both; }
.modal-card.center { text-align: center; }
.modal-card h3 { font-size: 18px; }
.modal-lede { margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.modal-x { position: absolute; right: 12px; top: 12px; display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--subtle); cursor: pointer; }
.modal-x:hover { background: var(--surface-2); color: var(--text); }
.modal form { margin-top: 18px; }
.row { margin-bottom: 14px; }
.row label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11.5px; }
input[type="text"], input[type="password"], select { width: 100%; min-height: 40px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); color: var(--text); font: inherit; font-size: 13px; }
.joined { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.at { color: var(--subtle); }
.select-inline { min-height: 40px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.qr-holder { display: grid; place-items: center; margin: 18px auto 12px; padding: 12px; border-radius: 12px; background: #fff; }
.qr-holder img, .qr-holder canvas { display: block; width: 190px; height: 190px; }
.qr-holder .qr-error { padding: 22px; color: #444; font-size: 12.5px; }
.qr-address { color: var(--accent); font-size: 12.5px; word-break: break-all; }
.saved-list { margin: 18px 0 0; padding: 0; list-style: none; }
.saved-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 8px; }
.saved-list .s-main { flex: 1 1 auto; min-width: 0; }
.saved-list .s-addr { font-family: var(--mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-list .s-when { color: var(--subtle); font-size: 10.5px; }
.saved-list .s-empty { display: block; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 11px; color: var(--subtle); font-size: 12.5px; text-align: center; }

/* Narrow + touch ------------------------------------------------------- */
@media (max-width: 900px) {
  .topnav { display: none; }
  .workspace { grid-template-columns: 1fr; }
  .panel { min-height: 0; }
  .msg-list { max-height: 420px; }
  .reader { position: fixed; inset: 8px; z-index: 60; box-shadow: var(--shadow); }
  .reader.is-idle { display: none; }
  .only-phone { display: grid; }
  .frame-holder { min-height: 46vh; }
}
@media (max-width: 600px) {
  .wrap { width: min(100% - 24px, 1120px); }
  .hero { padding-top: 44px; }
  .address-card { padding: 17px; gap: 16px; }
  .ac-actions { width: 100%; }
  .ac-actions .btn { flex: 1 1 auto; }
  .keys { margin-left: 0; }
  .section { margin-top: 60px; }
  .foot-inner { gap: 24px; }
  .foot-cols { margin-left: 0; gap: 26px; }
  .toast { left: 12px; right: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
