:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0d1a2b;
  --panel-2: #101f33;
  --line: #20334c;
  --text: #f5f8fc;
  --muted: #91a3ba;
  --cyan: #39d9c5;
  --blue: #48a7ff;
  --danger: #ff8f86;
  --shadow: 0 24px 70px rgba(0,0,0,.28);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(72,167,255,.14), transparent 30rem),
    radial-gradient(circle at 90% 28%, rgba(57,217,197,.09), transparent 28rem),
    var(--bg);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, a { font: inherit; }
button { color: inherit; }
.topbar, footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar { min-height: 76px; border-bottom: 1px solid rgba(145,163,186,.15); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-weight: 760; letter-spacing: -.02em; }
.brand > span:last-child span { color: var(--cyan); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #06111e; background: linear-gradient(135deg,var(--cyan),#8bf1e5); font-weight: 900; }
.privacy { color: var(--muted); font-size: .875rem; display: flex; align-items: center; gap: 8px; }
.privacy span { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(57,217,197,.1); }
main { min-height: calc(100vh - 150px); }
.workspace { width: min(880px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 42px; }
.intro { max-width: 670px; margin-bottom: 30px; }
.eyebrow { margin: 0 0 8px; color: var(--cyan); font-size: .75rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1 { margin: 0; max-width: 650px; font-size: clamp(2.35rem, 6vw, 4.65rem); line-height: .98; letter-spacing: -.06em; }
.intro > p:last-child { max-width: 590px; margin: 20px 0 0; color: var(--muted); font-size: 1.05rem; }
.address-card, .inbox-card { border: 1px solid var(--line); background: rgba(13,26,43,.9); box-shadow: var(--shadow); }
.address-card { padding: 22px; border-radius: 20px 20px 8px 8px; }
.address-heading, .address-meta, .inbox-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.address-heading { color: var(--muted); font-size: .875rem; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #ffc857; }
.status.ready { color: var(--cyan); }
.status.ready i { background: var(--cyan); box-shadow: 0 0 0 4px rgba(57,217,197,.09); }
.address-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin: 13px 0; }
.address { min-width: 0; padding: 13px 15px; border: 1px solid #29415f; border-radius: 12px; background: #081523; color: #dffefa; font: 600 1.05rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.button { min-height: 48px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-weight: 760; transition: transform .18s ease, background .18s ease, opacity .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:focus-visible, .text-button:focus-visible { outline: 3px solid rgba(72,167,255,.4); outline-offset: 2px; }
.button:disabled { opacity: .45; cursor: wait; }
.primary { color: #05121c; background: var(--cyan); }
.primary:hover:not(:disabled) { background: #79ebdd; }
.secondary { border-color: #2c4666; background: #132640; }
.secondary:hover { background: #19304f; }
.address-meta { color: var(--muted); font-size: .875rem; }
.address-meta strong { color: var(--text); font-variant-numeric: tabular-nums; }
.text-button { padding: 5px 0; border: 0; background: transparent; color: var(--blue); cursor: pointer; font-weight: 700; }
.inbox-card { margin-top: 12px; min-height: 350px; border-radius: 8px 8px 20px 20px; overflow: hidden; }
.inbox-header { padding: 22px; border-bottom: 1px solid var(--line); }
.inbox-header h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.025em; }
.inbox-header h2 span { color: var(--muted); font-size: .9rem; margin-left: 5px; }
.messages { min-height: 250px; }
.empty-state { min-height: 250px; display: grid; place-items: center; align-content: center; padding: 35px; text-align: center; }
.empty-state h3 { margin: 17px 0 4px; font-size: 1.05rem; }
.empty-state p { max-width: 390px; margin: 0; color: var(--muted); font-size: .925rem; }
.radar { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid #31506e; border-radius: 50%; }
.radar::before, .radar::after { content: ""; position: absolute; border: 1px solid #27425e; border-radius: 50%; }
.radar::before { inset: 8px; }.radar::after { inset: 16px; }
.radar span { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.message { padding: 17px 22px; border-bottom: 1px solid var(--line); cursor: pointer; }
.message:hover { background: rgba(72,167,255,.05); }
.message-top { display: flex; justify-content: space-between; gap: 16px; }
.message-from { font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-time { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.message-subject { color: #d8e5f4; margin-top: 3px; }
.message-body { display: none; margin: 16px 0 0; padding: 16px; border-radius: 10px; background: #07131f; color: #c6d4e5; font: .875rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.open .message-body { display: block; }
.notice { margin: 16px 22px 0; padding: 12px 14px; border: 1px solid rgba(255,143,134,.35); border-radius: 10px; color: #ffc2bd; background: rgba(255,143,134,.07); font-size: .9rem; }
.safety { margin: 18px 3px 0; color: var(--muted); font-size: .85rem; }
.safety strong { color: #d8e5f4; }
footer { min-height: 74px; color: #70839a; font-size: .8rem; border-top: 1px solid rgba(145,163,186,.12); }
@media (max-width: 650px) {
  .topbar, footer, .workspace { width: min(100% - 24px, 880px); }
  .topbar { min-height: 64px; }
  .privacy { display: none; }
  .workspace { padding-top: 42px; }
  h1 { font-size: clamp(2.2rem, 12vw, 3.4rem); }
  .address-card { padding: 16px; }
  .address-row { grid-template-columns: 1fr; }
  .button { width: 100%; }
  .address-meta { align-items: flex-start; }
  .inbox-header { padding: 18px 16px; }
  .inbox-header .button { width: auto; min-height: 42px; }
  .message { padding: 15px 16px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
