/* ══════════════════════════════════════════════════════════════════════
   Temp Inbox — dashboard-style UI
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #eaf1fb;
  --bg-2: #f6f9ff;
  --card: #ffffff;
  --panel-2: #f4f7fc;
  --text: #14213d;
  --muted: #64748b;
  --border: #cdd8e8;
  --border-2: #dde5f0;

  /* Blue is the primary accent everywhere — bright, saturated */
  --indigo: #2563eb;
  --indigo-soft: #e9f1ff;
  --accent: #2563eb;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --blue-soft: #e9f1ff;
  --grad: linear-gradient(180deg, #3b82f6, #2563eb);
  --grad-h: linear-gradient(180deg, #4f8ff8, #2f6ff0);

  --green: #16a34a;
  --green-soft: #e6f8ee;
  --purple: #2563eb;
  --purple-soft: #e9f1ff;
  --red: #ea4335;
  --red-soft: #fdecea;
  --orange: #f0821e;
  --orange-soft: #fdf0e2;
  --warn: #b8860b;
  --danger: #dc2626;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 2px 8px rgba(37, 99, 235, 0.05), 0 18px 50px rgba(37, 99, 235, 0.08);
  --shadow-sm: 0 1px 3px rgba(37, 99, 235, 0.08);
  color-scheme: light;
}

:root[data-theme='dark'],
:root[data-theme='auto'] { color-scheme: light; }

@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] {
    --bg: #0e1017; --card: #171a22; --panel-2: #1e222c; --text: #e6e9ef; --muted: #9aa3b2;
    --border: #262b36; --border-2: #222732;
    --indigo-soft: #1c2340; --green-soft: #12271d; --purple-soft: #241d3a;
    --red-soft: #2e1a18; --orange-soft: #2c2113; --blue-soft: #14203c;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0e1017; --card: #171a22; --panel-2: #1e222c; --text: #e6e9ef; --muted: #9aa3b2;
  --border: #262b36; --border-2: #222732;
  --indigo-soft: #1c2340; --green-soft: #12271d; --purple-soft: #241d3a;
  --red-soft: #2e1a18; --orange-soft: #2c2113; --blue-soft: #14203c;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* Always reserve the vertical scrollbar so content growing (async inbox) never
   narrows the viewport and shifts the centered layout — kills the CLS. */
html { overflow-y: scroll; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 30%, var(--bg-2) 100%);
  min-height: 100vh;
  color: var(--text);
  font: 14px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.mono, code, pre { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
[hidden] { display: none !important; }
h1, h2, h3 { letter-spacing: -0.02em; }

/* ── Navbar ─────────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 8px;
  padding: 0 20px; height: 74px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.5) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 11px; flex: none; padding-right: 10px; }
.nav-logo {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
  background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, 0.32);
}
.nav-name { display: flex; flex-direction: column; line-height: 1.15; }
.nav-name b { font-size: 16px; font-weight: 750; letter-spacing: -0.02em; color: var(--text); }
.nav-name small { font-size: 11.5px; color: var(--blue); font-weight: 600; }

.nav-menu { display: flex; align-items: center; gap: 2px; flex: 1; overflow-x: auto; padding-left: 4px; }
.nav-menu::-webkit-scrollbar { height: 0; }
.apptab {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 8px 12px; border-radius: 12px; border: 0; background: transparent;
  color: var(--text); font: inherit; cursor: pointer; transition: all .14s ease;
}
.tab-ic {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--blue-soft); color: var(--blue); transition: all .14s ease;
}
.tab-ic svg { width: 18px; height: 18px; }
.tab-tx { display: flex; flex-direction: column; line-height: 1.18; text-align: left; }
.tab-tx b { font-size: 13.5px; font-weight: 650; }
.tab-tx small { font-size: 11px; color: var(--muted); font-weight: 500; }
.apptab:hover { background: var(--panel-2); }
.apptab.is-active { background: var(--blue-soft); }
.apptab.is-active .tab-ic { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
.apptab.is-active .tab-tx b { color: var(--blue); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-toggle { display: none; }

.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
  border: 0; background: var(--blue-soft); color: var(--blue);
  cursor: pointer; font-size: 15px; transition: all .12s ease;
}
.icon-btn:hover { background: var(--grad); color: #fff; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px; font-size: 12.5px; color: var(--blue); font-weight: 600;
  background: var(--blue-soft); border: 0;
}
/* Lock the status pill width so its changing label doesn't reflow the navbar. */
#status-pill { min-width: 104px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.pill.is-live { color: var(--green); } .pill.is-live .dot { background: var(--green); }
.pill.is-warn { color: var(--warn); } .pill.is-warn .dot { background: var(--warn); }
.pill.is-error { color: var(--danger); } .pill.is-error .dot { background: var(--danger); }
.pill-timer { font-variant-numeric: tabular-nums; }
/* Fixed width so the countdown populating ("–" -> "expires in 59:52") doesn't
   reflow the button row and shift the inbox below it (the main CLS source). */
#countdown { min-width: 138px; justify-content: center; }

/* ── Page + cards ───────────────────────────────────────────────────── */
.page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 30px clamp(14px, 3vw, 40px) 60px; }
/* Reserve the full Temp Mail card height up front so revealing the inbox after
   auto-create never moves the footer (keeps CLS ~0). Over-reserved on purpose. */
#view-mail > .card { min-height: 700px; }
@media (max-width: 820px) { #view-mail > .card { min-height: 980px; } }
@media (min-width: 1500px) { .page { max-width: 1360px; } }
.view { display: flex; flex-direction: column; gap: 18px; }

.card {
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 34px;
}
@media (max-width: 640px) {
  .card { padding: 20px 18px; border-radius: 18px; }
  .page { padding-top: 18px; }
  .card-titles h1 { font-size: 18px; }
  .scan-score { flex-direction: column; text-align: center; gap: 12px; }
}
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.card-titles { flex: 1; }
.card-titles h1 {
  margin: 0; font-size: 21px; font-weight: 750; display: flex; align-items: center; gap: 10px;
}
/* the vertical blue bar accent before each heading, 2fa.cn style */
.card-titles h1::before {
  content: ''; width: 4px; height: 20px; border-radius: 3px; background: var(--grad); display: inline-block;
}
.card-titles p { margin: 5px 0 0; color: var(--muted); font-size: 13.5px; }
.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex: none;
  background: var(--blue-soft); color: var(--blue);
}
.i-mail, .i-totp, .i-scan, .i-gmail, .i-outlook, .i-fb { background: var(--blue-soft); color: var(--blue); }
.head-action { margin-left: auto; align-self: center; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 0;
  background: var(--panel-2); color: var(--text); font: inherit; font-weight: 650; cursor: pointer;
  transition: filter .12s ease, transform .08s ease, box-shadow .15s ease; white-space: nowrap;
}
.btn:hover:not(:disabled) { filter: brightness(1.02); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-soft { background: var(--blue-soft); color: var(--blue); }
.btn-ghost { background: transparent; padding: 9px 14px; }
.btn-ghost:hover { background: var(--panel-2); }
.btn.danger, .danger { color: var(--danger); }
.btn-primary, .btn-green, .btn-purple, .btn-orange, .btn-blue {
  background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}
.btn-primary:hover, .btn-green:hover, .btn-purple:hover, .btn-orange:hover, .btn-blue:hover {
  background: var(--grad-h);
}
.right { margin-left: auto; }

/* ── Inputs ─────────────────────────────────────────────────────────── */
input[type='text'], input[type='search'], input[type='password'], input[type='number'],
input[type='datetime-local'], select, textarea {
  padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: #fbfcfe; color: var(--text);
  font: inherit; width: 100%; transition: border-color .12s ease, box-shadow .12s ease;
}
select { cursor: pointer; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
/* Crystal-clear text + placeholders */
input, select, textarea { color: #0f1b33; font-weight: 500; }
::placeholder { color: #64748b; opacity: 1; font-weight: 500; }
::-webkit-input-placeholder { color: #64748b; opacity: 1; }
:-ms-input-placeholder { color: #64748b; }
.field-label { display: block; font-size: 13px; color: var(--text); font-weight: 600; margin: 2px 0 8px; }
.error { color: var(--danger); margin: 12px 0 0; }
.notice {
  margin: 14px 0 0; padding: 12px 15px; border-radius: var(--radius-sm);
  border: 0; border-left: 3px solid var(--blue);
  background: var(--blue-soft); color: #3f5b86;
}

/* ── Temp Mail ──────────────────────────────────────────────────────── */
.create-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 150px; }
.field.grow { flex: 1 1 220px; }
.field label { font-size: 12px; color: var(--muted); }

.email-box {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--panel-2);
}
.address { flex: 1; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; user-select: all; overflow-wrap: anywhere; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.btn-row .btn-primary, .btn-row .btn-soft { flex: 1 1 auto; }
.btn-row .pill-timer { flex: none; }

.newbar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 12px;
  padding: 14px; border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--border);
}
.newbar-field { display: flex; flex-direction: column; gap: 4px; }
.newbar-field label { font-size: 11px; color: var(--muted); }
.newbar-field input { width: 150px; } .newbar-at { align-self: center; color: var(--muted); padding-bottom: 8px; }

.savedbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.label { font-size: 12px; color: var(--muted); }
.saved-list { display: flex; flex-wrap: wrap; gap: 6px; }
.saved-chip { display: inline-flex; align-items: center; border: 1px solid var(--border); background: var(--panel-2); border-radius: 999px; overflow: hidden; }
.saved-switch { border: 0; background: transparent; color: var(--text); font: inherit; font-size: 12.5px; padding: 4px 6px 4px 12px; cursor: pointer; }
.saved-switch:hover { color: var(--indigo); }
.saved-x { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 2px 9px 2px 4px; }
.saved-x:hover { color: var(--danger); }

.layout { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 14px; align-items: start; margin-top: 16px; }
@media (max-width: 820px) { .layout { grid-template-columns: 1fr; } }

.list, .reader { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); overflow: hidden; }
.list { max-height: 460px; display: flex; flex-direction: column; }
.list-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.list-title { font-weight: 650; }
.count-badge { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--panel-2); color: var(--muted); font-size: 11.5px; font-weight: 600; }
.autorefresh { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }

.email-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.email-item { display: block; width: 100%; text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--border-2); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.email-item:hover { background: var(--panel-2); }
.email-item.is-active { background: var(--indigo-soft); box-shadow: inset 3px 0 0 var(--indigo); }
.email-item.is-unread .ei-subject { font-weight: 700; }
.email-item.is-unread .ei-sender::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--indigo); }
.ei-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ei-sender { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ei-time { font-size: 11.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ei-subject { margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ei-preview { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ei-clip { font-size: 11px; color: var(--muted); }

.empty { padding: 40px 18px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.empty-emoji { font-size: 32px; opacity: .7; }
.empty strong { color: var(--text); }
.reader { min-height: 300px; display: flex; flex-direction: column; }
.reader-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 16px 18px 10px; border-bottom: 1px solid var(--border); }
.reader-head h2 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.reader-actions { display: flex; gap: 6px; flex: none; }
.meta { margin: 0; padding: 12px 18px; display: grid; gap: 4px; border-bottom: 1px solid var(--border); }
.meta > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.meta dt { color: var(--muted); font-size: 12px; }
.meta dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; }
.auth-ok { color: var(--green); } .auth-bad { color: var(--danger); } .auth-unknown { color: var(--muted); }
.attachments { padding: 12px 18px; border-bottom: 1px solid var(--border); }
.attachments h3 { margin: 0 0 8px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.attachments ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.attachments li { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--panel-2); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; }
.attachments .blocked { color: var(--danger); }
.tabs { display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.tab { padding: 5px 11px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.tab.is-active { background: var(--panel-2); border-color: var(--border); color: var(--text); }
.view-pane { flex: 1; margin: 0; }
#html-frame { width: 100%; height: 56vh; min-height: 320px; border: 0; background: #fff; display: block; }
#view-text { padding: 16px 18px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.headers-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.headers-table td { padding: 5px 18px; border-bottom: 1px solid var(--border-2); vertical-align: top; overflow-wrap: anywhere; }
.headers-table td:first-child { color: var(--muted); white-space: nowrap; width: 190px; }
.footnote { margin: 16px 0 0; text-align: center; }

/* ── 2FA ────────────────────────────────────────────────────────────── */
.totp-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.totp-row input, .totp-secret-in { flex: 1 1 340px; font-size: 16px; padding: 16px 18px; }
.totp-secret-in {
  resize: vertical; min-height: 92px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14.5px;
}
.totp-row .btn { padding: 16px 30px; font-size: 15px; align-self: stretch; }
.totp-adv { margin-top: 12px; }
.totp-adv summary { cursor: pointer; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.totp-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.totp-opts label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.totp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.totp-card { padding: 20px 22px; }
.totp-card.is-expiring .totp-code { color: var(--warn); }
.totp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.totp-label { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.totp-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 46px; font-weight: 800; letter-spacing: .08em; margin: 10px 0 12px; user-select: all; font-variant-numeric: tabular-nums; color: var(--blue); cursor: pointer; }
.totp-secret-key { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; cursor: pointer; }
.totp-secret-key code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; letter-spacing: .04em; word-break: break-all; color: var(--text); background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 3px 8px; }
.totp-secret-key:hover code { border-color: var(--accent); color: var(--accent); }
.totp-bar { height: 4px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.totp-bar span { display: block; height: 100%; background: var(--grad); transition: width 1s linear; }
.totp-card.is-expiring .totp-code { color: var(--warn); }
.totp-card.is-expiring .totp-bar span { background: var(--warn); }
.totp-foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.totp-foot .btn { padding: 5px 12px; font-size: 12px; }
.totp-foot .muted { margin-right: auto; }

.empty-card { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 48px 20px; background: var(--blue-soft); border-color: transparent; }
.empty-shield { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; background: #fff; color: var(--blue); box-shadow: 0 6px 16px rgba(37,99,235,.18); }
.empty-card strong { color: var(--blue); font-size: 16px; }

/* ── Browser Check ──────────────────────────────────────────────────── */
/* Big percentage score, browserscan-style */
.scan-score { display: flex; align-items: center; gap: 22px; padding: 4px 0 20px; margin-bottom: 4px; border-bottom: 1px solid var(--border-2); }
.score-ring { width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: background .4s ease; }
.score-inner { width: 84px; height: 84px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 1px #eef2f8; }
.score-inner span { font-size: 30px; font-weight: 800; line-height: 1; }
.score-inner i { font-size: 12px; color: var(--muted); font-style: normal; margin-top: 2px; }
.score-tx strong { font-size: 18px; display: block; }
.score-tx #score-sub { margin-top: 4px; max-width: 60ch; }

.scan-flags { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.flag { display: flex; flex-direction: column; gap: 4px; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); border-left-width: 4px; background: #fff; }
.flag strong { font-size: 14.5px; font-weight: 700; }
.flag span { color: #334155; font-size: 13px; }
.flag-ok { border-left-color: var(--green); background: #f2fbf6; } .flag-ok strong { color: #15803d; }
.flag-info { border-left-color: var(--blue); background: #f1f6ff; } .flag-info strong { color: var(--blue-2); }
.flag-warn { border-left-color: #f59e0b; background: #fff8ec; } .flag-warn strong { color: #b45309; }
.flag-bad { border-left-color: var(--danger); background: #fef2f2; } .flag-bad strong { color: #b91c1c; }
.report-heading { margin: 26px 0 4px; font-size: 15px; font-weight: 700; color: var(--text); padding-top: 20px; border-top: 1.5px solid var(--border); }
.scan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 16px; }
.scan-card { padding: 16px 18px; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.scan-card h3 { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); font-weight: 700; padding-bottom: 8px; border-bottom: 1.5px solid var(--border-2); }
.scan-card dl { margin: 0; display: grid; gap: 9px; }
.scan-card dl > div { display: grid; grid-template-columns: 40% 1fr; gap: 10px; align-items: baseline; }
.scan-card dt { font-size: 12.5px; color: #475569; font-weight: 600; }
.scan-card dd { margin: 0; font-size: 12.5px; color: #0f1b33; font-weight: 600; overflow-wrap: anywhere; font-family: ui-monospace, Menlo, Consolas, monospace; }
.scan-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; border: 1px solid var(--border); background: var(--card); color: var(--muted); }
.badge.live { color: var(--green); } .badge.dead { color: var(--danger); }

/* ── Gmail / Outlook ────────────────────────────────────────────────── */
.oauth-note { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13px; border: 1px solid var(--border); border-left: 3px solid var(--muted); margin-bottom: 14px; }
.oauth-note strong { display: block; margin-bottom: 2px; }
.note-gmail { background: var(--orange-soft); border-left-color: var(--orange); }
.note-outlook { background: var(--blue-soft); border-left-color: var(--blue); }
.oauth-form { display: flex; flex-direction: column; gap: 10px; }
.oauth-combo { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; resize: vertical; overflow-wrap: anywhere; }
.oauth-form button { align-self: flex-start; }
.oauth-inbox { padding: 0; overflow: hidden; }
.oauth-inbox-head { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.oauth-inbox-head h3 { margin: 0; font-size: 15px; }
.oauth-list { list-style: none; margin: 0; padding: 0; }
.oauth-msg { padding: 12px 18px; border-bottom: 1px solid var(--border-2); }
.oauth-msg:last-child { border-bottom: 0; }
.oauth-msg.is-unread .oauth-subj { font-weight: 700; }
.oauth-msg.is-unread .oauth-from::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--indigo); }
.oauth-msg-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.oauth-from { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oauth-subj { margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oauth-snip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Live/Die Facebook checker ──────────────────────────────────────── */
.card-accent-fb .card-icon.i-fb { background: var(--indigo-soft); color: var(--indigo); }
.note-fb { background: var(--indigo-soft); border-left-color: var(--indigo); }
#fb-form { display: flex; flex-direction: column; gap: 10px; }
#fb-input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; resize: vertical; }
#fb-form button { align-self: flex-start; }

.fb-results { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .fb-results { grid-template-columns: 1fr; } }
.fb-col { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.fb-col-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-weight: 650; border-bottom: 1px solid var(--border); }
.fb-live-head { color: var(--green); background: var(--green-soft); }
.fb-die-head { color: var(--danger); background: var(--red-soft); }
.fb-list { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow-y: auto; }
.fb-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border-2); }
.fb-item:last-child { border-bottom: 0; }
.fb-avatar { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--panel-2); flex: none; }
.fb-avatar-none { display: grid; place-items: center; color: var(--muted); font-size: 16px; }
.fb-item-body { flex: 1; min-width: 0; }
.fb-id { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-open { font-size: 12px; color: var(--indigo); text-decoration: none; white-space: nowrap; }
.fb-open:hover { text-decoration: underline; }

.page-foot { text-align: center; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 12px; }
.foot-links a { color: var(--blue); text-decoration: none; font-size: 13px; font-weight: 600; }
.foot-links a:hover { text-decoration: underline; }

/* ── Toast ──────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px;
  font-size: 13px; box-shadow: var(--shadow); z-index: 50;
}

/* ── Responsive nav ─────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .nav-name { display: none; }
  .nav-menu { position: fixed; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; background: var(--card); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); transform: translateY(-140%); transition: transform .2s ease; }
  .nav-menu.open { transform: translateY(0); }
  .nav-toggle { display: grid; }
  .nav-actions .pill { display: none; }
}
