/* styles.css — Reeveon Pocket. A single full-screen mobile view (the phone is the
   frame). The Desk reskin (2026-11-26, mocks PocketHome / PocketInboxes /
   PocketThread / PocketLater / PocketSwipe): a quiet neutral ground, white
   surfaces with hairlines, 4px corners, one forest accent, Figtree for text and
   Geist Mono for meta. Theme-aware (light + dark, the desktop's dark tokens). */

/* Figtree (UI text) and Geist Mono (dates, times, counts), self-hosted: the
   Pocket CSP allows fonts from 'self' only. Real static weights (no synthesis):
   Figtree 400 / 500 / 600 / 700, Geist Mono 400 / 500; latin + latin-ext.
   The files are @fontsource 5.3.0 (OFL-1.1), the same ones the desktop bundles. */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('./fonts/figtree-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('./fonts/figtree-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('./fonts/figtree-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('./fonts/figtree-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('./fonts/figtree-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('./fonts/figtree-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('./fonts/figtree-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('./fonts/figtree-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('./fonts/geist-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('./fonts/geist-mono-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('./fonts/geist-mono-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('./fonts/geist-mono-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light dark;
  --pk-font: 'Figtree', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pk-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --pk-radius: 4px;
  /* The spark (Ask Reeveon / AI) keeps its colour; nothing else is a gradient. */
  --ai: linear-gradient(135deg, #F0559B 0%, #A855F7 40%, #6366F1 72%, #22D3EE 100%);
  --pk-wash: none;
  --pk-ai-ink: #7C5BD6;

  /* light — the mock tokens */
  --pk-bg: #F8F8F7;
  --pk-screen: #F8F8F7;   /* the ground: lists, the Desk, the thread */
  --pk-surface: #FFFFFF;  /* headers, cards, sheets, bars */
  --pk-screen2: #EFEFED;  /* a neutral fill (the neutral pill, pressed rows) */
  --pk-ink: #18181B;
  --pk-ink2: #3F3F46;
  --pk-dim: #55555C;
  --pk-faint: #66666D;
  --pk-hair: #E4E4E1;     /* the bar / sheet hairline */
  --pk-hair-sub: #EBEBE9; /* the row divider */
  --pk-hair2: #D6D6D3;    /* a field's border, the sheet grab */
  --pk-edge: #FFFFFF;
  --pk-btn-bg: #FFFFFF;
  --pk-indigo: #24695A;   /* the accent: forest (Step 3b, the desktop default) */
  --pk-indigo-ink: #1B5246;
  --pk-soft: #E4EFEB;     /* the accent tint (the accent pill) */
  --pk-acc-text: #24695A; /* the accent as text (primary text buttons, the on nav item) */
  --pk-unread: #C9820A;   /* ONE unread signal: every unread dot */
  --pk-dot-lift: none;
  --pk-alert-bg: #FBEBDF; --pk-alert-ink: #A63C0B;
  --pk-pill-bg: #EFEFED;  --pk-pill-ink: #3F3F46;
  --pk-press: #F1F1EF;    /* a pressed row */
  --pk-sel: #EEF3F0;      /* a long-pressed row */
  --pk-scrim: rgba(24, 24, 27, .28);
  --pk-elev-1: 0 1px 2px rgba(24, 24, 27, .06), 0 1px 1px rgba(24, 24, 27, .04);
  --pk-elev-2: 0 4px 12px rgba(24, 24, 27, .08), 0 1px 3px rgba(24, 24, 27, .06);
  --pk-elev-3: 0 -16px 40px rgba(24, 24, 27, .14), 0 -2px 6px rgba(24, 24, 27, .08);
  --pk-fab-shadow: 0 4px 12px rgba(24, 24, 27, .12), 0 1px 3px rgba(24, 24, 27, .08);
  --pk-good: #24695A;
  --pk-amber: #C9820A;
  --pk-danger: #B42318;
  --pk-later: #3F3F46;    /* the swipe-left Later strip */
  /* The bottom nav (Desk · Later · Inboxes). */
  --pk-nav-h: 74px;
  /* The top of every screen. Pocket is laid out below a solid iOS status bar
     (no viewport-fit=cover, b227), and iOS paints that bar from the page
     background, so the page edges and the top headers are the ground colour.
     Content starts --pk-top-gap under the top; a header row is --pk-head-h. */
  --pk-top-gap: 0px;
  --pk-head-h: 44px;
  /* b231: the page is drawn under the status bar again (the app card slides from
     the top of the screen). iOS 26 blurs a band about 40px under the status bar;
     the status bar, header and side menu are one colour (b228/b230), so the band
     only blurs flat colour, and --pk-ramp keeps header text below it. Every top
     offset reads --pk-safe-top. A browser tab has no blur, so no ramp. */
  --pk-ramp: 0px;
  --pk-safe-top: calc(env(safe-area-inset-top, 0px) + var(--pk-ramp));
  --pk-nav-bg: #FFFFFF;
  --pk-nav-line: #E4E4E1;
  --pk-nav-shadow: none;
  --pk-nav-ic: #55555C;
  --pk-nav-on: #24695A;
  --pk-nav-on-bg: transparent;
  --pk-nav-press: #F1F1EF;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* the desktop's dark tokens (App.css :root.dark, forest accent) */
    --pk-bg: #141416;
    --pk-screen: #141416;
    --pk-surface: #1D1D20;
    --pk-screen2: #27272B;
    --pk-ink: #E4E4E7;
    --pk-ink2: #C4C4C8;
    --pk-dim: #9E9EA4;
    --pk-faint: #939399;
    --pk-hair: #313135;
    --pk-hair-sub: #27272B;
    --pk-hair2: #3B3B40;
    --pk-edge: #313135;
    --pk-btn-bg: #1D1D20;
    --pk-indigo: #24695A;
    --pk-indigo-ink: #94CDBF;
    --pk-soft: #17332D;
    --pk-acc-text: #94CDBF;
    --pk-unread: #F0B44C;
    --pk-alert-bg: #43271A; --pk-alert-ink: #FFB48C;
    --pk-pill-bg: #313135;  --pk-pill-ink: #C8C8CC;
    --pk-press: #232326;
    --pk-sel: #1B2A26;
    --pk-scrim: rgba(0, 0, 0, .5);
    --pk-elev-1: 0 1px 2px rgba(0, 0, 0, .35);
    --pk-elev-2: 0 4px 12px rgba(0, 0, 0, .40), 0 1px 3px rgba(0, 0, 0, .30);
    --pk-elev-3: 0 -16px 40px rgba(0, 0, 0, .55), 0 -2px 6px rgba(0, 0, 0, .35);
    --pk-fab-shadow: 0 4px 12px rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .35);
    --pk-good: #66B5A2;
    --pk-amber: #F0B44C;
    --pk-danger: #F0736F;
    --pk-later: #52525B;
    --pk-ai-ink: #AD8FE8;
    --pk-nav-bg: #1D1D20;
    --pk-nav-line: #313135;
    --pk-nav-ic: #9E9EA4;
    --pk-nav-on: #94CDBF;
    --pk-nav-press: #232326;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden; /* the document never scrolls — all scrolling is internal
                       (.scroll layers), so focusing the reply input can't throw
                       the email view up. */
}

/* The page edges are the ground colour: iOS paints the status-bar band and the
   strip under the home indicator from the page background, so they match the
   headers, the list and the bottom nav (b228, b230). */
html { background: var(--pk-screen); }

body {
  position: fixed; inset: 0; /* pin the body to the viewport so iOS cannot scroll
                                 the document when the keyboard opens. */
  font-family: var(--pk-font);
  font-synthesis: none;
  background: var(--pk-screen);
  color: var(--pk-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

#app {
  display: flex;
  flex-direction: column;
  /* JS keeps --app-vh at the real visible height (see setAppVH); 100dvh is the
     fallback before the first measurement. */
  height: var(--app-vh, 100dvh);
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
/* While a full-screen sheet is open, freeze the mail list behind it so iOS can't
   scroll it under a touch that lands on the sheet (see syncSheetLock). */
#app.sheet-open #scroll { overflow: hidden; touch-action: none; }
/* A full-screen takeover (reader / compose / calendar) fully REPLACES the main UI:
   hide the header, list and bottom nav so none of it shows in the gap when a
   viewport-pinned sheet shifts for the keyboard — the sheet is the whole screen. */
#app.sheet-cover > .ahead,
#app.sheet-cover > #scroll,
#app.sheet-cover > .botbar { visibility: hidden; }

.mono { font-family: var(--pk-mono); }
.grad { background: var(--ai); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- header (floating buttons on a fading frosted overlay; list scrolls under) ---- */
.ahead {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  /* The sides never go below their buttons' width; the group pill in the middle
     gives way (its name truncates) and stays centred while there is room. */
  display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr); align-items: center; gap: 8px;
  padding: calc(var(--pk-safe-top) + 12px) 14px 16px;
}
/* b209: the old frosted fade behind the header (b32) is gone: every header is a solid bar. */
.hdr-side { display: flex; min-width: 40px; }
.hdr-side.end { justify-content: flex-end; gap: 8px; }
.hdr-off { position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--pk-faint); border: 2px solid var(--pk-screen); }
.spark { flex: 0 0 auto; }
.gdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pk-good); margin-right: 7px;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--pk-good) 22%, transparent); }
.gdot.off { background: var(--pk-faint); box-shadow: 0 0 0 2px color-mix(in srgb, var(--pk-faint) 22%, transparent); }
.acct { font-size: 14.5px; font-weight: 600; color: var(--pk-ink); min-width: 0; max-width: 100%; background: var(--pk-screen);
  border: 1px solid var(--pk-hair); border-radius: 999px; padding: 8px 14px; cursor: pointer;
  box-shadow: 0 4px 14px -6px rgba(23, 20, 45, .26);
  display: inline-flex; align-items: center; gap: 6px; }
/* On a narrow phone the header's right-side buttons (Unread + Ask, or Meet + Calendars)
   leave the group little room: its name gives way (ellipsis), never the buttons. */
.ahead > .acct { overflow: hidden; }
@media (max-width: 359px) {
  .ahead { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ahead > .acct { justify-self: center; }
}
.acct-n { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-ind { flex: none; display: inline-flex; align-items: center; }
.acct-chev { color: var(--pk-faint); font-size: 10px; }
.acct-spin { display: none; width: 12px; height: 12px; border-radius: 50%;
  border: 1.6px solid var(--pk-hair2); border-top-color: var(--pk-indigo); animation: spin .7s linear infinite; }
.acct.busy .acct-chev, .acct.pulling .acct-chev { display: none; }
.acct.busy .acct-spin, .acct.pulling .acct-spin { display: inline-block; }
.iconbtn { background: none; border: none; color: var(--pk-dim); padding: 6px; margin: -6px -6px -6px 0;
  cursor: pointer; display: inline-flex; border-radius: 4px; }
.iconbtn:active { color: var(--pk-indigo-ink); }
.ahead .acct + .iconbtn { margin-left: 4px; }
.hdr-btn { background: var(--pk-btn-bg); border: 1.5px solid var(--pk-edge); color: var(--pk-dim);
  width: 40px; height: 40px; flex: none; cursor: pointer; display: inline-flex; position: relative;
  align-items: center; justify-content: center; border-radius: 50%;
  box-shadow: 0 4px 14px -6px rgba(23, 20, 45, .26); }
.hdr-btn:active { color: var(--pk-indigo-ink); transform: scale(.96); }
/* The Unread filter (header, beside Ask). On: the unread blue, with its dot. */
.hdr-unread.on { color: #3b82f6; border-color: color-mix(in srgb, #3b82f6 45%, var(--pk-hair)); }
.hdr-unread-dot { position: absolute; top: 3px; right: 3px; width: 9px; height: 9px; border-radius: 50%;
  background: #3b82f6; border: 2px solid var(--pk-screen); box-shadow: 0 0 6px rgba(59, 130, 246, .65); }
.acct:only-of-type:not([data-action]) { cursor: default; }

/* ---- scroll body ---- */
.scroll { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: none;
  padding: calc(64px + var(--pk-safe-top)) 14px 108px; /* clears the 68px nav pill + 16px offset */
  -webkit-overflow-scrolling: touch; }
/* The first block sits right under the header. Without the AI card (dismissed or
   never shown) that is the tab strip, whose own top margin would leave a gap. */
#scroll > :first-child { margin-top: 4px; }

/* The list springs at its end: a finger dragging past the last row pulls the
   list up with resistance and it settles back (app.js, gesture 'spring'), and a
   fling that lands on the end bumps once. */
#scroll.settle, .reader-body.settle { transition: transform .5s cubic-bezier(.22, 1.3, .36, 1); }
#scroll.bump, .reader-body.bump { animation: pk-bump .55s cubic-bezier(.22, 1, .36, 1); }
.reader-body.bump-down { animation: pk-bump-down .55s cubic-bezier(.22, 1, .36, 1); }
@keyframes pk-bump-down { 0% { transform: none; } 35% { transform: translateY(32px); } 100% { transform: none; } }
/* In an open mail the pull text sits under the reader's top bar. */
.rd-ptr-text { top: calc(var(--pk-safe-top) + 74px); }
@keyframes pk-bump { 0% { transform: none; } 35% { transform: translateY(-32px); } 100% { transform: none; } }
/* The same at the top: the pull uncovers .ptr-text under the header; a fling
   that lands on the top springs down once and shows it (no refresh). */
#scroll.bump-top { animation: pk-bump-top .7s cubic-bezier(.22, 1, .36, 1); }
@keyframes pk-bump-top { 0% { transform: none; } 30% { transform: translateY(52px); } 100% { transform: none; } }
/* Etched (debossed): the words read as pressed into the surface the list slides
   off. Light: mid-grey ink with a crisp white edge under each letter (the lower
   lip catches the light) and a faint dark edge over it. Dark: the ink sits a few
   steps above the ground, a deep shadow over each letter and a thin light lip
   under it. Both keep a legible contrast (about 3:1) — not a ghost. */
.ptr-text { position: absolute; left: 0; right: 0; top: calc(var(--pk-safe-top) + 70px); z-index: 0;
  text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #8b8996;
  text-shadow: 0 1px 0 #ffffff, 0 -1px 0 rgba(23, 20, 45, .14);
  opacity: 0; pointer-events: none; }
@media (prefers-color-scheme: dark) {
  .ptr-text { color: #6d6b7a;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .09); }
}
.ptr-text.settle { transition: opacity .3s ease; }
.ptr-text.peek { animation: pk-peek .7s ease; }
@keyframes pk-peek { 0% { opacity: 0; } 25% { opacity: 1; } 60% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  #scroll.settle, .reader-body.settle { transition: none; }
  #scroll.bump, #scroll.bump-top, .reader-body.bump, .reader-body.bump-down, .ptr-text.peek { animation: none; } }

/* ---- Command center (an open mail's actions) ---- */
.cc-ov { position: absolute; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center;
  padding: 12px 12px calc(16px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, #000 42%, transparent);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: sheet-in .18s ease; }
.cc-card { width: 100%; max-width: 420px; background: var(--pk-screen); border-radius: 4px; padding: 8px 6px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5); animation: cc-up .2s cubic-bezier(.2, .8, .2, 1); }
@keyframes cc-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.cc-hd { padding: 8px 12px 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--pk-faint); }
.cc-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 12px; border: none; border-radius: 4px;
  background: none; color: var(--pk-ink); font: inherit; font-size: 16px; font-weight: 500; text-align: left; cursor: pointer; }
.cc-item svg { flex: 0 0 auto; color: var(--pk-dim); }
.cc-item:active { background: var(--pk-soft); }
.cc-item.danger, .cc-item.danger svg { color: #e5484d; }

/* ---- pull to refresh ---- */
/* A faint hint at the very top of the list — seen only when scrolled to the top
   (where the pull works), and it scrolls away with the content. */
.pull-hint { display: flex; align-items: center; justify-content: center; gap: 5px;
  margin: -2px 0 8px; font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--pk-faint); opacity: .55;
  font-family: var(--pk-mono); }
.pull-hint svg { opacity: .8; }

/* The spinner sits just under the header; app.js drags it down and rotates it. */
.ptr { position: absolute; top: calc(var(--pk-safe-top) + 60px); left: 50%; margin-left: -17px; z-index: 6;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--pk-screen); color: var(--pk-indigo);
  box-shadow: 0 6px 18px -6px rgba(23, 20, 45, .4);
  opacity: 0; transform: translateY(-44px); pointer-events: none; }
.ptr:not(.dragging) { transition: transform .22s ease, opacity .22s ease; }
.ptr.show { opacity: 1; }
.ptr.ready { color: var(--pk-indigo-ink); }
.ptr.show.spin { opacity: 1; transform: translateY(30px); }
.ptr.spin .ptr-icon { animation: ptr-rot .7s linear infinite; }
@keyframes ptr-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ptr.spin .ptr-icon { animation: none; } }

/* ---- AI summary card ---- */
.aicard { border-radius: 4px; padding: 1.4px; background: var(--ai);
  box-shadow: 0 10px 26px -14px color-mix(in srgb, var(--pk-indigo) 60%, transparent); margin-bottom: 14px; }
.aicard-in { border-radius: 4px; background: var(--pk-screen); background-image: var(--pk-wash); padding: 13px 14px; }
.ai-eye { font-family: var(--pk-mono); font-size: 9.5px; letter-spacing: .15em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 9px; background: var(--ai);
  -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.md { font-size: 12.5px; color: var(--pk-ink); line-height: 1.45; }
.md p { margin: 0 0 8px; }
.md p:last-child { margin-bottom: 0; }
.md b { font-weight: 600; }
.md-list { list-style: none; margin: 0 0 4px; padding: 0; }
.md-list li { position: relative; padding-left: 15px; margin-bottom: 8px; font-size: 12.5px; line-height: 1.42; }
.md-list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 5px; height: 5px;
  border-radius: 50%; background: var(--pk-indigo); }
.meta { font-size: 10.5px; color: var(--pk-faint); font-family: var(--pk-mono); margin-top: 8px; }
/* The quiet answer row under the summary (summaryReact in render.js). */
.ai-react { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 2px;
  margin-top: 8px; font-size: 12px; color: var(--pk-faint); }
.ai-react span { margin-right: 4px; }
.ai-react button { border: none; background: none; font: inherit; font-size: 12px; color: var(--pk-dim);
  padding: 6px 8px; border-radius: 4px; cursor: pointer; }
.ai-react button:active { background: var(--pk-soft); color: var(--pk-indigo-ink); }

/* ---- section titles ---- */
/* A clear section heading (used for the AI-on "Worth a look"): a gradient accent
   bar + bold ink text, so the section reads as a real heading, not a faint line. */
.st { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .005em;
  color: var(--pk-ink); font-weight: 700; margin: 18px 4px 8px; }
.st::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--ai);
  flex: 0 0 auto; }

/* ---- worth-a-look / needs-you rows ---- */
.look { display: flex; gap: 10px; padding: 9px 4px; align-items: flex-start; }
.look .lb { width: 6px; height: 6px; border-radius: 50%; background: var(--pk-indigo); margin-top: 6px; flex: 0 0 auto; }
.look .lbody { min-width: 0; flex: 1; }
.look .l1 { font-size: 15px; color: var(--pk-ink); font-weight: 500; line-height: 1.35; }
.look .l2 { font-size: 13px; color: var(--pk-faint); margin-top: 2px; }
.look .rt { margin-left: auto; font-family: var(--pk-mono); font-size: 8.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--pk-amber); flex: 0 0 auto; margin-top: 3px; }
/* The DONE (check) button on a worth-a-look / needs-you row — archives without opening. */
.look-done { margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: 1.5px solid var(--pk-edge); border-radius: 50%; background: var(--pk-btn-bg);
  color: var(--pk-faint); cursor: pointer; padding: 0; flex: 0 0 auto; margin-top: 1px; }
.look-done:active { background: var(--pk-indigo); border-color: var(--pk-indigo); color: #fff; }
/* "Reeveon caught" — a watch hit. The watch line is the attribution; "Not a
   match" is a quiet text button, not a destructive one. */
.look.caught .l2.watch { color: var(--pk-indigo-ink); }
.look.caught .l2.said { color: var(--pk-dim); font-size: 12.5px; }
.caught-miss { margin-left: auto; flex: 0 0 auto; border: 1px solid var(--pk-hair2); background: var(--pk-screen);
  color: var(--pk-dim); font: inherit; font-size: 12px; padding: 6px 10px; border-radius: 999px; cursor: pointer;
  margin-top: 1px; white-space: nowrap; }
.caught-miss:active { background: var(--pk-soft); }

/* "Worth a look" as a reason tag on the mail row (AI-off, Option A): accent
   ink at the head of the subject line, no fill, no pill, so it does not compete
   with the Set aside pill or the amber reminder chip. --pk-indigo-ink is
   #3f236f on the light screen and #c2aef0 on the dark one (both >= 4.5:1). */
.wal-tag { font-size: 13px; font-weight: 500; letter-spacing: .005em; color: var(--pk-indigo-ink); }
.mail.read .wal-tag { color: var(--pk-indigo-ink); }
.wal-sep { color: var(--pk-faint); font-weight: 400; margin: 0 5px 0 4px; }

/* ---- AI-off banner + count chips ---- */
.aioff { display: flex; gap: 9px; align-items: center; padding: 11px 12px; border: 1px dashed var(--pk-hair2);
  border-radius: 4px; margin-bottom: 12px; }
.aioff p { margin: 0; font-size: 11.5px; color: var(--pk-dim); }
.aioff b { color: var(--pk-ink); font-weight: 600; }

/* AI-off lead card — "Add to Home Screen" prompt (not yet installed). */
.install-card { display: flex; gap: 11px; align-items: flex-start; padding: 12px 13px;
  border: 1px solid var(--pk-hair2); border-radius: 4px; margin-bottom: 12px; background: var(--pk-screen2); }
.install-ic { flex: 0 0 auto; color: var(--pk-indigo); margin-top: 1px; display: inline-flex; }
.install-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.install-tx b { font-size: 12.5px; font-weight: 650; color: var(--pk-ink); }
.install-tx span { font-size: 11.5px; color: var(--pk-dim); line-height: 1.42; }

/* AI-off lead card — colorful "Enable AI" invite (already installed). The gradient
   border + wash mirror the AI summary card; the title is gradient-clipped text. */
.ai-enable { border-radius: 4px; padding: 1.4px; background: var(--ai); margin-bottom: 12px;
  box-shadow: 0 10px 26px -14px color-mix(in srgb, var(--pk-indigo) 60%, transparent); }
.ai-enable-in { display: flex; gap: 10px; align-items: flex-start; border-radius: 4px;
  background: var(--pk-screen); background-image: var(--pk-wash); padding: 12px 13px; }
.ai-enable .spark { margin-top: 1px; flex: 0 0 auto; }
.ai-enable-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.ai-enable-x { flex: 0 0 auto; width: 30px; height: 30px; margin: -6px -7px -6px 0; border: none; background: none;
  color: var(--pk-faint); font-size: 22px; line-height: 1; cursor: pointer; border-radius: 50%; }
.ai-enable-x:active { background: var(--pk-soft); }
.ai-enable-tx b { font-size: 13px; font-weight: 700; display: inline-block; background: var(--ai);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-enable-tx span { font-size: 11.5px; color: var(--pk-dim); line-height: 1.42; }
.cchips { display: flex; gap: 7px; margin: 14px 2px 4px; flex-wrap: wrap; }
.cc { font-size: 13px; color: var(--pk-dim); border: 1px solid var(--pk-hair2); border-radius: 999px; padding: 4px 10px; }
.cc b { color: var(--pk-ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- unread list ---- */
.lhead { display: flex; align-items: baseline; gap: 8px; margin: 16px 4px 4px; }
.lhead .h { font-family: var(--pk-mono); font-size: 11px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--pk-faint); font-weight: 600; }
.lhead .c { margin-left: auto; font-size: 12px; color: var(--pk-faint);
  font-family: var(--pk-mono); font-variant-numeric: tabular-nums; }
.mail { position: relative; display: flex; gap: 7px; padding: 13px 4px 13px 2px; }
/* A hairline that is strongest at the middle and fades to nothing at both ends
   — the Superhuman-style divider, drawn as a pseudo-element so it can be a
   gradient rather than a flat border. */
.mail::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--pk-hair2) 22%, var(--pk-hair2) 78%, transparent); }
.mail:first-of-type::before { display: none; }
.udot { width: 8px; height: 8px; border-radius: 50%; background: var(--pk-indigo); margin-top: 7px; flex: 0 0 auto; }
.mb { min-width: 0; flex: 1; }
.mtop { display: flex; align-items: baseline; gap: 8px; }
.msend { font-size: 16px; font-weight: 700; color: var(--pk-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtime { margin-left: auto; font-size: 13px; color: var(--pk-faint); flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.msubj { font-size: 15.5px; color: var(--pk-ink); font-weight: 500; margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mprev { font-size: 14.5px; color: var(--pk-dim); margin-top: 3px; line-height: 1.38;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.empty { font-size: 14px; color: var(--pk-faint); padding: 12px 4px; }
.empty.big { text-align: center; padding: 40px 20px; }

/* ---- centered chrome screens (pair / waiting / loading / error) ---- */
.center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px 28px calc(40px + env(safe-area-inset-bottom, 0px)); gap: 14px; }
.center h1 { font-size: 1.6rem; font-weight: 700; margin: 4px 0 0; letter-spacing: -.02em; }
.center .sub { font-size: .95rem; line-height: 1.5; color: var(--pk-dim); margin: 0; }
.center .fine { font-size: .78rem; color: var(--pk-faint); margin: 8px 0 0; line-height: 1.5; }
.center .err { font-size: .85rem; color: var(--pk-danger); margin: 0; }

/* Install-first pairing (browser tab): numbered steps. */
.install-steps { text-align: left; margin: 4px auto 14px; padding-left: 1.2em; max-width: 19em;
  font-size: .92rem; line-height: 1.5; color: var(--pk-dim); }
.install-steps li { margin: 5px 0; }
.install-steps b { color: var(--pk-ink); font-weight: 600; }
/* "Scan QR code" on the pair screen. */
.scan-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; }
.scan-ico { flex: none; }
/* The camera sheet (scan.js): full screen, the stream fills it, a square frame. */
.qr-scan { position: fixed; inset: 0; z-index: 1000; background: #000; color: #fff; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: calc(16px + var(--pk-safe-top)) 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
.qr-scan-title { font-size: 1rem; font-weight: 600; text-align: center; }
.qr-scan-view { position: relative; width: min(86vw, 420px); aspect-ratio: 1 / 1; border-radius: 4px; overflow: hidden; background: #111; }
.qr-scan-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.qr-scan-frame { position: absolute; inset: 14%; border: 3px solid rgba(255,255,255,.9); border-radius: 4px;
  box-shadow: 0 0 0 999px rgba(0,0,0,.28); }
.qr-scan-msg { margin: 0; font-size: .9rem; line-height: 1.45; text-align: center; max-width: 22em; color: rgba(255,255,255,.82); }
.qr-scan-msg.err { color: #ffb4b4; }
.qr-scan-cancel { background: rgba(255,255,255,.14); color: #fff; border: none; border-radius: 999px;
  padding: 12px 28px; font-size: .95rem; font-weight: 600; cursor: pointer; }

.primary { background: var(--ai); color: #fff; font-weight: 600; font-size: .95rem; border: none;
  border-radius: 999px; padding: 13px 22px; cursor: pointer; width: 100%; max-width: 300px;
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--pk-indigo) 70%, transparent); }
.primary:disabled { opacity: .6; }
.ghost { background: none; border: none; color: var(--pk-indigo-ink); font-weight: 500; font-size: .9rem;
  cursor: pointer; padding: 8px; margin-top: 4px; }

.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--pk-hair2);
  border-top-color: var(--pk-indigo); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

/* ---- refresh spin ---- */
.iconbtn.spin svg { animation: spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .iconbtn.spin svg { animation-duration: 2s; } }

/* ---- tappable rows (open compose) ---- */
.mail.tappable, .look.tappable { cursor: pointer; border-radius: 4px; }
.mail.tappable:active, .look.tappable:active { background: var(--pk-soft); }
.mail.tappable:focus-visible, .look.tappable:focus-visible { outline: 2px solid var(--pk-indigo); outline-offset: 1px; }

/* ---- Ask (P2) ---- */
.ask-form { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; padding: 7px 10px 7px 11px;
  border: 1px solid var(--pk-hair2); border-radius: 999px; background: var(--pk-screen); }
.ask-form:focus-within { border-color: var(--pk-indigo); box-shadow: 0 0 0 3px var(--pk-soft); }
.ask-input { flex: 1; min-width: 0; border: none; background: none; color: var(--pk-ink);
  font-size: 13px; padding: 3px 0; }
.ask-input:focus { outline: none; }
.ask-input::placeholder { color: var(--pk-faint); }
.ask-send { flex: 0 0 auto; width: 30px; height: 30px; border: none; border-radius: 50%; background: var(--ai);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ask-send:disabled { opacity: .6; }

.ask-thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 6px; }
.ask-thread:empty { margin: 0; }
.ask-turn { display: flex; flex-direction: column; gap: 6px; }
.ask-q { align-self: flex-end; max-width: 85%; background: var(--pk-soft); color: var(--pk-ink);
  font-size: 12.5px; line-height: 1.4; padding: 8px 12px; border-radius: 14px 14px 4px 14px; }
.ask-a { font-size: 12.5px; color: var(--pk-ink); line-height: 1.45; }
.ask-a.err { color: var(--pk-danger); }
.ask-a.thinking { display: inline-flex; align-items: center; gap: 8px; color: var(--pk-dim); font-size: 12px; }
.ask-model { font-family: var(--pk-mono); font-size: 9.5px; color: var(--pk-faint);
  margin-top: 6px; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--pk-indigo); opacity: .4;
  animation: adot 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .16s; }
.dots i:nth-child(3) { animation-delay: .32s; }
@keyframes adot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .dots i { animation: none; opacity: .6; } }

/* ---- compose FAB ---- */
.fab { position: absolute; right: 16px; bottom: 58px;
  width: 50px; height: 50px; border-radius: 50%; border: none; background: var(--ai); cursor: pointer;
  box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--pk-indigo) 70%, transparent);
  display: flex; align-items: center; justify-content: center; z-index: 7; }
.fab:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) { .fab:active { transform: none; } }

/* ---- compose sheet ---- */
.sheet { position: fixed; inset: 0; z-index: 20; display: flex; justify-content: center;
  background: color-mix(in srgb, #000 34%, transparent); }
.sheet-card { display: flex; flex-direction: column; width: 100%; max-width: 480px; height: var(--app-vh, 100dvh); position: relative;
  background: var(--pk-screen); animation: sheet-in .22s ease; }
@keyframes sheet-in { from { transform: translateY(14px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet-card { animation: none; } }
/* The reader is a full-screen takeover, not a modal — solid ground, no dim. */
.sheet.reader { background: var(--pk-screen); }
/* The reader is JS-pinned to the live visual viewport (see pinReaderSheet); the
   card fills it, so the footer's absolute bottom is always the visible bottom. */
.sheet.reader .sheet-card { height: 100%; }
.sheet-head { justify-content: space-between; }
.sheet-title { font-weight: 700; font-size: 14px; color: var(--pk-ink); }
.sheet-draft { font-size: 13px; color: var(--pk-faint); }
.cancel { font-size: 13px; color: var(--pk-indigo-ink); font-weight: 500; background: none; border: none; cursor: pointer; padding: 0; }
.sheet-body { padding-bottom: 90px; }

.seg { display: flex; gap: 4px; margin: 2px 2px 12px; padding: 3px; background: var(--pk-screen2); border-radius: 4px; }
.seg span { flex: 1; text-align: center; font-size: 12px; font-weight: 600; color: var(--pk-dim);
  padding: 7px 0; border-radius: 4px; cursor: pointer; }
.seg span.act { background: var(--pk-screen); color: var(--pk-indigo-ink);
  box-shadow: 0 1px 2px rgba(23, 20, 45, .06), 0 6px 16px -8px rgba(23, 20, 45, .2); }
.seg span.seg-off { opacity: .4; cursor: not-allowed; }

.ctx { display: flex; gap: 8px; align-items: center; padding: 9px 11px; border-radius: 4px;
  background: var(--pk-soft); margin-bottom: 12px; }
.ctx svg { flex: 0 0 auto; }
/* The forwarded message under a forward's note: read-only, quoted. */
.fwd-orig { margin: 4px 0 12px; padding: 10px 12px; border-left: 3px solid color-mix(in srgb, var(--pk-indigo) 45%, transparent);
  background: var(--pk-soft); border-radius: 0 10px 10px 0; color: var(--pk-ink); font-size: 14px; line-height: 1.45; }
.fwd-h { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--pk-indigo-ink); margin-bottom: 6px; }
.fwd-meta { font-size: 13px; color: var(--pk-dim); margin-bottom: 8px; }
.fwd-k { color: var(--pk-faint); }
.fwd-body { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 50vh; overflow-y: auto; }
.fwd-note { margin-top: 6px; font-size: 12px; color: var(--pk-faint); }
.ctx .ct { font-size: 11.5px; color: var(--pk-ink); line-height: 1.35; }
.ctx b { font-weight: 600; }

.fld { display: flex; align-items: center; gap: 8px; padding: 9px 2px; border-bottom: 1px solid var(--pk-hair); font-size: 12.5px; }
.fld .fl { color: var(--pk-faint); width: 56px; flex: 0 0 auto; }
.fld .fv { color: var(--pk-ink); }
.fld .fv-warn { color: var(--pk-amber); }
.fld .pk-pick { margin-left: auto; color: var(--pk-indigo-ink); font-weight: 500; cursor: pointer; }
.cin { flex: 1; min-width: 0; border: none; background: none; color: var(--pk-ink); font-size: 12.5px;
  font-family: inherit; padding: 2px 0; }
.cin:focus { outline: none; }
.cin::placeholder { color: var(--pk-faint); }
/* Recipient autocomplete: a list under the To / Cc field being typed in. */
.fld-addr { position: relative; flex-wrap: wrap; row-gap: 6px; }
.fld-addr .cin { flex: 1 1 60px; min-width: 60px; width: 60px; }
/* The folded address line (addr-sum) and the fold arrow on the To field. */
.addr-box[hidden], .addr-sum[hidden] { display: none; }
.addr-sum { width: 100%; border: none; border-bottom: 1px solid var(--pk-hair); background: none; font: inherit;
  font-size: 12.5px; text-align: left; cursor: pointer; }
.addr-sum-t { flex: 1; min-width: 0; color: var(--pk-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addr-chev { flex: 0 0 auto; color: var(--pk-faint); }
.fld-addr.has-col { padding-right: 34px; }
.addr-col { position: absolute; right: -4px; top: 4px; width: 34px; height: 34px; border: none; background: none;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.addr-col:active { background: var(--pk-soft); }
/* Address pills: one per finished address, the field after them. */
.chips { display: contents; }
.chip { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; min-width: 0;
  padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--pk-soft); color: var(--pk-indigo-ink);
  font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.chip.bad { background: color-mix(in srgb, var(--pk-danger) 14%, transparent); color: var(--pk-danger); }
.chip-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-x { flex: 0 0 auto; width: 22px; height: 22px; border: none; border-radius: 50%; background: none;
  color: inherit; opacity: .6; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.chip-x:active { opacity: 1; background: color-mix(in srgb, currentColor 14%, transparent); }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 8; padding: 6px;
  background: var(--pk-screen); border: 1px solid var(--pk-hair); border-radius: 4px;
  box-shadow: 0 16px 40px -12px rgba(23, 20, 45, .4); }
.ac-list[hidden] { display: none; }
.ac-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 8px; border: none; background: none;
  border-radius: 4px; font: inherit; text-align: left; cursor: pointer; }
.ac-item:active { background: var(--pk-soft); }
.ac-av { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: var(--pk-soft); color: var(--pk-indigo-ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.ac-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ac-name { font-size: 15px; font-weight: 600; color: var(--pk-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-em { font-size: 13.5px; color: var(--pk-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cbody { width: 100%; margin-top: 12px; border: none; background: none; color: var(--pk-ink);
  font-family: inherit; font-size: 14px; line-height: 1.55; resize: none; min-height: 160px; padding: 2px;
  overflow: hidden; /* JS auto-grows it (growComposeBody) so the BODY scrolls, not the textarea */ }
.cbody:focus { outline: none; }
.cbody::placeholder { color: var(--pk-faint); }

.fwd-hint { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 11px; color: var(--pk-faint); }

/* Compose attachments: the Attach button + a wrapping strip of file chips. */
.catt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--pk-hair); }
.catt-row.empty { display: none; }
.catt-add { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--pk-hair2);
  border-radius: 999px; background: none; color: var(--pk-indigo); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.catt-add:active { color: var(--pk-indigo-ink); background: color-mix(in srgb, var(--pk-indigo) 8%, transparent); }
.catt-chips { display: flex; flex-wrap: wrap; gap: 7px; flex: 1 1 100%; }
.catt-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 7px 5px 9px;
  border: 1px solid var(--pk-hair2); border-radius: 4px; background: var(--pk-screen2); font-size: 11.5px; color: var(--pk-ink); }
.catt-chip.err { border-color: color-mix(in srgb, var(--pk-danger) 55%, var(--pk-hair2)); }
.catt-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.catt-size { color: var(--pk-faint); font-size: 10.5px; flex: none; }
.catt-mark { flex: none; font-size: 11px; font-weight: 700; }
.catt-mark.ok { color: var(--pk-indigo); }
.catt-mark.err { color: var(--pk-danger); }
.catt-spin { flex: none; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--pk-hair2);
  border-top-color: var(--pk-indigo); animation: spin .7s linear infinite; }
.catt-x { flex: none; border: none; background: none; color: var(--pk-faint); font-size: 16px; line-height: 1; padding: 0 2px; cursor: pointer; }
.catt-x:active { color: var(--pk-ink); }

.csend-msg { margin-top: 14px; font-size: 12px; }
.csend-msg.err { color: var(--pk-danger); }
.csend-msg.ok { color: var(--pk-good); }

.sendbar { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(transparent, var(--pk-screen) 34%); display: flex; align-items: center; gap: 10px; }
.sendbtn { background: var(--ai); color: #fff; font-weight: 600; font-size: 13px; border: none; border-radius: 999px;
  padding: 11px 22px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.sendbtn:disabled { opacity: .6; }
.via { font-size: 10.5px; color: var(--pk-faint); font-family: var(--pk-mono); }

/* ---- compose: full-screen takeover, mirror of the reader chrome ---- */
.sheet.compose { background: var(--pk-screen); } /* solid ground, no dim — full swap */
.sheet.compose .sheet-card { height: 100%; }     /* fill the JS-pinned sheet */
/* The body scrolls behind the frosted top bar; generous bottom padding leaves room
   to scroll the last line clear of the send FAB and above the keyboard. */
.compose-body { padding: calc(var(--pk-safe-top) + var(--pk-head-h) + 4px + 12px) 16px calc(96px + env(safe-area-inset-bottom, 0px)); overscroll-behavior: none;
  /* b240: the top bar is opaque and over the body, and the action bar is over its
     bottom. When the keyboard opens, iOS scrolls the focused field into view
     against the screen edge (below the status bar), not against these bars, so
     the To row went under the top bar (owner, iPhone 17 Pro). scroll-padding
     tells the browser what the bars cover; composeRevealFocused (app.js) puts
     the field back where iOS ignores it. */
  scroll-padding: calc(var(--pk-safe-top) + var(--pk-top-gap) + var(--pk-head-h) + 4px + 12px) 0 76px; }
/* Floating circular back button with a shadow — a matching pair to the send pill. */
.cp-back { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--pk-edge);
  background: var(--pk-btn-bg); color: var(--pk-dim); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 14px -5px rgba(23, 20, 45, .28); }
.cp-back:active { transform: scale(.95); color: var(--pk-indigo-ink); }
.cp-title { flex: 1 1 auto; text-align: center; font-size: 15px; font-weight: 700; color: var(--pk-ink); }
.cp-head-sp { flex: 0 0 auto; width: 42px; } /* balances the back button so the title centres */
/* From: a tappable pill that opens the dropdown. */
.cp-from { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; max-width: 70%;
  padding: 6px 10px 6px 12px; border-radius: 999px; border: 1px solid var(--pk-hair); background: var(--pk-screen2);
  color: var(--pk-indigo-ink); font: 600 12.5px/1 inherit; cursor: pointer; }
.cp-from-em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-from.open .cp-chev { transform: rotate(180deg); }
.cp-chev { flex: 0 0 auto; transition: transform .16s ease; }
.fld-from { align-items: center; }
/* The dropdown list — a card of send-from choices, tap to pick. */
.cp-menu { display: flex; flex-direction: column; margin: 4px 0 10px; border: 1px solid var(--pk-hair);
  border-radius: 4px; overflow: hidden; background: var(--pk-screen); box-shadow: 0 10px 26px -12px rgba(23, 20, 45, .3); }
.cp-mitem { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  padding: 12px 14px; border: none; border-bottom: 1px solid var(--pk-hair); background: var(--pk-screen);
  color: var(--pk-ink); font-size: 13px; text-align: left; cursor: pointer; }
.cp-mitem:last-child { border-bottom: none; }
.cp-mitem.sel { color: var(--pk-indigo-ink); font-weight: 600; }
.cp-mitem:active { background: var(--pk-soft); }
/* From-as-contact-avatar in the header (new message) — mirrors the reader's id pill
   avatar, tap to pick the send-from account. */
.cp-idbtn { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--pk-edge);
  background: var(--pk-soft); cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px -5px rgba(23, 20, 45, .28); }
.cp-idbtn:active { transform: scale(.95); }
.cp-idbtn.open { border-color: var(--pk-indigo); }
.cp-idav { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--pk-indigo-ink); }

/* Header From chip — the From address IS the title for a new message; tap to pick.
   It floats like the close button beside it, so it carries the same lift. */
.cp-fromchip { flex: 1 1 auto; min-width: 0; max-width: 260px; margin: 0 auto; display: inline-flex; align-items: center;
  gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1.5px solid var(--pk-edge); background: var(--pk-btn-bg);
  cursor: pointer; box-shadow: 0 4px 14px -6px rgba(23, 20, 45, .26); }
.cp-fromchip[disabled] { cursor: default; }
.cp-fromchip.open { border-color: var(--pk-indigo); }
.cp-fromchip:active:not([disabled]) { transform: scale(.98); }
.cp-fromchip-em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: var(--pk-ink); }
.cp-fromchip .cp-chev { flex: 0 0 auto; color: var(--pk-dim); }
.cp-idav.sm { width: 28px; height: 28px; border-radius: 50%; background: var(--pk-soft); color: var(--pk-indigo-ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: 0 0 auto; }

/* Account-card picker — a swipeable stack of sender cards over the compose. */
.cp-cards-ov { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: color-mix(in srgb, #000 42%, transparent);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: sheet-in .18s ease; }
.cp-cards { width: 100%; max-width: 380px; background: var(--pk-screen); border-radius: 4px; padding: 18px 14px 16px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5); }
.cp-cardhd { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--pk-faint); font-weight: 700;
  text-align: center; margin-bottom: 14px; }
.cp-cardrow { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cp-cardrow::-webkit-scrollbar { display: none; }
.cp-card { flex: 0 0 78%; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 24px 16px; border-radius: 4px; border: 1px solid var(--pk-hair); background: var(--pk-screen2); cursor: pointer; }
.cp-card.sel { border-color: var(--pk-indigo); box-shadow: 0 0 0 3px var(--pk-soft); }
.cp-card:active { transform: scale(.98); }
.cp-card-av { width: 60px; height: 60px; border-radius: 50%; background: var(--pk-soft); color: var(--pk-indigo-ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; }
.cp-card-em { font-size: 14px; font-weight: 600; color: var(--pk-ink); text-align: center; word-break: break-all; line-height: 1.35; }
.cp-card-tag { font-size: 11px; color: var(--pk-dim); }
.cp-card.sel .cp-card-tag { color: var(--pk-indigo-ink); font-weight: 600; }
.cp-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.cp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pk-hair2); }
.cp-dot.on { background: var(--pk-indigo); }
/* The action bar (Superhuman's): a tools pill left, a round Send right. It sits
   at the bottom of the compose sheet, which is pinned to the visible viewport
   (pinReaderSheet), so it rides right above the keyboard and never scrolls. */
.cp-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  pointer-events: none; }
/* While typing, the keyboard covers the home-bar area: drop that inset so the
   + and Send sit just above the keyboard. */
.sheet.compose:focus-within .cp-bar { padding-bottom: 6px; }
.cp-bar::before { content: ''; position: absolute; inset: -18px 0 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, var(--pk-screen) 55%, color-mix(in srgb, var(--pk-screen) 0%, transparent)); }
.cp-bar > * { pointer-events: auto; }
/* Compose buttons (and the reply card's): round, a solid fill, and the app's
   regular button shadow (--pk-btn-shadow, as on the top-bar buttons). */
:root { --pk-btn-shadow: 0 4px 14px -5px rgba(23, 20, 45, .28); }
.cp-tools { display: inline-flex; align-items: center; gap: 8px; }
.cp-tool { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--pk-edge); background: var(--pk-btn-bg);
  color: var(--pk-ink); box-shadow: var(--pk-btn-shadow);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cp-tool:active { transform: scale(.95); }
.cp-send { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; border: none;
  background: var(--pk-indigo); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--pk-btn-shadow); }
.cp-send:disabled { opacity: .45; cursor: default; box-shadow: none; }
.cp-send:active:not(:disabled) { transform: scale(.95); }
.cp-send .cp-spin { width: 19px; height: 19px; border-width: 2.4px; }
.cp-spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff; animation: spin .7s linear infinite; }

/* ---- calendar event detail ---- */
.ce-title { display: flex; align-items: baseline; gap: 10px; font-size: 22px; font-weight: 700; color: var(--pk-ink); line-height: 1.25; margin-bottom: 8px; }
.ce-dot { --ec: var(--pk-indigo); flex: 0 0 auto; width: 12px; height: 12px; border-radius: 4px; background: var(--ec); transform: translateY(1px); }
.ce-when { font-size: 15.5px; color: var(--pk-indigo-ink); font-weight: 600; margin-bottom: 16px; }
.ce-join { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 20px; border-radius: 999px;
  background: var(--pk-indigo); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; }
.ce-join:active { transform: scale(.97); }
.ce-row { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--pk-ink);
  padding: 11px 0; border-top: 1px solid var(--pk-hair); line-height: 1.35; }
.ce-row svg { flex: 0 0 auto; color: var(--pk-faint); margin-top: 1px; }
.ce-row-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.ce-k { font-size: 12.5px; font-weight: 600; color: var(--pk-dim); }
.ce-sub { font-size: 13px; color: var(--pk-faint); }
.ce-sub.in { font-weight: 400; }
.ce-tz { font-size: 13px; font-weight: 500; color: var(--pk-dim); }
.ce-tzline { font-size: 14px; color: var(--pk-dim); margin: -10px 0 14px; }
.ce-tzline + .ce-tzline { margin-top: -12px; }
.ce-cal { display: inline-flex; align-items: center; gap: 8px; }
.ce-dot.sm { width: 10px; height: 10px; border-radius: 3px; transform: none; }
.ce-link { color: var(--pk-indigo-ink); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.ce-rsvp { margin: 0 0 16px; }
.ce-rsvp-q { font-size: 13px; font-weight: 600; color: var(--pk-dim); }
.ce-rsvp .rd-inv-acts { margin-top: 8px; }
.ce-gl { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ce-gst { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ce-gst.more { color: var(--pk-faint); font-size: 13.5px; padding-left: 17px; }
.ce-gst-n { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.ce-gst-st { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--pk-hair2); }
.ce-gst-st.yes { background: var(--pk-good); }
.ce-gst-st.no { background: var(--pk-danger); }
.ce-gst-st.maybe { background: var(--pk-amber); }
.ce-gst-st.wait { background: none; border: 1px solid var(--pk-faint); }
.ce-gst-a { flex: none; font-size: 12.5px; font-weight: 600; color: var(--pk-dim); }
.ce-gst-a.no { color: var(--pk-danger); }

/* ---- read sheet ---- */
/* The bottom pad tracks the reply footer's live height (--rd-foot-h, see
   watchReplyFoot), so the last line scrolls clear of an open reply card. */
.reader-body { padding: calc(76px + var(--pk-safe-top)) 14px calc(var(--rd-foot-h, 150px) + 12px); }
/* The mail scrolls up and down only. A row a few px too wide must not make the
   whole thread drift sideways (owner, 2026-10-27); a wide HTML body keeps its
   layout and scrolls sideways in its own .rd-mbody (fillReaderFrame widens the
   frame; owner, 2026-11-14), and wide strips scroll themselves. */
.reader-body { overflow-x: hidden; }
.rd-head { padding: 4px 2px 12px; border-bottom: 1px solid var(--pk-hair); margin-bottom: 14px; }
.rd-from { font-size: 14px; font-weight: 700; color: var(--pk-ink); }
.rd-subject { font-size: 13px; color: var(--pk-ink); margin-top: 3px; line-height: 1.35; }
.rd-when { font-size: 11px; color: var(--pk-faint); margin-top: 5px;
  font-family: var(--pk-mono); }
/* A plain-text body uses the SAME base type as an HTML body in the mail frame
   (app.js wrapEmailHtml: body{font:16px/1.55 ...}), so a thread that mixes
   plain and HTML mail reads at one size (jstest/body_size). */
.rd-text { font-size: 16px; line-height: 1.55; color: color-mix(in srgb, var(--pk-ink) 86%, var(--pk-screen));
  white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
/* The body frame is transparent: a mail with no colours of its own shows on the
   screen colour (light or dark); a mail made for white paints its own white page
   inside the frame (app.js wrapEmailHtml). It stays invisible until it is measured
   (rd-frame-wait), then fades in at its own height — one step, no white box. */
.rd-frame { width: 100%; border: 0; background: transparent; border-radius: 4px; display: block; transition: opacity .14s ease; }
.rd-frame.rd-frame-wait { opacity: 0; }
/* While the frame lays out unseen, the preview holds its place (and the height the
   mail had last time is reserved on the body element). */
.rd-mbody.rd-staging { position: relative; }
.rd-mbody.rd-staging > .rd-frame-wait { position: absolute; left: 0; top: 0; }
@media (prefers-reduced-motion: reduce) { .rd-frame { transition: none; } }
/* The image strip above a mail body (image privacy): the tracker line (a shield,
   one quiet line) and the "Images hidden" bar with its two pill buttons. It
   shows with the frame, never before it (rd-staging). */
.rd-ipw { display: flex; flex-direction: column; gap: 6px; margin: 0 14px; }
.rd-ipw:not(:empty) { margin-bottom: 8px; }
.rd-mbody.rd-staging > .rd-ipw { display: none; }
.rd-ip { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0;
  font-size: 13px; line-height: 18px; color: var(--pk-dim); }
.rd-ip-ic { flex: 0 0 auto; color: var(--pk-indigo); }
.rd-ip-t { min-width: 0; }
.rd-ip-n { color: var(--pk-faint); }
/* The tracker line: a calm warning — a warm amber hairline around a soft box, a
   faint amber wash, the shield in amber; the text stays the reader's ink and
   wraps (a phone is narrow). The actions ("Allow tracking"; "Allow · Cancel";
   "Block again") sit on their own row under the text. Once allowed
   (rd-trk-ok) the box drops the warm tone for a plain hairline. */
.rd-trk, .rd-trk-ok { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; row-gap: 3px;
  align-items: center; padding: 8px 16px; border-radius: 4px; align-self: flex-start; max-width: 100%; }
.rd-trk { border: 1px solid color-mix(in srgb, var(--pk-amber) 62%, transparent);
  background: color-mix(in srgb, var(--pk-amber) 13%, var(--pk-screen)); }
.rd-trk .rd-ip-ic { color: var(--pk-amber); }
.rd-trk > .rd-ip-ic, .rd-trk-ok > .rd-ip-ic { align-self: start; margin-top: 2px; }
.rd-trk .rd-ip-t { color: var(--pk-ink); }
.rd-trk-ok { border: 1px solid var(--pk-hair2); }
.rd-trk-ok .rd-ip-ic { color: var(--pk-faint); }
.rd-trk-acts { grid-column: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
.rd-ip-lk { border: 0; background: none; padding: 2px 0; font: inherit; font-weight: 600; font-size: 13px;
  color: var(--pk-dim); text-decoration: underline; text-decoration-color: var(--pk-hair2);
  text-underline-offset: 3px; cursor: pointer; flex: 0 0 auto; }
.rd-trk .rd-ip-b { padding: 3px 14px; }
.rd-imgbar { padding: 2px 0; }
.rd-ip-b { border: 1px solid var(--pk-hair2); background: var(--pk-btn-bg); color: var(--pk-indigo-ink);
  font: inherit; font-weight: 600; font-size: 13px; line-height: 18px; padding: 5px 12px; border-radius: 999px;
  box-shadow: 0 1px 2px rgba(23, 20, 45, .08); cursor: pointer; max-width: 100%; }
.rd-ip-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-load { display: flex; align-items: center; gap: 10px; padding: 30px 4px; color: var(--pk-dim); font-size: 14.5px; }
.rd-err { padding: 24px 4px; color: var(--pk-danger); font-size: 14.5px; }
.rd-err p { margin: 0 0 14px; }
.reader-actions { justify-content: center; gap: 12px; }
.rd-act { flex: 1; max-width: 180px; justify-content: center;
  background: var(--pk-screen); color: var(--pk-indigo-ink); font-weight: 600; font-size: 13px;
  border: 1px solid var(--pk-hair2); border-radius: 999px; padding: 11px 0;
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.rd-act:active { background: var(--pk-soft); }

/* ---- detail-view chrome (header pill, command pills, inline reply) ---- */
/* The top bar of compose, the calendar sheets and the open email (solid since b209).
   The content scrolls under it; the bar is opaque. */
.rd-topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding: calc(var(--pk-safe-top) + var(--pk-top-gap)) 12px 4px;
  min-height: calc(var(--pk-safe-top) + var(--pk-top-gap) + var(--pk-head-h) + 4px); }
/* b209: solid, no frosted blur (the b31 frosted top bar is gone): compose and the
   calendar sheets get the same plain bar as the open email. */
.rd-topbar::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--pk-surface); border-bottom: 1px solid var(--pk-hair); }
.rd-back { flex: 0 0 auto; width: 36px; height: 36px; border: none; background: none; color: var(--pk-dim);
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; }
.rd-back:active { background: var(--pk-screen2); }
.rd-idpill { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px;
  border: none; font: inherit; text-align: left; cursor: pointer;
  padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--pk-screen2);
  box-shadow: 0 4px 14px -5px rgba(23, 20, 45, .28); }
.rd-avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--pk-soft);
  color: var(--pk-indigo-ink); display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.rd-id { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.rd-sender { font-size: 15.5px; font-weight: 700; color: var(--pk-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-subj { font-size: 12.5px; color: var(--pk-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-ask { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--pk-edge);
  background: var(--pk-btn-bg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 14px -5px rgba(23, 20, 45, .28); }
.rd-ask:active { transform: scale(.96); }
.rd-meta2 { font-size: 10.5px; color: var(--pk-faint); font-family: var(--pk-mono);
  margin: 0 2px 12px; }

/* Attachment chips under the message body (cloud messages only) — each opens the
   file straight from the hub. */
.rd-atts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 2px 0; }
.rd-att { display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 9px 13px; border: 1px solid var(--pk-line, rgba(0,0,0,0.12)); border-radius: 4px;
  background: var(--pk-soft, rgba(0,0,0,0.03)); color: var(--pk-ink, inherit);
  font-size: 14.5px; cursor: pointer; }
.rd-att:active { background: var(--pk-soft); }
.rd-att svg { flex: 0 0 auto; color: var(--pk-faint); }
.rd-att-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Google Drive link cards under the body (b178): one plain link per linked
   Doc / Sheet / Slides / Form / Drawing / Drive file — icon, title, the type and
   the host in quiet ink. No preview: a tap opens the file (iOS may hand it to
   the Google app). */
.rd-dlhost:empty { display: none; }
.rd-dls { display: flex; flex-direction: column; gap: 8px; margin: 16px 2px 0; }
.rd-dl { display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 11px 14px; border: 1px solid var(--pk-hair2); border-radius: 2px;
  background: var(--pk-screen); color: var(--pk-ink); text-decoration: none;
  box-shadow: 0 1px 2px rgba(23, 20, 45, .06), 0 4px 14px -8px rgba(23, 20, 45, .18);
  -webkit-tap-highlight-color: transparent; }
.rd-dl:active { background: var(--pk-soft); }
.rd-dl-ic { flex: 0 0 auto; display: block; }
.rd-dl-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.rd-dl-name { font-size: 15.5px; font-weight: 560; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-dl-sub { display: flex; gap: 8px; align-items: baseline; min-width: 0;
  font-size: 13px; color: var(--pk-dim); }
.rd-dl-kind { flex: 0 0 auto; }
.rd-dl-host { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pk-faint);
  font-family: var(--pk-mono); font-size: 11.5px; }
@media (prefers-color-scheme: dark) {
  .rd-dl { background: var(--pk-screen2); box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 16px -8px rgba(0, 0, 0, .6); }
  /* Drive grey is too dark on the dark card: a lighter grey. */
  .rd-dl[data-kind="folder"] .rd-dl-ic path,
  .rd-dl[data-kind="file"] .rd-dl-ic path:first-child { fill: #9aa0a6; }
}

/* Same frosted, edgeless treatment as the list's bottom bar: a masked blur layer
   that fades into the message, with the command pills + reply on top. */
/* Fixed to the viewport, lifted by the live keyboard height (--kb): the reply bar
   sits ON the keyboard, and because it is fixed iOS never scroll-hunts the input.
   The bottom safe-area inset only applies when the keyboard is down (--kb 0). */
/* The swipe-back strip: a clear band down the whole left edge, above the mail.
   An HTML mail is a sandboxed frame that runs no script, so its touches never
   reach the page; this band catches them (app.js onTouchStart). */
.rd-edge { position: absolute; top: 0; bottom: 0; left: 0; width: 28px; z-index: 4; touch-action: none; }
.rd-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; flex-direction: column; gap: 8px;
  /* 16px from the screen bottom, the same as the list's .botbar (owner,
     2026-11-05): the pills sit over the home-indicator area, not above it. */
  padding: 42px 14px 16px; }
/* Typing: a small gap between the card and the keyboard, and a thin fade only, so
   the email behind stays readable. */
.rd-foot:focus-within { padding-bottom: 4px; }
.rd-foot.active { padding-top: 14px; }
/* One pill holding the command icons — same style as the list's tab pill. */
.rd-cmds { display: inline-flex; align-self: center; gap: 2px; padding: 3px;
  background: var(--pk-btn-bg); border: 1.5px solid var(--pk-edge); border-radius: 999px;
  box-shadow: 0 4px 14px -6px rgba(23, 20, 45, .22); }
.rd-cmd { width: 54px; height: 46px; border: none; border-radius: 999px; background: transparent;
  color: var(--pk-dim); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rd-cmd svg { width: 20px; height: 20px; }
.rd-cmd:active { background: var(--pk-soft); color: var(--pk-indigo-ink); }
/* Inline reply. Collapsed: one pill — the mode button (Reply / Reply all /
   Forward) and the field. Active (.rd-foot.active): a bounded card above the
   keyboard with the To line + Expand on top, the growing field, and Attach + Send
   below — every compose control on the card itself. */
.rd-reply { position: relative; display: flex; align-items: center; gap: 2px; padding: 5px 6px;
  border: 1.5px solid var(--pk-edge); border-radius: 999px; background: var(--pk-btn-bg);
  box-shadow: 0 4px 16px -6px rgba(23, 20, 45, .22); }
.rd-r-top { display: contents; }
.rd-to, .rd-expand, .rd-r-bar { display: none; }
.rd-mode { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 0 8px 0 10px;
  border: none; background: none; color: var(--pk-ink); border-radius: 999px; cursor: pointer; }
.rd-mode-ic { display: inline-flex; }
.rd-mode-chev { color: var(--pk-dim); }
.rd-mode:active { background: var(--pk-screen2); }
.rd-reply-in { flex: 1; min-width: 0; border: none; background: none; color: var(--pk-ink); resize: none;
  font-family: inherit; font-size: 16px; line-height: 1.4; padding: 9px 4px; height: 40px; max-height: 150px;
  overflow-y: auto; display: block; }
.rd-reply-in:focus { outline: none; }
.rd-foot .rd-reply-in { -webkit-user-select: text; user-select: text; }
.rd-reply-in::placeholder { color: var(--pk-faint); }

.rd-foot.active .rd-cmds { display: none; }
/* Folded, the reply pill reacts to a tap only: its field takes no touches (the
   pill focuses it on tap) and a swipe across the footer does nothing. Open, only
   the field itself scrolls (long text); the card's rows ignore drags. */
.rd-foot:not(.active) .rd-reply-in { pointer-events: none; overflow: hidden; }
.rd-foot:not(.active), .rd-foot.active .rd-r-top, .rd-foot.active .rd-r-bar { touch-action: none; }
.rd-foot.active .rd-reply-in { touch-action: pan-y; overscroll-behavior: contain; }
.rd-foot.active .rd-reply { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 10px 10px;
  border-radius: 4px;
  box-shadow: 0 8px 26px -10px rgba(23, 20, 45, .24); }
.rd-foot.active .rd-r-top { display: flex; align-items: center; gap: 6px; }
.rd-foot.active .rd-mode { padding-left: 4px; }
.rd-foot.active .rd-to { display: block; flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; color: var(--pk-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-foot.active .rd-expand { display: inline-flex; }
.rd-foot.active .rd-reply-in { padding: 6px 4px 8px; min-height: 64px; }
.rd-foot.active .rd-r-bar { display: flex; align-items: center; justify-content: space-between; }
.rd-expand { flex: 0 0 auto; width: 38px; height: 38px; border: none; background: none; color: var(--pk-dim);
  align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; }
.rd-expand:active { color: var(--pk-indigo-ink); background: var(--pk-screen2); }
.rd-attach { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--pk-edge); background: var(--pk-btn-bg);
  color: var(--pk-ink); box-shadow: var(--pk-btn-shadow); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rd-attach:active { transform: scale(.95); }
.rd-send { flex: 0 0 auto; width: 42px; height: 42px; border: none; border-radius: 50%; background: var(--pk-indigo);
  box-shadow: var(--pk-btn-shadow); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rd-send:active { transform: scale(.95); }
/* The mode menu opens above the reply pill / card. */
.rd-mode-menu { position: absolute; left: 4px; bottom: calc(100% + 8px); z-index: 7; min-width: 190px; padding: 6px;
  background: var(--pk-screen); border: 1px solid var(--pk-hair); border-radius: 4px;
  box-shadow: 0 16px 40px -12px rgba(23, 20, 45, .4); }
.rd-mode-menu[hidden] { display: none; }
.rd-mode-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: none;
  background: none; border-radius: 4px; font: inherit; font-size: 15.5px; color: var(--pk-ink); text-align: left; cursor: pointer; }
.rd-mode-item.on { color: var(--pk-indigo-ink); font-weight: 600; }
.rd-mode-item:active { background: var(--pk-soft); }

/* ---- toast ---- */
/* At the very top, over the header — clear of the inbox tabs (owner, 2026-10-27). */
/* b213: the toast sits above the bottom bar (it was under the status bar, in iOS's blur band). */
.pk-toast { position: fixed; left: 50%; bottom: calc(var(--pk-nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
  transform: translateX(-50%) translateY(8px); z-index: 40; max-width: 82%;
  padding: 10px 16px; border-radius: 999px; background: var(--pk-ink); color: var(--pk-bg);
  font-size: 14px; font-weight: 600; text-align: center; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.pk-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.pk-toast.err { background: var(--pk-danger); color: #fff; }

/* ---- bottom tab bar (compact pills, Superhuman-style) ---- */
/* A FLOATING pill (fixed to the viewport so it hugs the real bottom): an outer
   pill with 2px padding holding the tab pills; the active tab is a filled pill. */
/* Anchored ABSOLUTELY within #app (which fills the real height), NOT fixed to the
   viewport — fixed was landing ~100px too high in the standalone PWA. The list
   scrolls behind it (the scroll's bottom padding clears it), so there is no dead
   white band under the content. */
/* Anchored to #app (JS-sized to the real visible height), NOT to the CSS viewport
   — the viewport unit is what mis-paints the bottom on first load. bottom:0 of
   #app is the true visible bottom; the safe area is internal padding. */
/* A frosted bottom panel (translucent + blur) anchored to #app's bottom, with the
   Mail/Calendar pill group centered on it and the create circle on the right. */
.botbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 12; overflow: visible;
  display: flex; justify-content: flex-start; align-items: flex-end;
  /* 16px from the screen bottom (owner, b135): the pills sit over the home-
     indicator area like iOS 26 tab bars, not above it. */
  padding: 44px 18px 16px; }
/* The nav pill (Google Chat iOS style, owner 2026-11-12): one wide floating
   capsule, 68px tall, four even icon slots (Mail, Calendar, Search, More), no
   labels. The right side of the bar is always kept for the create circle (68px +
   a 12px gap), so the pill has the same width on every tab, circle or not. On a narrow
   phone the slots shrink, never under 44px. */
.botbar { padding-right: calc(18px + var(--pk-nav-h) + 12px); }
.tabpills { display: flex; flex: 1 1 auto; max-width: 300px; gap: 2px; padding: 6px;
  background: var(--pk-nav-bg); border: 1px solid var(--pk-nav-line);
  border-radius: 999px; box-shadow: var(--pk-nav-shadow); }
.tab { display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center;
  height: calc(var(--pk-nav-h) - 14px); min-width: 44px; padding: 0; border: none; border-radius: 999px;
  background: transparent; color: var(--pk-nav-ic); font-family: inherit;
  cursor: pointer; transition: background .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent; }
.tab svg { width: 24px; height: 24px; }
.tab.on { background: var(--pk-nav-on-bg); color: var(--pk-nav-on); }
.tab .ic-cut { stroke: var(--pk-nav-on-bg); }
.tab:not(.on):active { background: var(--pk-nav-press); }
.tab:focus-visible, .new-fab:focus-visible { outline: 2px solid var(--pk-indigo); outline-offset: 2px; }

/* The create circle — the round button at the bottom right: the pill's height,
   fill, rim and shadow, like Chat's + button. It ALWAYS means create (owner,
   2026-11-14): compose on Mail, a new event on Calendar. The icon is the
   accent, like the active nav slot. */
.new-fab { position: absolute; right: 18px; bottom: 16px; z-index: 1;
  width: var(--pk-nav-h); height: var(--pk-nav-h); border-radius: 50%;
  border: 1px solid var(--pk-nav-line); background: var(--pk-nav-bg);
  box-shadow: var(--pk-nav-shadow); display: flex; align-items: center; justify-content: center;
  color: var(--pk-nav-on); padding: 0; font-family: inherit;
  cursor: pointer; -webkit-tap-highlight-color: transparent; }
.new-fab svg { width: 26px; height: 26px; }
.new-fab:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) { .new-fab:active { transform: none; } }
/* Ask Reeveon (header, top right). AI off: the spark is a little muted but
   stays a clear, tappable button. */
.hdr-ask.off .spark { opacity: .7; filter: saturate(.6); }

/* The "…" More sheet (render.js moreSheet): the Command center's sheet, raised
   so it sits above the pill. The bar is lifted over the scrim, so the "…" slot
   shows as active and a second tap on it closes the sheet. */
#app.more-open > .botbar { z-index: 31; }
.more-ov { padding-bottom: calc(16px + var(--pk-nav-h) + 12px); }
.more-card { max-height: calc(100% - 8px); overflow-y: auto; overscroll-behavior: contain; }
.more-mbox .more-ml { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more-mbox svg { color: var(--pk-dim); }
.cc-item:disabled { opacity: .55; cursor: default; }

/* Ask chat — a FULL-SCREEN chat (like the desktop AI panel): top bar, scrolling
   transcript, input bar pinned to the bottom. */
.ask-ov { position: fixed; inset: 0; z-index: 24; display: flex; flex-direction: column;
  background: var(--pk-screen); }
.ask-card { position: absolute; top: 0; left: 0; right: 0; bottom: 0; height: 100%; max-height: none;
  background: var(--pk-screen); border-radius: 0;
  display: flex; flex-direction: column; padding: 0 14px calc(14px + env(safe-area-inset-bottom, 0px));
  box-shadow: none; animation: ask-up .22s ease; }
@keyframes ask-up { from { transform: translateY(28px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ask-card { animation: none; } }
.ask-top { display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
  padding: calc(8px + var(--pk-safe-top)) 0 8px; border-bottom: 1px solid var(--pk-hair2); }
.ask-back { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border: none; background: none; color: var(--pk-ink); cursor: pointer; padding: 0; border-radius: 4px; flex: 0 0 auto; }
.ask-back:active { background: var(--pk-soft); }
.ask-title { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: var(--pk-ink); }
.ask-top-sp { width: 34px; flex: 0 0 auto; }
.ask-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
  padding: 2px 6px 12px; -webkit-overflow-scrolling: touch; overscroll-behavior: none; }
.ask-empty { color: var(--pk-faint); font-size: 12.5px; text-align: center; padding: 18px 4px; }
.ask-scope { display: inline-flex; align-self: center; align-items: center; gap: 6px; margin: 0 auto 6px;
  padding: 4px 12px; border-radius: 999px; background: var(--pk-soft); color: var(--pk-indigo-ink);
  font-size: 11px; font-weight: 600; }
.ask-scope-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pk-indigo); flex: 0 0 auto; }
.ask-scope { max-width: calc(100% - 24px); }
.ask-scope-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask-scope-x { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 20px; height: 20px; margin-right: -6px; border: 0; border-radius: 50%; padding: 0;
  background: transparent; color: var(--pk-indigo-ink); cursor: pointer; }
.ask-about { align-self: flex-start; color: var(--pk-faint); font-size: 11px; margin: -2px 0 2px; }
/* The input sits centered with an even inset from both edges (reduced width). */
.ask-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; flex: 0 0 auto;
  margin: 4px 6px 0; border: 1px solid var(--pk-hair2); border-radius: 999px; background: var(--pk-screen); }
.ask-bar:focus-within { border-color: var(--pk-indigo); box-shadow: 0 0 0 3px var(--pk-soft); }

/* ---- calendar: week strip + day time grid ---- */
/* The calendar scrolls the grid only; its top (month, week strip, date line,
   all-day row) sticks under the frosted header. The scroll area drops its own
   top pad so the sticky band can start at the very top and carry it instead. */
#scroll.calscroll { padding-top: 0; padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
#scroll.calscroll > :first-child { margin-top: 0; }
.calv { --cal-gutter: 52px; }
.cal-top { position: sticky; top: 0; z-index: 3; margin: 0 -14px; background: var(--pk-screen);
  padding: calc(64px + var(--pk-safe-top)) 14px 6px; border-bottom: 1px solid var(--pk-hair);
  -webkit-user-select: none; user-select: none; }
.cal-mrow { display: flex; align-items: center; gap: 4px; margin: 2px 0 6px; }
.cal-mrow-sp { flex: 1; }
.cal-month { display: inline-flex; align-items: center; gap: 6px; border: none; background: none; padding: 4px 2px;
  font: inherit; font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: var(--pk-ink); cursor: pointer; }
.cal-month svg { color: var(--pk-dim); transition: transform .18s ease; }
.cal-month.open svg { transform: rotate(180deg); }
.cal-ic { width: 36px; height: 36px; border: none; background: none; border-radius: 50%; color: var(--pk-dim);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.cal-ic:active { background: var(--pk-soft); }
.cal-todaybtn { border: 1px solid var(--pk-hair2); background: var(--pk-btn-bg); color: var(--pk-ink);
  font: inherit; font-size: 14px; font-weight: 600; border-radius: 999px; padding: 6px 13px; margin-right: 2px; cursor: pointer; }
/* minmax(0,1fr): a long day label (nowrap tag) must not widen its column and
   push the week off a narrow screen; the tag ellipsises instead. */
.cal-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); touch-action: pan-y; }
.cal-wd { display: flex; flex-direction: column; align-items: center; gap: 4px; border: none; background: none; min-width: 0;
  padding: 2px 0 4px; font: inherit; color: var(--pk-ink); cursor: pointer; }
.cal-wd-l { font-size: 12px; font-weight: 600; color: var(--pk-faint); }
.cal-wd-n { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-wd.today .cal-wd-n { color: var(--pk-indigo-ink); box-shadow: inset 0 0 0 1.5px var(--pk-indigo); }
.cal-wd.on .cal-wd-n { background: var(--pk-indigo); color: #fff; }
.cal-wd-dot { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.cal-wd.has .cal-wd-dot { background: var(--pk-faint); }
.cal-wd.on .cal-wd-dot { background: transparent; }
.cal-dateline { display: flex; align-items: center; gap: 8px; min-height: 30px; color: var(--pk-indigo-ink); font-size: 15px; font-weight: 600; margin: 6px 2px 4px; }
.cal-dl-when { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-allday { display: flex; flex-direction: column; gap: 3px; margin: 6px 0 2px; touch-action: pan-y; }
.cal-ad { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: none; border-radius: 4px; padding: 6px 9px;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; }
.cal-ad-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* HEY-style extras (2026-10-28): faded past days in the strip, the day label
   (strip + date line, editable in place), countdown chips on all-day events; the free-gap labels live with the event blocks. */
.cal-wd.past:not(.on) { opacity: .42; }
.cal-wd-tag { max-width: 100%; height: 13px; padding: 0 2px; font-size: 10.5px; line-height: 13px; font-weight: 600;
  color: var(--pk-indigo-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-lbl { flex: 0 1 auto; min-width: 0; max-width: 62%; border: none; border-radius: 999px; padding: 3px 11px;
  background: color-mix(in srgb, var(--pk-indigo) 13%, var(--pk-screen)); color: var(--pk-indigo-ink);
  font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cal-lbl.add { background: none; color: var(--pk-indigo-ink); font-weight: 600; padding: 2px 10px;
  border: 1px dashed color-mix(in srgb, var(--pk-indigo) 50%, transparent); }
.cal-lbl-form { flex: 1; min-width: 0; margin: 0; }
.cal-cd { flex: none; font-size: 12px; font-weight: 600; opacity: .72; }
/* "Sometime this week" (2026-10-28): the week's tasks. A compact chip at the
   right end of the date line (the bottom right stays free for Ask Reeveon)
   opens them in a calendar sheet: check off, Schedule (day + time), add. The
   chip never shrinks; the date and the label give way first. Its hit area
   reaches 44px tall through the ::after, so it looks small but taps easily. */
.cal-tpill { position: relative; flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 11px 0 9px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--pk-indigo-ink); background: color-mix(in srgb, var(--pk-indigo) 13%, var(--pk-screen));
  border: 1px solid color-mix(in srgb, var(--pk-indigo) 32%, transparent); white-space: nowrap; }
.cal-tpill::after { content: ''; position: absolute; inset: -7px -4px; }
.cal-tpill svg { flex: none; width: 16px; height: 16px; }
.cal-tpill-n { font-weight: 800; font-variant-numeric: tabular-nums; }
.cal-tpill-l { font-weight: 600; }
.cal-tpill.quiet { padding: 0 11px; background: none; border: 1px dashed color-mix(in srgb, var(--pk-indigo) 50%, transparent); }
.cal-tpill:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) { .cal-tpill:active { transform: none; } }
@media (prefers-color-scheme: dark) {
  .cal-tpill { background: color-mix(in srgb, var(--pk-indigo) 24%, var(--pk-screen));
    border-color: color-mix(in srgb, var(--pk-indigo) 45%, transparent); }
  .cal-tpill.quiet { background: none; }
}
/* In the sheet a row is a full touch target. */
.caltasks .cal-task { min-height: 48px; }
.cal-task-list { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 24px;
  -webkit-user-select: text; user-select: text; }
.cal-task { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 2px 2px; }
.cal-task-ck { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid var(--pk-faint); background: none;
  display: inline-flex; align-items: center; justify-content: center; padding: 0; color: #fff; cursor: pointer; }
.cal-task.done .cal-task-ck { background: var(--pk-indigo); border-color: var(--pk-indigo); }
.cal-task-t { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; font-size: 15.5px; color: var(--pk-ink); }
.cal-task-tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-task.done .cal-task-tx { text-decoration: line-through; color: var(--pk-faint); }
.cal-task-ai { flex: none; align-self: center; display: inline-flex; }
.cal-task-m { flex: none; font-size: 12.5px; color: var(--pk-faint); white-space: nowrap; }
/* The task forms (add a task, Schedule): line fields + pills, styled with the
   editor's fields further down ("The calendar forms"). */
.cal-task-form, .cal-task-addf { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 10px 32px; }
.cal-task-addf { margin: 4px 0 6px; }
.cal-task-in.wide { flex: 1; min-width: 0; width: 100%; }
.cal-task-form { flex-wrap: nowrap; gap: 8px; }
.cal-task-form .cal-task-in { flex: 1 1 0; min-width: 0; font-size: 16px; }
.cal-task-form input.cal-task-in { flex-grow: 1.25; }
.cal-task-x { width: 38px; height: 38px; margin-bottom: 3px; }
.cal-task-go { margin-bottom: 3px; }
.cal-task-note { font-size: 13.5px; color: var(--pk-faint); padding: 4px 2px; }

/* Month picker (tap the month name). */
.cal-mp { margin: 0 0 8px; padding: 6px 4px 8px; border-radius: 4px; background: var(--pk-screen2); }
.cal-mp-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 16px; color: var(--pk-ink); }
.cal-mp-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; justify-items: center; }
.cal-mp-l { font-size: 11.5px; font-weight: 600; color: var(--pk-faint); padding: 4px 0; }
.cal-mp-d { position: relative; width: 36px; height: 36px; border: none; background: none; border-radius: 50%;
  font: inherit; font-size: 15px; color: var(--pk-ink); font-variant-numeric: tabular-nums; cursor: pointer; padding: 0; }
.cal-mp-d.out { color: var(--pk-faint); }
.cal-mp-d.today { color: var(--pk-indigo-ink); font-weight: 700; }
.cal-mp-d.on { background: var(--pk-indigo); color: #fff; font-weight: 700; }
.cal-mp-d.has::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--pk-faint); }
.cal-mp-d.on.has::after { background: rgba(255, 255, 255, .8); }

/* The day grid: hour lines with labels in a left gutter, events as tinted
   tickets in their brand hue (see the event blocks below). */
.cal-daypane { touch-action: pan-y; padding-top: 10px; }
.cal-daypane.enter-l { animation: cal-in-l .2s ease-out; }
.cal-daypane.enter-r { animation: cal-in-r .2s ease-out; }
@keyframes cal-in-l { from { transform: translateX(-36px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes cal-in-r { from { transform: translateX(36px); opacity: .3; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cal-daypane.enter-l, .cal-daypane.enter-r { animation: none; } }
.cal-note { color: var(--pk-faint); font-size: 14px; margin: 0 2px 4px; }
.cal-grid { position: relative; margin-left: var(--cal-gutter); isolation: isolate; }
.cal-hr { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--pk-hair); }
.cal-hr-l { position: absolute; right: calc(100% + 8px); top: -8px; font-size: 12px; color: var(--pk-faint);
  white-space: nowrap; font-variant-numeric: tabular-nums; }
.cal-evs { position: absolute; inset: 0; }
/* ---- event blocks: "Ticket" (owner, 2026-11-14; render.js calBlock) ----
   Every event is a ticket: a solid ink fill, white type, and a perforated stub
   on the right that holds the start time, with two punched notches. The
   running ticket fills as time passes (--p); a used (past) ticket goes pale;
   an open invitation is an unprinted, outlined ticket. Each block carries its
   brand hue's two inks inline (--hl light, --hd dark; render.js CAL_HUES),
   never the provider's raw colour. Overlaps sit side by side in equal columns
   (render.js calPackTimed), so a ticket never covers another; a narrow one
   (3-day view, 2+ side by side) drops the stub and shows title + start time. */
.cal-ev, .cal-ad { --hk: var(--hl, #5b34b8); }
@media (prefers-color-scheme: dark) {
  .cal-ev, .cal-ad { --hk: var(--hd, #ad91f4); }
}
.cal-ev { position: absolute; container-type: inline-size; isolation: isolate; display: flex; flex-direction: row; align-items: stretch;
  overflow: hidden; margin: 0; padding: 0; border: none; border-radius: 4px; font: inherit; text-align: left; cursor: pointer; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hk) 92%, #fff), var(--hk) 60%, color-mix(in srgb, var(--hk) 90%, #000));
  box-shadow: 0 9px 18px -11px color-mix(in srgb, var(--hk) 90%, transparent), 0 1px 2px color-mix(in srgb, var(--hk) 40%, transparent);
  transition: opacity .2s ease, transform .12s ease; -webkit-tap-highlight-color: transparent; }
.cal-ev:active { transform: scale(.985); }
.cal-ad:active { filter: brightness(.94); }
.cal-ev-main { position: relative; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start;
  gap: 2px; padding: 5px 8px 5px 10px; overflow: hidden; }
.cal-ev-main > * { flex-shrink: 0; }
/* The title: one line, two on a tall ticket (75 min or more; render.js
   calBlock sets short / snug / mid / tall from the length). */
.cal-ev-t { max-width: 100%; font-size: 14px; font-weight: 700; line-height: 1.2; letter-spacing: -.005em;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.cal-ev.tall .cal-ev-t { -webkit-line-clamp: 2; }
/* 45-59 minutes: title + time only, a little tighter. */
.cal-ev.snug .cal-ev-main { padding-top: 4px; padding-bottom: 3px; gap: 1px; }
.cal-ev.snug .cal-ev-av { display: none; }
.cal-ev-meta { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.cal-ev-tm { flex: 0 1 auto; min-width: 0; font-size: 12px; font-weight: 550; opacity: .88; font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ap { font-variant-caps: all-small-caps; letter-spacing: .04em; }
.cal-ev-vid { flex: none; width: 14px; height: 14px; opacity: .85; }
.cal-ev-av { flex: none; display: inline-flex; align-items: center; padding-left: 2px; }
.cal-ev-av i { display: inline-block; flex: none; width: 20px; height: 20px; margin-left: -4px; border-radius: 50%; font-style: normal; font-size: 8.5px;
  font-weight: 750; line-height: 20px; text-align: center; letter-spacing: .02em;
  background: rgba(255, 255, 255, .24); color: #fff; box-shadow: 0 0 0 1.5px var(--hk); }
.cal-ev-av i:first-child { margin-left: 0; }
.cal-ev-av i.more { font-size: 8px; }
.cal-ev-loc { max-width: 100%; font-size: 12px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The stub: the start time behind a perforation, two punched notches. */
.cal-ev-stub { position: relative; flex: none; width: 50px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: 5px; border-left: 1.5px solid rgba(255, 255, 255, .5); text-align: center; }
.cal-ev-stub b { font-size: 15px; font-weight: 760; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.cal-ev-stub span { margin-top: 1px; font-size: 9.5px; line-height: 1; font-weight: 700; letter-spacing: .12em; opacity: .8; }
.cal-ev-stub::before, .cal-ev-stub::after { content: ''; position: absolute; left: -7.5px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--pk-screen); }
.cal-ev-stub::before { top: -7px; }
.cal-ev-stub::after { bottom: -7px; }
.cal-col.today .cal-ev-stub::before, .cal-col.today .cal-ev-stub::after { background: color-mix(in srgb, var(--pk-indigo) 3%, var(--pk-screen)); }
/* The length chip: only on a wide ticket, where the stub has the start. */
.cal-ev-dur { display: none; font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums; padding: 1px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .2); }
/* 31-44 minutes: title and time on one centred line, no stub. */
.cal-ev.short .cal-ev-stub { display: none; }
.cal-ev.short .cal-ev-main { flex-direction: row; align-items: center; gap: 8px; padding-top: 0; padding-bottom: 0; }
.cal-ev.short .cal-ev-t { flex: 0 1 auto; min-width: 0; display: block; white-space: nowrap; text-overflow: ellipsis; font-size: 13.5px; line-height: 16px; }
.cal-ev.short .cal-ev-meta { flex: 0 1 auto; }
/* 30 minutes or less: a one-line pill. */
.cal-ev.k-pill { border-radius: 999px; white-space: nowrap; }
.cal-ev.k-pill .cal-ev-main { flex-direction: row; align-items: center; gap: 6px; padding: 0 10px 0 12px; }
/* A slim ticket (under a quarter of a day column, render.js calBlock): a
   pill is a small card, not a circle. */
.cal-ev.k-pill.slim { border-radius: 4px; }
.cal-ev.k-pill .cal-ev-t { flex: 0 1 auto; min-width: 0; display: block; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; line-height: 15px; }
.cal-ev.k-pill .cal-ev-tm { flex: 0 0 auto; font-size: 11.5px; line-height: 15px; }
.cal-ev.k-pill .cal-ev-vid { width: 13px; height: 13px; }
/* The running ticket fills top to bottom with the elapsed time. */
.cal-ev-fill { position: absolute; left: 0; right: 0; top: 0; height: var(--p, 0%); z-index: -1; pointer-events: none;
  background: rgba(10, 6, 30, .2); box-shadow: 0 1.5px 0 rgba(255, 255, 255, .75); }
/* Past: a used ticket, pale. */
.cal-ev.past { color: color-mix(in srgb, var(--hk) 60%, var(--pk-ink)); background: color-mix(in srgb, var(--hk) 13%, var(--pk-screen)); box-shadow: none; }
.cal-ev.past > :not(.cal-ev-fill) { opacity: .8; }
.cal-ev.past .cal-ev-stub { border-left-color: color-mix(in srgb, var(--hk) 35%, transparent); }
.cal-ev.past .cal-ev-av i { background: color-mix(in srgb, var(--hk) 18%, var(--pk-screen)); color: inherit; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--hk) 13%, var(--pk-screen)); }
/* Not answered yet (or maybe): an unprinted ticket, a solid hue outline with
   no fill (owner, 2026-11-14: no dashed or dotted borders). One laid on top of
   another keeps the page colour so the one below does not show through. */
.cal-ev.pend { color: color-mix(in srgb, var(--hk) 85%, #000); background: transparent; box-shadow: none;
  outline: 1.5px solid var(--hk); outline-offset: -1.5px; }
.cal-ev.pend.over { background: var(--pk-screen); }
.cal-ev.pend .cal-ev-stub { border-left-color: color-mix(in srgb, var(--hk) 50%, transparent); }
.cal-ev.pend .cal-ev-av i { background: color-mix(in srgb, var(--hk) 14%, var(--pk-screen)); color: inherit; box-shadow: 0 0 0 1.5px var(--pk-screen); }
.cal-ev.past .cal-ev-dur, .cal-ev.pend .cal-ev-dur { background: color-mix(in srgb, var(--hk) 14%, transparent); }
/* A calendar that marks the time as free: a lighter ink. */
.cal-ev.free { background: color-mix(in srgb, var(--hk) 55%, var(--pk-screen)); }
/* Declined: muted and struck through. */
.cal-ev.decl { color: var(--pk-faint); background: var(--pk-screen); box-shadow: none; outline: 1px solid var(--pk-hair2); outline-offset: -1px; }
.cal-ev.decl .cal-ev-t, .cal-ad.decl .cal-ad-t { text-decoration: line-through; text-decoration-thickness: 1px; }
.cal-ev.decl .cal-ev-stub { border-left-color: var(--pk-hair2); }
/* Overlaps (render.js calPackTimed): a start 30 min or more after the events
   it overlaps lies ON TOP of them, indented (over), with a page-colour ring so
   its edge reads clearly. The ticket under it (under) keeps its header —
   title + start time, stub included — inside its top 30px (= 30 min of grid),
   the band the overlay never covers: one title line, a compact narrow meta. */
.cal-ev.over { box-shadow: 0 0 0 1.5px var(--pk-screen), 0 9px 18px -11px color-mix(in srgb, var(--hk) 90%, transparent); }
.cal-ev.over.past, .cal-ev.over.pend, .cal-ev.over.decl { box-shadow: 0 0 0 1.5px var(--pk-screen); }
.cal-col.today .cal-ev.over { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--pk-indigo) 3%, var(--pk-screen)), 0 9px 18px -11px color-mix(in srgb, var(--hk) 90%, transparent); }
.cal-ev.under.mid .cal-ev-t, .cal-ev.under.tall .cal-ev-t { -webkit-line-clamp: 1; }
.cal-ev.under .cal-ev-stub { padding-top: 4px; }
.cal-ev.under .cal-ev-stub b { font-size: 14px; }
.cal-ev.under .cal-ev-stub span { font-size: 8.5px; }
/* All-day chips: the same ink. */
.cal-ad { border-radius: 4px; color: #fff; background: var(--hk); }
.cal-ad.free { background: color-mix(in srgb, var(--hk) 55%, var(--pk-screen)); }
.cal-ad.pend { color: color-mix(in srgb, var(--hk) 85%, #000); background: transparent; outline: 1.5px solid var(--hk); outline-offset: -1.5px; }
.cal-ad.decl { color: var(--pk-faint); background: var(--pk-screen); outline: 1px solid var(--pk-hair2); outline-offset: -1px; }
/* A ticket with room (over 180px): the stub has the start, so the meta shows
   the length in place of the range. */
@container (min-width: 181px) {
  .cal-ev:not(.short) .cal-ev-meta .cal-ev-tm { display: none; }
  /* Under an overlay the stub holds the start: the meta (length, guests) would only peek out. */
  .cal-ev.under:not(.short) .cal-ev-meta { visibility: hidden; }
  .cal-ev:not(.short) .cal-ev-dur { display: inline; }
}
/* A narrow ticket (3-day view, events side by side) has no room for a stub:
   it shows the title and the start time, with two punched side notches. */
@container (max-width: 180px) {
  .cal-ev-stub { display: none; }
  .cal-ev:not(.short) .cal-ev-main::before, .cal-ev:not(.short) .cal-ev-main::after { content: ''; position: absolute;
    top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--pk-screen); }
  .cal-ev:not(.short) .cal-ev-main::before { left: -5px; }
  .cal-ev:not(.short) .cal-ev-main::after { right: -5px; }
  .cal-col.today .cal-ev:not(.short) .cal-ev-main::before,
  .cal-col.today .cal-ev:not(.short) .cal-ev-main::after { background: color-mix(in srgb, var(--pk-indigo) 3%, var(--pk-screen)); }
}
/* Under an overlay, narrow: title and start time inside the top 30px. */
@container (max-width: 180px) {
  .cal-ev.under:not(.short) .cal-ev-main { padding-top: 3px; gap: 0; }
  .cal-ev.under .cal-ev-t { line-height: 14px; }
  .cal-ev.under .cal-ev-meta { line-height: 13px; }
  .cal-ev.under .cal-ev-av, .cal-ev.under .cal-ev-loc { display: none; }
}
@container (max-width: 132px) {
  .cal-ev-av, .cal-ap, .cal-tm-e { display: none; }
  .cal-ev.mid .cal-ev-t { -webkit-line-clamp: 2; }
  .cal-ev-main { padding-left: 8px; padding-right: 5px; }
  .cal-ev-t { font-size: 12.5px; }
  .cal-ev-tm { font-size: 11px; }
  /* One line (short, pill): the start time keeps its room, the title gives. */
  .cal-ev.short .cal-ev-main { gap: 5px; }
  .cal-ev.short .cal-ev-meta { flex: none; }
  .cal-ev.k-pill .cal-ev-main { gap: 4px; padding: 0 6px 0 8px; }
}
@container (max-width: 96px) {
  .cal-ev-vid { display: none; }
  .cal-ev-main { padding-left: 6px; padding-right: 4px; }
  .cal-ev-t { -webkit-hyphens: auto; hyphens: auto; }
  .cal-ev:not(.short) .cal-ev-main::before, .cal-ev:not(.short) .cal-ev-main::after { display: none; }
}
/* A sliver (3 events side by side in the 3-day view): a one-line pill turns
   into a small two-line card, title over start time. */
@container (max-width: 72px) {
  .cal-ev-main { padding-left: 5px; padding-right: 3px; }
  .cal-ev-t { font-size: 11.5px; }
  .cal-ev-tm { font-size: 10.5px; }
  .cal-ev.k-pill .cal-ev-main { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 0 3px 0 5px; }
  .cal-ev.k-pill .cal-ev-t { max-width: 100%; font-size: 11px; line-height: 12px; }
  .cal-ev.k-pill .cal-ev-tm { font-size: 10px; line-height: 12px; }
  .cal-ev.short .cal-ev-main { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; }
  .cal-ev.short .cal-ev-t { max-width: 100%; font-size: 11px; line-height: 12px; }
}
@media (prefers-color-scheme: dark) {
  .cal-ev { color: #16121f;
    background: linear-gradient(180deg, color-mix(in srgb, var(--hk) 90%, #fff), var(--hk) 60%, color-mix(in srgb, var(--hk) 92%, #000));
    box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--hk) 55%, transparent), 0 2px 6px -2px rgba(0, 0, 0, .6); }
  .cal-ev-stub { border-left-color: rgba(22, 18, 31, .35); }
  .cal-ev-av i { background: rgba(22, 18, 31, .16); color: #16121f; }
  .cal-ev-dur { background: rgba(22, 18, 31, .12); }
  .cal-ev-fill { background: rgba(10, 6, 30, .22); box-shadow: 0 1.5px 0 rgba(255, 255, 255, .8); }
  .cal-ev.past { color: color-mix(in srgb, var(--hk) 75%, #fff); background: color-mix(in srgb, var(--hk) 14%, var(--pk-screen)); box-shadow: none; }
  .cal-ev.past .cal-ev-av i { background: color-mix(in srgb, var(--hk) 22%, var(--pk-screen)); color: inherit; }
  .cal-ev.pend { color: var(--hk); background: var(--pk-screen); }
  .cal-ev.free { background: color-mix(in srgb, var(--hk) 50%, var(--pk-screen)); }
  .cal-ev.decl { color: var(--pk-faint); background: var(--pk-screen); }
  .cal-ev.over { box-shadow: 0 0 0 1.5px var(--pk-screen), 0 10px 22px -12px rgba(0, 0, 0, .75); }
  .cal-ev.over.past, .cal-ev.over.pend, .cal-ev.over.decl { box-shadow: 0 0 0 1.5px var(--pk-screen); }
  .cal-ad { color: #16121f; }
  .cal-ad.pend { color: var(--hk); }
  .cal-ad.decl { color: var(--pk-faint); }
}
/* Free time: a quiet label in each gap of 30 minutes or more (an hour in the
   3-day view); a tap starts an event there (only when the hub can write). */
.cal-gap { position: absolute; left: 50%; z-index: 25; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 4px;
  max-width: calc(100% - 8px); padding: 3px 10px; border: none; border-radius: 999px; background: var(--pk-screen); font: inherit; font-size: 12px;
  font-weight: 600; letter-spacing: .01em; color: var(--pk-faint); white-space: nowrap; overflow: hidden; }
.cal-gap::before { content: ''; flex: none; width: 6px; height: 6px; margin-right: 2px; border-radius: 50%; border: 1.5px solid currentColor; }
/* The page colour behind the label breaks the hour line around it. */
.cal-col.today .cal-gap { background: color-mix(in srgb, var(--pk-indigo) 3%, var(--pk-screen)); }
button.cal-gap { cursor: pointer; }
.cal-gap-n { font-variant-numeric: tabular-nums; color: var(--pk-dim); }
button.cal-gap:active { color: var(--pk-indigo-ink); }
.span3 .cal-gap { padding: 2px 7px; font-size: 11px; }
/* The now-line in the brand gradient. */
.cal-now { position: absolute; left: -6px; right: 0; height: 2px; margin-top: -1px; border-radius: 2px; z-index: 30; pointer-events: none;
  background: linear-gradient(90deg, var(--pk-indigo), #a855f7 55%, #f0559b); }
.cal-now::before { content: ''; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--pk-indigo);
  box-shadow: 0 0 0 2.5px var(--pk-screen), 0 0 10px color-mix(in srgb, #a855f7 70%, transparent); }
@media (prefers-color-scheme: dark) {
  .cal-now { background: linear-gradient(90deg, #a68af0, #c084fc 55%, #f472b6); }
  .cal-now::before { background: #b69cf5; }
}


/* ---- calendar: 3-day view, editing, calendar switches, Meet (2026-10-28) ---- */
.cal-month { min-width: 0; }
.cal-month-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .03em; }
.cal-seg { flex: none; display: inline-flex; padding: 2px; margin: 0 2px; border-radius: 999px; background: var(--pk-screen2);
  border: 1px solid var(--pk-hair); }
.cal-seg-b { min-width: 34px; height: 32px; border: none; background: none; border-radius: 999px; color: var(--pk-dim);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.cal-seg-b.on { background: var(--pk-screen); color: var(--pk-indigo-ink); box-shadow: 0 1px 4px rgba(23, 20, 45, .16); }
.cal-wd.rng .cal-wd-n { background: var(--pk-soft); color: var(--pk-indigo-ink); }
/* The Calendar tab's "…" (header): open = pressed look; the dot = Meet is on. */
.hdr-calopts.open { color: var(--pk-indigo-ink); border-color: color-mix(in srgb, var(--pk-indigo) 45%, var(--pk-hair)); }
.hdr-calopts-dot { position: absolute; top: 3px; right: 3px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--pk-indigo); border: 2px solid var(--pk-screen); }
/* The 3-day view: column heads in the sticky top, three columns on the grid. */
.cal-colhead { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 4px 0 2px var(--cal-gutter); touch-action: pan-y; }
.cal-colhead.enter-l { animation: cal-in-l .2s ease-out; }
.cal-colhead.enter-r { animation: cal-in-r .2s ease-out; }
.cal-ch { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 0 2px; }
.cal-ch-d { font-size: 14px; font-weight: 600; color: var(--pk-dim); padding: 2px 4px; }
.cal-ch-n { font-weight: 700; color: var(--pk-ink); }
.cal-ch.today .cal-ch-d, .cal-ch.today .cal-ch-n { color: var(--pk-indigo-ink); }
.cal-ch.past .cal-ch-d { opacity: .55; }
.cal-ch-l { font-size: 11.5px; font-weight: 600; color: var(--pk-indigo-ink); padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ch .cal-ad { padding: 4px 6px; font-size: 13px; }
.cal-ch .cal-cd { display: none; }
.cal-grid.multi .cal-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cal-col { position: relative; min-width: 0; border-left: 1px solid var(--pk-hair); }
.cal-col.today { background: color-mix(in srgb, var(--pk-indigo) 3%, transparent); }
.cal-col .cal-now { left: 0; }
.cal-col .cal-now::before { left: -5px; }
/* Meet: a person's busy time, hatched in their colour, under the events. */
.cal-busy { --mc: #e8590c; position: absolute; left: 0; right: 0; pointer-events: none; border-radius: 4px;
  border-left: 3px solid var(--mc);
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--mc) 34%, transparent) 0 3px, transparent 3px 8px); }
.cal-busy span { position: absolute; top: 2px; left: 6px; right: 4px; font-size: 11px; font-weight: 700; color: var(--mc);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-meet { display: flex; align-items: center; gap: 8px; margin: 2px 0 4px; }
.cal-meet-l { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; border: none; background: none; padding: 4px 0; text-align: left; cursor: pointer; font: inherit; }
.cmt-leg { --mc: #e8590c; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--pk-ink); background: var(--pk-screen2); border: 1px solid var(--pk-hair); }
.cmt-leg.err { color: var(--pk-amber); }
.cmt-x { font-weight: 800; }
.cmt-sw { flex: none; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--mc);
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--mc) 55%, transparent) 0 2px, transparent 2px 4px); }
/* The event detail: notes, Edit / Delete, the delete question. */
.ce-desc { margin: 14px 0 0; padding: 12px 14px; border-radius: 2px; background: var(--pk-screen2); color: var(--pk-ink);
  font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.ce-acts { display: flex; gap: 10px; margin: 22px 0 0; }
.ce-btn { flex: 1; min-height: 48px; border-radius: 999px; border: 1.5px solid var(--pk-edge); background: var(--pk-btn-bg);
  color: var(--pk-ink); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: var(--pk-btn-shadow); }
.ce-btn:active:not(:disabled) { transform: scale(.97); }
.ce-btn.danger { color: var(--pk-danger); }
.ce-btn:disabled { opacity: .55; }
.ce-confirm { margin: 22px 0 0; padding: 14px; border-radius: 2px; border: 1px solid color-mix(in srgb, var(--pk-danger) 35%, var(--pk-hair));
  background: color-mix(in srgb, var(--pk-danger) 6%, var(--pk-screen)); }
.ce-confirm-t { font-size: 16px; font-weight: 700; color: var(--pk-ink); }
.ce-confirm-s { font-size: 14px; color: var(--pk-dim); margin-top: 2px; }
.ce-confirm .ce-acts { margin-top: 12px; }
.ce-confirm .ce-btn.danger { background: var(--pk-danger); border-color: var(--pk-danger); color: #fff; }
/* The calendar forms — event editor, Meet, the task sheet, the day label
   (owner, 2026-10-28: "make a line with some style"). A field is a LINE, not a
   box: a hairline (--pk-hair2) that a 2px indigo line covers on focus, growing
   out from the centre. A small uppercase label sits above and turns indigo with
   it. Native pickers stay; only their trigger is restyled. Buttons are pills or
   circles with the app's button shadow (--pk-btn-shadow), never flat slabs. */
:root { --pk-line-ease: cubic-bezier(.2, .8, .2, 1);
  --pk-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5' fill='none' stroke='%239997a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ced-in, .ced-title, .cal-task-in, .cal-lbl-in {
  box-sizing: border-box; min-width: 0; min-height: 46px; margin: 0; padding: 11px 2px 9px;
  border: none; border-bottom: 1px solid var(--pk-hair2); border-radius: 0;
  -webkit-appearance: none; appearance: none; outline: none;
  color: var(--pk-ink); font: inherit; font-size: 17px; line-height: 1.3;
  background: linear-gradient(var(--pk-indigo), var(--pk-indigo)) no-repeat 50% 100% / 0 2px;
  background-origin: border-box;
  transition: background-size .34s var(--pk-line-ease), border-color .2s ease; }
.ced-in:focus, .ced-title:focus, .cal-task-in:focus, .cal-lbl-in:focus { background-size: 100% 2px; border-bottom-color: transparent; }
.ced-in::placeholder, .ced-title::placeholder, .cal-task-in::placeholder, .cal-lbl-in::placeholder { color: var(--pk-faint); opacity: 1; }
/* A select: the same line plus a quiet chevron. */
select.ced-in, select.cal-task-in { padding-right: 24px; cursor: pointer; text-overflow: ellipsis;
  background-image: var(--pk-chev), linear-gradient(var(--pk-indigo), var(--pk-indigo));
  background-repeat: no-repeat; background-position: right 4px center, 50% 100%; background-size: 12px 8px, 0 2px; }
select.ced-in:focus, select.cal-task-in:focus { background-size: 12px 8px, 100% 2px; }
/* Date and time: the value sits on the left like the text fields. */
.ced-in::-webkit-date-and-time-value, .cal-task-in::-webkit-date-and-time-value { text-align: left; margin: 0; }
.ced-in::-webkit-calendar-picker-indicator, .cal-task-in::-webkit-calendar-picker-indicator { opacity: .45; margin: 0; }
.ced-in:disabled { color: var(--pk-dim); -webkit-text-fill-color: var(--pk-dim); opacity: 1; border-bottom-style: dashed; cursor: default; }
@media (prefers-reduced-motion: reduce) {
  .ced-in, .ced-title, .cal-task-in, .cal-lbl-in, .ced-guests::after, .ced-fl { transition: none; }
}

.ced-save { flex: 0 0 auto; min-width: 72px; height: 42px; padding: 0 20px; border: none; border-radius: 999px;
  background: var(--pk-indigo); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: var(--pk-btn-shadow); }
.ced-save:active:not(:disabled) { transform: scale(.96); }
.ced-save:disabled { opacity: .5; box-shadow: none; }
.ced-body { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
.ced-form { display: flex; flex-direction: column; gap: 22px; margin: 0; padding-top: 4px; }
.ced-title { width: 100%; min-height: 52px; font-size: 24px; font-weight: 700; padding: 8px 2px 10px; }
/* A field: the small label over its line. */
.ced-f { display: flex; flex-direction: column; min-width: 0; }
.ced-fl { padding: 0 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--pk-faint); transition: color .2s ease; }
.ced-f:focus-within .ced-fl { color: var(--pk-indigo-ink); }
.ced-ctl { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ced-ctl .ce-dot { transform: none; }
.ced-row { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.ced-l { flex: 0 0 64px; font-size: 16px; font-weight: 600; color: var(--pk-dim); }
.ced-sw { padding: 0 2px; }
.ced-sw .ced-l { flex: 1; color: var(--pk-ink); font-size: 17px; font-weight: 500; }
.ced-cal { flex: 1; min-width: 0; }
.ced-date { flex: 1 1 0; min-width: 0; }
.ced-time { flex: 0 0 112px; }
.ced-wide { width: 100%; }
.ced-desc { min-height: 92px; resize: none; field-sizing: content; line-height: 1.45; }
/* People (Meet) and guests (editor): the chips and the field share ONE line,
   drawn by the group, so the focus line runs under the chips too. */
.ced-guests { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 6px;
  border-bottom: 1px solid var(--pk-hair2); transition: border-color .2s ease; }
.ced-guests::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: var(--pk-indigo); transform: scaleX(0); transition: transform .34s var(--pk-line-ease); }
.ced-guests:focus-within { border-bottom-color: transparent; }
.ced-guests:focus-within::after { transform: scaleX(1); }
.ced-guests .ced-in { flex: 1 1 150px; width: auto; border-bottom: none; background: none; }
.ced-chip { --mc: var(--pk-indigo); display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 4px 4px 12px;
  border-radius: 999px; background: var(--pk-soft); color: var(--pk-indigo-ink); font-size: 14.5px; font-weight: 600; }
.ced-chip.meet { padding-left: 8px; background: var(--pk-screen2); color: var(--pk-ink); border: 1px solid var(--pk-hair); }
.ced-chip-x { flex: none; width: 32px; height: 32px; border: none; background: none; border-radius: 50%; color: inherit; opacity: .7;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ced-chip-x svg { width: 16px; height: 16px; }
.ced-err { color: var(--pk-danger); font-size: 15px; font-weight: 600; }
.cmt-note { margin: 0; color: var(--pk-dim); font-size: 15px; line-height: 1.4; }

/* Buttons. Primary: an indigo pill with the button shadow, sized to its words.
   Secondary: the floating light pill / circle of the top bar (white rim + shadow). */
.cmt-go, .cal-task-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  border: none; border-radius: 999px; background: var(--pk-indigo); color: #fff; font: inherit; font-weight: 700;
  cursor: pointer; box-shadow: var(--pk-btn-shadow); }
.cmt-go { align-self: flex-end; min-height: 48px; padding: 0 26px; font-size: 16px; margin-top: 2px; }
.cal-task-go { min-height: 40px; padding: 0 16px; font-size: 15px; }
.cal-task-s, .cal-meet-clear, .cal-task-add { flex: none; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--pk-edge); border-radius: 999px; background: var(--pk-btn-bg); color: var(--pk-ink);
  font: inherit; font-weight: 600; cursor: pointer; box-shadow: var(--pk-btn-shadow); }
.cal-task-s { min-height: 34px; padding: 0 14px; font-size: 14px; }
.cal-meet-clear { min-height: 36px; padding: 0 16px; font-size: 14px; }
.cal-task-add { align-self: flex-start; min-height: 40px; margin: 10px 0 0; padding: 0 18px; font-size: 15px; color: var(--pk-indigo-ink); }
.cal-task-x { flex: none; border: 1.5px solid var(--pk-edge); border-radius: 50%; background: var(--pk-btn-bg); color: var(--pk-dim);
  display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; box-shadow: var(--pk-btn-shadow); }
.cmt-go:active, .cal-task-go:active, .cal-task-s:active, .cal-meet-clear:active, .cal-task-add:active, .cal-task-x:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) {
  .cmt-go:active, .cal-task-go:active, .cal-task-s:active, .cal-meet-clear:active, .cal-task-add:active, .cal-task-x:active { transform: none; }
}
/* The day label, edited in place on the date line: a line too, one step smaller. */
.cal-lbl-in { width: 100%; min-height: 36px; padding: 5px 2px 6px; font-size: 16px; font-weight: 600; }
/* An iOS-style switch on a real checkbox (calendar list, editor). */
.pk-switch { -webkit-appearance: none; appearance: none; position: relative; flex: 0 0 auto; width: 50px; height: 30px; margin: 0;
  border-radius: 999px; background: var(--pk-hair2); cursor: pointer; transition: background .18s ease; }
.pk-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .18s ease; }
.pk-switch:checked { background: var(--pk-indigo); }
.pk-switch:checked::after { transform: translateX(20px); }
.pk-switch:disabled { opacity: .5; cursor: default; }
@media (prefers-reduced-motion: reduce) { .pk-switch, .pk-switch::after { transition: none; } }
/* The calendar list. */
.ccl-acct { margin: 0 0 18px; }
.ccl-email { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--pk-faint); text-transform: uppercase; padding: 0 2px 4px; }
.ccl-note { font-size: 14px; color: var(--pk-amber); padding: 2px 2px 6px; }
.ccl-row { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 2px; border-bottom: 1px solid var(--pk-hair); cursor: pointer; }
.ccl-row .ce-dot { transform: none; }
.ccl-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ccl-n { font-size: 16.5px; color: var(--pk-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccl-sub { font-size: 13px; color: var(--pk-faint); }
@media (prefers-color-scheme: dark) {
  .cal-busy { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--mc) 26%, transparent) 0 3px, transparent 3px 8px); }
  .ced-in, .cal-task-in, .cal-lbl-in { color-scheme: dark; }
  select.ced-in, select.cal-task-in { --pk-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5' fill='none' stroke='%2371707e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  .cal-busy span { color: color-mix(in srgb, var(--mc) 55%, #fff); }
}

/* ---- mail list: read rows, thread count, inbox-tab pills (b63) ---- */
/* A read row keeps its place: the dot goes (its slot stays, so text never shifts)
   and the ink steps back, the way the desktop list reads. */
.mail.read .udot { background: transparent; }
.mail.read .msend { font-weight: 500; color: var(--pk-dim); }
.mail.read .msubj { font-weight: 400; color: var(--pk-dim); }
.mail.read .mprev { color: var(--pk-faint); }
.mcount { flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--pk-dim); padding: 1px 7px;
  border: 1px solid var(--pk-hair2); border-radius: 999px; font-variant-numeric: tabular-nums; }
.mclip { flex: 0 0 auto; color: var(--pk-faint); align-self: center; }
/* Security mail (login / verification / access code, verify-your-email): a small
   amber tint, the "high alert" marker. Tinted, never solid — it must not shout
   louder than an unread VIP. */
.msec { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600;
  padding: 1px 6px; border-radius: 999px; color: var(--pk-amber);
  background: color-mix(in srgb, var(--pk-amber) 14%, var(--pk-screen)); }
/* A bundle row's count (b92): the desktop's bundle pill — an indigo tint and the stack glyph. */
.mcount.mbundle { display: inline-flex; align-items: center; gap: 4px; border-color: transparent;
  background: color-mix(in srgb, var(--pk-indigo) 12%, var(--pk-screen)); color: var(--pk-indigo-ink); }
.mail.read .mcount.mbundle { background: color-mix(in srgb, var(--pk-indigo) 7%, var(--pk-screen)); }
/* "3 unread" beside a bundle row's count: how many of its conversations still
   carry a dot. Accent ink, no fill, so it reads with the dot and not as a pill. */
.mbunread { flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--pk-indigo-ink);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.mail.read .mbunread { display: none; }
.lmore { font-size: 13px; color: var(--pk-faint); text-align: center; padding: 18px 16px 6px; line-height: 1.4; }
/* The list runs wider than the page gutter: the unread dot sits 8px from the
   screen edge, the sender 23px, and the right edge of the text 10px. */
.mlist { margin: 2px -8px 0; }
/* The tab strip scrolls sideways and bleeds to the screen edges. Soft tint
   (b86): small borderless pills; the picked tab is an indigo tint with indigo
   ink, the rest plain gray text — quiet, like the desktop's tabs. A dot marks a
   tab that holds unread mail. */
.tpills { display: flex; gap: 4px; overflow-x: auto; margin: 16px -14px 6px; padding: 2px 14px 6px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.tpills::-webkit-scrollbar { display: none; }
.tpill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px;
  border-radius: 999px; border: none; background: transparent;
  color: var(--pk-dim); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tpill:active { background: var(--pk-screen2); }
.tpill.on { background: color-mix(in srgb, var(--pk-indigo) 13%, var(--pk-screen)); color: var(--pk-indigo-ink); }
.tpill-c { font-size: 12.5px; font-weight: 500; opacity: .65; font-variant-numeric: tabular-nums; }


/* ---- reader: subject, conversation cards, recipients (b63) ---- */
.rd-title { font-size: 21px; line-height: 1.28; font-weight: 700; color: var(--pk-ink); margin: 2px 2px 12px;
  letter-spacing: -.01em; overflow-wrap: anywhere; }
/* Thread layout: every message is a flat row split by hairlines. An open message
   uses the full width of the screen (an HTML body runs edge to edge). The selected
   message — the latest — has no panel; an accent line above it marks it. */
.rd-thread { display: flex; flex-direction: column; }
.rd-msg.closed { display: block; width: 100%; padding: 14px 2px;
  border: none; border-bottom: 1px solid var(--pk-hair); border-radius: 0; background: none;
  font: inherit; text-align: left; cursor: pointer; color: var(--pk-ink); }
.rd-msg.closed:active { background: var(--pk-soft); }
.rd-msg.open { min-width: 0; margin: 0 -14px; padding: 14px 0 16px; }
.reader-body .rd-msg.open > * { margin-left: 16px; margin-right: 16px; width: auto; box-sizing: border-box; }
.reader-body .rd-msg.open > .rd-mbody:has(.rd-frame) { margin-left: 0; margin-right: 0; }
.rd-msg.open .rd-frame { border-radius: 0; }
.rd-msg.open.flat { border-bottom: 1px solid var(--pk-hair); }
.rd-msg.open.sel { border-top: 2px solid var(--pk-indigo); margin-top: -1px; }
/* One row = the sender and the date on a line, the snippet under it. */
.rd-m-l1, .rd-m-head { display: flex; align-items: center; gap: 10px; width: 100%; }
.rd-m-head { margin: 0 0 4px; cursor: pointer; min-height: 30px; }
.rd-m-head.solo { cursor: default; margin: 0 0 2px; }
.rd-m-sp { flex: 1 1 auto; }
.rd-m-who { flex: 1 1 auto; min-width: 0; font-size: 16.5px; font-weight: 700; color: var(--pk-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-m-snip { display: block; margin-top: 5px; font-size: 14.5px; color: var(--pk-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-m-when { flex: 0 0 auto; font-size: 13.5px; color: var(--pk-dim); font-variant-numeric: tabular-nums; }
.rd-m-dots { flex: 0 0 auto; width: 38px; height: 30px; border: none; background: none; color: var(--pk-dim);
  display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; cursor: pointer; padding: 0; }
.rd-m-dots:active { background: var(--pk-soft); color: var(--pk-ink); }
/* A message's own controls, opened by its dots. */
.rd-m-menu { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.rd-m-act { padding: 9px 14px; border-radius: 4px; border: 1px solid var(--pk-hair2); background: var(--pk-screen2);
  color: var(--pk-ink); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.rd-m-act:active { background: var(--pk-soft); }
/* A send of the user's own that the hub has not delivered (yet): a quiet
   "Sending…", or a red "Not sent — reason" with Retry and Delete. */
.rd-send { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 2px 0 12px;
  font-size: 14px; line-height: 1.35; }
.rd-send.sending { color: var(--pk-dim); gap: 8px; }
.rd-send-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pk-indigo);
  animation: pk-send-pulse 1.4s ease-in-out infinite; flex: 0 0 auto; }
@keyframes pk-send-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.rd-send-msg { flex: 1 1 100%; color: var(--pk-danger); font-weight: 600; overflow-wrap: anywhere; }
.rd-send-acts { display: flex; gap: 8px; }
.rd-send-btn { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--pk-edge); background: var(--pk-btn-bg);
  color: var(--pk-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.rd-send-btn.retry { color: var(--pk-danger);
  border-color: color-mix(in srgb, var(--pk-danger) 45%, var(--pk-edge)); }
.rd-send-btn:active { background: var(--pk-soft); }
.rd-send-btn:disabled { opacity: .5; cursor: default; }
.rd-send-tag { color: var(--pk-danger); font-weight: 600; }
/* The recipient line. One recipient is plain text; more than one is a button
   that opens to the full To / Cc lists. */
.rd-rc { display: flex; align-items: center; gap: 4px; max-width: 100%; margin: 0 2px 12px; padding: 0;
  border: none; background: none; font: inherit; font-size: 14px; color: var(--pk-dim); text-align: left; }
button.rd-rc { cursor: pointer; }
.rd-rc.one { display: block; }
.rd-rc-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-rc-chev { flex: 0 0 auto; color: var(--pk-faint); }
.rd-rc.open { display: block; padding: 9px 11px; border-radius: 4px; background: var(--pk-screen2); width: 100%; }
.rd-rc-row { display: flex; gap: 8px; line-height: 1.45; }
.rd-rc-row + .rd-rc-row { margin-top: 4px; }
.rd-rc-l { flex: 0 0 26px; color: var(--pk-faint); }
.rd-rc-v { min-width: 0; overflow-wrap: anywhere; color: var(--pk-ink); }
.rd-mbody { min-width: 0; }
/* Wide mail content (a wide table, a long unbroken line) scrolls sideways INSIDE
   the message body; the reader itself stays put (owner, 2026-10-27). */
.rd-mbody { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.rd-mbody .rd-load { padding: 18px 2px; }
/* Profile cards — everyone on the conversation, one near-full-screen card each,
   paged sideways (the next card peeks in from the right), with page dots. */
.pp-ov { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column;
  background: color-mix(in srgb, #000 46%, transparent); animation: sheet-in .18s ease; }
.pp-row { flex: 1 1 auto; min-height: 0; display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; padding: calc(var(--pk-safe-top) + 74px) 22px 0;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.pp-row::-webkit-scrollbar { display: none; }
.pp-card { flex: 0 0 calc(100% - 22px); scroll-snap-align: center; min-width: 0; overflow-y: auto;
  border-radius: 4px; padding: 26px 20px 24px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--pk-indigo) 16%, var(--pk-screen)) 0%, var(--pk-screen) 46%);
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .55); }
.pp-row > .pp-card:last-child { margin-right: 22px; }
.pp-top { display: flex; align-items: center; gap: 14px; }
.pp-id { flex: 1 1 auto; min-width: 0; }
.pp-name { font-size: 19px; font-weight: 650; color: var(--pk-ink); overflow-wrap: anywhere; line-height: 1.25; }
.pp-em { font-size: 14.5px; color: var(--pk-dim); margin-top: 3px; overflow-wrap: anywhere; }
.pp-av { flex: 0 0 auto; width: 68px; height: 68px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-size: 28px; font-weight: 500; color: #fff;
  background: color-mix(in srgb, var(--pk-indigo) 55%, var(--pk-screen2));
  border: 2px solid color-mix(in srgb, #fff 70%, transparent); }
.pp-note { margin-top: 22px; padding: 14px 15px; border-radius: 4px; background: var(--pk-screen);
  box-shadow: 0 2px 9px rgba(23, 20, 45, .12); font-size: 15.5px; color: var(--pk-ink); }
.pp-sec { display: flex; align-items: center; gap: 9px; margin: 28px 0 8px; font-size: 15.5px; font-weight: 600; color: var(--pk-ink); }
.pp-sec-ic { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--pk-indigo) 60%, var(--pk-screen2)); }
.pp-mail { padding: 8px 0; }
.pp-mail-s { font-size: 16.5px; line-height: 1.32; color: var(--pk-ink); overflow-wrap: anywhere; }
.pp-mail-t { font-size: 13.5px; color: var(--pk-faint); margin-top: 3px; }
.pp-none { margin-top: 26px; font-size: 14.5px; color: var(--pk-faint); line-height: 1.4; }
.pp-dots { flex: 0 0 auto; display: flex; justify-content: center; gap: 9px;
  padding: 16px 0 calc(26px + env(safe-area-inset-bottom, 0px)); }
.pp-dot { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, #fff 42%, transparent); }
.pp-dot.on { background: #fff; }

/* The unread dot: a solid golden yellow (#DDA015) with a 1px lift shadow, not the
   accent and never a glow (owner, 2026-11-20: a glow made it look faded). ONE
   unread colour everywhere (rows, tabs, new-mail chip, group dropdown). */
.udot { background: var(--pk-unread); box-shadow: var(--pk-dot-lift); }
.mail.read .udot { box-shadow: none; }

/* Back from "Remind me" (a snooze or a send-time reminder) — ONE feature to the
   user, so one lavender chip and one lavender dot (#B9A3E0), kept DISTINCT from the
   yellow unread dot and the same weight (owner, 2026-11-20). The chip stays on a read
   row; the dot follows unread like every row. Same 1px lift as the unread dot. */
:root { --pk-remind: #6d5a9c; --pk-remind-dot: #B9A3E0; }
@media (prefers-color-scheme: dark) {
  /* --pk-dot-lift: a darker shadow so the lift still shows on the dark surfaces. */
  :root { --pk-remind: #d9ccf0; --pk-dot-lift: 0 1px 1.5px rgba(0, 0, 0, .55); }
}
.mail.resurf:not(.read) .udot { background: var(--pk-remind-dot); box-shadow: var(--pk-dot-lift); }
.mresurf { display: inline-flex; align-items: center; gap: 3px; vertical-align: 1px; margin-right: 6px;
  font-size: 11px; font-weight: 600; line-height: 16px; padding: 0 6px; border-radius: 999px; white-space: nowrap;
  color: var(--pk-remind); background: color-mix(in srgb, var(--pk-remind-dot) 14%, var(--pk-screen)); }
.mresurf svg { flex: 0 0 auto; }

/* The "Due Fri" mark and the reader's tag chips (C11, multi-tag). The calm
   accent (--pk-indigo), never red: a deadline is information, not an alarm.
   Same pill as the reminder chip; desktop App.css --rw-due-*. */
.mdue { display: inline-flex; align-items: center; gap: 3px; vertical-align: 1px; margin-right: 6px;
  font-size: 11px; font-weight: 600; line-height: 16px; padding: 0 6px; border-radius: 999px; white-space: nowrap;
  color: var(--pk-indigo-ink); background: var(--pk-soft); }
.mdue svg { flex: 0 0 auto; }
.rd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.rd-tags .mdue { margin-right: 0; }
.rd-tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; line-height: 18px;
  padding: 1px 9px; border-radius: 999px; white-space: nowrap; color: var(--pk-dim);
  background: var(--pk-screen2); box-shadow: inset 0 0 0 1px var(--pk-hair); }
.rd-tag.kind { color: var(--pk-indigo-ink); background: var(--pk-soft); box-shadow: none; }

/* ---- native feel (b65) ---- */
/* No grey flash on tap, no accidental text selection on chrome, no double-tap zoom. */
#app { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.ahead, .botbar, .tpills, .mail, .look, .rd-topbar, .rd-foot, .rd-msg.closed, .rd-m-head {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* The open mail reads like a page: its words select word by word with the
   native handles (iOS long-press), and the callout (Copy, Look Up) shows. Only
   the chrome around it stays non-selectable. Every element from the body text
   up to <html> must stay OUT of the rule above: a selectable element inside a
   user-select:none box makes iOS select the whole box (jstest/text_select). */
.reader-body .rd-title, .reader-body .rd-mbody, .reader-body .rd-text,
.reader-body .rd-frame, .reader-body .rd-rc.one {
  -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
.reader-body .rd-mbody .rd-ipw, .reader-body .rd-mbody button {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* Rows far below the fold are not laid out until they are near the screen. */
.mlist { position: relative; }
.mlist .mail { content-visibility: auto; contain-intrinsic-size: auto 96px; }
/* An opened mail slides in from the right, like a pushed screen. It plays ONCE:
   re-mounts of the reader (a card opening, a body arriving) do not replay it. */
.sheet.reader .sheet-card { animation: none; }
.sheet.reader.enter .sheet-card { animation: push-in .2s cubic-bezier(.2, .8, .2, 1); }
@keyframes push-in { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .sheet.reader.enter .sheet-card { animation: none; } }
/* While a swipe back is in progress the list shows again under the sliding mail. */
#app.peek > .ahead, #app.peek > #scroll, #app.peek > .botbar { visibility: visible; }
#app.peek .sheet.reader { background: transparent; }
#app.peek .sheet.reader .sheet-card { box-shadow: -12px 0 30px -12px rgba(0, 0, 0, .35); }
/* The list follows the swipe back from a little to the left (--pk-par, app.js
   setBackParallax), like iOS; par-anim eases it to its end place on release. */
#app.peek > .ahead, #app.peek > #scroll, #app.peek > .botbar { transform: translateX(var(--pk-par, 0%)); }
#app.par-anim > .ahead, #app.par-anim > #scroll, #app.par-anim > .botbar { transition: transform .18s ease; }
/* Opening a mail: the list stays on screen under the sliding mail and drifts a
   little to the left; the list is hidden (sheet-cover) only when the slide ends. */
#app.entering > .ahead, #app.entering > #scroll, #app.entering > .botbar {
  visibility: visible; animation: pk-par-in .2s cubic-bezier(.2, .8, .2, 1) both; }
#app.entering .sheet.reader { background: transparent; }
#app.entering .sheet.reader .sheet-card { box-shadow: -12px 0 30px -12px rgba(0, 0, 0, .35); }
@keyframes pk-par-in { from { transform: none; } to { transform: translateX(-28%); } }
@media (prefers-reduced-motion: reduce) {
  #app.entering > .ahead, #app.entering > #scroll, #app.entering > .botbar { animation: none; } }
/* Row swipe: a coloured strip fills the gap the sliding row leaves. The row stays
   opaque for the whole swipe (the :active tint is translucent). */
.mail.swiping, .mail.swiping.tappable:active { position: relative; z-index: 1; background: var(--pk-screen); border-radius: 0; }
.swipe-hint { position: absolute; width: 0; z-index: 0; display: flex; align-items: center; overflow: hidden;
  white-space: nowrap; padding: 0; }
.swipe-hint svg { flex: 0 0 auto; transition: transform .15s ease; }
.swipe-hint.armed svg { transform: scale(1.15); }
/* Soft tints with a coloured icon; past the commit point the tint deepens a step. */
.swipe-hint.trash { padding-right: 22px; justify-content: flex-end; color: var(--pk-danger);
  background: color-mix(in srgb, var(--pk-danger) 10%, var(--pk-screen)); }
.swipe-hint.mark { padding-left: 22px; justify-content: flex-start; color: #3b82f6;
  background: color-mix(in srgb, #3b82f6 10%, var(--pk-screen)); }
.swipe-hint.trash.armed { background: color-mix(in srgb, var(--pk-danger) 20%, var(--pk-screen)); }
.swipe-hint.mark.armed { background: color-mix(in srgb, #3b82f6 20%, var(--pk-screen)); }
.lmore.loading { display: flex; justify-content: center; padding: 22px 0 10px; }
.spinner.sm { width: 20px; height: 20px; }
.rd-wait { min-height: 120px; }
.rd-wait .rd-snip { opacity: .6; }
.rd-wait .rd-snip + .rd-load { padding: 12px 2px; }

/* ---- side menu: a rail BEHIND the app, as on the desktop ----
   The rail (#menu-rail, on <body>) is pinned left under the app; opening it
   slides the whole app right as a rounded card with a shadow (#app.menu-open).
   The rail is a grey a step darker than the app (b236, owner: a different colour
   behind the sliding card). Pocket draws under the status bar again (b231), so
   the rail fills the screen from the top and no band sits above it. The card's
   shadow and edge line lift the app off it. Its rows keep the app's own ink. */
:root { --rail-w: min(82vw, 320px); --pk-frame: #e1e0e5; }
@media (prefers-color-scheme: dark) { :root { --pk-frame: #08070c; } }
#app { z-index: 1; background: var(--pk-screen); transition: transform .26s cubic-bezier(.2, .8, .2, 1), border-radius .26s ease; }
#app.menu-open { transform: translateX(var(--rail-w)); border-radius: 4px; overflow: hidden;
  box-shadow: -10px 0 40px -8px rgba(23, 20, 45, .22), 0 0 0 1px rgba(23, 20, 45, .04); }
.menu-cover { position: absolute; inset: 0; z-index: 80; }
/* The rail's grey fills the WHOLE screen behind the card (the card's rounded
   corners must show grey, not the page); the menu itself is --rail-w wide. */
#menu-rail { position: fixed; inset: 0; z-index: 0; }
#menu-rail:not(:empty) { background: var(--pk-frame); }
#menu-rail .drawer-scrim { position: absolute; inset: 0; }
.drawer { position: absolute; top: 0; bottom: 0; left: 0; width: var(--rail-w); display: flex; flex-direction: column;
  background: var(--pk-frame); color: var(--pk-ink); --pk-screen: var(--pk-frame);
  --pk-hair: color-mix(in srgb, var(--pk-ink) 8%, transparent);
  --pk-screen2: color-mix(in srgb, var(--pk-ink) 5%, transparent);
  padding: calc(var(--pk-safe-top) + 16px) 18px calc(env(safe-area-inset-bottom, 0px) + 16px);
  overflow-y: auto; }
@keyframes dw-in { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes dw-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #app { transition: none; } }
.dw-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.dw-title { font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--pk-ink); flex: 1 1 auto; }
.dw-x { width: 36px; height: 36px; margin-right: -8px; border: none; background: none; color: var(--pk-dim);
  font-size: 26px; line-height: 1; cursor: pointer; border-radius: 50%; }
.dw-x:active { background: var(--pk-soft); }
.dw-sec { margin: 20px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pk-faint); }
.dw-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0;
  border-top: 1px solid var(--pk-hair); font-size: 15px; color: var(--pk-dim); }
.dw-row b { font-weight: 600; color: var(--pk-ink); min-width: 0; display: inline-flex; align-items: center; }
.dw-id { font-size: 11.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.dw-note { font-size: 14px; color: var(--pk-faint); padding: 6px 0; }
.dw-btn { width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 4px; border: 1px solid var(--pk-hair2);
  background: var(--pk-screen2); color: var(--pk-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.dw-btn:active { background: var(--pk-soft); }
.dw-btn.quiet { background: none; color: var(--pk-dim); font-weight: 500; }
/* "Free this address" (heldJoinSection in render.js, §12.16). */
.jh-title { font-size: 15px; font-weight: 600; color: var(--pk-ink); padding: 2px 0; }
.jh-item { padding: 12px 0; border-top: 1px solid var(--pk-hair); }
.jh-acct { font-size: 15px; font-weight: 600; color: var(--pk-ink); overflow-wrap: anywhere; }
.jh-name { margin-top: 3px; font-size: 14px; color: var(--pk-dim); }
.jh-name b { font-weight: 600; color: var(--pk-ink); }
.jh-when { margin-top: 3px; font-size: 13.5px; color: var(--pk-faint); }
.jh-free { margin-top: 10px; }
.jh-free[disabled] { opacity: .55; cursor: default; }
.jh-done { margin-top: 10px; font-size: 14px; color: var(--pk-ink); }
.jh-err { margin-top: 8px; font-size: 13.5px; color: var(--pk-danger); }
/* Notifications on/off (pushSetting in render.js) — an iOS-style switch. */
.dw-switch { position: relative; flex: 0 0 auto; width: 50px; height: 30px; padding: 0; border: none; border-radius: 999px;
  background: var(--pk-hair2); cursor: pointer; transition: background .18s ease; }
.dw-switch.on { background: var(--pk-indigo); }
.dw-switch[disabled] { opacity: .55; cursor: default; }
.dw-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .18s ease; }
.dw-switch.on .dw-knob { transform: translateX(20px); }
@media (prefers-reduced-motion: reduce) { .dw-switch, .dw-knob { transition: none; } }
.dw-err { color: var(--pk-danger); }
/* The mailbox count badge (moreMailboxRows in render.js, the More sheet). */
.dw-mcount { flex: 0 0 auto; min-width: 20px; padding: 2px 8px; border-radius: 999px; background: var(--pk-soft);
  color: var(--pk-dim); font-size: 12.5px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
/* Memory (memoryRow / memoryDrawer in render.js). */
/* The Memory view re-renders as it loads and as you answer; it must not slide in again each time. */
.drawer.still, .drawer-scrim.still { animation: none; }
.dw-link { width: 100%; border-left: none; border-right: none; border-bottom: none; background: none; font: inherit;
  font-size: 15px; text-align: left; cursor: pointer; }
.dw-link:active { background: var(--pk-soft); }
.dw-chev { color: var(--pk-faint); margin-left: 6px; }
.mem-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px;
  padding: 0 6px; border-radius: 999px; background: var(--pk-indigo); color: #fff; font-size: 11px; font-weight: 700;
  font-variant-numeric: tabular-nums; }
.dw-back { width: 36px; height: 36px; margin-left: -8px; border: none; background: none; color: var(--pk-dim);
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; }
.dw-back:active { background: var(--pk-soft); }
.mem-item { padding: 12px 0; border-top: 1px solid var(--pk-hair); }
.mem-item.quiet { display: flex; align-items: flex-start; gap: 12px; }
.mem-t { font-size: 15px; line-height: 1.4; color: var(--pk-ink); flex: 1 1 auto; min-width: 0; }
.mem-item.quiet .mem-t { color: var(--pk-dim); }
.mem-acts { display: flex; gap: 8px; margin-top: 10px; }
.mem-btn { flex: 1; padding: 10px 12px; border-radius: 4px; border: 1px solid var(--pk-hair2); background: var(--pk-screen);
  color: var(--pk-ink); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.mem-btn.primary { background: var(--pk-indigo); border-color: var(--pk-indigo); color: #fff; }
.mem-btn:active { filter: brightness(.95); }
.mem-btn[disabled], .mem-rm[disabled] { opacity: .5; cursor: default; }
.mem-rm { flex: 0 0 auto; border: none; background: none; font: inherit; font-size: 13px; color: var(--pk-faint);
  padding: 2px 4px; cursor: pointer; }
.mem-rm:active { color: var(--pk-danger); }

/* ---- confirm dialog (confirmDialog in app.js) ---- */
.cf-ov { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: color-mix(in srgb, #000 45%, transparent);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: sheet-in .16s ease; }
.cf-card { width: 100%; max-width: 340px; background: var(--pk-screen); border-radius: 4px; padding: 20px 18px 16px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55); }
.cf-t { font-size: 17px; font-weight: 650; color: var(--pk-ink); }
.cf-b { margin-top: 8px; font-size: 14.5px; line-height: 1.45; color: var(--pk-dim); }
.cf-acts { display: flex; gap: 10px; margin-top: 18px; }
.cf-btn { flex: 1; padding: 12px 10px; border-radius: 4px; border: 1px solid var(--pk-hair2); background: var(--pk-screen);
  color: var(--pk-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.cf-btn:active { background: var(--pk-soft); }
.cf-btn.primary { background: var(--pk-ink); border-color: var(--pk-ink); color: var(--pk-bg); }
.cf-btn.danger { background: #e5484d; border-color: #e5484d; color: #fff; }
/* The progress card (busyDialog in app.js): a spinner and one line. */
.cf-busy { display: flex; align-items: center; gap: 14px; }
.cf-busy .spinner { flex: none; margin: 0; }
.cf-busy .cf-b { margin-top: 0; color: var(--pk-ink); }
/* The "Turn on Reeveon AI" note (render.js aiOffAskDialog). */
.aio-ic { display: flex; margin-bottom: 10px; }

/* ---- join approval card (paintJoin in app.js, joinCardHtml in render.js) ----
   A new device asks to join: one card above everything, the code in large
   type, pill buttons. Deny is neutral (not red); "Deny and block" is the quiet
   danger text button. Corners 2px (Pocket form style). */
.jn-ov { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center;
  padding: 20px 16px; background: color-mix(in srgb, #000 45%, transparent);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: sheet-in .18s ease; }
.jn-card { width: 100%; max-width: 380px; background: var(--pk-screen); border-radius: 2px; padding: 18px 20px 14px;
  border: 1px solid var(--pk-hair); box-shadow: 0 28px 70px -24px rgba(0, 0, 0, .6); text-align: center; }
.jn-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.jn-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pk-indigo-ink); }
.jn-later { border: none; background: none; padding: 6px 2px; font: inherit; font-size: 14.5px; font-weight: 600;
  color: var(--pk-dim); cursor: pointer; }
.jn-t { font-size: 22px; line-height: 1.28; font-weight: 500; color: var(--pk-ink); overflow-wrap: anywhere; }
.jn-t b { font-weight: 750; }
.jn-acct { margin-top: 8px; font-size: 15.5px; font-weight: 600; color: var(--pk-dim); overflow-wrap: anywhere; }
.jn-when { margin-top: 3px; font-size: 14px; color: var(--pk-faint); }
.jn-code { margin: 20px 0 6px; font-size: 46px; line-height: 1.1; font-weight: 750; letter-spacing: .08em;
  font-variant-numeric: tabular-nums; color: var(--pk-ink); white-space: nowrap; }
.jn-name { margin-top: 6px; font-size: 15px; line-height: 1.38; color: var(--pk-dim); overflow-wrap: anywhere; }
.jn-name b { font-weight: 650; color: var(--pk-ink); }
.jn-q { margin: 18px 0 10px; font-size: 17px; font-weight: 650; color: var(--pk-ink); }
.jn-picks { display: flex; flex-direction: column; gap: 10px; margin: 0 auto 12px; max-width: 280px; }
.jn-pick { min-height: 58px; border-radius: 999px; border: 1.5px solid var(--pk-edge); background: var(--pk-btn-bg);
  color: var(--pk-ink); font: inherit; font-size: 30px; font-weight: 750; letter-spacing: .08em;
  font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; box-shadow: var(--pk-btn-shadow); }
.jn-pick.on { background: var(--pk-indigo); border-color: var(--pk-indigo); color: #fff; }
.jn-pick:active:not(:disabled) { transform: scale(.97); }
.jn-pick:disabled { opacity: .55; cursor: default; }
.jn-hint { margin: 0 auto; max-width: 300px; font-size: 15px; line-height: 1.42; color: var(--pk-dim); }
.jn-res { margin: 14px 0 0; padding: 10px 12px; border-radius: 2px; font-size: 15px; line-height: 1.4; font-weight: 600;
  background: var(--pk-screen2); color: var(--pk-ink); }
.jn-res.approved { background: color-mix(in srgb, var(--pk-good) 12%, var(--pk-screen)); color: var(--pk-good); }
.jn-res.wrong, .jn-res.relay, .jn-res.error, .jn-res.unavailable { background: color-mix(in srgb, var(--pk-amber) 12%, var(--pk-screen)); color: var(--pk-amber); }
.jn-ok { display: inline-block; margin-right: 6px; font-weight: 800; }
.jn-acts { display: flex; gap: 12px; margin-top: 20px; }
.jn-btn { flex: 1 1 0; min-width: 0; min-height: 52px; border-radius: 999px; border: 1.5px solid var(--pk-edge); background: var(--pk-btn-bg);
  color: var(--pk-ink); font: inherit; font-size: 17px; font-weight: 650; cursor: pointer; box-shadow: var(--pk-btn-shadow); }
.jn-btn.go { background: var(--pk-indigo); border-color: var(--pk-indigo); color: #fff; }
.jn-btn.danger { background: var(--pk-danger); border-color: var(--pk-danger); color: #fff; }
.jn-confirm { margin: 16px 0 0; font-size: 16.5px; line-height: 1.4; font-weight: 650; color: var(--pk-ink); }
.jn-btn:active:not(:disabled) { transform: scale(.97); }
.jn-btn:disabled, .jn-block:disabled, .jn-later:disabled { opacity: .55; cursor: default; }
.jn-block { display: block; margin: 12px auto 0; border: none; background: none; padding: 8px 12px; font: inherit;
  font-size: 15px; font-weight: 600; color: var(--pk-danger); cursor: pointer; }

/* ---- search (Superhuman-style) ---- */
.sheet.search { background: var(--pk-screen); }
.sheet.search .sheet-card { height: 100%; }
.sr-top { display: flex; align-items: center; gap: 10px; padding: calc(var(--pk-safe-top) + 6px) 14px 6px; }
.sr-field { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--pk-hair); background: var(--pk-screen); color: var(--pk-faint);
  box-shadow: 0 4px 14px -6px rgba(23, 20, 45, .26); }
.sr-field:focus-within { border-color: var(--pk-indigo); }
.sr-field input { flex: 1 1 auto; min-width: 0; border: none; background: none; color: var(--pk-ink);
  font: inherit; font-size: 17px; outline: none; -webkit-appearance: none; appearance: none; }
.sr-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sr-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px 8px; scrollbar-width: none; }
.sr-chips::-webkit-scrollbar { display: none; }
.sr-chip { flex: 0 0 auto; padding: 8px 13px; border: none; border-radius: 4px; font: inherit; font-size: 15px;
  color: var(--pk-dim); cursor: pointer; }
.sr-chip.person { background: color-mix(in srgb, #ec4899 10%, var(--pk-screen)); }
.sr-chip.flag { background: color-mix(in srgb, #3b82f6 10%, var(--pk-screen)); }
.sr-chip:active { filter: brightness(.95); }
.sr-body { flex: 1 1 0; min-height: 0; overflow-y: auto; position: relative; padding: 4px 14px calc(30px + env(safe-area-inset-bottom, 0px)); }
/* The first-load bar (render.js LOAD_BAR), the desktop RefreshBar in Pocket form:
   a 2px accent sweep on a faint accent track at the top edge of the scroll body,
   right under the header. Absolute, so showing or hiding it moves nothing.
   Reduced motion: a full-width bar with a slow opacity pulse. */
.pk-loadbar { position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 2px; overflow: hidden;
  pointer-events: none; background: color-mix(in srgb, var(--pk-indigo) 14%, transparent); }
.pk-loadbar::before { content: ''; display: block; width: 35%; height: 100%; border-radius: 1px;
  background: linear-gradient(90deg, transparent, var(--pk-indigo) 30%, var(--pk-indigo) 70%, transparent);
  animation: pk-loadbar-sweep 1.4s cubic-bezier(.4, 0, .2, 1) infinite; will-change: transform; }
@keyframes pk-loadbar-sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
@keyframes pk-loadbar-pulse { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }
@media (prefers-color-scheme: dark) {
  .pk-loadbar { background: color-mix(in srgb, var(--pk-indigo) 18%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .pk-loadbar::before { width: 100%; background: var(--pk-indigo); transform: none;
    animation: pk-loadbar-pulse 2.4s ease-in-out infinite; }
}
.sr-person { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 2px; border: none; background: none;
  text-align: left; font: inherit; cursor: pointer; border-radius: 4px; }
.sr-person:active { background: var(--pk-soft); }
.sr-av { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; color: #fff; font-size: 19px; font-weight: 500; }
.sr-pid { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sr-pname { font-size: 17px; font-weight: 500; color: var(--pk-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-pem { font-size: 13.5px; color: var(--pk-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-note { padding: 28px 8px; text-align: center; font-size: 14.5px; color: var(--pk-faint); }
/* The whole-mailbox line under the search results (searchDeepRow) and the
   other-group offer (searchGroupsRow). */
.sr-note.sr-err { color: var(--pk-danger); }
.sr-deep { display: flex; align-items: center; gap: 10px; width: 100%; margin: 6px 0 4px; padding: 12px 6px;
  border: none; border-top: 1px solid var(--pk-hair); background: none; font: inherit; font-size: 14.5px;
  color: var(--pk-dim); text-align: left; }
.sr-deep > span:first-of-type { flex: 1 1 auto; min-width: 0; }
.sr-deep.sr-err { color: var(--pk-danger); }
.sr-deep-run { flex-direction: column; align-items: flex-start; gap: 2px; color: var(--pk-indigo); font-weight: 600; cursor: pointer; }
.sr-deep-sub { font-size: 12.5px; font-weight: 400; color: var(--pk-faint); }
.sr-deep-btn { flex: 0 0 auto; padding: 6px 12px; border: 1px solid var(--pk-hair2); border-radius: 999px;
  background: var(--pk-btn-bg); font: inherit; font-size: 13px; color: var(--pk-indigo); }
.sr-groups .sr-note { padding: 10px 8px 0; text-align: left; }
.sr-groups .sr-chips { padding-left: 8px; }

/* ---- a bundle opened as a page (b92) ---- */
.bd-top { align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--pk-hair2); }
.bd-id { flex: 1 1 auto; min-width: 0; }
.bd-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 650; letter-spacing: .06em;
  text-transform: uppercase; color: var(--pk-indigo-ink); }
.bd-name { font-size: 20px; font-weight: 700; color: var(--pk-ink); line-height: 1.25; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-sub { font-size: 13.5px; color: var(--pk-dim); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-unbundle { flex: 0 0 auto; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--pk-hair);
  background: var(--pk-screen); color: var(--pk-ink); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.bd-unbundle:active { transform: scale(.97); }
.bd-unbundle:disabled { opacity: .5; }
.bd-body { padding-top: 6px; }
.dw-foot { margin-top: auto; padding-top: 24px; }
.dw-ver { margin-top: 12px; text-align: center; font-size: 12px; color: var(--pk-faint); }

/* ---- reader extras (b90): invitation answer, FYI line, thread summary, snooze ---- */
#rd-extra:empty { display: none; }
/* The height the lines had last time, held until the hub answers (app.js reserveExtras). */
#rd-extra.rsv:empty { display: block; }
#rd-extra { margin: -2px 2px 12px; display: flex; flex-direction: column; gap: 10px; }
.rd-inv { border: 1px solid var(--pk-hair); border-radius: 4px; padding: 12px 13px 11px; background: var(--pk-screen2); }
.rd-inv-hd { display: flex; align-items: center; gap: 8px; color: var(--pk-dim); }
.rd-inv-hd svg { flex: 0 0 auto; }
.rd-inv-t { font-size: 15.5px; font-weight: 600; color: var(--pk-ink); min-width: 0; overflow-wrap: anywhere; }
.rd-inv-sub { margin: 3px 0 0 25px; font-size: 13.5px; color: var(--pk-dim); }
.rd-inv-acts { display: flex; gap: 8px; margin-top: 11px; }
.rd-pill { flex: 1; min-height: 40px; padding: 9px 10px; border-radius: 999px; border: 1px solid var(--pk-hair2);
  background: var(--pk-screen); color: var(--pk-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.rd-pill:active { background: var(--pk-soft); }
.rd-pill.on { background: color-mix(in srgb, var(--pk-indigo) 14%, var(--pk-screen)); color: var(--pk-indigo-ink);
  border-color: color-mix(in srgb, var(--pk-indigo) 45%, var(--pk-hair)); }
.rd-pill.busy { opacity: .6; }
.rd-pill:disabled { cursor: default; }
.rd-inv-st { margin-top: 9px; font-size: 13px; color: var(--pk-faint); }
.rd-fyi { position: relative; display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.45; }
.rd-fyi p { margin: 0; flex: 1; min-width: 0; color: var(--pk-dim); }
.fyi-ic { flex: 0 0 auto; margin-top: 2px; display: inline-flex; }
.fyi-ic.bulb { color: var(--pk-amber); }
.fyi-tag { margin-right: 6px; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--pk-faint); }
.fyi-sep { margin: 0 6px; color: var(--pk-hair2); }
.fyi-link { border: none; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--pk-indigo-ink); cursor: pointer; }
.fyi-more { flex: 0 0 auto; width: 32px; height: 28px; margin: -4px -6px 0 0; border: none; border-radius: 999px; background: none;
  color: var(--pk-faint); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.fyi-more:active { background: var(--pk-soft); }
.fyi-menu { position: absolute; right: 0; top: 26px; z-index: 8; min-width: 230px; max-width: min(320px, calc(100vw - 32px)); padding: 5px; border-radius: 4px;
  background: var(--pk-screen); border: 1px solid var(--pk-hair2); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .45); }
.fyi-menu button { display: block; width: 100%; text-align: left; padding: 11px 12px; border: none; border-radius: 4px;
  background: none; font: inherit; font-size: 15px; color: var(--pk-ink); cursor: pointer; }
.fyi-menu button:active { background: var(--pk-soft); }
.fyi-head { color: var(--pk-ink); }
.fyi-hint { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: var(--pk-faint); }
.rd-sum { margin-bottom: 0; }
.rd-sum .md, .rd-sum .md-list li { font-size: 14.5px; line-height: 1.5; }
.rd-sum .rd-load { padding: 6px 0; font-size: 14px; }
.cc-sub { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--pk-hair); text-transform: none; letter-spacing: 0;
  font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz-item { justify-content: space-between; }
.sz-when { font-size: 14px; font-weight: 500; color: var(--pk-faint); }
.pk-toast.has-act { pointer-events: auto; display: flex; align-items: center; gap: 14px; }
.pk-toast-act { border: none; background: none; padding: 0; font: inherit; font-weight: 700; color: inherit;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
a.cf-btn { text-align: center; text-decoration: none; display: block; }
/* The Command center grew a sender section: on a short phone it scrolls. */
.cc-card { max-height: calc(100% - 8px); overflow-y: auto; overscroll-behavior: contain; }

/* ---- attachment viewer (openAttachment in app.js) ---- */
#att-view { position: fixed; inset: 0; z-index: 30; }
.av { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--pk-screen); animation: sheet-in .18s ease; }
.av-top { display: flex; align-items: center; gap: 10px; padding: calc(var(--pk-safe-top) + var(--pk-top-gap)) 12px 4px;
  min-height: calc(var(--pk-safe-top) + var(--pk-top-gap) + var(--pk-head-h) + 4px);
  border-bottom: 1px solid var(--pk-hair); }
.av-name { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 600; color: var(--pk-ink); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-btn, .av-sp { flex: 0 0 auto; width: 40px; height: 40px; }
.av-btn { border-radius: 50%; border: 1px solid var(--pk-hair); background: var(--pk-screen); color: var(--pk-ink);
  box-shadow: var(--pk-btn-shadow); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.av-btn:active { transform: scale(.95); }
.av-body { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom, 0px); }
.av-img { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 12px; }
.av-img img { max-width: 100%; height: auto; display: block; }
.av-frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.av-text { margin: 0; padding: 14px 16px; min-height: 100%; box-sizing: border-box; background: #fff; color: #2c2b36;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.av-note { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px 28px; text-align: center;
  font-size: 15px; line-height: 1.5; color: var(--pk-dim); }
.av-err { color: var(--pk-danger); }
.av-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 28px; text-align: center; }
.av-doc { width: 72px; height: 92px; border-radius: 4px; border: 1px solid var(--pk-hair2); background: var(--pk-screen2);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; margin-bottom: 6px;
  box-shadow: var(--pk-btn-shadow); }
.av-doc span { font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--pk-danger); }
.av-cname { font-size: 16px; font-weight: 600; color: var(--pk-ink); word-break: break-word; }
.av-csize { font-size: 13.5px; color: var(--pk-dim); }
.av-open { margin-top: 12px; min-width: 180px; padding: 13px 22px; border: none; border-radius: 999px;
  background: var(--pk-indigo); color: #fff; font: inherit; font-size: 16px; font-weight: 600;
  box-shadow: var(--pk-btn-shadow); cursor: pointer; }
.av-open:active { transform: scale(.97); }
.av-hint { max-width: 280px; font-size: 13px; line-height: 1.45; color: var(--pk-faint); }
.av-pdf { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px; background: var(--pk-screen2); min-height: 100%; }
.av-page { display: block; background: #fff; border-radius: 4px; box-shadow: 0 2px 10px -4px rgba(23, 20, 45, .25); }

/* ---- speed overlay (tap the version line in the side menu) ---- */
.pk-perf { position: fixed; z-index: 9999; right: 6px; top: calc(var(--pk-safe-top) + 64px);
  max-width: 200px; padding: 6px 8px; border-radius: 2px; pointer-events: none;
  background: rgba(10, 10, 14, .78); color: #f2f2f6;
  font: 10px/1.35 var(--pk-mono); }
.pk-perf .pf-h { margin: 4px 0 2px; color: #c2aef0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-perf .pf-h:first-child { margin-top: 0; }
.pk-perf .pf-r { display: flex; justify-content: space-between; gap: 8px; }
.pk-perf .pf-r b { font-weight: 500; }
.pk-perf .pf-cs { display: flex; flex-wrap: wrap; gap: 2px 6px; margin-top: 2px; }
.pk-perf .pf-c { color: #7ee2a8; }
.pk-perf .pf-c.bad { color: #ff8a8a; }
.pk-perf .pf-copy { pointer-events: auto; float: right; margin: -2px -4px 2px 6px; padding: 2px 8px; border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px; background: rgba(255, 255, 255, .1); color: #f2f2f6; font: inherit; cursor: pointer; }
.pk-perf .pf-copy:active { background: rgba(255, 255, 255, .22); }
/* The reader drawn once, unseen, at launch (app.js warmReader): it is never
   shown, never hit, and it is removed as soon as it has been laid out. */
.pk-warm { position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden;
  visibility: hidden; pointer-events: none; contain: strict; }

/* ---- Set aside + sticky notes (caps "setaside" / "notes") ---- */
:root {
  /* The sticky-note paper: the desktop's yellow-100 / yellow-800. */
  --pk-note-bg: #fef9c3;
  --pk-note-edge: rgba(202, 138, 4, .30);
  --pk-note-ink: #713f12;
  --pk-note-mark: #b45309;
  /* The inbox tab strip's track: a soft purple tint (the selected tab's family),
     so the white "Set aside" pill floats clearly above it (owner, 2026-11-05). */
  --pk-track: color-mix(in srgb, var(--pk-indigo) 7%, var(--pk-screen));
  --pk-track-on: color-mix(in srgb, var(--pk-indigo) 17%, var(--pk-screen));
}
@media (prefers-color-scheme: dark) {
  :root {
    --pk-note-bg: color-mix(in srgb, #facc15 13%, var(--pk-screen));
    --pk-note-edge: rgba(250, 204, 21, .22);
    --pk-note-ink: #fde68a;
    --pk-note-mark: #fbbf24;
    --pk-track: color-mix(in srgb, var(--pk-indigo) 11%, var(--pk-screen));
    --pk-track-on: color-mix(in srgb, var(--pk-indigo) 30%, var(--pk-screen));
  }
}

/* List: the tab strip sits on its purple track, inside the page gutter. */
.tpills { position: relative; margin: 14px -6px 6px; padding: 4px; gap: 2px; border-radius: 999px;
  background: var(--pk-track); }
.tpills .tpill.on { background: var(--pk-track-on); }
.tpills .tpill:active { background: var(--pk-track-on); }
/* The "Set aside N" pill: last in the strip, pinned to the right; the tabs
   scroll under it behind a soft fade. Solid accent purple with white ink and a
   shadow, so it reads as the one floating thing on the track (owner, 2026-11-05). */
.sa-pill { position: sticky; right: 0; margin-left: auto; z-index: 1; gap: 6px; padding: 0 13px 0 12px;
  color: #fff; background: var(--pk-indigo); border: 1.5px solid transparent;
  /* The fade that hides the tabs scrolling under it is a track-coloured glow
     to the LEFT that follows the pill's round end — a square ::before block
     here read as the pill being chopped off (owner, 2026-11-05). */
  box-shadow: -18px 0 12px -4px var(--pk-track), 0 4px 14px -6px rgba(46, 22, 92, .55); }
.sa-pill svg { flex: 0 0 auto; color: #fff; }
.sa-pill .tpill-c { opacity: 1; font-weight: 650; color: #fff; }
.tpills .sa-pill:active { background: var(--pk-indigo-ink); transform: scale(.97); }
@media (prefers-color-scheme: dark) {
  /* #8a68d0 is ~4.2:1 under white; 18% black lifts it to ~5.8:1. */
  .sa-pill { background: color-mix(in srgb, #000 18%, var(--pk-indigo)); box-shadow: -18px 0 12px -4px var(--pk-track), 0 4px 14px -6px rgba(0, 0, 0, .7); }
  .tpills .sa-pill:active { background: color-mix(in srgb, #000 30%, var(--pk-indigo)); }
}

/* List: a noted row shows a small amber note glyph beside the clip. */
.mnote { flex: 0 0 auto; align-self: center; display: inline-flex; color: var(--pk-note-mark); }
.mail.read .mnote { opacity: .85; }

/* Set aside page: a round button takes a row off the pile; a swipe to the left
   does the same (the strip names it). */
.sa-page .mail { padding-right: 52px; }
.sa-page .sa-when { font-size: 12.5px; }
.sa-unpin { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--pk-edge); background: var(--pk-btn-bg);
  color: var(--pk-dim); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 12px -6px rgba(23, 20, 45, .30); }
.sa-unpin:active { transform: translateY(-50%) scale(.94); color: var(--pk-indigo-ink); }
/* "No reply needed" on a "Needs reply" row: the pile row's round button. */
.mail.has-noreply { padding-right: 52px; }
.wal-noreply { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--pk-edge); background: var(--pk-btn-bg);
  color: var(--pk-dim); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 12px -6px rgba(23, 20, 45, .30); }
.wal-noreply:active { transform: translateY(-50%) scale(.94); color: var(--pk-indigo-ink); }
/* The reader's "No reply needed" beside the "Needs reply" chip. */
.rd-tag.rd-noreply { gap: 4px; cursor: pointer; font-family: inherit; color: var(--pk-dim);
  background: transparent; box-shadow: none; border: 1px dashed var(--pk-edge); }
.rd-tag.rd-noreply:active { color: var(--pk-indigo-ink); }
.sa-foot { margin: 18px 6px 120px; font-size: 13px; line-height: 1.45; color: var(--pk-faint); text-align: center; }
.swipe-hint.unpile { padding-right: 22px; justify-content: flex-end; color: var(--pk-indigo-ink);
  background: color-mix(in srgb, var(--pk-indigo) 10%, var(--pk-screen)); }
.swipe-hint.unpile.armed { background: color-mix(in srgb, var(--pk-indigo) 20%, var(--pk-screen)); }

/* Reader: the note under the subject — yellow paper, 2px corners, 3 lines. */
.rd-note { display: block; width: 100%; text-align: left; margin: 0 0 14px; padding: 10px 12px 11px;
  border-radius: 2px; border: 1px solid var(--pk-note-edge); background: var(--pk-note-bg); color: var(--pk-note-ink);
  font: inherit; cursor: pointer; box-shadow: 0 1px 2px rgba(120, 80, 0, .08); }
.rd-note-hd { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; letter-spacing: .05em;
  text-transform: uppercase; opacity: .85; }
.rd-note-tx { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 4px; font-size: 16px; line-height: 1.4; font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }
.rd-note:active { filter: brightness(.97); }
/* Reader: the bookmark in the command pill (filled = on the pile). */
.rd-cmd.sa-on { color: var(--pk-indigo-ink); }

/* The note editor: a bottom sheet docked above the keyboard (the reader sheet
   is pinned to the visual viewport). Yellow field, indigo underline. */
.nt-ov { position: absolute; inset: 0; z-index: 31; display: flex; flex-direction: column; justify-content: flex-end;
  background: color-mix(in srgb, #000 34%, transparent); animation: sheet-in .18s ease; }
.nt-sheet { margin: 0 8px 8px; padding: 16px 16px 12px; background: var(--pk-screen); border-radius: 2px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5); animation: cc-up .2s cubic-bezier(.2, .8, .2, 1); }
.nt-hd { display: flex; flex-direction: column; gap: 3px; }
.nt-title { display: inline-flex; align-items: center; gap: 7px; font-size: 17px; font-weight: 700; color: var(--pk-ink); }
.nt-title svg { color: var(--pk-note-mark); }
.nt-sub { font-size: 13px; color: var(--pk-faint); }
.nt-field { margin-top: 12px; padding: 10px 12px; background: var(--pk-note-bg); border-radius: 2px;
  border-bottom: 2px solid var(--pk-indigo); }
.nt-in { display: block; width: 100%; border: none; background: transparent; resize: none; font: inherit; font-size: 17px;
  line-height: 1.45; color: var(--pk-note-ink); padding: 0; outline: none; min-height: 74px; max-height: 32vh; overflow-y: auto; }
.nt-in::placeholder { color: color-mix(in srgb, var(--pk-note-ink) 45%, transparent); }
.nt-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.nt-del { height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--pk-edge); background: var(--pk-btn-bg);
  color: var(--pk-danger); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 4px 12px -6px rgba(23, 20, 45, .30); }
.nt-saved { flex: 1; text-align: right; font-size: 13px; color: var(--pk-faint); }
.nt-saved.err { color: var(--pk-danger); }
.nt-done { height: 44px; padding: 0 22px; border-radius: 999px; border: none; background: var(--pk-indigo); color: #fff;
  font: inherit; font-size: 16px; font-weight: 650; cursor: pointer;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--pk-indigo) 70%, transparent); }
.nt-del:active, .nt-done:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .nt-ov, .nt-sheet { animation: none; } }

/* Remember this: a to-do from the open mail. The note editor's sheet (2px
   corners, docked low), an underline title field, then the choices as rows
   (a tap adds, like Remind me). */
.rm-title svg { color: var(--pk-indigo); }
.rm-field { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.rm-lbl { font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--pk-faint); }
.rm-field:focus-within .rm-lbl { color: var(--pk-indigo-ink); }
.rm-in { width: 100%; font-size: 18px; font-weight: 550; }
.rm-opts { display: flex; flex-direction: column; margin: 10px -10px 0; }
.rm-opt { min-height: 50px; font-size: 16.5px; border-radius: 2px; }
.rm-opt:disabled { opacity: .55; cursor: default; }
.rm-opt.on { color: var(--pk-indigo-ink); }
.rm-date { display: flex; align-items: flex-end; gap: 12px; padding: 0 12px 6px; }
.rm-date .rm-date-in { flex: 1; min-width: 0; }
.rm-date .cal-task-go { margin-bottom: 3px; min-height: 44px; padding: 0 22px; font-size: 16px; }
.rm-added { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 2px;
  font-size: 17px; font-weight: 650; color: var(--pk-indigo-ink); border-bottom: 1px solid var(--pk-hair); }
.rm-added svg { width: 20px; height: 20px; }
.rm-see { color: var(--pk-ink); }

/* The sender card: a tap on the reader's top pill. The note editor's sheet
   (2px corners, docked low), large type, chips and fact lines. */
.sc-ov { position: absolute; inset: 0; z-index: 31; display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: color-mix(in srgb, #000 34%, transparent); animation: sheet-in .18s ease; }
.sc-sheet { max-height: calc(100% - 24px); overflow-y: auto; overscroll-behavior: contain; padding: 18px 18px 12px; }
.sc-top { display: flex; align-items: center; gap: 14px; }
.sc-av { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-size: 18px; font-weight: 700; letter-spacing: .02em;
  background: var(--pk-soft); color: var(--pk-indigo-ink); }
.sc-id { flex: 1 1 auto; min-width: 0; }
.sc-name { font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--pk-ink); overflow-wrap: anywhere; }
.sc-em { margin-top: 2px; font-size: 15px; color: var(--pk-dim); overflow-wrap: anywhere; }
.sc-role { margin-top: 14px; font-size: 17px; font-weight: 550; line-height: 1.35; color: var(--pk-ink); overflow-wrap: anywhere; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sc-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 13px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--pk-indigo-ink); background: var(--pk-soft);
  box-shadow: 0 3px 10px -6px rgba(23, 20, 45, .30); }
.sc-chip.vip { color: var(--pk-amber); background: color-mix(in srgb, var(--pk-amber) 14%, transparent); }
.sc-facts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sc-facts li { position: relative; padding-left: 16px; font-size: 16px; line-height: 1.4; color: var(--pk-ink); }
.sc-facts li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%;
  background: var(--pk-indigo); }
.sc-note { margin-top: 14px; padding: 10px 12px; background: var(--pk-note-bg); border-radius: 2px;
  border-bottom: 2px solid var(--pk-note-edge); }
.sc-note .rm-lbl { color: var(--pk-note-mark); }
.sc-note-t { margin-top: 3px; font-size: 16px; line-height: 1.45; color: var(--pk-note-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.sc-src { margin-top: 12px; font-size: 13px; color: var(--pk-faint); }
.sc-bar { margin-top: 16px; }
.sc-all { color: var(--pk-ink); }
@media (prefers-reduced-motion: reduce) { .sc-ov { animation: none; } }
/* The tray: a to-do from an email has a line under its text — the due date
   (amber when it is past; calm, not an alarm) and the email it came from.
   Tapping the text opens that email. */
.cal-task-t.has-sub { flex-wrap: wrap; row-gap: 1px; padding: 4px 0; }
.cal-task-t.opens { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cal-task-t.opens:active .cal-task-tx { color: var(--pk-indigo-ink); }
.cal-task-sub { flex-basis: 100%; min-width: 0; display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--pk-faint); }
.cal-task-due { flex: none; font-weight: 600; color: var(--pk-dim); }
.cal-task-due.over { color: var(--pk-amber); }
.cal-task.done .cal-task-due { color: var(--pk-faint); font-weight: 500; }
.cal-task-from { min-width: 0; display: inline-flex; align-items: center; gap: 5px; }
.cal-task-from svg { flex: none; }
.cal-task-from span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- "Reply with my free times" (cap "availability") ---- */
/* The composer's pill: the round tool's rim, fill and shadow, sized to its words. */
.cp-pill { height: 48px; padding: 0 18px 0 14px; border-radius: 999px; border: 1.5px solid var(--pk-edge);
  background: var(--pk-btn-bg); color: var(--pk-ink); box-shadow: var(--pk-btn-shadow);
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 15.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap; }
.cp-pill svg { color: var(--pk-indigo); flex: none; }
.cp-pill:active:not(:disabled) { transform: scale(.96); }
.cp-pill.busy { color: var(--pk-dim); cursor: default; }
.cp-spin.dark { width: 17px; height: 17px; border-width: 2.2px; border-color: var(--pk-hair2); border-top-color: var(--pk-indigo); }
/* The reader's calm offer: one quiet pill line under the subject. */
.rd-ft { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 13px;
  border-radius: 999px; border: 1.5px solid var(--pk-edge); background: var(--pk-btn-bg); color: var(--pk-indigo-ink);
  box-shadow: var(--pk-btn-shadow); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.rd-ft svg { color: var(--pk-indigo); flex: none; }
.rd-ft:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .cp-pill:active, .rd-ft:active { transform: none; } }

/* ---- The to-do suggestion (caps "emailtask" + "tasksuggest") ---- */
/* A calm accent-tinted card: the due date and its words, then the pills. */
.rd-ts { border: 1px solid color-mix(in srgb, var(--pk-indigo) 22%, transparent); border-radius: 2px;
  background: color-mix(in srgb, var(--pk-indigo) 6%, transparent); padding: 10px 10px 12px 12px; }
.rd-ts-hd { display: flex; align-items: center; gap: 9px; min-height: 30px; }
.rd-ts-ic { flex: none; display: inline-flex; color: var(--pk-indigo); }
.rd-ts-t { flex: 1; min-width: 0; font-size: 16px; font-weight: 650; color: var(--pk-ink); overflow-wrap: anywhere; }
.rd-ts-q { font-weight: 500; color: var(--pk-dim); }
.rd-ts-ask { margin: 2px 0 0 27px; font-size: 15px; line-height: 1.35; color: var(--pk-dim); overflow-wrap: anywhere; }
.rd-ts-x { flex: none; width: 36px; height: 36px; margin: -4px -2px -4px 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--pk-faint); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rd-ts-x:active { background: var(--pk-hair); }
.rd-ts-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.rd-ts-b { min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--pk-edge);
  background: var(--pk-btn-bg); color: var(--pk-indigo-ink); box-shadow: var(--pk-btn-shadow);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.rd-ts-b:active:not(:disabled) { transform: scale(.97); }
.rd-ts-b:disabled, .rd-ts-x:disabled { opacity: .55; cursor: default; }
.rd-ts.done { display: flex; align-items: center; gap: 9px; padding: 6px 8px 6px 12px; }
.rd-ts.done .rd-ts-t { font-weight: 600; color: var(--pk-indigo-ink); }
.rd-ts-show { flex: none; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--pk-edge);
  background: var(--pk-btn-bg); color: var(--pk-ink); box-shadow: var(--pk-btn-shadow); font: inherit; font-size: 14.5px;
  font-weight: 600; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .rd-ts-b:active { transform: none; } }

/* ---- AI action proposals under an Ask answer (cap "agentactions") ---- */
/* One calm card per proposal: what it does, the key details, a preview for an
   outward action or a setting, then the pills. Approved: one quiet line. */
.aa-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.aa { border: 1px solid color-mix(in srgb, var(--pk-indigo) 22%, transparent); border-radius: 2px;
  background: color-mix(in srgb, var(--pk-indigo) 6%, transparent); padding: 12px 12px 12px 13px; }
.aa[data-risk="outward"], .aa[data-risk="setting"] { border-color: color-mix(in srgb, var(--pk-amber) 38%, transparent); }
.aa-hd { display: flex; align-items: flex-start; gap: 10px; }
.aa-ic { flex: none; display: inline-flex; color: var(--pk-indigo); margin-top: 1px; }
.aa-say { flex: 1; min-width: 0; font-size: 16px; font-weight: 650; line-height: 1.35; color: var(--pk-ink); overflow-wrap: anywhere; }
.aa-dl { display: flex; flex-direction: column; gap: 5px; margin: 10px 0 0 30px; }
.aa-row { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.4; }
.aa-k { flex: none; width: 74px; color: var(--pk-dim); font-weight: 500; }
.aa-v { flex: 1; min-width: 0; color: var(--pk-ink); overflow-wrap: anywhere; }
.aa-pv { margin: 10px 0 0 30px; padding: 8px 10px; border-left: 2px solid var(--pk-amber); border-radius: 2px;
  background: color-mix(in srgb, var(--pk-amber) 9%, transparent); font-size: 14px; line-height: 1.4; color: var(--pk-ink); }
.aa-pv p { margin: 0; }
.aa-pv p + p { margin-top: 4px; }
.aa-err { margin: 10px 0 0 30px; font-size: 14px; line-height: 1.4; color: var(--pk-danger); }
.aa-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0 30px; }
.aa-b { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--pk-edge);
  background: var(--pk-btn-bg); color: var(--pk-ink); box-shadow: var(--pk-btn-shadow);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.aa-b.ok { background: var(--pk-indigo); border-color: var(--pk-indigo); color: #fff; }
.aa-b:active:not(:disabled) { transform: scale(.97); }
.aa-b:disabled { opacity: .55; cursor: default; }
.aa.done { display: flex; align-items: center; gap: 9px; padding: 8px 12px; }
.aa.done .aa-ic { color: var(--pk-good); margin: 0; }
.aa-done { font-size: 15px; font-weight: 600; color: var(--pk-indigo-ink); }
@media (prefers-reduced-motion: reduce) { .aa-b:active { transform: none; } }

/* Working hours (side menu › Settings). */
.wh-form { display: flex; flex-direction: column; }
.wh-days { display: flex; flex-direction: column; }
.wh-day { display: flex; align-items: center; gap: 10px; min-height: 52px; border-top: 1px solid var(--pk-hair); }
.wh-dn { width: 38px; flex: none; font-size: 15.5px; font-weight: 600; color: var(--pk-faint); }
.wh-day.on .wh-dn { color: var(--pk-ink); }
.wh-t { flex: 1 1 0; width: 0; min-height: 40px; padding: 6px 2px 5px; font-size: 16px; font-variant-numeric: tabular-nums; }
.wh-to { flex: none; font-size: 14px; color: var(--pk-faint); }
.wh-off { flex: 1; font-size: 15px; color: var(--pk-faint); }
.dw-switch.sm { width: 42px; height: 26px; }
.dw-switch.sm .dw-knob { width: 20px; height: 20px; }
.dw-switch.sm.on .dw-knob { transform: translateX(16px); }
.wh-field { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }
.wh-field:focus-within .rm-lbl { color: var(--pk-indigo-ink); }
.wh-24 { margin-top: 16px; }
.wh-bar { display: flex; justify-content: flex-end; margin: 14px 0 6px; }
.wh-save { min-height: 44px; padding: 0 26px; font-size: 16px; }
.wh-save[disabled] { opacity: .6; cursor: default; }
/* The time fields are narrow: no picker icon (a tap opens the picker), so "9:30 AM" fits. */
.wh-t::-webkit-calendar-picker-indicator { display: none; }
.wh-day { gap: 8px; }
.wh-t { font-size: 15.5px; letter-spacing: -.01em; }

/* Provider sync health notice (render.js syncHealthNotice). */
.sh-note { margin: 10px 16px 4px; padding: 10px 12px; border-radius: 2px; border: 1px solid var(--pk-line, rgba(127,127,127,.25));
  border-left: 3px solid #f97316; }
.drawer .sh-note { margin: 10px 0 0; }
.sh-text { font-size: 14px; line-height: 1.35; color: var(--pk-ink); }
.sh-meta { margin-top: 4px; font-size: 12px; color: var(--pk-faint); overflow-wrap: anywhere; }
.sh-link { color: inherit; font-weight: 600; text-decoration: underline; margin-left: 4px; }
.sh-note.sh-auth { border-left-color: #f59e0b; }

/* ---- the mail list's bottom zone (owner, 2026-11-14) ----
   The inbox tabs moved from under the header to a compact strip right above the
   nav pill (render.js bottomTabs): one floating capsule in the nav pill's
   look, its tabs scrolling sideways, the Set aside pill fixed at its right end.
   The list scrolls under it (its bottom padding clears both bars). */
.scroll.withtabs { padding-bottom: calc(108px + 62px); }
/* The bar's frosted fade grows to reach behind the strip too (its box takes no
   taps: see .botbar pointer-events below). */
.btabs + .botbar { padding-top: calc(52px + 56px); }
.btabs { position: absolute; left: 0; right: 0; z-index: 13; padding: 0 14px;
  bottom: calc(16px + var(--pk-nav-h) + 10px); pointer-events: none; }
.tbar { pointer-events: auto; display: flex; align-items: center; height: 54px; padding: 0 6px 0 0;
  border-radius: 999px; background: var(--pk-nav-bg); border: 1px solid var(--pk-nav-line);
  box-shadow: var(--pk-nav-shadow); --pk-track: var(--pk-nav-bg); }
.tstrip { position: relative; flex: 0 1 auto; min-width: 0; height: 100%; display: flex; align-items: center;
  border-radius: 999px; overflow: hidden; }
.btabs .tpills { flex: 1 1 auto; margin: 0; padding: 0 0 0 6px; height: 100%; align-items: center; gap: 2px;
  background: none; border-radius: 0; overflow: hidden; }
/* The tabs fill the bar and the rest go behind the chip (app.js fitTabStrip):
   no sideways scroll. The measuring row is drawn off screen with the same pills. */
.btabs .tpills.tfit-measure { position: absolute; left: 0; top: 0; width: max-content; padding: 0;
  visibility: hidden; pointer-events: none; overflow: visible; }
.btabs .tpill { height: 42px; padding: 0 14px; font-size: 14.5px; }
/* A tab that misses by a few points: smaller side space (app.js PILL_PAD_TIGHT). */
.btabs .tbar.tight .tpill { padding: 0 10px; }
.btabs .tpill.on { background: var(--pk-nav-on-bg); color: var(--pk-nav-on); }
.btabs .tpill:not(.on):active { background: var(--pk-nav-press); }
/* The chip sits right after the last tab; the free space goes before the Set aside pill. */
.btabs .sa-pill { position: relative; right: auto; flex: none; margin-left: auto; height: 42px;
  box-shadow: 0 4px 12px -5px rgba(46, 22, 92, .55); }
@media (prefers-color-scheme: dark) { .btabs .sa-pill { box-shadow: 0 4px 12px -5px rgba(0, 0, 0, .7); } }
/* Unread mail on a tab (N4): its unread count after the name (no dot any
   more); the name reads a touch darker. */
.tpill.has-unread { color: var(--pk-ink); }
.btabs .tpill.has-unread .tpill-c { opacity: 1; color: var(--pk-ink); font-weight: 600; }
/* Unread tab count reads as unread: the shared yellow unread dot (--pk-unread)
   beside the count, same signal as the rows, edge cues and group dropdown. The dot
   shows only on an unread tab (not the open one); the count keeps its ink colour. */
.tpill-un { display: inline-flex; align-items: center; gap: 5px; }
.tpill-dot { display: none; width: 7px; height: 7px; border-radius: 50%; background: var(--pk-unread);
  box-shadow: var(--pk-dot-lift); flex: 0 0 auto; }
.btabs .tpill.has-unread .tpill-dot { display: inline-block; }
/* The chip's unread count carries the same dot (it is not a .tpill). */
.btabs .tmore .tmore-un .tpill-dot { display: inline-block; }
.btabs .tmore:not(.on) .tmore-un .tpill-c { opacity: 1; color: var(--pk-ink); font-weight: 600; }

/* ---- unread-first tabs (N4) ----
   The strip shows Imbox, the row anchor and the tabs with unread mail (never
   Other); the rest fold into the chip, fixed at the strip's right end beside
   the Set aside pill (it does not scroll). The chip reads "More", "● Other",
   or the open tab it holds (selected ink). Colour and opacity only. */
.btabs .tmore { flex: none; margin-left: 4px; height: 42px; padding: 0 10px 0 14px; border: 0; border-radius: 999px;
  background: color-mix(in srgb, var(--pk-ink) 6%, var(--pk-nav-bg)); color: var(--pk-dim);
  font: inherit; font-size: 14.5px; font-weight: 600; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, color .15s ease; }
.btabs .tmore:active { background: var(--pk-nav-press); }
.btabs .tmore.on { background: var(--pk-indigo); color: #fff; }
.tmore-w, .tmore-chev, .tmore > .tmore-dot { flex: none; }
.tmore-held { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.tmore-name { min-width: 0; max-width: 7.5em; overflow: hidden; text-overflow: ellipsis; font-weight: 700; color: var(--pk-nav-on); }
.btabs .tmore.on .tmore-name { color: inherit; }
.tmore-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pk-unread); box-shadow: var(--pk-dot-lift); flex: none; }
.tmore-chev { opacity: .7; }

/* The More tabs sheet: 2px top corners, a grab handle, 56px rows with hair
   rules (no boxes), a faint check and the grey total; an info row; a Close pill. */
.tsh-ov { position: absolute; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center;
  background: color-mix(in srgb, #000 42%, transparent); animation: tsh-fade .16s ease; }
@keyframes tsh-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tsh-ov { animation: none; } }
.tsh-card { width: 100%; max-width: 520px; max-height: 86%; overflow-y: auto; overscroll-behavior: contain;
  background: var(--pk-screen); border-radius: 2px 2px 0 0; padding: 8px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 40px -14px rgba(0, 0, 0, .35);
  transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.tsh-ov { transition: background-color .22s ease; }
.tsh-card.drag { transition: none; }
.tsh-ov:has(.tsh-card.drag) { transition: none; }
@media (prefers-reduced-motion: reduce) { .tsh-card, .tsh-ov { transition: none; } }
.tsh-grab { width: 38px; height: 4px; border-radius: 999px; background: var(--pk-hair2); margin: 4px auto 16px; }
.tsh-t { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: var(--pk-ink); }
.tsh-sub { margin: 6px 0 8px; font-size: 15px; line-height: 1.4; color: var(--pk-dim); }
.tsh-rows { display: flex; flex-direction: column; }
.tsh-row { display: flex; align-items: center; gap: 10px; width: 100%; height: 56px; padding: 0; border: 0;
  border-bottom: 1px solid var(--pk-hair); background: none; color: var(--pk-ink); font: inherit; font-size: 18px;
  text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .12s ease; }
.tsh-row:active { background: var(--pk-soft); }
.tsh-row:focus, .tsh-close:focus, .btabs .tmore:focus { outline: none; }
.tsh-row:focus-visible { background: var(--pk-soft); }
.tsh-close:focus-visible, .btabs .tmore:focus-visible { box-shadow: 0 0 0 2px var(--pk-indigo); }
.tsh-n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsh-row:not(.unread) .tsh-n { color: var(--pk-dim); }
.tsh-row.unread .tsh-n { font-weight: 600; }
.tsh-row.on .tsh-n { font-weight: 600; color: var(--pk-nav-on); }
.tsh-ck { display: inline-flex; color: var(--pk-faint); opacity: .55; }
.tsh-c { color: var(--pk-faint); font-size: 15px; font-variant-numeric: tabular-nums; min-width: 24px; text-align: right; }
.tsh-un { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; color: var(--pk-ink); }
.tsh-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pk-unread); box-shadow: var(--pk-dot-lift); }
.tsh-info { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--pk-hair); }
.tsh-cog { display: inline-flex; margin-top: 2px; color: var(--pk-indigo-ink); }
.tsh-it { display: flex; flex-direction: column; gap: 2px; }
.tsh-it b { font-size: 16px; font-weight: 600; color: var(--pk-indigo-ink); }
.tsh-it span { font-size: 14px; color: var(--pk-dim); }
.tsh-foot { display: flex; justify-content: center; padding-top: 20px; }
.tsh-close { height: 46px; padding: 0 34px; border: 0; border-radius: 999px; background: var(--pk-btn-bg); color: var(--pk-ink);
  font: inherit; font-size: 16px; font-weight: 600; box-shadow: var(--pk-btn-shadow); cursor: pointer; }

/* The top of the list: the open tab's name and its conversation total. */
.ltab-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 2px 10px;
  border-bottom: 1px solid var(--pk-hair); }
.ltab-t { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--pk-ink); }
.ltab-c { flex: none; font-size: 14px; color: var(--pk-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Edge cues: a tab with new mail is scrolled out of the strip on that side. A
   soft fade in the capsule's colour with a faint blue wash and a chevron (no
   dot, owner 2026-11-20); the strip is flush with the capsule's left edge so the
   left fade reaches it; a tap opens that tab. app.js toggles .show (IntersectionObserver). */
.tedge { position: absolute; top: 0; bottom: 0; z-index: 2; width: 60px; display: flex; align-items: center; gap: 1px;
  border: 0; padding: 0 6px; margin: 0; font: inherit; color: #3b82f6; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .18s ease; -webkit-tap-highlight-color: transparent; }
.tedge.l { left: 0; justify-content: flex-start;
  background: linear-gradient(to right, color-mix(in srgb, #3b82f6 10%, var(--pk-nav-bg)) 0, var(--pk-nav-bg) 40%, color-mix(in srgb, var(--pk-nav-bg) 70%, transparent) 70%, transparent); }
.tedge.r { right: 0; justify-content: flex-end;
  background: linear-gradient(to left, color-mix(in srgb, #3b82f6 10%, var(--pk-nav-bg)) 0, var(--pk-nav-bg) 40%, color-mix(in srgb, var(--pk-nav-bg) 70%, transparent) 70%, transparent); }
.tedge.show { opacity: 1; pointer-events: auto; }
.tedge:active { filter: brightness(.94); }
.newchip-dot { flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--pk-unread); box-shadow: var(--pk-dot-lift); }

/* The "N new in X" chip: one at a time, over the strip's centre; it slides up,
   stays a few seconds and fades (app.js showNewChip / dropNewChip). */
.newchip-slot { position: relative; height: 0; display: flex; justify-content: center; pointer-events: none; }
.newchip { position: absolute; bottom: 10px; pointer-events: auto; display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 10px 0 13px; border-radius: 999px; border: 1px solid var(--pk-nav-line);
  background: var(--pk-nav-bg); color: var(--pk-ink); font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--pk-nav-shadow); cursor: pointer; animation: pk-chip-in .26s cubic-bezier(.2, .8, .2, 1);
  transition: opacity .2s ease, transform .2s ease; -webkit-tap-highlight-color: transparent; }
.newchip svg { color: var(--pk-faint); }
.newchip:active { transform: scale(.97); }
.newchip.out { opacity: 0; transform: translateY(6px); }
@keyframes pk-chip-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

/* Hide on scroll: a scroll down slides the strip and the pill (with the Ask
   spark) below the screen, a small scroll up brings them back (render.js
   barsStep). Transform only: no layout, no repaint of the list. */
.botbar, .btabs { transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
#app.bars-hidden > .botbar { transform: translateY(calc(100% + 12px)); }
#app.bars-hidden > .btabs { transform: translateY(calc(100% + 16px + var(--pk-nav-h) + 10px + 24px)); }
#app.peek:not(.par-anim) > .botbar, #app.peek:not(.par-anim) > .btabs { transition: none; }
@media (prefers-reduced-motion: reduce) { .botbar, .btabs { transition: none; } .newchip { animation: none; } }
/* The strip follows the bottom bar through the open-mail cover and the swipe back. */
#app.sheet-cover > .btabs { visibility: hidden; }
#app.peek > .btabs { visibility: visible; transform: translateX(var(--pk-par, 0%)); }
#app.par-anim > .btabs { transition: transform .18s ease; }
#app.entering > .btabs { visibility: visible; animation: pk-par-in .2s cubic-bezier(.2, .8, .2, 1) both; }
@media (prefers-reduced-motion: reduce) { #app.entering > .btabs { animation: none; } }
/* Bars slid away stay away while a mail slides in or is swiped back. */
#app.bars-hidden.peek > .btabs, #app.bars-hidden.entering > .btabs,
#app.bars-hidden.peek > .botbar, #app.bars-hidden.entering > .botbar { visibility: hidden; }
.btabs, .tbar { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* The bottom bar's box is taller than its pill (the frosted fade above it).
   Only the pill and the spark take taps: the rest lets them through, so the
   bar never covers the last rows of the More sheet (it rides over the sheet's
   scrim, z-index 31) or of the list. */
.botbar { pointer-events: none; }
.botbar > * { pointer-events: auto; }

/* ---- the group switcher: a dropdown menu under the header pill ----
   The pill stays plain (name + down arrow); a tap opens a card with the groups
   (render.js groupMenu, app.js openGroups / placeGroupMenu sets left / top).
   The clear layer under it (.gsw-ov) takes every tap outside the card, so a
   list row or the bottom bar under the menu never gets the tap. */
.acct-chev { display: inline-block; transition: transform .16s ease; }
.acct.open .acct-chev { transform: rotate(180deg); }
.acct.open { border-color: var(--pk-hair2); }
.hdr-side > * { flex: none; }
.gsw-ov { position: absolute; inset: 0; z-index: 26; background: transparent;
  touch-action: none; -webkit-tap-highlight-color: transparent; }
.gsw-card { position: absolute; left: 50%; top: calc(var(--pk-safe-top) + 60px);
  width: min(280px, calc(100% - 32px)); max-height: min(60vh, 420px); overflow-y: auto; overscroll-behavior: contain;
  padding: 5px; background: var(--pk-nav-bg); border: 1px solid var(--pk-nav-line); border-radius: 4px;
  box-shadow: var(--pk-nav-shadow); transform-origin: top center; touch-action: pan-y;
  animation: pk-gsw-in .16s cubic-bezier(.2, .8, .2, 1); }
@keyframes pk-gsw-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gsw-card { animation: none; } .acct-chev { transition: none; } }
.gsw-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 46px; padding: 0 12px 0 8px;
  border: 0; border-radius: 4px; background: none; color: var(--pk-ink); font: inherit; font-size: 15.5px;
  text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gsw-row + .gsw-row { margin-top: 1px; }
.gsw-row:active, .gsw-row:focus-visible { background: var(--pk-nav-press); outline: none; }
.gsw-ck { flex: none; width: 20px; display: inline-flex; justify-content: center; color: var(--pk-nav-on); }
.gsw-n { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.gsw-row.on .gsw-n { font-weight: 650; }
.gsw-un { flex: none; display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; }
.gsw-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pk-unread); box-shadow: var(--pk-dot-lift); }
.gsw-c { font-size: 13px; font-weight: 650; color: var(--pk-ink); font-variant-numeric: tabular-nums; }

/* ---- the calendar options menu: the Calendar tab's "…" (render.js
   calOptionsMenu, app.js openCalOpts / placeCalOpts sets left / top) ----
   The group switcher's card and rows (.gsw-*), anchored under the button at
   the right: Meet, Calendars, Today, a line, then 1 day / 3 days. */
.calo-card { width: min(232px, calc(100% - 32px)); transform-origin: top right; }
.calo-ic { flex: none; width: 24px; display: inline-flex; justify-content: center; color: var(--pk-dim); }
.calo-row .gsw-n { font-weight: 550; }
.calo-row.on .calo-ic, .calo-row.on .gsw-n { color: var(--pk-nav-on); }
.calo-row .gsw-ck { margin-left: auto; }
.calo-on { flex: none; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: var(--pk-indigo-ink); background: color-mix(in srgb, var(--pk-indigo) 13%, transparent); }
.calo-sep { height: 1px; margin: 4px 8px; background: var(--pk-nav-line); }

/* ── Tab view pill switch (render.js viewSwitchRow) ─────────────────────────
   THE List | <view> pill segmented control: the Feed's List | Edition and
   Paper Trail's List | Receipts (one class family). Pocket form rules: pill
   buttons with the app shadow. */
.vsw { display: flex; justify-content: center; margin: 12px 0 12px; } /* b241: clear of the header */
/* 36px like the other pills on the screen (owner, 2026-11-22: "too tall,
   align with the height of other pill buttons"; the tab pills are 34px). */
.vsw-segs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; height: 36px; box-sizing: border-box;
  background: color-mix(in srgb, var(--pk-indigo) 10%, var(--pk-screen, #f6f5f8)); }
.vsw-seg { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 15px; border-radius: 999px; border: 0;
  background: transparent; color: var(--pk-dim); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.vsw-seg.on { background: var(--pk-btn-bg); color: var(--pk-indigo); font-weight: 600; box-shadow: var(--pk-btn-shadow); }
.vsw-seg svg { width: 15px; height: 15px; }

/* ── Paper Trail "Receipts" (node R2 + N3, render.js receiptsView) ────────
   Owner (b184): "Even on mobile try to avoid bounded bordered box." No card
   boxes, no card shadows on content: a double-rule masthead, the stats as
   ruled rows, full-width receipt rows with hair rules between them, ruled
   side lists. Typography and spacing carry the hierarchy. Pills and buttons
   stay pills (Pocket form rules); large type (15–16px rows). */
.rc { padding: 4px 4px 12px; }
.rc-head { padding: 2px 0 10px; border-bottom: 2px solid var(--pk-ink); position: relative; margin-bottom: 5px; }
.rc-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; border-bottom: 1px solid var(--pk-ink); }
.rc-hk { font-family: var(--pk-mono); font-size: 11px; letter-spacing: .14em; color: var(--pk-dim); }
.rc-hrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.rc-month { flex: 1; min-width: 0; margin: 0; font-size: 30px; line-height: 1.15; font-weight: 700;
  letter-spacing: -.02em; color: var(--pk-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-nav { display: inline-flex; gap: 8px; flex: 0 0 auto; }
.rc-arrow { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--pk-edge); background: var(--pk-btn-bg);
  color: var(--pk-indigo); box-shadow: var(--pk-btn-shadow); font-size: 20px; line-height: 1; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.rc-arrow:disabled { color: var(--pk-faint); box-shadow: none; cursor: default; }
.rc-stats { display: flex; flex-direction: column; margin: 6px 0 12px; }
.rc-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--pk-hair); }
.rc-clabel { font-size: 14px; color: var(--pk-dim); }
.rc-cvals { display: flex; flex-wrap: wrap; column-gap: 14px; }
.rc-cval { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--pk-ink); font-variant-numeric: tabular-nums; }
.rc-csub { font-size: 14px; color: var(--pk-dim); }
.rc-csub.urgent { color: #b45309; }
.rc-filter { display: flex; flex-direction: column; gap: 2px; padding-bottom: 6px; border-bottom: 1px solid var(--pk-ink); }
.rc-count { font-size: 13px; color: var(--pk-faint); padding: 0 2px 2px; }
.rc-pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.rc-pills::-webkit-scrollbar { display: none; }
.rc-pill { flex: 0 0 auto; height: 36px; padding: 0 14px; border-radius: 999px; border: 0; font: inherit; font-size: 15px;
  color: var(--pk-dim); background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rc-pill b { font-weight: 600; font-variant-numeric: tabular-nums; margin-left: 2px; }
.rc-pill.on { color: var(--pk-indigo-ink); background: color-mix(in srgb, var(--pk-indigo) 13%, transparent); font-weight: 600; }
.rc-note { font-size: 14px; line-height: 1.45; color: var(--pk-dim); padding: 10px 0; border-bottom: 1px solid var(--pk-hair); }
.rc-list { display: flex; flex-direction: column; }
.rc-row { display: flex; flex-direction: column; gap: 5px; padding: 13px 0; border-bottom: 1px solid var(--pk-hair); }
.rc-r1, .rc-r2 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rc-vendor { min-width: 0; font-size: 16px; font-weight: 600; color: var(--pk-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-amt { flex: 0 0 auto; font-size: 16px; font-weight: 600; color: var(--pk-ink); font-variant-numeric: tabular-nums; }
.rc-amt.unknown { color: var(--pk-faint); font-weight: 400; }
.rc-r2 > span:first-child { min-width: 0; font-size: 14px; color: var(--pk-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-chip { flex: 0 0 auto; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.rc-chip.paid { background: #e8f3ec; color: #1f6b3a; }
.rc-chip.due { background: #fdf0e6; color: #9a3412; }
.rc-chip.ship { background: #e8eef9; color: #1e4a8a; }
.rc-chip.done { background: #eef0f3; color: #3f4650; }
.rc-chip.muted { background: var(--pk-hair); color: var(--pk-dim); }
@media (prefers-color-scheme: dark) {
  .rc-chip.paid { background: rgba(166, 227, 161, .14); color: #a6e3a1; }
  .rc-chip.due { background: rgba(250, 179, 135, .14); color: #fab387; }
  .rc-chip.ship { background: rgba(137, 180, 250, .14); color: #89b4fa; }
  .rc-chip.done { background: rgba(205, 214, 244, .08); color: #bac2de; }
  .rc-csub.urgent { color: #fab387; }
}
.rc-r3 { display: flex; gap: 8px; margin-top: 3px; }
.rc-act { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--pk-edge); background: var(--pk-btn-bg); color: var(--pk-indigo); box-shadow: var(--pk-btn-shadow);
  font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* The side lists (N3): ruled, no box — a 2px rule over a mono heading. */
.rc-side { margin-top: 22px; border-top: 2px solid var(--pk-ink); }
.rc-shead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0 3px;
  font-family: var(--pk-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--pk-ink); }
.rc-shead span + span { font-family: inherit; letter-spacing: .04em; text-transform: none; color: var(--pk-faint); font-size: 12.5px; }
.rc-srow { display: flex; flex-direction: column; gap: 3px; padding: 11px 0; border-bottom: 1px solid var(--pk-hair); }
/* A receipt row that opens its email: the whole row is the tap target. */
.rc-row.is-openable, .rc-srow.is-openable { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rc-row.is-openable:active, .rc-srow.is-openable:active { background: var(--pk-soft); }
.rc-link { flex: 0 0 auto; border: 0; background: none; padding: 0; color: var(--pk-indigo); font: inherit; font-size: 14px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rc-morewrap { display: flex; justify-content: center; margin-top: 12px; }
.rc-foot { display: flex; gap: 10px; margin: 22px 0 8px; }
.rc-btn { flex: 1; height: 48px; border-radius: 999px; border: 1.5px solid var(--pk-edge); background: var(--pk-btn-bg);
  color: var(--pk-indigo); box-shadow: var(--pk-btn-shadow); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.rc-morewrap .rc-btn { flex: 0 0 auto; padding: 0 22px; }
.rc-btn.primary { border: 0; background: var(--pk-indigo); color: #fff; }
.rc-btn:disabled { opacity: .5; box-shadow: none; cursor: default; }
.rc-fine { margin: 6px 2px 0; font-size: 13px; line-height: 1.45; color: var(--pk-faint); }

/* ── Feed "Today's edition" (node E1 + N2 magazine, render.js editionView) ─
   One column, no boxes (owner: "Even on mobile try to avoid bounded bordered
   box"): a double-rule masthead, ONE big lead story, then a dense headline
   list with hair rules. Mono kickers, large type. Pill buttons keep the app
   shadow. No motion. */
.ed { padding: 4px 4px 12px; }
.ed-head { border-bottom: 2px solid var(--pk-ink); padding: 4px 0 10px; margin-bottom: 18px; position: relative; }
.ed-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; border-bottom: 1px solid var(--pk-ink); }
.ed-hk { font-family: var(--pk-mono); font-size: 11px; letter-spacing: .14em; color: var(--pk-dim); }
.ed-hrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ed-day { margin: 4px 0 2px; font-size: 34px; line-height: 1.12; font-weight: 700; letter-spacing: -.02em; color: var(--pk-ink); }
.ed-sub { font-size: 15px; color: var(--pk-dim); }
.ed-kick { font-family: var(--pk-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 500; color: var(--pk-indigo); }
.ed-time { font-family: var(--pk-mono); font-size: 11px; letter-spacing: .08em; color: var(--pk-faint); white-space: nowrap; }
/* The lead story. */
.ed-lead { display: flex; flex-direction: column; gap: 9px; padding-bottom: 18px; }
.ed-lk { font-family: var(--pk-mono); font-size: 11px; letter-spacing: .12em; }
.ed-lwhy { color: var(--pk-faint); }
.ed-lt { margin: 0; font-size: 28px; line-height: 1.13; font-weight: 700; letter-spacing: -.02em; color: var(--pk-ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.ed-lt .udot { display: inline-block; margin: 0 9px 0 0; vertical-align: 5px; }
.ed-lead.read .ed-lt { color: var(--pk-dim); }
.ed-limg { margin: 2px 0 0; border-radius: 2px; overflow: hidden; }
.ed-limg img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.ed-limg.pending { height: 150px; background: color-mix(in srgb, var(--pk-ink) 6%, transparent); }
.ed-dek { margin: 2px 0 0; font-size: 16.5px; line-height: 1.5; font-weight: 500; color: var(--pk-ink); }
.ed-lp { margin: 0; font-size: 16px; line-height: 1.55; color: var(--pk-dim); }
.ed-lmeta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.ed-cont { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid var(--pk-edge); background: var(--pk-btn-bg); color: var(--pk-indigo); box-shadow: var(--pk-btn-shadow);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* The headline list. */
.ed-more { border-top: 2px solid var(--pk-ink); }
.ed-mhead { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0 2px;
  font-family: var(--pk-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--pk-ink); }
.ed-mhead span + span { letter-spacing: .02em; text-transform: none; color: var(--pk-dim); font-size: 13px; }
.ed-row { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--pk-hair);
  cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ed-rk { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ed-rk .ed-kick { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-title { display: flex; gap: 8px; align-items: baseline; font-size: 17px; line-height: 1.35; font-weight: 600; color: var(--pk-ink); }
.ed-title .udot { margin-top: 0; align-self: center; flex: 0 0 auto; }
.ed-row.read .ed-title { font-weight: 500; color: var(--pk-dim); }
.ed-line { font-size: 15px; line-height: 1.45; color: var(--pk-dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* AI on (node E2): "Today in short" (a ruled line, no box), the pending note. */
.ed-brief { margin: 0 0 18px; padding: 0 0 14px; border-bottom: 1px solid var(--pk-hair); }
.ed-bk { display: block; font-family: var(--pk-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--pk-indigo); margin-bottom: 4px; }
.ed-brief p { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 500; color: var(--pk-ink); }
/* A long unbreakable token (e.g. a Nextdoor tracking URL in an excerpt or
   headline) must wrap, never push the edition wider than the screen. */
.ed-title, .ed-line, .ed-dek, .ed-lp, .ed-lt, .ed-brief p, .ed-sub, .ed-day {
  overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.ed-wait { margin: 0 0 12px; font-size: 13px; color: var(--pk-dim); }
.ed-foot { display: flex; gap: 10px; margin: 22px 0 8px; }
/* Mark edition read: a compact pill in the masthead, under the counts (40px tall). */
.ed-mark { display: block; margin-top: 10px; height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--pk-indigo); color: #fff;
  font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: var(--pk-btn-shadow); cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.ed-mark:disabled { opacity: .45; box-shadow: none; cursor: default; }
.ed-list { height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--pk-edge); background: var(--pk-btn-bg);
  color: var(--pk-indigo); box-shadow: var(--pk-btn-shadow); font: inherit; font-size: 15px; cursor: pointer; }
.ed-err { font-size: 14px; color: var(--pk-dim); margin: 0 2px 12px; }
.ed-retry { margin-left: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--pk-edge); background: var(--pk-btn-bg); color: var(--pk-indigo); box-shadow: var(--pk-btn-shadow); font: inherit; font-size: 14px; cursor: pointer; }
/* The scrolling feed: older days under today, one compact block per day — a
   ruled day header (date, counts, a small Mark read pill), then the same
   headline rows. The footer: a spinner, Try again, or "No older issues". */
.ed-old { margin-top: 26px; border-top: 2px solid var(--pk-ink); }
.ed-ohead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0 8px; border-bottom: 1px solid var(--pk-hair); }
.ed-otext { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ed-oday { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--pk-ink); }
.ed-osub { font-size: 14px; color: var(--pk-dim); }
.ed-omark { flex: 0 0 auto; height: 36px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--pk-edge); background: var(--pk-btn-bg);
  color: var(--pk-indigo); box-shadow: var(--pk-btn-shadow); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.ed-omark:disabled { opacity: .45; box-shadow: none; cursor: default; }
.ed-ofoot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; min-height: 64px; padding: 12px 0;
  font-size: 14px; color: var(--pk-dim); text-align: center; }
.ed-ofoot.end { font-family: var(--pk-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--pk-faint); }

/* ==================================================================
   The Desk design layer (2026-11-26; mocks PocketHome, PocketInboxes,
   PocketThread, PocketLater, PocketSwipe). It comes last and wins over
   the older rules above: a white header and bottom nav on the neutral
   ground, hairlines, 4px corners, Figtree + Geist Mono, one accent.
   Every size below is the mock's own value.
   ================================================================== */
/* b231: the page reaches the screen bottom again; clear the home indicator. */
:root { --pk-nav-pad: calc(max(24px, env(safe-area-inset-bottom, 0px)) - 2px); } /* b237: 2px lower (owner) */
body { font-family: var(--pk-font); font-synthesis: none; line-height: normal; }
#app { background: var(--pk-screen); }
button { font-synthesis: none; }

/* ---- the header (Desk, an inbox, the calendar) ---- */
.ahead.dk-head { position: relative; top: auto; left: auto; right: auto; z-index: 10; flex: none;
  display: flex; flex-direction: column; gap: 10px; align-items: stretch; grid-template-columns: none;
  padding: calc(var(--pk-safe-top) + var(--pk-top-gap)) 16px 4px;
  background: var(--pk-surface); border-bottom: 1px solid var(--pk-hair); }
.dk-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: var(--pk-head-h); }
.dk-titles { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
/* b208: the date line was 11px/400 in --pk-dim, thin and soft on a phone screen.
   Now 12px/500 in --pk-ink2 with grayscale smoothing, so it reads crisp. */
.acct.dk-kick { font-family: var(--pk-mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; line-height: normal;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  color: var(--pk-ink2); background: none; border: 0; border-radius: 4px; padding: 0; margin: 0; box-shadow: none;
  gap: .6em; max-width: 100%; min-height: 0; }
.acct.dk-kick.open { border: 0; }
.dk-kick .acct-chev { color: var(--pk-dim); font-size: 11px; }
.dk-kick .acct-spin { width: 10px; height: 10px; }
.dk-kicker { font-family: var(--pk-mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--pk-ink2);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; white-space: nowrap; }
/* b208: the group switch is a chip after the date (more than one group). 4px corners,
   a hairline border, sans text, the accent dot and the ▾: it reads as a button. */
.dk-kick-row { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.acct.dk-kick.dk-grp { font: 600 13px/1 var(--pk-font); letter-spacing: 0; color: var(--pk-ink); min-width: 0;
  border: 1px solid var(--pk-hair2); border-radius: 4px; padding: 5px 8px; min-height: 28px; gap: 6px;
  background: var(--pk-surface); -webkit-font-smoothing: antialiased; }
.acct.dk-kick.dk-grp:active, .acct.dk-kick.dk-grp.open { background: var(--pk-press); border: 1px solid var(--pk-hair2); }
.dk-grp .acct-chev { color: var(--pk-ink2); font-size: 10px; }
.dk-grp-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--pk-indigo); }
.dk-title { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.01em; line-height: normal; color: var(--pk-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dk-side { display: flex; align-items: center; gap: 4px; flex: none; }
/* b212: the menu button opens the side menu, at the left of the header row. */
.dk-top > .dk-menu { flex: none; min-width: 40px; padding: 0 6px; margin-left: -8px; color: var(--pk-ink); }
.dk-top > .dk-titles { flex: 1; }
.dk-title.dk-title-row { font-size: 20px; overflow: visible; align-self: stretch; min-width: 0; }
.acct.dk-tmenu { font: 700 20px/1.2 var(--pk-font); letter-spacing: -.01em; color: var(--pk-ink); background: none; border: 0;
  border-radius: 4px; box-shadow: none; padding: 4px 6px; margin-left: -6px; min-height: 40px; gap: 6px; max-width: 100%; }
.acct.dk-tmenu:active { background: var(--pk-press); }
.dk-tmenu .acct-chev { color: var(--pk-ink2); font-size: 12px; }
.dk-menu .hdr-off { top: 8px; right: 6px; border-color: var(--pk-surface); }
.dk-av { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; flex: none;
  background: var(--pk-indigo); color: #FFFFFF; font: 600 13px/1 var(--pk-font);
  display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dk-av.sm { width: 30px; height: 30px; font-size: 12px; }
.dk-av .hdr-off { top: -1px; right: -1px; border-color: var(--pk-surface); }
.dk-ib { position: relative; min-width: 44px; height: 44px; border: 0; background: none; border-radius: 4px; padding: 0 8px;
  color: var(--pk-ink2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  font: 500 14px var(--pk-font); }
.dk-ib:active { background: var(--pk-press); }
.dk-ib.hdr-unread { min-width: 40px; padding: 0 6px; }
.dk-ib.hdr-unread.on { color: var(--pk-acc-text); border: 0; background: var(--pk-press); }
.dk-ib.hdr-unread.on .unr-dot { fill: var(--pk-unread); stroke: var(--pk-unread); }
.dk-ib .hdr-calopts-dot { top: 9px; right: 9px; }
/* b208: search and Ask Reeveon are icons beside the avatar (the search field is gone). */
/* b252: Ask Reeveon and Write (search moved to the floating groups at the bottom). */
.dk-side > .hdr-ask, .dk-side > .hdr-write { min-width: 40px; padding: 0 6px; }
.dk-side > .hdr-write { color: var(--pk-ink); }
.dk-av:focus-visible, .dk-ib:focus-visible, .acct.dk-kick:focus-visible,
.bnav-i:focus-visible, .dk-row:focus-visible, .dk-stack:focus-visible, .dk-more:focus-visible,
.dk-act:focus-visible, .dk-tbtn:focus-visible, .ib-item:focus-visible, .mi:focus-visible, .rd-ib:focus-visible,
.rd-bb:focus-visible, .rd-tool:focus-visible, .rd-who:focus-visible {
  outline: 2px solid var(--pk-indigo); outline-offset: -2px; }

/* ---- the scroll area under the header ---- */
.scroll.dk-scroll { padding: 0 0 84px; background: var(--pk-screen); }
#scroll.dk-scroll.calscroll { padding-bottom: 84px; } /* wins over #scroll.calscroll */
#scroll.dk-scroll > :first-child { margin-top: 0; }
#app > .ptr-text { top: calc(var(--pk-safe-top) + 78px); } /* b235: about 30px under the 48px header (owner: 140 sat too far down) */

/* ---- the Desk ---- */
.dk-sec { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px 6px; }
.dk-sec.tight { padding-top: 10px; }
.dk-lbl { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--pk-dim);
  display: flex; gap: 6px; align-items: baseline; }
.dk-cnt { font-size: 13px; font-weight: 600; color: var(--pk-ink2); letter-spacing: 0; }
.dk-rule { font-size: 12px; color: var(--pk-faint); }
.dk-list { position: relative; }
.dk-row { position: relative; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: start;
  padding: 12px 16px; border-bottom: 1px solid var(--pk-hair-sub); background: var(--pk-screen); color: var(--pk-ink);
  cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.dk-row:active { background: var(--pk-press); }
.dk-row.held, .mail.held { background: var(--pk-sel); }
.dk-list:has(+ .dk-more) > .dk-row:last-child { border-bottom: 0; }
.dk-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-top: 7px; background: transparent; }
.dk-row.unread .dk-dot { background: var(--pk-unread); box-shadow: var(--pk-dot-lift); }
.dk-main { display: block; min-width: 0; }
.dk-who { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-subj { display: flex; gap: 6px; align-items: center; min-width: 0; margin-top: 2px; font-size: 15px; }
.dk-st { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dk-snip { display: block; font-size: 14px; color: var(--pk-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.dk-time { font-family: var(--pk-mono); font-size: 12px; color: var(--pk-dim); padding-top: 2px; white-space: nowrap; }
.pk-pill { font-size: 12px; font-weight: 500; line-height: normal; border-radius: 999px; padding: 1px 8px; white-space: nowrap; flex: none; }
.p-acc { background: var(--pk-soft); color: var(--pk-indigo-ink); }
.p-alert { background: var(--pk-alert-bg); color: var(--pk-alert-ink); }
.p-n { background: var(--pk-pill-bg); color: var(--pk-pill-ink); }
/* Row actions: pills — the primary SOLID accent with white text, the others
   white with a hairline (the desktop Desk's row pills). */
.dk-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dk-act { font: 500 14px var(--pk-font); line-height: 20px; min-height: 32px; padding: 5px 14px; border-radius: 999px;
  border: 1px solid var(--pk-hair); background: var(--pk-surface); color: var(--pk-ink2); box-shadow: var(--pk-elev-1); cursor: pointer; }
.dk-act:active { background: var(--pk-press); }
.dk-act.pri { background: #24695A; border-color: #24695A; color: #FFFFFF; font-weight: 600; }
.dk-act.pri:active { background: #1B5246; border-color: #1B5246; }
.dk-act:disabled { opacity: .5; }
/* New senders (feature "desk-new-senders"): the first stack. Its head is a
   stack line; its rows are Desk rows with Allow (primary) / Block under the
   line; "N emails" is a quiet mono count after the subject. */
.dk-stack.dk-ns-head { border-bottom: 0; }
.dk-new.read { color: var(--pk-ink2); }
.dk-ns-n { font-family: var(--pk-mono); font-size: 12px; color: var(--pk-dim); white-space: nowrap; flex: none; }
.dk-ns-stack { border-bottom: 1px solid var(--pk-hair-sub); }
.dk-ns-stack .dk-list .dk-row:last-child { border-bottom: 0; }
/* Right now (feature "desk-right-now"): above Needs you, on a calm wash of
   the accent tint (never the amber: amber marks unread only), 4px corners.
   The right side: the code in mono, the countdown ("8 min", accent ink), or
   "Was this you?". Copy / Open link / Mute codes are pills under the line. */
.dk-now-band { margin: 0 8px; border-radius: 4px; background: color-mix(in srgb, var(--pk-soft) 55%, var(--pk-screen));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pk-indigo-ink) 12%, transparent); overflow: hidden; }
.dk-now-band .dk-row { background: transparent; padding-left: 12px; padding-right: 12px; }
.dk-now-band .dk-list > .dk-row:last-child { border-bottom: 0; }
.dk-now-band .dk-more { padding-left: 12px; }
.dk-now-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-top: 1px; }
.dk-now-code { font-family: var(--pk-mono); font-size: 16px; font-weight: 600; letter-spacing: .08em; color: var(--pk-ink);
  white-space: nowrap; }
.dk-now-count { font-family: var(--pk-mono); font-size: 12px; line-height: 16px; color: var(--pk-indigo-ink);
  background: color-mix(in srgb, var(--pk-soft) 80%, transparent); border-radius: 2px; padding: 1px 6px; white-space: nowrap; }
.dk-now-note { font-size: 13px; color: var(--pk-dim); white-space: nowrap; }
.dk-now-note.ask { color: var(--pk-ink2); font-weight: 600; }
.dk-more { display: block; font: 600 14px var(--pk-font); color: var(--pk-acc-text); background: none; border: 0; border-radius: 4px;
  text-align: left; padding: 6px 16px 10px; min-height: 36px; cursor: pointer; }
.dk-stack { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--pk-hair-sub);
  min-height: 61px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dk-stack:active { background: var(--pk-press); }
.dk-ico { color: var(--pk-dim); flex: none; }
.dk-stn { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dk-new { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--pk-indigo-ink); white-space: nowrap; }
.dk-new-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pk-unread); flex: none; }
.dk-fill { flex: 1; }
.dk-tbtn { font: 600 14px var(--pk-font); color: var(--pk-acc-text); background: none; border: 0; border-radius: 4px;
  padding: 6px 8px; min-height: 36px; cursor: pointer; flex: none; }
.dk-tbtn:active { background: var(--pk-press); }
.dk-empty, .dk-quiet { padding: 12px 16px 14px; font-size: 14px; color: var(--pk-faint); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dk-empty { padding-top: 28px; }

/* ---- the bottom nav: Desk · Later · Inboxes ---- */
.botbar.bnav { position: relative; left: auto; right: auto; bottom: auto; flex: none; z-index: 12; overflow: visible;
  display: flex; justify-content: space-around; align-items: flex-start;
  padding: 6px 8px var(--pk-nav-pad); background: var(--pk-nav-bg); border-top: 1px solid var(--pk-nav-line);
  pointer-events: auto; transform: none; transition: none; }
#app.bars-hidden > .botbar.bnav { transform: none; }
/* b210: 13px labels (were 11px): the bar has room, the header gave up its big title. */
.bnav-i { font: 500 13px var(--pk-font); line-height: normal; background: none; border: 0; padding: 1px 6px; margin: 0;
  color: var(--pk-nav-ic); display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 64px; min-height: 44px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bnav-i.on { color: var(--pk-nav-on); font-weight: 600; }
.bnav-i .dk-ico { color: inherit; }
/* Every tab icon in the same 22px box, so the three labels share one baseline
   (the Later stack icon is 22x20). */
.bnav-i > svg { flex: none; height: 22px; }
.bnav-i:active { opacity: .7; }

/* ---- the Inboxes sheet (mock PocketInboxes) ---- */
.ib-ov.tsh-ov { position: absolute; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center;
  background: var(--pk-scrim); padding: 0; }
.ib-card.tsh-card { width: 100%; max-width: none; height: min(620px, calc(100% - 64px)); max-height: none; overflow: hidden;
  display: flex; flex-direction: column; padding: 0; margin: 0;
  background: var(--pk-surface); border: 0; border-top: 1px solid var(--pk-hair); border-radius: 4px 4px 0 0;
  box-shadow: var(--pk-elev-3); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.ib-grab, .ib-grab.tsh-grab { width: 36px; height: 4px; border-radius: 2px; background: var(--pk-hair2); margin: 8px auto 4px; flex: none; }
.ib-top { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 20px 12px; border-bottom: 1px solid var(--pk-hair); }
.ib-t { margin: 0; font-size: 20px; font-weight: 700; color: var(--pk-ink); }
.ib-sub { font-size: 13px; color: var(--pk-faint); }
.ib-rows.tsh-rows { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 0 env(safe-area-inset-bottom, 0px); margin: 0; display: block; }
.ib-item { font: inherit; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--pk-hair-sub); border-radius: 0;
  display: flex; align-items: center; gap: 12px; padding: 14px 20px; min-height: 52px; color: var(--pk-ink); cursor: pointer; }
.ib-item:active { background: var(--pk-press); }
.ib-nm { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-item.on .ib-nm { color: var(--pk-acc-text); font-weight: 600; }
.ib-ct { font-family: var(--pk-mono); font-size: 12px; color: var(--pk-dim); }
.ib-new { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--pk-indigo-ink); white-space: nowrap; }
.ib-hd { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--pk-dim); padding: 16px 20px 6px; }
.ib-item.ib-set { color: var(--pk-acc-text); border-bottom: 0; }
.ib-item.ib-set .ib-nm { font-size: 15px; font-weight: 600; }

/* ---- the long-press row action sheet (mock PocketSwipe) ---- */
.ras-ov { position: absolute; inset: 0; z-index: 45; background: transparent; }
.ras-card { position: absolute; left: 0; right: 0; bottom: 0; background: var(--pk-surface); border-top: 1px solid var(--pk-hair);
  border-radius: 4px 4px 0 0; box-shadow: var(--pk-elev-3); padding: 8px 0 max(28px, env(safe-area-inset-bottom, 0px));
  animation: pk-ras-in .2s cubic-bezier(.2, .8, .2, 1); }
.ras-card .ib-grab { margin: 2px auto 8px; }
@keyframes pk-ras-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ras-card { animation: none; } }
.mi { font: inherit; width: 100%; text-align: left; background: none; border: 0; padding: 12px 16px; margin: 0;
  font-size: 15px; color: var(--pk-ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; }
.mi:active { background: var(--pk-press); }
.mi.pri { color: var(--pk-acc-text); font-weight: 600; }
.mi.danger { color: var(--pk-danger); }
.mi-k { font-family: var(--pk-mono); font-size: 11px; font-weight: 400; color: var(--pk-dim); white-space: nowrap; }

/* ---- row swipes: right = Done, left = Later ---- */
.swipe-hint { position: absolute; width: 0; z-index: 0; display: flex; align-items: center; gap: 8px; overflow: hidden;
  padding: 0 20px; font: 600 14px var(--pk-font); color: #FFFFFF; white-space: nowrap; box-sizing: border-box; }
.swipe-hint.done { background: var(--pk-indigo); justify-content: flex-start; color: #FFFFFF; }
/* Mark read on a Desk stack row (b268): the Done strip's colour and its side,
   with the read icon and the word (owner 2026-11-30: the strip was white). */
.swipe-hint.read { background: var(--pk-indigo); justify-content: flex-start; color: #FFFFFF; padding-left: 20px; }
.swipe-hint.read.armed { filter: brightness(1.08); }
.swipe-hint.later { background: var(--pk-later); justify-content: flex-end; color: #FFFFFF; }
.swipe-hint.trash { background: var(--pk-danger); justify-content: flex-end; color: #FFFFFF; padding-right: 20px; }
.swipe-hint.done.armed, .swipe-hint.later.armed, .swipe-hint.trash.armed { filter: brightness(1.08); }
.swipe-hint.none { background: transparent; }
.swipe-hint svg { width: auto; height: auto; }
.swipe-hint.unpile { background: var(--pk-later); color: #FFFFFF; padding-right: 20px; }
.dk-row.swiping, .mail.swiping { z-index: 1; }

/* ---- inbox list rows: the Desk row grammar ---- */
.mlist { margin: 0; }
.mail { position: relative; display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--pk-hair-sub);
  background: var(--pk-screen); border-radius: 0; color: var(--pk-ink); }
.mail::before, .mail:first-of-type::before { display: none; }
.mail.tappable { border-radius: 0; }
.mail.tappable:active { background: var(--pk-press); }
.mail .udot { width: 7px; height: 7px; margin-top: 7px; flex: 0 0 7px; background: var(--pk-unread); box-shadow: var(--pk-dot-lift); }
.mail.read .udot { visibility: hidden; }
.mail .mb { min-width: 0; flex: 1; }
.mail .mtop { display: flex; align-items: baseline; gap: 8px; }
.mail .msend { font-size: 15px; font-weight: 600; color: var(--pk-ink); }
.mail.read .msend { font-weight: 500; color: var(--pk-ink2); }
.mail .mtime { margin-left: auto; font-family: var(--pk-mono); font-size: 12px; color: var(--pk-dim); }
.mail .msubj { font-size: 15px; font-weight: 400; color: var(--pk-ink); margin-top: 2px; line-height: normal;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; -webkit-line-clamp: unset; }
.mail.read .msubj { color: var(--pk-ink2); }
.mail .mprev { font-size: 14px; color: var(--pk-faint); margin-top: 2px; line-height: normal;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; -webkit-line-clamp: unset; }
.mail .mcount { font-family: var(--pk-mono); font-size: 11px; color: var(--pk-dim); background: none; padding: 0; }
.lmore { font-size: 13px; color: var(--pk-faint); padding: 12px 16px; }
.empty { color: var(--pk-faint); font-size: 14px; padding: 24px 16px; }

/* ---- the More (account) sheet and the other bottom sheets ---- */
.cc-ov { background: var(--pk-scrim); }
#app.more-open > .botbar { z-index: 12; }
.more-ov { padding-bottom: 0; align-items: flex-end; }
.cc-card { background: var(--pk-surface); border-radius: 4px 4px 0 0; box-shadow: var(--pk-elev-3); border-top: 1px solid var(--pk-hair); }
.more-card { width: 100%; max-width: none; padding: 0 0 max(20px, env(safe-area-inset-bottom, 0px)); }
.more-card .ib-grab { margin: 8px auto 6px; }
.mo-acct { display: flex; align-items: center; gap: 12px; padding: 8px 16px 12px; border-bottom: 1px solid var(--pk-hair); margin-bottom: 4px; }
.mo-id { display: flex; flex-direction: column; min-width: 0; font-size: 13px; color: var(--pk-faint); }
.mo-id b { font-size: 15px; font-weight: 600; color: var(--pk-ink); }
.mo-id span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* b211: the side menu's top (render.js drawerAccount). */
/* b219: the place list (render.js drawerNav), like the desktop left rail. */
.dw-nav { display: flex; flex-direction: column; margin: 4px 0 12px; border-bottom: 1px solid var(--pk-hair); padding-bottom: 6px; }
.dw-nav .dw-go { margin: 0; border-bottom: 0; min-height: 46px; font-weight: 500; }
.dw-nav .dw-go svg { color: var(--pk-ink2); }
.dw-nav .dw-go.on { font-weight: 650; color: var(--pk-acc-text); }
.dw-nav .dw-go.on svg { color: var(--pk-acc-text); }
/* b217: Calendar at the top of the side menu. */
.dw-go { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 2px; margin: 4px 0 10px;
  border: 0; border-bottom: 1px solid var(--pk-hair); background: none; color: var(--pk-ink); font: 600 16px var(--pk-font); text-align: left; cursor: pointer; }
.dw-go:active { background: var(--pk-press); }
.dw-go svg { color: var(--pk-acc-text); flex: none; }
/* b217: the Desk's Next line (the next event today), above Right now. */
.dk-next { width: calc(100% - 32px); margin: 12px 16px 2px; display: flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 8px 12px; border: 1px solid var(--pk-hair2); border-radius: 4px; background: var(--pk-surface); color: var(--pk-ink);
  font: 500 14px var(--pk-font); text-align: left; cursor: pointer; }
.dk-next:active { background: var(--pk-press); }
.dk-next-k { flex: none; font: 600 11px var(--pk-font); letter-spacing: .07em; text-transform: uppercase; color: var(--pk-acc-text); }
.dk-next-t { flex: none; font-family: var(--pk-mono); font-size: 12px; color: var(--pk-ink2); }
.dk-next-n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.dk-next svg { flex: none; color: var(--pk-dim); }
.mo-acct.dw-acct { padding: 4px 0 14px; margin-bottom: 0; }
.dw-btn.dw-refresh { margin-top: 12px; }
.dw-grp { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px; border: 0;
  border-bottom: 1px solid var(--pk-hair); background: none; color: var(--pk-ink); font: 500 15px var(--pk-font); text-align: left; cursor: pointer; }
.dw-grp:active { background: var(--pk-press); }
.dw-grp.on { font-weight: 600; }
.dw-grp-n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-grp-on { font-size: 12px; color: var(--pk-dim); }
.cc-item { font: 500 15px var(--pk-font); color: var(--pk-ink); border-radius: 0; padding: 12px 16px; gap: 14px; }
.cc-item:active { background: var(--pk-press); }
.cc-item.off { color: var(--pk-dim); }
.cc-hd { font-size: 12px; font-weight: 600; letter-spacing: .07em; color: var(--pk-dim); padding: 14px 16px 6px; }
.dw-mcount { font-family: var(--pk-mono); font-size: 12px; color: var(--pk-dim); background: none; }

/* ---- the thread (mock PocketThread) ---- */
.sheet.reader, .sheet.reader .sheet-card { background: var(--pk-screen); }
.sheet.reader .rd-topbar { position: relative; top: auto; left: auto; right: auto; z-index: 5; flex: none;
  display: flex; flex-direction: column; align-items: stretch; gap: 6px;
  padding: calc(var(--pk-safe-top) + var(--pk-top-gap)) 8px 12px;
  background: var(--pk-surface); border-bottom: 1px solid var(--pk-hair); }
.sheet.reader .rd-topbar::before { display: none; }
.rd-tb-row { display: flex; align-items: center; justify-content: space-between; }
.rd-tb-end { display: flex; gap: 2px; }
.rd-ib { width: 44px; height: 44px; border: 0; background: none; border-radius: 4px; padding: 0; margin: 0;
  color: var(--pk-ink2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rd-ib:active { background: var(--pk-press); }
.rd-tb-main { padding: 0 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sheet.reader .rd-title { margin: 0; padding: 0; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--pk-ink);
  -webkit-user-select: text; user-select: text; }
.rd-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--pk-dim); }
.rd-who { font: 600 14px var(--pk-font); color: var(--pk-ink); background: none; border: 0; padding: 0; cursor: pointer; }
.rd-tools { display: flex; gap: 4px; margin-left: -8px; }
.rd-tool { font: 500 14px var(--pk-font); background: none; border: 0; color: var(--pk-ink2); padding: 6px 8px; border-radius: 4px;
  min-height: 40px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.rd-tool:active { background: var(--pk-press); }
.rd-ai-ic { color: var(--pk-ai-ink); flex: none; }
.sheet.reader .reader-body { padding: 0 0 12px; flex: 1 1 0; min-height: 0; }
.sheet.reader #rd-extra:not(:empty) { padding: 12px 16px 0; }
.sheet.reader .rd-ptr-text { top: calc(var(--pk-safe-top) + 162px); } /* b222: the top bar is 6px shorter */
.sheet.reader .rd-thread { display: flex; flex-direction: column; }
/* An earlier message: a flat row (who · snippet | time). */
.sheet.reader .rd-msg.closed { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px;
  grid-template-areas: "who when" "snip snip"; padding: 12px 16px; margin: 0; width: 100%;
  border: 0; border-bottom: 1px solid var(--pk-hair-sub); border-radius: 0; background: none; text-align: left; color: var(--pk-ink); }
.sheet.reader .rd-msg.closed:active { background: var(--pk-press); }
.sheet.reader .rd-msg.closed .rd-m-l1 { display: contents; }
.sheet.reader .rd-msg.closed .rd-m-who { grid-area: who; font-size: 14px; font-weight: 600; color: var(--pk-ink); }
.sheet.reader .rd-msg.closed .rd-m-when { grid-area: when; }
.sheet.reader .rd-msg.closed .rd-m-snip { grid-area: snip; margin-top: 0; font-size: 14px; color: var(--pk-faint); }
.sheet.reader .rd-m-when { font-family: var(--pk-mono); font-size: 12px; color: var(--pk-dim); }
/* The open message: a white card, 4px corners, elev-1. */
.sheet.reader .rd-msg.open { margin: 12px 12px 0; padding: 14px 16px; background: var(--pk-surface); border: 0; border-radius: 4px;
  box-shadow: var(--pk-elev-1); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sheet.reader .rd-msg.open.sel { border-top: 0; margin-top: 12px; }
.sheet.reader .rd-msg.open.flat { border-bottom: 0; }
.reader-body .rd-msg.open > * { margin-left: 0; margin-right: 0; }
.reader-body .rd-msg.open > .rd-mbody:has(.rd-frame) { margin-left: -16px; margin-right: -16px; }
.sheet.reader .rd-m-head { display: flex; align-items: baseline; gap: 8px; margin: 0; min-height: 0; }
.sheet.reader .rd-m-head .rd-m-who { font-size: 14px; font-weight: 600; color: var(--pk-ink); }
.sheet.reader .rd-m-head .rd-m-dots { height: 22px; width: 32px; align-self: center; order: 3; }
.sheet.reader .rd-m-head .rd-m-when { order: 2; }
.sheet.reader .rd-rc { font-size: 14px; color: var(--pk-dim); margin: -6px 0 0; padding: 0; background: none; border: 0; text-align: left; }
.sheet.reader .rd-text { font-size: 16px; line-height: 1.55; color: var(--pk-ink); }
.sheet.reader .rd-atts, .sheet.reader .rd-dls { margin: 4px 0 0; }
.sheet.reader .rd-att { border-radius: 4px; border: 1px solid var(--pk-hair); background: var(--pk-surface); }
.rd-m-act { border-radius: 999px; border: 1px solid var(--pk-hair); background: var(--pk-surface); color: var(--pk-ink2); font: 500 14px var(--pk-font); padding: 5px 14px; }

/* The bottom bar: Reply · Done · Remind me · Later (text buttons). */
.sheet.reader .rd-foot { position: relative; left: auto; right: auto; bottom: auto; z-index: 5; flex: none;
  display: block; padding: 0; background: var(--pk-surface); border-top: 1px solid var(--pk-hair); }
.sheet.reader .rd-foot:focus-within, .sheet.reader .rd-foot.active { padding: 0; }
.sheet.reader .rd-cmds { display: flex; justify-content: space-between; align-items: center; gap: 0;
  padding: 6px 12px var(--pk-nav-pad); background: none; border: 0; border-radius: 0; box-shadow: none; }
.rd-bb { font: 500 14px var(--pk-font); background: none; border: 0; color: var(--pk-ink2); padding: 6px 8px; border-radius: 4px;
  min-height: 40px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rd-bb:active { background: var(--pk-press); }
.rd-bb.pri { color: var(--pk-acc-text); font-weight: 600; }
.rd-bb.sa-on { color: var(--pk-acc-text); }
/* The inline reply (kept from the old Pocket; the desktop reader's reply
   composer): hidden behind Reply, then a white 4px card with a hairline in
   the bar's place — the To line and Expand, the field, Attach · Cancel · Send. */
.sheet.reader .rd-foot:not(.active) .rd-reply { display: none; }
.sheet.reader .rd-foot.active .rd-cmds { display: none; }
.sheet.reader .rd-foot.active { padding: 8px 12px var(--pk-nav-pad); background: var(--pk-screen); }
.sheet.reader .rd-foot.active:focus-within { padding-bottom: 8px; }
.sheet.reader .rd-foot.active .rd-reply { display: flex; flex-direction: column; align-items: stretch; gap: 0;
  padding: 10px 12px 6px; background: var(--pk-surface); border: 1px solid var(--pk-hair); border-radius: 4px; box-shadow: var(--pk-elev-1); }
.sheet.reader .rd-foot.active .rd-r-top { display: flex; align-items: center; gap: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--pk-hair-sub); }
.sheet.reader .rd-mode { height: 32px; padding: 0 6px; border-radius: 4px; color: var(--pk-ink2); }
.sheet.reader .rd-foot.active .rd-to { font-size: 14px; font-weight: 500; color: var(--pk-dim); }
.sheet.reader .rd-expand { width: 32px; height: 32px; border-radius: 4px; color: var(--pk-dim); }
.sheet.reader .rd-foot.active .rd-reply-in { font: 400 16px/1.5 var(--pk-font); padding: 10px 2px; min-height: 72px; color: var(--pk-ink); }
.sheet.reader .rd-foot.active .rd-r-bar { display: flex; align-items: center; gap: 4px; justify-content: flex-start; }
.rd-r-sp { flex: 1; }
.sheet.reader .rd-attach { width: auto; height: 36px; border: 0; border-radius: 4px; background: none; box-shadow: none; padding: 0 8px; margin-left: -8px;
  color: var(--pk-ink2); font: 500 14px var(--pk-font); gap: 6px; }
.rd-r-cancel { height: 36px; border: 0; border-radius: 4px; background: none; padding: 0 10px; color: var(--pk-ink2); font: 500 14px var(--pk-font); cursor: pointer; }
.sheet.reader .rd-send { width: auto; height: 36px; border: 0; border-radius: 4px; background: none; box-shadow: none; padding: 0 10px; margin-right: -6px;
  color: var(--pk-acc-text); font: 600 14px var(--pk-font); margin: 0 -6px 0 0; flex-wrap: nowrap; display: inline-flex; align-items: center; }
.sheet.reader .rd-attach:active, .rd-r-cancel:active, .sheet.reader .rd-send:active { background: var(--pk-press); transform: none; }
.rd-mode-menu { background: var(--pk-surface); box-shadow: var(--pk-elev-2); }

/* ---- Later (mock PocketLater) ---- */
.sa-page .sheet-card { background: var(--pk-screen); }
/* b222: one 44px row like every other header (the kicker and the count centred in it);
   it was the kicker alone at the top of its padding, the highest text on any screen. */
.la-head { flex: none; display: flex; justify-content: space-between; align-items: center;
  padding: calc(var(--pk-safe-top) + var(--pk-top-gap)) 16px 4px;
  min-height: calc(var(--pk-safe-top) + var(--pk-top-gap) + var(--pk-head-h) + 4px);
  background: var(--pk-surface); border-bottom: 1px solid var(--pk-hair); }
.la-head .dk-title { margin-top: 2px; }
.la-n { font-size: 13px; font-weight: 600; color: var(--pk-ink2); }
.sa-page .bd-body { padding: 0 0 12px; background: var(--pk-screen); flex: 1 1 0; min-height: 0; }
.sa-page .botbar.bnav { flex: none; }
.la-peek { position: relative; height: 150px; margin: 18px 16px 8px; }
.la-c3, .la-c2 { position: absolute; background: var(--pk-surface); border: 1px solid var(--pk-hair); border-radius: 4px; height: 112px; }
.la-c3 { left: 20px; right: 20px; top: 0; }
.la-c2 { left: 10px; right: 10px; top: 10px; box-shadow: 0 1px 2px rgba(24, 24, 27, .06); }
.la-c1.mail { position: absolute; left: 0; right: 0; top: 22px; height: 124px; display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; background: var(--pk-surface); border: 1px solid var(--pk-hair); border-radius: 4px;
  box-shadow: var(--pk-elev-2); color: var(--pk-ink); cursor: pointer; text-align: left; }
.la-who { font-size: 13px; color: var(--pk-dim); }
.la-subj { font-size: 17px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.la-snip { font-size: 14px; color: var(--pk-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-list { position: relative; }
.mail.la-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 16px; }
.la-main { min-width: 0; }
.la-rwho { display: block; font-weight: 600; font-size: 15px; }
.la-rsubj { display: block; font-size: 15px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-list .mail.la-row:last-child { border-bottom: 0; }
.sa-foot { font-size: 13px; color: var(--pk-faint); padding: 10px 16px; margin: 0; text-align: left; background: none; border: 0; }

/* ---- the library pages: Notes, Files, Clips (b220) ----
   Later's frame (sa-page): a white one-row header (Back, the title, the count),
   the same 44px row and top gap as every header (b222), the rows on the
   screen colour, the bottom nav. Corners 2px / 4px only. */
.lib-head { flex: none; display: flex; align-items: center; gap: 4px;
  padding: calc(var(--pk-safe-top) + var(--pk-top-gap)) 16px 4px 4px;
  min-height: calc(var(--pk-safe-top) + var(--pk-top-gap) + var(--pk-head-h) + 4px);
  background: var(--pk-surface); border-bottom: 1px solid var(--pk-hair); }
.lib-title { flex: 1; min-width: 0; margin: 0; font: 650 20px/1.2 var(--pk-font); color: var(--pk-ink); letter-spacing: -.01em; }
.lib-list { background: var(--pk-surface); border-bottom: 1px solid var(--pk-hair); }
.lib-row { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; color: var(--pk-ink);
  border-top: 1px solid var(--pk-hair-sub); text-align: left; }
.lib-row:first-child { border-top: 0; }
.lib-row.tappable, .lib-file-row { cursor: pointer; }
.lib-row.tappable:active, .lib-file-row:active { background: var(--pk-press); }
.lib-top { display: flex; align-items: baseline; gap: 10px; }
.lib-who { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; line-height: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-subj { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--pk-ink2); }
.lib-note { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; padding: 8px 10px 9px; border-radius: 2px;
  border: 1px solid var(--pk-note-edge); background: var(--pk-note-bg); color: var(--pk-note-ink); }
.lib-note .nt-ic { flex: none; margin-top: 3px; }
.lib-note-tx { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 15px; line-height: 1.4; font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }
.lib-file-row { flex-direction: row; align-items: center; gap: 12px; padding: 10px 8px 10px 16px; }
.lib-ft { flex: none; width: 40px; height: 40px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center;
  font: 700 11px/1 var(--pk-font); letter-spacing: .04em; color: var(--pk-ink2); background: var(--pk-screen2); border: 1px solid var(--pk-hair); }
.lib-ft-pdf { color: var(--pk-danger); background: color-mix(in srgb, var(--pk-danger) 9%, var(--pk-surface)); border-color: color-mix(in srgb, var(--pk-danger) 24%, var(--pk-surface)); }
.lib-ft-image { color: var(--pk-acc-text); background: color-mix(in srgb, var(--pk-indigo) 10%, var(--pk-surface)); border-color: color-mix(in srgb, var(--pk-indigo) 24%, var(--pk-surface)); }
.lib-ft-sheet { color: var(--pk-good); background: color-mix(in srgb, var(--pk-good) 10%, var(--pk-surface)); border-color: color-mix(in srgb, var(--pk-good) 26%, var(--pk-surface)); }
.lib-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lib-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-meta { font-size: 13px; color: var(--pk-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lib-act { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 36px; min-width: 40px;
  padding: 0 8px; border: 0; border-radius: 4px; background: none; color: var(--pk-ink2); font: 500 13px var(--pk-font); cursor: pointer; }
.lib-act:active { background: var(--pk-press); }
.lib-mail { color: var(--pk-acc-text); }
.lib-clip-tx { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 16px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.lib-clip-ft { display: flex; align-items: center; gap: 8px; margin: 2px -8px -6px 0; }
.lib-clip-ft .lib-meta { flex: 1; }
.lib-copy { color: var(--pk-acc-text); }
.lib-kinds { display: flex; gap: 6px; padding: 10px 16px; }
.lib-kind { height: 32px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--pk-hair); background: var(--pk-surface);
  color: var(--pk-ink2); font: 500 13.5px var(--pk-font); cursor: pointer; }
.lib-kind.on { border-color: var(--pk-indigo); color: var(--pk-acc-text); background: color-mix(in srgb, var(--pk-indigo) 9%, var(--pk-surface)); }
.lib-page .sr-note.lib-empty { padding: 28px 20px; text-align: left; color: var(--pk-dim); font-size: 15px; line-height: 1.45; }

/* ---- small things in the new voice ---- */
.pk-toast { border-radius: 4px; background: var(--pk-ink); color: var(--pk-surface); font: 500 14px var(--pk-font); box-shadow: var(--pk-elev-2); }
.pk-toast-act { color: var(--pk-unread); font: 600 14px var(--pk-font); background: none; border: 0; margin-left: 12px; }
@media (prefers-color-scheme: dark) { .pk-toast-act { color: #94CDBF; } }
.spinner { border-color: var(--pk-hair2); border-top-color: var(--pk-indigo); }

/* The thread rows' type rides a 16px line (the mock's strut). */
.sheet.reader .rd-msg.closed .rd-m-who { line-height: 19px; }
.rd-m-to { font-weight: 400; color: var(--pk-dim); }
.dk-who, .la-rwho, .mail .mtop { line-height: 19px; }
.mail.la-row .dk-time { padding-top: 0; }

/* The older blocks of the inbox home (the AI summary, Worth a look, the cards,
   the view switches, the edition, receipts) sit on the 16px gutter now that the
   list rows run edge to edge. */
#scroll.dk-scroll > :not(.mlist):not(.dk-list):not(.dk-sec):not(.dk-stacks):not(.dk-ns-stack):not(.dk-more):not(.dk-empty):not(.dk-quiet):not(.lmore):not(.empty) {
  margin-left: 16px; margin-right: 16px; }
#scroll.dk-scroll > .install-card, #scroll.dk-scroll > .ai-enable, #scroll.dk-scroll > .aicard { margin-top: 12px; margin-bottom: 4px; }
.install-card { background: var(--pk-surface); border: 1px solid var(--pk-hair); border-radius: 4px; box-shadow: none; }
.install-ic { color: var(--pk-acc-text); }
.aicard { padding: 0; background: none; border: 1px solid var(--pk-hair); box-shadow: var(--pk-elev-1); }
.aicard-in { background: var(--pk-surface); background-image: none; }
.ai-eye { color: var(--pk-dim); background: none; -webkit-text-fill-color: currentColor; font-size: 11px; letter-spacing: .06em; }
.st { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--pk-dim); padding-top: 14px; }
.look { padding: 12px 0; border-bottom: 1px solid var(--pk-hair-sub); }
.look .lb { width: 7px; height: 7px; background: var(--pk-unread); }
.mail .mcount { border: 0; min-width: 0; height: auto; line-height: inherit; }

/* The new-mail chip floats over the bottom nav, left of the create button. */
.bnav > .newchip-slot { position: absolute; left: 16px; right: 84px; bottom: calc(100% + 18px); display: flex; pointer-events: none; }
.bnav > .newchip-slot > * { pointer-events: auto; }
.newchip { border-radius: 999px; background: var(--pk-surface); border: 1px solid var(--pk-hair); box-shadow: var(--pk-elev-2);
  color: var(--pk-ink); font: 500 14px var(--pk-font); }
.newchip-dot { background: var(--pk-unread); }

/* Visually hidden, still read by a screen reader and reachable by keyboard. */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.la-rwho .mnote { margin-left: 6px; color: var(--pk-amber); vertical-align: -1px; }

/* Bottom sheets sit flush on the screen's bottom edge (the mock's sheets): no
   blur behind, the plain scrim, 4px top corners only. */
.cc-ov { padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.cc-card { max-width: none; border-radius: 4px 4px 0 0; padding: 0 0 max(20px, env(safe-area-inset-bottom, 0px)); }
.cc-card > .cc-item:first-child, .cc-card > :first-child.cc-hd { margin-top: 8px; }

/* The calendar sits under the white header now (no floating header to clear). */
#scroll.dk-scroll.calscroll .cal-top { margin: 0; padding: 8px 16px 6px; background: var(--pk-screen); }
#scroll.dk-scroll.calscroll > :not(.cal-top) { margin-left: 0; margin-right: 0; }

/* Full-screen sheets (compose, search, bundle and folder pages): the Back and
   close buttons are the thread's plain 44px icon buttons; Send is the accent
   square of the create button. */
.cp-back { width: 44px; height: 44px; border: 0; border-radius: 4px; background: none; box-shadow: none; color: var(--pk-ink2); }
.cp-back:active { transform: none; background: var(--pk-press); }
.cp-send { border-radius: 4px; background: var(--pk-indigo); box-shadow: var(--pk-fab-shadow); }
.sheet.compose, .sheet.compose .sheet-card { background: var(--pk-surface); }

/* ---- b228: the top header takes the ground colour (owner 2026-11-29: a white
   header over the grey ground read as a strip). The page edges (html, body: what
   iOS paints behind the status bar) take it too, so status bar, header and list
   are one colour; the hair rule under the header stays. A sheet that is white all
   over (compose) keeps its white header. */
html, body { background: var(--pk-screen); }
.ahead.dk-head, .sheet.reader .rd-topbar, .la-head, .lib-head { background: var(--pk-screen); }

/* ---- b230: one ground from the status bar to the home indicator ----
   The bottom nav and the thread's bottom bar take the ground colour too: iOS
   paints the strip under the home indicator from the page background, so a
   white bar showed a grey band under it. Their hair rule on top stays. */
.botbar.bnav, .sheet.reader .rd-foot { background: var(--pk-screen); }
/* The calendar sheets (event, tasks, new / edit event, Meet, Calendars) share
   .sheet.reader with the thread but keep the one-row top bar (close, title,
   Save) and a padded body; the thread's column top bar and edge-to-edge body
   are for the thread only. */
.sheet.reader.calevt .rd-topbar { flex-direction: row; align-items: center; gap: 10px;
  padding: calc(var(--pk-safe-top) + var(--pk-top-gap)) 12px 4px; min-height: calc(var(--pk-safe-top) + var(--pk-head-h) + 4px); }
.sheet.reader.calevt .reader-body { padding: 12px 16px 24px; }
/* The side menu: the rail is the ground colour now (--pk-frame), so the open
   card keeps its shadow and gets a hair edge to read as lifted; the Refresh
   button takes the surface colour so it still reads as a button. */
#app.menu-open { box-shadow: -10px 0 40px -8px rgba(23, 20, 45, .22), 0 0 0 1px var(--pk-hair); }
@media (prefers-color-scheme: dark) {
  #app.menu-open { box-shadow: -10px 0 40px -8px rgba(0, 0, 0, .7), 0 0 0 1px var(--pk-hair); }
}
.drawer .dw-btn:not(.quiet) { background: var(--pk-surface); }
/* Save in that bar: the accent button with 4px corners (Desk voice), 36px so it
   sits inside the 44px row with room above and below. */
.sheet.reader.calevt .ced-save { height: 36px; border-radius: 4px; box-shadow: none; }

/* ---- b231: under the status bar again (see --pk-safe-top) ---- */
@media (display-mode: standalone) {
  /* b238: iOS / iPadOS only (-webkit-touch-callout exists only in iOS WebKit):
     Android and desktop installs have no blur band, so no ramp there. The ramp
     is added to the device's own inset, so it holds on every iPhone shape. */
  @supports (-webkit-touch-callout: none) { :root { --pk-ramp: 16px; } }
  /* iOS sizes a standalone page drawn under the status bar one status bar short;
     make the document that much taller so the page reaches the screen bottom. */
  html { min-height: calc(100% + env(safe-area-inset-top, 0px)); }
}
/* The measured shortfall (app.js measureStandaloneGap, 0 elsewhere): full-screen
   layers reach down by it. */
body, #menu-rail, .sheet, .ask-ov, .cp-cards-ov, .cf-ov, .jn-ov, #att-view, .qr-scan {
  bottom: calc(0px - var(--sa-gap, 0px));
}

/* ---- b234: side-menu account row: emails folded, Refresh as an icon ---- */
.mo-acct.dw-acct { align-items: flex-start; }
.mo-acct.dw-acct .mo-id { flex: 1; }
.dw-accts > summary { list-style: none; display: flex; flex-direction: column; cursor: pointer; }
.dw-accts > summary::-webkit-details-marker { display: none; }
.dw-accts-n { display: inline-flex; align-items: center; gap: 4px; color: var(--pk-faint); }
.dw-chev { transition: transform .15s ease; }
.dw-accts[open] .dw-chev { transform: rotate(180deg); }
.dw-accts > span { margin-top: 2px; }
.dw-refresh-ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; margin-top: 2px;
  border-radius: 4px; border: 1px solid var(--pk-hair2); background: var(--pk-surface); color: var(--pk-ink2); }
.dw-refresh-ic:active { background: var(--pk-soft); }
.dw-refresh-ic.busy svg { animation: dw-spin 1s linear infinite; }
@keyframes dw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dw-refresh-ic.busy svg { animation: none; } }

/* b235: the unfolded account emails are a list, one per line. */
.dw-accts > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- b241: Desk stacks with nothing unread fold into one Caught up line (as
   the desktop's .rw-desk-caught): a label and a link per inbox. ---- */
.dk-caught { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 16px 14px; padding: 10px 12px;
  border: 1px dashed var(--pk-hair); border-radius: 4px; }
.dk-caught-l { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--pk-faint); }
.dk-caught-list { display: flex; flex-wrap: wrap; gap: 6px; }
.dk-caught-a { display: inline-flex; align-items: center; gap: 2px; padding: 4px 6px 4px 9px; border: 0; border-radius: 2px;
  background: var(--pk-press); color: var(--pk-ink2); font: inherit; font-size: 14px; }
.dk-caught-a svg { color: var(--pk-faint); }
.dk-caught-s { font-size: 13px; color: var(--pk-faint); } /* b242: a destination with nothing unread */
/* b244: the Desk's loading sweep runs along the header / body divider. */
.pk-loadbar.dk-headbar { top: auto; bottom: -1px; z-index: 4; }
/* b245 (owner): no spinners while a list loads. A refresh sweeps the header's
   bottom line (deskHead, like the Desk); the title shows its chevron, not a
   spinner; a page loading at the list's end is a short sweep, not a spinner. */
.acct.busy .acct-chev { display: inline-block; }
.acct.busy .acct-spin { display: none; }
.lmore.loading { position: relative; height: 22px; padding: 0; margin: 14px 0 8px; }
.pk-loadbar.lm-bar { top: 10px; left: 30%; right: 30%; border-radius: 1px; }

/* ---- b246 (owner: "borrow more styling from Desktop Desk view"): the Desk's
   section heads and stacks as on the desktop (DeskView.css). ----
   Needs you / People / Right now: a TITLE head — sentence case, 19px / 650,
   the ink, an 18 x 2px brand tick under the first letters, the plain count
   (13px / 600, ink2); the rule stays on the right. */
.dk-sec { align-items: center; padding: 20px 16px 10px; }
.dk-sec.tight { padding-top: 16px; }
.dk-sec > .dk-lbl { position: relative; margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -0.01em; text-transform: none;
  color: var(--pk-ink); line-height: 26px; display: flex; gap: 8px; align-items: baseline; }
.dk-sec > .dk-lbl .dk-cnt { font-size: 13px; font-weight: 600; color: var(--pk-ink2); font-variant-numeric: tabular-nums; }
.dk-tick { position: absolute; left: 0; bottom: -3px; width: 18px; height: 2px; border-radius: 1px; pointer-events: none;
  background: var(--pk-acc-text); }
/* Stacks: a centred divider — ◆ STACKS 5 ◆ between two short lines that fade
   out to their outer ends; the rule centred under it. */
.dk-sec.dk-sec-div { flex-direction: column; align-items: stretch; gap: 4px; padding: 30px 16px 12px; }
.dk-div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dk-div-line { flex: 1 1 0; min-width: 16px; height: 1px; background: linear-gradient(to right, transparent, var(--pk-hair2) 60%); }
.dk-div-line:last-child { background: linear-gradient(to left, transparent, var(--pk-hair2) 60%); }
.dk-div-gem { flex: none; width: 5px; height: 5px; border-radius: 1px; transform: rotate(45deg); background: var(--pk-hair2); }
.dk-div-line + .dk-div-gem, .dk-div-gem + .dk-div-line { margin-left: 4px; }
.dk-sec-div .dk-lbl { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--pk-faint); white-space: nowrap; display: flex; gap: 8px; align-items: center; line-height: 20px; }
.dk-sec-div .dk-lbl .dk-cnt { font-size: 13px; font-weight: 600; color: var(--pk-ink2); letter-spacing: 0; text-transform: none; }
.dk-sec-div > .dk-rule { text-align: center; font-size: 12.5px; color: var(--pk-faint); }

/* A stack: a head line and, open, its unread rows under it. No panel (the
   desktop's clean list). The head: chevron in the gutter, the stack icon, the
   name (16px / 650), the count chip (2px corners, amber dot), the age, Open. */
.dk-stacks { display: flex; flex-direction: column; gap: 4px; padding: 0 0 4px; }
.dk-stk { position: relative; }
.dk-stk-head { position: relative; display: flex; gap: 8px; align-items: center; min-height: 48px; padding: 6px 8px 6px 34px;
  margin: 0 8px; border-radius: 4px; cursor: pointer; -webkit-tap-highlight-color: transparent; color: var(--pk-ink); }
.dk-stk-head.no-fold { cursor: default; }
.dk-stk-head:not(.no-fold):active { background: var(--pk-press); }
.dk-stk-head:focus-visible { outline: 2px solid var(--pk-indigo); outline-offset: -2px; }
.dk-chev { position: absolute; left: 6px; top: 50%; margin-top: -6px; color: var(--pk-faint); transition: transform .12s ease; pointer-events: none; }
.dk-stk.is-open > .dk-stk-head > .dk-chev { transform: rotate(90deg); }
.dk-stk-head .dk-ico { margin-right: 2px; }
.dk-stk-head .dk-stn { font-size: 16px; font-weight: 650; flex: 0 1 auto; }
.dk-stk-head .dk-new { font-size: 12.5px; background: var(--pk-screen2); border-radius: 2px; padding: 1px 7px; line-height: 18px; flex: none; }
.dk-stk-head .dk-new-dot { width: 6px; height: 6px; }
.dk-stk-head .dk-time { padding-top: 0; flex: none; }
.dk-stk-head .dk-tbtn { margin: -6px -4px -6px 0; padding: 6px 8px; min-height: 40px; }
/* Folded (or a quiet destination): one dim line under the name. */
.dk-stk-line { margin: -8px 16px 0 68px; padding: 0 0 10px; font-size: 14px; color: var(--pk-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-stk-line.quiet { color: var(--pk-faint); }
/* Open: the rows under the head, with a short guide under the chevron that
   fades as it goes down (the desktop's .rw-desk-stack-rows::before). b247
   (owner: "indentation on the left is a bit too much"): the rows start at the
   chevron column, so their text lines up with the stack icon, a little left
   of the name (was 40px + 11px, the text under the name). */
.dk-stk-rows { position: relative; margin-left: 18px; padding-bottom: 4px; }
.dk-stk-rows::before { content: ""; position: absolute; left: 2px; top: -2px; bottom: 8px; width: 1px; pointer-events: none;
  background: linear-gradient(to bottom, var(--pk-hair2), transparent 65%); }
.dk-stk-rows .dk-row { background: transparent; padding-left: 6px; border-bottom: 0; }
/* The row separator is the desktop's (the inbox list's): centred at 60% width,
   faded out at both ends. */
.dk-stk-rows .dk-row::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 60%; height: 1px; transform: translateX(-50%);
  pointer-events: none; background: linear-gradient(to right, transparent, var(--pk-hair2) 25%, var(--pk-hair2) 75%, transparent); }
.dk-stk-rows .dk-list > .dk-row:last-child::after { display: none; }
.dk-stk-rows .dk-more { padding: 4px 11px 10px 6px; }
/* Destinations (Today's reading, Receipts): Open today's edition / Open
   receipts (accent text) and Mark edition read (quiet text) under the card. */
.dk-stk-foot { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: -6px 8px 0 36px; padding-bottom: 6px; } /* b248: button text lines up with the row text */
.dk-stk.is-open > .dk-stk-foot { margin-top: -4px; }
.dk-stk-foot { row-gap: 0; }
.dk-stk-foot .dk-tbtn { min-height: 34px; }
.dk-tbtn.quiet { color: var(--pk-ink2); font-weight: 500; }
.dk-dest.is-caught .dk-stk-head { padding-left: 34px; }
/* The New senders stack: its rows keep Allow / Block under each line. */
.dk-ns-stack { border-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .dk-chev { transition: none; } }

/* ---- b247: the thread's bottom toolbar and its More card ----
   The foot (not replying): the folded reply row (mode + chevron, "Reply all")
   over one row of icon buttons with short labels: Unread · Remind · Done ·
   Later · Delete · More. A tap on the reply row opens the reply card, which
   takes the whole foot (the toolbar hides, as before). */
.sheet.reader .rd-foot:not(.active) { padding: 8px 12px 0; }
.sheet.reader .rd-foot:not(.active) .rd-reply { display: flex; align-items: center; gap: 2px; height: 44px; padding: 0 8px 0 2px;
  border: 1px solid var(--pk-hair); border-radius: 4px; background: var(--pk-screen); box-shadow: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* The WHOLE folded bar opens the reply (owner 2026-11-30: "The reply only
   works when I tap on the text"). iOS fires a click only on an element that
   looks clickable (cursor: pointer); with cursor: text a tap beside the words
   reached nothing. */
.sheet.reader .rd-foot:not(.active) .rd-mode { height: 40px; padding: 0 4px 0 8px; }
.sheet.reader .rd-foot:not(.active) .rd-reply-in { height: 40px; padding: 10px 4px; font: 400 16px/1.25 var(--pk-font); }
.sheet.reader .rd-reply-in::placeholder { color: var(--pk-dim); }
.sheet.reader .rd-cmds { justify-content: space-between; gap: 0; padding: 2px 4px var(--pk-nav-pad); }
.sheet.reader .rd-cmds .rd-bb { flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: 3px;
  min-height: 52px; padding: 6px 0 4px; font: 500 11px/1.1 var(--pk-font); letter-spacing: .01em; color: var(--pk-ink2); }
.sheet.reader .rd-cmds .rd-bb svg { flex: none; }
.sheet.reader .rd-cmds .rd-bb span { white-space: nowrap; }
.sheet.reader .rd-cmds .rd-bb.sa-on { color: var(--pk-acc-text); }
.sheet.reader .rd-cmds .rd-bb[aria-expanded="true"] { color: var(--pk-ink); background: var(--pk-press); }

/* The More card: the Command center's rows in a small card above the
   toolbar's More (bottom right). A tap on the scrim, Escape or a swipe down
   closes it. */
.cc-ov.cc-anchor { align-items: flex-end; justify-content: flex-end;
  padding: calc(var(--pk-safe-top) + 12px) 8px calc(var(--cc-foot, 72px) + 4px);
  background: color-mix(in srgb, #000 16%, transparent); animation: cc-fade .14s ease; }
.cc-card.cc-pop { width: min(280px, 100%); max-width: none; max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: 4px 0; background: var(--pk-surface); border: 1px solid var(--pk-hair); border-radius: 4px; box-shadow: var(--pk-elev-2);
  transform-origin: 100% 100%; animation: cc-pop .16s cubic-bezier(.2, .8, .2, 1); }
.cc-card.cc-pop > .cc-hd { margin-top: 0; padding: 10px 14px 4px; font-size: 11px; }
.cc-card.cc-pop > .cc-hd.cc-sub { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--pk-hair-sub);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: none; letter-spacing: 0; font-size: 12px; }
.cc-card.cc-pop > .cc-item { margin-top: 0; min-height: 44px; padding: 10px 14px; gap: 12px; font-size: 15px; }
.cc-card.cc-pop > .cc-item svg { width: 18px; height: 18px; }
.cc-card.cc-pop > .cc-item:focus-visible { outline: 2px solid var(--pk-indigo); outline-offset: -2px; }
@keyframes cc-pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cc-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cc-ov.cc-anchor, .cc-card.cc-pop { animation: none; } }

/* ---- b249: the place switcher, the places menu, the side menu as mail + settings ----
   Owner 2026-11-29 (mocks PlacesList A2 + Mailboxes). The bar's left item is the
   place switcher (render.js placeSwitcher); the places menu is a small card above
   it over a light scrim (render.js placesMenu); the side menu holds the group's
   mailboxes and one Settings row (render.js drawerSheet / settingsDrawer). */
:root { --pk-scrim-lite: rgba(24, 24, 27, .18); --pk-pl-shadow: 0 16px 36px -18px rgba(24, 24, 27, .45); }
@media (prefers-color-scheme: dark) {
  :root { --pk-scrim-lite: rgba(0, 0, 0, .38); --pk-pl-shadow: 0 16px 36px -14px rgba(0, 0, 0, .8); }
}
.bnav-sw-ic { position: relative; display: inline-flex; height: 22px; flex: none; }
.bnav-sw-ic > svg { height: 22px; }
.bnav-dot { position: absolute; top: -1px; right: -4px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--pk-unread); box-shadow: 0 0 0 2px var(--pk-screen); }
.bnav-sw-l { display: inline-flex; align-items: center; gap: 3px; }
.bnav-chev { flex: none; }
.bnav-sw[aria-expanded="true"] .bnav-chev { transform: rotate(180deg); }
.pl-ov { position: absolute; left: 0; right: 0; top: 0; bottom: calc(56px + var(--pk-nav-pad)); z-index: 38;
  background: var(--pk-scrim-lite); animation: pl-fade .14s ease; }
.pl-card { position: absolute; left: 12px; bottom: 8px; width: min(228px, calc(100% - 24px));
  display: flex; flex-direction: column; padding: 6px 0;
  background: var(--pk-surface); border: 1px solid var(--pk-hair); border-radius: 4px; box-shadow: var(--pk-pl-shadow);
  transform-origin: bottom left; animation: pl-in .16s cubic-bezier(.2, .8, .2, 1); }
@keyframes pl-in { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pl-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pl-ov, .pl-card { animation: none; } .bnav-chev { transition: none; } }
.pl-row { display: flex; align-items: center; gap: 12px; width: 100%; height: 46px; padding: 0 14px; margin: 0;
  border: 0; border-radius: 0; background: none; color: var(--pk-ink); font: 400 16px var(--pk-font);
  text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pl-row > svg { flex: none; width: 20px; height: 20px; }
.pl-row:active { background: var(--pk-press); }
.pl-row:focus-visible { outline: 2px solid var(--pk-indigo); outline-offset: -2px; }
.pl-row.on { color: var(--pk-acc-text); background: var(--pk-soft); font-weight: 650; }
.pl-n { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-un { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.pl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pk-unread); flex: none; }
.pl-c, .pl-t { font-family: var(--pk-mono); font-size: 12px; font-weight: 400; color: var(--pk-faint); flex: none; }
.pl-sep { height: 1px; background: var(--pk-hair); margin: 6px 14px; flex: none; }
.pl-row.pl-ask { color: var(--pk-ink2); }
.pl-row.pl-ask.off { color: var(--pk-faint); }

/* The side menu's top: the group (avatar, name, "N accounts"). */
.dw-group > summary { list-style: none; }
.dw-group > summary::-webkit-details-marker { display: none; }
.dw-ghead { display: flex; align-items: center; gap: 12px; padding: 6px 0 14px; border-bottom: 1px solid var(--pk-hair);
  cursor: default; color: var(--pk-ink); }
summary.dw-ghead { cursor: pointer; }
.dw-ghead .dw-chev { margin-left: 0; flex: none; transition: transform .15s ease; }
.dw-group[open] > .dw-ghead .dw-chev { transform: rotate(180deg); }
.dk-av.dw-gav { width: 40px; height: 40px; font-size: 15px; }
.dw-gid { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; }
.dw-gid b { font-size: 17px; font-weight: 650; color: var(--pk-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-gid span { font-size: 13px; color: var(--pk-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-groups { padding: 6px 0; border-bottom: 1px solid var(--pk-hair); }
.dw-groups .gsw-row { padding-left: 0; }
.dw-groups .gsw-row:active { background: var(--pk-press); }
.dw-gaccts { padding: 8px 0 10px 52px; border-bottom: 1px solid var(--pk-hair); }
.dw-gaccts span { display: block; font-size: 14px; color: var(--pk-dim); padding: 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* MAILBOXES: one 44px row per folder the hub offers. */
.dw-sec + .dw-mb, #dw-mboxes .dw-sec { margin-bottom: 2px; }
.dw-mb { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 2px; margin: 0;
  border: 0; background: none; color: var(--pk-ink); font: 400 16px var(--pk-font); text-align: left; cursor: pointer; }
.dw-mb > svg { flex: none; color: var(--pk-ink2); }
.dw-mb:active { background: var(--pk-press); }
.dw-mb-n { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* SETTINGS: one row to the Settings page; the status line at the bottom. */
.dw-sec.dw-sec-set { border-top: 1px solid var(--pk-hair); padding-top: 14px; margin-top: 14px; }
.dw-link.dw-set { border-top: 0; font-size: 16px; min-height: 44px; padding: 0 2px; color: var(--pk-ink); }
.dw-set-l { display: inline-flex; align-items: center; gap: 12px; }
.dw-set-l svg { width: 20px; height: 20px; color: var(--pk-ink2); flex: none; }
.dw-set b { display: inline-flex; align-items: center; gap: 6px; }
.dw-status { display: flex; align-items: center; gap: 0; width: 100%; padding: 10px 2px; border: 0; background: none;
  font: 400 13px var(--pk-font); color: var(--pk-faint); text-align: left; cursor: pointer; }
.dw-status:active { background: var(--pk-press); }
.dw-mb:focus-visible, .dw-set:focus-visible, .dw-status:focus-visible, .dw-ghead:focus-visible {
  outline: 2px solid var(--pk-indigo); outline-offset: 2px; }

/* ---- b250 (owner feedback on b249) ----
   1. The side menu's top: the group, "N accounts ▾" folding out the emails, Refresh.
   2. The Desk Next card: room under the header, an × to hide it, "+N more".
   4. The place switcher is a contained control (a 4px chip), not a plain tab. */
.dw-group { border-bottom: 1px solid var(--pk-hair); margin-bottom: 4px; }
.dw-group .dw-ghead { border-bottom: 0; padding: 6px 0 12px; gap: 8px; }
.dw-gtog { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0; margin: 0;
  border: 0; border-radius: 2px; background: none; color: var(--pk-ink); font: inherit; text-align: left; }
button.dw-gtog { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button.dw-gtog:active { background: var(--pk-press); }
.dw-gtog:focus-visible { outline: 2px solid var(--pk-indigo); outline-offset: 2px; }
.dw-gsub { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.dw-gid .dw-gsub { font-size: 13px; color: var(--pk-dim); }
.dw-gsub .dw-chev { flex: none; margin: 0; }
.dw-gtog[aria-expanded="true"] .dw-chev { transform: rotate(180deg); }
.dw-group .dw-refresh-ic { margin-top: 0; width: 40px; height: 40px; }
.dw-group .dw-gaccts { border-bottom: 0; padding: 0 0 12px 52px; }
.dw-group .dw-gaccts[hidden] { display: none; }

.dk-next { width: calc(100% - 32px); margin: 16px 16px 4px; display: flex; align-items: stretch; gap: 0; min-height: 44px;
  padding: 0; border: 1px solid var(--pk-hair2); border-radius: 4px; background: var(--pk-surface); color: var(--pk-ink); cursor: default; }
#scroll.dk-scroll > .dk-next:first-child { margin-top: 16px; }
.dk-next:active { background: var(--pk-surface); }
.dk-next-go { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 4px 8px 12px; margin: 0;
  border: 0; border-radius: 4px 0 0 4px; background: none; color: inherit; font: 500 14px var(--pk-font); text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.dk-next-go:active { background: var(--pk-press); }
.dk-next-go svg { flex: none; color: var(--pk-dim); }
.dk-next-more { flex: none; font-family: var(--pk-mono); font-size: 12px; color: var(--pk-dim); }
.dk-next-x { flex: none; width: 44px; display: grid; place-items: center; padding: 0; margin: 0; border: 0; border-left: 1px solid var(--pk-hair);
  border-radius: 0 4px 4px 0; background: none; color: var(--pk-faint); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dk-next-x:active { background: var(--pk-press); color: var(--pk-ink2); }
.dk-next-go:focus-visible, .dk-next-x:focus-visible { outline: 2px solid var(--pk-indigo); outline-offset: -2px; }

.bnav-i.bnav-sw { flex-direction: row; align-items: center; justify-content: center; align-self: center; min-width: 0; min-height: 48px;
  padding: 0 2px; gap: 0; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.bnav-sw-box { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px 0 9px;
  border: 1px solid var(--pk-hair2); border-radius: 4px; background: var(--pk-surface); color: var(--pk-nav-ic);
  font: 500 14px var(--pk-font); white-space: nowrap; }
.bnav-sw.on .bnav-sw-box { color: var(--pk-nav-on); font-weight: 600; }
.bnav-sw.away .bnav-sw-box { color: var(--pk-ink2); }
.bnav-sw[aria-expanded="true"] .bnav-sw-box { background: var(--pk-soft); border-color: transparent; color: var(--pk-acc-text); }
.bnav-sw:active { opacity: 1; }
.bnav-sw:active .bnav-sw-box { background: var(--pk-press); }
.bnav-sw .bnav-chev { color: var(--pk-faint); margin-left: -1px; }
.bnav-sw.on .bnav-chev, .bnav-sw[aria-expanded="true"] .bnav-chev { color: currentColor; }
.bnav-sw:focus-visible { outline: none; }
.bnav-sw:focus-visible .bnav-sw-box { outline: 2px solid var(--pk-indigo); outline-offset: 2px; }
.bnav-div { flex: none; align-self: center; width: 1px; height: 28px; background: var(--pk-hair); }
@media (prefers-reduced-motion: reduce) { .dw-gtog .dw-chev { transition: none; } }
.dk-next .dk-next-x svg { color: inherit; }
.bnav-sw-box .bnav-dot { box-shadow: 0 0 0 2px var(--pk-surface); }
.bnav-sw[aria-expanded="true"] .bnav-dot { box-shadow: 0 0 0 2px var(--pk-soft); }
.bnav-sw:active .bnav-dot { box-shadow: 0 0 0 2px var(--pk-press); }

/* ---- b252: three floating groups (owner 2026-11-29, mock S1 SplitThree) ----
   The docked bar is gone. Over the content, 12px in from each side and ~30px
   above the bottom (the home indicator included), sit three 52px surface cards
   with full pill/circle ends (b255, owner: match the round screen corners),
   a hair border and a soft shadow, 8px apart:
     LEFT the place switcher · MIDDLE the place's actions (flex 1) · RIGHT Search.
   Behind them a 130px fade from the ground colour keeps the last rows readable;
   the scroll bodies end with room for it, so nothing is hidden for good.
   The groups do not hide on a scroll down: the docked bar never did (b210+). */
:root { --pk-float-h: 52px; --pk-float-bottom: calc(var(--pk-nav-pad) - 2px);
  --pk-float-shadow: 0 8px 22px -12px rgba(24, 24, 27, .35);
  --pk-float-room: calc(var(--pk-float-h) + var(--pk-float-bottom) + 28px); }
@media (prefers-color-scheme: dark) {
  :root { --pk-float-shadow: 0 10px 24px -10px rgba(0, 0, 0, .8); }
}
.botbar.bnav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 12;
  display: flex; align-items: center; gap: 8px;
  padding: calc(130px - var(--pk-float-h) - var(--pk-float-bottom)) 12px var(--pk-float-bottom);
  background: linear-gradient(to top, var(--pk-screen) 45%, transparent); border: 0;
  pointer-events: none; transform: none; transition: none; }
.botbar.bnav > * { pointer-events: auto; }
.bnav-i.bnav-sw, .bnav-acts, .bnav-i.bnav-search { height: var(--pk-float-h); min-height: var(--pk-float-h); margin: 0;
  border: 1px solid var(--pk-hair); border-radius: 999px; background: var(--pk-surface); box-shadow: var(--pk-float-shadow); }
/* LEFT: the switcher is the group (icon, place name, ▴; the amber dot on the icon). */
.bnav-i.bnav-sw { flex: none; flex-direction: row; align-items: center; justify-content: center; align-self: auto;
  min-width: 0; max-width: 46%; padding: 0 18px 0 16px; gap: 8px; color: var(--pk-ink2); font: 600 15px var(--pk-font); }
.bnav-sw.on { color: var(--pk-indigo-ink); font-weight: 650; }
.bnav-sw.away { color: var(--pk-ink2); }
.bnav-sw[aria-expanded="true"] { background: var(--pk-soft); color: var(--pk-acc-text); }
.bnav-i.bnav-sw:active { background: var(--pk-press); opacity: 1; }
.bnav-sw-ic > svg { width: 21px; height: 21px; }
.bnav-sw-ic { height: 21px; }
.bnav-sw-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.bnav-sw .bnav-chev { width: 11px; height: 11px; margin: 0; color: currentColor; }
.bnav-dot { top: -2px; right: -3px; box-shadow: 0 0 0 2px var(--pk-surface); }
.bnav-sw[aria-expanded="true"] .bnav-dot { box-shadow: 0 0 0 2px var(--pk-soft); }
.bnav-i.bnav-sw:active .bnav-dot { box-shadow: 0 0 0 2px var(--pk-press); }
.bnav-i.bnav-sw:focus-visible, .bnav-acts > .bnav-i:focus-visible, .bnav-i.bnav-search:focus-visible {
  outline: 2px solid var(--pk-indigo); outline-offset: 2px; }
/* MIDDLE: equal columns, icon over a 12px label, a hair divider between them. */
.bnav-acts { flex: 1 1 0; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); overflow: hidden; }
.bnav-acts > .bnav-i { min-width: 0; width: 100%; height: 100%; min-height: 0; padding: 0 4px; margin: 0; gap: 2px; justify-content: center;
  border: 0; border-left: 1px solid var(--pk-hair-sub); border-radius: 0; color: var(--pk-dim); font: 500 12px var(--pk-font); }
.bnav-acts > .bnav-i:first-child { border-left: 0; }
.bnav-acts > .bnav-i:first-child { padding-left: 10px; }
.bnav-acts > .bnav-i:last-child { padding-right: 10px; }
.bnav-acts > .bnav-i > svg { width: 20px; height: 20px; }
.bnav-acts > .bnav-i > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bnav-acts > .bnav-i.on { color: var(--pk-acc-text); font-weight: 650; background: var(--pk-soft); }
.bnav-acts > .bnav-i:active { background: var(--pk-press); opacity: 1; }
.bnav-acts > .bnav-i:focus-visible { outline-offset: -2px; }
/* RIGHT: Search, a 52px circle. */
.bnav-i.bnav-search { flex: none; width: var(--pk-float-h); min-width: var(--pk-float-h); padding: 0;
  flex-direction: row; justify-content: center; color: var(--pk-ink2); }
.bnav-i.bnav-search > svg { width: 21px; height: 21px; }
.bnav-i.bnav-search:active { background: var(--pk-press); opacity: 1; }
/* The places menu: its scrim ends at the switcher's top (app.js placePlaces);
   before the first measure, at the groups' top. The card sits 8px above. */
.pl-ov { bottom: calc(var(--pk-float-h) + var(--pk-float-bottom)); }
/* The new-mail chip floats just above the groups. */
.bnav > .newchip-slot { left: 12px; right: 12px; bottom: calc(var(--pk-float-h) + var(--pk-float-bottom) + 12px); justify-content: center; }
/* Room at the end of every scroll body the groups float over. */
.scroll.dk-scroll, #scroll.dk-scroll.calscroll { padding-bottom: var(--pk-float-room); }
.sa-page .bd-body { padding-bottom: var(--pk-float-room); }
.sa-page .sheet-card { position: relative; }
.sa-page .botbar.bnav { flex: none; }
.pk-toast { bottom: calc(var(--pk-float-h) + var(--pk-float-bottom) + 14px); }
/* The Later and library headers carry Ask + Write at the right, like the Desk. */
.la-head { gap: 4px; }
.la-head > .la-titles { flex: 1 1 auto; min-width: 0; }
.la-head > .la-n, .lib-head > .la-n { margin-right: 4px; }
.pg-side { margin-right: 0; }

/* b254: Mark read on a stack card / Mark receipts read (feature "desk-stacks"):
   a quiet text button in the card's foot; over 50 unread messages it asks
   first, inline ("Mark 1,204 emails read?" · Mark read · Cancel). */
.dk-confirm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.dk-confirm-q { font-size: 14px; font-weight: 600; color: var(--pk-ink); padding: 0 4px 0 8px; }
/* b254: the VIP suggestion card (feature "desk-vip-suggestion"): under the
   People head, as on the desktop; the calm accent wash (never the amber),
   4px corners; the "VIP?" Desk tag, the evidence, Make VIP / Not now. */
.dk-vip { margin: 0 8px 8px; padding: 10px 12px; border-radius: 4px; background: color-mix(in srgb, var(--pk-soft) 55%, var(--pk-screen)); }
.dk-vip-text { display: block; font-size: 14px; line-height: 20px; color: var(--pk-ink2); }
.dk-vip-text .pk-pill { margin-right: 4px; vertical-align: 1px; }
.dk-vip-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dk-vip .dk-act { border-radius: 4px; }

/* b256: the Desk cards' Mark read: a small outlined button (render.js
   dkMarkBtn) — hairline border, 4px corners, no fill, a double check. It sits
   at the right of the card's foot; Open stays the accent text at the left. */
.dk-tbtn.dk-mark { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; height: 32px; padding: 0 10px 0 8px;
  margin-left: auto; border: 1px solid var(--pk-hair); color: var(--pk-ink2); font: 600 13px var(--pk-font); background: var(--pk-surface); }
.dk-tbtn.dk-mark .dk-mark-ic { flex: none; color: var(--pk-acc-text); }
.dk-tbtn.dk-mark:active { background: var(--pk-press); }
.dk-stk-foot .dk-tbtn.dk-mark { min-height: 32px; margin-right: 8px; }

/* b258: the Desk window line at the top of the Desk (render.js deskBody):
   one quiet mono caption, "LAST 2 WEEKS · older mail stays in its inbox". */
.dk-window { margin: 14px 16px 0; font: 500 11px/16px var(--pk-mono, ui-monospace, monospace); letter-spacing: .06em;
  text-transform: uppercase; color: var(--pk-faint); }
.dk-window-sub { text-transform: none; letter-spacing: 0; font-family: var(--pk-font); font-size: 12px; }

/* ---- b259: the places as separate pills (owner 2026-11-29: "rows of pill
   buttons, separated, that animate while expanding and closing vertically") ----
   The card is now only a column: no fill, no border, no shadow. Each place is
   its own floating pill (the bottom groups' surface, hair and shadow), 8px
   apart, left-aligned over the switcher. On open the pills rise from the
   switcher one after another, the nearest first (--pl-i, render.js); on close
   (app.js mountPlaces: .pl-ov.is-closing) they fall back in, the farthest
   first, and the scrim fades. Reduced motion: no movement. */
.pl-card { left: 12px; bottom: 10px; width: max-content; max-width: calc(100% - 24px); padding: 0; gap: 8px; align-items: stretch;
  background: none; border: 0; border-radius: 0; box-shadow: none; animation: none; }
.pl-row { width: auto; min-width: 156px; height: 46px; padding: 0 18px 0 14px; border-radius: 999px;
  background: var(--pk-surface); border: 1px solid var(--pk-hair); box-shadow: var(--pk-float-shadow);
  transform-origin: bottom left;
  animation: pl-pill-in .26s cubic-bezier(.2, .9, .25, 1.15) both; animation-delay: calc(var(--pl-i, 0) * 32ms); }
.pl-row.on { background: color-mix(in srgb, var(--pk-soft) 70%, var(--pk-surface)); }
.pl-row:active { background: var(--pk-press); }
.pl-row:focus-visible { outline-offset: 2px; }
.pl-sep { height: 0; margin: 0; background: none; }
@keyframes pl-pill-in { from { opacity: 0; transform: translateY(calc(14px + var(--pl-i, 0) * 6px)) scale(.86); } to { opacity: 1; transform: none; } }
@keyframes pl-pill-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(calc(10px + var(--pl-i, 0) * 4px)) scale(.9); } }
@keyframes pl-fade-out { from { opacity: 1; } to { opacity: 0; } }
.pl-ov.is-closing { pointer-events: none; animation: pl-fade-out .2s ease .06s both; }
.pl-ov.is-closing .pl-row { animation: pl-pill-out .16s cubic-bezier(.4, 0, 1, 1) both;
  animation-delay: calc((6 - min(var(--pl-i, 0), 6)) * 18ms); }
@media (prefers-reduced-motion: reduce) {
  .pl-row, .pl-ov.is-closing, .pl-ov.is-closing .pl-row { animation: none; }
}

/* ---- b263: Edition and Receipts controls in the app's form (owner
   2026-11-29: "large buttons that look very odd compared to other screens.
   Match the theme of the app and respect the space of mobile") ----
   Every control here takes the rest of the app's shape: 4px corners, a
   hairline, no fill or a soft one, 28–32px tall.
   - List | Edition / List | Receipts: a compact segmented control at the
     left gutter (28px), not a centred 36px pill bar.
   - Mark edition read: the Desk cards' "✓✓ Mark all read" (render.js
     editionMarkBtn reuses .dk-mark), under the counts.
   - The month arrows: 32px squares with a hairline and a chevron.
   - The Receipts filter: 30px chips with 4px corners; the chosen one takes
     the soft accent wash. The edition's foot "List" and "Try again" follow. */
.vsw { justify-content: flex-start; margin: 10px 16px 6px; }
.vsw-segs { height: 30px; padding: 2px; gap: 0; border-radius: 4px; border: 1px solid var(--pk-hair);
  background: var(--pk-screen); }
.vsw-seg { height: 24px; padding: 0 10px; gap: 5px; border-radius: 2px; font-size: 13px; }
.vsw-seg.on { background: var(--pk-soft); color: var(--pk-acc-text); box-shadow: none; }
.vsw-seg svg { width: 14px; height: 14px; }
.vsw-seg:focus-visible { outline: 2px solid var(--pk-indigo); outline-offset: 1px; }
.ed-mark.dk-mark { display: inline-flex; margin: 10px 0 0; height: 32px; min-height: 32px; box-shadow: none; font-size: 13px; }
.ed-mark.dk-mark:disabled { opacity: .45; cursor: default; }
.rc-nav { gap: 6px; }
.rc-arrow { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 4px; border: 1px solid var(--pk-hair);
  background: var(--pk-surface); color: var(--pk-ink2); box-shadow: none; padding: 0; }
.rc-arrow:active { background: var(--pk-press); }
.rc-arrow:disabled { color: var(--pk-faint); background: transparent; }
.rc-pills { gap: 6px; padding: 4px 0 6px; }
.rc-pill { height: 30px; padding: 0 10px; border-radius: 4px; font-size: 14px; }
.rc-pill.on { color: var(--pk-acc-text); background: var(--pk-soft); }
.rc-pill:active { background: var(--pk-press); }
.ed-list, .ed-retry { height: 32px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--pk-hair); background: var(--pk-surface);
  color: var(--pk-acc-text); box-shadow: none; font-size: 14px; font-weight: 600; }
/* The switch lines up with the text under it: inside the Edition (.ed has its
   own gutter) it takes none; above Receipts it takes the .rc gutter (20px). */
.ed > .vsw { margin-left: 0; margin-right: 0; }
#scroll.dk-scroll > .vsw.vsw-rc { margin: 14px 16px 6px 20px; }
/* b263: an older day's Mark read is the same small outlined button. */
.ed-omark.dk-mark { height: 32px; min-height: 32px; margin: 0; box-shadow: none; font-size: 13px; border-width: 1px; }
.ed-omark.dk-mark:disabled { opacity: .45; cursor: default; }
/* b264 (owner: "these 2 buttons look large"; "the List | Receipts toggle
   touches the header and the left edge"):
   - Copy totals / Share CSV / Show more: 32px hairline buttons with 4px
     corners at the left, sized to their words (no fill, no shadow); Share CSV
     keeps the accent text as the main one.
   - The view switch, wherever it is the first block of the list (Paper Trail
     or Reading in List or Receipts view): 14px below the header and on the
     text gutter. The #scroll first-child rule set its top margin to 0. */
.rc-foot { gap: 8px; margin: 18px 0 6px; justify-content: flex-start; }
.rc-btn, .rc-morewrap .rc-btn { flex: 0 0 auto; height: 32px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--pk-hair);
  background: var(--pk-surface); color: var(--pk-ink2); box-shadow: none; font-size: 14px; font-weight: 600; }
.rc-btn.primary { border: 1px solid var(--pk-hair); background: var(--pk-surface); color: var(--pk-acc-text); }
.rc-btn:active { background: var(--pk-press); }
#scroll.dk-scroll > .vsw { margin: 14px 16px 6px 20px; }
/* The generic .primary (onboarding) sets width 100% / max 300px: not here. */
.rc-foot .rc-btn { width: auto; max-width: none; }
/* Track on a receipt row: the same small hairline button. */
.rc-act { height: 30px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--pk-hair); background: var(--pk-surface);
  color: var(--pk-acc-text); box-shadow: none; font-size: 13px; }
.rc-act:active { background: var(--pk-press); }

/* ---- b265: the places scrim reaches the bottom edge (owner 2026-11-30: "when
   I launch the menu I see the white bottom bar"). It ended at the switcher's
   top, so the bottom bar's strip (its fade to the screen colour) stayed
   undimmed under the menu. Now it covers the whole screen, the bar included;
   the pills stay 10px above the switcher (app.js placePlaces sets
   --pl-anchor; before the first measure, the groups' height + 10px). ---- */
.pl-ov { bottom: 0; }
.pl-card { bottom: var(--pl-anchor, calc(var(--pk-float-h) + var(--pk-float-bottom) + 10px)); }
