[hidden] { display: none !important; }

:root {
  --bg: #050807;
  --bg-2: #07110f;
  --panel: rgba(12, 20, 18, .92);
  --panel-2: rgba(18, 29, 25, .9);
  --paper: #07100e;
  --paper-2: #0a1613;
  --ink: #f6fff9;
  --text-dark: #f6fff9;
  --muted: #91a59d;
  --muted-2: #8aa199;
  --line: rgba(193, 255, 220, .15);
  --line-strong: rgba(193, 255, 220, .3);
  --mint: #19e6aa;
  --mint-2: #7affca;
  --acid: #d8ff42;
  --amber: #ffc95c;
  --red: #ff6478;
  --blue: #69caff;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
  --shadow-soft: 0 14px 38px rgba(0, 0, 0, .22);
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --body: "Bahnschrift", "Aptos", "Segoe UI Variable", sans-serif;
  --display: "Aptos Display", "Bahnschrift", "Segoe UI Variable", sans-serif;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 6%, rgba(25, 230, 170, .18), transparent 26rem),
    radial-gradient(circle at 86% 5%, rgba(216, 255, 66, .13), transparent 22rem),
    linear-gradient(180deg, #020403 0%, #050a08 42%, #07110f 100%);
  font: 12.25px/1.38 var(--body);
  letter-spacing: -.01em;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .28;
  background:
    linear-gradient(rgba(193, 255, 220, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(193, 255, 220, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .7) 42%, transparent 64%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .08;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, .32) 3px 4px);
  mix-blend-mode: overlay;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
pre, code { font-family: var(--mono); }
pre {
  margin: 0;
  max-width: 100%;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid rgba(20, 34, 29, .14);
  border-radius: 13px;
  background: #0a1210;
  color: #c8ffe8;
  padding: 11px;
}

.app-shell, .content-shell, .modal, .toast { position: relative; z-index: 2; }
.ops-backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ops-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .62;
  background:
    radial-gradient(circle at 18% 15%, rgba(25, 230, 170, .22), transparent 22rem),
    radial-gradient(circle at 84% 12%, rgba(216, 255, 66, .12), transparent 24rem),
    linear-gradient(118deg, transparent 0 33%, rgba(25, 230, 170, .12) 33.2% 33.7%, transparent 34% 100%);
}
.stream { position: absolute; width: 1px; height: 40vh; min-height: 250px; background: linear-gradient(180deg, transparent, rgba(25, 230, 170, .48), transparent); transform: rotate(28deg); opacity: .3; animation: stream 9s linear infinite; }
.stream-a { left: 18%; top: -28%; }
.stream-b { left: 58%; top: -30%; animation-delay: -3s; background: linear-gradient(180deg, transparent, rgba(216, 255, 66, .36), transparent); }
.stream-c { left: 86%; top: -26%; animation-delay: -6s; background: linear-gradient(180deg, transparent, rgba(105, 202, 255, .32), transparent); }

.app-shell {
  min-height: 0;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(5, 8, 7, .88) 0%, rgba(5, 8, 7, .76) 64%, rgba(5, 10, 8, 0) 100%);
}
.topbar, .workbench, .content-shell { width: min(100%, 1260px); margin: 0 auto; }
.topbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); text-decoration: none; }
.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--acid), var(--mint));
  color: #06120d;
  font: 950 14px/1 var(--mono);
  box-shadow: 0 16px 34px rgba(25, 230, 170, .24), inset 0 0 0 1px rgba(255, 255, 255, .36);
}
.brand-text { overflow: hidden; text-overflow: ellipsis; color: #f7fff9; font: 950 17px/1 var(--display); letter-spacing: -.045em; }
.top-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 10px; }
.top-actions a { color: #d7e7df; text-decoration: none; font-size: 11.5px; font-weight: 850; }
.top-actions a:hover { color: var(--acid); }
.top-actions select, .logout-button {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--ink);
  padding: 0 11px;
  font-weight: 850;
  backdrop-filter: blur(14px);
}
.top-actions option { color: #101612; }
.logout-button { background: rgba(25, 230, 170, .1); color: #dfffee; }
.health-pill, .live-badge, .console-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #eafff5;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
  backdrop-filter: blur(14px);
}
.dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 999px; background: var(--mint); box-shadow: 0 0 16px rgba(25, 230, 170, .8); }
.health-pill.is-checking .dot, .console-state.is-checking .dot { background: var(--amber); box-shadow: 0 0 16px rgba(255, 201, 92, .78); }
.health-pill.is-blocked .dot, .health-pill.is-locked .dot, .console-state.is-blocked .dot { background: var(--red); box-shadow: 0 0 16px rgba(255, 100, 120, .78); }

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .52fr);
  grid-template-areas: "session session" "inbox detail";
  gap: 12px;
  padding: 5px 16px 24px;
}
.session-panel, .inbox-panel, .detail-panel, .auth-card, .proof div, .band, .faq {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 19px;
  box-shadow: var(--shadow);
}
.session-panel {
  grid-area: session;
  display: grid;
  grid-template-columns: minmax(190px, .34fr) minmax(470px, 1fr) minmax(175px, .29fr);
  grid-template-rows: auto 1fr auto;
  gap: 10px 12px;
  align-items: stretch;
  min-height: 232px;
  overflow: hidden;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(17, 29, 25, .92), rgba(8, 14, 12, .94)),
    radial-gradient(circle at 78% 18%, rgba(216, 255, 66, .12), transparent 24rem);
}
.session-panel::before {
  content: "";
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  margin: -14px;
  pointer-events: none;
  opacity: .58;
  background: linear-gradient(108deg, transparent 0 51%, rgba(25, 230, 170, .13) 51.2% 51.8%, transparent 52% 100%);
}
.panel-kicker, .session-panel h1, .subcopy, .address-console, .status-grid, .signal-row { position: relative; z-index: 1; }
.panel-kicker, .eyebrow {
  margin: 0;
  color: var(--mint);
  font: 950 9px/1.1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .11em;
}
.panel-kicker { grid-column: 1; grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.panel-kicker span:last-child {
  display: inline-flex;
  border: 1px solid rgba(216, 255, 66, .34);
  border-radius: 999px;
  background: rgba(216, 255, 66, .09);
  color: #ecff9b;
  padding: 4px 7px;
}
.session-panel h1 {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  margin: 0;
  max-width: 9ch;
  color: #f8fff9;
  font: 950 clamp(22px, 2.45vw, 34px)/.94 var(--display);
  letter-spacing: -.065em;
}
.subcopy {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  max-width: 30ch;
  margin: 0;
  color: #9fb1aa;
  font-size: 11.5px;
  line-height: 1.42;
}
.address-console {
  grid-column: 2;
  grid-row: 1 / 4;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 8px;
  align-self: stretch;
  border: 1px solid rgba(193, 255, 220, .2);
  border-radius: 17px;
  background: rgba(2, 8, 6, .72);
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), 0 18px 48px rgba(0, 0, 0, .24);
}
.console-head, .panel-head, .detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.console-head p { margin: 0; color: #e8fff5; font: 950 9.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.console-state { min-height: 28px; padding: 7px 10px; }
.address-card { display: grid; grid-template-columns: minmax(0, 1fr) 112px 48px; gap: 8px; align-items: center; }
.address-input, .compose-row input, .compose-row select, .auth-input-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(193, 255, 220, .2);
  background: rgba(1, 6, 5, .86);
  color: var(--ink);
  outline: none;
}
.address-input {
  height: 44px;
  border-radius: 13px;
  padding: 0 13px;
  direction: ltr;
  overflow: hidden;
  text-overflow: clip;
  font: 950 clamp(13px, 1.18vw, 17px)/1 var(--mono);
  letter-spacing: -.055em;
  box-shadow: inset 0 0 30px rgba(25, 230, 170, .08);
}
.address-input:focus, .compose-row input:focus, .compose-row select:focus, .auth-input-row input:focus {
  border-color: rgba(25, 230, 170, .72);
  box-shadow: 0 0 0 4px rgba(25, 230, 170, .12), inset 0 0 28px rgba(25, 230, 170, .08);
}
.copy-main, .qr-button, .quick-actions button, .compose-row button, .auth-input-row button, .body-toggle button, .code-shelf button, .modal-close {
  border: 1px solid transparent;
  border-radius: 15px;
  font-weight: 950;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease;
}
.copy-main, .qr-button { height: 44px; }
.copy-main { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, var(--mint), var(--acid)); color: #03110c; box-shadow: 0 16px 34px rgba(25, 230, 170, .22); }
.qr-button { display: grid; place-items: center; padding: 7px; background: #f8fff9; border-color: rgba(255, 255, 255, .45); }
.qr-button img { display: block; width: 36px; height: 34px; border-radius: 9px; background: #fff; }
.copy-main:hover, .qr-button:hover, .quick-actions button:hover, .compose-row button:hover, .auth-input-row button:hover, .body-toggle button:hover, .code-shelf button:hover, .modal-close:hover { transform: translateY(-2px); }
.quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.quick-actions button {
  display: inline-flex;
  min-width: 0;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, .09);
  border-color: rgba(193, 255, 220, .18);
  color: #eafff5;
}
.quick-actions button:nth-child(2) { background: rgba(216, 255, 66, .09); color: #f0ffb5; }
.quick-actions button:nth-child(3) { background: rgba(255, 100, 120, .08); color: #ffd7dd; }
.icon-copy, .icon-refresh, .icon-change, .icon-delete { display: inline-block; width: 14px; height: 14px; flex: 0 0 auto; color: currentColor; }
.icon-copy { position: relative; border: 2px solid currentColor; border-radius: 4px; }
.icon-copy::before { content: ""; position: absolute; left: -6px; top: 4px; width: 7px; height: 9px; border: 2px solid currentColor; border-radius: 3px; opacity: .7; }
.icon-refresh { border: 2px solid currentColor; border-right-color: transparent; border-radius: 999px; }
.icon-change { background: currentColor; clip-path: polygon(7% 44%, 63% 44%, 63% 23%, 96% 50%, 63% 77%, 63% 56%, 7% 56%); }
.icon-delete { background: currentColor; clip-path: polygon(15% 8%, 50% 43%, 85% 8%, 92% 15%, 57% 50%, 92% 85%, 85% 92%, 50% 57%, 15% 92%, 8% 85%, 43% 50%, 8% 15%); }
.advanced { border-top: 1px solid rgba(193, 255, 220, .12); padding-top: 2px; }
.advanced summary { color: #d7ece4; cursor: pointer; font-weight: 900; }
.compose-row { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 8px; }
.compose-row input, .compose-row select { height: 33px; border-radius: 12px; padding: 0 10px; }
.compose-row input { flex: 1 1 190px; }
.compose-row select { flex: 0 1 180px; }
.compose-row button { height: 33px; padding: 0 14px; background: rgba(25, 230, 170, .12); border-color: rgba(25, 230, 170, .3); color: #dffff0; }
.status-grid { grid-column: 3; grid-row: 1 / 3; display: grid; grid-template-columns: 1fr; gap: 8px; align-self: stretch; }
.status-grid div { border: 1px solid rgba(193, 255, 220, .16); border-radius: 16px; background: rgba(255, 255, 255, .07); padding: 9px; }
.status-grid span { display: block; color: #94aaa1; font: 950 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.status-grid strong { display: block; margin-top: 6px; color: #f8fff9; font: 950 18px/1 var(--display); white-space: nowrap; }
.signal-row, .advantage-grid, .code-shelf, .risk-panel, .auth-proof { display: flex; flex-wrap: wrap; gap: 8px; }
.signal-row { grid-column: 3; grid-row: 3; align-self: end; }
.signal-row span, .advantage-grid span, .message-card i, .code-shelf span, .code-shelf button, .code-shelf a, .risk-panel span, .auth-proof span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid rgba(193, 255, 220, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #e4fff4;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.inbox-panel, .detail-panel {
  min-height: 340px;
  overflow: hidden;
  background: var(--paper);
  color: var(--text-dark);
  border-color: rgba(20, 34, 29, .08);
  box-shadow: 0 24px 55px rgba(9, 18, 14, .18);
}
.inbox-panel { grid-area: inbox; }
.detail-panel { grid-area: detail; padding: 11px; }
.panel-head { padding: 12px 15px; border-bottom: 1px solid rgba(20, 34, 29, .08); }
.panel-head h2, .detail-empty h2, .band h2, .faq h2 { margin: 0; color: #101612; font: 950 19px/1.04 var(--display); letter-spacing: -.055em; }
.inbox-panel .eyebrow, .detail-panel .eyebrow, .band .eyebrow { color: #0aa978; }
.live-badge { min-height: 30px; padding: 6px 9px; border-color: rgba(10, 169, 120, .18); background: rgba(25, 230, 170, .1); color: #0f614a; }
.table-head { display: grid; grid-template-columns: .46fr minmax(0, 1fr) .36fr; gap: 12px; border-bottom: 1px solid rgba(20, 34, 29, .08); background: #101612; color: #d9ffe9; padding: 9px 15px; font: 900 9.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.empty { display: grid; min-height: 180px; place-items: center; align-content: center; gap: 12px; padding: 14px; color: var(--muted-2); text-align: center; }
.empty strong { color: #101612; font-weight: 950; }
.empty p { margin: 0; max-width: 330px; color: var(--muted-2); }
.empty-mark { position: relative; width: 50px; height: 44px; border: 1px solid rgba(10, 169, 120, .18); border-radius: 15px; background: radial-gradient(circle, rgba(25, 230, 170, .13), rgba(25, 230, 170, .04)); box-shadow: inset 0 0 20px rgba(25, 230, 170, .08); }
.empty-mark::after { content: ""; position: absolute; inset: 16px; border: 4px solid var(--mint); border-top-color: transparent; border-radius: 999px; animation: spin 1.2s linear infinite; }
.message-list { display: grid; }
.message-card { display: grid; grid-template-columns: .46fr minmax(0, 1fr) .36fr; gap: 10px; align-items: center; width: 100%; border: 0; border-bottom: 1px solid rgba(20, 34, 29, .08); background: transparent; color: #101612; text-align: left; padding: 9px 15px; }
.message-card:hover { background: rgba(25, 230, 170, .08); box-shadow: inset 4px 0 0 var(--mint); }
.message-card.is-active { background: rgba(25, 230, 170, .12); box-shadow: inset 4px 0 0 var(--mint); }
.message-card.is-new-mail { animation: newmail 2.2s ease both; }
.message-card strong, .message-card b, .message-card span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-card strong, .message-card b { color: #101612; font-weight: 950; }
.message-card span { color: var(--muted-2); font-size: 11.25px; }
.message-card em { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; font-style: normal; }
.message-card .chip-code, .code-shelf button { border-color: rgba(118, 148, 0, .22); background: rgba(216, 255, 66, .28); color: #4d6200; }
.message-card .chip-link, .code-shelf a { border-color: rgba(10, 169, 120, .2); background: rgba(25, 230, 170, .14); color: #0c6047; }
.message-card .chip-attachment { border-color: rgba(50, 132, 190, .18); background: rgba(105, 202, 255, .14); color: #20526e; }
.message-card .chip-risk { border-color: rgba(180, 35, 55, .2); background: rgba(255, 100, 120, .14); color: #8d2634; }
.message-card .chip-clean { border-color: rgba(10, 169, 120, .16); background: rgba(25, 230, 170, .1); color: #0c6047; }
.detail-empty { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.message-detail { display: block; color: #101612; }
.detail-head { align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid rgba(20, 34, 29, .08); }
.detail-head h3 { margin: 5px 0; color: #101612; font: 950 17.5px/1.08 var(--display); letter-spacing: -.045em; word-break: break-word; }
.detail-head p { margin: 3px 0; color: var(--muted-2); word-break: break-word; }
.code-shelf { margin: 11px 0; }
.code-shelf button, .code-shelf a { border-radius: 13px; cursor: pointer; }
.risk-panel { margin: 10px 0; border: 1px solid rgba(180, 35, 55, .18); border-radius: 15px; background: rgba(255, 100, 120, .09); padding: 10px; }
.risk-panel span { border-color: rgba(180, 35, 55, .22); background: rgba(255, 100, 120, .12); color: #8d2634; }
.body-toggle { display: flex; gap: 8px; margin: 14px 0; }
.body-toggle button { height: 34px; border-color: rgba(20, 34, 29, .12); background: #fff; color: #33423c; padding: 0 13px; }
.body-toggle button[aria-pressed="true"] { background: rgba(25, 230, 170, .15); border-color: rgba(10, 169, 120, .28); color: #0c6047; }
.message-frame { width: 100%; min-height: 190px; border: 1px solid rgba(20, 34, 29, .1); border-radius: 20px; background: #fff; }
.attachments { padding-left: 18px; color: var(--muted-2); }
.attachments small { display: block; color: #6f847c; }
.headers { margin-top: 12px; border-top: 1px solid rgba(20, 34, 29, .08); padding-top: 12px; }
.headers summary { color: #24362f; font-weight: 950; cursor: pointer; }
.headers dl { display: grid; grid-template-columns: minmax(90px, .34fr) minmax(0, 1fr); gap: 8px; max-width: 100%; overflow: auto; font-size: 12px; }
.headers dt { color: #0c6047; font-weight: 950; }
.headers dd { margin: 0; color: var(--muted-2); word-break: break-word; }

.content-shell { padding: 0 16px 30px; color: #101612; }
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.proof div, .band, .faq { padding: 13px; background: #f8fbf6; border-color: rgba(20, 34, 29, .08); color: #101612; box-shadow: 0 18px 45px rgba(9, 18, 14, .12); }
.proof h3 { margin: 0 0 6px; color: #101612; font: 950 14.5px/1.08 var(--display); letter-spacing: -.035em; }
.proof p, .band p, .faq p { margin: 0; color: var(--muted-2); line-height: 1.45; }
.band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr); gap: 12px; align-items: stretch; margin-bottom: 12px; }
.faq details { border-top: 1px solid rgba(20, 34, 29, .08); padding: 11px 0; }
.faq summary { color: #101612; font-weight: 950; cursor: pointer; }

.auth-gate { min-height: calc(100svh - 60px); display: grid; place-items: center; width: min(100%, 560px); margin: 0 auto; padding: 18px 16px 32px; }
.auth-copy { display: none; }
.auth-visual { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.radar-card { position: absolute; inset: 50% auto auto 50%; width: min(72vw, 560px); height: min(72vw, 560px); min-height: 0; transform: translate(-50%, -50%); border-radius: 999px; opacity: .42; background: radial-gradient(circle at 50% 50%, rgba(25, 230, 170, .16), transparent 31%), radial-gradient(circle at 50% 50%, transparent 0 48%, rgba(25, 230, 170, .1) 48.2% 48.7%, transparent 49%); }
.radar-card::after { content: ""; position: absolute; width: 46%; height: 1px; left: 50%; top: 50%; transform-origin: left center; background: linear-gradient(90deg, rgba(25, 230, 170, .72), transparent); animation: sweep 5.8s linear infinite; }
.radar-head, .radar-grid, .mail-trace { opacity: .2; }
.auth-card { width: min(100%, 400px); display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 26px; background: linear-gradient(180deg, rgba(17, 29, 25, .94), rgba(5, 10, 8, .96)); }
.is-locked .auth-card::before { content: "ACCESS KEY"; display: inline-flex; width: max-content; border: 1px solid rgba(25, 230, 170, .3); border-radius: 999px; background: rgba(25, 230, 170, .09); color: #caffea; padding: 7px 10px; font: 950 10px/1 var(--mono); letter-spacing: .11em; }
.is-locked .auth-card-head { display: none; }
.auth-card label { color: #f6fff9; font: 950 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.auth-input-row { display: grid; grid-template-columns: minmax(0, 1fr) 116px; gap: 10px; }
.auth-input-row input { height: 42px; border-radius: 14px; padding: 0 15px; direction: ltr; font: 900 11.5px/1 var(--mono); }
.auth-input-row button { height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--mint), var(--acid)); color: #03110c; box-shadow: 0 16px 34px rgba(25, 230, 170, .22); }
.auth-status { min-height: 22px; font-size: 11.5px; margin: 0; color: var(--muted); line-height: 1.45; }
.auth-status.error, .auth-status.is-error { color: #ffd4da; font-weight: 950; }
.auth-status.ok, .auth-status.is-ok { color: #caffea; font-weight: 950; }
.auth-proof { display: none; }

.modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(1, 5, 4, .78); padding: 11px; backdrop-filter: blur(10px); }
.modal-card { position: relative; width: min(340px, 100%); border: 1px solid var(--line-strong); border-radius: 22px; background: linear-gradient(180deg, rgba(18, 32, 28, .96), rgba(5, 10, 8, .96)); color: var(--ink); padding: 15px; text-align: center; box-shadow: var(--shadow); }
.modal-card h2 { margin: 0 0 14px; font: 950 18px/1.05 var(--display); letter-spacing: -.045em; }
.modal-close { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; background: rgba(255, 100, 120, .1); border-color: rgba(255, 100, 120, .28); color: #ffd4da; }
.qr-large { width: 200px; height: 200px; border: 1px solid rgba(255, 255, 255, .42); border-radius: 20px; background: #fff; padding: 12px; }
.qr-address { color: var(--muted); font: 11px/1.4 var(--mono); word-break: break-all; }
.toast { position: fixed; left: 50%; bottom: 18px; z-index: 40; max-width: min(520px, calc(100vw - 24px)); border: 1px solid var(--line-strong); border-radius: 999px; background: #06100d; color: #eafff4; padding: 8px 12px; font-weight: 950; font-size: 11.5px; box-shadow: var(--shadow-soft); opacity: 0; transform: translateX(-50%) translateY(18px); transition: opacity .18s ease, transform .18s ease; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

#workspace[hidden], #authGate[hidden], #empty[hidden], #messageDetail[hidden], .modal[hidden] { display: none !important; }
body.is-authenticated .auth-gate { display: none !important; }
.is-locked .content-shell { display: none; }
.is-busy button { opacity: .68; pointer-events: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(25, 230, 170, .58); outline-offset: 3px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes stream { from { transform: translate3d(-70px, -250px, 0) rotate(28deg); } to { transform: translate3d(180px, calc(100vh + 300px), 0) rotate(28deg); } }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes newmail { 0% { background: rgba(216, 255, 66, .24); box-shadow: inset 4px 0 0 var(--acid); } 100% { background: transparent; } }

@media (max-width: 1080px) {
  body { background: linear-gradient(180deg, #020403 0%, #050a08 44%, #07110f 100%); }
  .workbench { grid-template-columns: minmax(0, 1fr); grid-template-areas: "session" "inbox" "detail"; }
  .session-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; min-height: 0; }
  .panel-kicker, .session-panel h1, .subcopy, .address-console, .status-grid, .signal-row { grid-column: 1; grid-row: auto; }
  .session-panel h1 { max-width: none; font-size: clamp(25px, 6vw, 38px); }
  .status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-panel { min-height: 310px; }
}
@media (max-width: 720px) {
  body { font-size: 12px; background: linear-gradient(180deg, #020403 0%, #050a08 46%, #07110f 100%); }
  .topbar { min-height: 48px; padding: 9px 11px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 11px; }
  .brand-text { font-size: 16px; }
  .top-actions { gap: 7px; }
  .top-actions a, .health-pill { display: none; }
  .top-actions select, .logout-button { height: 32px; padding-inline: 10px; font-size: 11.5px; }
  .workbench { gap: 10px; padding: 5px 11px 24px; }
  .session-panel, .inbox-panel, .detail-panel, .auth-card, .proof div, .band, .faq { border-radius: 18px; }
  .session-panel { padding: 10px; gap: 8px; }
  .panel-kicker { font-size: 9px; }
  .session-panel h1, .subcopy, .signal-row { display: none; }
  .address-console { padding: 9px; border-radius: 16px; }
  .console-head p { font-size: 10px; }
  .console-state { display: none; }
  .address-card { grid-template-columns: minmax(0, 1fr) 50px; gap: 8px; }
  .address-input { grid-column: 1 / -1; height: 43px; border-radius: 13px; padding-inline: 10px; font-size: 12.8px; }
  .copy-main { height: 37px; border-radius: 12px; }
  .qr-button { height: 37px; border-radius: 12px; }
  .qr-button img { width: 34px; height: 34px; }
  .quick-actions { gap: 8px; }
  .quick-actions button { height: 33px; border-radius: 12px; gap: 5px; font-size: 11px; }
  .status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .status-grid div { border-radius: 16px; padding: 10px; }
  .status-grid span { font-size: 9px; }
  .status-grid strong { font-size: 14px; }
  .panel-head { padding: 11px; }
  .panel-head h2, .detail-empty h2, .band h2, .faq h2 { font-size: 16px; }
  .table-head { display: none; }
  .inbox-panel { min-height: 260px; }
  .empty { min-height: 170px; padding: 10px; }
  .message-card { grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 10px 13px; }
  .detail-panel { min-height: 250px; }
  .detail-head { display: block; }
  .headers dl { grid-template-columns: minmax(0, 1fr); }
  .content-shell { padding: 0 11px 28px; }
  .proof, .band { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .auth-gate { min-height: calc(100svh - 52px); padding: 14px 11px 28px; }
  .auth-card { padding: 14px; }
  .auth-input-row { grid-template-columns: minmax(0, 1fr); }
  .auth-input-row input, .auth-input-row button { height: 41px; }
}
@media (max-width: 420px) {
  .brand-text { font-size: 16px; }
  .quick-actions button span:last-child { font-size: 9.5px; }
  .address-input { font-size: 11.8px; }
  .status-grid strong { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}


/* V3 compact typography final pass */
@media (min-width: 1081px) {
  .session-panel { grid-template-columns: minmax(180px, .32fr) minmax(460px, 1fr) minmax(165px, .27fr); }
  .address-card { grid-template-columns: minmax(0, 1fr) 108px 46px; }
  .status-grid div { padding: 8px; }
  .signal-row span, .advantage-grid span, .message-card i, .code-shelf span, .code-shelf button, .code-shelf a, .risk-panel span, .auth-proof span { font-size: 10px; padding: 6px 8px; }
}

/* V3 night hardening */
body {
  background:
    radial-gradient(circle at 10% 0%, rgba(25, 230, 170, .13), transparent 28rem),
    radial-gradient(circle at 92% 2%, rgba(216, 255, 66, .08), transparent 24rem),
    linear-gradient(180deg, #020403 0%, #050a08 38%, #07110f 100%) !important;
}
.app-shell {
  background: linear-gradient(180deg, rgba(2, 4, 3, .96) 0%, rgba(3, 8, 6, .9) 70%, rgba(5, 10, 8, 0) 100%) !important;
}
.inbox-panel,
.detail-panel,
.proof div,
.band,
.faq {
  background:
    linear-gradient(180deg, rgba(12, 22, 19, .96), rgba(5, 11, 9, .98)),
    radial-gradient(circle at 20% 0%, rgba(25, 230, 170, .08), transparent 18rem) !important;
  color: var(--ink) !important;
  border-color: rgba(193, 255, 220, .16) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42) !important;
}
.content-shell,
.panel-head h2,
.detail-empty h2,
.band h2,
.faq h2,
.proof h3,
.empty strong,
.message-card strong,
.message-card b,
.detail-head h3,
.headers summary,
.faq summary,
.message-detail {
  color: var(--ink) !important;
}
.proof p,
.band p,
.faq p,
.empty p,
.message-card span,
.detail-head p,
.headers dd,
.attachments,
.attachments small {
  color: var(--muted) !important;
}
.panel-head,
.detail-head,
.headers,
.faq details,
.message-card {
  border-color: rgba(193, 255, 220, .13) !important;
}
.table-head {
  background: rgba(1, 6, 5, .78) !important;
  border-color: rgba(193, 255, 220, .12) !important;
  color: #bfffe4 !important;
}
.message-card {
  background: rgba(2, 8, 6, .22) !important;
  color: var(--ink) !important;
}
.message-card:hover,
.message-card.is-active {
  background: rgba(25, 230, 170, .09) !important;
}
.empty-mark {
  background: radial-gradient(circle, rgba(25, 230, 170, .18), rgba(25, 230, 170, .045)) !important;
}
.live-badge,
.signal-row span,
.advantage-grid span,
.message-card i,
.code-shelf span,
.code-shelf button,
.code-shelf a,
.risk-panel span,
.auth-proof span {
  background: rgba(255, 255, 255, .06) !important;
  border-color: rgba(193, 255, 220, .17) !important;
  color: #dffff0 !important;
}
.message-card .chip-code,
.code-shelf button {
  background: rgba(216, 255, 66, .13) !important;
  border-color: rgba(216, 255, 66, .26) !important;
  color: #efffb3 !important;
}
.message-card .chip-link,
.code-shelf a,
.message-card .chip-clean {
  background: rgba(25, 230, 170, .12) !important;
  border-color: rgba(25, 230, 170, .24) !important;
  color: #caffea !important;
}
.message-card .chip-attachment {
  background: rgba(105, 202, 255, .12) !important;
  border-color: rgba(105, 202, 255, .22) !important;
  color: #ccefff !important;
}
.message-card .chip-risk,
.risk-panel {
  background: rgba(255, 100, 120, .1) !important;
  border-color: rgba(255, 100, 120, .22) !important;
  color: #ffd4da !important;
}
.body-toggle button,
.message-frame,
pre {
  background: rgba(1, 6, 5, .86) !important;
  border-color: rgba(193, 255, 220, .15) !important;
  color: #dffff0 !important;
}
.body-toggle button[aria-pressed="true"] {
  background: rgba(25, 230, 170, .14) !important;
  color: #caffea !important;
}
@media (max-width: 1080px) {
  body { background: linear-gradient(180deg, #020403 0%, #050a08 44%, #07110f 100%) !important; }
}
@media (max-width: 720px) {
  body { background: linear-gradient(180deg, #020403 0%, #050a08 46%, #07110f 100%) !important; }
}

/* V3 background restoration */
body {
  background:
    radial-gradient(1040px 620px at 6% -12%, rgba(132, 255, 78, .32), rgba(25, 230, 170, .16) 34%, transparent 66%),
    radial-gradient(980px 500px at 38% -18%, rgba(25, 230, 170, .17), transparent 64%),
    radial-gradient(820px 460px at 88% -10%, rgba(0, 194, 154, .13), transparent 68%),
    linear-gradient(180deg, #07180f 0%, #03100d 36%, #020706 100%) !important;
}
body::before {
  opacity: .22 !important;
  background:
    linear-gradient(rgba(193, 255, 220, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(193, 255, 220, .055) 1px, transparent 1px) !important;
  background-size: 82px 82px !important;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 46%, transparent 78%) !important;
}
.ops-backdrop::before {
  opacity: .82 !important;
  background:
    radial-gradient(980px 520px at 13% 6%, rgba(132, 255, 78, .20), transparent 62%),
    radial-gradient(900px 430px at 42% 0%, rgba(25, 230, 170, .15), transparent 66%),
    radial-gradient(760px 400px at 84% 2%, rgba(0, 194, 154, .10), transparent 64%),
    linear-gradient(118deg, transparent 0 33%, rgba(25, 230, 170, .10) 33.2% 33.7%, transparent 34% 100%) !important;
}
.app-shell {
  background: linear-gradient(180deg, rgba(3, 13, 9, .38) 0%, rgba(3, 10, 8, .18) 60%, transparent 100%) !important;
}
.stream { opacity: .24 !important; }
@media (max-width: 1080px) {
  body {
    background:
      radial-gradient(760px 520px at 0% -10%, rgba(132, 255, 78, .28), rgba(25, 230, 170, .13) 36%, transparent 68%),
      linear-gradient(180deg, #07180f 0%, #03100d 42%, #020706 100%) !important;
  }
}
@media (max-width: 720px) {
  body {
    background:
      radial-gradient(520px 420px at -8% -8%, rgba(132, 255, 78, .24), rgba(25, 230, 170, .12) 36%, transparent 70%),
      linear-gradient(180deg, #07180f 0%, #03100d 44%, #020706 100%) !important;
  }
}

/* V3 transparent technical grid */
body::before {
  opacity: .46 !important;
  background:
    linear-gradient(104deg, transparent 0 12%, rgba(173, 255, 207, .045) 12.08% 12.18%, transparent 12.28% 100%),
    linear-gradient(104deg, transparent 0 29%, rgba(173, 255, 207, .038) 29.08% 29.18%, transparent 29.28% 100%),
    linear-gradient(104deg, transparent 0 47%, rgba(173, 255, 207, .046) 47.08% 47.18%, transparent 47.28% 100%),
    linear-gradient(104deg, transparent 0 69%, rgba(173, 255, 207, .036) 69.08% 69.18%, transparent 69.28% 100%),
    linear-gradient(78deg, transparent 0 18%, rgba(173, 255, 207, .032) 18.08% 18.18%, transparent 18.28% 100%),
    linear-gradient(78deg, transparent 0 42%, rgba(173, 255, 207, .038) 42.08% 42.18%, transparent 42.28% 100%),
    linear-gradient(78deg, transparent 0 66%, rgba(173, 255, 207, .030) 66.08% 66.18%, transparent 66.28% 100%),
    linear-gradient(rgba(193, 255, 220, .042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(193, 255, 220, .032) 1px, transparent 1px) !important;
  background-size:
    100% 100%, 100% 100%, 100% 100%, 100% 100%,
    100% 100%, 100% 100%, 100% 100%,
    148px 148px, 148px 148px !important;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,.74) 54%, rgba(0,0,0,.46) 84%, transparent 100%) !important;
}
body::after {
  opacity: .11 !important;
  background:
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(255, 255, 255, .20) 5px 6px),
    radial-gradient(circle at 9% 7%, rgba(132, 255, 78, .18), transparent 26rem) !important;
}
.ops-backdrop::before {
  opacity: .95 !important;
  background:
    radial-gradient(1120px 560px at 7% -8%, rgba(132, 255, 78, .27), rgba(25, 230, 170, .13) 38%, transparent 70%),
    radial-gradient(900px 420px at 38% -5%, rgba(25, 230, 170, .16), transparent 64%),
    linear-gradient(112deg, transparent 0 33%, rgba(25, 230, 170, .12) 33.2% 33.55%, transparent 33.8% 100%),
    linear-gradient(104deg, transparent 0 73%, rgba(193, 255, 220, .055) 73.05% 73.18%, transparent 73.35% 100%) !important;
}
.stream-a { left: 6% !important; top: -24% !important; opacity: .18 !important; }
.stream-b { left: 46% !important; top: -28% !important; opacity: .22 !important; }
.stream-c { left: 92% !important; top: -22% !important; opacity: .14 !important; }

/* V3 perspective glass grid */
.ops-backdrop::after {
  content: "";
  position: absolute;
  inset: -18% -8% -12%;
  pointer-events: none;
  opacity: .42;
  background:
    linear-gradient(105deg, transparent 0 8%, rgba(187, 255, 213, .045) 8.05% 8.14%, transparent 8.24% 100%),
    linear-gradient(105deg, transparent 0 22%, rgba(187, 255, 213, .040) 22.05% 22.14%, transparent 22.24% 100%),
    linear-gradient(105deg, transparent 0 38%, rgba(187, 255, 213, .050) 38.05% 38.15%, transparent 38.25% 100%),
    linear-gradient(105deg, transparent 0 58%, rgba(187, 255, 213, .040) 58.05% 58.14%, transparent 58.24% 100%),
    linear-gradient(105deg, transparent 0 80%, rgba(187, 255, 213, .035) 80.05% 80.14%, transparent 80.24% 100%),
    linear-gradient(76deg, transparent 0 14%, rgba(187, 255, 213, .040) 14.05% 14.14%, transparent 14.24% 100%),
    linear-gradient(76deg, transparent 0 36%, rgba(187, 255, 213, .045) 36.05% 36.14%, transparent 36.24% 100%),
    linear-gradient(76deg, transparent 0 62%, rgba(187, 255, 213, .035) 62.05% 62.14%, transparent 62.24% 100%),
    linear-gradient(rgba(187, 255, 213, .036) 1px, transparent 1px),
    linear-gradient(90deg, rgba(187, 255, 213, .028) 1px, transparent 1px);
  background-size:
    100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%,
    100% 100%, 100% 100%, 100% 100%,
    118px 118px, 118px 118px;
  transform: perspective(900px) rotateX(0deg) skewX(-8deg);
  transform-origin: 50% 0;
  mask-image:
    radial-gradient(ellipse at 18% 10%, rgba(0,0,0,.82), transparent 48%),
    linear-gradient(180deg, rgba(0,0,0,.54) 0%, rgba(0,0,0,.76) 52%, rgba(0,0,0,.44) 86%, transparent 100%);
  mix-blend-mode: screen;
}
body::before {
  opacity: .30 !important;
  background:
    linear-gradient(rgba(193, 255, 220, .034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(193, 255, 220, .028) 1px, transparent 1px) !important;
  background-size: 92px 92px !important;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.46) 0%, rgba(0,0,0,.64) 56%, rgba(0,0,0,.36) 88%, transparent 100%) !important;
}
