@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@700&display=swap');
/* OP361 — application layout. Everything here is built from the tokens in
   styles.css; there are no literal colours, sizes come from --space-*, and
   every corner is square (--radius-* are all 0 by design rule). */

html, body { height: 100%; }
body { overflow: hidden; }
button { font: inherit; }
[hidden] { display: none !important; }

/* ── app shell ─────────────────────────────────────────────────────────── */
.app { display: flex; flex-direction: column; height: 100vh; }
.app-main { flex: 1; min-height: 0; overflow: hidden; }

.appbar {
  display: flex; align-items: center; gap: var(--space-4);
  padding: 10px var(--space-4);
  border-bottom: 2px solid var(--color-divider);
  flex: none;
}
.appbar--tall { padding: 14px 20px; }
.brand {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 17px; letter-spacing: -0.015em; cursor: pointer;
  background: none; border: 0; color: inherit; padding: 0;
}
.brand span { color: var(--color-accent); }

.appnav { display: flex; gap: var(--space-4); font-size: 13px; }
.appnav button {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--color-text); font-size: 13px;
}
.appnav button[aria-current="page"] { color: var(--color-accent); font-weight: 600; }
.appnav button:hover { color: var(--color-accent); }

/* search / command input in the bar */
.searchbox {
  display: flex; align-items: center; gap: var(--space-2);
  flex: 1; max-width: 520px;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: 7px 10px;
}
.searchbox input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  font: inherit; font-size: 13px; color: var(--color-text);
  caret-color: var(--color-accent);
}
.searchbox input::placeholder { color: var(--color-neutral-600); }
.searchbox:focus-within { border-color: var(--color-accent); }
.searchbox .kbd { font-size: 11px; opacity: .5; }

/* the inverted command bar used by the desk view */
.commandbox {
  display: flex; align-items: center; gap: 10px; flex: 1;
  background: var(--color-text); color: var(--color-bg);
  padding: 11px 14px; font-size: 14px; cursor: text;
}
.commandbox input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  font: inherit; font-size: 14px; color: var(--color-bg);
  caret-color: var(--color-accent);
}
.commandbox input::placeholder { color: currentColor; opacity: .75; }
.commandbox .kbd { margin-left: auto; font-size: 11px; opacity: .5; }

.spacer { margin-left: auto; }
.appbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* account avatar squares */
.avatars { display: flex; gap: 2px; }
.avatar {
  width: 22px; height: 22px; display: grid; place-items: center;
  font-size: 10px; font-weight: 600;
  background: var(--color-neutral-900); color: var(--color-bg);
  cursor: default;
}
.avatar:nth-child(2) { background: var(--color-neutral-700); }
.avatar:nth-child(3) { background: var(--color-neutral-500); }
.avatar--more { background: var(--color-neutral-300); color: var(--color-text); }

.tag { cursor: default; }
.tag-button { cursor: pointer; border: 0; font-family: inherit; }
.tag-button:hover { filter: brightness(1.12); }

/* ── 1a  Classic: rail + list over reading pane ────────────────────────
   Outlook with the reading pane at the bottom. The rail runs the full height;
   the list and the reader stack in the remaining column, split by a draggable
   bar. --split is the list's share and is rewritten by the splitter drag.
   --msgcols is declared once so the column headers and the rows beneath them
   can never drift out of alignment. */
.classic {
  --split: 42%;
  --msgcols: 16px 180px minmax(0, 1fr) 128px 104px 68px;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  grid-template-rows: var(--split) 6px minmax(0, 1fr);
  height: 100%;
}
.classic > .rail { grid-column: 1; grid-row: 1 / -1; }
.classic > .pane--list { grid-column: 2; grid-row: 1; }
.classic > .splitter { grid-column: 2; grid-row: 2; }
.classic > .reader { grid-column: 2; grid-row: 3; min-height: 0; }

/* The splitter is the one piece of chrome here that is purely a handle, so it
   earns a hover state and a grip rather than being a bare rule. */
.splitter {
  position: relative; cursor: row-resize; touch-action: none;
  background: var(--color-divider);
  border: 0; padding: 0; width: 100%;
}
.splitter::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 36px; height: 2px; transform: translate(-50%, -50%);
  background: var(--color-bg); opacity: .6;
}
.splitter:hover, .splitter[data-dragging="true"] { background: var(--color-accent); }
.splitter:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }

.rail {
  border-right: 2px solid var(--color-divider);
  padding: 14px 0; display: flex; flex-direction: column; gap: 2px;
  overflow-y: auto;
}
.rail-head {
  padding: 0 14px 8px; font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--color-neutral-600);
}
.rail-item {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-2);
  padding: 7px 14px; font-size: 13px; text-align: left;
  background: none; border: 0; color: inherit; cursor: pointer; width: 100%;
}
.rail-item:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.rail-item .count { color: var(--color-neutral-600); }
.rail-item[aria-current="true"] {
  background: var(--color-accent-100); color: var(--color-accent-800); font-weight: 600;
}
.rail-item[aria-current="true"] .count { color: inherit; }
.rail-item--accent { color: var(--color-accent); }

.pane { display: flex; flex-direction: column; min-height: 0; }
.pane--list { border-right: 0; }
.pane-scroll { overflow-y: auto; flex: 1; min-height: 0; }

.tabs {
  display: flex; gap: 14px; padding: 10px 14px; flex: none;
  border-bottom: 2px solid var(--color-divider); font-size: 12px;
}
.tabs button {
  background: none; border: 0; padding: 0 0 8px; margin-bottom: -12px; cursor: pointer;
  color: var(--color-neutral-600); font-size: 12px;
  border-bottom: 2px solid transparent;
}
.tabs button[aria-selected="true"] {
  font-weight: 600; color: var(--color-text); border-bottom-color: var(--color-accent);
}

.msgrow {
  display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 12px 14px; border: 0; border-bottom: 1px solid var(--color-divider);
  background: none; color: inherit; font: inherit;
}
.msgrow:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }
.msgrow[aria-selected="true"] { background: var(--color-surface); }
.msgrow-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; gap: var(--space-2); }
.msgrow-time { font-weight: 400; color: var(--color-neutral-600); font-size: 11px; flex: none; }
.msgrow-subject { font-size: 13px; }
.msgrow-meta {
  font-size: 12px; color: var(--color-neutral-600);
  display: flex; gap: 6px; align-items: center; margin-top: 2px;
}
.tag-xs { padding: 1px 6px; font-size: 10px; }

/* Column headers — same track list as the rows, from the same variable, and
   deliberately INSIDE the scroller. Outside it, the list's scrollbar makes the
   rows narrower than the header and every column right of Subject drifts by
   the scrollbar's width — which is not a constant across platforms, so it
   cannot be padded away. Sticky keeps it in view while the list scrolls. */
.msghead {
  position: sticky; top: 0; z-index: 1;
  display: grid; grid-template-columns: var(--msgcols);
  align-items: center; gap: var(--space-3);
  padding: 7px 14px; flex: none;
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-divider);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
}
.msghead-when { text-align: right; }

/* A wide list wants one line per message, not a stacked card. */
.msgrow--cols {
  display: grid; grid-template-columns: var(--msgcols);
  align-items: center; gap: var(--space-3);
  padding: 9px 14px;
}
.msgrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-accent); justify-self: center;
}
.msgrow-dot--read { background: transparent; }
.msgrow-from { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msgrow--unread .msgrow-from { font-weight: 600; }
.msgrow-line {
  font-size: 13px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.msgrow-line .snippet { color: var(--color-neutral-600); }
.msgrow-account {
  font-size: 12px; color: var(--color-neutral-600);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.msgrow-when {
  font-size: 11px; color: var(--color-neutral-600);
  text-align: right; font-variant-numeric: tabular-nums;
}
/* The agent track is fixed, so a longer-than-expected tag must clip rather
   than push the column out of alignment with the header. */
/* A grid item stretches to its track by default; a chip should be as wide as
   its own words, not as wide as the column. */
.msgrow--cols > .tag {
  justify-self: start; max-width: 100%; overflow: hidden; white-space: nowrap;
}
/* "To know" asks nothing of you, so it is the quietest thing in the column. */
.tag-muted { background: transparent; color: var(--color-neutral-500); padding-inline: 0; }
.tag-task { font-variant-numeric: tabular-nums; }
/* styles.css fills .tag-accent with accent-100, which sits ~1.1:1 against the
   page in every theme — the text reads fine but the chip does not read as a
   chip. Nudging just the task chip one step up the ramp gives it an edge
   without touching the design system's own component. */
.tag-accent.tag-task { background: var(--color-accent-200); }

/* reading pane */
.reader { overflow-y: auto; }
.reader-head { padding: var(--space-4) 20px; border-bottom: 2px solid var(--color-divider); }
.reader-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 19px; }
.reader-meta { font-size: 12px; color: var(--color-neutral-600); margin-top: 3px; }
.reader-body { padding: 0 20px var(--space-4); }

/* Vertical space is the scarce axis in a bottom pane, so the thread header
   goes wide instead of tall. */
.classic .reader-head, .listview .reader-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-4); flex-wrap: wrap; padding: 11px 20px;
}
.classic .reader-meta, .listview .reader-meta { margin-top: 0; }
.classic .agentblock, .listview .agentblock { margin-top: var(--space-3); }

.agentblock { margin: var(--space-4) 0 0; border: 1px solid var(--color-divider); background: var(--color-surface); }
.agentblock-kicker {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 10px 14px; border-bottom: 1px solid var(--color-divider);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-accent-700);
}
.agentblock-body { padding: 12px 14px; font-size: 13px; line-height: 1.55; }
.agentblock-actions { display: flex; gap: var(--space-2); padding: 0 14px 14px; flex-wrap: wrap; }

.agentblock--draft { border-color: var(--color-accent); background: var(--color-accent-100); }
.agentblock--draft .agentblock-kicker { border-bottom-color: var(--color-accent-300); color: var(--color-accent-800); }
.agentblock--draft .agentblock-body { color: var(--color-neutral-900); }
.agentblock--draft textarea.input { background: var(--color-bg); }

.quoted {
  margin: 0 0 var(--space-2); padding: 14px 0;
  border-top: 1px solid var(--color-divider);
  font-size: 13px; color: var(--color-neutral-700);
}
.quoted-from { font-weight: 600; }

/* A message in full. The body is the sender's own HTML in a frame, so the
   only styling here is the header above it and the notices around it. */
.reader-agent:empty { display: none; }
.msgs { margin-top: var(--space-3); }
.msg { border-top: 2px solid var(--color-divider); padding: var(--space-3) 0 var(--space-4); }
.msg-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-4); margin-bottom: var(--space-3);
}
.msg-who { min-width: 0; }
.msg-from { font-weight: 600; font-size: 14px; }
.msg-addr { font-size: 12px; color: var(--color-neutral-600); }
.msg-to {
  font-size: 12px; color: var(--color-neutral-600); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.msg-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.msg-when {
  font-size: 12px; color: var(--color-neutral-600);
  font-variant-numeric: tabular-nums;
}
.msg-actions { display: flex; gap: var(--space-1); }

/* Writing mail. The panel sits at the top of the reading pane, over the
   thread it may be answering. */
.compose-host { padding: var(--space-3) 20px 0; }
.compose { border: 2px solid var(--color-accent); background: var(--color-bg); }
.compose-head {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 6px 12px; border-bottom: 1px solid var(--color-divider);
  background: var(--color-accent-100);
}
.compose-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--color-accent-800);
}
.compose-row {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 0 12px; border-bottom: 1px solid var(--color-divider); min-height: 38px;
}
.compose-label { flex: none; width: 56px; font-size: 12px; color: var(--color-neutral-600); }
.compose-static { font-size: 13px; }
.compose-input.input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  padding: 8px 0; font-size: 14px; border-radius: 0;
}
.compose-input.input:focus-visible { outline: none; box-shadow: inset 0 -2px 0 var(--color-accent); }
/* Formatting: a few plain buttons over the words. */
.compose-tools {
  display: flex; flex-wrap: wrap; gap: 2px; padding: 4px 8px;
  border-bottom: 1px solid var(--color-divider);
}
.compose-tool {
  min-width: 30px; height: 28px; padding: 0 8px; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: transparent; color: var(--color-neutral-700); font: inherit; font-size: 12px;
}
.compose-tool:hover { background: var(--color-surface); border-color: var(--color-divider); }
.compose-tool:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.compose-tool.is-bold { font-weight: 700; }
.compose-tool.is-italic { font-style: italic; }
.compose-tool.is-underline { text-decoration: underline; }
.compose-body {
  min-height: 160px; max-height: 50vh; overflow-y: auto;
  padding: 12px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere;
}
.compose-body:focus-visible { outline: none; }
.compose-body:empty::before { content: attr(data-placeholder); color: var(--color-neutral-600); pointer-events: none; }
.compose-body ul, .compose-body ol { margin: 0 0 0 1.4em; padding: 0; }
.compose-body a { color: var(--color-accent-800); text-decoration: underline; }
.compose-body blockquote {
  margin: 0 0 0 8px; padding-left: 10px;
  border-left: 2px solid var(--color-divider); color: var(--color-neutral-700);
}
.compose-status { font-size: 12px; color: var(--color-neutral-600); }
.compose-tools-gap { flex: 1; }
/* Font, size and colour: menus that look like the buttons beside them. */
.compose-tool-pick { appearance: none; -webkit-appearance: none; padding-right: 8px; max-width: 86px; cursor: pointer; }
.compose-tool-pick option { color: var(--color-text); background: var(--color-bg); font-size: 13px; }
/* A box of formatted words outside the message window: a signature, or a message being approved. */
.signature-edit { border: 1px solid var(--color-divider); background: var(--color-bg); min-width: 0; }
.signature-edit .compose-tools { border-bottom: 1px solid var(--color-divider); flex-wrap: wrap; }
.signature-edit .compose-body { min-height: 84px; max-height: 320px; overflow: auto; padding: 10px 12px; }
.signature-edit .approve-body { min-height: 180px; }
.approve-body.is-fixed { border: 1px solid var(--color-divider); padding: 10px 12px; max-height: 320px; overflow: auto; }
.compose-body img { max-width: 100%; height: auto; }
/* A table among the words, drawn here as it will be in the mail. */
.compose-body table { border-collapse: collapse; margin: 4px 0; }
.compose-body td, .compose-body th { border: 1px solid var(--color-neutral-600); padding: 4px 8px; vertical-align: top; min-width: 48px; }
/* The files that go with the message. */
.compose-files { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--color-divider); }
.compose-file { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 3px 4px 3px 10px; border: 1px solid var(--color-divider); font-size: 12px; }
.compose-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; font-weight: 600; }
.compose-file-size { color: var(--color-neutral-600); white-space: nowrap; }
.compose-file.is-busy { opacity: .65; }
.compose-file.is-failed { border-color: var(--color-accent); }
.compose-file button { border: 0; background: none; cursor: pointer; font: inherit; font-size: 11px; color: var(--color-neutral-600); padding: 0 4px; }
.compose-file button:hover { color: var(--color-accent); }
.compose-remind {
  max-width: 100%; padding: 4px 6px; font: inherit; font-size: 12px; color: inherit;
  border: 1px solid var(--color-divider); border-radius: var(--radius-sm); background: var(--color-bg);
}
.compose-note {
  display: block; padding: 6px 12px; font-size: 12px; color: var(--color-neutral-700);
  border-top: 1px solid var(--color-divider);
}
.compose-actions {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 10px 12px; border-top: 1px solid var(--color-divider);
}
.compose-hint { font-size: 12px; color: var(--color-neutral-600); }
/* The ways to let a message go stand to the left of who it goes to. */
.compose-top { display: grid; grid-template-columns: 124px minmax(0, 1fr); border-bottom: 1px solid var(--color-divider); }
.compose-send { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-right: 1px solid var(--color-divider); background: var(--color-surface); }
.compose-send .btn { width: 100%; justify-content: center; text-align: center; }
.compose-send .btn-primary { flex: 1; min-height: 64px; font-size: 15px; }
.compose-lines .compose-row:last-child { border-bottom: 0; }
/* Under the message: times to hold or offer, and the reminder. */
.compose-times { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; padding: 8px 12px; border-top: 1px solid var(--color-divider); }
@media (max-width: 640px) {
  .compose-top { grid-template-columns: minmax(0, 1fr); }
  .compose-send { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--color-divider); }
  .compose-send .btn-primary { min-height: 0; }
}

/* Settings: working hours and signatures. */
.work-hours { gap: 8px; align-items: center; flex-wrap: wrap; }
.work-hours .input { width: auto; }
.work-days { display: inline-flex; gap: 2px; margin-left: 8px; }
.work-days button { padding: 5px 9px; border: 1px solid var(--color-divider); background: var(--color-bg); cursor: pointer; font: inherit; font-size: 12px; color: inherit; }
.work-days button.is-on { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); font-weight: 700; }
.setting--top { align-items: flex-start; }
.signature-box { width: min(420px, 100%); font-size: 13px; }
.out-people { display: grid; gap: 4px; max-height: 180px; overflow-y: auto; }

/* Choosing when a message leaves, and the lists of what has not left yet. */
.out-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.out-choice { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; text-align: left; cursor: pointer; border: 1px solid var(--color-divider); background: var(--color-bg); font: inherit; color: inherit; }
.out-choice:hover { border-color: var(--color-accent); background: var(--color-surface); }
.out-list { padding: var(--space-2) var(--space-6) var(--space-5); }
.out-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--color-divider); font-size: 13px; }
.out-text { margin-top: 4px; color: var(--color-neutral-700); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.out-acts { gap: 4px; }
.out-note, .out-quote { padding: 8px 10px; background: var(--color-surface); border-left: 3px solid var(--color-divider); font-size: 13px; white-space: pre-wrap; }

/* Picking times to hold or offer. A week of half hours, eight to six. */
.slot-window { width: min(980px, 100%); }
.slot-body { padding: var(--space-3) var(--space-6) var(--space-4); }
.slot-bar { display: flex; align-items: center; gap: var(--space-2); margin-bottom: 8px; font-size: 13px; }
.slot-bar .input { width: auto; padding: 4px 8px; }
.slot-grid { display: grid; gap: 1px; background: var(--color-divider); border: 1px solid var(--color-divider); }
.slot-grid > * { background: var(--color-bg); }
.slot-day { padding: 5px 6px; font-size: 11px; font-weight: 700; text-align: center; }
.slot-day.is-weekend { color: var(--color-neutral-500); }
.slot-hour { font-size: 10px; color: var(--color-neutral-600); text-align: right; padding: 0 5px; line-height: 20px; }
.slot-cell { height: 20px; border: 0; padding: 0 4px; cursor: pointer; font: inherit; font-size: 10px; font-weight: 700; text-align: left; white-space: nowrap; overflow: visible; color: var(--color-bg); position: relative; }
.slot-cell:hover:not(:disabled) { background: color-mix(in srgb, var(--color-accent) 18%, var(--color-bg)); }
.slot-cell.is-busy { background: var(--color-neutral-300, #d9dce3); cursor: default; }
.slot-cell.is-held { background: repeating-linear-gradient(135deg, var(--color-neutral-300, #d9dce3) 0 4px, var(--color-bg) 4px 8px); cursor: default; }
.slot-cell.is-picked, .slot-cell.is-picked:hover { background: var(--color-accent); z-index: 1; }
.slot-foot { display: grid; gap: 10px; margin-top: 12px; font-size: 13px; }
.slot-chosen label { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-neutral-600); margin-bottom: 4px; }
.slot-rule { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.slot-rule .input { width: auto; padding: 4px 8px; }
.slot-hows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.slot-standing { padding-top: 4px; }
/* Booking links: the list, then the few fields a new one needs. */
.out-row.is-off { opacity: .6; }
.link-url { overflow-wrap: anywhere; font-size: 12px; }
.link-form { padding: 14px 20px 18px; border-top: 1px solid var(--color-divider); display: grid; gap: 10px; }
.link-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.link-field { display: grid; gap: 4px; font-size: 12px; color: var(--color-neutral-600); }
.link-field--wide { grid-column: 1 / -1; }
@media (max-width: 720px) { .link-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.slot-how { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--color-divider); cursor: pointer; }
.slot-how.is-on { border-color: var(--color-accent); background: var(--color-accent-100); }
.slot-how strong { display: block; }
.msg-frame { display: block; width: 100%; height: 120px; border: 0; }
.msg-text {
  margin: 0; white-space: pre-wrap; overflow-wrap: anywhere;
  font: inherit; font-size: 14px; line-height: 1.55;
}
.msg-notice {
  display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
  padding: 6px 10px; margin-bottom: var(--space-2);
  background: var(--color-surface); border: 1px solid var(--color-divider);
  font-size: 12px; color: var(--color-neutral-700);
}
.msg-files { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.msg-file {
  padding: 5px 10px; border: 1px solid var(--color-divider);
  border-radius: var(--radius-sm); font-size: 12px;
}
.msg-file-size { color: var(--color-neutral-600); }
button.msg-file { background: transparent; color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
button.msg-file:hover { background: var(--color-surface); border-color: var(--color-accent); }
button.msg-file:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 1px; }
button.msg-file.is-busy { opacity: .6; cursor: progress; }
/* A picture or a PDF from a message, in a window of its own. */
.file-window { width: min(1000px, 100%); }
.file-window .mail-window-bar { gap: var(--space-2); align-items: center; }
.file-window-name { min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-window-body { padding: var(--space-4); text-align: center; background: var(--color-surface); }
.file-window-body img { max-width: 100%; height: auto; }
.file-window-frame { display: block; width: 100%; height: 78vh; border: 0; }

/* ── 1b  List ──────────────────────────────────────────────────────────── */
/* The list over the reading pane, split by a draggable bar. --split is the
   list's share of the height; js/splitter.js rewrites it on drag. */
.listview {
  --split: 56%;
  display: grid; grid-template-rows: var(--split) 6px minmax(0, 1fr);
  height: 100%; min-height: 0;
}
.listview-list { overflow-y: auto; min-height: 0; }
.listview > .reader { min-height: 0; }
.chiprow {
  display: flex; gap: var(--space-2); padding: 12px var(--space-6); flex-wrap: wrap;
  border-bottom: 1px solid var(--color-divider); font-size: 12px; align-items: center;
}
/* Folders: the row above the account filter. Same quiet treatment as the
   top-bar links, with a rule under the one you are in. */
.foldernav {
  display: flex; gap: var(--space-6); align-items: center;
  padding: 10px var(--space-6) 0; font-size: 13px;
}
.foldernav button {
  background: none; border: 0; padding: 0 0 8px; cursor: pointer;
  color: var(--color-neutral-700); font-size: 13px;
  border-bottom: 2px solid transparent;
}
.foldernav button:hover { color: var(--color-accent); }
.foldernav button[aria-current="page"] {
  color: var(--color-text); font-weight: 600; border-bottom-color: var(--color-accent);
}
/* Every folder in one menu. It reads as the title of the list: the folder
   you are in, with the others behind it. */
.foldernav-folder {
  appearance: auto; border: 0; border-bottom: 2px solid var(--color-accent); border-radius: 0;
  background: transparent; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--color-text);
  padding: 0 2px 8px 0; margin: 0;
}
.foldernav-folder:hover { color: var(--color-accent); }
.foldernav-folder option { color: var(--color-text); background: var(--color-bg); font-weight: 400; }
/* Mail or Review: two ways of reading the same inbox, so one control with two
   halves rather than two places. */
.modeswitch {
  display: inline-flex; margin-bottom: 8px;
  border: 1px solid var(--color-neutral-400, var(--color-divider)); border-radius: var(--radius-sm);
}
.foldernav .modeswitch button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border: 0; font-size: 12px; font-weight: 600;
  color: var(--color-neutral-700); background: transparent;
}
.foldernav .modeswitch button:hover { color: var(--color-accent); }
.foldernav .modeswitch button[aria-pressed="true"] { background: var(--color-text); color: var(--color-bg); }
.modeswitch-count {
  min-width: 18px; padding: 0 5px; border-radius: 9px; text-align: center;
  font-size: 11px; line-height: 18px; background: var(--color-accent); color: var(--color-bg);
}
.modeswitch button[aria-pressed="true"] .modeswitch-count { background: var(--color-bg); color: var(--color-text); }
.foldernav .syncnote { padding-bottom: 8px; }
/* The first section has no heading, so its rule sits a little lower. */
.section--untitled { margin-top: var(--space-3); }

.older { display: flex; align-items: baseline; gap: var(--space-3); padding: var(--space-4) var(--space-1) 0; }

.chiprow-label {
  color: var(--color-neutral-600); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase;
}
.sections { padding: var(--space-2) var(--space-6) var(--space-6); }
.section-head { display: flex; align-items: baseline; gap: 10px; margin: var(--space-4) 0 var(--space-2); }
.section-head h6 { margin: 0; }
.section-head--accent h6 { color: var(--color-accent); }
.section-note { font-size: 11px; color: var(--color-neutral-600); }
.section-rows { border-top: 2px solid var(--color-divider); }

/* sender · subject+snippet · task · actions · account · time.
   One track list for every section, so a sectioned page still scans like a
   table rather than three unrelated lists stacked up. */
.lrow {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 128px 136px 96px 64px;
  gap: var(--space-3); align-items: center;
  padding: 11px var(--space-1); border-bottom: 1px solid var(--color-divider);
  font-size: 13px; cursor: pointer;
}
.lrow > .tag { justify-self: start; max-width: 100%; overflow: hidden; white-space: nowrap; }
.lrow-account {
  font-size: 12px; color: var(--color-neutral-600);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lrow .snippet { color: var(--color-neutral-600); }
.lrow:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }
.lrow--focus { background: var(--color-accent-100); }
/* The row being read. A bar on the leading edge, so it reads as "this one"
   even on the focus row, which already has a tint of its own. */
.lrow--selected {
  box-shadow: inset 3px 0 0 var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 9%, transparent);
}
.lrow--quiet { color: var(--color-neutral-700); }
/* Weight is how a mail list says "you have not read this": unread is bold,
   read is not, in every section. */
.lrow-sender { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow-subject strong { font-weight: 500; }
.lrow--unread .lrow-sender, .lrow--unread .lrow-subject strong { font-weight: 700; }
.lrow-flag { color: var(--color-accent); margin-right: 6px; display: inline-flex; vertical-align: -1px; }
/* Quick actions: there on the row you are on, absent from the rest. */
.lrow-quick { gap: 2px; opacity: 0; }
.lrow:hover .lrow-quick, .lrow:focus-within .lrow-quick, .lrow--selected .lrow-quick { opacity: 1; }
.btn-quick { width: 28px; height: 28px; padding: 0; justify-content: center; color: var(--color-neutral-700); }
.btn-quick:hover { color: var(--color-accent); }
.reader-tools { display: flex; gap: var(--space-2); flex-wrap: wrap; flex-basis: 100%; }
.reader-tools:empty { display: none; }
.lrow-subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow-time { color: var(--color-neutral-600); font-size: 11px; text-align: right;
  font-variant-numeric: tabular-nums; }
.lrow-actions { display: flex; gap: 6px; }
.btn-compact { padding: 4px 10px; font-size: 12px; }
.tag-outline { white-space: nowrap; }
.lrow-subject .tag-outline { margin-right: var(--space-2); }

/* ── 1c  Agent desk ────────────────────────────────────────────────────── */
.desk { display: grid; grid-template-columns: 1fr 420px; height: 100%; min-height: 0; }
.skillrow {
  display: flex; gap: 10px; padding: 12px 20px; flex: none; flex-wrap: wrap;
  border-bottom: 1px solid var(--color-divider); font-size: 12px; align-items: center;
}
.skillrow-label {
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--color-neutral-600); align-self: center;
}
.desk-left { border-right: 2px solid var(--color-divider); padding: 20px; overflow-y: auto; }
.desk-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: 12px; }
.desk-head h4, .desk-head h5, .desk-head h6 { margin: 0; }
.desk-note { font-size: 12px; color: var(--color-neutral-600); }
.desk-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.desk-cards .card { cursor: pointer; background: var(--color-surface); text-align: left; border: 0; color: inherit; font: inherit; }
.desk-cards .card:hover { box-shadow: var(--shadow-md); }
.card-kicker--muted { color: var(--color-neutral-600); }
.quiet-lines { font-size: 13px; color: var(--color-neutral-700); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--color-accent); cursor: pointer; }

.desk-log { padding: 20px; background: var(--color-surface); overflow-y: auto; }
.logstack { display: flex; flex-direction: column; gap: 10px; }
.logcard { background: var(--color-bg); border: 1px solid var(--color-divider); padding: 12px; }
.logcard--draft { border-color: var(--color-accent); }
.logcard-meta {
  display: flex; justify-content: space-between; gap: var(--space-2);
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--color-neutral-600); margin-bottom: 6px;
}
.logcard--draft .logcard-meta { color: var(--color-accent-700); }
.logcard-body { font-size: 13px; line-height: 1.5; }
.logcard-actions { display: flex; gap: var(--space-2); margin-top: 10px; flex-wrap: wrap; }
.logcard--done { opacity: .55; }

/* ── settings / accounts / skills pages ────────────────────────────────── */
.page { height: 100%; overflow-y: auto; padding: var(--space-6) var(--space-8); }
.page-inner { max-width: 860px; }
.page-inner--wide { max-width: 1180px; }

/* Review mode of the inbox: situation → suggested solution. One grid for the
   heading row and every row under it, so the two columns line up down the page. */
.sit-table { border-top: 2px solid var(--color-divider); }
.sit {
  display: grid;
  grid-template-columns: minmax(0, 5fr) 28px minmax(0, 4fr) auto;
  gap: var(--space-3); align-items: start;
  padding: 14px var(--space-1); border-bottom: 1px solid var(--color-divider);
}
.sit--head {
  padding-block: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-neutral-600);
}
.sit-text { font-size: 14px; line-height: 1.45; }
.sit-do .sit-text { font-weight: 600; }
.sit-meta { font-size: 12px; color: var(--color-neutral-600); margin-top: 3px; }
.out-row.is-editing { background: var(--color-surface); }
.sit-which > .sit-draft { white-space: pre-wrap; overflow: visible; text-overflow: clip; margin-top: 4px; padding: 6px 8px; border-left: 2px solid var(--color-divider); color: var(--color-text); }
.sit-which { font-size: 12px; margin-top: 4px; color: var(--color-neutral-700); }
.sit-which summary { cursor: pointer; color: var(--color-neutral-600); }
.sit-which > div { padding: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sit-arrow { color: var(--color-accent); font-size: 18px; line-height: 1.2; text-align: center; }
.sit-actions { display: flex; gap: var(--space-2); align-items: center; justify-content: flex-end; flex-wrap: wrap; min-width: 200px; }
/* In the inbox a row is also the way to the mail behind it. */
.sit--pick { cursor: pointer; padding-inline: var(--space-2); }
.sit--pick:hover { background: var(--color-neutral-100, rgba(127,127,127,.06)); }
.sit--selected, .sit--selected:hover { background: var(--color-accent-100); box-shadow: inset 2px 0 0 var(--color-accent); }
.section-head .btn { margin-left: auto; }
.sit--settled .sit-do .sit-text { font-weight: 400; }
.sit--settled .sit-text { color: var(--color-neutral-700); }
@media (max-width: 900px) {
  .sit { grid-template-columns: minmax(0, 1fr); }
  .sit--head, .sit-arrow { display: none; }
  .sit-do { padding-left: var(--space-3); border-left: 2px solid var(--color-accent); }
  .sit-actions { justify-content: flex-start; min-width: 0; }
}
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.row { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.setting {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-3) 0; border-bottom: 1px solid var(--color-divider);
}
.setting-label { font-size: 14px; font-weight: 600; }
.setting-note { font-size: 12px; color: var(--color-neutral-600); }

/* ── command palette overlay ───────────────────────────────────────────── */
.palette-backdrop {
  position: fixed; inset: 0; display: grid; place-items: start center;
  padding: 12vh var(--space-4) var(--space-4);
  background: color-mix(in srgb, var(--color-neutral-100) 55%, transparent);
  z-index: 50;
}
.palette {
  width: min(680px, 100%); background: var(--color-surface);
  border: 1px solid var(--color-divider); box-shadow: var(--shadow-lg);
}
.palette-input {
  display: flex; align-items: center; gap: 10px; padding: 14px var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}
.palette-input input {
  flex: 1; background: none; border: 0; outline: none;
  font: inherit; font-size: 16px; color: var(--color-text); caret-color: var(--color-accent);
}
.palette-hint { padding: 10px var(--space-4); font-size: 12px; color: var(--color-neutral-600); }
.palette-list { max-height: 46vh; overflow-y: auto; }
.palette-item {
  display: block; width: 100%; text-align: left; padding: 10px var(--space-4);
  background: none; border: 0; border-top: 1px solid var(--color-divider);
  color: inherit; font: inherit; font-size: 13px; cursor: pointer;
}
.palette-item:hover, .palette-item[aria-selected="true"] {
  background: color-mix(in srgb, var(--color-text) 7%, transparent);
}
.palette-item .k { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-neutral-600); }

/* ── toasts ────────────────────────────────────────────────────────────── */
.toasts {
  position: fixed; bottom: var(--space-4); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: var(--space-2); z-index: 60; align-items: center;
}
.toast {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--color-neutral-100); color: var(--color-text);
  border: 1px solid var(--color-divider); box-shadow: var(--shadow-md);
  padding: 10px var(--space-3); font-size: 13px;
}
.toast .btn { padding: 2px 8px; font-size: 12px; }

/* ── misc ──────────────────────────────────────────────────────────────── */
.empty { padding: var(--space-8) var(--space-4); text-align: center; color: var(--color-neutral-600); font-size: 13px; }
.banner {
  display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
  padding: var(--space-2) var(--space-4); font-size: 12px;
  background: var(--color-accent-100); color: var(--color-accent-800);
  border-bottom: 1px solid var(--color-accent-300);
}
.banner .btn { padding: 2px 8px; font-size: 12px; color: inherit; }

/* Narrow screens: the three-pane and desk grids collapse to one column.
   Desktop-first per the handoff; this is the graceful floor, not the mobile
   design (that is a separate direction still to be picked). */
@media (max-width: 1100px) {
  .classic { grid-template-columns: 1fr; grid-template-rows: auto auto 6px 1fr; }
  .classic > .rail { grid-column: 1; grid-row: 1; }
  .classic > .pane--list { grid-column: 1; grid-row: 2; max-height: 40vh; }
  .classic > .splitter { grid-column: 1; grid-row: 3; }
  .classic > .reader { grid-column: 1; grid-row: 4; }
  .rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 2px solid var(--color-divider); }
  .rail .hr, .rail-head { display: none; }
  /* Below the breakpoint the columns have nowhere to go — stack them back.
     Every cell is placed explicitly; left to flow, six items into three tracks
     land on top of each other. Order is fixed by the view:
     1 dot · 2 from · 3 subject+snippet · 4 agent tag · 5 account · 6 received. */
  .msghead { display: none; }
  .msgrow--cols {
    grid-template-columns: 16px minmax(0, 1fr) auto;
    row-gap: 3px; column-gap: var(--space-2); align-items: start;
  }
  .msgrow--cols > *:nth-child(1) { grid-area: 1 / 1; margin-top: 5px; }
  .msgrow--cols > *:nth-child(2) { grid-area: 1 / 2; }
  .msgrow--cols > *:nth-child(6) { grid-area: 1 / 3; }
  .msgrow--cols > *:nth-child(3) { grid-area: 2 / 2 / auto / -1; white-space: normal; }
  .msgrow--cols > *:nth-child(4) { grid-area: 3 / 2; justify-self: start; }
  .msgrow--cols > *:nth-child(5) { grid-area: 3 / 3; text-align: right; }
  .desk { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .desk-left { border-right: 0; border-bottom: 2px solid var(--color-divider); }
  .desk-cards { grid-template-columns: 1fr; }
  .lrow { grid-template-columns: minmax(0, 1fr) auto; row-gap: 3px; align-items: start; }
  .lrow > *:nth-child(1) { grid-area: 1 / 1; }
  .lrow > *:nth-child(6) { grid-area: 1 / 2; }
  .lrow > *:nth-child(2) { grid-area: 2 / 1 / auto / -1; white-space: normal; }
  .lrow > *:nth-child(3) { grid-area: 3 / 1; }
  .lrow > *:nth-child(5) { grid-area: 3 / 2; text-align: right; }
  .lrow > *:nth-child(4) { grid-area: 4 / 1 / auto / -1; }
}

/* ── theme picker ──────────────────────────────────────────────────────── */
.themes { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.swatch {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 6px 10px 6px 6px; cursor: pointer;
  background: var(--color-bg); color: var(--color-text);
  border: 1px solid var(--color-divider);
  font-family: var(--font-body); font-size: 12px;
}
.swatch:hover { border-color: var(--color-accent); }
.swatch[aria-pressed="true"] { border-color: var(--color-accent); border-width: 2px; padding: 5px 9px 5px 5px; }
.swatch-chips { display: flex; }
.swatch-chip { width: 14px; height: 18px; }
.swatch-chip--bg { background: var(--color-bg); box-shadow: inset 0 0 0 1px var(--color-divider); }
.swatch-chip--surface { background: var(--color-surface); }
.swatch-chip--accent { background: var(--color-accent); }
.swatch-label { white-space: nowrap; }

/* ── sync status ───────────────────────────────────────────────────────── */
.syncnote {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--color-neutral-600);
  font-variant-numeric: tabular-nums; white-space: nowrap;
  background: none; border: 0; padding: 0; font-family: inherit;
}
.syncnote::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-accent-2);
}
.syncnote--idle::before { background: var(--color-neutral-400); }
.syncnote--warn { color: var(--color-danger); cursor: pointer; }
.syncnote--warn::before { background: var(--color-danger); }

/* ── motion ────────────────────────────────────────────────────────────── */
/* Quick and flat: state changes should feel immediate, never performed. */
.btn, .tag-button, .lrow, .rail-item, .msgrow, .swatch, .searchbox, .input, .appnav button {
  transition: background-color 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .btn, .tag-button, .lrow, .rail-item, .msgrow, .swatch, .searchbox, .input, .appnav button { transition: none; }
}

/* ── People: who can use OP361 in the organization ─────────────────────── */
.people-table { border-top: 2px solid var(--color-divider); }
.people-row {
  display: grid; grid-template-columns: 34px minmax(170px, 1.6fr) 112px minmax(120px, .9fr) minmax(130px, 1fr) 200px;
  gap: var(--space-3); align-items: center; padding: 10px var(--space-1);
  border-bottom: 1px solid var(--color-divider); font-size: 13px;
}
.people-row--head { padding-block: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral-600); }
.people-row--invited .people-avatar { border-style: dashed; background: transparent; color: var(--color-neutral-600); }
.people-avatar {
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; border: 1px solid var(--color-neutral-400, var(--color-divider)); background: var(--color-surface);
}
.people-who { display: flex; flex-direction: column; min-width: 0; }
.people-who > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people-select { padding: 4px 8px; font-size: 13px; width: 100%; }
.people-role { font-weight: 600; }
.people-actions { display: flex; gap: var(--space-2); justify-content: flex-end; }
.people-actions .btn { white-space: nowrap; }
@media (max-width: 900px) {
  .people-row { grid-template-columns: 34px minmax(0, 1fr); }
  .people-row--head { display: none; }
  .people-row > :nth-child(n+3) { grid-column: 2; }
  .people-actions { justify-content: flex-start; }
}

/* ── Organizations: the platform administrator's list ──────────────────── */
.orgs-row {
  display: grid; grid-template-columns: minmax(200px, 2fr) 60px 80px minmax(120px, 1fr) 120px 100px 70px;
  gap: var(--space-3); align-items: center; padding: 10px var(--space-1);
  border-bottom: 1px solid var(--color-divider); font-size: 13px; cursor: pointer;
}
.orgs-row.people-row--head { cursor: default; }
.orgs-row:not(.people-row--head):hover { background: var(--color-surface); }
.orgs-row--open { background: var(--color-accent-100); box-shadow: inset 2px 0 0 var(--color-accent); }
.orgs-detail {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-3) var(--space-4) var(--space-4); border-bottom: 2px solid var(--color-divider); background: var(--color-surface);
}
.orgs-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--space-2); }
.orgs-people { border-top: 1px solid var(--color-divider); }
.orgs-person { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px solid var(--color-divider); font-size: 13px; }
@media (max-width: 900px) {
  .orgs-row { grid-template-columns: minmax(0, 1fr) auto; }
  .orgs-row.people-row--head { display: none; }
}

/* ── windows: a conversation, a card ───────────────────────────────────── */
/* A screen that is only its list: the list scrolls, and what is opened from it
   opens in a window over it. */
.listview-solo { height: 100%; overflow-y: auto; }

.mail-window, .card-window {
  max-height: 90vh; overflow-y: auto;
  background: var(--color-bg); border: 1px solid var(--color-divider); box-shadow: var(--shadow-lg);
}
.mail-window { width: min(980px, 100%); }
.card-window { width: min(1180px, 100%); }
.mail-window--compose { width: min(820px, 100%); }
.mail-window-bar {
  position: sticky; top: 0; z-index: 2; display: flex; padding: 8px 12px;
  background: var(--color-bg); border-bottom: 1px solid var(--color-divider);
}
.mail-window .compose-host:not([hidden]) { padding: var(--space-3) var(--space-4) 0; }
.mail-window--compose .compose-host:not([hidden]) { padding: 0; }
.mail-window--compose .compose { border: 0; }
.card-window .crm-head { position: sticky; top: 0; z-index: 2; background: var(--color-bg); padding-top: var(--space-4); }
.card-window .crm-card { padding-top: 0; }
/* These windows are tall, so they start nearer the top than a command palette does. */
.palette-backdrop:has(.mail-window), .palette-backdrop:has(.card-window) { padding-top: 5vh; }

