/* Wazir on the web: the iPhone app's look (ios/Wazir/Theme.swift) and its layout on any window (his call, 31 Oct):
   the tab bar at the foot, Tell Wazir just over it, each part in one centred column. The system font, light and dark
   from the system, the accent from the chosen logo (D17), and colour only where meaning needs it: red for Drop and
   errors, amber for waiting, green for done. No em-dashes anywhere. */

:root {
  color-scheme: light dark;
  --bg: #f2f2f7;
  --side: #e8e8ee;
  --card: #ffffff;
  --row-hover: #f5f5f8;
  --sec-head: #e5e5ea;
  --sec-head-hover: #dcdce2;
  --field: #f0f0f4;
  --menu: #ffffff;
  --text: #1c1c1e;
  --text-2: rgba(60, 60, 67, 0.66);
  --text-3: rgba(60, 60, 67, 0.36);
  --sep: rgba(60, 60, 67, 0.15);
  --hover: rgba(0, 0, 0, 0.045);
  --accent: #0f5c47;
  --accent-tint: rgba(15, 92, 71, 0.09);
  --accent-tint-2: rgba(15, 92, 71, 0.16);
  --sel: #e6efec;                 /* the selected line on Today: the accent tint over a card, solid for the actions' fade */
  --on-fill: #ffffff;
  --red: #e0352b;
  --orange: #c96f00;
  --amber: #9a6700;               /* a P2 line (17 Nov): 4.9:1 on a card, 4.2:1 on the selected line */
  --green: #22883b;
  --blue: #0a6fe0;
  --purple: #8944ab;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* The column every part, Tell Wazir and the tab bar's tabs keep to on a wide window, so a row never runs 2000 px. */
  --col: 760px;
  --gutter: 28px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --side: #111113;
    --card: #1c1c1e;
    --row-hover: #242427;
    --sec-head: #2c2c2e;
    --sec-head-hover: #343437;
    --field: #2c2c2e;
    --menu: #2c2c2e;
    --text: #f2f2f7;
    --text-2: rgba(235, 235, 245, 0.62);
    --text-3: rgba(235, 235, 245, 0.32);
    --sep: rgba(84, 84, 88, 0.6);
    --hover: rgba(255, 255, 255, 0.06);
    --accent: #4fb392;
    --accent-tint: rgba(79, 179, 146, 0.12);
    --accent-tint-2: rgba(79, 179, 146, 0.2);
    --sel: #233630;
    --on-fill: #1c1c1e;
    --red: #ff453a;
    --orange: #ff9f0a;
    --amber: #ffbf47;             /* 10.4:1 on a card, 7.8:1 on the selected line */
    --green: #30d158;
    --blue: #0a84ff;
    --purple: #bf5af2;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}

* { box-sizing: border-box; }
/* What is scrolled to or focused stays clear of the part's top and of the dock at the foot. */
html { -webkit-text-size-adjust: 100%; scroll-padding: var(--top-h, 60px) 0 calc(var(--dock-h, 76px) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.42 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.icon { width: 20px; height: 20px; flex: none; display: block; }
.icon.tiny { width: 14px; height: 14px; }
.icon.good { color: var(--green); }
.icon.bad { color: var(--red); }
.icon.working { color: var(--blue); }
.muted { color: var(--text-2); }
.small { font-size: 12.5px; }
kbd.hint {
  font: 11px/1 var(--mono);
  color: var(--text-3);
  border: 1px solid var(--sep);
  border-radius: 4px;
  padding: 2px 5px;
}

/* -- the shell ---------------------------------------------------------------------------------------------- */

/* One column, as on the phone: the part, then the dock fixed at the foot (the toast, Tell Wazir, the tab bar). */
.shell { min-height: 100vh; min-height: 100dvh; }
.main { min-width: 0; }
.badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
}

/* The phone's tab bar, on every window: five tabs in its order, the glyph over the label, the one in view in the accent. */
.tabbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 6px max(var(--gutter), calc((100% - 560px) / 2)) calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--sep);
  background: var(--side);
  background: color-mix(in srgb, var(--side) 92%, transparent);
}
.tab {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 2px 0;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
}
.tab:hover { color: var(--text); }
.tab.on { color: var(--accent); }
.tab-icon { position: relative; }
.tab-icon .icon { width: 24px; height: 24px; }
.tab .badge { position: absolute; top: -4px; right: -12px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; }

/* -- a part's header and the strips ----------------------------------------------------------------------- */

/* The title, its buttons and the strips stay at the top while the part scrolls; laid out as the phone's navigation
   bar: buttons left and right, the title in the middle, over the part's column. */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
}
.head {
  display: grid;
  /* The buttons keep their width; a long title is cut short between them, never under them (13 Nov). */
  grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr);
  align-items: center;
  gap: 10px;
  max-width: calc(var(--col) + 2 * var(--gutter));
  min-height: 56px;
  margin: 0 auto;
  padding: 8px var(--gutter);
}
.head-left { display: flex; align-items: center; gap: 6px; min-width: 0; justify-self: start; }
.head-titles { min-width: 0; text-align: center; }
.head h1 { margin: 0; overflow: hidden; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; text-overflow: ellipsis; white-space: nowrap; }
.head-over { overflow: hidden; font-size: 11.5px; font-weight: 500; line-height: 1.3; color: var(--accent); text-overflow: ellipsis; white-space: nowrap; }
.head-sub { overflow: hidden; font-size: 12.5px; color: var(--text-2); text-overflow: ellipsis; white-space: nowrap; }
/* A header's shorter line at phone width (Head's subShort, 18 Nov): the long one was cut off there. */
.head-sub .sub-short { display: none; }
@media (max-width: 559px) {
  .head-sub .sub-long { display: none; }
  .head-sub .sub-short { display: inline; }
}
/* Where he is, over the date, opening Days (18 Nov, his yes to the audit: it read as a label): a dotted underline and
   a chevron, drawn here so the link's own text stays the place's name. */
.head-place { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.head-place::after { content: "\203A"; margin-left: 3px; text-decoration: none; display: inline-block; }
.head-place:hover { text-decoration-style: solid; }
.head-acts { display: flex; align-items: center; justify-content: flex-end; gap: 4px; justify-self: end; }
.head-left .icon-btn, .head-acts .icon-btn { color: var(--accent); }
.head-left .icon-btn .icon, .head-acts .icon-btn .icon { width: 22px; height: 22px; }
.head-text {
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--accent);
  font-size: 15px;
  line-height: 32px;
  text-decoration: none;
  cursor: pointer;
}
.head-text:hover { background: var(--hover); }
.head-text.on { font-weight: 650; }
.head .back { color: var(--accent); }
.thread-sub .status-word { display: inline; font-size: inherit; font-weight: 500; }

.strips { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 7px 8px 7px 12px;
  border-radius: 10px;
  font-size: 13px;
}
.strip-error { background: color-mix(in srgb, var(--red) 13%, var(--card)); }
.strip-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.strip-act { flex: none; height: 26px; font-weight: 600; }
.strip-x { width: 26px; height: 26px; color: var(--red); }
.strip-x:hover { color: var(--red); background: color-mix(in srgb, var(--red) 14%, transparent); }
.strip-updated { background: color-mix(in srgb, var(--blue) 13%, var(--card)); }
.strip-thin { padding: 5px 12px; font-size: 12.5px; background: color-mix(in srgb, var(--orange) 15%, var(--card)); }

/* -- buttons and fields ------------------------------------------------------------------------------------ */

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text-2);
  cursor: pointer;
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn.boxed { border: 1px solid var(--sep); background: var(--card); }
.icon-btn:disabled { opacity: 0.4; cursor: default; background: none; }
.icon-btn.boxed:disabled { background: var(--card); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--sep);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { border-color: var(--text-3); }
.btn .icon { width: 16px; height: 16px; }
.btn-small { height: 30px; padding: 0 10px; font-size: 13px; }
.btn-tint { background: var(--accent-tint-2); border-color: transparent; color: var(--accent); }
.btn-tint:hover { border-color: var(--accent); }
.btn-fill { background: var(--accent); border-color: var(--accent); color: var(--on-fill); }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
/* The "no" beside a "yes" (Skip, Drop): a light red, so it never reads as Approve (Deepak, 12 Nov). */
.btn-tint-red { background: color-mix(in srgb, var(--red) 12%, transparent); border-color: transparent; color: var(--red); }
.btn-tint-red:hover { border-color: var(--red); }
.btn-danger:hover { border-color: var(--red); filter: brightness(1.06); }
.btn:disabled { opacity: 0.5; cursor: default; }

.field {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--sep);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  outline: none;
}
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint-2); }
.field::placeholder { color: var(--text-3); }
textarea.field { display: block; resize: none; line-height: 1.4; }
.send {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  cursor: pointer;
}
.send .icon { width: 30px; height: 30px; }
.send.off { color: var(--text-3); cursor: default; }
.add-bar, .compose, .answer { display: flex; align-items: flex-end; gap: 8px; }

/* -- pages, sections, cards and rows -------------------------------------------------------------------------- */

/* Every part is one centred column and keeps clear of the dock at the foot of the window (Tell Wazir, the tab bar). */
.page { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 4px var(--gutter) calc(var(--dock-h, 130px) + 32px); }
.section { margin: 0 0 22px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.section-title { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.lock-inline { display: inline-flex; }
.section-count { font-variant-numeric: tabular-nums; font-weight: 500; }
.section-count.over { color: var(--orange); font-weight: 700; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.card > * { position: relative; }
.card > * + *::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 0;
  border-top: 1px solid var(--sep);
}
.note { margin: 0; color: var(--text-2); font-size: 14px; }
.empty { display: grid; justify-items: center; gap: 12px; padding: 48px 16px; text-align: center; color: var(--text-2); }
.empty p { margin: 0; }
.empty-icon { width: 34px; height: 34px; color: var(--text-3); }
.loading { padding: 40px 0; text-align: center; color: var(--text-2); }

.row { display: flex; align-items: flex-start; gap: 8px; min-height: 44px; padding: 10px 14px; }
.row.todo:hover, .row.item:hover, .qrow:hover { background: var(--row-hover); }
.row-body { flex: 1; min-width: 0; }
.row-title { display: flex; align-items: baseline; gap: 6px; overflow-wrap: anywhere; }
.meta { margin-top: 2px; font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }
.meta .alert { color: var(--red); font-weight: 600; }
.chip {
  display: inline-block;
  flex: none;
  padding: 0 6px;
  border: 1px solid color-mix(in srgb, currentColor 50%, transparent);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  position: relative;
  top: -1px;
}
.chip-p1 { color: var(--red); }
.chip-accent { color: var(--accent); }
.chip-now { color: var(--orange); background: color-mix(in srgb, var(--orange) 16%, transparent); border-color: transparent; }
.chip-fable { color: var(--purple); background: color-mix(in srgb, var(--purple) 16%, transparent); border-color: transparent; }
.lock, .fold { flex: none; display: grid; place-items: center; padding-top: 2px; color: var(--text-3); }
.lock { color: var(--text-2); }
.lock .icon { width: 14px; height: 14px; }
.lock-doc { color: var(--blue); }       /* a line from a shared Google Doc: the doc's icon in the lock's place (18 Nov) */
/* A read-only line's lock, or the doc's icon, in the tick's place (18 Nov, his yes to the audit): its words start where
   every other line's do. */
.lock.lock-lead { width: 26px; height: 26px; margin: -3px 0 -3px -4px; padding-top: 0; }
.lock.lock-lead .icon { width: 16px; height: 16px; }
/* A long line shows two rows, three on a phone, until it is opened (18 Nov, his yes to the audit). */
.row.todo.long:not(.open):not(.editing) .row-title .inline { display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; overflow: hidden; }
/* Details: a button on a wide screen; on a phone a word in the grey line, the row's tap opening it (18 Nov). */
.details-cue { display: none; }
.fold .icon { width: 16px; height: 16px; transition: transform 0.15s; }
.todo.open .fold .icon, .fold.up .icon { transform: rotate(180deg); }
.row-body[role="button"] { cursor: pointer; }
.detail { margin-top: 6px; }
.detail-link { display: flex; align-items: baseline; gap: 5px; margin-top: 4px; font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }
.detail-link .icon { width: 13px; height: 13px; position: relative; top: 2px; }

/* A row's menu: the three dots at its end, quiet until the row is hovered or selected, never hidden (the phone's
   long-press has no hover either); a right-click on the row opens it too. */
.acts { display: flex; flex: none; gap: 2px; margin: -5px -6px -5px 0; }
.act {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--text-3);
  cursor: pointer;
}
.act .icon { width: 18px; height: 18px; }
.row:hover .act, .row:focus-within .act { color: var(--text-2); }
.act:hover { background: var(--hover); color: var(--text); }
.item .acts { margin: 6px 6px 0 -6px; }   /* an item's padding is on its link, so the menu takes its own */
.doc .acts { margin: 6px 6px 0 -6px; }

/* Done, as a circle at the start of a line (the phone's swipe right): the check shows on hover, green. */
.tick {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: -3px 0 -3px -4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text-3);
  cursor: pointer;
}
.tick .icon { width: 22px; height: 22px; }
.tick .tick-check { position: absolute; inset: 0; margin: auto; width: 13px; height: 13px; stroke-width: 2.6; opacity: 0; }
.tick:hover { color: var(--green); }
.tick:hover .tick-check { opacity: 1; }
.row.has-tick { gap: 10px; }

/* -- Today ------------------------------------------------------------------------------------------------- */

/* Top to bottom as the phone's Today tab: the Next card, his lines, Tomorrow, then the Done row (Wazir suggests went on
   22 Nov 2026, D39). */
.next { margin: 0 0 22px; padding: 12px 16px; border-radius: var(--radius); background: var(--accent-tint-2); }
.next-eyebrow { font-size: 13px; font-weight: 650; color: var(--accent); }
.next-headline { margin-top: 1px; font-size: 19px; font-weight: 650; overflow-wrap: anywhere; }
.next-tomorrow { margin-top: 6px; font-size: 13.5px; color: var(--text-2); overflow-wrap: anywhere; }
.next-tomorrow:first-child { margin-top: 0; }
.next-none .next-headline { font-size: 15px; font-weight: 400; color: var(--text-2); }
.today > .note { margin: 0 0 22px; padding: 12px 4px; }
.ev {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  padding: 9px 14px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}
.ev-time { flex: none; min-width: 58px; font-size: 13.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ev-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ev-place { color: var(--text-2); }
.ev-clash { display: block; margin-top: 3px; font-size: 12.5px; color: var(--orange); }
.ev.ended .ev-title { color: var(--text-2); }
.ev-fold { justify-content: space-between; color: var(--text-2); font-size: 13.5px; cursor: pointer; }
/* Each calendar line has the to-do lines' tick (2 Nov); ticked, it is filled green and folded with the ended ones. */
.ev { gap: 10px; }
.ev .tick { align-self: flex-start; margin-top: -4px; margin-bottom: -4px; }
.ev .tick-space { flex: none; width: 22px; }
.tick.on { color: var(--green); }
.tick.on .tick-check { opacity: 1; }
.tick.on:hover { color: var(--text-3); }
.ev-fold:hover { background: var(--row-hover); }
.queued .meta { font-style: italic; }
/* Compact (2 Nov, "preserve some vertical spacing to accommodate more items"): the room comes from padding and gaps,
   never the type; rows keep 36 px, an easy click. */
.today .section { margin-bottom: 14px; }
.today .section-head { padding-bottom: 4px; }
.today .row { min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.today .row .tick { margin-top: -4px; margin-bottom: -4px; }
.today .ev { padding-top: 6px; padding-bottom: 6px; }
.today .next { margin-bottom: 14px; padding: 8px 14px; }
/* A one-on-one's open points after its title (22 Nov 2026, D39): quiet, a link to the person's page. */
.ev-points { margin-left: 8px; color: var(--text-2); font-size: 12.5px; text-decoration: none; white-space: nowrap; }
.ev-points:hover { color: var(--accent); text-decoration: underline; }
/* Today, Tomorrow, Snoozed and Done share one head (15 Nov, Deepak: "identical formatting", centred, "some background
   shading so that it differs a little from the line items below"); open, it is the top of its card, a line under it.
   Since 18 Nov (his yes to the audit) every fold wears it: To-dos' Snoozed, and
   inside a card (Older, Asked of you's More) the same chevron, "Older · 20" and Show or Hide on a row of the card. */
.section-head.sec-toggle {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--radius);
  background: var(--sec-head);
  font: inherit;
  font-size: 13.5px;
  color: var(--text-2);
  cursor: pointer;
}
.section-head.sec-toggle:hover { background: var(--sec-head-hover); }
.sec-chev { justify-self: start; display: inline-flex; }
.sec-title { justify-self: center; white-space: nowrap; }
.sec-toggle .section-count { justify-self: end; }
.section-head.sec-toggle[aria-expanded="true"] { border-radius: var(--radius) var(--radius) 0 0; }
.section-head.sec-toggle[aria-expanded="true"] + .card {
  margin-top: 0;
  border-top: 1px solid var(--sep);
  border-radius: 0 0 var(--radius) var(--radius);
}
/* A person's page (18 Nov): its two sections wear Today's bar, a little apart; a long name wraps, centred. */
.person-sec { margin-bottom: 18px; }
.person-sec .sec-title { white-space: normal; text-align: center; padding: 0 8px; }
/* The Done row under his lines: the words as they were, the day of the Done in grey, Reopen at the end. */
.done-line { align-items: center; }
.done-line .row-title { color: var(--text-2); }
.done-reopen { flex: none; color: var(--accent); }
.done-all { display: flex; align-items: center; gap: 4px; color: var(--accent); text-decoration: none; font-size: 13px; }
.done-all:hover { text-decoration: underline; }
.done-more { display: flex; justify-content: center; margin: 8px 0 24px; }

/* Noticed (DESIGN D33): what Wazir saw him do and how its calls scored, read only. A source silent for over a day
   while he was active elsewhere is red: silence is not success. */
/* Medha (DESIGN D34): Wazir's memory, searched in one place */
.medha-search { margin: 0 0 10px; }
.medha-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 2px 16px; }
.medha-chips .chip { cursor: pointer; padding: 3px 10px; font-size: 12.5px; background: none; }
.medha-chips .chip.on { background: var(--accent-tint-2); color: var(--accent); border-color: var(--accent); }
.medha-note { margin: 0 4px 10px; }
.medha-hit .row-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.medha-src { flex: none; font-size: 11.5px; }
.medha-src.src-mail { color: var(--accent); }
.medha-src.src-whatsapp { color: var(--green); }
.medha-src.src-sessions { color: var(--orange); }
.medha-src.src-docs { color: var(--purple); }
.medha-state { margin-left: 6px; font-size: 11.5px; }
.medha-state.ok { color: var(--green); }
.medha-state.stale, .medha-state.error { color: var(--red); }
.medha-source.state-error, .medha-source.state-stale { box-shadow: inset 3px 0 0 var(--red); }
.medha-title { margin: 4px 4px 2px; font-size: 20px; font-weight: 650; overflow-wrap: anywhere; }
.medha-entry > .meta { margin: 0 4px 12px; }
.medha-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 4px 12px; }
.medha-cmd { margin: 0 4px 6px; padding: 8px 10px; border-radius: 8px; background: var(--row-hover); font-size: 12.5px;
  white-space: pre-wrap; overflow-wrap: anywhere; }
.medha-body { padding: 4px 0; overflow-wrap: anywhere; }
.medha-turn { padding: 10px 14px; border-top: 1px solid var(--sep); }
.medha-turn:first-child { border-top: 0; }
.medha-turn.here { background: var(--accent-tint-2); }
.medha-turn .meta b { color: var(--text); font-weight: 650; }
.medha-turn .md { margin-top: 4px; }
.noticed-mode { margin: 4px 4px 16px; }
.noticed-source.silent { box-shadow: inset 3px 0 0 var(--red); }
.noticed-figure { align-items: baseline; }
.noticed-cols { min-height: 30px; padding-top: 8px; padding-bottom: 2px; font-size: 12px; color: var(--text-2); }
.noticed-num { flex: none; width: 60px; text-align: right; font-variant-numeric: tabular-nums; }
.noticed-cols .noticed-num { font-weight: 600; }
.noticed-chip.done { color: var(--green); }
.noticed-chip.split { color: var(--orange); }
.noticed-line { min-width: 0; overflow-wrap: anywhere; }
.noticed-quote { margin-top: 4px; padding-left: 8px; border-left: 2px solid var(--sep); font-size: 14px;
  overflow-wrap: anywhere; }
.noticed-link { margin-top: 8px; }


/* The selected line (the keys act on it): the accent's tint and a bar at its start. */
.today-lines .row.todo, .tomorrow-lines .row.todo, .block-lines .row.todo { outline: none; }
.today-lines .row.todo:focus, .today-lines .row.todo.sel, .tomorrow-lines .row.todo:focus, .block-lines .row.todo:focus { background: var(--sel); box-shadow: inset 3px 0 0 var(--accent); }
/* Today's block (D42 stage 2, 23 Nov 2026): under his list, one quiet card of what Wazir keeps for him, each row saying
   what it is; an agent's row has its mark where a tick would be, the agent being the one to close it. */
.block-lines .row.todo { min-height: 38px; padding-top: 8px; padding-bottom: 8px; }
.block-lines .row-title { color: var(--text-2); }
.block-lines .blk-words { flex: 1 1 10em; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: inherit;
  text-decoration: none; }
.block-lines .blk-words:hover { color: var(--text); }
.block-lines .row.blk.late .row-title { color: var(--red); }
.blk-mark { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin: -3px 0 -3px -4px;
  color: var(--text-2); }
/* Coming up's days (D42 stage 2): a quiet head over each day's lines, the next first. */
.coming-day { padding: 8px 14px 2px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.tomorrow-lines .coming-day + .row, .tomorrow-lines .coming-day + .ev { border-top: 0; }
.row-edit {
  flex: 1;
  min-width: 0;
  margin: -3px 0 -3px -6px;
  padding: 2px 6px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-tint-2);
}
.row-edit-note { margin-top: 5px; font-size: 12.5px; color: var(--red); }
.today-lines .row.todo.editing .acts, .todos .row.todo.editing .acts { display: none; }
/* "Add a line" (12 Nov): the last row of a single list's card, quiet until it has the cursor; its plus sits where the
   rows' ticks do. */
.add-line { align-items: center; color: var(--text-3); }
.add-line .add-plus { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin: -3px 0 -3px -4px; }
.add-line .add-plus .icon { width: 18px; height: 18px; }
.add-line input { display: block; width: 100%; padding: 0; border: 0; background: none; outline: none; color: var(--text);
  font: inherit; }
.add-line input::placeholder { color: var(--text-3); }
.add-line:focus-within { box-shadow: inset 3px 0 0 var(--accent); color: var(--accent); }
.add-line .row-edit-note { margin: 0; }
/* An add still queued: its words where the rows' words start, past the tick it does not have yet. */
.todos .row.todo.queued .row-body { padding-left: 32px; }
/* A P1 line (4 Nov, his "!p1"): on top, its words bold and red, its circle red. A P2 (17 Nov, "some other color
   instead of saying P2"): right after the P1s, bold and amber, its circle amber. */
.row.todo.p1 .row-title { color: var(--red); font-weight: 650; }
.row.todo.p1 .tick { color: var(--red); }
.row.todo.p2 .row-title { color: var(--amber); font-weight: 650; }
.row.todo.p2 .tick { color: var(--amber); }
/* No Edit step: a line drags at any time, so the hand shows over one while two or more can move. On a list's page
   (14 Nov) over a line with another of its priority beside it. */
.today-lines.movable .row.todo:not(.editing), .list-lines .row.todo.moves:not(.editing) { cursor: grab; }

/* A line dragged with the pointer follows it, whole, above the list (the card lets it out while it moves); a bar
   shows where it lands. */
html.sorting, html.sorting * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
html.sorting .acts, html.sorting .tick { visibility: hidden; }
html.sorting .today-lines, html.sorting .list-lines { overflow: visible; }
html.sorting .today-lines .row.todo:hover, html.sorting .list-lines .row.todo:hover { background: none; }
html.sorting .today-lines .row.todo.dragging, html.sorting .list-lines .row.todo.dragging { z-index: 3; border-radius: 10px;
  background: var(--card); box-shadow: var(--shadow); }
.today-lines .row.todo.dragging::before, .list-lines .row.todo.dragging::before { display: none; }
.today-lines .row.todo.drop-above, .list-lines .row.todo.drop-above { box-shadow: inset 0 2px 0 var(--accent); }
.today-lines .row.todo.drop-below, .list-lines .row.todo.drop-below { box-shadow: inset 0 -2px 0 var(--accent); }
/* Across sections (3 Nov): the line keeps above the rest while it travels, and the section it would go to is lit. */
html.sorting .tomorrow-lines { overflow: visible; }
html.sorting .section.dragging-from { position: relative; z-index: 4; }
html.sorting .tomorrow-lines .row.todo.dragging { z-index: 3; border-radius: 10px; background: var(--card); box-shadow: var(--shadow); }
.tomorrow-lines .row.todo { cursor: grab; }
.section.drop-target > .card { background: var(--accent-tint-2); box-shadow: inset 0 0 0 2px var(--accent); }
.section.drop-target > .section-head { color: var(--accent); }
.tomorrow-word { font-weight: 700; color: var(--text); }   /* 4 Nov: Tomorrow stands out from its quiet counts */
.section.drop-target > .tomorrow-toggle { background: var(--accent-tint-2); box-shadow: inset 0 0 0 2px var(--accent); }
/* An event in Today's one list (3 Nov): its time small before a calendar mark, then its title. */
.event-line .row-title { gap: 8px; }
.ev-when { display: inline-flex; align-items: center; gap: 4px; flex: none; min-width: 62px; font-size: 12.5px;
  color: var(--text-2); font-variant-numeric: tabular-nums; }
.ev-when .icon { width: 13px; height: 13px; }
.event-line .ev-clash { color: var(--orange); }

/* -- To-dos ------------------------------------------------------------------------------------------------- */

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 18px; }
.search {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--sep);
  border-radius: 10px;
  background: var(--card);
  color: var(--text-2);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint-2); }
.search .icon { width: 17px; height: 17px; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--text); font-size: 15px; }
.search input::placeholder { color: var(--text-3); }
.search:focus-within .hint { display: none; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 220px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--sep);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: 13.5px;
  cursor: pointer;
}
.pill:hover { border-color: var(--text-3); }
.pill-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-count { color: var(--text-2); font-variant-numeric: tabular-nums; }
.pill .icon { color: var(--text-2); }
.pill.on { background: var(--accent-tint-2); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.pill.on .pill-count, .pill.on .icon { color: inherit; opacity: 0.7; }
.pill-p1 { color: var(--red); }
.pill-p1.on { background: color-mix(in srgb, var(--red) 13%, transparent); border-color: var(--red); color: var(--red); }
.pill-p2 { color: var(--amber); }
.pill-p2.on { background: color-mix(in srgb, var(--amber) 13%, transparent); border-color: var(--amber); color: var(--amber); }
.qrow { width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
/* All's index (12 Nov): one row per list, its P1s and its open count at the right. */
.list-row { align-items: center; color: inherit; text-decoration: none; }
.list-row:hover { background: var(--row-hover); }
.list-row .row-title { align-items: center; }
.list-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .chip { top: 0; }
.list-count { min-width: 2ch; color: var(--text-2); font-size: 14px; text-align: right; }
.list-row .fold { padding-top: 0; }
/* Other apps' lists (12 Nov): who keeps one, beside its name on All, and under the title on its page. */
.list-app { flex: none; margin-left: 8px; color: var(--text-2); font-size: 12.5px; white-space: nowrap; }
.view-note { margin: -6px 2px 14px; font-size: 13px; }
/* What is his on All (22 Nov 2026, DESIGN D39): an owner of decisions, a button row opening its lines in place, its
   glyph, name, the count shown and "· 26 held" in grey; its held lines in grey under a quiet fold; a person with
   points to raise, their photo, the count and "shared agenda" in grey, their next meeting's day at the right. */
.owner-row { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.owner-row .row-title { gap: 10px; }
.owner-row .tile-row { margin: -2px 0; }
.owner-glyph-none { flex: none; width: 20px; }
.owner-row[aria-expanded="true"] { background: var(--row-hover); }
.owner-row .list-count { white-space: nowrap; }
.held-n { color: var(--text-3); font-size: 12.5px; }
.held-fold { display: flex; align-items: center; gap: 6px; width: 100%; padding: 8px 14px 8px 44px; border: 0;
  background: none; color: var(--text-2); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.held-fold:hover { background: var(--row-hover); color: var(--text); }
.held-fold .icon { width: 12px; height: 12px; }
.row.todo.held .row-title, .row.todo.held .meta, .qrow.held .row-title { color: var(--text-3); }
.agenda-row .row-title { gap: 8px; }
.agenda-row .list-app { margin-left: 0; }
.agenda-meet { flex: none; margin-left: 8px; color: var(--text-2); font-size: 12.5px; white-space: nowrap; }
/* The life model (17 Nov): an area's heading on All opens its page; on an area's page each list's heading opens the
   list's own. Both read as links: the accent, a chevron, no underline until hovered. */
.area-link { color: var(--accent); text-decoration: none; border-radius: 6px; }
.area-link .section-title .icon { width: 14px; height: 14px; }
.area-link .section-count { color: var(--text-2); }
.area-link:hover .section-title, .head-link:hover { text-decoration: underline; }
.head-link { color: var(--accent); text-decoration: none; }
/* A person's shared document (Som's agenda), under their name: one tap opens it. */
.doc-card { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--card); color: inherit; text-decoration: none; }
.doc-card:hover { background: var(--row-hover); }
.doc-card-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  background: var(--accent-tint); color: var(--accent); }
.doc-card-icon .icon { width: 20px; height: 20px; }
.doc-card-body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.doc-card-title { font-weight: 600; overflow-wrap: anywhere; }
.doc-card-where { font-size: 12.5px; color: var(--text-2); }
.doc-card .fold .icon { width: 16px; height: 16px; }
/* A sectioned list's headings inside its card, and the Older fold (and Asked of you's Show all) at its foot. */
.group-head { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px 4px; color: var(--text-2);
  font-size: 12px; font-weight: 650; }
.group-head + .row::before { display: none; }
/* A line's group (17 Nov: a section of Som's agenda), over its first line; set in under a section's own heading. */
.group-head.line-group.nested { padding-left: 28px; }
/* Lines snoozed until an event (17 Nov, round 2): under the event's words, with It happened at the right; on the
   Waiting for events page the same as each section's heading. */
.event-head { align-items: center; justify-content: flex-start; }
.group-head.event-head { padding: 12px 10px 4px 14px; }
.event-words { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.group-head.event-head .event-words { color: var(--text); font-size: 12.5px; }
.event-head .section-count { flex: none; white-space: nowrap; }
.event-btn { flex: none; height: 26px; padding: 0 9px; font-size: 12.5px; font-weight: 600; }
.event-page-head { padding-right: 0; }
.section-head.sec-in-card, .section-head.sec-in-card[aria-expanded="true"] { border-radius: 0; background: none;
  border-top: 1px solid var(--sep); }
.card > .section-head.sec-in-card:first-child { border-top: 0; }
.section-head.sec-in-card:hover { background: var(--row-hover); }
/* The line has detail (12 Nov: the bare down-arrow said nothing): a small labelled button. */
.details-btn { flex: none; margin-top: 1px; padding: 1px 7px; border: 1px solid var(--sep); border-radius: 6px;
  background: none; color: var(--text-2); font: inherit; font-size: 11.5px; line-height: 16px; cursor: pointer; }
.details-btn:hover { border-color: var(--text-3); color: var(--text); }
.details-btn.on { border-color: var(--accent); color: var(--accent); }

/* -- Collections (20 Nov, DESIGN D37; collections.js): lists of things, not to-dos -------------------------------- */

/* On the To-dos index, under the lists: a glyph, the name, and the count in the collection's own words, quiet. */
.coll-icon { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; color: var(--text-2); }
.coll-icon .icon { width: 19px; height: 19px; }
.coll-row .coll-n { margin-left: 0; color: var(--text-2); font-variant-numeric: tabular-nums; }
/* A collection's page: its states as the To-dos' pills, then its things, each as a line. */
.coll-filters { margin-bottom: 14px; }
/* Sort (21 Nov, his ask on the Watch List): at the pills' end, tinted while anything but his own order shows. */
.coll-tools { display: flex; gap: 8px; margin-left: auto; }
.coll-sort, .coll-lang { gap: 5px; }
.coll-sort .icon, .coll-lang .icon { width: 15px; height: 15px; }
.coll-sort.on, .coll-lang.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
/* IMDb's rating beside a film's title (21 Nov): IMDb's yellow star, the number quiet and in one column's digits. */
.imdb-rating { display: inline-flex; align-items: baseline; gap: 3px; margin-left: 2px; color: var(--text-2); font-size: 13px;
  font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.imdb-star { color: #e2b203; font-size: 12px; }
.row.entry:hover { background: var(--row-hover); }
.row.entry .row-body { cursor: default; }
.row.entry.open .row-body, .row.entry .row-body:has(.entry-why, .entry-note) { cursor: pointer; }
.entry-title { overflow-wrap: anywhere; }
.row.entry .row-title { flex-wrap: wrap; row-gap: 2px; }
.chip.verdict { top: 0; }
.verdict-loved { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); border-color: transparent; }
.verdict-liked { color: var(--accent); }
.verdict-disliked { color: var(--text-2); }
/* Why it is worth his time on one line until the row is opened; where to find it with a pin. */
.entry-why { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.entry.open .entry-why { white-space: normal; }
.entry-where { display: flex; align-items: baseline; gap: 4px; }
.entry-where .icon { position: relative; top: 2px; width: 12px; height: 12px; flex: none; }
.entry-note { color: var(--text); font-style: italic; }
.row.entry .acts { align-self: flex-start; }
.row.entry .tick-space { flex: none; width: 26px; height: 26px; margin: -3px 0 -3px -4px; }
.row.entry.editing .row-body { cursor: text; }
/* A thing's P1 and P2 (21 Nov), as a line's on To-dos; a drag lifts it as a line is lifted there. */
.row.entry.p1 .entry-title { color: var(--red); font-weight: 650; }
.row.entry.p1 .tick { color: var(--red); }
.row.entry.p2 .entry-title { color: var(--amber); font-weight: 650; }
.row.entry.p2 .tick { color: var(--amber); }
.row.entry { outline: none; }
html.sorting .coll-lines { overflow: visible; }
html.sorting .coll-lines .row.entry:hover { background: none; }
html.sorting .coll-lines .row.entry.dragging { position: relative; z-index: 3; border-radius: 10px; background: var(--card);
  box-shadow: var(--shadow); }
.coll-lines .row.entry.drop-above { box-shadow: inset 0 2px 0 var(--accent); }
.coll-lines .row.entry.drop-below { box-shadow: inset 0 -2px 0 var(--accent); }
.row.entry.queued .entry-title { color: var(--text-2); }
.row.entry.ticked .entry-title { color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--text-3); }
/* The year beside the title in the add box (a watch or reading list). */
.add-fields { display: flex; align-items: center; gap: 10px; }
.add-fields input:first-child { flex: 1; min-width: 0; }
.add-line .add-year { flex: none; width: 4.5em; padding-left: 10px; border-left: 1px solid var(--sep); }
/* A checklist's Untick all and Clear ticked, under its Ticked fold. */
.coll-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 10px; }

/* -- Inbox and the thread ------------------------------------------------------------------------------------ */

.inbox-list { min-width: 0; }
.qstack { display: grid; gap: 10px; }
.qcard { margin: 0 0 12px; padding: 12px 14px; border: 1.5px solid transparent; border-radius: var(--radius); background: var(--card); }
.qstack .qcard { margin: 0; }
.qcard-age { margin-left: 4px; color: var(--text-3); }
.qcard.urgent { border-color: var(--orange); }
.qcard.focus { border-color: var(--accent); }
.qcard.opens { cursor: pointer; }
.qcard.opens .field { cursor: text; }
.qcard-title {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  margin-bottom: 4px;
  color: var(--text-2);
  font-size: 12.5px;
  text-decoration: none;
}
.qcard-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qcard-title:hover { color: var(--accent); }
.qcard-text { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; overflow-wrap: anywhere; }
.options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.option { height: auto; min-height: 30px; padding: 4px 12px; white-space: normal; text-align: left; }
.option.chosen { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
.answer { margin-top: 10px; }
.answer .field, .qcard .field { background: var(--field); border-color: transparent; }
.answer .field:focus { border-color: var(--accent); }
.answer .send .icon { width: 26px; height: 26px; }
.answered { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; }
.answered .icon { width: 17px; height: 17px; }
.answered .muted { margin-left: auto; }

.item { padding: 0; }
.item-link { display: flex; gap: 10px; padding: 10px 14px; color: inherit; text-decoration: none; }
.item-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.status { flex: none; padding-top: 1px; color: var(--text-2); }
.status .icon { width: 19px; height: 19px; }
.s-waiting { color: var(--orange); }
.s-working { color: var(--blue); }
.s-done { color: var(--green); }
.s-failed { color: var(--red); }
.s-dropped, .s-queued, .s-none { color: var(--text-2); }
.clamp2 { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.flag { flex: none; color: var(--red); }
.flag .icon { width: 13px; height: 13px; }
.one-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item.selected, .item.selected:hover { background: var(--accent-tint-2); }
.item.selected .acts { background: none; }

.thread { display: flex; flex-direction: column; min-width: 0; }
.back { display: inline-flex; align-items: center; gap: 2px; font-size: 15px; text-decoration: none; }
.back .icon { width: 20px; height: 20px; }
.thread-scroll { min-width: 0; }
.thread-status { margin: 0 0 14px; font-size: 14px; text-align: center; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chips .chip { top: 0; }
.status-word { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.status-word .icon { width: 15px; height: 15px; }
.bubble-row { display: flex; margin: 0 0 10px; }
.bubble-row.mine { justify-content: flex-end; }
.bubble { max-width: 84%; min-width: 0; padding: 9px 12px; border-radius: 14px; background: var(--card); }
.bubble.mine { background: var(--accent-tint-2); }
.bubble-row.result .bubble { flex: 1; max-width: 100%; }
.bubble.fenced { color: var(--text-2); font-style: italic; }
.bubble-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; font-size: 11.5px; }
.tools { flex: 1; min-width: 0; overflow: hidden; color: var(--text-3); text-overflow: ellipsis; white-space: nowrap; }
.result-label { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; color: var(--accent); font-size: 12px; font-weight: 650; }
.result-label .icon { width: 15px; height: 15px; }
.result-card {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--green) 40%, transparent);
  border-radius: var(--radius);
  background: var(--card);
}
.sysline {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 2px 28px 12px;
  color: var(--text-2);
  font-size: 12.5px;
  text-align: center;
  overflow-wrap: anywhere;
}
.sysline.long { cursor: pointer; }
.sysline.open { display: block; text-align: left; }
.job { margin: 0 0 10px; padding: 8px 10px; border: 1px solid var(--sep); border-radius: 10px; background: color-mix(in srgb, var(--card) 70%, transparent); font-size: 13px; }
.job.clickable { cursor: pointer; }
.job-head { display: flex; align-items: center; gap: 6px; }
.job-head .icon { width: 16px; height: 16px; }
.job-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; color: var(--text-2); }
.attachment { display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; border: 0; background: none; color: var(--accent); font-size: 13px; cursor: pointer; }
.attachment .icon { width: 15px; height: 15px; }
.reply { padding: 10px 0 0; }

/* Where what he sent was filed, under Wazir's reply: target and text, struck through once undone. */
.filings { display: grid; gap: 6px; max-width: 84%; margin: -2px 0 12px; }
.filing {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 8px 8px 10px;
  border: 1px solid var(--sep);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--card);
  font-size: 13.5px;
}
.filing > .icon { width: 16px; height: 16px; margin-top: 1px; color: var(--accent); }
.filing-body { flex: 1; min-width: 0; }
.filing-target { color: var(--accent); font-size: 12.5px; font-weight: 650; overflow-wrap: anywhere; }
.filing-text { margin-top: 1px; overflow-wrap: anywhere; }
.filing-acts { display: flex; flex: none; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.filing-acts .btn { height: 26px; padding: 0 8px; font-size: 12.5px; }
.filing-acts .btn .icon { width: 14px; height: 14px; }
.filing-state { flex: none; align-self: center; color: var(--text-2); font-size: 12px; }
.filing.undone { border-left-color: var(--sep); }
.filing.undone > .icon { color: var(--text-3); }
.filing.undone .filing-target, .filing.undone .filing-text { color: var(--text-2); text-decoration: line-through; }

/* An email to approve (D24): the email as it would leave, Send as the main button. */
.email-card .qcard-text { align-items: center; }
.email-ask { display: inline-flex; align-items: flex-start; gap: 7px; font-weight: 600; }
.email-ask .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--accent); }
.email { margin-top: 10px; border: 1px solid var(--sep); border-radius: 10px; background: var(--field); overflow: hidden; }
.email-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 12px;
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--sep);
  font-size: 13.5px;
}
.email-head dt { color: var(--text-2); }
.email-head dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.email-subject { font-weight: 600; }
.email-atts { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--sep); }
.email-att {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  padding: 4px 10px 4px 7px;
  border: 1px solid var(--sep);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
.email-att:hover { border-color: var(--accent); color: var(--accent); }
.email-att .icon { width: 16px; height: 16px; color: var(--accent); }
.email-att-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.email-att-size { flex: none; color: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.email-body { padding: 10px 12px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.email-text.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.email-acts .btn { height: 32px; padding: 0 16px; }
.email-send:hover { filter: brightness(1.08); }
.email-state.good span:first-of-type { color: var(--green); font-weight: 600; }
.email-state.bad span:first-of-type { color: var(--red); font-weight: 600; }
.email-state.working span:first-of-type { color: var(--blue); }
.email-state.muted span:first-of-type { color: var(--text-2); }
.email-state > .icon { color: var(--text-2); }

/* A thread's reply box takes files too: the tray above the line. */
.compose { flex-direction: column; align-items: stretch; gap: 0; }
.compose-row { display: flex; align-items: flex-end; gap: 8px; }
.compose.has-files { padding: 2px 0 0; border-radius: 12px; }
.compose-attach { flex: none; width: 34px; height: 38px; }
.compose-attach .icon { width: 19px; height: 19px; }
.compose .thumbs { padding: 0 0 8px; }
.compose .tell-note { padding: 0 0 6px; }

/* A thread's reply box is the foot of the window, in the dock where Tell Wazir and the tab bar are elsewhere. */
.reply { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 8px var(--gutter) calc(12px + env(safe-area-inset-bottom)); }
.reply .field { background: var(--card); }

/* -- Brief -------------------------------------------------------------------------------------------------- */

.brief-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.day-switch { display: flex; align-items: center; gap: 6px; }
.field.date { flex: none; width: auto; padding: 5px 10px; font-size: 14px; }
.date-pick { position: relative; display: inline-flex; align-items: center; min-width: 96px; justify-content: center;
  cursor: pointer; font-variant-numeric: tabular-nums; }
.date-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0;
  padding: 0; margin: 0; font: inherit; }
.date-pick:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint-2); }
.brief-caption { font-size: 12.5px; }
.brief-card { padding: 16px 20px; }

/* -- Days --------------------------------------------------------------------------------------------------- */

.days-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 16px; }
.range { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--field); }
.range button {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.range button:hover { color: var(--text); }
.range button.on { background: var(--card); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14); }
.days-error { margin: 0 0 16px; }
.days-summary { padding: 12px 14px; }
.days-summary > * + *::before { content: none; }
.base { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.base-name { font-weight: 600; }
.base-days { color: var(--text-2); font-variant-numeric: tabular-nums; }
.base-marks { margin-top: 6px; }
.day { gap: 12px; }
.day-date { flex: none; width: 96px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.day-wd { display: inline-block; width: 2.1em; color: var(--text-2); }
.day-num { display: inline-block; min-width: 1.2em; text-align: right; }
.day.is-today .day-date { color: var(--accent); font-weight: 650; }
.day.is-today .day-wd { color: inherit; }
.day-body { flex: 1; min-width: 0; }
.day-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.day-places { overflow-wrap: anywhere; }
.day.assumed .day-places { color: var(--text-2); }
.day-assumed { color: var(--text-3); font-size: 11.5px; font-style: italic; }
.day-unclear {
  padding: 0 7px;
  border: 1px dashed color-mix(in srgb, var(--orange) 70%, transparent);
  border-radius: 999px;
  background: none;
  color: var(--orange);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 17px;
  cursor: pointer;
}
.day-unclear:hover, .day-unclear[aria-expanded="true"] { background: color-mix(in srgb, var(--orange) 13%, transparent); }
.day-reason { margin-top: 3px; color: var(--text-2); font-size: 13px; overflow-wrap: anywhere; }
.day-flight { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: var(--text-2); font-size: 13px; overflow-wrap: anywhere; }
.day-flight .icon { width: 14px; height: 14px; flex: none; }
.marks { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 240px;
  padding: 1px 8px 1px 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}
.mark .icon { width: 13px; height: 13px; }
.mark > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mark-tablet { color: var(--purple); background: color-mix(in srgb, var(--purple) 13%, transparent); }
.mark-symptom { color: var(--orange); background: color-mix(in srgb, var(--orange) 15%, transparent); }

/* -- Documents (D24) ------------------------------------------------------------------------------------------ */

/* The documents the header counts, named (18 Nov): over the filter, each title a link that marks its row. */
.doc-due { margin: -4px 2px 12px; font-size: 13px; }
.doc-due a { color: var(--accent); text-decoration: none; }
.doc-due a:hover { text-decoration: underline; }
.doc-due .when { white-space: nowrap; }
.section-head.face-row { align-items: center; }     /* a photo in the heading: its count level with the name */
.row.doc { padding: 0; }
.row.doc:hover { background: var(--row-hover); }
.row.doc.selected, .row.doc.selected:hover { background: var(--accent-tint-2); }
.row.doc.selected .acts { background: none; }
.doc-open {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.doc-icon { flex: none; padding-top: 1px; color: var(--accent); }
.doc-icon .icon { width: 19px; height: 19px; }
.doc-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.doc-title { font-weight: 500; overflow-wrap: anywhere; }
.doc-expiry { white-space: nowrap; }               /* "Expires 14 Mar 2031" (18 Nov) never breaks inside the date */
.doc-expiry.soon { color: var(--orange); font-weight: 650; }
.doc-expiry.expired { color: var(--red); font-weight: 650; }
.doc-note { color: var(--text-2); }
.doc-add { margin: 0 0 22px; padding: 14px; }
.doc-add > * + *::before { content: none; }
.doc-drop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1.5px dashed var(--sep);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}
.doc-drop:hover, .doc-drop.over { border-color: var(--accent); background: var(--accent-tint); }
.doc-drop.picked { border-style: solid; }
.doc-drop .icon { width: 22px; height: 22px; color: var(--accent); }
.doc-drop-text { display: flex; flex-wrap: wrap; gap: 0 6px; min-width: 0; overflow-wrap: anywhere; }
.doc-drop-name { font-weight: 600; }
.doc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; margin-top: 12px; }
.doc-field { display: grid; gap: 3px; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.doc-field .field { width: 100%; padding: 6px 10px; background: var(--field); border-color: transparent; font-size: 14px; font-weight: 400; }
.doc-field .field:focus { border-color: var(--accent); }
.doc-field-title { grid-column: span 2; }
.doc-field-note { grid-column: span 2; }
.doc-error { margin: 10px 0 0; color: var(--red); font-size: 13.5px; overflow-wrap: anywhere; }
.doc-form-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.doc-file { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-edit { padding: 4px 14px 14px; background: var(--row-hover); }

/* -- Tell Wazir: the dock at the foot of the window ------------------------------------------------------------ */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
}
.tell { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 8px var(--gutter) 8px; }
.tell-box {
  display: flex;
  flex-direction: column;
  padding: 4px 6px;
  border: 1px solid var(--sep);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.tell-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint-2); }
.tell-box.drag { border: 1.5px dashed var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.tell-row { display: flex; align-items: flex-end; gap: 2px; }
.tell-attach { flex: none; width: 34px; height: 36px; color: var(--text-2); }
.tell-attach .icon { width: 21px; height: 21px; }
.tell-input {
  flex: 1;
  min-width: 0;
  display: block;
  margin: 0;
  padding: 7.5px 6px;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  min-height: calc(1.4em + 15px);   /* never less than one line and its padding, whatever the grow measured */
  resize: none;
  outline: none;
}
.tell-input::placeholder { color: var(--text-3); }
.tell-hint { align-self: center; margin: 0 4px; }
.tell-box:focus-within .tell-hint { display: none; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 4px 2px; }
.thumb { position: relative; flex: none; width: 58px; height: 58px; overflow: hidden; border-radius: 9px; background: var(--field); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb.reading { background: linear-gradient(110deg, var(--field) 30%, var(--hover) 50%, var(--field) 70%); }
.thumb-x {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  cursor: pointer;
}
.thumb-x .icon { width: 12px; height: 12px; stroke-width: 2.4; }
.tell-note { padding: 4px 6px 0; color: var(--red); font-size: 12.5px; }
/* A PDF on the box: its name and size in place of a thumbnail. */
.thumb-file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 0 7px;
  width: auto;
  max-width: min(220px, 100%);
  padding: 0 28px 0 10px;
  font-size: 12.5px;
}
.thumb-file > .icon { grid-row: span 2; align-self: center; width: 20px; height: 20px; color: var(--accent); }
.thumb-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.thumb-size { color: var(--text-2); font-variant-numeric: tabular-nums; }

/* The one toast, just above the box: a click on one about an item opens its thread. */
.toast-slot {
  position: absolute;
  left: max(var(--gutter), calc((100% - var(--col)) / 2));
  right: max(var(--gutter), calc((100% - var(--col)) / 2));
  bottom: 100%;
  pointer-events: none;
}
/* With no box or tab bar under it (Admin in a wide window, 24 Nov 2026), off the window's edge. */
.dock-bare .toast-slot { bottom: calc(100% + 18px); }
.toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(640px, 100%);
  margin: 0 0 2px;
  padding: 9px 12px 9px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--card);
  background: color-mix(in srgb, var(--accent) 13%, var(--card));
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  box-shadow: var(--shadow);
  pointer-events: auto;
}
button.toast { cursor: pointer; }
button.toast:hover { background: color-mix(in srgb, var(--accent) 20%, var(--card)); }
.toast .icon { flex: none; width: 15px; height: 15px; color: var(--accent); }
.toast-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.toast-failed { background: color-mix(in srgb, var(--red) 13%, var(--card)); }
.toast-ask { background: color-mix(in srgb, var(--orange) 15%, var(--card)); }
/* A Done on Today, with its Undo. */
.toast-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  margin: -3px -4px -3px 4px;
  padding: 3px 8px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.toast-act:hover { background: var(--accent-tint-2); }
/* His box's send: where it went, a dot, and the other way (state.tell). */
.toast-flip .toast-text { flex: none; }
.toast-dot { flex: none; color: var(--text-2); }
.toast-flip .toast-act { margin-left: 0; }

/* -- the keys ------------------------------------------------------------------------------------------------- */

/* The list of keys is long: in a small window (the Dock's) it scrolls inside the dialog. */
.keys-dialog { width: min(440px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.keys-dialog h2 { margin: 0; }
.keys-list { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; margin: 4px 0 14px; font-size: 14px; align-items: baseline; }
.keys-list dt { white-space: nowrap; color: var(--text-2); font-size: 12.5px; }
.keys-list dd { margin: 0; }
.keys-list kbd {
  display: inline-block;
  min-width: 22px;
  padding: 1px 6px;
  border: 1px solid var(--sep);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--field);
  color: var(--text);
  font: 12px/1.5 var(--mono);
  text-align: center;
}
.keys-dialog p { margin: 0; }

/* -- markdown ----------------------------------------------------------------------------------------------- */

.md { overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 8px; }
.md h2 { margin: 16px 0 6px; font-size: 19px; }
.md h3 { margin: 14px 0 4px; font-size: 16px; }
.md h4 { margin: 10px 0 4px; font-size: 14.5px; }
.md ul, .md ol { margin: 0 0 8px; padding-left: 20px; }
.md li { margin: 2px 0; }
.md li::marker { color: var(--text-2); }
.md hr { margin: 12px 0; border: 0; border-top: 1px solid var(--sep); }
.md pre { margin: 0 0 8px; padding: 8px 10px; overflow-x: auto; border-radius: 8px; background: var(--field); font-size: 12.5px; }
.md code, .inline code { padding: 0 3px; border-radius: 4px; background: var(--field); font-family: var(--mono); font-size: 0.88em; }
.md pre code { padding: 0; background: none; }
.md-table { margin: 0 0 8px; overflow-x: auto; }
.md table { border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.md th { padding: 0 14px 5px 0; border-bottom: 1px solid var(--sep); font-weight: 600; text-align: left; vertical-align: top; }
.md td { padding: 5px 14px 0 0; vertical-align: top; }
.md th:last-child, .md td:last-child { padding-right: 0; }
.md .num { text-align: right; }
.md-quote { position: relative; margin: 0 0 8px; padding: 8px 10px 8px 12px; border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0; background: var(--field); }
.md-quote-body { padding-right: 64px; }
.md-quote-body > :last-child { margin-bottom: 0; }
.md-copy { position: absolute; top: 6px; right: 6px; padding: 3px 10px; border: 1px solid var(--sep); border-radius: 6px;
  background: var(--card, var(--bg)); color: var(--accent); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.md-copy:hover { border-color: var(--accent); }
.wa-pick { display: grid; gap: 6px; padding: 10px 10px 4px; }
.wa-pick-ask { font-weight: 600; }
.wa-cand { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid var(--sep); border-radius: 8px; cursor: pointer; }
.wa-cand.on { border-color: var(--accent); background: var(--accent-tint); }
.wa-edit { width: 100%; box-sizing: border-box; font: inherit; line-height: 1.4; resize: vertical; }
.wa .email-text { white-space: pre-wrap; }
.wa-caller { display: grid; gap: 3px; padding: 8px 10px; border-top: 1px solid var(--sep); overflow-wrap: anywhere; }
.wa-caller q { font-style: italic; }
.wa-proposed { color: var(--text-2); }
.wa-links { padding: 0 10px 8px; overflow-wrap: anywhere; }
.md-small { font-size: 13.5px; }
.md-small.muted { color: var(--text-2); }

/* -- the menu and the dialogs --------------------------------------------------------------------------------- */

.menu-scrim { position: fixed; inset: 0; z-index: 40; }
.menu {
  position: fixed;
  z-index: 41;
  min-width: 190px;
  max-width: min(320px, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  padding: 5px;
  border: 1px solid var(--sep);
  border-radius: 10px;
  background: var(--menu);
  box-shadow: var(--shadow);
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--text);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.menu-item:hover:not(:disabled), .menu-item:focus-visible { outline: none; background: var(--accent); color: var(--on-fill); }
.menu-item.danger { color: var(--red); }
.menu-item.danger:hover, .menu-item.danger:focus-visible { background: var(--red); color: #fff; }
.menu-item:disabled { color: var(--text-2); cursor: default; }
.menu-check { display: grid; place-items: center; width: 16px; flex: none; }
.menu-check .icon { width: 14px; height: 14px; }
.menu-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.menu-key { margin-left: 8px; }
.menu-item:hover .menu-key, .menu-item:focus-visible .menu-key { color: inherit; border-color: currentColor; opacity: 0.7; }
.menu-sep { height: 1px; margin: 4px 6px; background: var(--sep); }
.menu-heading { padding: 6px 10px 2px; color: var(--text-2); font-size: 11.5px; font-weight: 650; }
.menu.checks .menu-heading { padding-left: 32px; }

.scrim { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.32); }
.dialog { width: min(380px, 100%); padding: 20px 20px 16px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.dialog h2 { margin: 0 0 6px; font-size: 16px; }
.dialog-text { margin: 0 0 18px; color: var(--text-2); overflow-wrap: anywhere; }
.dialog-acts { display: flex; justify-content: flex-end; gap: 8px; }
.viewer { width: min(900px, 100%); }
.viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-weight: 600; overflow-wrap: anywhere; }
.viewer img { display: block; max-width: 100%; max-height: 75vh; margin: 0 auto; border-radius: 8px; }

/* -- sign-in -------------------------------------------------------------------------------------------------- */

.signin { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 24px 16px; }
.signin-card { display: grid; justify-items: center; gap: 12px; width: min(340px, 100%); text-align: center; }
.signin-mark { border-radius: 14px; }
.signin h1 { margin: 4px 0 0; font-size: 24px; }
.signin p { margin: 0; }
.signin .field { width: 100%; text-align: center; }
.signin .btn { width: 100%; height: 38px; font-size: 15px; }
.signin-message { color: var(--red); font-size: 13.5px; }

/* -- phone width ---------------------------------------------------------------------------------------------- */

@media (max-width: 759px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  /* Narrow, the buttons keep their room and the title takes what is left between them, cut short if it must. */
  .head { grid-template-columns: auto minmax(0, 1fr) auto; min-height: 50px; padding-top: 6px; padding-bottom: 6px; }
  .field, .search input, .tell-input { font-size: 16px; }
  .tell { padding-top: 6px; padding-bottom: 6px; }
  .bubble, .filings { max-width: 90%; }
  .sysline { margin-left: 12px; margin-right: 12px; }
  .day { gap: 10px; }
  .day-date { width: 64px; }
  .day-mo { display: none; }
  .marks { margin-left: 0; }
  .doc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .email-head { padding: 9px 10px; }
  .email-atts, .email-body { padding-left: 10px; padding-right: 10px; }
  .tab { font-size: 10px; }
}
/* Keys are for a keyboard: at phone width and on a touch screen their hints go (the composer's n, the searches' /,
   a menu's own keys). */
@media (max-width: 759px), (pointer: coarse) {
  kbd.hint { display: none; }
}

/* Snooze (11 Nov): the day picker under a line, and the Snoozed section's lines as Tomorrow's. */
.snooze-pick { position: fixed; z-index: 60; width: 252px; padding: 10px 12px; border-radius: 10px; background: var(--menu);
  box-shadow: var(--shadow); font-size: 13px; color: var(--text-2); }
.snooze-pick label { display: flex; align-items: center; gap: 8px; }
.snooze-pick input { flex: 1; font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--sep);
  border-radius: 6px; padding: 4px 6px; }

/* -- Go to (⌘K, palette.js) ---------------------------------------------------------------------------------- */

.pal-scrim { place-items: start center; padding-top: min(14vh, 120px); z-index: 60; }
.pal { width: min(560px, 100%); max-height: min(70vh, 560px); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.pal-input { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--sep); color: var(--text-2); }
.pal-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; }
.pal-list { overflow-y: auto; padding: 4px 6px 8px; }
.pal-head { padding: 10px 10px 4px; color: var(--text-2); font-size: 11.5px; font-weight: 650; }
.pal-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pal-row.on { background: var(--sel); box-shadow: inset 3px 0 0 var(--accent); }
.pal-icon { display: inline-flex; color: var(--text-2); }
.pal-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-note { color: var(--text-2); font-size: 12.5px; }
.pal-count { min-width: 2ch; color: var(--text-2); font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
.pal-empty { padding: 18px 10px; color: var(--text-2); text-align: center; }
.pal-label .pal-snippet { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 12.5px; }
.pal-label .pal-snippet b { color: var(--text); font-weight: 650; }

/* -- @ in his boxes (22 Nov 2026, DESIGN D40; atbox.js): the menu under the box, and the chips saying what the @ words
   do. The menu is Go to's rows in the menu's card; the chips are the accent's tint, a person's photo where there is one. */
.at-menu { z-index: 45; min-width: 250px; max-width: min(340px, calc(100vw - 16px)); max-height: min(50vh, 380px); }
.at-menu .pal-row { padding: 6px 10px; font-size: 14px; }
.at-menu .pal-note { margin-left: 8px; white-space: nowrap; }
.at-foot { margin-top: 4px; padding: 6px 10px 3px; border-top: 1px solid var(--sep); color: var(--text-3); font-size: 11.5px; }
@media (pointer: coarse) { .at-foot { display: none; } }
.at-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 0; }
.tell-chips { padding: 5px 8px 1px; }
.at-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px 1px 6px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent); font-size: 12.5px; font-weight: 600; line-height: 1.6; }
.at-chip .icon { width: 13px; height: 13px; }
.at-chip .face { width: 16px; height: 16px; margin: 0; }
.at-chip-note { color: var(--text-2); font-weight: 400; }

/* Reply to <App> (13 Nov): the line he answers, then his words. */
.dialog.reply { width: min(520px, 100%); }
.reply-quote { margin: 4px 0 12px; padding: 8px 12px; border-left: 3px solid var(--sep); border-radius: 4px;
  background: var(--bg); color: var(--text-2); font-size: 13.5px; line-height: 1.45; max-height: 9.5em; overflow-y: auto; overflow-wrap: anywhere; }
.reply-field { display: block; width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid var(--sep); border-radius: 8px;
  background: var(--card); color: var(--text); font: inherit; font-size: 14px; line-height: 1.45; resize: none; }
.reply-field:focus { outline: none; border-color: var(--accent); }
.reply-note { margin: 8px 0 16px; color: var(--text-3); font-size: 12.5px; }
.btn-fill:disabled { opacity: 0.45; cursor: default; }

/* -- Admin: the map of his life (18 Nov, round 3, DESIGN D35; admin.js, mindmap.js) ---------------------------------- */

/* Each area's hue: slots 1 to 8 of the validated categorical palette, in his weight order, light and dark each stepped
   for its own surface (checked with the palette validator: adjacent pairs clear the colour-blind and normal-vision
   floors in both). Colour only tells the areas apart at a glance; every node carries its name, and projects and
   people differ by shape. */
:root {
  --mm-0: #8e8e93;
  --mm-1: #2a78d6; --mm-2: #eb6834; --mm-3: #1baf7a; --mm-4: #eda100;
  --mm-5: #e87ba4; --mm-6: #008300; --mm-7: #6250d6; --mm-8: #e34948;
  --mm-9: #5b6b80;   /* Infra, the ninth area (D42, 23 Nov 2026): slate */
  --mm-tint: 10%;
}
@media (prefers-color-scheme: dark) {
  :root {
    --mm-0: #8e8e93;
    --mm-1: #3987e5; --mm-2: #d95926; --mm-3: #199e70; --mm-4: #c98500;
    --mm-5: #d55181; --mm-6: #0ca30c; --mm-7: #9085e9; --mm-8: #e66767;
    --mm-9: #8291a8;
    --mm-tint: 18%;
  }
}
.mm-h0 { --hue: var(--mm-0); }
.mm-h1 { --hue: var(--mm-1); }
.mm-h2 { --hue: var(--mm-2); }
.mm-h3 { --hue: var(--mm-3); }
.mm-h4 { --hue: var(--mm-4); }
.mm-h5 { --hue: var(--mm-5); }
.mm-h6 { --hue: var(--mm-6); }
.mm-h7 { --hue: var(--mm-7); }
.mm-h8 { --hue: var(--mm-8); }
.mm-h9 { --hue: var(--mm-9); }

/* The map is a canvas, not rows: the window's whole width (18 Nov: "Can we use the full page width here?... Everything
   looks too small"), and as tall as the window leaves it. */
.page.admin-map { max-width: none; padding-bottom: 0; }
.page.admin-map .mm-bar { max-width: var(--col); margin-left: auto; margin-right: auto; }
/* The bar (18 Nov): the versions and Edit, then what wants him across the map and the census. */
.mm-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; margin: 0 0 10px; }
.mm-views { justify-self: start; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.mm-views button { white-space: nowrap; }
.mm-census { justify-self: end; white-space: nowrap; }
.mm-census { font-variant-numeric: tabular-nums; }
/* On a wide window (24 Nov 2026, his ask: "we have taken too much vertical space here") the bar rides in the header's
   one row, the views and Edit after the way back and the counts before the buttons, the header as wide as the map;
   and (the same day: "make the upper strip even narrower") a thin one, as tall as its buttons, the title and its line
   side by side. */
.head.head-wide { max-width: none; min-height: 40px; padding-top: 4px; padding-bottom: 4px; }
.head-wide .head-left { gap: 14px; }
.head-wide .head-titles { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.mm-counts { display: inline-flex; align-items: center; gap: 7px; margin-right: 10px; white-space: nowrap; }
.mm-counts .mm-census { font-size: 13px; }
.mm-counts-dot { color: var(--text-3); }
/* The key: a card in the map's lower left corner, folded to its button on a phone. */
.mm-legend { position: absolute; left: 10px; bottom: 10px; display: grid; justify-items: start; gap: 6px;
  max-width: calc(100% - 20px); pointer-events: none; }
.mm-legend > * { pointer-events: auto; }
.mm-legend-btn { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.mm-legend.open .mm-legend-btn { order: 2; }
.mm-legend-keys { display: grid; grid-template-columns: repeat(2, max-content); gap: 5px 16px; padding: 10px 12px;
  border: 1px solid var(--sep); border-radius: 12px; background: color-mix(in srgb, var(--card) 92%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12.5px; color: var(--text-2); }
.mm-key { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mm-key-n { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.mm-key-n.mm-key-points { color: var(--text-2); font-weight: 450; }
.mm-key-dots { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: var(--text-2); }
.mm-key-dots .icon { width: 16px; height: 16px; }

.mm-view { position: relative; min-height: 320px; border-radius: var(--radius); background: var(--card); overflow: hidden; }
.mm { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none; cursor: grab; font-family: inherit; }
.mm:active { cursor: grabbing; }
.mm a, .mm .mm-dots { cursor: pointer; outline: none; }
.mm-grid { fill: var(--sep); }
.mm-trunk { fill: none; stroke: var(--hue); stroke-opacity: 0.5; stroke-linecap: round; }
.mm-branch { fill: none; stroke: var(--hue); stroke-opacity: 0.42; stroke-width: 1.6; stroke-linecap: round; }

.mm-pill { fill: color-mix(in srgb, var(--hue) var(--mm-tint), var(--card)); stroke: color-mix(in srgb, var(--hue) 55%, var(--card));
  stroke-width: 1.5; }
.mm-area:hover .mm-pill, .mm-area:focus-visible .mm-pill { stroke: var(--hue); stroke-width: 2.5;
  fill: color-mix(in srgb, var(--hue) calc(var(--mm-tint) + 8%), var(--card)); }
.mm-title { fill: var(--text); font-weight: 650; letter-spacing: -0.01em; }
/* Far out, an area's count in the colour of what is in it (18 Nov: one number a node); a shared agenda's likewise. */
.mm-far-count-hot, .mm-count-hot { fill: var(--red); font-weight: 700; }
.mm-far-count-warm, .mm-count-warm { fill: var(--amber); font-weight: 700; }
/* Zoomed far out: each area's name in a size he can read, over the lines with a halo of the map's own colour. */
.mm-far-label { fill: var(--text); font-weight: 700; letter-spacing: -0.01em; paint-order: stroke; stroke: var(--card);
  stroke-width: 0.32em; stroke-linejoin: round; }
.mm-far-count { fill: var(--text-2); font-weight: 500; }
.mm-unplaced-far { fill: var(--text-2); }

.mm-root-disc { fill: var(--accent); }
.mm-root:hover .mm-root-disc, .mm-root:focus-visible .mm-root-disc { stroke: var(--accent-tint-2); stroke-width: 8; }
.mm-root-name { fill: var(--on-fill); font-weight: 700; letter-spacing: -0.01em; }
/* A count on a node's top edge (18 Nov, his ask: "at the top of the box"): an area's in its hue, Deepak's in his. */
.mm-chip rect { fill: var(--card); stroke: var(--hue); stroke-width: 1.4; }
.mm-chip text { fill: var(--text); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.mm-root .mm-chip rect { stroke: var(--accent); stroke-width: 1.6; }
.mm-root .mm-chip text { fill: var(--accent); font-size: 12.5px; font-weight: 700; }
.mm-chip-hot rect { fill: var(--red); stroke: var(--red); }
.mm-chip-hot text { fill: var(--on-fill); }
.mm-chip-warm rect { stroke: var(--amber); }
.mm-chip-warm text { fill: var(--amber); }

.mm-mark-person > circle:first-child { fill: var(--card); stroke: var(--hue); stroke-width: 2; }
.mm-mark-person circle.mm-glyph { fill: var(--hue); }
.mm-mark-person path.mm-glyph { fill: none; stroke: var(--hue); stroke-width: 1.7; stroke-linecap: round; }
/* A person's photo (18 Nov) in place of the glyph, ringed thinly in the area's hue. */
.mm-mark-face > circle.mm-face-back { fill: var(--card); stroke: none; }
.mm-mark-face .mm-face-ring { fill: none; stroke: var(--hue); stroke-width: 1.6; }
/* Larger than the glyph it replaces, reaching left into the row's margin, so the names still line up. */
.face { display: block; flex: none; border-radius: 50%; object-fit: cover; background: var(--card); }
.face-small { width: 22px; height: 22px; margin: -4px 0 -4px -6px; }
.face-page { width: 64px; height: 64px; margin: 4px auto 10px; box-shadow: 0 0 0 1px var(--sep); }
/* In Go to (18 Nov): in the 20 px glyph's place, a pixel over on each side, so the row and its words do not move. */
.face-pal { width: 22px; height: 22px; margin: -1px; }
.face-head { width: 20px; height: 20px; margin: -4px 0; }      /* a person's heading on Documents (18 Nov) */
/* In a line's grey line (18 Nov): just before "waiting on Som" or "with Som", on the text's line without making it
   taller; the photo and the first word never part. */
.meta-faced { white-space: nowrap; }
.face-line { display: inline-block; width: 18px; height: 18px; margin: -3px 4px -3px 0; vertical-align: middle;
  box-shadow: 0 0 0 1px var(--sep); }
.face-line + .face-line { margin-left: -2px; }
/* The photos alone (18 Nov, his ask): the words stay for a screen reader and the tooltip. */
.faces-only .face-line:last-of-type { margin-right: 0; }
/* A Today, Tomorrow or Snoozed line on one row (21 Nov, his ask: "I want it to be using a single line"): the photos
   just after the tick, a little larger beside the words, then the words, then the rest of the grey line quiet at the
   row's end, on the words' first line. Where the words would have under ten letters' room (a phone), the end drops
   under them, still at the right. */
.row-title.one-line { flex-wrap: wrap; column-gap: 8px; row-gap: 1px; }
.one-line > .inline, .one-line > .row-edit { flex: 1 1 10em; min-width: 0; }
/* Words longer than their room end in an ellipsis rather than running on under the grey end (23 Nov, the phone's
   Today: "Schedule a sync-up with Amol" ran into its "with Amol"). */
.row-title.one-line > .inline { overflow: hidden; text-overflow: ellipsis; }
.one-line > .lead { flex: none; white-space: nowrap; }
.one-line > .lead .face-line { width: 20px; height: 20px; margin: -3px 0; }
.one-line > .lead > * + * { margin-left: 4px; }
.one-line > .lead .face-line + .face-line { margin-left: 2px; }
.one-line > .meta-end { order: 2; margin: 0 0 0 auto; font-weight: 400; text-align: right; }
.one-line > .meta-end > span { white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mm-hit { fill: transparent; }
.mm-leaf:hover .mm-hit, .mm-leaf:focus-visible .mm-hit { fill: color-mix(in srgb, var(--hue) 14%, transparent); }
.mm-leaf:focus-visible .mm-hit { stroke: var(--accent); stroke-width: 1.5; }
/* A person in two areas lights up in both while the pointer or the focus is on one. */
.mm-same .mm-hit { fill: color-mix(in srgb, var(--hue) 14%, transparent); stroke: var(--hue); stroke-width: 1.2; }
.mm-name { fill: var(--text); font-size: 14px; font-weight: 500; }
.mm-count { fill: var(--text); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* What is his is the number (22 Nov 2026, D39); a person's points to raise sit beside it in grey, in no sum. */
.mm-count.mm-points { fill: var(--text-2); font-weight: 450; }
.mm-also { fill: var(--text-2); font-size: 12px; }
/* An area's own list, "CK Area", on a shaded row in its area's hue (18 Nov, in place of the "own list" tag). */
.mm-home .mm-hit { fill: color-mix(in srgb, var(--hue) 13%, transparent); }
.mm-home:hover .mm-hit, .mm-home:focus-visible .mm-hit { fill: color-mix(in srgb, var(--hue) 22%, transparent); }
.mm-dots rect { fill: transparent; }
.mm-dots circle { fill: var(--text-3); }
.mm-dots:hover rect, .mm-dots:focus-visible rect { fill: var(--hover); }
.mm-dots:focus-visible rect { stroke: var(--accent); stroke-width: 1.5; }
.mm-dots:hover circle, .mm-dots:focus-visible circle { fill: var(--text); }
/* An area's boundary (24 Nov 2026, his ask: "some boundary around each of these areas so that they are clearly
   segregated"): a card in a faint tint of its hue over the dotted map, its people's box a shade deeper inside it. */
.mm-region { fill: color-mix(in srgb, var(--hue) 4%, var(--card)); stroke: color-mix(in srgb, var(--hue) 30%, var(--card));
  stroke-width: 1.2; }
.mm-cluster { fill: color-mix(in srgb, var(--hue) 9%, var(--card)); stroke: color-mix(in srgb, var(--hue) 35%, var(--card));
  stroke-width: 1.2; }
.mm-unplaced-box { fill: none; stroke: var(--text-3); stroke-width: 1.2; stroke-dasharray: 6 5; }
.mm-unplaced-title { fill: var(--text-2); font-size: 13px; font-weight: 650; }

.mm-zoom { position: absolute; top: 10px; right: 10px; display: grid; gap: 6px; justify-items: end; }
.mm-zoom .icon-btn.boxed { width: 34px; height: 34px; color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.mm-zoom .mm-fit { height: 30px; padding: 0 9px; }

/* Deepak's disc on the Cards' strip. */
.lc-root-disc { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: var(--on-fill); font-size: 12px; font-weight: 700; }

@media (max-width: 559px) {
  /* The versions across the phone, then what wants him and Edit, then the census. */
  .mm-views { grid-column: 1 / -1; justify-self: stretch; display: flex; }
  .mm-views button { flex: 1; padding: 0 4px; }
  .att-sum { grid-column: 1; grid-row: 2; }
  .mm-edit { grid-column: 2; grid-row: 2; }
  .mm-census { grid-column: 1 / -1; justify-self: start; }
  .mm-legend-keys { gap: 4px 12px; font-size: 12px; }
  .mm-zoom { top: 8px; right: 8px; }
}
/* An imported list (18 Nov): its icon in a dashed frame, so "imported" needs no word. */
.mm-mark-imported { fill: none; stroke: var(--hue); stroke-width: 1.5; stroke-dasharray: 3 2.2; }
.mm-edit.on { background: var(--accent-tint-2); color: var(--accent); }
/* A person's shared agenda (18 Nov, his ask: "show a Google Doc icon... in the person icon itself"): the doc's mark
   in Docs' blue and its open points beside their own count, a link to the doc of its own. */
.gdoc-page { fill: #4285f4; }
.gdoc-fold { fill: #a1c2fa; }
.gdoc-lines { fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; }
.gdoc-row { display: block; flex: none; }
.mm-doc { cursor: pointer; }
.mm-doc-hit { fill: transparent; }
.mm-doc:hover .mm-doc-hit, .mm-doc:focus-visible .mm-doc-hit { fill: color-mix(in srgb, #4285f4 14%, transparent); }
.mm-doc:focus-visible .mm-doc-hit { stroke: var(--accent); stroke-width: 1.5; }
.lc-doc { flex: none; display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; padding: 4px 6px;
  border-radius: 6px; color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; text-decoration: none; }
a.lc-doc:hover { background: var(--row-hover); color: var(--text-2); }
.lc-li-agenda .lc-row { padding-right: 6px; }
.mm-key-doc { display: inline-flex; align-items: center; gap: 3px; }
.mm-key-fold { flex: none; overflow: visible; }

/* An area's fold (18 Nov, his ask): a quiet circle where its branches leave the pill, − to fold and + to unfold; folded,
   it takes the area's tint and what it hides is said beside it. */
.mm .mm-fold { cursor: pointer; outline: none; }
.mm-fold-hit { fill: transparent; }
.mm-fold-disc { fill: var(--card); stroke: color-mix(in srgb, var(--hue) 55%, var(--card)); stroke-width: 1.5; }
.mm-fold-sign { fill: none; stroke: var(--text-2); stroke-width: 1.7; stroke-linecap: round; }
.mm-fold.folded .mm-fold-disc { fill: color-mix(in srgb, var(--hue) var(--mm-tint), var(--card)); stroke: var(--hue); }
.mm-fold.folded .mm-fold-sign { stroke: var(--text); }
.mm-fold-words { fill: var(--text-2); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.mm-fold:hover .mm-fold-disc { stroke: var(--hue); stroke-width: 2.2; }
.mm-fold:hover .mm-fold-sign { stroke: var(--text); }
.mm-fold:hover .mm-fold-words { fill: var(--text); }
.mm-fold:focus-visible .mm-fold-disc { stroke: var(--accent); stroke-width: 2.2; }

/* -- Admin's icons and what needs him (18 Nov, his ask; icons.js, radar.js, cards.js) ------------------------------- */

/* A tile: an app's own icon, rounded and edged, or a glyph in white on its area's hue, a shade deeper so the white
   clears 3:1 on every hue. */
.tile { overflow: visible; }
.tile-row { display: block; flex: none; }
/* A tile in its area's own hue with the glyph in white (23 Nov 2026, his pick of the icon sets: "v1 Tiles"). */
.tile-bg { fill: var(--hue); }
.tile-glyph { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tile-edge { fill: none; stroke: rgba(0, 0, 0, 0.16); stroke-width: 0.7; }
/* A list's mark (18 Nov, three kinds): its glyph alone in the area's hue, no tile, so it reads as a checklist, not an
   app or an agent. */
.tile-glyph-plain { stroke: color-mix(in oklab, var(--hue) 85%, #000); stroke-width: 2; }
/* An agent's ring (18 Nov, his ask: "make the agent ring more distinct"): solid, in its area's hue, on the map and the
   Cards, kept or imported. */
.mm-agent-ring { fill: none; stroke: var(--hue); stroke-width: 2.2; }
.tile-row.tile-agent, .tile-row.tile-imported.tile-agent { outline: 2.2px solid var(--hue); outline-offset: 2px;
  border-radius: 50%; }
.tile-row.tile-imported, .tile-person { overflow: visible; }
.tile-row.tile-imported { outline: 1.5px dashed var(--hue); outline-offset: 2px; border-radius: 7px; }
.tile-person { display: block; flex: none; }
@media (prefers-color-scheme: dark) {
  .tile-edge { stroke: rgba(255, 255, 255, 0.18); }
  .tile-glyph-plain { stroke: color-mix(in oklab, var(--hue) 75%, #fff); }
}

/* The ring (18 Nov, one number a node): a node's open lines, ringed in amber when something in them is asked of him,
   filled red with a P1 or overdue line, so the fill says it as well as the colour; the Inbox's mark is a dot.
   Calm: the plain number. */
.att rect { fill: var(--red); }
.att text { fill: var(--on-fill); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.att-warm rect { fill: var(--card); stroke: var(--amber); stroke-width: 1.5; }
.att-warm text { fill: var(--amber); }
.att-badge { display: inline-grid; place-items: center; flex: none; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.att-badge.att-hot { background: var(--red); color: var(--on-fill); }
.att-badge.att-warm { box-shadow: inset 0 0 0 1.5px var(--amber); color: var(--amber); }
.att-badge.att-badge-dot { min-width: 9px; width: 9px; height: 9px; padding: 0; border-radius: 50%; }
.att-dot circle { fill: var(--red); }
.att-warm.att-dot circle { fill: var(--amber); }
.lc-sub .att-badge { vertical-align: 1px; margin-right: 2px; }
.lc-why.lc-why-calm { color: var(--text-3); }
.list-row .att-badge { margin-right: 8px; }
.att-name { font-weight: 650; }

/* On the map: what wants him reads bolder, and its area's line to Deepak is drawn firm. */
.mm-name-att { font-weight: 650; }
.mm-trunk-att { stroke-opacity: 0.85; }

/* Over every version (18 Nov): separate counts, no total, each a link to To-dos. */
.att-sum { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; color: var(--text-2); }
.att-sum-words { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-sum a.att-chip { color: inherit; text-decoration: none; }
.mm-census a.mm-census-link { color: inherit; text-decoration: none; }
.mm-census a.mm-census-link:hover { text-decoration: underline; }
.att-sum a.att-chip:hover { text-decoration: underline; }
.att-sum a.att-chip-needs { color: var(--amber); font-weight: 600; }
.att-sum a.att-chip-p1, .att-sum a.att-chip-overdue, .att-chip-p1, .att-chip-overdue { color: var(--red); font-weight: 600; }
.att-sum.att-calm { color: var(--text-3); }
.mm-edit { justify-self: end; }

.page.admin-map.admin-cards { padding-bottom: calc(var(--dock-h, 130px) + 32px); }

/* v3 Cards: one card an area, four across on a wide screen, those that want him first. */
.lc-root { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 14px; padding: 10px 16px;
  border-radius: var(--radius); background: var(--card); color: inherit; text-decoration: none; }
.lc-root:hover { background: var(--row-hover); }
.lc-root-name { font-weight: 650; }
.lc-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 720px) { .lc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .lc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1700px) { .lc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lc-card { min-width: 0; overflow: hidden; border-radius: var(--radius); background: var(--card);
  box-shadow: inset 0 4px 0 var(--hue); }
.lc-card-calm { box-shadow: inset 0 4px 0 color-mix(in srgb, var(--hue) 45%, var(--card)); }
.lc-card-unplaced { margin-top: 16px; box-shadow: inset 0 0 0 1.2px var(--text-3); }
.lc-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 10px; color: inherit; text-decoration: none; }
/* Its fold (18 Nov): a chevron after the header; folded, the header alone and what it hides under the title. */
.lc-top { display: flex; align-items: flex-start; }
.lc-top .lc-head { flex: 1; min-width: 0; }
.lc-fold { margin: 20px 8px 0 -8px; color: var(--text-3); }
.lc-card-folded .lc-top:has(+ .lc-folded) .lc-head { padding-bottom: 4px; }
.lc-folded { margin: 0 16px 14px 68px; color: var(--text-3); font-size: 12.5px; cursor: pointer; }
.lc-chips + .lc-folded { margin-left: 16px; }
.lc-folded:hover { color: var(--text-2); }
a.lc-head:hover .lc-title { text-decoration: underline; }
.lc-head-body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.lc-title { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.lc-sub { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-sub-n { color: var(--text); font-weight: 600; }
.lc-calm-word { flex: none; font-size: 12.5px; color: var(--text-3); }
.lc-head .att-badge { min-width: 26px; height: 26px; border-radius: 13px; font-size: 14px; }
.lc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 16px 12px; }
.lc-chip { padding: 2px 8px; border-radius: 999px; background: var(--field); color: var(--text-2); font-size: 12px; font-weight: 600; }
.lc-chip-p1, .lc-chip-overdue { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.lc-chip-needs { background: color-mix(in srgb, var(--amber) 14%, transparent); color: var(--amber); }
.lc-rows { margin: 0; padding: 0 0 4px; list-style: none; }
.lc-rows-wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.lc-li { display: flex; align-items: center; border-top: 1px solid var(--sep); }
.lc-row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 16px; color: inherit;
  text-decoration: none; }
.lc-row:hover { background: var(--row-hover); }
.lc-row.lc-home { background: color-mix(in srgb, var(--hue) 11%, transparent); }
.lc-row.lc-home:hover { background: color-mix(in srgb, var(--hue) 18%, transparent); }
.list-row.list-row-home { background: color-mix(in srgb, var(--hue) 11%, transparent); }
.list-row.list-row-home:hover { background: color-mix(in srgb, var(--hue) 18%, transparent); }
.lc-icon { flex: none; display: grid; place-items: center; width: 26px; }
.lc-body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.lc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.lc-att .lc-name { font-weight: 600; }
.lc-why { font-size: 12.5px; color: var(--amber); }
.lc-att-hot .lc-why { color: var(--red); }
.lc-calm .lc-name { color: var(--text-2); }
.lc-calm .lc-icon { opacity: 0.8; }
.lc-open { flex: none; min-width: 2ch; color: var(--text); font-size: 13px; font-weight: 600; text-align: right;
  font-variant-numeric: tabular-nums; }
.lc-points { flex: none; min-width: 2ch; color: var(--text-3); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.lc-more { flex: none; margin-right: 6px; }
.lc-empty { margin: 0 16px 14px; color: var(--text-3); font-size: 13px; }

@media (max-width: 559px) {
  .row.todo.long:not(.open):not(.editing) .row-title .inline { -webkit-line-clamp: 3; }
  .row.todo .details-btn { display: none; }
  .details-cue { display: inline; color: var(--accent); font-weight: 600; }
  .meta > :not(.details-cue) ~ .details-cue::before { content: " · "; color: var(--text-2); font-weight: 400; }
}

/* Claude's mark (18 Nov, his ask): a round copy of the Claude app's icon in a face's size and place. */
.claude-mark { background: transparent; }
.group-head .claude-mark, .sec-title .claude-mark { display: inline-block; width: 16px; height: 16px; margin: -3px 5px -3px 0;
  vertical-align: middle; }

/* D42 stage 3 (23 Nov 2026): the To-dos pages. An area's or a project's tile beside its name in the header; the nine
   areas, a project and a person as compact rows (a tile or a face, the name, one number); a project's row its menu at
   the end; an agent's asks under its name with its mark. */
.head h1 .head-tile { display: inline-flex; margin-right: 7px; vertical-align: -5px; }
.area-row .row-title, .project-row .row-title, .person-row .row-title { gap: 10px; }
.area-row, .person-row { min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
.project-row { min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.project-row .item-link { color: inherit; text-decoration: none; outline: none; }
.project-row .acts { align-self: center; margin: 0 -6px 0 0; }
.person-row .person-counts { margin-left: auto; }
.ask-head > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.ask-head .blk-mark { width: 18px; height: 18px; margin: 0; }
.person-top { margin-bottom: 14px; }
.todos-index .all-actions .group-head { padding-top: 12px; }
.agenda-person { padding-top: 0; padding-bottom: 0; }
.agenda-toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer; }
.agenda-toggle .list-count { margin-left: auto; }
.agenda-toggle .fold { padding-top: 0; }
.person-page-link { align-self: center; color: var(--accent); text-decoration: none; }
.person-page-link:hover { text-decoration: underline; }

/* The Projects page (#/projects) on a wide window (24 Nov 2026, his ask: "we have plenty of width here... a tight
   layout"): its areas in a grid, in his tabs' order, three across and four on his wide screen, as Admin's Cards. */
.projects-grid { display: grid; gap: 4px 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.projects-grid > .section { margin-top: 0; }
@media (min-width: 1180px) {
  .page.todos-projects { max-width: none; padding-left: 32px; padding-right: 32px; }
  .projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1700px) { .projects-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Each area's heading on the Projects page: the top of its card, shaded in the area's colour, its icon and name in
   the middle, the count at the right (24 Nov 2026, his ask: "should look like a header and should be shaded"). */
.proj-area .card { overflow: hidden; }
.proj-head { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 8px 48px; background: color-mix(in srgb, var(--hue) 16%, var(--card));
  border-bottom: 1px solid color-mix(in srgb, var(--hue) 30%, var(--card)); color: inherit; text-decoration: none; }
.proj-head:hover { background: color-mix(in srgb, var(--hue) 24%, var(--card)); }
.proj-head-name { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 650;
  letter-spacing: -0.01em; }
.proj-head-count { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }

/* Medha's merge card on Today (web/js/merges.js): one pair, its two sides side by side, three buttons. */
.merge-card .card { padding: 12px 14px; }
.merge-head { font-weight: 600; margin-bottom: 8px; }
.merge-head .meta { font-weight: 400; margin-left: 6px; }
.merge-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.merge-side { min-width: 0; padding: 8px 10px; border-radius: 8px; background: var(--sel); }
.merge-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.merge-side .meta { overflow-wrap: anywhere; }
.merge-acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.merge-acts .merge-later { margin-left: auto; }
@media (max-width: 520px) { .merge-pair { grid-template-columns: 1fr; } }
