:root {
  --bg: #2B2019;
  --bg-deep: #201811;
  --surface: #3A2C22;
  --border: #5C4A3B;
  --ink: #F7EDE0;
  --muted: #CBB79E;
  --lime: #D9A441;
  --blue: #6FB1E8;
  --amber: #D9822E;
  --red: #ED7E5C;
  --max-width: 760px;
}

* { box-sizing: border-box; }

html { font-size: 100%; }

/* Text-size control scales the root, so every rem-based measurement in this
   file (headers, buttons, labels, spacing) grows together, not just body text. */
html.text-large { font-size: 120%; }
html.text-xlarge { font-size: 140%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.6;
}

.topbar, main, footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
}

.topbar { text-align: center; padding-bottom: 0; position: relative; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.icon-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { border-color: var(--blue); }

.icon-btn.listening {
  background: var(--red);
  border-color: var(--red);
  color: var(--bg-deep);
}

.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-mark {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

#greeting { margin: 0 0 0.25rem; font-size: 2.2rem; color: var(--lime); }

.search-form {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.4rem 0.4rem 1rem;
}

.search-icon { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }

.search-form input[type="search"] {
  flex: 1;
  border: none;
  background: none;
  padding: 0.5rem 0;
  font-size: 1rem;
  color: var(--ink);
  min-width: 0;
  min-height: 44px;
}

.search-form input[type="search"]::-webkit-search-cancel-button { display: none; }

.voice-search-status {
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
  margin: 0.4rem 0 0;
  text-align: left;
}

.search-results {
  text-align: left;
  margin-top: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.search-result-row {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  padding: 0.75rem 1rem;
  margin: 0;
  cursor: pointer;
}

.search-result-row:last-child { border-bottom: none; }
.search-result-row:hover { background: var(--bg-deep); }
.search-result-row strong { display: block; }
.search-result-row span { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 0.15rem; }

.search-empty {
  text-align: left;
  color: var(--muted);
  font-style: italic;
  padding: 0.75rem 1rem;
  margin: 0;
}

.theme-toggle-group {
  display: flex;
  align-items: stretch;
  gap: 0.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.25rem;
  flex-shrink: 0;
}

.theme-toggle-option {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--muted);
  padding: 0.4rem 0.4rem;
  margin: 0;
  min-height: 44px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}

.theme-toggle-option .tab-icon svg { width: 1.1em; height: 1.1em; }

.theme-toggle-option:hover { color: var(--ink); }

.theme-toggle-option[aria-pressed="true"] {
  background: var(--lime);
  color: var(--bg-deep);
}

.text-size-group {
  display: flex;
  align-items: stretch;
  gap: 0.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.25rem;
  flex-shrink: 0;
}

.text-size-option {
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--muted);
  padding: 0.3rem 0.3rem;
  margin: 0;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.1rem;
  cursor: pointer;
}

.text-size-option:hover { color: var(--ink); }

.text-size-glyph {
  font-weight: 700;
  line-height: 1;
}

.text-size-glyph.size-normal { font-size: 0.8rem; }
.text-size-glyph.size-large { font-size: 1.05rem; }
.text-size-glyph.size-xlarge { font-size: 1.35rem; }

.text-size-caption {
  font-size: 0.58rem;
  white-space: nowrap;
}

.text-size-option[aria-pressed="true"] {
  background: var(--lime);
  color: var(--bg-deep);
}

/* ---------- Profile & help dialogs ---------- */

.app-dialog {
  max-width: 480px;
  width: calc(100vw - 3rem);
  max-height: 85vh;
  max-height: 85dvh;
  margin: auto;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  overflow-y: auto;
}

.app-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.app-dialog h2 { margin-top: 0; }
.app-dialog h3 { margin-top: 1.5rem; }

.app-dialog .theme-toggle-group,
.app-dialog .text-size-group {
  margin-top: 0.5rem;
}

.danger-btn {
  background: var(--surface);
  border: 1px solid var(--red);
  color: var(--red);
}

.dialog-close {
  width: 100%;
  margin-top: 1.5rem;
}

.notice {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-left: 4px solid var(--blue);
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Icon tiles at every screen size (not just phones): six text-plus-icon
   tabs never fit on one line within this app's fixed-width column, on
   any device, so a single touch-friendly grid style avoids that instead
   of switching to a cramped, wrapping link row on wider screens. */
.tabs {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.tab-btn {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.75rem 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 72px;
  display: flex;
  text-align: center;
}

.tab-btn .tab-icon { font-size: 1.5rem; line-height: 1; display: inline-flex; }
.tab-btn .tab-icon svg { width: 1em; height: 1em; }
.tab-btn .tab-label { font-size: 0.78rem; line-height: 1.2; }

.tab-btn:hover { color: var(--ink); }

.tab-btn.active {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--bg-deep);
}

.tab-panel.hidden { display: none; }

@media (min-width: 560px) {
  .tab-btn { min-height: 84px; }
  .tab-btn .tab-icon { font-size: 1.7rem; }
  .tab-btn .tab-label { font-size: 0.85rem; }
}

/* ---------- Progressive disclosure ---------- */

.disclosure {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 1rem;
  overflow: hidden;
}

.disclosure summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 1.1rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  list-style: none;
}

.disclosure summary .tab-icon {
  display: inline-flex;
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
  color: var(--blue);
}

.disclosure summary .tab-icon svg { width: 1.1em; height: 1.1em; }

.disclosure summary::-webkit-details-marker { display: none; }

.disclosure summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--muted);
  font-weight: 700;
}

.disclosure[open] summary::before { content: "–"; }

.disclosure summary:hover { color: var(--blue); }

.disclosure-body {
  padding: 0.25rem 1.1rem 1.1rem;
}

.disclosure .contact-card:last-child { margin-bottom: 0; }

.disclosure-body h3 {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 1.25rem 0 0.5rem;
}

.disclosure-body h3:first-child { margin-top: 0; }

.glossary-list {
  margin: 1rem 0 0;
}

.glossary-list dt {
  font-weight: 700;
  color: var(--ink);
  margin-top: 1.1rem;
}

.glossary-list dt:first-child { margin-top: 0; }

.glossary-list dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.tip-list {
  margin: 0;
  padding-left: 1.3em;
}

.tip-list li {
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.tip-list li::marker {
  color: var(--blue);
}

.tip-list li:last-child { margin-bottom: 0; }

.panic-list {
  margin: 0;
  padding-left: 1.3em;
}

.panic-list li {
  color: var(--ink);
  margin-bottom: 1.1rem;
}

.panic-list li::marker {
  color: var(--red);
  font-weight: 700;
}

.panic-list li:last-child { margin-bottom: 0; }

.panic-list a {
  color: var(--blue);
  font-weight: 700;
}

.panic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 1.25rem 1.1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
}

.panic-card p { margin: 0; color: var(--ink); }

.panic-card .danger-btn {
  margin: 0;
  white-space: nowrap;
}

.protection-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--lime);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.5rem;
}

.protection-tile h2 {
  font-size: 1.1rem;
  margin: 0 0 0.8rem;
}

.protection-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.protection-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
}

.protection-item.is-done { color: var(--ink); }
.protection-item.is-todo { color: var(--muted); }

.protection-item .link-btn {
  color: var(--blue);
  font-weight: 700;
  text-align: left;
}

.protection-dot {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.protection-item.is-done .protection-dot {
  background: var(--lime);
  color: var(--bg-deep);
}

.protection-item.is-todo .protection-dot {
  border: 2px solid var(--border);
}

h2 { color: var(--ink); font-size: 1.4rem; margin: 0 0 0.75rem; }
h3 { color: var(--ink); font-size: 1.1rem; margin: 0 0 0.5rem; }

textarea {
  font-size: 1rem;
  padding: 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--ink);
  font-family: inherit;
  resize: vertical;
}

.scam-intro, .scam-outro {
  font-weight: 600;
  color: var(--ink);
}

.scam-empty-notice {
  color: var(--muted);
  font-style: italic;
}

.tip-date {
  color: var(--ink);
  font-weight: 700;
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.tip-card { padding: 1.5rem; }
.tip-card .tag { font-size: 0.95rem; display: block; margin-bottom: 0.5rem; }
.tip-card p { font-size: 1.1rem; }

.tip-footer {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

.tip-footer a {
  color: var(--blue);
  font-weight: 700;
}

.next-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.next-cta p { margin: 0; }
.next-cta button { margin: 0; white-space: nowrap; }

.next-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  width: 100%;
}

.next-cta-actions button,
.next-cta-actions .btn-message-us {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.next-cta-or {
  color: var(--muted);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.btn-message-us {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  border: none;
  background: var(--lime);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}

.btn-message-us:hover {
  filter: brightness(1.2);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

label { font-weight: 600; margin-top: 0.5rem; }

input, select, button {
  font-size: 1rem;
  padding: 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--ink);
  font-family: inherit;
  min-height: 44px;
}

button {
  margin-top: 0.75rem;
  background: var(--lime);
  color: var(--bg-deep);
  font-weight: 700;
  border: none;
  cursor: pointer;
  min-height: 44px;
}

button:not(:disabled):hover {
  filter: brightness(1.2);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.sample-alerts { margin-top: 2rem; }

.sample-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
}

.sample-card p { margin: 0.3rem 0 0; color: var(--ink); }

.sample-card-title {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  margin-top: 0.4rem;
}

.sample-card.urgent { border-left-color: var(--red); }
.sample-card.soon { border-left-color: var(--amber); }
.sample-card.notice { border-left-color: var(--blue); }
.sample-card.trending { border-left-color: var(--amber); }

.section-heading { margin-top: 2rem; }
.section-heading:first-of-type { margin-top: 1.5rem; }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.file-input-label {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.file-input-label:hover { border-color: var(--blue); }

#screenshot-input { display: none; }

.qr-scan-btn {
  text-align: left;
  font-weight: 400;
  margin: 0;
}

.qr-video-wrap {
  background: var(--bg-deep);
  border-radius: 10px;
  overflow: hidden;
  margin: 1rem 0;
}

#qr-video {
  display: block;
  width: 100%;
  max-height: 60vh;
  background: #000;
}

.hidden { display: none; }

.ocr-status {
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
}

footer {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding-bottom: 2.5rem;
}

footer .notice {
  text-align: left;
  margin-bottom: 1.5rem;
}

/* ---------- Light theme ---------- */

body.light-theme {
  --bg: #F5F3EE;
  --bg-deep: #FFFFFF;
  --surface: #FFFFFF;
  --border: #D9D4C7;
  --ink: #20242A;
  --muted: #5B5F63;
  --lime: #1B4F8A;
  --blue: #1B4F8A;
  --amber: #B36B00;
  --red: #C6433D;
}

body.light-theme .sample-card,
body.light-theme form {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ---------- Contact card (Who to call) ---------- */

.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
}

.contact-info p { margin: 0.2rem 0; font-size: 0.9rem; color: var(--muted); }
.contact-detail {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0.3rem;
}

.contact-card .read-aloud {
  flex-shrink: 0;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.85rem;
  padding: 0.4rem 0.7rem;
  margin: 0;
}

.passphrase-value {
  letter-spacing: 0.15em;
}

@media (max-width: 480px) {
  .contact-card {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-card .read-aloud {
    align-self: flex-end;
    margin-top: 0.75rem;
  }
}

.link-btn {
  background: none;
  border: none;
  color: var(--muted);
  text-decoration: underline;
  font-size: 0.85rem;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.example-row {
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ---------- Share / print ---------- */

.share-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.share-row button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.85rem;
  padding: 0.5rem 0.8rem;
  margin: 0;
}

/* ---------- Practice quiz ---------- */

.quiz-progress { color: var(--muted); font-size: 0.85rem; }
.quiz-message p { font-size: 1.05rem; }

.swipe-card {
  position: relative;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  transition: transform 0.25s ease;
}

.swipe-card.dragging {
  transition: none;
  cursor: grabbing;
}

.swipe-card.flying-left {
  transform: translateX(-160%) rotate(-16deg) !important;
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.swipe-card.flying-right {
  transform: translateX(160%) rotate(16deg) !important;
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.swipe-card.swipe-locked {
  pointer-events: none;
}

.swipe-stamp {
  position: absolute;
  top: 0.9rem;
  padding: 0.3rem 0.7rem;
  border: 3px solid currentColor;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
}

.swipe-stamp-scam {
  left: 0.9rem;
  color: var(--red);
  transform: rotate(-12deg);
}

.swipe-stamp-ok {
  right: 0.9rem;
  color: var(--lime);
  transform: rotate(12deg);
}

.swipe-hint {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  margin: 0.6rem 0 0;
}

.swipe-choices {
  justify-content: center;
  align-items: flex-start;
  gap: 2.2rem;
}

.swipe-choice-btn {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  padding: 0;
  min-height: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  transition: transform 0.12s ease;
}

.swipe-choice-btn:active { transform: scale(0.94); }

.swipe-choice-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  color: var(--accent);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.swipe-choice-circle svg { width: 26px; height: 26px; }

.swipe-choice-scam { --accent: var(--red); }
.swipe-choice-ok { --accent: var(--lime); }

.swipe-choice-btn:not(:disabled):hover .swipe-choice-circle {
  background: var(--accent);
  color: var(--bg-deep);
}

.swipe-choice-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .swipe-card,
  .swipe-card.flying-left,
  .swipe-card.flying-right {
    transition-duration: 0.001ms !important;
  }
}

.quiz-choices {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0;
}

.quiz-choices button {
  flex: 1;
  margin: 0;
}

.quiz-choices button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.redflag-choices {
  flex-direction: column;
}

.redflag-choices button {
  flex: none;
  text-align: left;
  white-space: normal;
}

.quiz-next-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.quiz-next-row button { margin: 0; }

/* ---------- Undo toast (for reversible destructive actions) ---------- */

.undo-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--ink);
  color: var(--bg-deep);
  border-radius: 10px;
  padding: 0.85rem 1rem 0.85rem 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  max-width: calc(100vw - 2rem);
}

.undo-toast.hidden { display: none; }

.undo-toast span { font-weight: 600; }

.undo-toast button {
  background: var(--lime);
  color: var(--bg-deep);
  margin: 0;
  flex-shrink: 0;
  padding: 0.5rem 0.9rem;
  min-height: 40px;
}

/* ---------- Focus visibility ---------- */

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

@media print {
  header, .notice, .tabs, #scam-check-form, .example-row, .sample-alerts, footer, .share-row, .undo-toast {
    display: none !important;
  }
  body { background: #FFFFFF; color: #000000; }
  .sample-card { border-color: #999; }
}
