/* Fast Loan UK help desk. The look of the Phase 2 preview (help desk style, the one Joe picked), in Fast Loan's
   colours. Phone-friendly (promised 22 Nov 2026). No outside fonts or files. */
@font-face { font-family: "Manrope"; src: url("/static/fonts/manrope-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/static/fonts/manrope-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --accent: #1F8FC2; --accent-600: #17769F; --accent-50: #EAF6FC; --accent-100: #D3ECF8;
  --brand: #38B6E7; --brand-green: #2DC736; --navy: #11272D;
  --ink: #101828; --ink-2: #344054; --muted: #667085; --faint: #98A2B3; --line: #E4E7EC; --line-2: #EEF0F3;
  --bg: #F7F8FA; --hover: #F8F9FB; --surface: #fff;
  --amber-bg: #FFFAEB; --amber-line: #FEDF89; --amber-ink: #93370D;
  --red-bg: #FEF3F2; --red-line: #FECDCA; --red-ink: #B42318;
  --green-bg: #ECFDF3; --green-line: #ABEFC6; --green-ink: #067647;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { font-family: Manrope, system-ui, sans-serif; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* buttons and tags */
.btn { height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.btn:hover { background: var(--hover); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-600); }
.btn.ghost { border-color: transparent; background: transparent; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 12px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.tag.small { height: 18px; padding: 0 6px; font-size: 11px; }
.tag.flag { background: var(--red-bg); border-color: var(--red-line); color: var(--red-ink); }
.tag.green { background: var(--green-bg); border-color: var(--green-line); color: var(--green-ink); }
.tag.amber { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber-ink); }
.tag.person { background: var(--accent-50); border-color: var(--accent-100); color: var(--accent-600); }
.tag.muted-tag { color: var(--faint); border-style: dashed; }

/* sign-in pages */
body.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05); }
.auth-card.wide { max-width: 560px; }
.auth-logo { height: 40px; width: auto; display: block; margin-bottom: 18px; }
.auth-card h1 { margin: 0 0 6px; font-size: 22px; }
.auth-sub { margin: 0 0 18px; color: var(--muted); }
.auth-card form { display: grid; gap: 14px; }
.auth-card label { display: grid; gap: 6px; font-weight: 600; color: var(--ink-2); }
.auth-card input { height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: #fff; font-weight: 400; }
.auth-card input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-100); }
.auth-card .btn.primary { height: 42px; }
.code-input { font-size: 20px; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
.auth-error { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--red-line); background: var(--red-bg); color: var(--red-ink); border-radius: 8px; }
.auth-foot { margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.setup-steps { margin: 0; padding-left: 20px; display: grid; gap: 18px; }
.setup-steps h2 { font-size: 16px; margin: 0 0 6px; }
.setup-steps p { margin: 0 0 10px; }
.qr { display: inline-block; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.qr svg { display: block; width: 200px; height: 200px; }
.secret { font-size: 13px; word-break: break-all; background: var(--bg); padding: 2px 6px; border-radius: 4px; }

/* the app */
body.app { min-height: 100vh; }
.topbar { height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-family: Manrope, system-ui, sans-serif; font-weight: 700; font-size: 16px; }
.brand img { height: 28px; width: auto; }
.brand:hover { text-decoration: none; }
.spacer { flex: 1; }
.me { color: var(--ink-2); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.inline { display: inline; margin: 0; }
.layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 56px); }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 12px 8px; display: flex; flex-direction: column; gap: 10px; }
.views, .nav-more { display: flex; flex-direction: column; gap: 2px; }
.nav-more { border-top: 1px solid var(--line-2); padding-top: 10px; }
.view { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 10px; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.view:hover { background: var(--hover); text-decoration: none; }
.view.current { background: var(--accent-50); color: var(--accent-600); font-weight: 600; }
.count { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.view.current .count { color: var(--accent-600); }
.main { min-width: 0; padding: 16px 20px 32px; }
.list-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.list-head h1 { margin: 0; font-size: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters select { height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 0 8px; max-width: 190px; }
.rows { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rows > li + li { border-top: 1px solid var(--line-2); }
.row { display: grid; grid-template-columns: 10px minmax(120px, 200px) minmax(0, 1fr) auto 64px; gap: 12px; align-items: center; padding: 11px 14px; color: inherit; }
.row:hover { background: var(--hover); text-decoration: none; }
.row:focus-visible { outline-offset: -2px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.row.unread .dot { background: var(--brand); }
.row.unread .who, .row.unread .subject { font-weight: 650; color: var(--ink); }
.who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.wait { text-align: right; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; }
.warning { padding: 10px 12px; border: 1px solid var(--amber-line); background: var(--amber-bg); color: var(--amber-ink); border-radius: 8px; }
.updated { color: var(--faint); font-size: 12px; margin: 10px 2px 0; }

/* phones and small tablets */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; gap: 6px; position: sticky; top: 56px; z-index: 1; }
  .views, .nav-more { flex-direction: row; gap: 6px; }
  .nav-more { border-top: 0; padding-top: 0; border-left: 1px solid var(--line-2); padding-left: 6px; }
  .view { flex: none; height: 34px; gap: 8px; border: 1px solid var(--line); }
  .view.current { border-color: var(--accent-100); }
  .main { padding: 12px 12px 28px; }
  .filters { width: 100%; }
  .filters label { flex: 1 1 140px; }
  .filters select { width: 100%; max-width: none; }
  .row { grid-template-columns: 10px minmax(0, 1fr) auto; grid-template-areas: "dot who wait" ". subject subject" ". tags tags"; row-gap: 4px; }
  .dot { grid-area: dot; }
  .who { grid-area: who; }
  .wait { grid-area: wait; }
  .subject { grid-area: subject; white-space: normal; }
  .tags { grid-area: tags; justify-content: flex-start; }
  .me { display: none; }
}

/* step 3: search box, groups, the email page, search and templates (look of the Phase 2 preview) */
.topsearch input { height: 36px; width: 340px; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: var(--bg); }
.topsearch input:focus, .search-form input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-100); background: #fff; }
.intro { margin: -4px 0 12px; font-size: 13px; }
.group { margin-bottom: 18px; }
.group-head { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 14px; }
.group-about { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.card h2, .notes h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 10px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.card p { margin: 0 0 8px; }
.tags.start { justify-content: flex-start; margin-bottom: 14px; }
.email-main { padding: 12px 20px 32px; }
.email-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.email-bar .back { padding-left: 4px; }
.email-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.email-subject { margin: 4px 0 8px; font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.mail-head { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: start; margin-bottom: 14px; }
.mail-from { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-50); color: var(--accent-600); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.when { white-space: nowrap; }
.mail-text, .reply-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.6; color: var(--ink); }
.earlier { margin-top: 12px; border-top: 1px solid var(--line-2); padding-top: 10px; }
.earlier summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 13px; }
.earlier .mail-text { margin-top: 10px; color: var(--ink-2); font-size: 14px; }
.attachments { margin: 12px 0 0; color: var(--ink-2); overflow-wrap: anywhere; }
.notes { background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.notes h2 { color: var(--amber-ink); }
.notes h2 .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.note { margin: 0 0 6px; color: var(--amber-ink); }
.note:last-child { margin-bottom: 0; }
.note.manager strong { color: var(--red-ink); }
.reply { padding: 0; overflow: hidden; }
.reply-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); background: var(--hover); }
.reply-head > div { display: flex; flex-direction: column; }
.template-switch { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.template-switch label { font-size: 13px; font-weight: 600; }
.template-switch select { height: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 0 8px; flex: 1 1 260px; min-width: 0; max-width: 520px; }
.reply-to { margin: 0; padding: 10px 18px 0; }
.reply-text { padding: 12px 18px 16px; }
.reply-foot { padding: 10px 18px; border-top: 1px solid var(--line-2); background: var(--hover); }
.empty-reply { padding: 16px 18px; color: var(--ink-2); }
mark.blank { background: var(--accent-50); color: var(--accent-600); border: 1px solid var(--accent-100); border-radius: 4px; padding: 0 3px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86em; }
.customer-head { display: flex; flex-direction: column; margin-bottom: 10px; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 10px; margin: 0; font-size: 13px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.flags p { margin: 0 0 6px; }
.hist-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hist { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: inherit; }
.hist:hover { background: var(--hover); text-decoration: none; border-color: var(--accent-100); }
.hist-top { display: flex; justify-content: space-between; gap: 8px; }
.hist-dir { font-weight: 600; font-size: 13px; color: var(--ink-2); }
.hist-dir.out { color: var(--accent-600); }
.hist-subject { font-weight: 600; overflow-wrap: anywhere; }
.hist-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; max-width: 720px; align-items: center; }
.search-form .inside { flex-basis: 100%; display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); }
.search-form input { flex: 1; height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: #fff; min-width: 0; }
.search-form.small input { height: 36px; }
.message-page { max-width: 640px; padding: 24px 0; }
.tpl-main { padding: 0; }
.tpl-page { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: calc(100vh - 56px); }
.tpl-list { border-right: 1px solid var(--line); background: var(--surface); padding: 16px 12px; }
.tpl-list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.tpl-list-head h1 { margin: 0; font-size: 20px; display: flex; gap: 8px; align-items: baseline; }
.tpl-group { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 16px 4px 6px; display: flex; justify-content: space-between; }
.tpl-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tpl-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; color: inherit; }
.tpl-item:hover { background: var(--hover); text-decoration: none; }
.tpl-item.current { background: var(--accent-50); }
.tpl-id { font-weight: 600; display: flex; gap: 6px; align-items: center; justify-content: space-between; }
.tpl-when { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tpl-detail { padding: 16px 20px 32px; min-width: 0; }
.tpl-detail-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.tpl-detail-head h1 { margin: 0 6px 0 0; font-size: 22px; }
.back-to-list { display: none; width: 100%; justify-content: flex-start; padding-left: 0; }
.plain-list { margin: 0; padding-left: 18px; }
.plain-list li { margin-bottom: 4px; }

/* phones: the step 3 screens (kept last so these win over the desktop rules above) */
@media (max-width: 860px) {
  .topbar { gap: 8px; padding: 0 10px; }
  .topsearch { flex: 1; min-width: 0; }
  .topsearch input { width: 100%; }
  .brand span { display: none; }
  .topbar .btn.ghost { padding: 0 6px; }
  .email-page, .tpl-page { grid-template-columns: 1fr; gap: 0; }
  .email-main { padding: 8px 12px 28px; }
  .email-bar { flex-wrap: wrap; }
  .email-bar .btn { padding: 0 8px; }
  .email-bar .word { display: none; }
  .email-subject { font-size: 19px; }
  .mail-head { grid-template-columns: 36px minmax(0, 1fr); }
  .mail-head .when { grid-column: 1 / -1; white-space: normal; }
  .card:not(.reply) { padding: 14px; }
  .reply-head, .reply-text, .reply-foot { padding-left: 14px; padding-right: 14px; }
  .reply-to { padding-left: 14px; }
  .tpl-main { padding: 0; }
  .tpl-list { border-right: 0; }
  .has-selected .tpl-list { display: none; }
  .back-to-list { display: inline-flex; }
  .tpl-detail { padding: 12px 12px 28px; }
}
.linklike { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; }
.linklike:hover { text-decoration: underline; }
.older { margin: 10px 0 0; }
.draft-warning { margin: 8px 18px 0; }
.mail .warning { margin: 0 0 12px; }

/* Joe's Loom, 28 Nov: the email screen as one wide webmail-style column (reply on top, the email and history below) */
.email-page { display: block; max-width: 1080px; }
.email-head { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.email-head .email-subject { margin: 0 0 8px; }
.email-head .tags.start { margin-bottom: 10px; }
.inline-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; font-size: 13px; grid-template-columns: none; }
.inline-facts > div { display: flex; gap: 6px; min-width: 0; }
.inline-facts dt { color: var(--muted); }
.inline-facts dd { margin: 0; overflow-wrap: anywhere; }
.flag-notes { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); display: grid; gap: 4px; }
.flag-notes strong { color: var(--red-ink); }
.reply-text, .mail-text { font-size: 14px; line-height: 1.6; }
.history { margin-top: 4px; }
.history h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 10px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.history .hist { background: var(--surface); }
.hist-top { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: flex-start; }
.hist-when { margin-left: auto; }
.hist.out { border-left: 3px solid var(--accent-100); }
.tag.channel { background: var(--bg); color: var(--muted); }
.opened { display: block; font-size: 12px; font-weight: 400; color: var(--faint); }
@media (max-width: 860px) {
  .inline-facts { gap: 4px 14px; }
  .hist-when { margin-left: 0; width: 100%; }
}

/* Part 2: the reply box with highlighted blanks, the buttons, assign, compose, messages */
.flash { margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--green-line); background: var(--green-bg); color: var(--green-ink); border-radius: 10px; font-weight: 600; max-width: 1080px; }
.notice { margin: 10px 18px 0; }
.email-page > .notice { margin: 0 0 10px; }
.editor { position: relative; margin: 12px 18px 0; }
.editor .reply-text, .editor textarea { font: 14px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; padding: 12px 14px; margin: 0; border: 1px solid transparent; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; letter-spacing: normal; }
.editor .reply-text { position: absolute; inset: 0; color: transparent; overflow: hidden; pointer-events: none; }
.editor .reply-text mark.blank { color: transparent; border-color: var(--accent-100); background: var(--accent-50); font: inherit; padding: 0; border-radius: 3px; }
.editor textarea { position: relative; display: block; width: 100%; min-height: 220px; resize: vertical; background: transparent; color: var(--ink); border-color: var(--line); }
.editor textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-100); }
.reply-text[data-static] { padding: 12px 18px 16px; }
.manager-check { margin: 12px 18px 0; padding: 10px 12px; border: 1px solid var(--amber-line); background: var(--amber-bg); color: var(--amber-ink); border-radius: 8px; font-size: 13px; }
.manager-check.ok { border-color: var(--green-line); background: var(--green-bg); color: var(--green-ink); }
.manager-check label { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.reply-actions { display: flex; gap: 8px; align-items: center; padding: 12px 18px; margin-top: 12px; border-top: 1px solid var(--line-2); background: var(--hover); flex-wrap: wrap; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.assign { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.assign label { display: flex; gap: 6px; align-items: center; }
.assign select { height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 0 8px; }
.small-btn { height: 32px; padding: 0 12px; }
.new-email { margin: 2px 4px 4px; height: 36px; }
.compose-fields { display: grid; gap: 10px; padding: 12px 18px 0; }
.compose-fields label { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); font-size: 13px; }
.compose-fields input { height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: #fff; }
.compose-fields input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-100); }
@media (max-width: 860px) {
  .editor, .manager-check { margin-left: 12px; margin-right: 12px; }
  .reply-actions { padding: 10px 12px; }
  .send-hint { display: none; }
  .new-email { flex: none; margin: 0; height: 34px; }
  .compose-fields { padding: 10px 12px 0; }
  .compose-fields label { grid-template-columns: 1fr; }
}
.tag[hidden] { display: none; }

/* weekly numbers and the guide */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.stat-n { font-family: Manrope, system-ui, sans-serif; font-size: 26px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-l { color: var(--muted); font-size: 13px; }
.num-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 14px; }
.num-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 8px; }
.num-table td { padding: 6px 0; border-top: 1px solid var(--line-2); }
.num-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.guide h1 { font-size: 22px; margin: 0 0 14px; }
.guide .card p { line-height: 1.6; }
.changes { margin: 10px 18px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--hover); font-size: 13px; }
.changes p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
del.diff { background: var(--red-bg); color: var(--red-ink); text-decoration: line-through; }
ins.diff { background: var(--green-bg); color: var(--green-ink); text-decoration: none; }
.possibly-sent { border-color: var(--amber-line); background: var(--amber-bg); color: var(--amber-ink); }
.possibly-sent form { margin-top: 10px; }

/* step 5: the inbox switch */
.inboxes { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.inbox { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); }
.inbox:hover { background: var(--hover); text-decoration: none; }
.inbox.current { background: var(--accent-50); color: var(--accent-600); }
.inbox-name { font-weight: 600; font-size: 13px; }
.inbox-address { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.inbox-title { font-size: 15px; font-weight: 600; }
@media (max-width: 860px) {
  .inboxes { flex-direction: row; border-bottom: 0; padding-bottom: 0; border-right: 1px solid var(--line-2); padding-right: 6px; }
  .inbox { flex: none; }
  .inbox-address { display: none; }
}
