:root {
  color-scheme: light;
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --surface-2: #EEF0F3;
  --ink: #17202A;
  --muted: #5D6875;
  --line: #E2E5EA;
  --accent: #1F5C4A;
  --accent-ink: #FFFFFF;
  --accent-soft: #E3EFEA;
  --card: #F2C14E;
  --card-ink: #2B2208;
  --danger: #B3261E;
  --radius-s: 6px;
  --radius-m: 10px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-w: 232px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #11161B;
    --surface: #182028;
    --surface-2: #1F2832;
    --ink: #E6EAEE;
    --muted: #97A2AE;
    --line: #27313B;
    --accent: #74C5A6;
    --accent-ink: #0D1A15;
    --accent-soft: #1C3229;
    --danger: #F2938C;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.boot { padding: 40vh 0; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: var(--nav-w) 1fr; min-height: 100%; }
.nav {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 2px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 12px 16px;
  background: var(--surface); border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font-weight: 600; font-size: 16px; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav a.link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-s);
  color: var(--muted); text-decoration: none; font-weight: 500;
}
.nav a.link svg { width: 18px; height: 18px; flex: none; }
.nav a.link:hover { background: var(--surface-2); color: var(--ink); }
.nav a.link.active { background: var(--accent-soft); color: var(--ink); }
.nav a.scan-link { margin-top: 14px; background: var(--card); color: var(--card-ink); }
.nav a.scan-link:hover, .nav a.scan-link.active { background: var(--card); color: var(--card-ink); filter: brightness(0.96); }
.nav .spacer { flex: 1; }
.nav .me { padding: 10px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 8px; }
.nav .me strong { display: block; color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }

main { min-width: 0; padding: calc(24px + env(safe-area-inset-top, 0px)) 32px 48px; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 22px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.page-head .count { color: var(--muted); font-size: 14px; }
.page-head .grow { flex: 1; }

/* ---------- Controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 6px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface); color: var(--ink);
  font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.card { background: var(--card); border-color: var(--card); color: var(--card-ink); }
.btn.danger { color: var(--danger); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn:disabled { opacity: .55; cursor: default; }
.btn svg { width: 16px; height: 16px; }

.input, select.input, textarea.input {
  width: 100%; min-height: 36px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface);
}
textarea.input { min-height: 84px; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search { max-width: 280px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.form label.wide { grid-column: 1 / -1; }
.form .actions { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.check { display: flex !important; grid-template-columns: none; align-items: center; gap: 8px; color: var(--ink) !important; font-size: 14px !important; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- Table ---------- */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 500; font-size: 13px; color: var(--muted); background: var(--surface); position: sticky; top: 0; }
th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
th button:focus-visible { outline: 2px solid var(--accent); }
th .arrow { font-size: 10px; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
td.name { font-weight: 500; }
.namecell { display: flex; align-items: center; gap: 10px; }
.sub { display: none; font-size: 13px; color: var(--muted); font-weight: 400; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty .btn { margin-top: 12px; }

.avatar {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600; color: #fff;
}
.avatar.square { border-radius: 7px; }
.avatar.lg { width: 52px; height: 52px; font-size: 19px; }

/* ---------- Record ---------- */
.back svg { width: 16px; height: 16px; }
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 14px; }
.record-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.record-head h1 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.record-head .sub2 { color: var(--muted); }
.record-head .grow { flex: 1; min-width: 0; }
.record { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 24px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.fields { display: grid; gap: 2px; }
.field { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 8px; }
.field > span { font-size: 13px; color: var(--muted); }
.field .input { border-color: transparent; background: transparent; padding-left: 8px; }
.field .input:hover { background: var(--surface-2); }
.field .input:focus { background: var(--surface); border-color: var(--accent); }
.field.top { align-items: start; }
.field.top > span { padding-top: 8px; }
.card-photos { display: flex; gap: 10px; flex-wrap: wrap; }
.card-photos img { width: 100%; max-width: 240px; aspect-ratio: 1.75; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

.related { display: grid; gap: 0; }
.related a { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.related a:last-child { border-bottom: 0; }
.related .meta { margin-left: auto; color: var(--muted); font-size: 13px; }

.timeline { list-style: none; margin: 14px 0 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.note::before { background: var(--accent); }
.timeline .when { font-size: 12px; color: var(--muted); }
.timeline .body { white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline li.note .body { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; margin-top: 4px; }
.timeline li.email::before { background: var(--card); }
.timeline .mailmeta { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.timeline details { margin-top: 4px; }
.timeline summary { cursor: pointer; font-size: 13px; color: var(--accent); width: fit-content; }
.timeline .mailbody { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); border-radius: 8px; padding: 8px 10px; margin: 6px 0; font-size: 14px; max-height: 360px; overflow-y: auto; }
code.addr { font: 500 14px/1.4 var(--font); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; overflow-wrap: anywhere; }
.timeline .del { all: unset; cursor: pointer; font-size: 12px; color: var(--muted); margin-left: 6px; }
.composer { display: grid; gap: 8px; }
.composer .row { display: flex; justify-content: flex-end; }

/* ---------- Pipeline ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.column { background: var(--surface-2); border-radius: var(--radius-m); padding: 10px; min-height: 240px; display: flex; flex-direction: column; gap: 8px; }
.column.over { outline: 2px dashed var(--accent); outline-offset: -2px; }
.column header { display: flex; align-items: baseline; gap: 8px; padding: 2px 4px 6px; }
.column header strong { font-weight: 600; }
.column header .total { margin-left: auto; color: var(--muted); font-size: 13px; }
.column[data-stage="won"] header strong { color: var(--accent); }
.deal {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; cursor: grab; text-decoration: none; display: block;
}
.deal:active { cursor: grabbing; }
.deal.dragging { opacity: .4; }
.deal .t { font-weight: 500; }
.deal .m { font-size: 13px; color: var(--muted); display: flex; gap: 8px; justify-content: space-between; margin-top: 2px; }

/* ---------- Scan ---------- */
.scan { max-width: 640px; }
.viewfinder {
  position: relative; aspect-ratio: 1.75; width: 100%;
  border-radius: 14px; background: var(--surface);
  border: 2px dashed var(--card);
  display: grid; place-items: center; overflow: hidden;
  margin-bottom: 14px;
}
.viewfinder::before, .viewfinder::after {
  content: ""; position: absolute; width: 34px; height: 34px; border: 4px solid var(--card); pointer-events: none;
}
.viewfinder::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.viewfinder::after { bottom: 12px; right: 12px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.viewfinder img { width: 100%; height: 100%; object-fit: cover; }
.viewfinder .prompt { text-align: center; padding: 20px; display: grid; gap: 12px; justify-items: center; }
.viewfinder .prompt p { margin: 0; color: var(--muted); max-width: 34ch; }
.viewfinder.reading::after { animation: none; }
.viewfinder .scanline {
  position: absolute; left: 0; right: 0; height: 3px; background: var(--card); box-shadow: 0 0 18px var(--card);
  animation: sweep 1.6s ease-in-out infinite alternate;
}
@keyframes sweep { from { top: 8%; } to { top: 92%; } }
@media (prefers-reduced-motion: reduce) { .viewfinder .scanline { animation: none; top: 50%; } }
.scan-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.back-thumb { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.back-thumb img { width: 96px; aspect-ratio: 1.75; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.match { background: var(--accent-soft); border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; font-size: 14px; }
.done-panel { text-align: center; padding: 28px 16px; }
.done-panel h2 { font-size: 18px; margin: 0 0 6px; }
.done-panel .row { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }

/* ---------- Auth ---------- */
.auth { min-height: 100%; display: grid; place-items: center; padding: 24px; }
.auth .panel { width: 100%; max-width: 380px; padding: 28px; }
.auth h1 { font-size: 22px; margin: 14px 0 4px; }
.auth p { margin: 0 0 18px; color: var(--muted); }
.auth .form { grid-template-columns: 1fr; }
.auth .btn.primary { width: 100%; }
.auth img { width: 40px; height: 40px; }
.auth-lang { margin-top: 18px; display: flex; justify-content: center; }
.auth-lang .input { width: auto; min-height: 30px; padding: 3px 8px; font-size: 13px; color: var(--muted); }
.error { color: var(--danger); font-size: 14px; min-height: 1.2em; margin: 0; }

/* ---------- Settings ---------- */
.settings { max-width: 760px; display: grid; gap: 16px; }
.settings .panel p { margin: 0 0 12px; color: var(--muted); }
.users { width: 100%; }
.users td { white-space: normal; }
.users tbody tr { cursor: default; }
.inline-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Modal + toasts ---------- */
dialog {
  border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  width: min(640px, calc(100vw - 24px)); background: var(--surface); color: var(--ink);
}
dialog::backdrop { background: rgba(10, 15, 20, .45); }
dialog h2 { margin: 0 0 16px; font-size: 18px; }
#toasts { position: fixed; z-index: 50; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.toast.err { background: var(--danger); color: #fff; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .nav {
    position: fixed; z-index: 20; inset: auto 0 0 0; height: auto;
    flex-direction: row; justify-content: space-around; align-items: center; gap: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    border-right: 0; border-top: 1px solid var(--line);
  }
  .brand, .nav .spacer, .nav .me { display: none; }
  .nav a.link { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 8px; }
  .nav a.link svg { width: 22px; height: 22px; }
  .nav a.link.active { background: transparent; color: var(--accent); }
  .nav a.scan-link.active { background: var(--card); color: var(--card-ink); }
  .nav a.scan-link { margin: -22px 0 0; width: 60px; height: 60px; border-radius: 50%; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.18); order: 3; }
  .nav a.scan-link span { display: none; }
  .nav a.scan-link svg { width: 26px; height: 26px; }
  .nav a[data-r="people"] { order: 1; } .nav a[data-r="companies"] { order: 2; }
  .nav a[data-r="deals"] { order: 4; } .nav a[data-r="emails"] { order: 5; } .nav a[data-r="settings"] { order: 6; }
  .nav a.link:not(.scan-link) { padding: 6px 4px; min-width: 0; }
  main { padding: calc(16px + env(safe-area-inset-top, 0px)) 14px calc(96px + env(safe-area-inset-bottom, 0px)); }
  .search { max-width: none; flex-basis: 100%; order: 5; }
  .hide-sm { display: none; }
  .sub { display: block; }
  th, td { padding: 10px 12px; }
  .record { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .field { grid-template-columns: 96px 1fr; }
  .board { grid-auto-columns: 82%; scroll-snap-type: x mandatory; }
  .column { scroll-snap-align: start; }
  #toasts { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Voice ---------- */
.voice-fab {
  position: fixed; z-index: 15; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.voice-fab svg { width: 24px; height: 24px; }
.voice-fab:hover { filter: brightness(1.08); }
dialog.voice { width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 32px); }
.vcenter { display: grid; justify-items: center; gap: 10px; padding: 18px 0 10px; }
.mic-btn {
  width: 88px; height: 88px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
}
.mic-btn svg { width: 38px; height: 38px; }
.mic-btn.live { background: var(--danger); color: #fff; animation: pulse 1.4s ease-out infinite; }
.stop-sq { width: 26px; height: 26px; border-radius: 5px; background: currentColor; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(179,38,30,.45); } 100% { box-shadow: 0 0 0 22px rgba(179,38,30,0); } }
.vstatus { margin: 0; color: var(--muted); text-align: center; }
.vtranscript { font-style: italic; margin: 0 0 14px; overflow-wrap: anywhere; }
.vexamples { margin: 8px 0 16px; padding: 12px 14px 12px 30px; background: var(--surface-2); border-radius: 8px; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
.vaction { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px 14px; margin: 0 0 12px; }
.vaction legend { padding: 0 6px; font-weight: 600; }
.vaction legend .check { font-size: 15px !important; }
.vwarn { margin: 2px 0 10px; font-size: 14px; color: var(--danger); }
.actions-row { display: flex; gap: 8px; justify-content: flex-end; }
.composer .row { gap: 8px; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mic-btn.live, .spinner { animation-duration: 3s; } }
@media (max-width: 760px) {
  .voice-fab { right: 16px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; }
}
.vmore { grid-column: 1 / -1; }
.vmore summary { cursor: pointer; color: var(--accent); font-size: 14px; margin-bottom: 10px; width: fit-content; }

/* ---------- Socials, logos, custom fields ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.socials:empty { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 500; text-decoration: none;
}
.chip svg { width: 12px; height: 12px; opacity: .7; }
.chip:hover { background: var(--surface-2); }
.chip.li { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip.ghost { border-style: dashed; color: var(--muted); }
.av-wrap { position: relative; flex: none; }
img.avatar { object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 2px; }
.logo-btn {
  position: absolute; right: -6px; bottom: -6px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer;
}
.logo-btn svg { width: 14px; height: 14px; }
.logo-btn:focus-within { outline: 2px solid var(--accent); }
.co-link { display: inline-flex; align-items: center; gap: 5px; }
.co-link img { width: 16px; height: 16px; object-fit: contain; border-radius: 3px; background: #fff; }
.panel h3 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 16px 0 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.field.social { grid-template-columns: 112px 1fr 28px; }
.open-link { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--muted); }
.open-link:hover { background: var(--surface-2); color: var(--ink); }
.open-link svg { width: 16px; height: 16px; }
.multi { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 6px 8px; }
.multi .check { font-size: 14px !important; }
.cfcheck { padding: 6px 8px; }
.cfcheck input { width: 18px; height: 18px; accent-color: var(--accent); }
.cf-table td { padding: 6px 10px; }
.cf-table .input { min-height: 32px; }
.settings h3 { font-size: 14px; margin: 14px 0 8px; }
@media (max-width: 760px) { .field.social { grid-template-columns: 96px 1fr 28px; } }
.open-link[hidden] { display: grid; visibility: hidden; }
.form label[hidden] { display: none; }
.cf-table input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- Emails ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px 0 16px; }
.tabs a { padding: 8px 12px; text-decoration: none; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--surface-2); white-space: nowrap; }
.status.s-sent { background: var(--accent-soft); color: var(--ink); }
.status.s-failed { background: var(--danger); color: #fff; }
.fwd { color: var(--danger); font-size: 13px; }
.small { font-size: 13px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tpl-grid .panel + .panel { margin-top: 0; }
.tpl-subject { font-weight: 500; margin: 0 0 6px; }
.tpl-body { white-space: pre-wrap; color: var(--muted); font-size: 14px; max-height: 160px; overflow: hidden; margin-bottom: 10px;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
textarea.input.tall { min-height: 240px; }
dialog.wide-dlg { width: min(760px, calc(100vw - 24px)); }
.form .actions .grow { flex: 1; }
.att-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 4px; }
.att-list li { display: flex; align-items: center; gap: 10px; }
.ai-row { display: flex; gap: 8px; }
.ai-row .input { flex: 1; }
.compose .panel { max-width: 860px; }
.send-row { margin-top: 4px; }
.compose-pick { max-width: 520px; }
.compose-pick label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.record .mailbody { white-space: pre-wrap; overflow-wrap: anywhere; }
li.out-failed::before { background: var(--danger) !important; }
@media (max-width: 760px) { .ai-row { flex-direction: column; } .nav a.link span { font-size: 10px; } }

/* ---------- Two-step sign-in ---------- */
.qr { width: 184px; margin: 10px 0; background: #fff; border-radius: 8px; padding: 6px; border: 1px solid var(--line); }
.qr svg { display: block; width: 100%; height: auto; }
.steps { padding-left: 20px; display: grid; gap: 14px; margin: 0 0 4px; }
.code-input { font-size: 20px; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.rcodes { columns: 2; padding-left: 22px; margin: 8px 0 12px; }
.rcodes code { font: 500 15px/1.8 ui-monospace, Menlo, Consolas, monospace; }
