/*
 * ScamSense · Styles
 * Colors and sizes are set once at the top (:root), then each part of the app has its own section.
 */
/* Layout: one phone-width column, app header on top, tab bar fixed at the bottom. */
:root {
  /* Midnight Navy: navy on warm white, with a gold accent */
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #5f6673;
  --line: #e3e5ea;
  --brand: #14213d;
  --brand-ink: #ffffff;
  --brand-soft: #eceef3;
  --gold: #c8932a;
  --amber: #e0a93b;
  --safe: #1f7a3e;
  --safe-bg: #e4f4e9;
  --warn: #9a5b00;
  --warn-bg: #fff2dc;
  --scam: #b42318;
  --scam-bg: #fde7e4;
  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120;
    --surface: #141c2f;
    --ink: #e8ecf4;
    --muted: #9aa4b8;
    --line: #263149;
    --brand: #e6ebf5;
    --brand-ink: #0b1120;
    --brand-soft: #1d2843;
    --gold: #e8b85a;
    --safe: #6fd394;
    --safe-bg: #12321f;
    --warn: #f5b95a;
    --warn-bg: #3a2a0e;
    --scam: #ff8a7e;
    --scam-bg: #3d1714;
    color-scheme: dark;
  }
}
/*
  Dark mode chosen in Settings: true black (Automatic keeps the dark navy above when the phone is dark).
 */
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #000000;
  --ink: #f2f2f2;
  --muted: #a6a6a6;
  --line: #333333;
  --brand: #ffffff;
  --brand-ink: #000000;
  --brand-soft: #000000;
  --safe: #6fd394;
  --safe-bg: #0f2417;
  --warn: #f5b95a;
  --warn-bg: #2a1f0a;
  --scam: #ff8a7e;
  --scam-bg: #2e100e;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
/* ===== New screens ===== */
.t-sos {
  background: var(--scam-bg);
  color: var(--scam);
}
.t-crypto {
  background: #f1eafe;
  color: #6b3fd4;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .t-crypto {
    background: #2a1f45;
    color: #c3a8ff;
  }
}
/*
  Dark mode chosen in Settings 
 */
:root[data-theme="dark"] .t-crypto {
  background: #2a1f45;
  color: #c3a8ff;
}
.tile-ic.sm {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.tile-ic.sm .ic {
  width: 22px;
  height: 22px;
}
.quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.qa {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line),
    0 1px 3px rgba(17, 24, 39, 0.05);
  min-height: 104px;
}
.qa b {
  font-size: 0.98rem;
  line-height: 1.25;
}
.qa:hover {
  box-shadow: 0 0 0 2px var(--brand);
}
.qa:focus-visible {
  outline: 3px solid var(--amber);
}
.progresscard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 0 0 1px var(--line);
}
.progresscard b {
  font-family: var(--display);
  font-size: 1.5rem;
}
.progresscard span {
  color: var(--muted);
  margin-inline-start: 6px;
}
.lead {
  font-size: 1.1rem;
  margin: 0;
}
.ticks {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ticks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ticks .ic {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--warn);
}
.ticks.ok .ic {
  color: var(--safe);
}
.qq {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
}
.qopts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qopt {
  font: inherit;
  text-align: start;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}
.qopt.right {
  border-color: var(--safe);
  background: var(--safe-bg);
}
.qopt.wrong {
  border-color: var(--scam);
  background: var(--scam-bg);
}
.qres {
  margin: 0;
  font-weight: 700;
}
.qres.good {
  color: var(--safe);
}
.qres.bad {
  color: var(--scam);
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.stats div,
.stats .stat {
  background: var(--surface);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
}
.stats b {
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stats span {
  color: var(--muted);
  font-size: 0.9rem;
}
.chat {
  gap: 12px;
}
.chatlog {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: calc(100dvh - 400px);
  min-height: 260px;
  max-height: 640px;
  overflow: auto;
  padding: 2px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}
.bubble .bgo {
  display: flex;
  margin-top: 10px;
  width: 100%;
  justify-content: space-between;
}
.bubble.typing i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  display: block;
  animation: tdot 1s infinite ease-in-out;
}
.bubble.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.bubble.typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes tdot {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
.sendbtn {
  width: 52px;
  height: 52px;
  padding: 0;
  flex: none;
  border-radius: 16px;
}
.sendbtn .ic {
  width: 22px;
  height: 22px;
}
.composer textarea {
  resize: none;
  max-height: 140px;
}
.chattools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.ctool {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand);
  padding: 4px 0;
}
.ctool .ic {
  width: 18px;
  height: 18px;
}
.ctool[disabled] {
  opacity: 0.4;
  cursor: default;
}
.ctool:focus-visible {
  outline: 3px solid var(--amber);
}
.bubble {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 18px;
  white-space: pre-wrap;
  line-height: 1.45;
}
.bubble.me {
  align-self: flex-end;
  background: var(--brand);
  color: var(--brand-ink);
  border-end-end-radius: 6px;
}
.bubble.ai {
  align-self: flex-start;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  border-end-start-radius: 6px;
}
.bubble.typing {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
}
.composer {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.composer textarea {
  min-height: 52px;
  flex: 1;
  box-sizing: border-box;
}
.note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: var(--warn-bg);
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0;
  font-size: 0.92rem;
}
.note .ic {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--warn);
}
textarea.short {
  min-height: 84px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.9rem;
}
.seg2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--line);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
}
.seg2 button {
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 10px;
  padding: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.seg2 button[aria-pressed="true"] {
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.plans {
  display: grid;
  gap: 12px;
}
@media (min-width: 600px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}
.plan-card.best {
  box-shadow: 0 0 0 2px var(--brand);
}
.price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price b {
  font-family: var(--display);
  font-size: 2.2rem;
}
.price span {
  color: var(--muted);
}
.lockscreen,
.onb {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-left, 0px));
  overflow: auto;
}
.lockbox,
.onb-box {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}
.lockowl,
.onb-ic {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}
.lockowl .ic,
.onb-ic .ic {
  width: 36px;
  height: 36px;
}
.onb-ic.owl {
  background: transparent;
}
.onb-ic.owl svg {
  width: 64px;
  height: 70px;
}
.lockbox h2,
.onb-box h2 {
  font-size: 1.6rem;
}
.dots {
  display: flex;
  gap: 10px;
}
.dots i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--muted);
}
.dots i.on {
  background: var(--brand);
  box-shadow: none;
}
.pad {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 12px;
}
.key {
  font: inherit;
  font-size: 1.6rem;
  font-weight: 700;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
}
.key:active {
  background: var(--brand-soft);
}
.lockbox .btn,
.onb-box .row {
  width: 100%;
}
.langgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.langbtn {
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.langbtn.on {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.onb-box .ticks {
  text-align: start;
  align-self: stretch;
}
.onb-dots {
  display: flex;
  gap: 8px;
}
.onb-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}
.onb-dots i.on {
  background: var(--brand);
  width: 22px;
  border-radius: 4px;
}
.checkrow.big {
  font-size: 1.1rem;
  font-weight: 700;
  justify-content: center;
}
/* Right-to-left (Arabic, Farsi) */
[dir="rtl"] body {
  font-family: "Vazirmatn", var(--body);
}
[dir="rtl"] .pagehead h1,
[dir="rtl"] .tile-tx b,
[dir="rtl"] h2,
[dir="rtl"] .hero .big {
  font-family: "Vazirmatn", var(--display);
}
[dir="rtl"] .chev,
[dir="rtl"] .backlink .ic {
  transform: scaleX(-1);
}
[dir="rtl"] .steps,
[dir="rtl"] .detail ul,
[dir="rtl"] .detail ol,
[dir="rtl"] .intel ul,
[dir="rtl"] .plan-block ol,
[dir="rtl"] .sendlist,
[dir="rtl"] .steps2 {
  padding-left: 0;
  padding-right: 1.2em;
}
[dir="rtl"] .langpick {
  padding: 0 10px 0 4px;
}
[dir="rtl"] .mono,
[dir="rtl"] input[inputmode="tel"],
[dir="rtl"] input[type="email"],
[dir="rtl"] input[inputmode="url"] {
  direction: ltr;
  unicode-bidi: isolate;
}
[dir="rtl"] .switch input:checked + span::after {
  transform: translateX(-20px);
}
[dir="rtl"] .switch span[aria-hidden]::after {
  left: auto;
  right: 3px;
}
:lang(zh) body,
:lang(ko) body {
  font-family:
    system-ui,
    -apple-system,
    "PingFang SC",
    "Apple SD Gothic Neo",
    "Noto Sans CJK SC",
    sans-serif;
}

#player {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 2px solid var(--brand);
  border-radius: 16px;
  padding: 8px 8px 8px 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  width: max-content;
  max-width: calc(100vw - 32px);
}
#player .pl-label {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
#player button {
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  min-width: 84px;
}
#player .pl-pause {
  background: var(--brand);
  color: var(--brand-ink);
}
#player .pl-stop {
  background: var(--scam-bg);
  color: var(--scam);
}
#toasts {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(160px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  z-index: 9;
  width: max-content;
  max-width: 90vw;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
.app {
  max-width: 620px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) max(16px, env(safe-area-inset-right, 0px))
    calc(96px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 16px;
}
header {
  display: flex;
  align-items: center;
  gap: 12px;
}
header svg {
  width: 40px;
  height: 44px;
  flex: none;
}
header h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  margin: 0;
  line-height: 1;
}
header {
  flex-wrap: wrap;
}
.langpick {
  margin-left: auto;
}
.langpick select {
  width: auto;
  max-width: 150px;
  padding: 6px 8px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.example-box {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: var(--brand-soft);
  border-radius: 12px;
  padding: 12px;
}
.example-box b {
  display: block;
}
.examplenote {
  background: var(--warn-bg);
  border-radius: 10px;
  padding: 8px 12px;
  margin: 0;
}
.linkbtn {
  all: unset;
  cursor: pointer;
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
}
input[type="file"] {
  padding: 10px;
  background: var(--surface);
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.thumb {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}
.thumb figcaption {
  font-size: 0.72rem;
  padding: 4px 6px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thumb-x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}
.sendlist {
  margin: 0;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sendlist li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.sendlist li::marker {
  font-weight: 800;
  color: var(--brand);
}
.sendlist li.best {
  border: 2px solid var(--brand);
  background: var(--brand-soft);
}
.besttag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: 999px;
  padding: 3px 8px;
}
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 24, 0.55);
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px max(12px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px))
    max(12px, env(safe-area-inset-left, 0px));
}
.modal {
  background: var(--surface);
  color: var(--ink);
  border-radius: 20px;
  padding: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 640px) {
  .modal-bg {
    align-items: center;
  }
}
.modal-ok {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--safe-bg);
  color: var(--safe);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 800;
}
.keepdoc {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border: 2px dashed var(--brand);
  border-radius: 12px;
  padding: 12px;
}
.keepdoc b {
  display: block;
}
.docbtn {
  align-self: flex-start;
  margin-top: 4px;
}
.docbtn.done {
  background: var(--safe);
  color: #fff;
}
.sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 4px 0;
  width: 100%;
}
.modal-h3 {
  font-family: var(--display);
  font-size: 1.25rem;
}
.hc-phone {
  border-color: var(--brand);
}
.hc-phone .hc-icon {
  background: var(--brand-soft);
}
.simbtns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.simbtns .small {
  width: 100%;
  margin-top: 4px;
}
.simgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  justify-items: center;
}
@media (min-width: 600px) {
  .simgrid {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    justify-items: stretch;
  }
}
.simgrid .card {
  width: 100%;
}
.phone {
  width: 290px;
  max-width: 100%;
  height: 580px;
  border-radius: 44px;
  background: #111;
  padding: 12px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #000;
  border-radius: 14px;
  z-index: 2;
}
.screen {
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.35;
}
.screen.home {
  background: linear-gradient(160deg, #24375f, #0b1120);
  color: #fff;
}
.screen.app {
  background: #fff;
  color: #111;
}
.screen.call {
  background: linear-gradient(180deg, #2b2b2e, #111);
  color: #fff;
}
.sb {
  display: flex;
  justify-content: space-between;
  padding: 14px 22px 0;
  font-weight: 600;
  font-size: 13px;
}
.lock-time {
  font-size: 64px;
  font-weight: 300;
  text-align: center;
  margin-top: 28px;
  line-height: 1;
}
.lock-date {
  text-align: center;
  font-size: 15px;
  opacity: 0.9;
}
.notifs {
  padding: 22px 10px;
}
.notif {
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}
.notif.in {
  animation: drop 0.4s ease;
}
@keyframes drop {
  from {
    transform: translateY(-14px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.msg-head {
  padding: 20px 16px 6px;
  font-size: 26px;
}
.msg-tabs {
  display: flex;
  gap: 6px;
  padding: 0 12px 10px;
  flex-wrap: wrap;
}
.msg-tabs span {
  background: #f2f2f7;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}
.msg-tabs span.on {
  background: #0a84ff;
  color: #fff;
}
.msg-row {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid #eee;
  animation: drop 0.4s ease;
}
.msg-row .av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1f7a3e;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: none;
}
.msg-row.junk .av {
  background: #b42318;
}
.msg-row b {
  display: block;
}
.msg-row span {
  color: #555;
  font-size: 13px;
}
.ss-tag {
  display: inline-block;
  margin-top: 4px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  background: #fde7e4;
  color: #b42318;
  border-radius: 6px;
  padding: 2px 6px;
}
.ss-tag.ok {
  background: #e4f4e9;
  color: #1f7a3e;
}
.msg-note {
  margin: 6px 12px;
  font-size: 12px;
  color: #666;
  background: #f2f2f7;
  border-radius: 10px;
  padding: 8px;
}
.call-top {
  text-align: center;
  padding-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.call-warn {
  background: #b42318;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  animation: drop 0.4s ease;
}
.call-num {
  font-size: 26px;
  font-weight: 500;
}
.call-sub {
  opacity: 0.75;
}
.call-btns {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding-bottom: 50px;
  text-align: center;
}
.call-btns small {
  display: block;
  margin-top: 6px;
}
.cb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
}
.cb.decline {
  background: #ff3b30;
}
.cb.accept {
  background: #34c759;
}
.steps2 {
  margin: 0;
  padding-left: 1.3em;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.steps2 li {
  transition: opacity 0.3s;
}
.steps2 li.pending {
  opacity: 0.35;
}
.steps2 li.done::marker {
  color: var(--safe);
  font-weight: 800;
}
.steps2 li.skip {
  opacity: 0.6;
}
.stepx {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
}
.stepx ul {
  margin: 4px 0 0;
  padding-left: 1.1em;
}
.mono {
  font-variant-numeric: tabular-nums;
}
.red {
  color: var(--scam);
}
.green {
  color: var(--safe);
}
.org-card {
  border: 2px solid var(--brand);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.org-head b {
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
}
.org-role {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}
.org-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--ink);
  text-decoration: none;
}
.org-line b {
  white-space: nowrap;
}
.status {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.status.on {
  background: var(--brand-soft);
  color: var(--brand);
}
h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 0;
}
h3 {
  margin: 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.9rem;
}
.label {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin: 0;
}
.btn {
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.btn[disabled] {
  opacity: 0.55;
  cursor: default;
}
.primary {
  background: var(--brand);
  color: var(--brand-ink);
}
.ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
}
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.row > .btn {
  flex: 1 1 160px;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
input,
textarea,
select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
textarea {
  min-height: 150px;
  resize: vertical;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-weight: 700;
}
.privacy {
  display: flex;
  gap: 10px;
  background: var(--brand-soft);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
}
.privacy b {
  color: var(--brand);
}

/* Daily report */
.hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero .big {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
.counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.count {
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.count b {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.count span {
  font-size: 0.85rem;
  font-weight: 700;
}
.c-scam {
  background: var(--scam-bg);
  color: var(--scam);
}
.c-warn {
  background: var(--warn-bg);
  color: var(--warn);
}
.c-safe {
  background: var(--safe-bg);
  color: var(--safe);
}
.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
  transition: width 0.3s;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.item > button {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  padding: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  cursor: pointer;
}
.item > button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: -3px;
}
.dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  font-size: 1.1rem;
}
.d-scam {
  background: var(--scam);
}
.d-warn {
  background: var(--warn);
}
.d-safe {
  background: var(--safe);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dot {
    color: #0b1f23;
  }
}
/*
  Dark mode chosen in Settings 
 */
:root[data-theme="dark"] .dot {
  color: #0b1f23;
}
.item .who {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item .subj {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item .why {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 2px;
}
.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 8px;
  margin-right: 6px;
}
.p-scam {
  background: var(--scam-bg);
  color: var(--scam);
}
.p-warn {
  background: var(--warn-bg);
  color: var(--warn);
}
.p-safe {
  background: var(--safe-bg);
  color: var(--safe);
}
.detail {
  padding: 0 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.detail ul,
.detail ol {
  margin: 0;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ai-box {
  background: var(--brand-soft);
  border-radius: 12px;
  padding: 12px;
}
.ai-box p {
  margin: 4px 0 0;
}

/* Verdict block (Check tab) */
.verdict {
  border-radius: 14px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.verdict h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1.15;
}
.verdict p {
  margin: 4px 0 0;
}
.v-scam {
  background: var(--scam-bg);
}
.v-scam h3 {
  color: var(--scam);
}
.v-warn {
  background: var(--warn-bg);
}
.v-warn h3 {
  color: var(--warn);
}
.v-safe {
  background: var(--safe-bg);
}
.v-safe h3 {
  color: var(--safe);
}
.seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--line);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.seg button {
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  border-radius: 9px;
  padding: 10px 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.seg button[aria-pressed="true"] {
  background: var(--surface);
}

nav.tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px))
    max(8px, env(safe-area-inset-left, 0px));
  z-index: 5;
}
nav.tabs .in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: 620px;
}
nav.tabs button {
  font: inherit;
  font-size: 0.9rem;
  min-width: 0;
  font-weight: 700;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  border-radius: 10px;
}
nav.tabs button svg {
  width: 28px;
  height: 28px;
}
nav.tabs button[aria-current="page"] {
  color: var(--brand);
}
.toast {
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
details summary {
  cursor: pointer;
  font-weight: 700;
}
details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.samples span {
  width: 100%;
}
.help-cards {
  display: grid;
  gap: 12px;
}
.help-card {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: var(--surface);
}
.help-card:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
.help-card b {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  margin-bottom: 2px;
}
.help-card span span {
  color: var(--muted);
  font-size: 0.95rem;
}
.hc-icon {
  font-size: 1.8rem;
  line-height: 1;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
}
.hc-pause {
  border-color: var(--warn);
}
.hc-pause .hc-icon {
  background: var(--warn-bg);
}
.hc-sos {
  border-color: var(--scam);
}
.hc-sos .hc-icon {
  background: var(--scam-bg);
}
.backbtn {
  align-self: flex-start;
  padding: 8px 14px;
  font-size: 0.95rem;
}
.btn.sm {
  padding: 8px 12px;
  font-size: 0.9rem;
  border-width: 1.5px;
}
.checks {
  border: 0;
  padding: 0;
  margin: 0;
}
.checks legend {
  font-weight: 700;
  margin-bottom: 6px;
  padding: 0;
}
.checkrow {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  font-weight: 400;
}
.checkrow input {
  width: 22px;
  height: 22px;
  flex: none;
  accent-color: var(--brand);
}
.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.pause-card {
  border-width: 3px;
}
.pc-scam {
  border-color: var(--scam);
}
.pc-warn {
  border-color: var(--warn);
}
.pc-safe {
  border-color: var(--safe);
}
.pause-head {
  display: flex;
  gap: 14px;
  align-items: center;
}
.pause-head h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1.1;
}
.pause-head p {
  margin: 2px 0 0;
}
.pause-hand {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  flex: none;
}
.pc-scam .pause-hand {
  background: var(--scam-bg);
}
.pc-scam h3 {
  color: var(--scam);
}
.pc-warn .pause-hand {
  background: var(--warn-bg);
}
.pc-warn h3 {
  color: var(--warn);
}
.pc-safe .pause-hand {
  background: var(--safe-bg);
  color: var(--safe);
}
.pc-safe h3 {
  color: var(--safe);
}
.plan h2 {
  margin-bottom: 2px;
}
.plan-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-block ol {
  margin: 0;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.urgent {
  background: var(--scam-bg);
  border-radius: 12px;
  padding: 12px;
}
.urgent .label {
  color: var(--scam);
}
.contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.contact b {
  display: block;
}
.contact-acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.warnline {
  background: var(--warn-bg);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0;
}
.script {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  white-space: pre-wrap;
}
.reporttxt {
  min-height: 240px;
  font-size: 0.92rem;
}
.titlerow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 4px 8px;
  border-radius: 999px;
}
.helper {
  display: flex;
  gap: 12px;
  align-items: center;
}
.helper b {
  display: block;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: none;
}
.phone-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
  border-radius: 18px;
  padding: 12px;
  border: 1px solid var(--line);
}
.alert {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border-radius: 14px;
  padding: 12px;
  border: 1px solid var(--line);
}
.alert p {
  margin: 2px 0 8px;
}
.alert .row {
  gap: 6px;
}
@media print {
  nav.tabs,
  #player,
  #toasts,
  header,
  .backbtn,
  .row,
  .btn,
  section.card:not(#splan *) {
    display: none !important;
  }
  #splan .card {
    border: 0;
  }
}
.steps {
  margin: 0;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
code {
  font-size: 0.85em;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 5px;
  word-break: break-all;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 24px 8px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
/* ===== Design pass: calmer surfaces, clear hierarchy, one icon style ===== */
body {
  font-size: 17px;
}
.app {
  gap: 18px;
}
.ic {
  width: 22px;
  height: 22px;
  flex: none;
}
header {
  gap: 10px;
  flex-wrap: nowrap;
  padding-bottom: 2px;
}
header svg:first-child {
  width: 34px;
  height: 38px;
}
header h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.langpick {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0 4px 0 10px;
  color: var(--muted);
}
.langpick .ic {
  width: 18px;
  height: 18px;
}
.langpick select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 7px 4px;
  max-width: 118px;
}
.status {
  font-size: 0.75rem;
  padding: 5px 9px;
}
.card {
  border: 0;
  box-shadow:
    0 0 0 1px var(--line),
    0 1px 3px rgba(17, 24, 39, 0.05);
  border-radius: 18px;
}
.pagehead {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}
.pagehead h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.pagehead p {
  margin: 0;
  color: var(--muted);
}
.backlink {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.95rem;
  margin-left: -4px;
  padding: 4px;
}
.backlink .ic {
  width: 20px;
  height: 20px;
}
.backlink:focus-visible {
  outline: 3px solid var(--amber);
  border-radius: 8px;
}
.sect {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.pagehead + .sect {
  margin-top: 4px;
}
.sect-h {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 2px;
}
.sect-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
details.sect > summary {
  list-style: none;
  cursor: pointer;
}
details.sect > summary::before {
  content: "▸ ";
}
details.sect[open] > summary::before {
  content: "▾ ";
}
.tiles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tile {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line),
    0 1px 3px rgba(17, 24, 39, 0.05);
}
.tile:hover {
  box-shadow: 0 0 0 2px var(--brand);
}
.tile:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
.tile-ic {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: none;
}
.tile-ic .ic {
  width: 26px;
  height: 26px;
}
.t-mail {
  background: #e8f0fe;
  color: #1a56c4;
}
.t-msg {
  background: #e4f4e9;
  color: #1f7a3e;
}
.t-call {
  background: #fff2dc;
  color: #9a5b00;
}
.t-dev {
  background: var(--brand-soft);
  color: var(--brand);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .t-mail {
    background: #1a2b48;
    color: #8ab4f8;
  }
  :root:not([data-theme="light"]) .t-msg {
    background: #12321f;
    color: #6fd394;
  }
  :root:not([data-theme="light"]) .t-call {
    background: #3a2a0e;
    color: #f5b95a;
  }
}
/*
  Dark mode chosen in Settings 
 */
:root[data-theme="dark"] .t-call {
  background: #3a2a0e;
  color: #f5b95a;
}
:root[data-theme="dark"] .t-msg {
  background: #12321f;
  color: #6fd394;
}
:root[data-theme="dark"] .t-mail {
  background: #1a2b48;
  color: #8ab4f8;
}
.tile-tx {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.tile-tx b {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
}
.tile-tx span {
  color: var(--muted);
  font-size: 0.95rem;
}
.chev {
  width: 20px;
  height: 20px;
  color: var(--muted);
}
.badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--bg);
  color: var(--muted);
  box-shadow: 0 0 0 1px var(--line);
  white-space: nowrap;
}
.tile-tx .badge.tb {
  align-self: flex-start;
  margin-bottom: 4px;
  font-size: 0.68rem;
}
.badge.ok {
  background: var(--safe-bg);
  color: var(--safe);
  box-shadow: none;
}
.today {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.today .sect {
  margin-top: 4px;
}
.sc {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line),
    0 1px 3px rgba(17, 24, 39, 0.05);
  position: relative;
  overflow: hidden;
}
.sc::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--sc, var(--brand));
}
.sc.sv-scam {
  --sc: var(--scam);
  --scb: var(--scam-bg);
}
.sc.sv-warn {
  --sc: var(--warn);
  --scb: var(--warn-bg);
}
.sc.sv-safe {
  --sc: var(--safe);
  --scb: var(--safe-bg);
}
.sc.sv-new {
  --sc: var(--brand);
  --scb: var(--brand-soft);
}
.sc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sc-main {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sc-badge {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--scb);
  color: var(--sc);
}
.sc-badge .ic {
  width: 30px;
  height: 30px;
}
.sc .big {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}
.tally {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tally button {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}
.tally button:hover {
  filter: brightness(0.96);
}
.tally button:focus-visible {
  outline: 3px solid var(--amber);
}
.seg.wide {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  scrollbar-width: none;
}
.seg.wide button {
  flex: 1 0 auto;
  text-align: center;
  padding: 6px 8px;
  font-size: 0.82rem;
}
.segn {
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}
.tally b {
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
}
.tally .ts {
  background: var(--scam-bg);
  color: var(--scam);
}
.tally .tw {
  background: var(--warn-bg);
  color: var(--warn);
}
.tally .tk {
  background: var(--safe-bg);
  color: var(--safe);
}
.sc .meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.sc .btn {
  width: 100%;
}
.sc .btnrow {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.seg {
  display: inline-flex;
  background: var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  all: unset;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}
.seg button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.seg button:focus-visible {
  outline: 3px solid var(--amber);
}
.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fab {
  all: unset;
  box-sizing: border-box;
  position: fixed;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: grab;
  box-shadow:
    0 6px 18px rgba(17, 24, 39, 0.28),
    0 0 0 3px var(--surface);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition:
    left 0.22s ease,
    top 0.22s ease,
    transform 0.15s ease;
}
.fab .ic {
  width: 22px;
  height: 22px;
}
.fab.dragging {
  transition: none;
  cursor: grabbing;
  transform: scale(1.06);
}
.fab:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
.fab[hidden] {
  display: none;
}
.footnote {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 2px;
}
.footnote .ic {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.footnote.center {
  display: block;
  text-align: center;
  line-height: 1.7;
}
.footnote a {
  color: var(--muted);
  font-weight: 700;
}
.group {
  background: var(--surface);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px var(--line),
    0 1px 3px rgba(17, 24, 39, 0.05);
  overflow: hidden;
}
.grow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  min-height: 60px;
  width: 100%;
  box-sizing: border-box;
}
.grow + .grow {
  border-top: 1px solid var(--line);
}
.grow.col {
  flex-direction: column;
  align-items: stretch;
}
.grow .gl {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.grow .gl b {
  font-weight: 700;
}
.grow .gl span {
  color: var(--muted);
  font-size: 0.9rem;
}
button.grow,
.linkrow {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  width: 100%;
  cursor: pointer;
  border-top: 1px solid var(--line);
}
.group > button.grow:first-child {
  border-top: 0;
}
.linkrow.danger .gl b,
.linkrow.danger .ic {
  color: var(--scam);
}
.pv {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--pv);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: none;
}
select.inline {
  width: auto;
  max-width: 55%;
  padding: 8px 10px;
  font-size: 0.95rem;
  background: var(--bg);
}
.lookup {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.lookup input {
  flex: 1;
  min-width: 0;
}
.lookup .btn {
  flex: none;
}
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 32px;
  flex: none;
  cursor: pointer;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}
.switch span[aria-hidden] {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 999px;
  transition: background 0.2s;
}
.switch span[aria-hidden]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}
.switch input:checked + span {
  background: var(--brand);
}
.switch input:checked + span::after {
  transform: translateX(20px);
  background: var(--brand-ink);
}
.switch input:focus-visible + span {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
.person .avatar {
  width: 40px;
  height: 40px;
}
.pacts {
  display: flex;
  gap: 6px;
  flex: none;
}
.iconbtn {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
}
.iconbtn .ic {
  width: 20px;
  height: 20px;
}
.iconbtn:focus-visible {
  outline: 3px solid var(--amber);
}
.iconbtn.danger {
  color: var(--scam);
}
.iconbtn.confirm {
  width: auto;
  padding: 0 10px;
  background: var(--scam);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: none;
}
.emptybox {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 26px 18px;
  border-radius: 18px;
  border: 2px dashed var(--line);
  color: var(--muted);
}
.emptybox .ic {
  width: 34px;
  height: 34px;
}
.emptybox b {
  color: var(--ink);
}
.addcard {
  box-shadow: 0 0 0 2px var(--brand);
}
.btn {
  border-radius: 14px;
}
.btn.sm {
  display: inline-flex;
  gap: 6px;
}
.btn.sm .ic {
  width: 18px;
  height: 18px;
}
.ghost {
  border-width: 1.5px;
}
.callhelper {
  background: var(--safe);
  color: #fff;
}
.callhelper .ic {
  width: 20px;
  height: 20px;
}
.intel {
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--bg);
}
.intel-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.intel-h .ic {
  width: 18px;
  height: 18px;
}
.intel-t {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}
.intel ul {
  margin: 0;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.intel-foot {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.lv-scam {
  background: var(--scam-bg);
  box-shadow: none;
}
.lv-scam .intel-t,
.lv-scam .intel-h {
  color: var(--scam);
}
.lv-warn {
  background: var(--warn-bg);
  box-shadow: none;
}
.lv-warn .intel-t,
.lv-warn .intel-h {
  color: var(--warn);
}
.lv-safe {
  background: var(--safe-bg);
  box-shadow: none;
}
.lv-safe .intel-t,
.lv-safe .intel-h {
  color: var(--safe);
}
.loading {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.result {
  gap: 14px;
}
#result:empty,
#lookres:empty {
  display: none;
}
#lookres {
  margin-top: 2px;
}
.help-card {
  border-width: 0;
  box-shadow:
    0 0 0 1px var(--line),
    0 1px 3px rgba(17, 24, 39, 0.05);
  border-radius: 18px;
}
.hc-icon .ic {
  width: 28px;
  height: 28px;
}
.hc-pause .hc-icon {
  color: var(--warn);
}
.hc-sos .hc-icon {
  color: var(--scam);
}
.pause-hand .ic {
  width: 30px;
  height: 30px;
}
.hero .big {
  font-size: 1.6rem;
}

/* Small text button inside a line of text (Email page: Disconnect) */
.textlink {
  all: unset;
  cursor: pointer;
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
}
.textlink:focus-visible {
  outline: 3px solid var(--amber);
}

/* On phones, hide the "Gmail connected" pill in the header so it doesn't crowd the language button */
@media (max-width: 480px) {
  header .status {
    display: none;
  }
}
/* Drop-down lists: the open list uses the app's own colors, so the words are readable in light and dark. */
select option,
select optgroup {
  background: var(--surface);
  color: var(--ink);
}

/* ===== Home: "What's happening?" and the three big buttons ===== */
.home-q {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 6px 2px 12px;
  color: var(--ink);
}
.acts {
  display: grid;
  gap: 12px;
}
.act {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 88px;
  padding: 16px;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line),
    0 2px 6px rgba(17, 24, 39, 0.06);
  border-inline-start: 6px solid var(--act, var(--brand));
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.act:active {
  transform: scale(0.99);
}
.act-ic {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--act-bg, var(--brand-soft));
  color: var(--act, var(--brand));
}
.act-ic .ic {
  width: 28px;
  height: 28px;
}
.act-tx {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.act-tx b {
  font-size: 1.18rem;
  line-height: 1.25;
}
.act-tx span {
  color: var(--muted);
  font-size: 0.95rem;
}
.act > .chev {
  color: var(--muted);
}
.a-check {
  --act: var(--brand);
  --act-bg: var(--brand-soft);
}
.a-pause {
  --act: var(--warn);
  --act-bg: var(--warn-bg);
}
.a-sos {
  --act: var(--scam);
  --act-bg: var(--scam-bg);
}

/* ===== Check something: one big box ===== */
.checkbox textarea {
  min-height: 170px;
  font-size: 1.1rem;
  line-height: 1.45;
}
.checkbox .btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.checkbox .btnrow .btn {
  flex: 1 1 140px;
  min-height: 54px;
  font-size: 1.08rem;
}
#cmic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#cmic .ic {
  width: 22px;
  height: 22px;
}
#cmic.on {
  background: var(--scam-bg);
  color: var(--scam);
  border-color: var(--scam);
}
.textlink.soon {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px auto 0;
}
.textlink.soon .ic {
  width: 16px;
  height: 16px;
}

/* ===== Settings: groups inside Advanced ===== */
.subsect {
  margin-bottom: 14px;
}
.sub-h {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 12px 4px 8px;
}

/* ===== Someone wants my money: big microphone ===== */
.bigmic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 150px;
  border: 0;
  border-radius: 22px;
  background: var(--brand);
  color: var(--brand-ink);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  padding: 18px;
}
.bigmic .ic {
  width: 52px;
  height: 52px;
  stroke-width: 1.6;
}
.bigmic.on {
  background: var(--scam);
  animation: micpulse 1.4s ease-in-out infinite;
}
@keyframes micpulse {
  50% {
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--scam) 25%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .bigmic.on {
    animation: none;
  }
}
.voicecard {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.voicecard .center {
  text-align: center;
  margin: 0;
}
details.more > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand);
  padding: 6px 0;
}
details.more[open] > summary {
  margin-bottom: 8px;
}
.btn.big {
  min-height: 56px;
  font-size: 1.1rem;
}

/* ===== Settings: "Your protection" card (same look in light, dark teal, and black) ===== */
.protect {
  background: var(--surface);
  color: var(--ink);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 0 1px var(--line);
}
.protect-top {
  display: flex;
  align-items: center;
  gap: 16px;
}
.protect h2 {
  font-family: var(--display);
  font-size: 1.3rem;
  margin: 0 0 2px;
}
.protect p {
  margin: 0;
  color: var(--muted);
}
.ring {
  --p: 0;
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--brand) calc(var(--p) * 360deg), var(--line) 0);
}
.ring b {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  font-size: 1.1rem;
}
.protect-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.protect-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border-radius: 14px;
  padding: 10px 12px;
  min-height: 52px;
}
.pl-ic {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
}
.pl-ic .ic {
  width: 18px;
  height: 18px;
}
.protect-list li.on .pl-ic {
  background: var(--safe-bg);
  color: var(--safe);
}
.pl-tx {
  flex: 1;
  font-weight: 700;
}
.protect-list li.on .pl-tx {
  color: var(--muted);
}

/* Settings rows: a small colored icon at the start */
.lead-ic {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--l-bg, var(--brand-soft));
  color: var(--l, var(--brand));
}
.lead-ic .ic {
  width: 20px;
  height: 20px;
}
.l-teal {
  --l: var(--brand);
  --l-bg: var(--brand-soft);
}
.l-red {
  --l: var(--scam);
  --l-bg: var(--scam-bg);
}
.l-amber {
  --l: var(--warn);
  --l-bg: var(--warn-bg);
}
.l-green {
  --l: var(--safe);
  --l-bg: var(--safe-bg);
}
.l-blue {
  --l: #1d63c9;
  --l-bg: #e3edfb;
}
.l-purple {
  --l: #6b3fd4;
  --l-bg: #efe8fd;
}
.l-gray {
  --l: var(--muted);
  --l-bg: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .l-blue {
    --l: #8db8ff;
    --l-bg: #172c4a;
  }
  :root:not([data-theme="light"]) .l-purple {
    --l: #c3a8ff;
    --l-bg: #2a1f45;
  }
}
:root[data-theme="dark"] .l-blue {
  --l: #8db8ff;
  --l-bg: #172c4a;
}
:root[data-theme="dark"] .l-purple {
  --l: #c3a8ff;
  --l-bg: #2a1f45;
}
/* Rows that open to show more (privacy, home screen) */
details.fold {
  padding: 0;
}
details.fold > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
}
details.fold > summary::-webkit-details-marker {
  display: none;
}
details.fold[open] > summary .chev {
  transform: rotate(90deg);
}
details.fold > p,
details.fold > ol {
  margin: 0 16px 14px;
  color: var(--muted);
}

/* ===== Send a text to ScamSense: numbered steps ===== */
.howto p {
  margin: 0 0 10px;
}
.steplist {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.steplist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.45;
}
.stepn {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
}
.howto code {
  word-break: break-all;
  background: var(--bg);
  border-radius: 6px;
  padding: 1px 5px;
  font-size: 0.85em;
}

/* ===== Lesson page ===== */
.lesson-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 14px;
}
.lh-ic {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
}
.lh-ic .ic {
  width: 34px;
  height: 34px;
}
.lh-kicker {
  margin: 0 0 4px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}
.lesson-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1.2;
}
.lesson-how {
  font-size: 1.15rem;
  line-height: 1.55;
  margin: 0 0 12px;
  color: var(--ink);
}
.readbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  margin-bottom: 16px;
}
.readbtn .ic {
  width: 18px;
  height: 18px;
}
.lcard {
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 0 0 1px var(--line);
  border-inline-start: 6px solid var(--lc, var(--brand));
}
.lcard h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--lc, var(--ink));
}
.lcard h2 .ic {
  width: 22px;
  height: 22px;
}
.lc-warn {
  --lc: var(--warn);
}
.lc-ok {
  --lc: var(--safe);
}
.lc-quiz {
  --lc: var(--brand);
}
.lsteps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
  display: grid;
  gap: 10px;
}
.lsteps li {
  counter-increment: s;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.45;
}
.lsteps li::before {
  content: counter(s);
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: var(--warn-bg);
  color: var(--warn);
}
.lchecks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.lchecks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.45;
}
.lchecks .ic {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--safe);
  margin-top: 1px;
}
.nextlesson {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: start;
}
.nextlesson .ic {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Monthly report: each number is a button that opens what it counts */
.stats .stat {
  all: unset;
  box-sizing: border-box;
  position: relative;
  cursor: pointer;
  background: var(--surface);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
}
.stats .stat:hover,
.stats .stat:focus-visible {
  box-shadow: 0 0 0 2px var(--brand);
}
.stats .stat .chev {
  position: absolute;
  top: 14px;
  inset-inline-end: 12px;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

/* ===== Check something: optional "what is it?" choices ===== */
.kindrow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.kind {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  min-height: 60px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.kind.on {
  box-shadow: 0 0 0 2px var(--brand);
  background: var(--brand-soft);
}
.kind:focus-visible {
  outline: 3px solid var(--amber);
}
.kindhint {
  margin: 0 2px 12px;
  color: var(--muted);
}
@media (min-width: 560px) {
  .kindrow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* Mahi: talk button beside the text box */
.micbtn {
  flex: none;
  width: 52px;
  height: 52px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
}
.micbtn .ic {
  width: 24px;
  height: 24px;
}
.micbtn.on {
  background: var(--scam);
  border-color: var(--scam);
  color: #fff;
  animation: micpulse 1.4s ease-in-out infinite;
}

/* Black mode: no teal. Buttons, switches and highlights are white on black. */
:root[data-theme="dark"] .fab {
  color: #000;
}
:root[data-theme="dark"] .switch input:checked + span::after {
  background: #000;
}
/* Which inbox an email came from */
.pill.src {
  background: var(--bg);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pill.src-gmail {
  color: #c5221f;
}
.pill.src-outlook {
  color: #0f6cbd;
}
:root:not([data-theme="light"]) .pill.src-gmail {
  color: #ff8a7e;
}
:root:not([data-theme="light"]) .pill.src-outlook {
  color: #8db8ff;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .pill.src-gmail {
    color: #c5221f;
  }
  :root:not([data-theme="dark"]) .pill.src-outlook {
    color: #0f6cbd;
  }
}
.seg.acct {
  margin-bottom: 8px;
}

/* Move to Spam / Block sender */
.btn.danger {
  background: var(--scam-bg);
  color: var(--scam);
  border: 1.5px solid currentColor;
}
.confirm-block {
  margin-top: 10px;
  border-color: var(--scam);
}
.blocked-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blocked-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.blocked-list li:first-child {
  border-top: 0;
}
details.fold > .fold-body {
  margin: 0 16px 14px;
}
details.fold > summary .gl span {
  font-weight: 400;
}

/* Black mode: everything is black, so soft boxes get a thin outline instead of gray. */
:root[data-theme="dark"] .lockowl,
:root[data-theme="dark"] .onb-ic,
:root[data-theme="dark"] .langbtn.on,
:root[data-theme="dark"] .langpick select,
:root[data-theme="dark"] .example-box,
:root[data-theme="dark"] .sendlist li.best,
:root[data-theme="dark"] .hc-phone .hc-icon,
:root[data-theme="dark"] .org-line,
:root[data-theme="dark"] .status.on,
:root[data-theme="dark"] .privacy,
:root[data-theme="dark"] .ai-box,
:root[data-theme="dark"] .tag,
:root[data-theme="dark"] .avatar,
:root[data-theme="dark"] .t-dev,
:root[data-theme="dark"] .pl-ic,
:root[data-theme="dark"] .stepn,
:root[data-theme="dark"] .lh-ic,
:root[data-theme="dark"] .kind.on,
:root[data-theme="dark"] .lead-ic,
:root[data-theme="dark"] .tile-ic {
  box-shadow: inset 0 0 0 1px var(--line);
}

/* =====================================================================
   Night Watch design: a navy top panel on Home, Family and Settings,
   the check box right on Home, and a floating tab bar.
   ===================================================================== */
:root {
  --hero: radial-gradient(120% 95% at 88% 0%, #2e4675 0%, #14213d 48%, #0b1120 100%);
  --hero-ink: #ffffff;
  --hero-muted: #b9c3d8;
  --hero-line: rgba(255, 255, 255, 0.16);
  --hero-glass: rgba(255, 255, 255, 0.09);
  --nav-bg: #14213d;
  --nav-ink: #9aa4b8;
  --nav-on-bg: rgba(255, 255, 255, 0.13);
  --nav-on-ink: #ffffff;
  --ask-shadow: 0 8px 0 #14213d;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --hero: radial-gradient(120% 95% at 88% 0%, #263a63 0%, #141f38 50%, #0b1120 100%);
    --nav-bg: #1d2843;
    --ask-shadow: 0 8px 0 #2b3a5c;
  }
}
:root[data-theme="dark"] {
  --hero: #000000;
  --hero-line: #333333;
  --hero-glass: #000000;
  --nav-bg: #000000;
  --nav-ink: #a6a6a6;
  --nav-on-bg: #ffffff;
  --nav-on-ink: #000000;
  --ask-shadow: none;
}

/* The navy panel reaches up behind the app header and out to the screen edges. */
.nw-hero {
  position: relative;
  overflow: hidden;
  margin: calc(-1 * (var(--headh, 70px) + 18px)) calc(-1 * max(16px, env(safe-area-inset-right, 0px))) 0
    calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  padding: calc(var(--headh, 70px) + 30px) max(20px, env(safe-area-inset-right, 0px)) 30px
    max(20px, env(safe-area-inset-left, 0px));
  background: var(--hero);
  color: var(--hero-ink);
  border-radius: 0 0 32px 32px;
}
:root[data-theme="dark"] .nw-hero {
  border-bottom: 1px solid var(--hero-line);
}
.nw-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 169, 59, 0.22), transparent 65%);
  pointer-events: none;
}
:root[data-theme="dark"] .nw-hero::after {
  display: none;
}
.nw-owl {
  position: absolute;
  right: max(18px, env(safe-area-inset-right, 0px));
  top: calc(var(--headh, 70px) + 22px);
  width: 76px;
  height: 82px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45));
}
.nw-owl svg {
  width: 100%;
  height: 100%;
}
.nw-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.nw-sub {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  max-width: 34ch;
  color: var(--hero-muted);
}
.nw-greet {
  margin: 0 0 6px;
  color: var(--hero-muted);
  font-size: 1.05rem;
}
.home-hero {
  padding-bottom: 26px;
}
.home-hero .nw-owl {
  width: 84px;
  height: 91px;
}
.home-hero h1 {
  font-size: 2.05rem;
  max-width: calc(100% - 100px);
}

/* Header on top of the navy panel: white text and a light owl */
body.tophero .app > header {
  position: relative;
  z-index: 2;
  color: var(--hero-ink);
}
body.tophero .app > header svg [fill="#14213D"] {
  fill: #f5f5f2;
}
body.tophero .app > header svg [fill="#2B3F6B"] {
  fill: #dadde5;
}
body.tophero .app > header svg circle[fill="#FFFFFF"] {
  fill: #14213d;
}
body.tophero .app > header svg circle[fill="#14213D"] {
  fill: #14213d;
}
body.tophero .app > header svg polyline {
  stroke: #14213d;
}
body.tophero .langpick {
  background: transparent;
  border-color: var(--hero-line);
  color: var(--hero-ink);
}
body.tophero .langpick select {
  color: var(--hero-ink);
  background: transparent;
  box-shadow: none;
}

/* Today's email status in the panel */
.nw-status {
  all: unset;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 22px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--hero-glass);
  border: 1px solid var(--hero-line);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.nw-status:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
.nw-status i {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2fa36b;
  color: #fff;
}
.nw-status i .ic {
  width: 19px;
  height: 19px;
}
.nw-status.warn i {
  background: #e0a93b;
  color: #14213d;
}
.nw-status.scam i {
  background: #e5484d;
}
.nw-status.off i {
  background: rgba(255, 255, 255, 0.16);
}
.nw-status span {
  flex: 1;
  min-width: 0;
}
.nw-status b {
  display: block;
  font-size: 1.02rem;
}
.nw-status small {
  display: block;
  color: var(--hero-muted);
  font-size: 0.88rem;
}
.nw-status .chev {
  color: var(--hero-muted);
}

/* The check box on Home, resting on the bottom of the panel */
.askcard {
  position: relative;
  padding: 16px;
  border-radius: 24px;
  background: var(--surface);
  border: 2px solid var(--brand);
  box-shadow: var(--ask-shadow);
}
.askcard:focus-within {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}
.askcard textarea {
  display: block;
  width: 100%;
  min-height: 92px;
  border: 0;
  outline: 0;
  resize: vertical;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.15rem;
  line-height: 1.45;
  padding: 2px 2px 10px;
  box-shadow: none;
}
.askcard textarea::placeholder {
  color: var(--muted);
}
.askcard .btnrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.askcard .btnrow .btn:only-child {
  grid-column: 1 / -1;
}
.ask-ex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* The two "help now" tiles */
.help2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.htile {
  all: unset;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 168px;
  padding: 18px 16px;
  border-radius: 24px;
  cursor: pointer;
  background: var(--tile-bg);
  color: var(--tile-deep);
  border: 1.5px solid transparent;
}
.htile:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
.htile:active {
  transform: scale(0.985);
}
.htile > .ic {
  width: 34px;
  height: 34px;
  stroke-width: 2;
  color: var(--tile-ink);
  margin-bottom: auto;
}
.htile b {
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.htile span {
  margin-top: 4px;
  font-size: 0.95rem;
  opacity: 0.85;
}
.h-pay {
  --tile-bg: #fff3dc;
  --tile-ink: #b26b00;
  --tile-deep: #5a3a00;
}
.h-sos {
  --tile-bg: #fdecea;
  --tile-ink: #c0352a;
  --tile-deep: #7a1a12;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .h-pay {
    --tile-bg: #33270f;
    --tile-ink: #f5b95a;
    --tile-deep: #ffe2ad;
  }
  :root:not([data-theme="light"]) .h-sos {
    --tile-bg: #3d1714;
    --tile-ink: #ff8a7e;
    --tile-deep: #ffd2cc;
  }
}
:root[data-theme="dark"] .h-pay {
  --tile-ink: #f5b95a;
  --tile-deep: #ffe2ad;
}
:root[data-theme="dark"] .h-sos {
  --tile-ink: #ff8a7e;
  --tile-deep: #ffd2cc;
}
:root[data-theme="dark"] .htile {
  background: #000;
  border-color: var(--tile-ink);
}
.ask-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.1rem;
}
.ask-h .ic {
  color: var(--brand);
}

/* Section titles: quiet sentence-case headings instead of small capitals */
.sect-h {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--ink);
}

/* Floating tab bar */
.app {
  padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
}
nav.tabs {
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  max-width: 520px;
  margin: 0 auto;
  padding: 7px;
  border: 0;
  border-radius: 24px;
  background: var(--nav-bg);
  box-shadow: 0 14px 34px rgba(11, 17, 32, 0.32);
}
:root[data-theme="dark"] nav.tabs {
  border: 1px solid var(--line);
  box-shadow: none;
}
nav.tabs .in {
  gap: 4px;
}
nav.tabs button {
  color: var(--nav-ink);
  border-radius: 17px;
  padding: 8px 4px 7px;
  font-family: var(--display);
}
nav.tabs button svg {
  width: 25px;
  height: 25px;
}
nav.tabs button[aria-current="page"] {
  color: var(--nav-on-ink);
  background: var(--nav-on-bg);
}
.home {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.home-q {
  margin: 6px 2px -4px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
[dir="rtl"] .nw-owl {
  right: auto;
  left: max(18px, env(safe-area-inset-left, 0px));
}
[dir="rtl"] .nw-hero h1,
[dir="rtl"] .htile b {
  font-family: "Vazirmatn", var(--display);
}

/* Wide screens: the app sits on a soft backdrop as one rounded panel, like a phone. */
@media (min-width: 700px) {
  html {
    background: var(--backdrop);
  }
  body {
    background: var(--backdrop);
  }
  .app {
    margin: 24px auto 0;
    min-height: calc(100vh - 24px);
    background: var(--bg);
    border-radius: 32px 32px 0 0;
    box-shadow:
      0 0 0 1px var(--line),
      0 30px 60px rgba(17, 24, 39, 0.08);
    overflow: hidden;
  }
  .nw-hero {
    margin-left: -16px;
    margin-right: -16px;
  }
}
:root {
  --backdrop: #eef0f4;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --backdrop: #070b16;
  }
}
:root[data-theme="dark"] {
  --backdrop: #000000;
}

/* Family: sample alerts shown as they'd appear on the trusted person's lock screen */
.lockscreen {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 14px 18px;
  border-radius: 28px;
  background: radial-gradient(120% 80% at 80% 0%, #3a5287 0%, #14213d 50%, #0b1120 100%);
  box-shadow:
    0 0 0 6px var(--surface),
    0 0 0 7px var(--line);
}
:root[data-theme="dark"] .lockscreen {
  background: #000;
  box-shadow: 0 0 0 1px var(--line);
}
.ls-time {
  margin: 2px 0 8px;
  text-align: center;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.fnotif {
  display: flex;
  gap: 11px;
  padding: 12px 13px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  color: #111827;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
:root[data-theme="dark"] .fnotif {
  background: #000;
  box-shadow: inset 0 0 0 1px #333;
  color: #f2f2f2;
}
:root[data-theme="dark"] .n-top b {
  color: #f2f2f2;
}
:root[data-theme="dark"] .n-scam .n-title {
  color: #ff8a7e;
}
:root[data-theme="dark"] .n-warn .n-title {
  color: #f5b95a;
}
.fnotif img {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.fnotif > div {
  min-width: 0;
}
.fnotif p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.38;
}
.n-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem !important;
  color: #5f6673;
}
.n-top b {
  color: #111827;
  font-weight: 700;
}
.n-title {
  font-weight: 700;
  margin: 1px 0 2px !important;
}
.n-scam .n-title {
  color: #b42318;
}
.n-warn .n-title {
  color: #8a5300;
}

/* Inner screens: a shorter navy panel with Back */
.sub-hero {
  padding-top: calc(var(--headh, 70px) + 18px);
  padding-bottom: 24px;
}
.sub-hero h1 {
  font-size: 1.75rem;
}
.sub-hero .nw-sub {
  font-size: 1rem;
  max-width: 44ch;
}
.sub-hero .backlink {
  color: var(--hero-ink);
  margin: 0 0 10px -4px;
}
.sub-hero .backlink .ic {
  color: var(--hero-ink);
}
.nw-hero {
  margin-bottom: 20px;
}
.home > .nw-hero {
  margin-bottom: 0;
}
.namerow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Tab bar hides while scrolling down */
nav.tabs {
  transition: transform 0.28s ease;
}
.fab {
  transition:
    left 0.22s ease,
    top 0.22s ease,
    transform 0.15s ease,
    opacity 0.2s ease;
}
body.navhide nav.tabs {
  transform: translateY(calc(100% + 30px));
}
body.navhide .fab {
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  nav.tabs,
  .fab {
    transition: none;
  }
}
/* A slimmer tab bar */
nav.tabs {
  padding: 5px;
  border-radius: 22px;
}
nav.tabs button {
  padding: 6px 4px 5px;
  font-size: 0.82rem;
  gap: 1px;
}
nav.tabs button svg {
  width: 23px;
  height: 23px;
}
#suspended {
  position: relative;
  z-index: 5;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--scam-bg);
  color: var(--scam);
  font-weight: 700;
  border: 1.5px solid var(--scam);
}

/* ===== Clean up my info ===== */
.ci-prog {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line);
  padding: 16px;
  margin-top: 4px;
}
.ci-prog-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.ci-prog-top b {
  font-family: var(--display);
  font-size: 1.15rem;
}
.ci-prog-top span {
  color: var(--muted);
  font-weight: 700;
}
.ci-bar {
  height: 10px;
  border-radius: 99px;
  background: var(--brand-soft);
  overflow: hidden;
}
.ci-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
  transition: width 0.4s ease;
}
.ci-how {
  list-style: none;
  counter-reset: ci;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.ci-how li {
  counter-increment: ci;
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 12px;
  align-items: start;
}
.ci-how li::before {
  content: counter(ci);
  grid-row: span 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.ci-how b {
  font-weight: 700;
}
.ci-how span {
  color: var(--muted);
}
.ci-site + .ci-site {
  border-top: 1px solid var(--line);
}
.ci-site > summary {
  list-style: none;
  cursor: pointer;
}
.ci-site > summary::-webkit-details-marker {
  display: none;
}
.ci-site > summary .chev {
  transition: transform 0.2s ease;
}
.ci-site[open] > summary .chev {
  transform: rotate(90deg);
}
[dir="rtl"] .ci-site > summary .chev {
  transform: scaleX(-1);
}
[dir="rtl"] .ci-site[open] > summary .chev {
  transform: rotate(90deg);
}
.ci-site > summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}
.ci-body {
  padding: 0 16px 16px 64px;
  display: grid;
  gap: 10px;
}
[dir="rtl"] .ci-body {
  padding: 0 64px 16px 16px;
}
.ci-body p {
  margin: 0;
}
.ci-body .btnrow,
.ci-leak .btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ci-step {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
}
.ci-step span {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}
.ci-stepitem {
  align-items: flex-start;
}
.ci-tick {
  all: unset;
  flex: none;
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border-radius: 9px;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: transparent;
}
.ci-tick .ic {
  width: 18px;
  height: 18px;
}
.ci-tick:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.ci-stepitem.done .ci-tick {
  background: var(--safe);
  border-color: var(--safe);
  color: #fff;
}
.ci-stepitem.done .gl b {
  text-decoration: line-through;
  text-decoration-color: var(--muted);
}
.ci-links {
  display: block;
  margin-top: 4px;
}
.ci-links a,
.ci-auto a {
  color: var(--ink);
  font-weight: 700;
}
.ci-leak,
.ci-auto {
  gap: 10px;
}
.ci-leak p,
.ci-auto p {
  margin: 0;
}
.ci-ok,
.ci-bad,
.ci-soon {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.ci-ok .ic {
  color: var(--safe);
  flex: none;
}
.ci-bad .ic {
  color: var(--scam);
  flex: none;
}
.ci-soon .ic {
  color: var(--gold);
}
.ci-breaches {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.ci-breaches li {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--scam-bg);
}
.ci-breaches li .small {
  display: block;
}
.ci-todo {
  margin: 0;
  padding-inline-start: 22px;
  display: grid;
  gap: 6px;
}
@media (prefers-reduced-motion: reduce) {
  .ci-bar i,
  .ci-site > summary .chev {
    transition: none;
  }
}

/* "Is my info out there?" checker and pop-up */
.ci-check input {
  font: inherit;
  font-size: 1.1rem;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  margin: 4px 0 12px;
}
.ci-check input:focus {
  outline: none;
  border-color: var(--brand);
}
.ci-check .btn {
  width: 100%;
}
.ci-last {
  all: unset;
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}
.ci-last .ic {
  width: 16px;
  height: 16px;
  flex: none;
}
.ci-last:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.ci-fold + .ci-fold {
  border-top: 1px solid var(--line);
}
.ci-fold > summary {
  list-style: none;
  cursor: pointer;
}
.ci-fold > summary::-webkit-details-marker {
  display: none;
}
.ci-fold > summary .chev {
  transition: transform 0.2s ease;
}
.ci-fold[open] > summary .chev {
  transform: rotate(90deg);
}
.ci-foldbody {
  padding: 0 12px 14px;
  display: grid;
  gap: 10px;
}
.ci-foldbody > p {
  margin: 0 4px;
}
.ci-foldbody .group {
  box-shadow: 0 0 0 1px var(--line);
}
.ci-foldbody .ci-body {
  padding-inline-start: 16px;
}
.ci-pop {
  border: 0;
  padding: 0 0 18px;
  width: min(440px, calc(100vw - 24px));
  max-height: calc(100vh - 48px);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.ci-pop::backdrop {
  background: rgba(11, 17, 32, 0.6);
}
.ci-pop > *:not(.ci-pop-head) {
  margin-left: 20px;
  margin-right: 20px;
}
.ci-pop h3 {
  font-family: var(--display);
  font-size: 1rem;
  margin-top: 18px;
  margin-bottom: 8px;
}
.ci-pop-head {
  background: var(--hero);
  color: var(--hero-ink);
  padding: 22px 20px 18px;
  margin-bottom: 14px;
}
.ci-pop-head h2 {
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1.2;
  margin: 10px 0 4px;
}
.ci-level {
  margin: 0 0 8px;
  color: var(--hero-muted);
}
.ci-pop-head.high .ci-level b {
  color: #ff8a7e;
}
.ci-pop-head.mid .ci-level b {
  color: #f5b95a;
}
.ci-pop-head.low .ci-level b {
  color: #6fd394;
}
.ci-meter {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, #3fb36b, #e8c547 50%, #e2553f);
  position: relative;
}
.ci-meter i {
  position: absolute;
  top: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
}
.ci-pop-head.low .ci-meter i {
  left: 12%;
}
.ci-pop-head.mid .ci-meter i {
  left: 55%;
}
.ci-pop-head.high .ci-meter i {
  left: 90%;
}
.ci-email {
  margin: 0;
  color: var(--hero-muted);
  word-break: break-all;
}
.ci-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.ci-chips span {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--brand-soft);
  color: var(--ink);
}
.ci-chips span.hot {
  background: var(--scam-bg);
  color: var(--scam);
}
.ci-chips.big span {
  font-size: 0.9rem;
  padding: 6px 12px;
}
.ci-blist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ci-bcard {
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line);
}
.ci-bline {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.ci-bline span {
  color: var(--muted);
  font-weight: 700;
}
.ci-pop-end .btn {
  width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  .ci-fold > summary .chev {
    transition: none;
  }
}
:root[data-theme="dark"] .ci-chips span:not(.hot) {
  box-shadow: inset 0 0 0 1px var(--line);
}
.ci-code {
  font: inherit;
  font-size: 1.6rem;
  letter-spacing: 0.3em;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  margin-bottom: 12px;
}
.ci-code:focus {
  outline: none;
  border-color: var(--brand);
}
.ci-pop .btnrow .btn {
  width: 100%;
}
.ci-kv {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0;
}
.ci-kv + .ci-kv {
  border-top: 1px solid var(--line);
}
.ci-kv span {
  color: var(--muted);
  font-size: 0.85rem;
}
.ci-pop {
  overflow-x: hidden;
}
.ci-pop .ci-code {
  display: block;
  width: calc(100% - 40px);
}
.ci-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--warn-bg);
  color: var(--ink);
}
.ci-kind {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: var(--brand-soft);
  margin: 4px 0 10px;
}
.ci-k {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 11px;
  font-weight: 700;
  color: var(--muted);
}
.ci-k .ic {
  width: 18px;
  height: 18px;
}
.ci-k[aria-checked="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.12);
}
:root[data-theme="dark"] .ci-k[aria-checked="true"] {
  box-shadow: inset 0 0 0 1px var(--line);
}
.ci-k:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.ci-field {
  position: relative;
}
.ci-field input {
  padding-right: 48px !important;
}
.ci-clear {
  all: unset;
  cursor: pointer;
  position: absolute;
  right: 8px;
  top: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--muted);
}
.ci-clear:focus-visible {
  outline: 3px solid var(--gold);
}
.ci-clear[hidden] {
  display: none;
}
.ci-cc {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(calc(-50% - 6px));
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
}
.ci-cc[hidden] {
  display: none;
}
.ci-check input.ph {
  padding-left: 48px;
}
.ci-pop > .ci-bar {
  margin-top: -6px;
  margin-bottom: 10px;
}
.ci-pop .btnrow.ci-pop-end {
  display: grid;
  gap: 8px;
}
.ci-skip {
  all: unset;
  cursor: pointer;
  text-align: center;
  padding: 8px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: underline;
}
.ci-skip:focus-visible {
  outline: 3px solid var(--gold);
}
a.grow {
  color: inherit;
  text-decoration: none;
  border-top: 1px solid var(--line);
}

/* Welcome: the sign-in screen */
.onb.onb-gate {
  padding: 0;
  align-items: stretch;
  background: var(--backdrop, var(--bg));
}
.gate-box {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.gate-hero {
  background: var(--hero);
  color: var(--hero-ink);
  padding: calc(16px + env(safe-area-inset-top, 0px)) 22px 34px;
  border-radius: 0 0 32px 32px;
  text-align: center;
}
.gate-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: start;
}
.gate-brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
}
.gate-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--hero-line);
  border-radius: 99px;
  padding: 4px 6px 4px 12px;
  background: var(--hero-glass);
}
.gate-lang .ic {
  width: 18px;
  height: 18px;
}
.gate-lang select {
  font: inherit;
  font-weight: 700;
  color: var(--hero-ink);
  background: transparent;
  border: 0;
  padding: 4px;
}
.gate-lang select option {
  color: #111827;
}
.gate-owl svg {
  width: 96px;
  height: 104px;
  margin: 26px auto 10px;
  display: block;
}
.gate-hero h1 {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 10px;
}
.gate-hero p {
  color: var(--hero-muted);
  font-size: 1.08rem;
  margin: 0 auto;
  max-width: 340px;
}
.gate-body {
  padding: 26px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gate-btn {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 0 18px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow:
    0 0 0 2px var(--line),
    0 2px 6px rgba(17, 24, 39, 0.06);
}
.gate-btn:hover {
  box-shadow: 0 0 0 2px var(--brand);
}
.gate-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.gate-logo {
  flex: none;
  width: 26px;
  height: 26px;
}
.gate-logo.g {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font-weight: 800;
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
  box-shadow: inset 0 0 0 1.5px #dadce0;
}
.gate-logo.ms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 2px;
}
.gate-logo.ms i:nth-child(1) {
  background: #f25022;
}
.gate-logo.ms i:nth-child(2) {
  background: #7fba00;
}
.gate-logo.ms i:nth-child(3) {
  background: #00a4ef;
}
.gate-logo.ms i:nth-child(4) {
  background: #ffb900;
}
.gate-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 6px 2px 0;
}
.gate-note .ic {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
}
.gate-demo {
  all: unset;
  cursor: pointer;
  align-self: center;
  padding: 10px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
}
.gate-demo:focus-visible {
  outline: 3px solid var(--gold);
}
.gate-fine {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}
.gate-fine a {
  color: inherit;
}

/* What's new */
.news-strip {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--hero-glass);
  border: 1px solid var(--hero-line);
  color: var(--hero-ink);
  text-align: start;
}
.news-strip:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.ns-tag {
  flex: none;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--gold);
  color: #14213d;
}
.ns-t {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ns-t small {
  color: var(--hero-muted);
  font-weight: 600;
}
.newdot {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--nav-bg, #14213d);
}
nav.tabs [data-tab="settings"] {
  position: relative;
}
.nbadge {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 12px;
  background: var(--gold);
  color: #14213d;
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  margin-inline-start: auto;
}
.wn-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.wn-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.wn-ic {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--ink);
}
.wn-ic .ic {
  width: 22px;
  height: 22px;
}
.k-new .wn-ic {
  background: var(--brand);
  color: var(--brand-ink);
}
.k-fixed .wn-ic {
  background: var(--safe-bg);
  color: var(--safe);
}
.wn-item h3 {
  font-family: var(--display);
  font-size: 1.08rem;
  margin: 2px 0 4px;
}
.wn-item p {
  margin: 0;
  color: var(--muted);
}
.wn-top {
  display: flex;
  gap: 8px;
  align-items: center;
}
.wn-kind {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ink);
}
.wn-new {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--gold);
  color: #14213d;
}
.wn-day + .wn-day {
  margin-top: 18px;
}

/* ----- Talk to the ScamSense team ----- */
#suplog {
  height: auto;
  min-height: 120px;
}
.bubble .who {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 2px;
}
.bubble .stime {
  display: block;
  font-size: 0.72rem;
  opacity: 0.7;
  margin-top: 4px;
}
.chatimg {
  display: block;
  max-width: 100%;
  max-height: 260px;
  min-height: 60px;
  min-width: 80px;
  margin-top: 8px;
  border-radius: 12px;
  background: var(--line);
  cursor: zoom-in;
  object-fit: contain;
}
.sysmsg {
  align-self: center;
  text-align: center;
  max-width: 92%;
  margin: 2px 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.sharedmail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sharedmail span {
  font-size: 0.88rem;
  opacity: 0.9;
  overflow-wrap: anywhere;
}
.sharebox {
  border: 1.5px solid var(--brand);
  border-radius: 14px;
  padding: 12px 14px;
}
.sharebox p {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
.pendingphoto {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pendingphoto img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}
.ctool.on {
  color: var(--scam);
}
.teamcard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  flex-direction: row; /* a phone rule turns .card into a column; this card stays a wrapping row */
  border: 1.5px solid var(--brand);
}
.teamcard div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 200px;
}
.supbanner {
  all: unset;
  box-sizing: border-box;
  position: fixed;
  z-index: 60;
  top: calc(env(safe-area-inset-top) + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 24px));
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.supbanner > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.supbanner > span > span {
  font-size: 0.88rem;
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.supbanner {
  border: 2px solid var(--amber);
}
.supbanner:focus-visible {
  outline: 3px solid var(--amber);
}

/* A real person in the Mahi chat */
.teamb {
  border: 1.5px solid var(--safe);
}
.livebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.92rem;
}
.livebar > span:nth-child(2) {
  flex: 1 1 200px;
}
.livebar .row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.livedot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}
.livedot.on {
  background: var(--safe);
  box-shadow: 0 0 0 4px rgba(46, 157, 90, 0.2);
}
.casebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.92rem;
}
.casebar .row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
#supconfirm .sharebox {
  margin-bottom: 8px;
}
.pastcases {
  margin-top: 10px;
}
.pastcases summary {
  cursor: pointer;
  font-weight: 700;
}
.pastlist {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pastlist button {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pastlist button span {
  font-size: 0.88rem;
  color: var(--muted);
}
.pastlist button:focus-visible {
  outline: 3px solid var(--amber);
}

/* ----- About you (name, date of birth, where you live) ----- */
.about-box {
  max-width: 520px;
}
.about-box .gate-body {
  text-align: left;
}
.about-box h1 {
  font: 800 1.6rem var(--display);
  margin: 0 0 6px;
  color: var(--ink);
}
.about-box form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.about-box label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
  color: var(--ink);
  flex: 1 1 0;
  min-width: 0;
}
.about-box input,
.about-box select {
  font: 400 1.05rem var(--body);
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px;
  min-height: 50px;
  width: 100%;
  box-sizing: border-box;
}
.about-box input:focus-visible,
.about-box select:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 1px;
}
.about-box fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.about-box legend {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.about-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.about-row > label {
  flex: 1 1 140px;
}
.about-row.three > label:first-child {
  flex: 2 1 140px;
}
.about-row.three > label {
  flex: 1 1 80px;
}
.about-err {
  color: var(--scam);
  font-weight: 700;
  min-height: 1.2em;
  margin: 0;
}
.about-box .primary-btn {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
  justify-content: center;
}
.onb-about {
  z-index: 90;
}

/* ----- Sign in, create an account ----- */
.gate-btn.primary-btn {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: none;
}
.gate-btn.danger-btn {
  background: var(--scam);
  color: #fff;
  box-shadow: none;
}
.gate-btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.gate-or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 0.95rem;
}
.gate-or::before,
.gate-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.gate-body form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gate-field,
.about-box form > label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 700;
  color: var(--ink);
}
.gate-field input,
.pwwrap input {
  font: 400 1.1rem var(--body);
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  min-height: 54px;
  width: 100%;
  box-sizing: border-box;
}
.gate-field input:focus-visible,
.pwwrap input:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 1px;
}
.codein {
  letter-spacing: 0.35em;
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  text-align: center;
}
.pwwrap {
  position: relative;
  display: block;
}
.pwwrap input {
  padding-right: 86px;
}
.pwshow {
  all: unset;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
}
.pwshow:focus-visible {
  outline: 3px solid var(--amber);
}
.pwrules {
  list-style: none;
  margin: -4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.95rem;
  color: var(--muted);
}
.pwrules li::before {
  content: "○ ";
  font-weight: 800;
}
.pwrules li.met {
  color: var(--safe);
}
.pwrules li.met::before {
  content: "✓ ";
}
.gate-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
}
.gate-check input {
  width: 24px;
  height: 24px;
  accent-color: var(--brand);
}
.gate-err {
  color: var(--scam);
  font-weight: 700;
  margin: 0;
  min-height: 0;
}
.gate-err:empty {
  display: none;
}
.gate-back {
  all: unset;
  cursor: pointer;
  align-self: flex-start;
  font-weight: 700;
  color: var(--ink);
  padding: 4px 2px;
}
.gate-back:focus-visible {
  outline: 3px solid var(--amber);
}
.gate-swap {
  text-align: center;
  color: var(--muted);
  margin: 0;
}
.gate-hero p b {
  color: #fff;
}

/* "Is this your mailbox?" */
#mbox-ask .about-lead {
  margin: 0 0 14px;
  font-size: 1.05rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#mbox-ask .gate-btn {
  margin-top: 8px;
}

/* About you: who's signed in, and a way out if it isn't them */
.about-who {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line, rgba(127, 127, 127, 0.25));
  text-align: center;
}
.about-who p {
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}

/* Settings: Sign out at the bottom */
.signout-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  margin: 8px 0 18px;
  font-size: 1.05rem;
}
.signout-bottom svg {
  width: 20px;
  height: 20px;
}
.whocard .grow .gl span {
  overflow-wrap: anywhere;
}

/* Scam risk percentage in the email list */
.pill.risk {
  text-transform: none;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  background: transparent;
  border: 1px solid currentColor;
}
.pill.risk-scam {
  color: var(--scam);
}
.pill.risk-warn {
  color: var(--warn);
}
.pill.risk-safe {
  color: var(--safe);
}

/* Which mailbox an email came from: show the address as written, shortened if long */
.pill.src {
  text-transform: none;
  letter-spacing: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.xwait {
  margin-bottom: 10px;
}
.xwait .btn {
  margin: 4px 6px 0 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.xadd .xbtns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

/* Email list: safe ads and newsletters folded into one group */
.adgroup {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.adgroup > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
}
.adgroup > summary::-webkit-details-marker {
  display: none;
}
.adgroup > summary .gl {
  flex: 1;
  min-width: 0;
}
.adgroup > summary .gl span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}
.adgroup > summary .chev {
  transition: transform 0.2s;
}
.adgroup[open] > summary .chev {
  transform: rotate(90deg);
}
.adgroup > .list {
  padding: 0 10px 10px;
}
.adg-ic {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--safe-bg);
  color: var(--safe);
}
.adg-ic svg {
  width: 18px;
  height: 18px;
}
/* Family: the team as helper */
.tmhform {
  display: grid;
  gap: 10px;
  padding: 4px 16px 16px;
}

/* Email leak result: the plan */
.ci-plan {
  list-style: none;
  padding: 0;
  margin: 8px 0 14px;
  display: grid;
  gap: 10px;
}
.ci-pstep {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.ci-pstep p {
  margin: 6px 0 0 36px;
  color: var(--muted);
  line-height: 1.45;
}
.ci-pstephead {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.ci-pstephead input {
  width: 22px;
  height: 22px;
  flex: none;
  accent-color: var(--safe);
}
.ci-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 800;
  font-size: 0.85rem;
  flex: none;
}
.ci-pstep.done {
  background: var(--safe-bg);
  border-color: transparent;
}
.ci-pstep.done b {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.ci-pstep.done .ci-num {
  background: var(--safe);
}
.ci-sitelist {
  margin: 8px 0 0 36px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ci-sitelist li {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 0.9rem;
}
.ci-sitelist li span {
  color: var(--muted);
}
.ci-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0 36px;
}
.ci-progress {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--safe);
  margin-left: 6px;
}
.ci-watch {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--brand-soft);
  margin: 6px 0 12px;
  cursor: pointer;
}
.ci-watch input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex: none;
}
.ci-watch span span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}
.ci-where summary {
  cursor: pointer;
  font-weight: 700;
  padding: 8px 0;
}
@media (max-width: 420px) {
  .ci-pstep p,
  .ci-sitelist,
  .ci-links {
    margin-left: 0;
  }
}

/* Automatic protection */
.pill.moved {
  background: var(--safe-bg);
  color: var(--safe);
  text-transform: none;
  letter-spacing: 0;
}
.automoved {
  background: var(--safe-bg);
}
/* Home: "Check for new emails" when the last check is old (41-auto-scan.js) */
.grow[data-due] {
  background: var(--brand-soft);
  box-shadow: inset 4px 0 0 var(--brand);
}
.grow[data-due] .gl b {
  font-weight: 800;
}
/* Long email lists: the browser skips drawing emails that are off screen until you scroll to them. */
.list > .item {
  content-visibility: auto;
  contain-intrinsic-size: auto 110px;
}
/* Settings: the optional PIN step is quieter than the steps that count */
.protect-list li.opt .pl-tx {
  opacity: 0.8;
}
/* New-device setup: long addresses wrap instead of running into the button */
.sd-list .gl {
  min-width: 0;
}
.sd-list .gl b {
  word-break: break-all;
}
/* Settings: short names for email accounts */
.bn-row {
  gap: 12px;
}
.bn-row .gl {
  min-width: 0;
}
.bn-row .gl b {
  word-break: break-all;
}
.bn-in {
  width: 9.5em;
  flex: 0 0 auto;
  font: inherit;
  padding: 10px 12px;
  border: 1.5px solid var(--line, #d0d4dc);
  border-radius: 10px;
  background: var(--card, #fff);
  color: inherit;
}
/* "Before Google opens" note */
.gh-steps {
  margin: 4px 0 10px;
  padding-left: 1.3em;
  text-align: left;
  line-height: 1.5;
}
.gh-steps li {
  margin: 6px 0;
}
/* "Another email address?": on phones the buttons go under the words instead of squeezing them */
@media (max-width: 520px) {
  .grow.xadd {
    flex-wrap: wrap;
  }
  .grow.xadd .gl {
    flex: 1 1 calc(100% - 64px);
    min-width: 0;
  }
  .grow.xadd .xbtns {
    flex: 1 1 100%;
    display: flex;
    gap: 8px;
    padding-left: 56px;
  }
  .grow.xadd .xbtns .btn {
    flex: 1 1 0;
  }
}
/* Settings: which email accounts automatic protection covers */
.ao-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.ao-list li {
  margin: 4px 0;
  line-height: 1.35;
}
.ao-list li small {
  color: var(--muted);
}
.ao-list li.ao-broken small {
  color: var(--warn, #b54708);
  font-weight: 700;
}
/* Settings: each section opens and closes with a tap on its title */
details.setsec > summary.setsec-h {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 14px 16px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  min-height: 52px;
}
details.setsec > summary.setsec-h::-webkit-details-marker {
  display: none;
}
details.setsec > summary.setsec-h .chev {
  transition: transform 0.15s ease;
  transform: rotate(90deg);
  flex: 0 0 auto;
}
details.setsec[open] > summary.setsec-h {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}
details.setsec[open] > summary.setsec-h .chev {
  transform: rotate(-90deg);
}
details.setsec > .group {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
details.setsec > summary.setsec-h:focus-visible {
  outline: 3px solid var(--focus, #2563eb);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  details.setsec > summary.setsec-h .chev {
    transition: none;
  }
}
details.setsec > summary.setsec-h::marker {
  content: "";
}
details.setsec > summary.setsec-h > span {
  flex: 1 1 auto;
  text-align: left;
}
details.setsec > summary.setsec-h::before {
  content: none;
}

/* Shield: safety code and recent activity */
.stepup { z-index: 9999; }
.stepup .su-badge { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 8px; background: var(--safe-bg); color: var(--safe); }
.stepup .su-badge svg { width: 28px; height: 28px; }
.sa-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 16px; max-height: 52vh; overflow: auto; text-align: left; }
.sa-item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.sa-item .gl { display: flex; flex-direction: column; min-width: 0; }
.sa-item .gl span { font-size: 14px; color: var(--muted); }
.sa-item.sa-stop { border-color: var(--scam); background: var(--scam-bg); }
.sa-foot { margin-top: 6px; }

/* Scam Weather (Home hero) */
.scamwx {
  all: unset;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 18px;
  background: var(--hero-glass);
  border: 1px solid var(--hero-line);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.scamwx:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.scamwx .wx-ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; font-size: 26px; line-height: 1; }
.scamwx .wx-tx { flex: 1; min-width: 0; }
.scamwx small { display: block; font-size: 0.84rem; opacity: 0.85; }
.scamwx b { display: block; font-size: 1rem; }
.scamwx.wx-storm { border-color: rgba(229, 72, 77, 0.7); }
.scamwx.wx-watch { border-color: rgba(224, 169, 59, 0.7); }
.wx-big { font-size: 54px; line-height: 1; text-align: center; margin-bottom: 6px; }
.wx-tip { background: var(--warn-bg); color: var(--ink); border-radius: 14px; padding: 12px 14px; margin: 10px 0 12px; font-size: 1.02rem; line-height: 1.5; }
