/* Xatheryn Wire: the "Sorted" design. Light, codes pinned on top, mail sorted into People / Updates /
   Receipts, Xatheryn blue for actions and the verified check, red only for spam and scams. */
@font-face { font-family: 'Space Grotesk'; font-weight: 400; font-display: swap; src: url(/fonts/space-grotesk-400.woff2) format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-display: swap; src: url(/fonts/space-grotesk-500.woff2) format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 600; font-display: swap; src: url(/fonts/space-grotesk-600.woff2) format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap; src: url(/fonts/space-grotesk-700.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url(/fonts/jetbrains-mono-500.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 700; font-display: swap; src: url(/fonts/jetbrains-mono-700.woff2) format('woff2'); }

:root {
  --bg: #eef0f3;
  --column: #e4e7ec;
  --card: #ffffff;
  --ink: #101418;
  --dim: #56606c;
  --faint: #6b7480;
  --line: #dde1e7;
  --blue: #2b5fe8;
  --blue-soft: #e3ebff;
  --blue-line: #b3c8ff;
  --blue-bright: #7fb2ff;
  --red: #d92d20;
  --red-text: #b42318;
  --red-soft: #fde8e8;
  --red-line: #f1c4c4;
  --font: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
button, input, textarea { font: inherit; color: inherit; }
button:not(:disabled) { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- basics ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 0 16px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.btn:hover:not(:disabled) { border-color: #c5cbd4; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover:not(:disabled) { background: #2353d4; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--dim); }
.btn.ghost:hover:not(:disabled) { background: var(--column); color: var(--ink); }
.btn.danger { color: var(--red-text); }
.btn.block { width: 100%; font-size: 15px; }
.btn.icon { width: 44px; padding: 0; }
.link { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; min-height: 44px; }
.link:hover { text-decoration: underline; }
.muted { color: var(--dim); }
.faint { color: var(--faint); }
.error { color: var(--red-text); font-size: 14px; margin: 10px 0 0; }
.hint { font-size: 13px; color: var(--dim); margin: 6px 0 0; min-height: 1.2em; }
.hint.ok { color: #127a4b; }
.hint.bad { color: var(--red-text); }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--dim); }
.input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; font-size: 15px; font-weight: 500; color: var(--ink); outline: none; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43, 95, 232, 0.18); }
textarea.input { padding: 12px; min-height: 200px; resize: vertical; line-height: 1.55; }
.suffix { display: flex; }
.suffix .input { border-radius: 10px 0 0 10px; }
.suffix > span { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-left: 0; border-radius: 0 10px 10px 0; background: var(--column); color: var(--dim); font-size: 14px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.boot { display: grid; place-items: center; height: 100vh; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--blue); animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.brand-mark { width: 28px; height: 28px; flex: none; border-radius: 7px; }
.check { flex-shrink: 0; vertical-align: -2px; margin-left: 4px; }
.pill-urgent { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: #9a3412; background: #ffedd5; border-radius: 6px; padding: 3px 7px; }
.pill-red { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--red-text); background: var(--red-soft); border-radius: 6px; padding: 3px 7px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-right: 6px; vertical-align: 2px; flex-shrink: 0; }
.dot.red { background: var(--red); }

/* ---------- signed out ---------- */
.welcome { min-height: 100vh; max-width: 1080px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.welcome h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.02em; margin: 22px 0 14px; }
.welcome h1 em { font-style: normal; color: var(--blue); }
.welcome .lede { font-size: 17px; color: var(--dim); max-width: 470px; margin: 0; }
.perks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; color: var(--dim); }
.perks li b { color: var(--ink); }
.perks .tick { flex-shrink: 0; width: 24px; height: 24px; border-radius: 8px; background: var(--blue-soft); display: grid; place-items: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.card h2 { margin: 0 0 4px; font-size: 22px; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--column); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.tabs button { min-height: 40px; padding: 0 6px; white-space: nowrap; border: 0; background: none; border-radius: 9px; font-weight: 600; color: var(--dim); }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); }
.fine { font-size: 12.5px; color: var(--faint); margin: 12px 0 0; }
.center { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.center .card { max-width: 440px; width: 100%; }

/* ---------- app shell ---------- */
.app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; padding: 18px 22px 0; gap: 16px; }
.top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nav { display: flex; gap: 2px; margin-left: 6px; }
.nav button { min-height: 40px; border: 0; background: none; border-radius: 9px; padding: 0 12px; font-weight: 600; color: var(--dim); }
.nav button[aria-current="true"] { background: var(--card); color: var(--ink); }
.search { flex: 1 1 260px; max-width: 460px; display: flex; align-items: center; gap: 8px; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 12px; color: var(--faint); }
.search input { border: 0; outline: none; flex-grow: 1; min-width: 0; background: none; font-size: 14px; color: var(--ink); }
.spacer { flex-grow: 1; }
.avatar { flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; }
.avatar.photo { display: block; object-fit: cover; background: #e3e7ee; }
.me-btn { border: 0; background: none; padding: 0; min-height: 44px; min-width: 44px; display: grid; place-items: center; border-radius: 50%; }

.section-label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.codes { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 2px; }
.code-card { flex-shrink: 0; width: 260px; background: var(--ink); color: #fff; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; text-align: left; border: 0; }
.code-card .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #a9b3bf; }
.code-card .value { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.code-card .value span { font: 700 26px var(--mono); letter-spacing: 0.14em; }
.code-card .copy { width: 40px; height: 40px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, 0.14); display: grid; place-items: center; color: #fff; }
.codes-empty { width: 260px; flex-shrink: 0; min-height: 86px; border: 2px dashed #c9ced6; border-radius: 16px; display: grid; place-items: center; font-size: 13px; color: var(--faint); padding: 12px; text-align: center; }

.board { flex-grow: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(360px, 1.25fr); gap: 14px; padding-bottom: 18px; }
.column { background: var(--column); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 0; min-width: 0; }
.column-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 4px; font-weight: 700; font-size: 14px; }
.column-head .n { margin-left: auto; font-size: 12px; color: var(--faint); font-weight: 600; }
.column-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 0; flex-grow: 1; }
.column-empty { font-size: 13px; color: var(--faint); padding: 18px 8px; text-align: center; }

.mcard { width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; display: flex; flex-direction: column; gap: 3px; }
.mcard:hover { border-color: #c5cbd4; }
.mcard[aria-current="true"] { background: var(--blue-soft); border-color: var(--blue-line); }
.mcard.suspicious { border-color: var(--red-line); }
.mcard .row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.mcard .who { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; min-width: 0; }
.mcard.unread .who { font-weight: 700; }
.mcard time { font-size: 12px; color: var(--faint); flex-shrink: 0; }
.mcard .subj { font-size: 13px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard .pill-red, .mcard .pill-urgent { align-self: flex-start; margin-top: 5px; }
/* Stacks its two lines so it reads cleanly even in a narrow column. */
.spam-tray { width: 100%; margin-top: auto; flex-shrink: 0; background: transparent; border: 1px dashed var(--red-line); border-radius: 12px; min-height: 44px; padding: 10px 13px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; color: var(--red-text); font-size: 13.5px; font-weight: 600; text-align: left; }
.spam-tray .later { grid-column: 2; font-weight: 500; color: var(--faint); font-size: 12px; }

/* ---------- reader ---------- */
.reader { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; }
.reader-empty { margin: auto; text-align: center; color: var(--faint); font-size: 14px; }
.reader .back { display: none; }
.sender { display: flex; gap: 10px; align-items: center; }
.sender .name { font-weight: 700; display: flex; align-items: center; }
.sender .addr { font-size: 11.5px; color: var(--faint); word-break: break-all; }
.reader h1 { font-size: 20px; line-height: 1.3; margin: 0; word-break: break-word; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.banner { border-radius: 12px; padding: 12px 14px; font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; }
.banner.red { background: var(--red-soft); border: 1px solid var(--red-line); color: #7a1a12; }
.banner.red b { color: var(--red-text); }
.banner.urgent { background: #fff7ed; border: 1px solid #fdba74; color: #7c2d12; }
.banner.urgent b { color: #c2410c; }
.banner.info { background: var(--blue-soft); border: 1px solid var(--blue-line); color: #1d3a8a; }
.banner ul { margin: 0; padding-left: 18px; }
.big-code { background: var(--ink); color: #fff; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.big-code .v { font: 700 38px var(--mono); letter-spacing: 0.16em; }
.big-code .btn { background: var(--blue-bright); border-color: var(--blue-bright); color: var(--ink); }
/* The email frame is sized to its content and scaled to the screen by the page (fitFrame in app.js): no scrolling inside a box. */
.body-wrap { position: relative; width: 100%; flex-shrink: 0; overflow: hidden; overflow: clip; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.body-frame { display: block; width: 100%; height: 480px; border: 0; background: #fff; transform-origin: 0 0; }
.body-text { white-space: pre-wrap; word-break: break-word; font: 14.5px/1.65 var(--font); margin: 0; }
.files { display: flex; flex-wrap: wrap; gap: 8px; }
.file { font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; text-decoration: none; color: var(--ink); }

/* ---------- lists (sent, spam, search) ---------- */
.listview { flex-grow: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 1.25fr); gap: 14px; padding-bottom: 18px; }
.listview .column { background: var(--column); }

/* ---------- settings ---------- */
.settings { flex-grow: 1; min-height: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; padding-bottom: 18px; overflow: hidden; }
.settings nav { display: flex; flex-direction: column; gap: 4px; }
.settings nav button { min-height: 42px; text-align: left; border: 0; background: none; border-radius: 10px; padding: 0 12px; font-weight: 500; color: var(--dim); }
.settings nav button[aria-current="true"] { background: var(--card); color: var(--ink); font-weight: 700; }
.settings .pane { overflow-y: auto; min-height: 0; max-width: 720px; display: flex; flex-direction: column; gap: 14px; padding-right: 4px; }
.settings h1 { margin: 0; font-size: 26px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.panel h3 { margin: 0; font-size: 16px; }
.option { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; cursor: pointer; }
.option.on { background: var(--blue-soft); border: 2px solid var(--blue); padding: 15px 17px; }
.option.off { opacity: 0.6; cursor: not-allowed; }
.option input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex-shrink: 0; }
.option .kind { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.option .shown { font-size: 18px; font-weight: 700; margin-top: 6px; display: flex; align-items: center; }
.option .small { font-size: 12px; color: var(--faint); }
.option .note { font-size: 13px; color: var(--dim); margin-top: 6px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: var(--column); }
.status.ok { color: #127a4b; }
.status.warn { color: #8a5a00; }
.rule-row, .pk-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; border-top: 1px solid var(--line); padding: 8px 0; font-size: 14px; }
.rule-row:first-child, .pk-row:first-child { border-top: 0; }

/* ---------- compose ---------- */
.overlay { position: fixed; inset: 0; background: rgba(16, 20, 24, 0.4); display: grid; place-items: center; z-index: 10; padding: 16px; }
/* A sheet never pans sideways: long names and addresses wrap inside it, and anything that still can't fit is cut off rather than scrolled to. */
.dialog { width: min(640px, 100%); max-height: calc(100dvh - 32px); overflow-x: hidden; overflow-y: auto; background: var(--card); border-radius: 18px; padding: 20px 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25); display: flex; flex-direction: column; gap: 12px; }
.dialog > *, .dialog form { min-width: 0; }
.dialog header { display: flex; justify-content: space-between; align-items: center; }
.dialog h2 { margin: 0; font-size: 18px; }
.cline { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; border-bottom: 1px solid var(--line); min-height: 44px; }
.cline span { color: var(--dim); font-size: 14px; }
.cline input { border: 0; outline: none; background: none; min-height: 44px; width: 100%; min-width: 0; }
/* The name, then the address under it when the two don't fit side by side. */
.cline .from { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; min-width: 0; padding: 6px 0; font-weight: 600; }
.cline .from-name { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.cline .from-addr { min-width: 0; font-weight: 400; font-size: 13px; overflow-wrap: anywhere; }
.dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dialog footer > span { min-width: 0; }

#toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 20; max-width: calc(100vw - 32px); }
.noscript { text-align: center; padding: 40px; }

/* ---------- phones and small tablets: one thing at a time ---------- */
.m-app { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.m-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 10px; gap: 8px; }
.m-top .title { font-size: 26px; font-weight: 700; }
.m-code { padding: 0 16px 12px; }
.m-code .code-card { width: 100%; }
/* The four tabs share the row, so none of them is ever off the edge of the screen. (Scrolling is only the last resort on a tiny screen.)
   The number of unread emails is a badge on the corner of each tab: it adds no width. The top padding keeps it from being clipped. */
.pills { display: flex; gap: 6px; padding: 8px 16px 12px; overflow-x: auto; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pills button { position: relative; flex: 1 1 auto; min-height: 40px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--dim); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.pills button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pills button .count { position: absolute; top: -7px; right: -3px; margin: 0; box-shadow: 0 0 0 2px var(--bg); }
/* The Settings menu wraps onto more rows instead of scrolling sideways, so every item is on screen. */
.pills.wrap { flex-wrap: wrap; overflow: visible; }
.pills.wrap button { flex: 0 1 auto; padding: 0 14px; }
.m-list { padding: 0 16px 24px; display: flex; flex-direction: column; gap: 8px; }
.m-list .spam-tray { margin-top: 8px; }
.m-reader { position: fixed; inset: 0; background: var(--bg); z-index: 5; overflow-y: auto; }
.m-reader .reader { border: 0; border-radius: 0; background: var(--bg); min-height: 100%; padding: 12px 16px 40px; }
.m-reader .reader .back { display: inline-flex; align-self: flex-start; }
.m-fab { position: fixed; right: 18px; bottom: 22px; width: 58px; height: 58px; border-radius: 18px; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px rgba(43, 95, 232, 0.35); z-index: 4; }
.m-settings { padding: 8px 16px 40px; display: flex; flex-direction: column; gap: 14px; }

@media (max-width: 760px) {
  .welcome { grid-template-columns: 1fr; gap: 26px; padding: 26px 16px; min-height: auto; }
  .card { padding: 22px 18px; }
  .dialog { padding: 18px 16px; }
  .overlay { place-items: end center; padding: 0; }
  .dialog { border-radius: 18px 18px 0 0; max-height: 92dvh; }
}

/* "I agree to the Terms" row on sign-up and the re-accept gate. */
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--dim, inherit); line-height: 1.45; cursor: pointer; }
.agree input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--blue); }

/* A quiet text-style button, e.g. "Report a child safety concern" under a message. */
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--faint); text-decoration: underline; cursor: pointer; }
.linkish:hover { color: var(--ink); }

/* The 24-digit recovery code: six groups of four, big enough to read out and safe at phone width. */
.recovery-code { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; padding: 16px; border: 1px dashed var(--blue); border-radius: 12px; background: var(--blue-soft); text-align: center; }
.recovery-code span { font: 600 20px/1.2 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.08em; user-select: all; color: var(--ink); }
@media (prefers-color-scheme: dark) { .recovery-code { background: rgba(127, 178, 255, 0.12); } }

/* "Use Connect" nudge on the sign-up tab, and the with/without comparison on the Connect tab. */
.perk-nudge { font-size: 13.5px; line-height: 1.5; color: var(--dim); background: var(--blue-soft); border: 1px solid var(--blue-line); border-radius: 10px; padding: 9px 12px; }
.perk-nudge .check { margin: 0 4px 0 0; }
.perk-nudge .link { min-height: 0; font-size: inherit; }
.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cmp th, .cmp td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line, #e2e5ee); vertical-align: top; }
.cmp thead th { font-size: 12.5px; letter-spacing: 0.02em; color: var(--dim); }
.cmp tbody th { font-weight: 500; color: var(--ink); width: 38%; }
.cmp .cmp-yes { color: var(--ink); font-weight: 600; }
.cmp .cmp-yes .check { margin-left: 3px; }
.cmp .cmp-no { color: var(--faint); }

/* ---------- unread badges, and the offer to turn notifications on ---------- */
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.section-label .count { vertical-align: 1px; }
.column-head .count { margin-left: 0; }
.pills button[aria-selected="true"] .count { background: var(--blue-bright); color: var(--ink); }
.notify-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; background: var(--blue-soft); border: 1px solid var(--blue-line); color: #1d3a8a; border-radius: 14px; padding: 12px 14px; margin: 0 16px 12px; font-size: 13.5px; }
.app .notify-banner { margin: 0 0 12px; }
.notify-banner .actions { display: flex; gap: 8px; flex-shrink: 0; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.devices { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.device-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- delete from a list, and pull down to refresh ---------- */
.mwrap { position: relative; border-radius: 12px; }
.mwrap .mcard { touch-action: pan-y; }
.mwrap .mdel { position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; display: none; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: #b42318; }
.mwrap .mdel:hover, .mwrap .mdel:focus-visible { background: #fef3f2; border-color: var(--red-line); }
@media (hover: hover) and (pointer: fine) { .mwrap:hover .mdel, .mwrap:focus-within .mdel { display: grid; } }
.mwrap.swiping::after { content: 'Delete'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #b42318; font-weight: 700; font-size: 14px; z-index: 0; }
.mwrap.swiping .mcard { position: relative; z-index: 1; }
body { overscroll-behavior-y: contain; }
#ptr { position: fixed; top: 0; left: 50%; transform: translate(-50%, -60px); z-index: 4; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; transition: transform .2s; }
#ptr.drag { transition: none; }

.trays { margin-top: auto; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.trays .spam-tray { margin-top: 0; }
.m-list .trays { margin-top: 8px; }
