/* MORE Messages .. one stylesheet, cached by the browser.
 *
 * 🚨 The old app inlined roughly 80KB of CSS and JS into every page load, and rendered every
 * "Move to group" button's styles inline on every message .. 600 anchors, 288KB, 40% of one page.
 * This file is loaded once and then comes from cache. Nothing here is repeated per message.
 */

/* ---- tokens ------------------------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  --bg:            #f5f5f7;
  --panel:         #ffffff;
  --panel-2:       #fafafa;
  --line:          #e3e3e8;
  --line-soft:     #eeeef2;
  /* 🚨 SEPARATE, and not just a lighter --line. Every list divider in the app used --line-soft,
     which is also the hover BACKGROUND .. so it had to stay near-white, and at #eeeef2 on white
     the rows ran together into one wall of text. A divider needs contrast; a hover tint must not.
     Two jobs, two tokens. */
  --divider:       #d5d5de;
  /* 🚨 UNREAD IS INVERTED, not tinted. A pale wash was too weak to find at a glance ..
     Dennis: "needs more contrast, maybe dark background on white text". So an unread row flips
     to the opposite of the list around it: dark row, light text in the light theme, and light
     row, dark text in the dark theme. Whatever the surroundings, unread is the one that looks
     wrong, which is exactly the job. */
  /* Follow-up flags, split by whether a reminder is attached .. Dennis: "the ones without
     reminders should be light green and with reminders light red".
       green = flagged, nothing is going to chase you
       red   = flagged AND a reminder is set, so it is going to interrupt you
     A reminder that has already come DUE keeps the red but takes a saturated edge, so the thing
     that is actually overdue still separates from the ones merely scheduled. */
  --flag:          #e6f6ea;
  --flag-line:     #1b7f43;
  --flag-timed:    #fdecec;
  --flag-timed-line: #d8635f;
  --flag-due:      #fdecec;
  --flag-due-line: #c62828;
  --unread:        #1f2530;
  --unread-hover:  #2b3342;
  --unread-ink:    #ffffff;
  --unread-ink-2:  #c3c8d4;
  --unread-ink-3:  #9aa0ae;
  --ink:           #16161a;
  --ink-2:         #5c5c68;
  --ink-3:         #8e8e98;

  --accent:        #0a6cff;
  --accent-ink:    #ffffff;
  --accent-soft:   #e8f1ff;

  --out-bg:        #0a6cff;
  --out-ink:       #ffffff;
  --in-bg:         #e9e9ef;
  --in-ink:        #16161a;

  --danger:        #c62828;
  --danger-soft:   #fdecec;
  --warn:          #8a5a00;
  --warn-soft:     #fff4e0;
  --ok:            #1b7f43;
  --ok-soft:       #eaf6ec;

  --brand:         #b4141b;   /* MORE red, used only as an identity accent */

  --radius:        14px;
  --radius-sm:     9px;
  --shadow:        0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);

  --sidebar:       360px;
  --header-h:      56px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #0d0d10;
    --panel:       #17171c;
    --panel-2:     #1d1d23;
    --line:        #2a2a33;
    --line-soft:   #22222a;
    --divider:     #3a3a46;
    --flag:        #14301f;
    --flag-line:   #56c98a;
    --flag-timed:  #3a1d1d;
    --flag-timed-line: #e08a84;
    --flag-due:    #3a1d1d;
    --flag-due-line: #ff8a80;
    --unread:      #e9ebf2;
    --unread-hover:#dcdfe9;
    --unread-ink:  #10131a;
    --unread-ink-2:#3c4351;
    --unread-ink-3:#5d6474;
    --ink:         #f2f2f5;
    --ink-2:       #a6a6b2;
    --ink-3:       #77777f;

    --accent:      #4b93ff;
    --accent-soft: #16253c;

    --out-bg:      #2563d8;
    --out-ink:     #ffffff;
    --in-bg:       #26262e;
    --in-ink:      #f2f2f5;

    --danger:      #ff8a80;
    --danger-soft: #3a1d1d;
    --warn:        #ffc46b;
    --warn-soft:   #3a2c12;
    --ok:          #6ede9a;
    --ok-soft:     #16301f;

    --shadow:      0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--accent); }

/* ---- sign in ------------------------------------------------------------------------------ */
.signin-page { display: grid; place-items: center; padding: 24px; }
.signin {
  width: 100%; max-width: 340px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px 24px 24px; box-shadow: var(--shadow); text-align: left;
}
.signin-logo { display: block; margin: 0 auto 14px; height: 40px; width: auto; }
.signin h1 { margin: 0; font-size: 22px; text-align: center; letter-spacing: -.02em; }
.signin-sub { margin: 6px 0 20px; text-align: center; color: var(--ink-2); font-size: 13px; }
.signin label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .04em; margin: 0 0 5px; }
.signin input {
  width: 100%; padding: 11px 12px; margin: 0 0 16px; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm); outline: none;
}
.signin input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.signin button {
  width: 100%; padding: 12px; background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius-sm); font-weight: 600;
}
.signin-error {
  margin: 0 0 16px; padding: 10px 12px; background: var(--danger-soft); color: var(--danger);
  border-radius: var(--radius-sm); font-size: 13px;
}

/* ---- app frame ---------------------------------------------------------------------------- */
.app {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  height: 100dvh;
  overflow: hidden;
  background: var(--panel);
}

/* ---- sidebar ------------------------------------------------------------------------------ */
/* 🚨 min-height:0 on both the column and its scrolling child is NOT optional. A flex item defaults
   to min-height:auto, so a `flex:1; overflow-y:auto` pane grows to fit its content instead of
   scrolling .. which pushed the composer clean off the bottom of the window. Caught by looking at
   the rendered page; no amount of reading the markup shows it. */
.side {
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
  border-right: 1px solid var(--line); background: var(--panel-2);
}
.side-top {
  display: flex; align-items: center; gap: 8px; height: var(--header-h); flex: none;
  padding: 0 8px 0 14px; border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.side-title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin-right: auto;
  display: flex; align-items: center; gap: 8px; }
.side-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.pill-count {
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
  padding: 4px 7px; border-radius: 999px; min-width: 20px; text-align: center;
}

.iconbtn {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  color: var(--ink-2); flex: none;
}
.iconbtn:hover { background: var(--line-soft); color: var(--ink); }
.iconbtn.flagged       { color: var(--flag-line); }
.iconbtn.flagged svg   { fill: var(--flag-line); }
.iconbtn.flagged-timed { color: var(--flag-timed-line); }
.iconbtn.flagged-timed svg { fill: var(--flag-timed-line); }
.iconbtn.flagged-due   { color: var(--flag-due-line); }
.iconbtn.flagged-due svg { fill: var(--flag-due-line); }
/* 🚨 The fill above exists to make the FLAG read as solid once it is set. Filling the reminder
   clock turns it into a dot, so the clock stays an outline and shows its state in colour alone. */
#btn-remind svg { fill: none !important; }
.iconbtn.primary { background: var(--accent); color: #fff; }
.iconbtn.primary:hover { filter: brightness(1.08); }
.iconbtn svg { width: 19px; height: 19px; display: block; }

/* [compact-top-20261015] The search box lives IN the title row now. */
.side-top { padding-left: 10px; }
.side-search { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; }
.side-search .sicon { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--ink-3);
  pointer-events: none; }
.side-search input {
  width: 100%; padding: 8px 32px 8px 33px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; outline: none;
}
/* The native search X is inconsistent across browsers and absent in a Chrome --app window. */
.side-search input::-webkit-search-cancel-button { display: none; }
.side-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
#filter-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 17px; line-height: 1; color: var(--ink-3); background: var(--line-soft);
}
#filter-clear:hover { color: var(--ink); background: var(--divider); }

/* 🚨 [line-grid-20261015] AN EVEN GRID THAT WRAPS, NEVER A ROW THAT SCROLLS SIDEWAYS. Dennis had
   to scroll right to find a line, and every pill was a different width. Every tile is the same
   size and carries its phone number under the name, because "Main" told him nothing about WHICH
   number it was. */
/* [alertbar-20261105] Fixed colors, not tokens: --danger flips light in dark mode and white on it
   was unreadable (the 10-01 toast lesson). */
.alertbar { flex: none; margin: 8px 10px 0; padding: 10px 12px; border-radius: 10px;
  background: #8e1118; color: #fff; font-size: 13px; line-height: 1.35; }
.alertbar b { display: block; font-size: 14px; margin-bottom: 2px; }
.alertbar .ab-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.alertbar button { padding: 7px 12px; border-radius: 8px; font-weight: 700; font-size: 13px;
  background: #fff; color: #8e1118; }
.alertbar button.ab-later { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); font-weight: 600; }
.alertbar ol { margin: 6px 0 0 18px; padding: 0; }
.lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px;
  padding: 8px 10px; flex: none; border-bottom: 1px solid var(--line); }
.chip.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 0; height: 40px; padding: 3px 6px; border-radius: 9px; line-height: 1.15;
}
.chip.tile .tl { font-size: 12px; font-weight: 700; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.chip.tile .tn { font-size: 11px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.chip.tile[aria-pressed="true"] .tn { color: rgba(255,255,255,.85); }
.chip.tile .badge { position: absolute; top: -5px; right: -4px; background: var(--accent); color: #fff;
  font-size: 10.5px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--panel-2); }
.chip.tile.flag-chip .tn, .chip.tile.unread-chip .tn, .chip.tile.sched-chip .tn { color: inherit; font-weight: 700; }
.chip {
  flex: none; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink-2); font-size: 12.5px; font-weight: 600;
  white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
/* The Unread filter reads as a count you can act on, not as another line. */
.chip.flag-chip { border-color: var(--flag-line); color: var(--flag-line); font-weight: 700; }
.chip.flag-chip[aria-pressed="true"] { background: var(--flag-line); color: #fff; }
.chip.flag-chip.has-due { border-color: var(--flag-due-line); color: var(--flag-due-line); }
.chip.flag-chip.has-due[aria-pressed="true"] { background: var(--flag-due-line); color: #fff; }
.chip.unread-chip { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.chip.unread-chip[aria-pressed="true"] { background: var(--accent); color: #fff; }
.chip.clear-chip { border-style: dashed; color: var(--ink-2); }
.chip.tile.clear-chip .tn { color: inherit; font-weight: 700; }
/* 🚨 Scheduled is its OWN colour, not the accent and not the flag colour. Three chips can sit in
   that row at once and each one means a different thing; two sharing a colour is how the wrong
   one gets pressed. Grey-blue while things are merely waiting, red the moment one did not go. */
.chip.sched-chip { border-color: var(--ink-2); color: var(--ink-2); font-weight: 700; }
.chip.sched-chip[aria-pressed="true"] { background: var(--ink-2); color: #fff; }
.chip.sched-chip.has-bad { border-color: var(--danger); color: var(--danger); }
.chip.sched-chip.has-bad[aria-pressed="true"] { background: var(--danger); color: #fff; }
.chip .n { opacity: .75; font-weight: 500; }

.threads { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ---- multi-select ---------------------------------------------------------------------------
   The bar sits ABOVE the scrolling list, not inside it, so it cannot scroll out of reach while
   he is ticking things forty rows down. */
.selbar {
  flex: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 12px; border-bottom: 1px solid var(--line);
  background: var(--accent-soft);
}
.selcount { font-size: 13px; font-weight: 700; color: var(--accent); margin-right: auto; }
.selbar .btn { padding: 4px 10px; font-size: 12.5px; }
/* The checkbox takes the avatar's grid cell, so the row never reflows on entering select mode. */
.tsel { width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; }
.tsel input { width: 20px; height: 20px; cursor: pointer; accent-color: var(--accent); }
/* A ticked row needs to read as ticked from across the list, not just by a 20px box. */
.trow.picked { background: var(--accent-soft); }
.trow.unread.picked { background: var(--accent-soft); }
.trow.picked .tname, .trow.unread.picked .tname { color: var(--ink); }
.trow.picked .tprev, .trow.unread.picked .tprev { color: var(--ink-2); }

.trow {
  position: relative;
  display: grid; grid-template-columns: 42px 1fr auto; gap: 11px; align-items: start;
  width: 100%; padding: 11px 13px; text-align: left;
}
/* The rule is a pseudo-element, not a border, so it can be INSET to start where the text starts.
   A full-bleed line under a row that leads with a 42px avatar cuts the avatar column in half and
   reads as a table; starting it at the name is what every messaging list does. It also sits
   UNDER the selected-row tint instead of on top of it, which a border cannot do. */
.trow::after {
  content: ''; position: absolute; left: 66px; right: 0; bottom: 0; height: 1px;
  background: var(--divider);
}
.trow:last-child::after { display: none; }
/* 🚨 UNREAD HAS TO BE VISIBLE WITHOUT READING. A bold name and a small blue count were the only
   signals, and at a glance down a list of 24 they disappear .. Dennis: "you need to give a
   background color to unread sms so they stand out", then "needs more contrast". A tint was not
   enough, so the whole row inverts against the list around it.
   Declared BEFORE :hover and [aria-current] so both of those still win: an unread row must still
   light up under the cursor, and the conversation you are actually in must still look selected. */
/* A flag sits UNDER unread: an unread flagged conversation still reads as unread first, with the
   amber edge telling you it is also owed something. */
.trow.flag  { background: var(--flag); }
.trow.timed { background: var(--flag-timed); }
.trow.due   { background: var(--flag-due); }
.trow.flag::before, .trow.timed::before, .trow.due::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--flag-line); z-index: 1;
}
.trow.timed::before { background: var(--flag-timed-line); }
.trow.due::before   { background: var(--flag-due-line); width: 6px; }

.trow.unread { background: var(--unread); }
.trow.unread .tname   { color: var(--unread-ink); }
.trow.unread .tprev   { color: var(--unread-ink-2); }
.trow.unread .tprev .me,
.trow.unread .tprev .clip { color: var(--unread-ink-3); }
.trow.unread .ttime   { color: var(--unread-ink-3); }
/* The divider would cut across the inverted block and break it up. */
.trow.unread::after   { display: none; }
.trow.unread + .trow::after { display: none; }
/* 🚨 AN UNREAD ROW KEEPS ITS OWN SCHEME ON HOVER. The generic hover tint is near-white and wins
   on source order, but the unread row's TEXT is white .. so hovering an unread conversation made
   it white-on-white and unreadable. Dennis: "when I mouse over an urgent message, I can't read
   it". Hover now lifts the inverted background a shade instead of replacing it, so the contrast
   never inverts underneath the text. */
.trow:hover { background: var(--line-soft); }
.trow.unread:hover { background: var(--unread-hover); }
.trow[aria-current="true"] { background: var(--accent-soft); }
.trow[aria-current="true"]:hover { background: var(--accent-soft); }

.av {
  position: relative; overflow: hidden;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13.5px; font-weight: 700; color: #fff; letter-spacing: .02em; flex: none;
  user-select: none;
}
/* The portrait covers the initials. If it never loads it is removed and the initials show. */
.avimg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%; display: block;
}
.av.group { font-size: 12px; }

.tmid { min-width: 0; }
/* 🚨 IT WRAPS. The first attempt put the number beside the name at `flex: none` and the name paid
   for it: "Lisa Cupini" rendered as "L." and "Dennis Norman" disappeared altogether, leaving a row
   that was just a phone number and a chip. Wrapping gives the name the whole first line whenever it
   needs it and drops the number (whole, never half) onto a second line
   ([[feedback_never_ship_a_render_change_you_have_not_seen_render]]). */
.tname {
  font-weight: 600; font-size: 14.5px; display: flex; align-items: center;
  flex-wrap: wrap; column-gap: 6px; row-gap: 1px;
}
.tname > span:first-child {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.trow.unread .tname { font-weight: 700; }
/* The phone number beside the name. Quiet and never bold, including on an unread row, so it reads
   as a detail about the name rather than competing with it. `flex: none` + tabular figures: the
   name gives up the space, the number is always whole. */
.tnum {
  flex: none; font-size: 12px; font-weight: 500; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.trow.unread .tnum { font-weight: 500; color: var(--unread-ink-3); }
.tline {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 6px; border-radius: 5px; background: var(--warn-soft); color: var(--warn); flex: none;
}
/* The amber chip means "not your main line". Business-or-cell is a different fact about a different
   number, so it gets the accent colour .. same shape, never the same colour for two meanings. */
.tline.kind { background: var(--accent-soft); color: var(--accent); }
/* 🚨 "Archived" is a THIRD fact, so it gets its own colour: this row is in the list only because
   the search found it. Grey, not amber and not accent .. it is a state, not a warning. */
.tline.arch { background: var(--line-soft); color: var(--ink-3); }
.tprev {
  margin-top: 2px; font-size: 13px; color: var(--ink-2); display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* colour for an unread preview is set with the inverted block above, not here */
.tprev .me { color: var(--ink-3); }
/* 🚨 Somebody ELSE on a shared line sent it. Named, and in the accent colour so it reads as a
   person rather than as part of the message .. "Dennis:" in the same grey as the preview text
   looks like the first word of what was said. `[shared-lines-20261010]` */
.tprev .me.by { color: var(--accent); font-weight: 600; }
.trow.unread .tprev .me.by { color: var(--accent); }
.tprev .clip { color: var(--ink-3); }
/* The row is in the list because of a message further up the conversation, and this is that
   message. Marked the same yellow the search screen uses, so one highlight means one thing. */
.tprev.hit mark { background: #ffe680; color: #16161a; border-radius: 2px; }
.trow.unread .tprev.hit mark { background: #ffe680; color: #16161a; }
/* A sentence in a quiet block that is actually a button. */
.linkbtn {
  background: none; border: 0; padding: 0; font: inherit; color: var(--accent);
  text-decoration: underline; cursor: pointer;
}

.tright { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.ttime { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.tbadge {
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
  min-width: 19px; padding: 4px 6px; border-radius: 999px; text-align: center;
}

.empty { padding: 40px 24px; text-align: center; color: var(--ink-3); font-size: 14px; }

/* ---- main pane ---------------------------------------------------------------------------- */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--panel); }

.chead {
  display: flex; align-items: center; gap: 11px; height: var(--header-h); flex: none;
  padding: 0 10px 0 14px; border-bottom: 1px solid var(--line); background: var(--panel);
  padding-top: env(safe-area-inset-top);
}
.chead .back { display: none; }
.chead .who { min-width: 0; margin-right: auto; }
/* 🚨 THE HEADER WRAPS INSTEAD OF TRUNCATING. A group title was clipped to "John Williams,
   Terr..." in Dennis's window and there was no way to read the rest without dragging the window
   wider .. Dennis: "I still can't read without expanding window". Two lines of names beats one
   line of ellipsis, and the header grows to fit rather than hiding the content
   ([[feedback_never_hide_content_to_fit]]). Three lines is the ceiling, after which Details has
   the full list. */
.chead { height: auto; min-height: var(--header-h); padding-top: 8px; padding-bottom: 8px; }
.chead .who b { display: block; font-size: 15.5px; font-weight: 650; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chead .who span { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.conv {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 14px 16px 6px; display: flex; flex-direction: column; gap: 2px;
}

.daysep {
  align-self: center; margin: 14px 0 8px; font-size: 11.5px; font-weight: 700; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .05em;
}

.loadmore {
  align-self: center; margin: 4px 0 10px; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--ink-2);
  font-size: 12.5px; font-weight: 600;
}
.loadmore:hover { color: var(--ink); border-color: var(--ink-3); }

/* a message row .. the bubble plus everything under it */
.m { display: flex; flex-direction: column; max-width: min(620px, 78%); }
.m.out { align-self: flex-end; align-items: flex-end; }
.m.in  { align-self: flex-start; align-items: flex-start; }
.m + .m { margin-top: 2px; }
.m.gapped { margin-top: 12px; }

.sender { font-size: 11.5px; font-weight: 700; color: var(--ink-2); margin: 0 4px 3px; }
/* 🚨 Which of US sent it, on a shared line like Broker On Call. `[shared-lines-20261010]`
   It sits above an OUTGOING bubble, which is right-aligned, so it is right-aligned too .. a label
   drifting to the left of its own bubble reads as belonging to the message before it. Quiet, in
   the same weight as .sender: it is a fact about the message, not a header. */
.sentby {
  font-size: 11px; font-weight: 700; color: var(--ink-3); margin: 0 4px 3px; text-align: right;
}

.bub {
  padding: 8px 13px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere;
  font-size: 15px; line-height: 1.38;
}
.m.in  .bub { background: var(--in-bg);  color: var(--in-ink);  border-bottom-left-radius: 6px; }
.m.out .bub { background: var(--out-bg); color: var(--out-ink); border-bottom-right-radius: 6px; }
.m.run.in  .bub { border-top-left-radius: 6px; }
.m.run.out .bub { border-top-right-radius: 6px; }
.m.out .bub a { color: #fff; text-decoration: underline; }
.bub.silent { background: none; padding: 0; }

/* a message whose state says it needs looking at */
.m.bad .bub  { background: var(--danger-soft); color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.m.soft .bub { opacity: .72; }

/* 🚨 position: relative so the react button INSIDE a media block anchors to the photo rather than
   to the whole bubble. `[rx-on-media-20261010]` Without it the second button would absolutely
   position against .mbody, land on top of the first one at top:1px, and the photo would still have
   nothing beside it .. which was the whole complaint. */
.mmedia { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; position: relative; }
.m.out .mmedia { justify-content: flex-end; }
.mmedia img, .mmedia video {
  max-width: 260px; max-height: 320px; border-radius: 12px; display: block;
  background: var(--line-soft); cursor: zoom-in;
}
/* `[pdfthumb-20261107]` A PDF is a card with its first page on it, so a sent PDF is plain to see. */
.mmedia a.pdfcard {
  display: flex; flex-direction: column; width: 220px; max-width: 62vw; border-radius: 14px;
  overflow: hidden; background: var(--in-bg); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line);
}
.pdfcard .pdf-pg {
  aspect-ratio: 8.5 / 11; max-height: 240px; background: #fff; display: grid; place-items: center;
  overflow: hidden; border-bottom: 1px solid var(--line);
}
.pdfcard .pdf-pg img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover;
  object-position: top; display: block; border-radius: 0; cursor: pointer; }
.pdfcard .pdf-ph { font-size: 13px; font-weight: 700; color: #b0b0ba; letter-spacing: .5px; }
.pdfcard.nopg .pdf-pg { display: none; }
.pdfcard .pdf-ft { display: flex; align-items: center; gap: 8px; padding: 8px 10px; min-width: 0; }
.pdfcard .pdf-ic { flex: none; width: 22px; height: 22px; color: #d93a2f; }
.pdfcard .pdf-ic svg { width: 100%; height: 100%; display: block; }
.pdfcard .pdf-mid { display: flex; flex-direction: column; min-width: 0; }
.pdfcard .pdf-nm { font-size: 13px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pdfcard .pdf-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
/* `[audio-20261109]` voice memo player */
.mmedia .audiocard {
  display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 14px;
  background: var(--in-bg); border: 1px solid var(--line); width: 280px; max-width: 70vw;
}
.audiocard audio { width: 100%; height: 40px; display: block; }
.audiocard .au-open { font-size: 11.5px; color: var(--ink-3); text-decoration: none; padding-left: 4px; }
.mmedia a.file {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 12px;
  background: var(--in-bg); color: var(--ink); font-size: 13.5px; font-weight: 600;
  text-decoration: none;
}

/* ---- tapback reactions ----------------------------------------------------------------------
 *
 * 🚨 The badge row is IN THE FLOW with a negative top margin, not absolutely positioned. It tucks
 * onto the bubble's bottom corner the way a phone draws it, but it still occupies height, so it
 * can never land on top of the timestamp under it ([[feedback_never_hide_content_to_fit]]).
 *
 * 🚨 The 2px border is var(--panel), the conversation's own background, so the pill reads as a
 * cut-out of the bubble rather than a sticker floating over it. It has to be the PAGE colour and
 * not a lighter grey, or it turns into a visible ring the moment the theme flips to dark.
 */
.rx { display: flex; gap: 4px; margin: -10px 4px 0; position: relative; z-index: 2; }
.rxb {
  display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px;
  border: 2px solid var(--panel); background: var(--in-bg); color: var(--in-ink);
  font-size: 12px; line-height: 1.5;
}
.rxb.mine { background: var(--accent-soft); color: var(--ink); }
.rxe {
  /* A font stack that actually has the glyphs, so nothing renders as a box. */
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 13px; line-height: 1;
}
.rxn { font-size: 11px; font-weight: 700; color: var(--ink-2); }

/* The "react to this" button, in the gutter beside the bubble.
 *
 * 🚨 IT IS ALWAYS VISIBLE AND IT HAS A REAL EDGE. The first version was a 40%-opacity text glyph
 * with no border, which against a pale bubble Dennis simply could not see .. and one he could not
 * see is one that is not there. A filled chip with a border reads at a glance in both themes, and
 * hiding it until hover would have made it invisible on the phone as well. */
/* 🚨 The anchor for .rxadd is the BUBBLE's box, not the message row. A row can open with a sender
   name, a private-reply note or a quote of the message being answered, and an absolutely positioned
   button at top:1px then lands beside THAT .. which is what Dennis saw: the smiley next to the
   quote of his own message, and nothing next to the reply he wanted to react to. The row is also as
   wide as its widest child, so the button sat out past the bubble horizontally too. */
.m { position: relative; }
.mbody { position: relative; display: flex; flex-direction: column; max-width: 100%; }
.m.in  .mbody { align-items: flex-start; }
.m.out .mbody { align-items: flex-end; }
.rxadd {
  position: absolute; top: 1px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-2); background: var(--panel-2);
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.06);
  transition: color .12s, background .12s, border-color .12s;
}
.rxadd svg { width: 16px; height: 16px; display: block; }
.m.out .rxadd { left: -31px; }
.m.in  .rxadd { right: -31px; }
.rxadd:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* 🚨 position: fixed, and the script clamps it to the window. Anchored to a bubble at the top of
   a 390px screen it would otherwise open above the viewport with nowhere to scroll to reach it. */
.rx-pop {
  position: fixed; z-index: 60; display: flex; gap: 2px; padding: 5px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow);
  /* 🚨 Six tapbacks plus recents plus the + is ten buttons, which is 408px .. wider than a 390px
     phone. It wraps and is capped to the window rather than running off the side of it. */
  flex-wrap: wrap; max-width: calc(100vw - 20px); border-radius: 22px;
}
.rxp {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-size: 21px; line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.rxp:hover { background: var(--line-soft); }
/* Wow is drawn as the word, not a face. [wow-20261103] */
.rxwow svg { width: 34px; height: 22px; display: block; }
/* The way through to the whole catalogue. Reads as a control, not as another emoji. */
.rxmore {
  font-size: 20px; font-weight: 600; color: var(--ink-2);
  border: 1px dashed var(--line); margin-left: 2px;
}
.rxmore:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
/* Delete, in the same picker. It is the one destructive thing in a row of tapbacks, so it is
   fenced off to the right and it is red before it is pressed, not after. */
.rxdel {
  color: var(--danger); margin-left: 6px;
  border-left: 1px solid var(--line); border-radius: 0 50% 50% 0;
}
.rxdel:hover { background: var(--danger-soft, var(--line-soft)); }

/* ---- arrival banners -------------------------------------------------------------------------
 *
 * 🚨 TOP, not bottom. `.toast` is fixed to the bottom of the window, which is exactly where the
 * message box is .. a banner there covers what he is typing, which is the same defect that had to
 * be fixed once already for follow-up reminders. Under the header, clear of the composer, and the
 * safe-area inset so it is not behind the notch.
 */
.banners {
  position: fixed; z-index: 70; left: 50%; transform: translateX(-50%);
  /* 🚨 BELOW the header, not over it. Floating across the top bar hides Back, Archive and the
     thread name for seven seconds, which on a phone is the row he needs to get out of the
     conversation the banner is telling him about. */
  top: calc(env(safe-area-inset-top) + var(--header-h) + 8px);
  width: min(420px, calc(100vw - 20px));
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.banner {
  pointer-events: auto; cursor: pointer; text-align: left;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 10px 12px;
  opacity: 0; transform: translateY(-10px); transition: opacity .18s ease, transform .18s ease;
}
.banner.in { opacity: 1; transform: none; }
.bn-top { display: flex; align-items: baseline; gap: 8px; }
.bn-who { font-weight: 700; font-size: 13.5px; flex: 1; min-width: 0;
          overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-x   { flex: none; font-size: 17px; line-height: 1; color: var(--ink-3); padding: 0 2px; }
.bn-x:hover { color: var(--ink); }
.bn-txt {
  margin-top: 2px; font-size: 13px; color: var(--ink-2); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* The one line in Alerts that says whether this device is really set up. */
.pushstat {
  display: block; margin: 14px 0 0; padding: 11px 13px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel-2);
}
.pushstat b     { display: block; font-size: 13.5px; }
.pushstat small { display: block; margin-top: 3px; color: var(--ink-2); font-size: 12px; line-height: 1.4; }
.pushstat .btn  { margin-top: 9px; }
.pushstat.ok  { border-color: var(--ok); background: var(--ok-soft); }
.pushstat.ok b  { color: var(--ok); }
.pushstat.bad { border-color: var(--danger); background: var(--danger-soft); }
.pushstat.bad b { color: var(--danger); }
.pushstat #pf-pushlater { display: block; }
.pushdiag { margin-top: 10px; border-top: 1px solid var(--line, #ddd); padding-top: 8px; font-size: 12px; }
.pushdiag div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.pushdiag span { color: var(--ink-2); }
.pushdiag b { display: inline; font-size: 12px; text-align: right; color: var(--ink, inherit) !important; overflow-wrap: anywhere; }
.pushdiag .good b { color: var(--ok) !important; }
.pushdiag .bad b  { color: var(--danger) !important; }

.meta {
  display: flex; align-items: center; gap: 6px; margin: 3px 5px 0;
  font-size: 11.5px; color: var(--ink-3);
}
.meta .st { font-weight: 600; }
.meta .st.notsent, .meta .st.failed, .meta .st.unknown { color: var(--danger); }
.meta .st.pending, .meta .st.queued, .meta .st.retry   { color: var(--warn); }
.meta .st.sent                                         { color: var(--ink-3); }
.meta .why { color: var(--danger); }
.meta .dup { color: var(--ink-3); font-style: italic; }
.meta button {
  color: var(--accent); font-size: 11.5px; font-weight: 700; padding: 0;
  text-decoration: underline;
}
/* 🚨 [msg-delete-20261006] Delete does NOT look like Send again. They sit side by side under a
   failed message, a thumb's width apart on a phone, and one of them cannot be taken back by
   pressing it again. Different colour, and a gap between them. */
.meta button.del { color: var(--danger); margin-left: 10px; }

/* ---- composer ----------------------------------------------------------------------------- */
.comp {
  position: relative;   /* the emoji panel anchors to this */
  flex: none; border-top: 1px solid var(--line); background: var(--panel);
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
}

/* ---- emoji picker --------------------------------------------------------------------------
   Anchored to the composer and opening UPWARD, because the composer is at the bottom of the
   window and a panel dropping down would be off-screen. */
.emoji-pop {
  position: absolute; left: 10px; right: 10px; bottom: calc(100% - 4px); z-index: 40;
  max-height: 300px; overflow-y: auto; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 8px 10px 12px;
}
.emoji-h {
  font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3); margin: 10px 2px 5px; position: sticky; top: -8px;
  background: var(--panel); padding: 4px 0 2px;
}
.emoji-h:first-child { margin-top: 2px; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 2px; }
.emoji {
  font-size: 22px; line-height: 1; height: 38px; border-radius: 8px;
  display: grid; place-items: center;
  /* A font stack that actually has the glyphs, so nothing renders as a box. */
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.emoji:hover { background: var(--line-soft); }
.comp-note {
  font-size: 12px; margin: 0 2px 7px; padding: 6px 10px; border-radius: 8px;
  background: var(--warn-soft); color: var(--warn);
}
.comp-note.bad { background: var(--danger-soft); color: var(--danger); }
.comp-note.ok  { background: var(--accent-soft); color: var(--accent); }

.atts { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 8px; }
.att {
  position: relative; width: 62px; height: 62px; border-radius: 10px; overflow: hidden;
  background: var(--line-soft); border: 1px solid var(--line);
}
.att img { width: 100%; height: 100%; object-fit: cover; display: block; }
.att .nm { position: absolute; inset: 0; display: grid; place-items: center; padding: 4px;
  font-size: 9.5px; text-align: center; color: var(--ink-2); overflow: hidden; }
.att .x {
  position: absolute; top: 2px; right: 2px; width: 19px; height: 19px; border-radius: 50%;
  background: rgba(0,0,0,.65); color: #fff; font-size: 13px; line-height: 19px; text-align: center;
}
.att.busy { opacity: .55; }
.att.pdf img { object-fit: cover; object-position: top; background: #fff; }
.att .tag { position: absolute; left: 3px; bottom: 3px; padding: 1px 5px; border-radius: 5px;
  background: #d93a2f; color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .3px; }

/* 🚨 [compose-fullwidth-20261012] THE BOX IS THE WIDTH OF THE APP. Four icon buttons, the clock
   and Send shared ONE flex row with the textarea, so the box he actually types in got whatever
   was left .. about half the window at 390px, and a 195-character text wrapped into a tall narrow
   column with more composer given to buttons than to words. The textarea now takes a row of its
   own (`order:-1` so it draws FIRST without reordering the DOM, which the focus and keyboard
   handlers walk) and the controls wrap underneath it with Send pushed to the right edge. */
.comp-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comp-row textarea {
  order: -1; flex: 1 0 100%; width: 100%;
  min-height: 40px; max-height: 40vh; padding: 9px 13px; resize: none;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 20px; outline: none;
  line-height: 1.4;
}
/* Send stays on the far right of the control row, where it was before the box moved above it. */
.comp-row .send { margin-left: auto; }
.comp-row textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.send {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; flex: none;
}
.send:disabled { background: var(--line); color: var(--ink-3); cursor: default; }
.send svg { width: 19px; height: 19px; }

/* 🚨 WRAPS. Each labelled control added here (Add someone, Send a contact) is another pill on one
   row, and at 390px the last one was cut in half by the window edge .. a control he cannot see is
   a control that does not exist ([[feedback_never_hide_content_to_fit]]). */
.comp-foot {
  display: flex; align-items: center; gap: 10px; margin: 7px 2px 0; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-3);
}
.comp-foot select {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px;
  padding: 3px 6px; font-size: 12px; max-width: 190px;
}
.comp-foot .seg { margin-left: auto; white-space: nowrap; }
.comp-foot .seg.many { color: var(--warn); font-weight: 600; }

/* ---- scheduled messages -------------------------------------------------------------------
   `[schedule-20261010]`  A text he set to go out at a particular time.

   🚨 IT MUST NOT LOOK LIKE A MESSAGE BUBBLE. These sit at the bottom of the conversation, exactly
   where the newest thing he said sits, and the one thing the band cannot do is read as something
   that has already been sent. So: a DASHED border, no bubble, no tail, the panel background and
   the time in the heading rather than the corner. Dashed means "not yet" at a glance, from across
   a desk, without reading a word of it.  */
.schedband {
  margin: 14px 4px 6px; padding: 10px 12px 12px; border: 1px dashed var(--ink-3);
  border-radius: 12px; background: var(--panel-2);
}
.sb-h {
  display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); margin-bottom: 9px;
}
.sb-h svg { width: 15px; height: 15px; flex: none; }
.sb-i { padding: 9px 0; border-top: 1px solid var(--divider); }
.sb-i:first-of-type { border-top: 0; padding-top: 0; }
.sb-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.sb-when b { font-size: 13.5px; font-weight: 700; }
.sb-when span { font-size: 12px; color: var(--ink-3); }
.sb-b { margin-top: 4px; font-size: 14px; line-height: 1.45; white-space: pre-wrap;
  word-break: break-word; }
.sb-m {
  display: inline-block; margin-right: 6px; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 5px;
  background: var(--accent-soft); color: var(--accent); vertical-align: 2px;
}
/* The server's sentence about what happened. Never styled as an error when it is a plain fact. */
.sb-n { margin-top: 5px; font-size: 12.5px; color: var(--ink-2); }
.sb-i.bad .sb-when b { color: var(--danger); }
.sb-i.bad .sb-n { color: var(--danger); }
.sb-i.done { opacity: .66; }
.sb-a { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.sb-a .btn { padding: 6px 12px; font-size: 12.5px; }

/* The preview of what is about to be scheduled, in the sheet. Quoted, so he re-reads the words
   before committing them to a time he will not be watching. */
.schedpv {
  padding: 10px 12px; margin: 0 0 14px; border-radius: var(--radius-sm);
  background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; line-height: 1.45;
  white-space: pre-wrap; word-break: break-word; max-height: 160px; overflow-y: auto;
}
.schedpv b { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-2); }
.schedlist { max-height: 60vh; overflow-y: auto; }
.schedlist .sb-i:first-of-type { border-top: 0; }

/* The clock on a conversation row. Quiet grey, because a message waiting to go out is a state and
   not a warning .. red is reserved for one that did not go. */
.tsched {
  display: flex; align-items: center; gap: 3px; color: var(--ink-3);
  font-size: 11px; font-weight: 700;
}
.tsched svg { width: 13px; height: 13px; }
.tsched.bad { color: var(--danger); }
.trow.unread .tsched { color: var(--unread-ink-3); }

/* The count on the Scheduled menu item. */
.menu .mcount {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700;
}

/* ---- new message -------------------------------------------------------------------------- */
.tobar {
  flex: none; border-bottom: 1px solid var(--line); padding: 9px 12px; background: var(--panel);
  position: relative;
}
.tobox { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tobox .lbl { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.rcpt {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600;
}
/* 🚨 The chip is ALREADY accent-on-accent-soft, so the kind inside it is a weight and size
   difference, not a second colour block. A `.tag.kind` chip in here would be invisible. */
.rcpt .rkind {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .7;
}
.rcpt button { color: inherit; opacity: .7; font-size: 14px; line-height: 1; }
.rcpt button:hover { opacity: 1; }
.tobox input {
  flex: 1; min-width: 150px; border: 0; outline: none; background: none; padding: 5px 2px;
}
.ac {
  position: absolute; left: 12px; right: 12px; top: 100%; z-index: 30; max-height: 320px;
  overflow-y: auto; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); margin-top: 4px;
}
.ac button {
  display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 12px; text-align: left;
  border-bottom: 1px solid var(--divider);
}
.ac button:last-child { border-bottom: 0; }
.ac button:hover, .ac button.on { background: var(--accent-soft); }
.ac .n { font-weight: 600; font-size: 14px; }
.ac .p { font-size: 12.5px; color: var(--ink-2); margin-left: auto; white-space: nowrap; }

/* 🚨 A SAVED GROUP ROW HAS TO NOT LOOK LIKE A PERSON ROW. Picking one puts three or six people on
   the message at once, so it cannot be one more identical line in the same list. It wraps instead
   of flowing on one row, because the thing that matters on it is WHO IS IN IT and that is a
   sentence, not a phone number: `.ac .p`'s `margin-left:auto; nowrap` would push the member names
   off the right edge. */
.ac button.acgrp {
  flex-wrap: wrap; row-gap: 2px;
  border-left: 3px solid var(--accent); background: var(--accent-soft);
}
.ac button.acgrp:hover, .ac button.acgrp.on { background: var(--accent-soft); filter: brightness(.97); }
.ac button.acgrp .n { color: var(--accent); }
.ac button.acgrp .p {
  flex-basis: 100%; margin-left: 0; white-space: normal; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* The add-a-person list inside the group editor sits in the sheet's normal flow, not floating
   under a bar, so it needs the panel's own box rather than `.ac`'s absolute one. */
#ge-hits { position: static; left: auto; right: auto; max-height: 230px; margin-top: 6px; }
#ge-chips { min-height: 30px; }

/* ---- sheets (info, archive, search results, menu) ----------------------------------------- */
.scrim {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.42);
  display: grid; place-items: center; padding: 20px;
}
.sheet {
  width: 100%; max-width: 430px; max-height: 84dvh; overflow-y: auto; background: var(--panel);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.sheet h2 {
  margin: 0; padding: 15px 18px; font-size: 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.sheet h2 .iconbtn { margin-left: auto; }
.sheet .body { padding: 14px 18px 18px; }
/* 🚨 A section heading inside a sheet. There was NO h4 rule, so an h4 rendered at the browser's
   default 1.17em with its own 1.33em margins .. bigger and further apart than the sheet's own h2.
   An element nothing styles does not inherit the design, it inherits the browser's. */
.sheet .body h4 {
  margin: 0 0 7px; padding-top: 15px; border-top: 1px solid var(--divider);
  font-size: 13.5px; font-weight: 700; color: var(--ink);
}
.sheet .body p { margin: 0 0 12px; color: var(--ink-2); font-size: 13.5px; }
.sheet label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .04em; margin: 0 0 5px; }
/* 🚨 type=tel BELONGS HERE TOO. The contact editor's number field is a tel input, and a rule
   written only for type=text left it bare: half width, no border, nothing like the name field
   above it. A selector that names one input type silently skips every other one. */
/* 🚨 AND type=datetime-local, found 10-10-2026 while building the scheduler: the reminder sheet
   has had a bare, unstyled date box since the day it shipped, for exactly the reason written
   above about type=tel. The list is the whole point of this rule, so every type the sheets
   actually use is named here. */
.sheet input[type=text],
.sheet input[type=tel],
.sheet input[type=email],
.sheet input[type=number],
.sheet input[type=datetime-local],
.sheet input[type=date],
.sheet input[type=time] {
  width: 100%; padding: 10px 12px; margin: 0 0 14px; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm); outline: none;
  font: inherit; color: inherit;
}
.sheet input[type=text]:focus,
.sheet input[type=tel]:focus,
.sheet input[type=email]:focus,
.sheet input[type=number]:focus,
.sheet input[type=datetime-local]:focus,
.sheet input[type=date]:focus,
.sheet input[type=time]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  padding: 9px 15px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--panel-2); font-size: 13.5px; font-weight: 600;
}
.btn:hover { border-color: var(--ink-3); }
.btn.go { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.warn { color: var(--danger); border-color: var(--danger); }
.btn:disabled { opacity: .5; cursor: default; }

.mlist { list-style: none; margin: 0; padding: 0; }
.mlist li {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--divider); font-size: 14px;
}
.mlist li:last-child { border-bottom: 0; }
.mlist .p { margin-left: auto; color: var(--ink-2); font-size: 12.5px; }
.mlist .tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 6px; border-radius: 5px; background: var(--warn-soft); color: var(--warn); }

.hits { list-style: none; margin: 0; padding: 0; }
.hits button {
  display: block; width: 100%; text-align: left; padding: 10px 0;
  border-bottom: 1px solid var(--divider);
}
.hits button:last-child { border-bottom: 0; }
.hits .h1l { font-size: 13.5px; font-weight: 650; display: flex; gap: 8px; align-items: baseline; }
.hits .h1l time { margin-left: auto; font-size: 11.5px; color: var(--ink-3); font-weight: 400; }
.hits .h2l { font-size: 13px; color: var(--ink-2); margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hits mark { background: #ffe680; color: #16161a; border-radius: 2px; }

.menu { position: absolute; right: 10px; top: calc(var(--header-h) - 6px); z-index: 50;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); min-width: 210px; overflow: hidden; }
.menu button { display: block; width: 100%; text-align: left; padding: 10px 14px; font-size: 14px; }
.menu button:hover { background: var(--line-soft); }
.menu hr { border: 0; border-top: 1px solid var(--divider); margin: 0; }
.menu .sub { font-size: 11.5px; color: var(--ink-3); padding: 8px 14px; }

/* full-size image */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.9);
  display: grid; place-items: center; padding: 16px; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 100%; border-radius: 6px; }
.lightbox .x { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 14px;
  color: #fff; font-size: 30px; line-height: 1; padding: 6px 12px; }

/* a toast for anything that happened without a screen of its own */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 100; max-width: min(520px, 92vw); padding: 11px 16px; border-radius: 11px;
  background: #16161a; color: #fff; font-size: 13.5px; box-shadow: var(--shadow);
}
/* 🚨🚨 EVERY TOAST IS DARK, BECAUSE THE TEXT ON IT IS ALWAYS WHITE.
 *
 * These used to take --ok, --danger and --flag-timed-line, which are TEXT colours and therefore
 * flip LIGHT in the dark theme: #6ede9a, #ff8a80, #e08a84. White on any of those is unreadable,
 * and that is what Dennis hit .. "light green background with white text, I can't read it". It was
 * never only the green one: all three variants were the same defect, in the theme his phone is in
 * ([[feedback_sweep_the_whole_class_before_reporting_fixed]]).
 *
 * Fixed values, not tokens: the one thing that must stay true is contrast against white, and a
 * token that changes with the theme is exactly what broke it. Dennis asked for dark red, so the
 * confirmation toast is MORE's red darkened to carry white text. */
/* 🚨 The Undo button lives INSIDE the toast, and the toast is always dark with white text .. so
   this is white too, underlined, with a real tap target on a phone rather than 13px of text. */
.toast-act {
  margin-left: 12px; color: #fff; font-weight: 700; font-size: 13.5px;
  text-decoration: underline; padding: 4px 2px;
}
.toast.ok   { background: #8e1118; }
.toast.bad  { background: #6b0f14; }
/* A due reminder. It stays up longer than a normal toast .. see the timer note. */
.toast.warn { background: #6d4300; }

/* ---- mobile ------------------------------------------------------------------------------- */
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .side, .main { grid-column: 1; grid-row: 1; }
  .app[data-view="list"]   .main { display: none; }
  .app[data-view="thread"] .side { display: none; }
  .chead .back { display: grid; }
  .m { max-width: 86%; }
  .mmedia img, .mmedia video { max-width: min(220px, 62vw); }
  /* 🚨 SIX buttons live up there now that the reminder has its own icon beside the flag. At the
     desktop 11px gap that is 300px of controls on a 390px phone and the contact's name is squeezed
     to nothing. The row tightens on a phone instead of the name shrinking
     ([[feedback_never_hide_content_to_fit]]). */
  .chead { gap: 4px; padding-left: 6px; padding-right: 4px; }
  .chead .iconbtn { width: 32px; }
}

/* Somebody with reduce-motion on does not want a list that slides. Nothing here animates anyway;
   this only keeps the smooth scroll from fighting them. */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* ---- contacts directory -------------------------------------------------------------------- */
.dirlist li { padding: 0; border: 0; }
/* The directory had no rules at all, so the names ran together. Same inset idea as the thread
   list, measured from this row's own padding + avatar + gap (6 + 34 + 11 = 51).
   The rule goes on the TOP of each row and is removed after a letter heading, so a heading's own
   separation comes from the heading and rows never get a doubled line. */
.dirlist .dirrow { position: relative; }
.dirlist .dirrow::before {
  content: ''; position: absolute; left: 51px; right: 0; top: 0; height: 1px;
  background: var(--divider);
}
.dirlist .dirsep + li .dirrow::before,
.dirlist li:first-child .dirrow::before { display: none; }
.dirsep {
  position: sticky; top: 0; z-index: 2; background: var(--panel);
  padding: 9px 0 3px !important; font-size: 11.5px; font-weight: 800; color: var(--ink-3);
  letter-spacing: .06em;
}
.dirrow {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 8px 6px; border-radius: 10px;
}
.dirrow:hover { background: var(--line-soft); }
.av.dirav { width: 34px; height: 34px; font-size: 12px; }
.dirmid { min-width: 0; flex: 1; }
.dirname {
  display: block; font-weight: 600; font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 🚨 IT WRAPS. A flex item shrinks by default, so adding the business/cell chip to this row did not
   overflow it .. it SQUASHED the number and the tags, silently, worst at 390px. Measured, not
   guessed. Same failure as the composer row that cut the "Send a contact" pill in half, one row
   over ([[project_sms_send_a_contact_20261001]]). */
.dirsub {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px;
  font-size: 12.5px; color: var(--ink-2);
}
.dirsub > * { flex: none; }
.dirn { color: var(--ink-3); }
.tag.dim { background: var(--line-soft); color: var(--ink-3); }

/* Which of somebody's numbers this is .. their business line or their cell. `[num-kind-20261001]`
   🚨 Its own colour, and the full typography rather than a modifier. The amber `.tag` already means
   "one of your own lines" and the grey `.tag.dim` means "where the name came from", so a third
   meaning sharing either colour is a legend nobody can read. And the base `.tag` rule is scoped to
   `.mlist`, so a chip in the recipient autocomplete (which is not a list) would otherwise render as
   unstyled text. */
.tag.kind {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 6px; border-radius: 5px; white-space: nowrap; flex: none;
  background: var(--accent-soft); color: var(--accent);
}

/* ---- alerts ---------------------------------------------------------------------------------
   A switch row reads as one thing to click, so the whole row is the label.

   🚨 Scoped `.sheet .switch`, not `.switch`. `.sheet label` is specificity (0,1,1) and these rows
   ARE labels, so a bare `.switch` at (0,1,0) lost every declaration it shared with it .. the rows
   rendered stacked and in small-caps because display:flex and text-transform:none were both
   being overridden. Caught by looking at the rendered panel. */
.sheet .switch {
  display: flex; align-items: flex-start; gap: 11px; padding: 11px 0;
  border-bottom: 1px solid var(--divider); cursor: pointer;
  text-transform: none; letter-spacing: normal; font-size: inherit; color: inherit;
}
.sheet .switch input[type=checkbox] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.sheet .switch b { display: block; font-weight: 600; font-size: 14px; }
.sheet .switch small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-2); font-weight: 400; }
.sheet .switch.pick { align-items: center; gap: 10px; cursor: default; flex-wrap: wrap; }
.sheet .switch.pick b { flex: none; }
.sheet .switch.pick select { background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 7px; padding: 5px 8px; }
.sheet .switch.pick input[type=range] { flex: 1; min-width: 90px; accent-color: var(--accent); }
.sheet .switch.pick .btn { padding: 5px 12px; }

/* ---- sign in with the Lobby ------------------------------------------------------------------ */
.signin-sso {
  display: block; width: 100%; padding: 12px; margin: 0 0 4px; text-align: center;
  background: var(--brand); color: #fff; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.signin-sso:hover { filter: brightness(1.08); }
.signin-or {
  display: flex; align-items: center; gap: 10px; margin: 16px 0;
  font-size: 12px; color: var(--ink-3);
}
.signin-or::before, .signin-or::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.signin-note {
  margin: 0 0 14px; padding: 10px 12px; background: var(--warn-soft); color: var(--warn);
  border-radius: var(--radius-sm); font-size: 13px;
}

/* a contacts row is two controls: open the conversation, or rename the number */
.dirli { display: flex; align-items: center; gap: 4px; }
.dirli .dirrow { flex: 1; min-width: 0; }
.diredit {
  flex: none; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  color: var(--ink-3);
}
.diredit:hover { background: var(--line-soft); color: var(--accent); }
.diredit svg { width: 16px; height: 16px; }

/* The bin. 🚨 It is NOT red sitting there .. three icons in a row, one of them permanently red,
   reads as an alert on the contact rather than an action available on it, and 1,565 of his rows
   have one. Red on hover and on focus, where it means "this is the destructive one". */
.diredit.del:hover, .diredit.del:focus-visible {
  background: var(--danger-soft); color: var(--danger);
}

/* ---- saved contacts a text can never go to  `[unreachable-contacts-20261011]` ----------------
   46 of his 1,686 rows. The number is shown as stored, because which digits are the extension is
   not something we know. */
.badlist .dirrow-flat { cursor: default; }
.badlist .dirrow-flat:hover { background: none; }
.badlist .dirname { font-weight: 600; }
.badlist .dirsub > span:first-child { font-variant-numeric: tabular-nums; }
/* Fully specified for the same reason as `.tag.kind`: the base `.tag` rule is scoped to `.mlist`,
   and this chip has to read the same way in the editor's sheet if it ever moves there. */
.tag.warnt {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 6px; border-radius: 5px; white-space: nowrap; flex: none;
  background: var(--warn-soft); color: var(--warn);
}

/* ---- group reality ---------------------------------------------------------------------------
   Our carrier does not do group messaging. These two marks are what keep a fanned-out broadcast
   honest: who can actually see a reply, and what a reply is answering. */
.privnote {
  font-size: 11.5px; font-style: italic; color: var(--warn); margin: 0 4px 3px;
}
/* The relay DID share it, so this note is reassurance, not a warning. Same line, different job. */
.privnote.ok { color: var(--ok); }
.answers {
  display: block; max-width: 100%; text-align: left; margin: 0 2px 3px;
  padding: 5px 10px; border-left: 3px solid var(--ink-3); border-radius: 0 8px 8px 0;
  background: var(--line-soft); color: var(--ink-2);
}
.answers:hover { background: var(--accent-soft); }
.answers .qlbl { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--ink-3); }
.answers .qtxt { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; max-width: 340px; }

.notice {
  align-self: center; max-width: 460px; margin: 24px auto; padding: 14px 16px;
  background: var(--warn-soft); color: var(--warn); border-radius: 12px; font-size: 13px;
}
.notice b { display: block; margin-bottom: 5px; font-size: 13.5px; }

.notice.ok { background: var(--accent-soft); color: var(--accent); }

/* "Add someone" is a labelled control, not another anonymous icon. */
.addwho {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--ink-2);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.addwho span { font-size: 14px; line-height: 1; font-weight: 700; }
.addwho:hover { border-color: var(--accent); color: var(--accent); }

.signin-hint { margin: 6px 0 0; font-size: 12px; color: var(--ink-3); text-align: center; }

/* ---- contact cards ---------------------------------------------------------------------------
   Sending somebody's details, and reading one that arrives. 🚨 Every colour here is a token, so
   both themes follow; the one thing never done with a token is paint it behind white text .. the
   --ok / --danger tokens are TEXT colours and they flip light in the dark theme. */

/* waiting on the composer */
.cardchip {
  display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 8px 10px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
}
.cardchip-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.cardchip-ic svg { width: 19px; height: 19px; }
.cardchip-mid { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cardchip-nm { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.cardchip-sub { font-size: 11.5px; color: var(--ink-3); }
.cardchip-ed {
  flex: none; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); font-size: 11.5px; font-weight: 600; color: var(--ink-2);
}
.cardchip-ed:hover { border-color: var(--accent); color: var(--accent); }
.cardchip .x {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--line-soft);
  color: var(--ink-2); font-size: 15px; line-height: 20px; text-align: center;
}

/* the preview, inside the sheet */
.cardprev-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cardprev-nm { font-size: 17px; font-weight: 650; }
.cardprev-sub { font-size: 13px; color: var(--ink-2); }
.cardprev-text {
  white-space: pre-wrap; padding: 11px 13px; border-radius: 12px; background: var(--panel-2);
  border: 1px solid var(--line); font-size: 13.5px; line-height: 1.45;
}
.cardprev-how { margin: 10px 0 16px; font-size: 12.5px; color: var(--ink-2); }

/* one inside a bubble, sent or received */
.vcard {
  display: flex; align-items: center; gap: 10px; max-width: min(300px, 78vw);
  padding: 9px 11px; border-radius: 13px; background: var(--panel-2);
  border: 1px solid var(--line); text-align: left;
}
.vc-ic { display: grid; place-items: center; width: 32px; height: 32px; flex: none;
  border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.vc-ic svg { width: 18px; height: 18px; }
.vc-mid { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.vc-nm { font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.vc-sub { font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.vc-save {
  flex: none; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--accent);
  background: transparent; color: var(--accent); font-size: 12px; font-weight: 600;
}
.vc-save:disabled { border-color: var(--line); color: var(--ink-3); }

/* 🚨 "A newer version is ready" .. the only thing in this app that is allowed to sit over the
   header, because it is rare, dismissible, and about the app itself rather than a conversation.
   Above the sheet scrim (60) and the menu (50); below the lightbox (90) and the toast (100). */
.newver {
  position: fixed; z-index: 80; top: 10px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  /* 🚨 Wide enough that the sentence stays on one or two lines. At min(460px, 94vw) on a 390px
     phone it wrapped to four lines and became a block sitting over the conversation header. */
  width: max-content; max-width: calc(100vw - 20px);
  padding: 9px 10px 9px 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.22); font-size: 13px; color: var(--ink);
}
.newver .btn { padding: 6px 13px; font-size: 12.5px; }
.newver .x {
  width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--line-soft);
  color: var(--ink-2); font-size: 15px; line-height: 22px; text-align: center;
}

/* [compact-top-20261015] the total is on the All tile now; a second copy beside the search box was noise */
.side-top #unread { display: none !important; }

/* [hide-lines-20261019] menu > Show lines */
/* `.sheet label` (uppercase, block) outranks a bare .lsw, so these say .sheet label.lsw */
.sheet label.lsw { display: flex; text-transform: none; letter-spacing: normal; font-size: 15px; color: var(--ink); margin: 0; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid rgba(127,127,127,.18); cursor: pointer; }
.sheet label.lsw input { width: 20px; height: 20px; flex: 0 0 auto; }
.lsw-t { display: flex; flex-direction: column; min-width: 0; }
.lsw-n { font-weight: 600; font-size: 15px; }
.lsw-d { font-size: 12px; opacity: .65; }

/* ---- link preview cards `[linkprev-20261024]` ------------------------------------------------
   The card Apple Messages draws under a link. Same shape in a bubble and in the composer: the
   picture on top at a FIXED height (so the thread does not jump when it arrives), then the title
   and the site. The card is the link .. one tap opens the page. */
.lpslot:empty { display: none; }
.lp {
  display: block; width: 260px; max-width: 100%; margin-top: 4px; border-radius: 14px;
  overflow: hidden; background: var(--in-bg); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line);
}
.lp img { display: block; width: 100%; height: 150px; object-fit: cover; background: var(--line-soft); }
.lp-tx { display: block; padding: 8px 12px 9px; }
.lp-t {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13.5px; font-weight: 700; line-height: 1.3;
}
.lp-s { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m.out .lpslot { display: flex; justify-content: flex-end; }
.lp-load {
  margin-top: 4px; padding: 6px 11px; border-radius: 12px; font-size: 12.5px; font-weight: 600;
  background: var(--line-soft); color: var(--accent);
}
.lp-load:disabled { color: var(--ink-3); }
.lpcomp { position: relative; width: 260px; max-width: 100%; }
.lpcomp:empty { display: none; }
.lpcomp .lp { margin: 0 0 8px; }
.lpcomp .lp-wait { font-size: 12px; color: var(--ink-3); margin: 0 2px 7px; }
.lpcomp .x {
  position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.65); color: #fff; font-size: 14px; line-height: 22px; text-align: center;
}

/* [block-20261102] Menu › Blocked numbers */
.blk-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line, #e5e5e5); }
.blk-t { flex: 1; min-width: 0; }
.blk-n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blk-d { font-size: 12px; opacity: .7; }
#blockadd { flex: 1 1 160px; min-width: 0; }
#do-blockadd { align-self: center; }

/* [icon-color-20261102] Dennis: "none of the icons have color". Each conversation-header icon gets
   its own color. A set flag / reminder keeps its state color (the :not() leaves those to
   .flagged, .flagged-timed and .flagged-due above). */
:root {
  --ic-call: #1b8a3a; --ic-add: #1a73e8; --ic-flag: #e8710a; --ic-remind: #8e44ad;
  --ic-archive: #8d6e63; --ic-block: #d32f2f; --ic-info: #1565c0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ic-call: #5fd38a; --ic-add: #7fb3ff; --ic-flag: #ffab5e; --ic-remind: #c79bea;
    --ic-archive: #c2a49a; --ic-block: #ff7b7b; --ic-info: #82b8ff;
  }
}
.chead a.iconbtn[href^="tel:"]                 { color: var(--ic-call); }
.chead #btn-addrcpt3                           { color: var(--ic-add); }
.chead #btn-flag:not(.flagged)                 { color: var(--ic-flag); }
.chead #btn-remind:not(.flagged-timed):not(.flagged-due) { color: var(--ic-remind); }
.chead #btn-archive-top                        { color: var(--ic-archive); }
.chead #btn-block-top                          { color: var(--ic-block); }
.chead #btn-info                               { color: var(--ic-info); }
