/* MJM Mail, 2026-10-12 redesign after the classic Yahoo Mail layout (reference screenshots in
   /home/mjmwebdesign/proposals/design-refs/): a full-width header (utility strip, navy band with one wide search,
   a tab strip), a plain folder column with a big Compose button, dense one-line message rows grouped by day,
   a flat reading view, and replies written in place in their own tab. Round 2 (same day): plain-text folder list
   with Unread and Starred, sender then star then subject, no preview text unless chosen in View, no folder name
   in the toolbar, and no floating reply bar.
   System fonts, no external assets. The document is the only scroller. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f6f8;
  --surface-3: #eaedf1;
  --ink: #1d2228;
  --ink-2: #39414a;
  --muted: #646e7a;
  --line: #e3e6ea;
  --line-2: #cbd0d7;
  --primary: #1667d9;
  --primary-strong: #1053b3;
  --primary-soft: #e3eefc;
  --primary-soft-2: #cfe0f8;
  --on-primary: #ffffff;
  --compose: #1a73e8;
  --compose-strong: #135fc4;
  --gh-top: #30343a;
  --gh-band: #1d3a5f;
  --gh-tabs: #2a4b74;
  --gh-tab: #3d6191;
  --gh-ink: #ffffff;
  --gh-soft: rgba(255, 255, 255, .78);
  --ok: #1d7f45;
  --ok-soft: #e1f3e8;
  --warn: #9a5108;
  --warn-soft: #fff0dc;
  --bad: #c03a3b;
  --bad-soft: #fde7e7;
  --info: #0a7486;
  --info-soft: #ddf3f6;
  --star: #f0820f;
  --sel-bg: #e8f0fe;
  --shadow: 0 1px 2px rgba(29, 34, 40, .06), 0 3px 12px rgba(29, 34, 40, .08);
  --shadow-lg: 0 10px 36px rgba(29, 34, 40, .2);
  --radius: 8px;
  --radius-sm: 6px;
  --side-w: 210px;
  --side-bg: #f5f4f7;           /* folder column and its selected row: the classic Yahoo colours */
  --side-hover: #e9e8ee;
  --nav-sel: #bedcf9;
  --who-w: 250px;               /* sender column; the row star sits just after it */
  --row-h: 31px;                /* inbox spacing (Settings): medium = classic Yahoo (32px rows, 13px text) */
  --row-fs: 13px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;   /* Yahoo Mail's font */
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #15181d;
    --surface: #1b1f25;
    --surface-2: #232830;
    --surface-3: #2c323c;
    --ink: #e9ecf0;
    --ink-2: #ccd2da;
    --muted: #9ba5b1;
    --line: #2d333c;
    --line-2: #3e4652;
    --primary: #6aa5f6;
    --primary-strong: #93bdf9;
    --primary-soft: #1f324d;
    --primary-soft-2: #284068;
    --on-primary: #0d1726;
    --compose: #2f7fe8;
    --compose-strong: #4a90ec;
    --gh-top: #0f1114;
    --gh-band: #13263f;
    --gh-tabs: #1b3352;
    --gh-tab: #284a73;
    --ok: #5fcf8e;
    --ok-soft: #1f3d2c;
    --warn: #f0ae5c;
    --warn-soft: #43321d;
    --bad: #f28b8c;
    --bad-soft: #472a2d;
    --info: #57cbdc;
    --info-soft: #1d3a42;
    --star: #f7a14a;
    --sel-bg: #1f324d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 3px 12px rgba(0, 0, 0, .3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .55);
  }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #15181d;
    --surface: #1b1f25;
    --surface-2: #232830;
    --surface-3: #2c323c;
    --ink: #e9ecf0;
    --ink-2: #ccd2da;
    --muted: #9ba5b1;
    --line: #2d333c;
    --line-2: #3e4652;
    --primary: #6aa5f6;
    --primary-strong: #93bdf9;
    --primary-soft: #1f324d;
    --primary-soft-2: #284068;
    --on-primary: #0d1726;
    --compose: #2f7fe8;
    --compose-strong: #4a90ec;
    --gh-top: #0f1114;
    --gh-band: #13263f;
    --gh-tabs: #1b3352;
    --gh-tab: #284a73;
    --ok: #5fcf8e;
    --ok-soft: #1f3d2c;
    --warn: #f0ae5c;
    --warn-soft: #43321d;
    --bad: #f28b8c;
    --bad-soft: #472a2d;
    --info: #57cbdc;
    --info-soft: #1d3a42;
    --star: #f7a14a;
    --sel-bg: #1f324d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 3px 12px rgba(0, 0, 0, .3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .55);
  }


@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --side-bg: var(--bg); --side-hover: var(--surface-2); --nav-sel: var(--primary-soft); }
}
:root[data-theme="dark"] { --side-bg: var(--bg); --side-hover: var(--surface-2); --nav-sel: var(--primary-soft); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 100px; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--ink-2);
  font: 14.5px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary-strong); }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .92em; }
.grow { flex: 1 1 auto; }
svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
kbd {
  display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 5px; text-align: center;
  background: var(--surface-3); border: 1px solid var(--line-2); border-bottom-width: 2px;
  font: 600 12px/18px var(--mono); color: var(--ink);
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 8px 15px; font-weight: 600; font-size: 14px; line-height: 1.2; text-decoration: none;
  background: var(--surface-3); color: var(--ink);
  transition: background-color .15s, color .15s, box-shadow .15s, opacity .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--line); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover:not(:disabled) { background: var(--primary-strong); }
.btn-compose { background: var(--compose); color: #fff; }
.btn-compose:hover:not(:disabled) { background: var(--compose-strong); }
.btn-soft { background: var(--primary-soft); color: var(--primary-strong); }
.btn-soft:hover:not(:disabled) { background: var(--primary); color: var(--on-primary); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-3); color: var(--ink); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover:not(:disabled) { filter: brightness(.94); background: var(--bad); }
.btn-danger-soft { background: var(--bad-soft); color: var(--bad); }
.btn-danger-soft:hover:not(:disabled) { background: var(--bad); color: #fff; }
.btn-ghost.danger { color: var(--bad); }
.btn-ghost.danger:hover:not(:disabled) { background: var(--bad-soft); color: var(--bad); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-block { width: 100%; padding: 12px 16px; font-size: 16px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
  border: 0; border-radius: 6px; background: transparent; color: var(--muted); text-decoration: none;
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; background: transparent; }
.icon-btn-sm { width: 28px; height: 28px; }
.icon-btn-sm svg { width: 15px; height: 15px; }
.icon-btn.on, .star-t.on { color: var(--star); }
.icon-btn.on svg, .star-t.on svg { fill: currentColor; }
/* Toolbar button with a visible label that collapses to an icon on narrow screens. */
.tbtn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-2); font-weight: 500; font-size: 14px;
  white-space: nowrap;
}
.tbtn:hover:not(:disabled) { background: var(--surface-3); color: var(--ink); }
.tbtn:disabled { color: var(--muted); opacity: .55; cursor: default; }
.tbtn svg { width: 18px; height: 18px; }
.tbtn.primary { background: var(--primary-soft); color: var(--primary-strong); }
.linkbtn { border: 0; background: none; padding: 6px 0 0; color: var(--primary-strong); font-weight: 600; font-size: 13px; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.input {
  padding: 8px 11px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); min-width: 0;
}
.input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft-2); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }

/* ------------------------------------------------------------ chips */
.chip {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
  padding: 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 500; line-height: 18px;
  background: var(--surface-3); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chip svg { width: 12px; height: 12px; }
.chip-primary { background: var(--primary-soft); color: var(--primary-strong); }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-bad { background: var(--bad-soft); color: var(--bad); }
.chip-info { background: var(--info-soft); color: var(--info); }
.chip-muted { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.chip-to { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.score {
  display: inline-block; min-width: 34px; text-align: center; padding: 0 5px; border-radius: 5px;
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 18px;
}
.score.s-good { background: var(--ok-soft); color: var(--ok); }
.score.s-mid { background: var(--surface-3); color: var(--ink-2); }
.score.s-warn { background: var(--warn-soft); color: var(--warn); }
.score.s-high { background: var(--bad-soft); color: var(--bad); }

/* ------------------------------------------------------------ global header */
.gh { background: var(--gh-band); color: var(--gh-ink); }
.gh-band {
  display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 12px 22px;
}
.brand { display: flex; align-items: center; gap: 10px; width: calc(var(--side-w) - 22px); flex: none; color: #fff; text-decoration: none; min-width: 0; }
/* The logo is the favicon (icon.svg): blue tile, white envelope, blue flap. */
.brand-mark { display: block; width: 38px; height: 38px; flex: none; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-mark .bm-bg { fill: #556ee6; stroke: none; }
.brand-mark .bm-env { fill: #fff; stroke: none; }
.brand-mark .bm-flap { fill: none; stroke: #556ee6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font-size: 21px; font-weight: 300; letter-spacing: .01em; white-space: nowrap; }
.brand-name b { font-weight: 800; }
.search {
  position: relative; flex: 1 1 auto; max-width: 820px; display: flex; align-items: stretch; height: 46px; margin: 0;
  background: #fff; border-radius: 5px; box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}
.search:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 16px; font-size: 16px; color: #1d2228; }
.search input::placeholder { color: #6a7480; }
.search input::-webkit-search-cancel-button { display: none; }
.search #qClear { align-self: center; color: #6a7480; margin-right: 4px; }
.search #qClear:hover { background: #eef0f3; color: #1d2228; }
.search-go { display: grid; place-items: center; width: 72px; border: 0; border-radius: 0 5px 5px 0; background: #5b7190; color: #fff; }
/* Advanced search: a link-style toggle inside the box, and a panel under it (Yahoo style). */
.adv-btn { display: flex; align-items: center; gap: 4px; flex: none; padding: 0 14px; border: 0; background: none; color: #1667d9; font-size: 15px; font-weight: 500; cursor: pointer; }
.adv-btn:hover { text-decoration: underline; }
.adv-btn svg { width: 16px; height: 16px; stroke-width: 2.2; transition: transform .15s; }
.adv-btn.on svg { transform: rotate(180deg); }
.adv-panel {
  position: absolute; top: calc(100% + 1px); left: 0; right: 72px; z-index: 50; padding: 18px 22px 16px;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: 0 0 8px 8px; box-shadow: var(--shadow-lg);
}
.adv-form { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.adv-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.adv-row > label, .adv-contains legend { font-weight: 700; color: var(--ink); font-size: 14.5px; padding: 0; }
.adv-contains legend { float: left; width: 130px; margin-right: 12px; }
.adv-in { width: 100%; min-width: 0; height: 40px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; color: var(--ink); font: inherit; font-size: 15px; outline: 0; }
.adv-in:focus { border-bottom: 2px solid var(--primary); }
select.adv-in { cursor: pointer; }
.adv-date { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.adv-date > select { flex: 1 1 160px; }
.adv-dates { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; }
.adv-dates input { flex: 1; }
.adv-chks { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 10px 0 4px; }
.adv-chk { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14.5px; cursor: pointer; }
.adv-acts { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin-top: 12px; }
.adv-reset { padding: 0; font-size: 14.5px; }
.search-go:hover { background: #4c6281; }
.search-go svg { width: 22px; height: 22px; stroke-width: 2.2; }
.gh-ic { color: var(--gh-soft); }
.gh-ic:hover { background: rgba(255, 255, 255, .12); color: #fff; }
#refreshBtn.busy svg { animation: spin .8s linear infinite; }
/* Account: the avatar alone, with a menu (address, Settings, Sign out) under it. */
.acct { position: relative; display: flex; align-items: center; margin-left: auto; flex: none; }
.acct-btn { display: grid; place-items: center; padding: 3px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.acct-btn:hover, .acct-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .16); }
.acct-btn .av { width: 36px; height: 36px; font-size: 13px; }
.acct-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 45; min-width: 250px; padding: 6px;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg);
}
.acct-head { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.acct-lb { font-size: 12px; color: var(--muted); }
.acct-who { color: var(--ink); font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.acct-menu form { margin: 0; }
.acct-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px;
  background: none; color: var(--ink-2); font-size: 14.5px; text-align: left; text-decoration: none; cursor: pointer;
}
.acct-item:hover, .acct-item:focus-visible { background: var(--primary-soft); color: var(--primary-strong); }
.acct-item svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.acct-item.on { color: var(--primary-strong); font-weight: 600; }
.acct-n { margin-left: auto; padding: 0 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 20px; }
.acct-sep { height: 1px; margin: 4px 6px; background: var(--line); }

/* Tabs for the open message and the message being written. */
.gh-tabs { background: var(--gh-tabs); min-height: 32px; padding: 0 22px 0 calc(var(--side-w) + 16px); display: flex; align-items: flex-end; }
.tabs { display: flex; align-items: flex-end; gap: 3px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  /* Every tab the same width (they shrink together when many are open), so the first tab's close
     button stays in the same place while closing them one after another. */
  display: flex; align-items: center; height: 29px; flex: 0 1 200px; width: 200px; min-width: 104px;
  background: var(--gh-tab); color: rgba(255, 255, 255, .9); border-radius: 5px 5px 0 0;
}
.tab-go {
  display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; height: 100%; padding: 0 6px 0 14px; border: 0; background: none;
  color: inherit; font-size: 13px; font-weight: 500;
}
.tab-go span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-go svg { width: 15px; height: 15px; }
.tab-x { display: grid; place-items: center; flex: none; width: 26px; height: 26px; margin-right: 6px; border: 0; border-radius: 4px; background: none; color: inherit; opacity: .75; }
.tab-x:hover { opacity: 1; background: rgba(255, 255, 255, .16); }
.tab-x svg { width: 14px; height: 14px; }
.tab:not(.on):hover { background: #4a6c9a; }
.tab.on { background: var(--surface); color: var(--ink); }
.tab.on .tab-x:hover { background: var(--surface-3); }

/* ------------------------------------------------------------ layout */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); align-items: start; min-height: calc(100vh - 118px); background: var(--side-bg); }
.main { min-width: 0; outline: 0; border-left: 1px solid var(--line); min-height: calc(100vh - 118px); background: var(--surface); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.card.pad { padding: 18px 20px; }
.card-h {
  margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.card-h .chip, .card-h .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.card-foot { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.sticky { position: sticky; top: 0; z-index: 8; }

/* ------------------------------------------------------------ folder column */
.side { position: sticky; top: 0; max-height: 100vh; display: flex; flex-direction: column; min-height: 0; background: var(--side-bg); }
.side-head { padding: 18px 16px 12px; }
.compose-btn { height: 35px; border-radius: 4px; font-size: 13.5px; font-weight: 500; box-shadow: none; }
.side-scroll { flex: 1; min-height: 0; overflow: auto; padding: 4px 0 16px; overscroll-behavior: auto; }
.side h2 { margin: 18px 22px 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.nav { list-style: none; margin: 0; padding: 0; }
.nav-a {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 4px 16px 4px 22px; color: var(--ink); text-decoration: none; font-weight: 400; font-size: 13px; line-height: 20px;
  border-left: 3px solid transparent;
}
.nav-a svg { display: none; width: 17px; height: 17px; color: var(--muted); }
.nav-a:hover { background: var(--side-hover); color: var(--ink); }
.nav-a[aria-current="page"] { background: var(--nav-sel); border-left-color: var(--primary); color: var(--ink); font-weight: 700; }
.nav-a[aria-current="page"] svg { color: var(--primary); }
.nav-a.d1 { padding-left: 36px; } .nav-a.d2 { padding-left: 50px; } .nav-a.d3 { padding-left: 64px; }
#navCustom .nav-a { padding-left: 34px; }
#navCustom .nav-a.d1 { padding-left: 48px; } #navCustom .nav-a.d2 { padding-left: 62px; } #navCustom .nav-a.d3 { padding-left: 76px; }
.nav .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .n { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.nav-a[aria-current="page"] .n { color: var(--ink); }
.nav .n.pill { color: var(--ink); font-weight: 800; }
.nav-skel { height: 28px; margin: 6px 18px; border-radius: 6px; background: var(--surface-2); }
.nav-group { margin-top: 14px; }
.nav-group-head { display: flex; align-items: baseline; gap: 8px; padding: 6px 16px 4px 25px; color: var(--ink); font-size: 13px; font-weight: 400; }
.nav-group-btn { border: 0; background: none; padding: 0; margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 400; }
.nav-group-btn:hover { color: var(--primary-strong); text-decoration: underline; }
.side-tools { display: none; }
/* Drag handle on the folder column's right edge. */
.side-grip { position: absolute; top: 0; right: -5px; bottom: 0; width: 10px; z-index: 9; cursor: col-resize; touch-action: none; }
.side-grip::after { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 2px; background: transparent; transition: background-color .15s; }
.side-grip:hover::after, .side-grip:focus-visible::after, body.resizing .side-grip::after { background: var(--primary); }
.side-grip:focus-visible { outline: 0; }
body.resizing { cursor: col-resize; user-select: none; }
/* Settings panel */
.settings-pop {
  position: fixed; top: 58px; right: 16px; z-index: 40; width: 348px; max-width: calc(100vw - 24px); max-height: calc(100vh - 90px); overflow: auto;
  padding: 6px 20px 16px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg);
}
.set-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 2px; }
.set-head h2 { margin: 0; font-size: 17px; color: var(--ink); }
.set-g { margin: 14px 0 0; padding: 0; border: 0; min-width: 0; }
.set-g legend, .set-h { padding: 0; margin-bottom: 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.set-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.set-opt { display: flex; flex-direction: column; gap: 6px; cursor: pointer; font-size: 14px; color: var(--ink); }
.set-ol { display: flex; align-items: center; gap: 6px; }
.set-ol input { margin: 0; accent-color: var(--primary); }
.set-art { display: flex; flex-direction: column; justify-content: center; gap: 5px; height: 58px; padding: 8px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; overflow: hidden; }
.set-opt.on .set-art { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.set-art i { display: block; height: 7px; border-radius: 2px; background: #d6dbe2; }
.set-art.th-light i, .set-art.th-dark i, .set-art.th-system i { height: 12px; background: #1d3a5f; }
.set-art.th-light b, .set-art.th-dark b, .set-art.th-system b { display: block; flex: 1; border-radius: 2px; background: #f1f3f6; }
.set-art.th-dark { background: #1b1f25; } .set-art.th-dark b { background: #2c323c; } .set-art.th-dark i { background: #13263f; }
.set-art.th-system { background: linear-gradient(135deg, #fff 50%, #1b1f25 50%); }
.set-art.th-system b { background: linear-gradient(135deg, #f1f3f6 50%, #2c323c 50%); }
.set-art.dn-small { gap: 3px; } .set-art.dn-small i { height: 5px; }
.set-art.dn-large { gap: 8px; } .set-art.dn-large i { height: 10px; }
.set-sw { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.set-sw .set-h { display: block; margin: 0; }
.set-sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
input[type="checkbox"].switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 40px; height: 22px; margin: 0; border-radius: 99px; background: var(--line-2); cursor: pointer; transition: background-color .15s; }
input[type="checkbox"].switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
input[type="checkbox"].switch:checked { background: var(--primary); }
input[type="checkbox"].switch:checked::after { transform: translateX(18px); }
.set-links { display: flex; gap: 18px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.set-links a, .set-links .linkbtn { padding: 0; color: var(--primary-strong); font-weight: 600; font-size: 14px; text-decoration: none; }
.quota { margin: 18px 22px 0; font-size: 12px; color: var(--muted); display: grid; gap: 6px; }
.quota-bar { height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.quota-bar span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.quota-bar span.hot { background: var(--bad); }
.side-foot { display: none; align-items: center; gap: 10px; padding: 12px 12px 12px 22px; border-top: 1px solid var(--line); }
.side-foot .who { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot form { margin: 0; }
.scrim { display: none; }

/* Collapsed folder menu (2026-11-03): an icon rail 64px wide, switched by the header's menu button (#sideBtn) or "[".
   Desktop only; the phone drawer is unchanged. Each item keeps its title as the tooltip, and its count becomes a badge. */
.compose-btn .mini-ic { display: none; }
.rail-more { display: none; }
@media (min-width: 961px) {
  .side-btn { margin: 0 -8px 0 -10px; }
  .brand { width: calc(var(--side-w) - 56px); min-width: max-content; }   /* the search still lines up with the list */
  .side-mini .app { grid-template-columns: 64px minmax(0, 1fr); }
  .side-mini .gh-tabs { padding-left: 80px; }
  .side-mini .side-head { display: grid; justify-items: center; padding: 16px 0 10px; }
  .side-mini .compose-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; }
  .side-mini .compose-btn .mini-ic { display: block; width: 20px; height: 20px; }
  .side-mini .compose-btn span, .side-mini .nav .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .side-mini .nav-a { position: relative; justify-content: center; height: 40px; padding: 0; }
  .side-mini .nav-a svg { display: block; width: 20px; height: 20px; }
  .side-mini .nav .n {
    position: absolute; top: 2px; left: 33px; min-width: 18px; height: 17px; padding: 0 5px; border-radius: 99px;
    background: var(--surface-3); color: var(--ink-2); font-size: 0; line-height: 17px; text-align: center; visibility: visible !important;
  }
  .side-mini .nav .n::after { content: attr(data-s); font-size: 10.5px; font-weight: 700; }
  .side-mini .nav .n.pill { background: var(--primary); color: #fff; }
  .side-mini .nav-empty, .side-mini #customGroup, .side-mini #sitesGroup, .side-mini .quota, .side-mini .side-grip { display: none !important; }
  .side-mini .rail-more { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
  .rail-more .nav-a { border: 0; border-left: 3px solid transparent; background: none; color: var(--ink); font: inherit; cursor: pointer; }
  .rail-more .nav-a:hover { background: var(--side-hover); }
  .rail-more .nav-a.on { background: var(--nav-sel); border-left-color: var(--primary); }
  .rail-more .nav-a.on svg { color: var(--primary); }
}

/* ------------------------------------------------------------ avatars */
.av {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none;
  font-size: 13.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
}
.av-sm { width: 30px; height: 30px; font-size: 11.5px; }
.av-0 { background: #e2e6fc; color: #3c4fb8; } .av-1 { background: #dff3e7; color: #1c7a44; }
.av-2 { background: #fdecd7; color: #9a4d06; } .av-3 { background: #fde2e2; color: #b1383a; }
.av-4 { background: #dcf4f7; color: #0d7383; } .av-5 { background: #ece3fb; color: #6b3fb5; }
.av-6 { background: #e9ebef; color: #4c5063; } .av-7 { background: #fbe3f1; color: #a33575; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .av-0 { background: #37407a; color: #cdd5ff; }
  :root:not([data-theme="light"]) .av-1 { background: #24493a; color: #b6ecca; }
  :root:not([data-theme="light"]) .av-2 { background: #4f3a22; color: #fdd3a4; }
  :root:not([data-theme="light"]) .av-3 { background: #573034; color: #ffc4c5; }
  :root:not([data-theme="light"]) .av-4 { background: #20474f; color: #aeeaf2; }
  :root:not([data-theme="light"]) .av-5 { background: #45355f; color: #dccbff; }
  :root:not([data-theme="light"]) .av-6 { background: #3d4155; color: #d7d9e6; }
  :root:not([data-theme="light"]) .av-7 { background: #542e48; color: #ffc8e7; }
}
:root[data-theme="dark"] .av-0 { background: #37407a; color: #cdd5ff; }
:root[data-theme="dark"] .av-1 { background: #24493a; color: #b6ecca; }
:root[data-theme="dark"] .av-2 { background: #4f3a22; color: #fdd3a4; }
:root[data-theme="dark"] .av-3 { background: #573034; color: #ffc4c5; }
:root[data-theme="dark"] .av-4 { background: #20474f; color: #aeeaf2; }
:root[data-theme="dark"] .av-5 { background: #45355f; color: #dccbff; }
:root[data-theme="dark"] .av-6 { background: #3d4155; color: #d7d9e6; }
:root[data-theme="dark"] .av-7 { background: #542e48; color: #ffc8e7; }


/* ------------------------------------------------------------ list view */
.view-list { background: var(--surface); }
.sticky-head { position: sticky; top: 0; z-index: 8; background: var(--surface); }
.toolbar {
  display: flex; align-items: center; gap: 4px; padding: 0 14px 0 20px; border-bottom: 1px solid var(--line);
  min-height: 54px;
}
.selbox { display: inline-flex; align-items: center; gap: 0; margin-right: 6px; }
.selmenu { position: relative; }
.smenu-btn { display: grid; place-items: center; width: 24px; height: 30px; border: 0; border-radius: 4px; background: none; color: var(--ink-2); padding: 0; }
.smenu-btn:hover:not(:disabled), .smenu-btn[aria-expanded="true"] { background: var(--surface-3); }
.smenu-btn:disabled { opacity: .4; }
.smenu-btn svg { width: 15px; height: 15px; }
.vmenu.smenu { left: 0; right: auto; min-width: 150px; }
.vmenu-sep { height: 1px; margin: 6px 4px; background: var(--line); }
.vmenu .vm-pv[aria-checked="true"]::after { content: ""; margin-left: auto; width: 6px; height: 11px; border: solid var(--primary); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-2px, -2px); }
.folder-title { margin: 0 14px 0 2px; font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
.tb-count { font-weight: 700; color: var(--primary-strong); font-variant-numeric: tabular-nums; margin-right: 6px; white-space: nowrap; }
.bulk-acts { display: flex; gap: 4px; flex-wrap: nowrap; min-width: 0; margin-left: auto; }
/* Greyed only a little until something is selected, like the classic toolbar. */
.bulk-acts .tbtn:disabled { color: var(--ink-2); opacity: .62; }
.bulk-acts .tbtn { font-size: 13px; }
.bulk-acts .tb-clear { margin-left: 4px; }
.tb-info { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; margin-right: 10px; }
.toolbar.bulk { background: var(--sel-bg); }

/* "View" menu: All, Unread, Starred, Attachments (filters of the current folder). */
.filterchips { position: relative; }
.vmenu-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 6px;
  background: none; color: var(--ink-2); font-weight: 600; font-size: 13px; white-space: nowrap;
}
.vmenu-btn:hover, .vmenu-btn[aria-expanded="true"] { background: var(--surface-3); color: var(--ink); }
.vmenu-btn.on { color: var(--primary-strong); }
.vmenu-btn svg { width: 15px; height: 15px; }
.vmenu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 210px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-lg);
}
.vmenu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px;
  background: none; color: var(--ink-2); text-align: left; font-size: 14px;
}
.vmenu button:hover, .vmenu button:focus-visible { background: var(--primary-soft); color: var(--primary-strong); }
.vmenu button[aria-checked="true"] { color: var(--ink); font-weight: 700; }
.vmenu button[aria-checked="true"]::after { content: ""; margin-left: auto; width: 6px; height: 11px; border: solid var(--primary); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-2px, -2px); }
.vmenu svg { width: 16px; height: 16px; color: var(--muted); }

.list { position: relative; }
.newpill { position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%); z-index: 5; }
.newpill .btn { box-shadow: var(--shadow-lg); border-radius: 999px; }

.day {
  position: sticky; top: var(--head-h, 55px); z-index: 4;
  display: flex; align-items: baseline; gap: 10px;
  padding: 11px 20px 5px; background: var(--surface);
}
.day b { color: var(--ink-2); font-size: 12px; font-weight: 700; }
.day span { display: none; }

/* One line per message: checkbox, then the row link with reply mark, sender, star, subject, flags, attachment
   and time. The star is a button, so it cannot live inside the link: it is positioned over the empty .sg
   column of the link, right after the fixed-width sender column (--who-w). */
.row {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center;
  border-top: 1px solid var(--line); background: var(--surface);
  transition: background-color .1s;
  scroll-margin-top: calc(var(--head-h, 55px) + 44px); scroll-margin-bottom: 16px;
}
.row:hover { background: var(--surface-2); }
.row.sel { background: var(--sel-bg); }
.row.open { box-shadow: inset 3px 0 0 var(--primary); }
.row .cb { display: grid; place-items: center; align-self: stretch; padding-left: 8px; cursor: pointer; }
.star-btn {
  display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: transparent; color: #8d96a1; padding: 0;
}
.row > .star-btn { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); left: calc(89px + var(--who-w)); }
.star-btn svg { width: 17px; height: 17px; }
.star-btn:hover { color: var(--star); }
.star-btn[aria-pressed="true"] { color: var(--star); }
.star-btn[aria-pressed="true"] svg { fill: currentColor; }
.row-main {
  display: grid; grid-template-columns: 22px var(--who-w) 22px minmax(0, 1fr) auto 18px 74px; gap: 12px; align-items: center;
  min-width: 0; min-height: var(--row-h); padding: 0 16px 0 2px; color: inherit; text-decoration: none;
}
.row-main:focus-visible { outline-offset: -2px; border-radius: 4px; }
/* Replied / forwarded mark before the sender, like classic Yahoo. */
.ri { display: grid; place-items: center; color: #6e7781; }
.ri svg { width: 16px; height: 16px; }
.ri svg .fill, .ri svg path.fill { fill: currentColor; stroke: none; }
.who { color: var(--ink); font-size: var(--row-fs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.unread .who { color: var(--ink); font-weight: 700; }
.l2 { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--row-fs); }
:root[data-density="small"] { --row-h: 26px; --row-fs: 13px; }
:root[data-density="large"] { --row-h: 39px; --row-fs: 14px; }
.subj { color: var(--ink); }
.row.unread .subj { color: var(--ink); font-weight: 700; }
.snip { display: none; color: var(--muted); }
body.show-pv .snip { display: inline; }
.snip::before { content: "  \2013  "; white-space: pre; }
.chips { display: flex; gap: 5px; align-items: center; overflow: hidden; max-width: 340px; justify-content: flex-end; }
/* .chips stays in the grid even when empty, or the time would slide into its column. */
.chips .chip { flex: none; max-width: 200px; }
.ac { display: grid; place-items: center; color: var(--muted); }
.ac svg { width: 16px; height: 16px; }
.row-main time { font-size: 11px; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.row.unread .row-main time { color: var(--ink); font-weight: 700; }
.draft-tag { color: var(--bad); font-weight: 600; margin-right: 6px; }
/* Hover quick actions sit over the attachment and time columns; they never open the message. */
.row-quick {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: flex; gap: 0; padding: 2px; border-radius: 8px;
  background: var(--surface); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .1s;
}
.row-quick .icon-btn { width: 32px; height: 32px; }
.row:hover .row-quick, .row:focus-within .row-quick { opacity: 1; pointer-events: auto; }
@media (hover: none) { .row-quick { display: none; } }

.list-foot { min-height: 8px; border-top: 1px solid var(--line); }
.sentinel { height: 1px; }
.foot-msg { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px; color: var(--muted); font-size: 13px; }
.foot-msg.err { color: var(--bad); }
.foot-msg.end { padding: 22px; }

.empty { display: grid; place-items: center; gap: 8px; padding: 80px 20px; text-align: center; color: var(--muted); }
.empty > svg { width: 44px; height: 44px; stroke-width: 1.3; color: var(--line-2); }
.empty b { color: var(--ink); font-size: 16px; }
.row-btns { display: flex; gap: 8px; margin-top: 6px; }

.skel-list { padding: 4px 0; }
.skel-row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; padding: 14px 20px 14px 96px; border-top: 1px solid var(--line); }
.sk, .skel { display: block; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.sk-av { height: 12px; width: 70%; }
.sk-lines { display: grid; gap: 8px; }
.sk-a { height: 12px; width: 60%; }
.sk-b { display: none; }
.skel { height: 56px; margin: 10px 0; }
.skel.tall { height: 220px; }
.loading { padding: 16px 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------ message view */
.view-msg { animation: fadein .14s ease-out; background: var(--surface); }
@keyframes fadein { from { opacity: 0; } }
.m-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 0 12px 0 14px; }
.m-head-row { display: flex; align-items: center; gap: 2px; min-width: 0; min-height: 54px; flex-wrap: wrap; }
.m-back { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 6px; border: 0; border-radius: 6px; background: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.m-back:hover { background: var(--surface-3); }
.m-back svg { width: 19px; height: 19px; }
.m-sep { width: 1px; height: 24px; background: var(--line); margin: 0 8px; flex: none; }
.m-pos { font-size: 13px; color: var(--muted); margin: 0 4px 0 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-head .icon-btn svg { width: 20px; height: 20px; }
.m-group { display: flex; align-items: center; gap: 0; }
.show-sm-only { display: none; }
.m-body { display: flex; flex-direction: column; gap: 18px; padding: 6px 28px 40px; }
.m-headcard { padding: 18px 0 4px; border-bottom: 1px solid var(--line); }
.m-title { display: flex; align-items: flex-start; gap: 12px; }
.m-subject { flex: 1; min-width: 0; margin: 0; font-size: 23px; font-weight: 400; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.m-where { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; white-space: nowrap; padding-top: 3px; }
.m-where .icon-btn { width: 32px; height: 32px; }
.m-where .icon-btn svg { width: 21px; height: 21px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
/* Status chips (Bulk mail, Marked as spam, Replied ...) sit small beside the folder name, not on a row of their own. */
.m-where .tags { display: inline-flex; flex-wrap: nowrap; gap: 4px; margin: 0 6px 0 0; }
.m-where .tags .chip { font-size: 11.5px; padding: 1px 7px; }
.sender { margin: 12px 0 10px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.sender .av { width: 48px; height: 48px; font-size: 16px; }
.sender .nm { color: var(--ink); font-weight: 700; font-size: 15.5px; overflow-wrap: anywhere; }
.sender-lines { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.sender .dt { text-align: right; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.sender .dt b { display: block; color: var(--ink-2); font-weight: 500; }
/* From / To / Cc / Bcc / Reply to: labels in one column, addresses in the next, each label on its address's line. */
.rcpts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: 1px 10px; font-size: 14px; line-height: 1.3; }
.rcpts dt { color: var(--muted); }
.rcpts dd { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }   /* one recipient per line */
/* Addresses copy themselves with one click; the copy icon shows on hover and focus (always on touch). */
.addr-chip {
  display: inline-flex; gap: 5px; align-items: baseline; max-width: 100%; overflow-wrap: anywhere; text-align: left;
  margin: -1px -5px; padding: 1px 5px; border: 0; border-radius: 4px; background: none;
  color: var(--ink-2); font: inherit; cursor: default;
}
.addr-chip:hover { background: var(--surface-3); color: var(--ink); }
.addr-chip svg { align-self: center; flex: none; width: 13px; height: 13px; color: var(--muted); opacity: 0; transition: opacity .1s; }
.addr-chip:hover svg, .addr-chip:focus-visible svg, .addr-chip.copied svg { opacity: 1; }
.addr-chip.copied { background: var(--ok-soft); color: var(--ok); }
.addr-chip.copied svg { color: var(--ok); }
@media (hover: none) { .addr-chip svg { opacity: .7; } }
.addr-chip b { font-weight: 400; color: var(--ink); }
.addr-chip b + span { color: var(--muted); }
.note-bar { display: flex; gap: 10px; align-items: flex-start; padding: 11px 16px; border-radius: var(--radius); background: var(--info-soft); color: var(--info); font-size: 13.5px; }
.note-bar svg { margin-top: 2px; }

/* Body: always a white sheet, like paper, even in dark mode (mail HTML assumes white). */
.body-card { overflow: hidden; border: 0; border-radius: 0; }
.img-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 14px; border-radius: 6px;
  background: var(--warn-soft); color: var(--warn); font-size: 13.5px; font-weight: 500; margin-bottom: 10px;
}
.img-bar span { flex: none; }
.img-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--muted); font-size: 12.5px; }
.img-note .img-stop { padding: 0; font-size: 12.5px; font-weight: 500; }
.img-bar .img-show { padding: 0; font-size: 13.5px; text-decoration: underline; text-underline-offset: 2px; }
.frame-wrap { position: relative; background: #ffffff; padding: 4px 0; }
.frame-wrap .skel { display: none; }
.frame-wrap.loading .skel { display: block; }
.frame-wrap.loading .body-frame { position: absolute; opacity: 0; }
.body-frame { display: block; width: 100%; height: 160px; border: 0; background: #ffffff; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .frame-wrap { padding: 10px 12px; border-radius: 6px; }
}
:root[data-theme="dark"] .frame-wrap { padding: 10px 12px; border-radius: 6px; }

/* A message too wide even at the smallest scale scrolls sideways inside its card, never the page. */
.frame-wrap.hscroll { overflow-x: auto; }

.atts-card .card-h { margin-bottom: 10px; }
.atts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.att { display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 10px; background: var(--surface-2); border-radius: 8px; min-width: 0; }
.att > .icon-btn { flex: none; }
.att-thumb { display: block; width: 48px; height: 48px; border-radius: 6px; overflow: hidden; flex: none; background: var(--surface-3); }
.att-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.att-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 6px; flex: none; background: var(--primary-soft); color: var(--primary-strong); }
.att-ic svg { width: 22px; height: 22px; }
.att-pdf { background: var(--bad-soft); color: var(--bad); }
.att-zip { background: var(--warn-soft); color: var(--warn); }
.att-image { background: var(--ok-soft); color: var(--ok); }
.att-meta { flex: 1; min-width: 0; display: grid; gap: 3px; }
/* Long names get two lines, then an ellipsis (the full name is the tooltip). */
.att-name { color: var(--ink); font-weight: 550; line-height: 1.3; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.att-sub { display: flex; gap: 4px 8px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 12px; min-width: 0; }
.att-type { min-width: 0; overflow-wrap: anywhere; }
.att-check { display: inline-flex; }
.att-check .chip { font-size: 11px; }
.att-why { color: var(--bad); font-size: 12px; line-height: 1.35; margin-top: 2px; white-space: normal; }
.img-bar.junk { background: var(--warn-soft); color: var(--warn); }

/* Delivery details (spam score, sender checks, sender rules) below the message. */
.m-details-h { margin: 14px 0 -4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.m-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.lead { margin: 0 0 12px; color: var(--ink-2); }
.meter { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.meter .big { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; min-width: 58px; }
.score-txt.s-good { color: var(--ok); } .score-txt.s-mid { color: var(--ink); }
.score-txt.s-warn { color: var(--warn); } .score-txt.s-high { color: var(--bad); }
.bar-wrap { flex: 1; min-width: 0; }
.bar { display: block; position: relative; height: 8px; border-radius: 99px; background: var(--surface-3); }
.bar .fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--muted); }
.bar .fill.s-good { background: var(--ok); } .bar .fill.s-warn { background: var(--warn); } .bar .fill.s-high { background: var(--bad); }
.bar .tick { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink-2); opacity: .45; border-radius: 1px; }
.bar .tick.hold { background: var(--warn); opacity: .9; }
.bar .tick.reject { background: var(--bad); opacity: .9; }
.bar-labels { display: flex; justify-content: space-between; margin-top: 5px; font-size: 11.5px; color: var(--muted); }
.rules { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rules td { padding: 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.rules td.p { width: 52px; padding-right: 10px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.rules td.p.pos { color: var(--bad); }
.rules td.p.neg { color: var(--ok); }
.rules td.p.zero { color: var(--muted); font-weight: 500; }
.rules .rl { color: var(--ink); font-weight: 600; }
.rules .rn { color: var(--muted); font: 11.5px var(--mono); margin-left: 6px; }
.rules .rd { color: var(--muted); display: block; }
.rules .rx { display: block; font: 12px var(--mono); color: var(--ink-2); overflow-wrap: anywhere; margin-top: 2px; }
.rules tr.minor { display: none; }
.rules.show-all tr.minor { display: table-row; }

.kv { display: grid; grid-template-columns: minmax(100px, auto) minmax(0, 1fr); gap: 0 16px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--muted); padding: 7px 0; border-top: 1px solid var(--line); }
.kv dd { margin: 0; padding: 7px 0; border-top: 1px solid var(--line); color: var(--ink-2); overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kv dt:first-of-type, .kv dt:first-of-type + dd { border-top: 0; }
.hint { flex-basis: 100%; color: var(--muted); font-size: 12.5px; }
.warnline { display: inline-flex; gap: 6px; align-items: center; color: var(--warn); font-size: 12.5px; flex-basis: 100%; }
.warnline svg { width: 14px; height: 14px; }
.checks .note { margin: -4px 0 10px; }

.sender-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; color: var(--ink); }
.sender-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.held-line, .unsub-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line); color: var(--ink-2);
}
.held-line > svg, .unsub-line > svg { color: var(--muted); }
.held-line > span, .unsub-line > span { flex: 1; min-width: 180px; }


/* ------------------------------------------------------------ tool pages */
.page-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px 14px 22px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.page-head .only-mobile { display: none !important; }
.page-title h1 { margin: 0; font-size: 19px; color: var(--ink); }
.page-title p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.page-body { display: flex; flex-direction: column; gap: 16px; padding: 18px 22px 22px; }
.page-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
/* ------------------------------------------------------------ privacy */
/* Privacy mode: names, subjects, folders and messages are blurred; only what is under the pointer or has the
   keyboard focus is readable (one row, one folder, one card at a time). */
:root.privacy .row .who, :root.privacy .row .l2, :root.privacy .row .chips,
:root.privacy #navCustom .nav-a, :root.privacy .nav .n, :root.privacy .tab-go span, :root.privacy .acct-who,
:root.privacy .m-body > *, :root.privacy .m-subject, :root.privacy .view-page .entry, :root.privacy .view-page td,
:root.privacy .compose .tokens, :root.privacy .compose .c-subj, :root.privacy .compose .c-editor, :root.privacy .compose .c-from {
  filter: blur(6px); transition: filter .12s;
}
:root.privacy .row:hover .who, :root.privacy .row:hover .l2, :root.privacy .row:hover .chips,
:root.privacy .row:focus-within .who, :root.privacy .row:focus-within .l2, :root.privacy .row:focus-within .chips,
:root.privacy #navCustom .nav-a:hover, :root.privacy #navCustom .nav-a:focus-visible, :root.privacy .nav-a:hover .n,
:root.privacy .tab:hover .tab-go span, :root.privacy .acct-menu:hover .acct-who,
:root.privacy .m-body > *:hover, :root.privacy .m-body > *:focus-within, :root.privacy .m-subject:hover,
:root.privacy .view-page .entry:hover, :root.privacy .view-page tr:hover td,
:root.privacy .compose .tokens:focus-within, :root.privacy .compose .tokens:hover, :root.privacy .compose .c-subj:focus,
:root.privacy .compose .c-subj:hover, :root.privacy .compose .c-editor:focus, :root.privacy .compose .c-editor.focus,
:root.privacy .compose .c-editor:hover, :root.privacy .compose .c-from:focus, :root.privacy .compose .c-from:hover {
  filter: none;
}
/* On: just a faint pill behind the icon (it should not tell the person next to you anything). */
.priv-btn .priv-t { display: none; }
.priv-btn.on { background: rgba(255, 255, 255, .13); }
.gh-opt.on { color: #fff; }   /* Night mode (filled moon) and preview: white when on, not the star orange of .icon-btn.on */
/* Quick hide: a plain cover over everything */
:root.hidden-now body > *:not(#coverEl) { visibility: hidden; }
.cover { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: #f2f3f5; color: #6b7280; outline: 0; cursor: pointer; }
.cover-in { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; }
.cover-mark { width: 40px; height: 40px; border-radius: 10px; background: #d9dde3; }
.cover-t { font-size: 18px; font-weight: 600; color: #4b5563; }
.cover-k { font-size: 12.5px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cover { background: #15181d; color: #9ba5b1; } :root:not([data-theme="light"]) .cover-mark { background: #2c323c; } :root:not([data-theme="light"]) .cover-t { color: #ccd2da; } }
:root[data-theme="dark"] .cover { background: #15181d; color: #9ba5b1; }
/* Airplane Wi-Fi suggestion */
.inflight-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 70; display: flex; gap: 12px; align-items: center;
  width: min(680px, calc(100vw - 24px)); padding: 12px 12px 12px 16px; border-radius: 10px; background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); font-size: 14px;
}
.inflight-bar > span { flex: 1; min-width: 0; }
.inflight-bar > svg { width: 20px; height: 20px; color: var(--primary); flex: none; }
.acct-k { margin-left: auto; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 4px; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .priv-btn .priv-t { display: none !important; } .gh-opt { display: none !important; } }

/* Rich text editor (edit.html in a sandboxed frame) and its formatting bar */
.c-editor { display: block; width: 100%; min-height: 140px; border: 0; background: #fff; }
.c-format { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; min-width: 0; }
.fbtn { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 5px; background: none; color: var(--ink-2); cursor: pointer; padding: 0; }
.fbtn:hover { background: var(--surface-3); color: var(--ink); }
.fbtn[aria-pressed="true"] { background: var(--primary-soft); color: var(--primary-strong); }
.fbtn svg { width: 18px; height: 18px; }
.fglyph span { font-size: 16px; line-height: 1; color: inherit; }
.g-bold span { font: 800 16px/1 Arial, Helvetica, sans-serif; }
.g-italic span { font: italic 600 18px/1 Georgia, "Times New Roman", serif; }
.g-underline span { font: 600 15px/1 Arial, Helvetica, sans-serif; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.g-strike span { font: 600 15px/1 Arial, Helvetica, sans-serif; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.g-smaller span { font: 700 12px/1 Arial, sans-serif; }
.g-bigger span { font: 700 17px/1 Arial, sans-serif; }
.g-smaller span::after { content: "\2212"; font-size: 10px; margin-left: 1px; vertical-align: top; }
.g-bigger span::after { content: "+"; font-size: 11px; margin-left: 1px; vertical-align: top; }
.fsize { display: inline-flex; align-items: center; }
.fsize .fbtn { width: 28px; }
.fsize .fsel { margin-right: 2px; }
.fsel-font { width: 118px; }
.fsel-size { width: 62px; text-align: center; }
.fsplit { display: inline-flex; align-items: center; border-radius: 5px; }
.fsplit:hover { background: var(--surface-3); }
.fsplit .fbtn:hover { background: var(--surface-3); }
.fsplit-main { width: 28px; position: relative; border-radius: 5px 0 0 5px; }
.fsplit-arrow { width: 16px; border-radius: 0 5px 5px 0; }
.fsplit-arrow svg { width: 13px; height: 13px; }
.fsplit-arrow[aria-expanded="true"] { background: var(--surface-3); }
.fsplit-main svg { width: 17px; height: 17px; margin-top: -4px; }
.fa-glyph { font: 700 16px/1 Arial, sans-serif; margin-top: -4px; color: inherit; }
.fbar { position: absolute; left: 6px; right: 6px; bottom: 5px; height: 4px; border-radius: 1px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
/* The palettes: Word's text colour box (Automatic, theme colours with shades, standard colours, More colors)
   and a highlighter box. */
.fcolor { flex-direction: column; gap: 0; padding: 10px 12px 8px; min-width: 0; }
.fsw-h { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin: 10px 0 6px; white-space: nowrap; }
.fsw-grid10 { display: grid; grid-template-columns: repeat(10, 18px); column-gap: 5px; }
.fsw-shades { margin-top: 5px; row-gap: 0; }
.fcolor .fswatch { width: 18px; height: 18px; border-radius: 0; border: 1px solid rgba(0, 0, 0, .14); position: relative; padding: 0; cursor: pointer; }
.fcolor .fsw-shades .fswatch { border-top-width: 0; }
.fcolor .fsw-shades .fswatch:nth-child(-n+10) { border-top-width: 1px; }
.fcolor .fswatch:hover, .fcolor .fswatch:focus-visible { transform: none; outline: 2px solid var(--primary); outline-offset: 1px; z-index: 1; }
.fcolor .fswatch.on { outline: 2px solid var(--ink); outline-offset: 1px; z-index: 1; }
.fsw-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 1px solid transparent; border-radius: 6px;
  background: none; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.fsw-row:hover, .fsw-row:focus-visible { background: var(--surface-3); }
.fsw-auto { border-color: var(--line-2); justify-content: center; }
.fsw-rowsw { width: 16px; height: 16px; border: 1px solid rgba(0, 0, 0, .25); border-radius: 2px; flex: none; }
.fsw-rowsw.auto { background: #000; }
.fsw-rowsw.none { background: linear-gradient(to top right, transparent calc(50% - 1px), #d13438 calc(50% - 1px), #d13438 calc(50% + 1px), transparent calc(50% + 1px)), #fff; }
.fsw-sep { height: 1px; background: var(--line); margin: 8px -12px 6px; }
.fsw-more { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.fsw-more:hover, .fsw-more:focus-visible { background: var(--surface-3); }
.fsw-wheel { width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(#e81123, #ffb900, #16c60c, #00b7c3, #0078d4, #886ce4, #e81123); flex: none; }
.fsw-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; bottom: 10px; left: 20px; }
.femo-pop { flex-direction: column; gap: 0; width: 352px; padding: 0; overflow: hidden; }
.femo-head { position: relative; display: flex; align-items: center; gap: 6px; padding: 8px 8px 6px; }
.femo-search { flex: 1; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface-2);
  color: var(--ink); font: inherit; font-size: 14px; }
.femo-search:focus { outline: none; border-color: var(--primary); background: var(--surface); }
.femo-tonebtn, .femo-tone { width: 32px; height: 32px; border: 0; border-radius: 6px; background: none; cursor: pointer; padding: 0; font-size: 19px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.femo-tonebtn:hover, .femo-tone:hover, .femo-tonebtn[aria-expanded="true"] { background: var(--surface-3); }
.femo-tones { position: absolute; right: 8px; top: 42px; z-index: 2; display: flex; gap: 2px; padding: 4px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-lg); }
.femo-tones[hidden] { display: none; }
.femo-body { height: 280px; overflow-y: auto; overscroll-behavior: contain; padding: 0 6px 6px; position: relative; }
.femo-sec { padding-top: 2px; }
.femo-h { position: sticky; top: 0; z-index: 1; padding: 6px 4px 4px; background: var(--surface); color: var(--muted); font-size: 11.5px;
  font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.femo-h:empty { display: none; }
.femo-tabs { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0; padding: 4px 6px; border-top: 1px solid var(--line); background: var(--surface-2); }
.femo-tabs[hidden] { display: none; }
.femo-tab, .femo { border: 0; background: none; cursor: pointer; padding: 0; border-radius: 6px; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.femo-tab { width: 100%; min-width: 0; overflow: hidden; height: 30px; font-size: 17px; opacity: .5; filter: grayscale(1); }
.femo-tab:hover { opacity: .8; }
.femo-tab[aria-selected="true"] { opacity: 1; filter: none; background: var(--surface-3); }
.femo-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 1px; }
.femo { min-width: 0; overflow: hidden; }
.femo { height: 36px; font-size: 24px; line-height: 1; }
.femo:hover, .femo:focus-visible { background: var(--surface-3); }
.femo-empty { grid-column: 1 / -1; padding: 14px 6px; color: var(--muted); font-size: 13px; text-align: center; }
.fsep { width: 1px; height: 20px; margin: 0 4px; background: var(--line); }
.fsel { height: 30px; padding: 0 4px; border: 1px solid transparent; border-radius: 5px; background: none; color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; }
.fsel:hover, .fsel:focus { border-color: var(--line-2); }
.fwrap { position: relative; display: inline-flex; }
.fpop {
  position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 40; display: flex; gap: 6px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-lg);
}
.fpop[hidden] { display: none; }
.fswatch { width: 22px; height: 22px; border: 1px solid rgba(0, 0, 0, .15); border-radius: 50%; cursor: pointer; padding: 0; }
.fswatch:hover { transform: scale(1.12); }
.flink { align-items: center; width: min(420px, 80vw); }
.flink-in { flex: 1; min-width: 0; height: 32px; }
@media (max-width: 640px) { .c-format .fsel, .c-format .fsep { display: none; } .c-foot { flex-wrap: wrap; } }

/* Recipient suggestions under To / Cc / Bcc */
.tok-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
.tok-wrap > .tokens { flex: 1; }
.ac-list {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; width: min(520px, 100%); margin: 0; padding: 4px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-lg);
}
.ac-item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; cursor: pointer; }
.ac-item.on, .ac-item:hover { background: var(--primary-soft); }
.ac-t { display: flex; flex-direction: column; min-width: 0; }
.ac-t b, .ac-t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-t b { color: var(--ink); font-weight: 600; font-size: 14.5px; }
.ac-t span { color: var(--muted); font-size: 13px; }
.ac-when { color: var(--muted); font-size: 12px; white-space: nowrap; }
@media (max-width: 640px) { .ac-when { display: none; } }
/* All mail results: read-only, each row says its folder */
.toolbar.allmail .selbox, .toolbar.allmail #bulkActs { display: none; }
.fold-tag { flex: none; padding: 1px 8px; border-radius: 4px; background: var(--surface-3); color: var(--ink-2); font-size: 12px; white-space: nowrap; }
/* Settings page */
.sp-page { max-width: 860px; }
.sp-card h2 { margin: 0 0 4px; font-size: 18px; color: var(--ink); }
.sp-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 10px 24px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.sp-item:first-of-type { border-top: 0; }
.sp-it h3 { margin: 0; font-size: 15px; color: var(--ink); }
.sp-it p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.sp-radios { display: grid; gap: 8px; }
.sp-radio { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.sp-radio input { margin: 3px 0 0; accent-color: var(--primary); }
.sp-rl { display: block; color: var(--ink); font-size: 14.5px; }
.sp-rs { display: block; color: var(--muted); font-size: 12.5px; }
.sp-item > .switch, .sp-item > .btn { justify-self: start; }
.sp-sel { max-width: 100%; }
.sp-photo { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.sp-photo-c { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.sp-btns { display: flex; gap: 8px; }
.sp-av { width: 64px; height: 64px; font-size: 20px; flex: none; }
.av-photo { overflow: hidden; background: var(--surface-3); }
.av-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.sp-from { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }
.sp-chks { display: grid; gap: 6px; max-height: 320px; overflow: auto; padding-right: 6px; }
.sp-chk { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink); cursor: pointer; overflow-wrap: anywhere; }
.sp-chk input { flex: none; }
@media (max-width: 640px) { .sp-item { grid-template-columns: minmax(0, 1fr); } }
/* Signatures page */
.sig-page { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.sig-card { display: flex; flex-direction: column; gap: 8px; }
.sig-l { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.sig-sel { max-width: 100%; }
.sig-def { align-self: flex-start; padding: 2px 0 0; }
/* Signatures page (2026-11-04): the editor is the preview, between a sample reply and quote */
.sig-urlrow { display: flex; gap: 8px; }
.sig-urlrow .input { flex: 1; min-width: 0; }
.sig-fromrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.sig-fromrow .sig-sel { flex: 1 1 320px; min-width: 0; }
.sig-def { padding: 2px 0; }
.sig-bar { padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-sm) var(--radius-sm) 0 0; border-bottom: 0; background: var(--surface-2); margin-bottom: -8px; gap: 4px; }
.sig-bar .btn svg { width: 16px; height: 16px; }
.sig-bar .btn { gap: 6px; }
.sig-sep { width: 1px; height: 20px; margin: 0 4px; background: var(--line-2); }
.sig-copy { width: auto; max-width: 260px; height: 32px; padding-top: 0; padding-bottom: 0; font-size: 13.5px; }
.sig-codebtn[aria-pressed="true"] { background: var(--primary-soft); color: var(--primary-strong); }
.sig-sample { padding: 14px 16px; border: 1px solid var(--line); border-radius: 0 0 var(--radius-sm) var(--radius-sm); background: #fff; color: #000; font-size: 15px; line-height: 1.5; }
.sig-sample-t, .sig-sample-q { color: #6b7280; white-space: pre-wrap; user-select: none; }
.sig-sample-q { margin-top: 4px; }
.sig-editor { min-height: 64px; outline: 1px dashed transparent; outline-offset: 4px; border-radius: 2px; }
.sig-editor:hover { outline-color: #c3cad5; }
.sig-editor.focus { outline: 2px solid var(--primary); }
.sig-pop { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow, 0 6px 20px rgba(0,0,0,.12)); }
#sigLinkPop { flex-direction: row; flex-wrap: wrap; align-items: center; }
#sigLinkPop .input { flex: 1 1 240px; min-width: 0; }
.sig-poprow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sig-poprow .input { flex: 1 1 220px; min-width: 0; }
.sig-del { color: var(--bad); }
.sig-warn { display: grid; gap: 6px; }
.sig-warn p { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn); font-size: 13.5px; }
.sig-warn svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.sig-code .sig-html { width: 100%; }
.sig-plainbox { display: grid; gap: 6px; }
.sig-plain { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); font: inherit; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.sig-plainrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.sig-plainrow .hint { margin: 0; }
.sig-text { min-height: 120px; resize: vertical; font: inherit; line-height: 1.5; }
.sig-html { min-height: 150px; resize: vertical; font-size: 13px; line-height: 1.45; }
.sig-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.sig-count, .sig-status { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sig-addrs { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.sig-addr { display: grid; gap: 2px; width: 100%; padding: 9px 10px; border: 1px solid transparent; border-radius: var(--radius-sm); background: none; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.sig-addr:hover { background: var(--surface-2); }
.sig-addr.on { background: var(--primary-soft); border-color: var(--primary-soft-2); }
.sig-addr-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sig-addr-a { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.sig-addr-s { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sig-addr-s.muted { color: var(--muted); font-style: italic; }
.sig-badge { flex: none; padding: 1px 7px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); font-size: 11.5px; font-weight: 600; }
.entries { list-style: none; margin: 0; padding: 0; }
.entry { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 0; border-top: 1px solid var(--line); }
.entry:first-child { border-top: 0; }
.entry .ev { flex: 1; min-width: 160px; color: var(--ink); overflow-wrap: anywhere; }
.entry .meta { color: var(--muted); font-size: 12.5px; }
.ro { margin-top: 12px; }
.ro h4 { margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }
.ro-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.addr-intro p { margin: 0 0 6px; }
.addr-intro p:last-child { margin: 0; }
.addr-filters { display: grid; gap: 12px; }
.af-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.af-row input[type="search"] { flex: 1 1 240px; }
.addr-groups { display: flex; flex-direction: column; gap: 16px; }
.addr-group { padding: 0; overflow: clip; }
.ag-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.ag-head h3 { margin: 0; font-size: 15.5px; color: var(--ink); }
.atable { display: grid; }
.arow {
  display: grid; align-items: center; gap: 14px; padding: 11px 20px; border-top: 1px solid var(--line);
  grid-template-columns: minmax(180px, 1.4fr) 128px 104px 90px minmax(140px, 1fr) minmax(160px, 1.1fr) 104px;
}
.arow.ahead { border-top: 0; padding-top: 9px; padding-bottom: 9px; background: var(--surface-2); font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.arow.is-rej { background: color-mix(in srgb, var(--bad-soft) 45%, transparent); }
.arow.is-rej .ac-addr b { text-decoration: line-through; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.ac-addr { min-width: 0; display: grid; gap: 4px; }
.ac-addr b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.ac-addr .tags { margin: 0; }
.ac-num { display: grid; }
.ac-num b { color: var(--ink); font-variant-numeric: tabular-nums; font-size: 15px; }
.ac-num small, .ac-share small { color: var(--muted); font-size: 11.5px; }
.ac-share { display: grid; gap: 4px; }
.share-bar { display: block; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.share-bar span { display: block; height: 100%; background: var(--muted); border-radius: 99px; }
.share-bar.mid span { background: var(--warn); }
.share-bar.hi span { background: var(--bad); }
.ac-seen { color: var(--muted); font-size: 13px; }
.ac-top { display: grid; gap: 2px; min-width: 0; font-size: 12.5px; }
.topd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topd small { color: var(--muted); }
.ac-verdict { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.reasons { margin: 0; padding-left: 16px; color: var(--muted); font-size: 12px; }
.ac-act { justify-self: end; }

/* ------------------------------------------------------------ compose, written in place */
/* The panel lives in the main column and shows only while its tab is in front (body.compose-front);
   in the background it stays alive with everything typed so far. */
.compose { display: flex; flex-direction: column; min-height: calc(100vh - 118px); background: var(--surface); }
body:not(.compose-front) .compose { display: none !important; }
body.compose-front .main > .view { display: none !important; }
.c-head { display: flex; align-items: center; gap: 4px; padding: 10px 14px 0 28px; }
.c-title { flex: 1; min-width: 0; margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-main { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0 28px; }
.c-row { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); min-height: 46px; padding: 4px 0; font-size: 14px; }
.c-row > label { width: 52px; flex: none; color: var(--muted); font-size: 14px; }
.c-row .c-sig { margin-left: auto; padding: 0 4px; white-space: nowrap; text-decoration: none; }
.c-row .c-sig:hover { text-decoration: underline; }
.c-from { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }   /* the value holder; the menu below is what you see */
.c-main { padding-top: 6px; }
.c-row-from .c-close { margin-left: 4px; }
.c-from-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
.c-from-btn { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.c-from-btn:focus { outline: 0; }
.c-from-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-from-btn svg { width: 15px; height: 15px; flex: none; color: var(--muted); }
.c-from-menu {
  position: absolute; left: -8px; top: calc(100% + 4px); z-index: 30; width: max-content; max-width: min(560px, 90vw); max-height: 60vh; overflow-y: auto;
  margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-lg);
}
.c-from-menu[hidden] { display: none; }
.c-from-menu li { display: flex; align-items: baseline; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 6px; cursor: pointer; white-space: nowrap; font-size: 14px; outline: 0; }
.c-from-menu li:hover, .c-from-menu li:focus { background: var(--surface-3); }
.c-from-menu .ck { width: 16px; flex: none; align-self: center; color: var(--primary); }
.c-from-menu .ck svg { width: 15px; height: 15px; display: block; }
.c-from-menu .nm { color: var(--ink); }
.c-from-menu .em { color: var(--muted); font-size: 13px; }
.c-more { display: flex; gap: 12px; }
.c-more .linkbtn { padding: 0; font-weight: 500; font-size: 14px; color: var(--muted); }
.c-more .linkbtn:hover { color: var(--primary-strong); }
.tokens { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; cursor: text; }
.tok {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 3px 2px 4px; border-radius: 999px;
  background: var(--surface); color: var(--ink); font-size: 14px; line-height: 22px; box-shadow: inset 0 0 0 1px var(--line-2);
}
.tok::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--surface-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239aa3ae'%3E%3Ccircle cx='12' cy='9' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0z'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.tok > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tok.bad { background: var(--bad-soft); color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.tok-x { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); padding: 0; }
.tok-x:hover { background: var(--surface-3); color: var(--ink); }
.tok-x svg { width: 12px; height: 12px; }
.tok-input { flex: 1 1 120px; min-width: 100px; border: 0; outline: 0; background: transparent; padding: 5px 0; color: var(--ink); font-size: 14px; }
.c-subj { flex: 1; border: 0; outline: 0; background: transparent; padding: 5px 0; font-size: 14px; color: var(--ink); }
.c-subj::placeholder { color: var(--muted); }
.c-note { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 8px 10px; border-radius: 6px; background: var(--info-soft); color: var(--info); font-size: 12.5px; }
.c-note svg { width: 15px; height: 15px; margin-top: 1px; }
/* What you write matches the signature: Arial 10pt (the Yahoo signature's font), one line height everywhere
   (this textarea, the signature preview in sig.php, the quoted box and the HTML that is sent). */
.compose.split .c-body { flex: none; min-height: 0; padding-bottom: 0; overflow: hidden; }
.c-sigbox { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 0 12px; margin-top: 0; }
.c-sigframe { display: block; width: 100%; max-width: 760px; height: 120px; border: 0; background: #fff; border-radius: 4px; }
.c-sigtext { white-space: pre-wrap; color: var(--ink); font: 10pt/1.4 Arial, Helvetica, sans-serif; }
.c-sighelp { color: var(--muted); font-size: 12px; }
.c-sigedit { padding: 0; font-size: 12px; font-weight: 500; text-decoration: none; }
.c-sigframe.editing, .c-sigtext:focus { outline: 2px solid var(--primary-soft-2); outline-offset: 3px; border-radius: 3px; }
.c-sigtext { outline: 0; cursor: text; }
.c-sigsave { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; padding: 8px 12px; border-radius: 8px;
  background: var(--primary-soft); color: var(--ink); font-size: 13.5px; }
.c-sigsave .linkbtn { padding: 0; font-size: 13px; }
.c-sigedit:hover { text-decoration: underline; }
.c-quote {
  width: 100%; min-height: 60px; resize: none; overflow: hidden; border: 0; border-top: 1px solid var(--line); outline: 0;
  background: transparent; padding: 14px 0 20px; color: var(--ink-2); font: 10pt/1.4 Arial, Helvetica, sans-serif; white-space: pre-wrap;
}
.c-body {
  flex: 1; min-height: 340px; width: 100%; resize: none; border: 0; outline: 0; background: transparent;
  padding: 16px 0; color: var(--ink); font: 10pt/1.4 Arial, Helvetica, sans-serif; white-space: pre-wrap;
}
.c-atts { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; max-height: 160px; overflow: auto; }
.c-att { position: relative; display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 10px; border-radius: 6px; background: var(--surface-2); font-size: 13px; overflow: hidden; }
.c-att svg { width: 15px; height: 15px; color: var(--muted); }
.c-att.err { background: var(--bad-soft); color: var(--bad); }
.c-att.err svg { color: var(--bad); }
.c-att-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.c-att.err .c-att-name { color: var(--bad); }
.c-att-size { color: var(--muted); font-variant-numeric: tabular-nums; }
.c-att.err .c-att-size { color: var(--bad); }
.c-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--surface-3); }
.c-prog span { display: block; height: 100%; background: var(--primary); transition: width .15s; }
.c-drop {
  display: none; position: absolute; inset: 8px; z-index: 3; place-items: center; align-content: center; gap: 8px;
  border: 2px dashed var(--primary); border-radius: 12px; background: color-mix(in srgb, var(--primary-soft) 92%, transparent);
  color: var(--primary-strong); font-weight: 600;
}
.c-drop svg { width: 28px; height: 28px; }
.compose.drop .c-drop { display: grid; }
.c-foot {
  position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 6px;
  padding: 14px 20px 16px 28px; border-top: 1px solid var(--line); background: var(--surface);
}
.c-foot .c-send { min-width: 128px; height: 46px; font-size: 16px; border-radius: 5px; }
.c-foot .icon-btn svg { width: 20px; height: 20px; }
.c-status { color: var(--muted); font-size: 12.5px; white-space: nowrap; }

/* ------------------------------------------------------------ toasts, dialogs */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; justify-items: end; gap: 6px; width: auto; max-width: min(360px, calc(100vw - 32px)); }
.toast {
  display: flex; gap: 7px; align-items: center; padding: 5px 4px 5px 10px; border-radius: 6px;
  background: #2b3038; color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); font-size: 12.5px; line-height: 1.35;
  animation: pop .2s ease-out;
}
.toast .tm { flex: 1; min-width: 0; }
.toast.ok > svg:first-child { color: #7ee2a8; }
.toast.error { background: var(--bad); color: #fff; }
.toast-act { border: 0; background: rgba(255, 255, 255, .14); color: inherit; border-radius: 6px; padding: 4px 10px; font-weight: 600; white-space: nowrap; }
.toast-act:hover { background: rgba(255, 255, 255, .24); }
.toast-x { border: 0; background: none; color: inherit; opacity: .7; display: grid; place-items: center; padding: 4px; border-radius: 6px; }
.toast-x:hover { opacity: 1; }
.toast-x svg { width: 12px; height: 12px; }
.toast > svg:first-child { width: 14px; height: 14px; flex: none; }
.toast-act { padding: 2px 8px; font-size: 12px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .toast { background: #eceef2; color: #1d2228; }
  :root:not([data-theme="light"]) .toast.ok > svg:first-child { color: #1d7f45; }
  :root:not([data-theme="light"]) .toast-act { background: rgba(0, 0, 0, .08); }
  :root:not([data-theme="light"]) .toast.error, :root:not([data-theme="light"]) .btn-danger, :root:not([data-theme="light"]) .btn-danger:hover:not(:disabled), :root:not([data-theme="light"]) .btn-danger-soft:hover:not(:disabled) { color: #2a1115; }
}
:root[data-theme="dark"] .toast { background: #eceef2; color: #1d2228; }
:root[data-theme="dark"] .toast.ok > svg:first-child { color: #1d7f45; }
:root[data-theme="dark"] .toast-act { background: rgba(0, 0, 0, .08); }
:root[data-theme="dark"] .toast.error, :root[data-theme="dark"] .btn-danger, :root[data-theme="dark"] .btn-danger:hover:not(:disabled), :root[data-theme="dark"] .btn-danger-soft:hover:not(:disabled) { color: #2a1115; }


/* Signed out while writing: a persistent bar instead of a reload that would lose the message. */
.signout-bar {
  position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 70; display: flex; gap: 12px;
  align-items: center; width: min(640px, calc(100vw - 24px)); padding: 12px 12px 12px 16px; border-radius: 10px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); font-size: 14px;
}
.signout-bar > span { flex: 1; min-width: 0; }
.signout-bar > svg { color: var(--warn); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
dialog {
  border: 0; border-radius: 10px; padding: 22px; width: min(440px, calc(100vw - 32px));
  background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-lg);
}
dialog::backdrop { background: rgba(16, 22, 30, .45); }
dialog h2 { margin: 0 0 8px; font-size: 18px; color: var(--ink); }
dialog p { margin: 0 0 18px; }
dialog p:empty { display: none; }
dialog .acts { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
dialog form { margin: 0; }
dialog .acts.choices { flex-direction: column; align-items: stretch; gap: 8px; }
dialog .choice { display: flex; align-items: center; gap: 12px; text-align: left; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
dialog .choice:hover, dialog .choice:focus-visible { border-color: var(--bad); background: var(--bad-soft); outline: none; }
dialog .choice svg { color: var(--bad); flex: none; width: 20px; height: 20px; }
dialog .choice .ch-t { display: grid; gap: 1px; min-width: 0; }
dialog .choice b { font-weight: 600; }
dialog .choice small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
dialog .acts.choices .btn-ghost { align-self: flex-end; margin-top: 4px; }
.move-list { list-style: none; margin: 10px 0 0; padding: 0; max-height: min(420px, 60vh); overflow: auto; }
.move-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px;
  background: transparent; color: var(--ink-2); text-align: left; white-space: pre;
}
.move-item:hover, .move-item:focus-visible { background: var(--primary-soft); color: var(--primary-strong); }
/* Move suggestions (2026-11-03): "Suggested" folders first in the dialog, and a one-click button beside Move. */
.move-h { padding: 8px 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.move-h:first-child { padding-top: 0; }
.move-item.sugg { white-space: normal; }
.move-item.sugg > span { font-weight: 600; color: var(--ink); }
.move-why { margin-left: auto; padding-left: 12px; font-size: 12px; color: var(--muted); text-align: right; }
.sugg-btn { background: var(--primary-soft); color: var(--primary-strong); margin-left: 4px; }
.sugg-btn:hover:not(:disabled) { background: var(--primary-soft); color: var(--primary-strong); filter: brightness(.96); }
.sugg-l { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .sugg-l { max-width: 96px; } }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 14px 0 0; align-items: center; }
.keys dt { display: flex; gap: 5px; align-items: center; }
.keys dd { margin: 0; }
.keys .sep { color: var(--muted); font-size: 12px; }

/* ------------------------------------------------------------ sign-in and unlock (rendered by index.php) */
.auth-page { display: grid; place-items: center; min-height: 100vh; padding: 20px; background: var(--surface-2); }
.auth-card {
  width: min(420px, 100%); background: var(--surface); border-radius: 12px;
  box-shadow: var(--shadow); padding: 32px;
}
.auth-card .brand { width: auto; color: var(--ink); }
.auth-card .brand-mark { background: var(--gh-band); color: #fff; }
.brand > span:last-child { min-width: 0; }
.brand strong { display: block; font-size: 17px; line-height: 1.2; }
.brand small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand--lg .brand-mark { width: 44px; height: 44px; border-radius: 11px; }
.brand--lg .brand-mark svg { width: 24px; height: 24px; }
.auth-card h1 { margin: 26px 0 4px; font-size: 22px; line-height: 1.3; color: var(--ink); }
.auth-card > .muted { margin: 0 0 20px; }
.auth-form { display: grid; gap: 16px; }
.auth-form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.auth-form input[type="email"], .auth-form input[type="password"], .auth-form input[type="text"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 400;
}
.auth-form input[readonly] { background: var(--surface-2); color: var(--muted); }
.auth-form input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft-2); }
.auth-form .check { display: flex; align-items: center; gap: 9px; font-weight: 400; }
.alert {
  background: var(--bad-soft); color: var(--bad); border-radius: var(--radius-sm);
  padding: 10px 12px; margin: 0 0 16px; font-size: 14px;
}
.auth-alt { margin: 12px 0 0; display: flex; justify-content: center; }
.fine { margin: 18px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
@media (max-width: 480px) {
  .auth-page { padding: 12px; align-items: start; }
  .auth-card { padding: 24px 20px; }
}

/* ------------------------------------------------------------ responsive */
.only-mobile { display: none; }
/* No transitions before the first paint (app.js adds .ready), so the phone drawer never slides on load. */
html:not(.ready) .side, html:not(.ready) .scrim { transition: none !important; }
@media (max-width: 1280px) {
  :root { --who-w: 200px; }      /* the row star is placed from --who-w, so the column must use it too */
  .row-main { grid-template-columns: 22px var(--who-w) 22px minmax(0, 1fr) auto 20px 72px; }
  .chips { max-width: 220px; }
  .chips .chip-to { display: none; }
  .bulk-acts .tl { display: none; }
}
@media (max-width: 1180px) {
  .m-grid { grid-template-columns: minmax(0, 1fr); }
  .arow { grid-template-columns: minmax(180px, 1.4fr) 120px 96px minmax(150px, 1fr) 104px; }
  .arow .ac-seen, .arow .ac-top { display: none; }
}
@media (max-width: 960px) {
  .gh-band { flex-wrap: wrap; gap: 8px 10px; min-height: 0; padding: 10px 12px; }
  .brand { width: auto; flex: 1 1 auto; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 18px; }
  .search { order: 5; flex: 1 1 100%; max-width: none; height: 42px; }
  .search-go { width: 56px; }
  .hide-mobile { display: none !important; }
  .gh-tabs { padding: 0 12px; min-height: 0; }
  .tabs { padding-top: 6px; }
  .tabs:empty { padding: 0; }
  .tab { height: 34px; max-width: 220px; }
  .app { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .main { border-left: 0; min-height: 70vh; }
  .only-mobile { display: inline-grid; }
  .side {
    position: fixed; inset: 0 auto 0 0; z-index: 30; width: min(300px, 86vw); max-height: none; background: var(--surface);
    transform: translateX(-102%); visibility: hidden;
    transition: transform .24s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .24s;
  }
  .side.is-open { transform: none; box-shadow: var(--shadow-lg); visibility: visible; transition-delay: 0s; }
  .side-tools { display: block; }
  .side-foot { display: flex; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(16, 22, 30, .4); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .scrim.is-open { opacity: 1; pointer-events: auto; }
  .m-body { padding: 4px 16px 100px; }
  .page-body { padding: 12px; }
  .compose { min-height: 70vh; }
  .c-head { padding-left: 16px; }
  .c-main { padding: 0 16px; }
  .c-foot { padding: 12px 12px 14px 16px; }
  .arow { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .arow.ahead { display: none; }
  .arow .ac-addr { grid-column: 1 / -1; }
  .arow .ac-verdict { grid-column: 1 / -1; }
  .arow .ac-share { grid-column: 1; }
  .arow .ac-act { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
}
@media (max-width: 1180px) { :root { --who-w: 190px; } }
@media (max-width: 960px) { .side-grip { display: none; } .nav-a svg { display: block; } .sig-page { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  body { font-size: 14px; }
  .adv-btn span { display: none; }
  .adv-btn { padding: 0 10px; }
  .adv-panel { position: fixed; left: 8px; right: 8px; top: 108px; max-height: calc(100vh - 120px); overflow: auto; border-radius: 8px; }
  .adv-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .adv-contains legend { float: none; }
  .folder-title.sr { position: static; width: auto; height: auto; clip: auto; overflow: hidden; }
  .bulk-acts { margin-left: 0; }
  .row-main .sg { display: none; }
  .row > .star-btn { top: auto; left: auto; transform: none; }
  .toolbar { padding: 0 8px 0 12px; gap: 2px; min-height: 50px; }
  .folder-title { font-size: 15px; max-width: 34vw; margin-right: 6px; }
  .tb-info { display: none; }
  .tbtn .tl { display: none; }
  .tbtn { padding: 0 8px; }
  .vmenu-btn .vl { display: none; }
  /* Two lines on a phone: sender and time, then subject and preview; the star sits under the time. */
  .row { grid-template-columns: 38px minmax(0, 1fr); }
  .row .cb { padding-left: 6px; grid-row: 1; grid-column: 1; }
  .star-btn { position: absolute; right: 8px; bottom: 6px; z-index: 1; }
  .row-main {
    grid-column: 2; grid-row: 1;
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who time" "subj subj" "chips chips";
    gap: 1px 10px; padding: 9px 40px 9px 0; min-height: 0;
  }
  .row-main .ri { display: none; }
  .row-main .who { grid-area: who; }
  .row-main time { grid-area: time; font-size: 12.5px; }
  .row-main .l2 { grid-area: subj; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; }
  .row-main .chips { grid-area: chips; justify-content: flex-start; max-width: none; margin-top: 3px; }
  .row-main .ac { display: none; }
  .chips .chip:not(.chip-bad), .chips .score { display: none; }
  .day { padding: 12px 12px 6px; }
  .hide-sm { display: none; }
  .show-sm-only { display: inline-grid; }
  .m-head { padding: 0 6px; }
  .m-head .m-hide-sm { display: none; }
  .m-sep { margin: 0 2px; }
  .m-pos { display: none; }
  .m-subject { font-size: 19px; }
  .sender { grid-template-columns: 40px minmax(0, 1fr); }
  .sender .av { width: 40px; height: 40px; }
  .sender .dt { grid-column: 1 / -1; text-align: left; }
  .frame-wrap { padding: 4px 0; }
  .card.pad { padding: 16px; }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .kv dd { border-top: 0; padding-top: 0; }
  .c-foot .c-send { min-width: 104px; }
  .toasts { left: auto; right: 12px; bottom: 12px; }
  .page-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Touch screens (iPhone zooms into any text field under 16px, then the page scrolls sideways). */
@media (hover: none) and (pointer: coarse), (max-width: 640px) {
  .search input, .tok-input, .c-subj, .c-body, .c-from, .input, select, textarea,
  .auth-form input[type="email"], .auth-form input[type="password"], .auth-form input[type="text"] { font-size: max(16px, 1em); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  #refreshBtn.busy svg { animation: none; }
}
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* ⋯ menu at the top right of an open message */
.msgmenu { position: relative; display: inline-flex; }
.msgmenu .vmenu { top: calc(100% + 4px); min-width: 0; }
.msgmenu .vmenu[hidden] { display: none; }
.msgmenu .vmenu button { white-space: nowrap; color: var(--ink-2); }

/* ------------------------------------------------------------ Sites (sidebar views by domain) */
#navSites li.site { position: relative; }
#navSites .nav-a { padding-left: 34px; }
#navSites li.site-addr .nav-a { padding-left: 50px; font-size: 13px; }
#navSites li.quiet .nav-a { color: var(--muted); }
#navSites .site-exp {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%); z-index: 1;
  display: grid; place-items: center; width: 20px; height: 22px; padding: 0; border: 0; border-radius: 4px;
  background: none; color: var(--muted);
}
#navSites .site-exp:hover { background: var(--side-hover); color: var(--ink); }
#navSites .site-exp svg { display: block; width: 13px; height: 13px; transition: transform .15s; }
#navSites .site-exp[aria-expanded="true"] svg { transform: rotate(90deg); }
:root.privacy #navSites .nav-a { filter: blur(5px); }
:root.privacy #navSites .nav-a:hover, :root.privacy #navSites .nav-a:focus-visible { filter: none; }
@media (max-width: 960px) { #navSites .site-exp { left: 4px; } }
.list.multi .cb { visibility: hidden; }

.m-details[hidden] { display: none; }

/* Empty Spam / Empty Trash: the count becomes a red trash can on hover (Yahoo-style) */
#navFolders li { position: relative; }
.nav-empty {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  display: none; place-items: center; width: 28px; height: 26px; padding: 0; border: 0; border-radius: 5px;
  background: none; color: var(--bad);
}
.nav-empty svg { width: 16px; height: 16px; display: block; }
.nav-empty:hover, .nav-empty:focus-visible { background: var(--bad-soft); }
#navFolders li:hover > .nav-empty, #navFolders li:focus-within > .nav-empty { display: grid; }
/* Only where the trash can takes its place (Spam, Trash): Drafts, Packages & Trips and the rest keep their count (2026-10-22). */
#navFolders li:hover > .nav-a:has(+ .nav-empty) .n, #navFolders li:focus-within > .nav-a:has(+ .nav-empty) .n { visibility: hidden; }
@media (hover: none) { .nav-empty { display: grid; } #navFolders li > .nav-a:has(+ .nav-empty) .n { visibility: hidden; } }

/* the message ⋯ menu in the toolbar (Yahoo's place and items) */
.m-head .msgmenu .vmenu { left: 0; right: auto; top: calc(100% + 6px); min-width: 250px; }
.vmenu .vm-key { margin-left: auto; padding: 0 0 0 18px; border: 0; background: none; box-shadow: none; font: 500 13px/1 inherit; color: var(--muted); min-width: 0; }
.raw-dlg { width: min(1100px, 94vw); height: min(80vh, 900px); padding: 0; border: 0; border-radius: 10px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.raw-dlg:not([open]) { display: none; }
.raw-dlg::backdrop { background: rgba(15, 20, 30, .45); }
.raw-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); }
.raw-head h2 { margin: 0; font-size: 15px; }
.raw-note { margin: 0; padding: 6px 18px; background: var(--info-soft); color: var(--info); font-size: 12.5px; }
.raw-pre { flex: 1; min-height: 0; margin: 0; padding: 14px 18px; overflow: auto; font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); outline: 0; }
.print-frame { position: fixed; right: 0; bottom: 0; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }

/* Toolbars: actions centred, like Yahoo (list: checkbox left, View right; message: Back left, arrows right) */
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.tb-left { display: flex; align-items: center; gap: 4px; min-width: 0; }
.tb-right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.toolbar .bulk-acts { margin-left: 0; justify-content: center; }
.m-head-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.m-left { display: flex; align-items: center; min-width: 0; }
.m-center { display: flex; align-items: center; justify-content: center; gap: 2px; }
.m-right { display: flex; align-items: center; justify-content: flex-end; gap: 2px; min-width: 0; }
@media (max-width: 760px) {
  .m-head-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .m-center { justify-content: flex-start; flex-wrap: wrap; }
}

/* Night mode switch in the avatar menu */
.acct-switch { margin-left: auto; position: relative; width: 30px; height: 17px; border-radius: 999px; background: var(--line-2); flex: none; transition: background .15s; }
.acct-switch i { position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
#nightBtn[aria-checked="true"] .acct-switch { background: var(--primary); }
#nightBtn[aria-checked="true"] .acct-switch i { transform: translateX(13px); }

/* ------------------------------------------------------------ Filters page */
.flt-note { margin: -4px 0 10px; font-size: 13px; }
.flt-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.flt-row { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-top: 1px solid var(--line); }
.flt-row:first-child { border-top: 0; }
.flt-row.off .flt-txt { opacity: .55; }
.flt-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--ink-2); }
.flt-txt b { color: var(--ink); font-size: 14px; font-weight: 600; }
.flt-txt em { font-style: normal; color: var(--muted); }
.flt-when, .flt-then { overflow-wrap: anywhere; }
.flt-acts { display: flex; align-items: center; gap: 4px; flex: none; }
.flt-switch { position: relative; width: 34px; height: 20px; flex: none; border: 0; border-radius: 999px; background: var(--line-2); cursor: pointer; padding: 0; }
.flt-switch i { position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.flt-switch[aria-checked="true"] { background: var(--primary); }
.flt-switch[aria-checked="true"] i { transform: translateX(14px); }
.flt-dlg { width: min(640px, 94vw); padding: 0; border: 0; border-radius: 12px; box-shadow: var(--shadow-lg); }
.flt-dlg::backdrop { background: rgba(15, 20, 30, .45); }
.flt-form { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; }
.flt-form h2 { margin: 0 0 4px; font-size: 18px; }
.flt-lb { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.flt-lb > span { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.flt-match { width: auto; }
.flt-conds { display: flex; flex-direction: column; gap: 8px; }
.flt-cond { display: grid; grid-template-columns: 170px 120px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.flt-add { align-self: flex-start; padding: 0; font-size: 13px; }
.flt-actbox { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.flt-actbox .check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.flt-actbox select { width: auto; min-width: 200px; }
.flt-run { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.flt-err { margin: 0; color: var(--bad); font-size: 13px; }
.flt-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
@media (max-width: 640px) { .flt-cond { grid-template-columns: 1fr 1fr; } .flt-cond input { grid-column: 1 / -1; } .flt-row { flex-wrap: wrap; } }

#autoLockBtn[aria-checked="true"] .acct-switch { background: var(--primary); }
#autoLockBtn[aria-checked="true"] .acct-switch i { transform: translateX(13px); }
.acct-item .acct-sub { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 400; }

/* Settings > Signed-in devices (2026-10-14) */
.sp-devs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.sp-dev { display: grid; gap: 2px; min-width: 0; }
.sp-dev-n { font-weight: 600; overflow-wrap: anywhere; }
.sp-dev.cur .sp-dev-n { color: var(--text, inherit); }
.sp-dev-s, .sp-dev-note { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }

/* 2026-10-21: no user-select:none on the message frame or around it. Firefox then did not draw the highlight of text
   selected inside the message (it was selected and copied, just invisible until something redrew the window). Drags
   that start in the page are handled in app.js instead: bridgeSelect (the margin) and crossSelect (subject into body). */

/* Smart cards (2026-10-15): packages, flights, hotels, dinners found in a message */
.smart-card { padding: 4px 0; }
.sc-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.sc-row:first-child { border-top: 0; }
.sc-row.past { opacity: .62; }
.sc-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.sc-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sc-row[data-type="flight"] .sc-ic { background: #e7f0ff; color: #1d4ed8; }
.sc-row[data-type="hotel"] .sc-ic { background: #f3e8ff; color: #7c3aed; }
.sc-row[data-type="dinner"] .sc-ic { background: #fff1e6; color: #c2410c; }
.sc-row[data-type="parcel"] .sc-ic { background: #ecfdf3; color: #047857; }
.sc-main { min-width: 0; }
.sc-title { font-weight: 600; overflow-wrap: anywhere; }
.sc-line { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.sc-code .sc-copy { font: 600 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text, inherit); background: none; border: 0; padding: 0; cursor: copy; border-bottom: 1px dashed var(--muted); }
.sc-code .sc-copy:hover { color: var(--primary); }
.sc-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.sc-acts .btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) {
  .sc-row { grid-template-columns: 32px minmax(0, 1fr); }
  .sc-acts { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sc-row[data-type] .sc-ic { background: var(--surface-2); }
}
:root[data-theme="dark"] .sc-row[data-type] .sc-ic { background: var(--surface-2); }

/* Packages & Trips page (2026-10-15) */
.trips-page { display: grid; gap: 16px; }
.trips-sec h2, .trips-h { margin: 0; font-size: 15px; font-weight: 700; }
.smart-card .trips-h { padding: 12px 16px 4px; }
.trips-day { padding: 12px 16px 2px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); }
.smart-card .trips-h + .trips-day { border-top: 0; }
.trips-day + .sc-row { border-top: 0; }
.trips-fold > summary { cursor: pointer; font-weight: 700; padding: 6px 2px; color: var(--muted); }
.trips-fold[open] > summary { margin-bottom: 8px; }
.sc-from a { color: var(--primary); text-decoration: none; }
.sc-from a:hover { text-decoration: underline; }
.trips-building { display: flex; gap: 8px; align-items: center; }
.trips-building svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Tracking number that opens the tracking panel, copy icons, and the panel itself (2026-10-15) */
.sc-track { font: 600 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--primary); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.sc-track:hover { text-decoration-style: solid; }
.sc-copyic { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 4px; vertical-align: middle; border: 0; border-radius: 6px;
  background: none; color: var(--muted); cursor: pointer; }
.sc-copyic:hover, .sc-copyic:focus-visible { background: var(--primary-soft); color: var(--primary); outline: none; }
.sc-copyic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
dialog.track-dlg { width: min(480px, calc(100vw - 32px)); padding: 20px 22px; }
.tm-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.tm-ic { width: 40px; height: 40px; background: #ecfdf3; color: #047857; }
.tm-head h2 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.tm-status { font-size: 13px; font-weight: 600; color: var(--primary); }
.tm-status.done { color: #047857; }
.tm-x { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.tm-x:hover { background: var(--surface-2); color: var(--ink); }
.tm-x svg, .tm-num .btn svg, .track-dlg .acts .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tm-num { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 10px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); }
.tm-numt { font: 600 17px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; overflow-wrap: anywhere; color: var(--ink); }
.tm-list { display: grid; gap: 6px; margin: 0; }
.tm-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; }
.tm-row dt { color: var(--muted); }
.tm-row dd { margin: 0; overflow-wrap: anywhere; }
.track-dlg .acts { margin-top: 18px; }
.tm-note { margin: 12px 0 0 !important; font-size: 12.5px; color: var(--muted); }
.track-dlg .acts { justify-content: space-between; align-items: center; flex-wrap: wrap; }
.track-dlg .acts .btn-ghost { padding-left: 0; }

/* Packages & Trips: read / clear (2026-10-15) */
.sc-tools { display: inline-flex; gap: 2px; }
.sc-tool { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.sc-tool:hover, .sc-tool:focus-visible { background: var(--surface-2); color: var(--ink); outline: none; }
.sc-tool.on { color: var(--primary); }
.sc-tool svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sc-row.unread .sc-title::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--primary); vertical-align: middle; }
.sc-row.cleared { opacity: .5; }
.trips-bulk { display: flex; gap: 6px; flex-wrap: wrap; }
.trips-bulk .btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.trips-showcleared { justify-self: start; color: var(--muted); }

/* Settings > Calendar (2026-10-15) */
.cal-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cal-ctl .btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cal-more { display: flex; gap: 14px; width: 100%; font-size: 13px; }
