/* The web app at 80% (Nicole, 2026-10-19: "i really like the size of
   everything when my browser is at 80%"): the whole page is drawn at 80%,
   and the window-height and -width sizes (--vh, --vw) are scaled back up so
   the menu, the rails and the panels still fill the window. The side panel
   isn't scaled (its sizes default to 1vh / 1vw). */
/* Full size (Nicole, 2026-11-05, from the team session: "everything is too
   small and hard to read, most work from laptops"); it was 80%. */
:root { --page-zoom: 1; --vh: 1vh; --vw: 1vw; }
html { zoom: var(--page-zoom); }

/* Carbon web app layout (mockups Home, Tasks). Tokens from tokens.css; the
   file view's own styles from file-view.css. */

body { margin: 0; min-height: calc(100 * var(--vh, 1vh)); background: var(--bg); }
.app { display: flex; min-height: calc(100 * var(--vh, 1vh)); }

/* Navigation */
#nav { position: sticky; top: 0; height: calc(100 * var(--vh, 1vh)); width: 232px; flex: none; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; background: var(--nav); color: var(--navtx); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 20px; }
.brand img { width: 32px; height: 32px; }
.brand span { font: 600 18px/1 var(--font-address); }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; border-left: 3px solid transparent; color: var(--navmuted); text-decoration: none; font-weight: 500; }
.nav-link:hover { color: var(--navtx); background: var(--navactive); }
.nav-link.active { background: var(--navactive); color: var(--navtx); font-weight: 700; border-left-color: var(--accent); }
.nav-link.soon { opacity: .7; }
.soon-tag { margin-left: auto; font-size: var(--fs-label); color: var(--navmuted); }
.nav-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding: 0 8px; }
/* The menu folded to its icons (2026-10-14): more room for the page. */
.nav-fold { margin-left: auto; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--navmuted); cursor: pointer; }
.nav-fold:hover { background: var(--navactive); color: var(--navtx); }
/* Folding is for wide screens; a phone has the menu across the top. */
@media (min-width: 761px) {
  #nav { transition: width .15s ease; }
  .app.nav-collapsed #nav { width: 68px; padding: 20px 8px; }
  .app.nav-collapsed .brand { flex-direction: column; gap: 8px; padding: 0 0 16px; }
  .app.nav-collapsed .brand span, .app.nav-collapsed .nav-link > span:not(.nav-count), .app.nav-collapsed .who, .app.nav-collapsed .theme-switch { display: none; }
  .app.nav-collapsed .nav-fold { margin: 0; }
  .app.nav-collapsed .nav-link { position: relative; justify-content: center; padding: 10px 0; }
  .app.nav-collapsed .nav-count { position: absolute; top: 2px; right: 2px; min-width: 16px; padding: 0 4px; line-height: 16px; font-size: 10px; }
  .app.nav-collapsed .nav-count.zero { display: none; }
  .app.nav-collapsed .nav-bottom { padding: 0; align-items: center; }
}
.theme-switch { display: flex; padding: 3px; border-radius: 8px; background: var(--navactive); }
.theme-switch button { flex: 1; padding: 6px 0; border: 0; border-radius: 6px; background: transparent; color: var(--navmuted); font: 600 12px var(--font-ui); cursor: pointer; }
.theme-switch button[aria-pressed="true"] { background: var(--navtx); color: var(--nav); }
.profile { display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--onaccent); font-weight: 700; }
.who { display: flex; flex-direction: column; }
.who .name { font-weight: 600; }
.who .role { font-size: 11px; color: var(--navmuted); }

/* Top bar */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 16px 28px; border-bottom: 1px solid var(--line); background: var(--surface); }
.search { position: relative; flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 8px; background: var(--surface-sunk); }
.search svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--text-muted); stroke-width: 2; }
.search input { flex: 1; border: 0; background: transparent; color: var(--text); font: inherit; outline: none; }
.search kbd { padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; color: var(--text-muted); }
.preview-flag { margin-left: auto; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--info-bg); color: var(--info); font-size: var(--fs-small); font-weight: 600; }
.signout { font-size: var(--fs-small); color: var(--text-muted); }
/* Sign-in pages (web/server.js) */
.signin { max-width: 420px; margin: calc(15 * var(--vh, 1vh)) auto; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 12px; text-align: center; }
.signin h1 { margin: 0; font: 600 24px/1.2 var(--font-address); color: var(--heading); }
.signin p { margin: 0; color: var(--text-muted); }

/* Content row: the page, and CeCe on the right when there's room (Nicole,
   2026-10-11: the blank space to the right). */
.content { display: flex; align-items: flex-start; min-width: 0; flex: 1; }
.content > .page { flex: 1; }
.cece-rail { display: none; }
@media (min-width: 1400px) {
  .cece-rail { display: block; position: sticky; top: 73px; width: 380px; flex: none; max-height: calc(calc(100 * var(--vh, 1vh)) - 90px); overflow-y: auto; padding: 24px 24px 24px 0; box-sizing: border-box; }
  .cece-rail .cece-thread { max-height: calc(calc(100 * var(--vh, 1vh)) - 360px); }
}

/* Pages */
.page { padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.page-head, .today-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.page-head p, .today-head p { margin: 4px 0 0; }
.greeting, .page-title { margin: 0; font: 600 28px/1.2 var(--font-address); color: var(--heading); }
.page-title { font: 700 22px/1.2 var(--font-ui); }
.head-actions, .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.page-empty { padding: 40px 0; }
.loading { padding: 20px 0; }
.small { font-size: var(--fs-small); }
.strong { font-weight: 600; color: var(--heading); }
.red-text { color: var(--red); } .amber-text { color: var(--amber); }
.small-link { font-size: 12px; font-weight: 600; color: var(--link); }
.pill { padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.red { background: var(--red-bg); color: var(--red); } .pill.amber { background: var(--amber-bg); color: var(--amber); } .pill.info { background: var(--info-bg); color: var(--info); }
.btn.small { padding: 6px 10px; font-size: 12px; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); color: inherit; text-decoration: none; }
a.tile:hover { outline: 1px solid var(--line); }
.tile-label { color: var(--text-muted); font-weight: 600; }
.tile-count { font-size: 28px; font-weight: 700; color: var(--heading); }
.tile-detail { font-size: 12px; color: var(--text-muted); }
.tile-detail.red { color: var(--red); font-weight: 600; } .tile-detail.amber { color: var(--amber); font-weight: 600; }

/* Panels */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.two-col.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.panel { display: block; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.panel.padded { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.panel h3 { margin: 0; font-size: 14px; color: var(--heading); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.panel.padded .panel-head { padding: 0; border: 0; }
.panel-head h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--heading); }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-title { font-weight: 600; color: var(--heading); }
.segmented { display: flex; gap: 6px; }
.segmented button { padding: 4px 10px; border: 0; border-radius: var(--radius-pill); background: var(--surface-sunk); color: var(--text-muted); font: 600 12px var(--font-ui); cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* Tables */
.table { display: grid; }
.tr { display: grid; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
a.tr:hover { background: var(--surface-sunk); }
.tr.th { padding: 8px 16px; color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.tr > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files-table .tr { grid-template-columns: 4px minmax(0, 2fr) 70px minmax(0, 2fr) minmax(0, 1.4fr) 110px; }
.all-files .tr { grid-template-columns: minmax(0, 2fr) 130px 70px 110px minmax(0, 1.4fr) 100px 110px minmax(0, 1fr); }
.bar { height: 22px; border-radius: 2px; background: var(--line); }
.bar.today, .swatch.today { background: var(--amber); }
.bar.past, .swatch.past { background: var(--red); }
.bar.closed, .swatch.closed { background: var(--green); }
/* The Escrows list coloured as Today's files (2026-10-15): a left edge. */
.all-files .tr.tone-today { box-shadow: inset 4px 0 0 #F5C400; } /* the yellow of Today's bars */
.all-files .tr.tone-past { box-shadow: inset 4px 0 0 var(--red); }
.all-files .tr.tone-closed { box-shadow: inset 4px 0 0 var(--green); }

/* A task's contacts */
.contact-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-role { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); padding-top: 2px; }
.contact-name { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }

/* Resources */
.resource-list { display: grid; gap: 12px; }
.resource-card { display: grid; gap: 8px; }
.resource-card > summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; }
.resource-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.resource-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.resource-contact { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.resource-text { white-space: pre-wrap; font: inherit; font-size: 14px; line-height: 1.55; margin: 0; padding: 12px; background: var(--surface-sunk); border-radius: var(--radius); }
.resource-notes { margin: 0; white-space: pre-wrap; }

/* Listings */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.listing-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; color: inherit; text-decoration: none; padding: 0; }
.listing-card:hover { box-shadow: 0 0 0 2px var(--accent); }
.listing-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface-sunk); display: block; }
.listing-photo.empty { display: grid; place-items: center; color: var(--text-muted); font-size: 12px; }
.listing-body { display: grid; gap: 8px; padding: 12px 16px 16px; }
.listing-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.listing-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 18px; }
.listing-dates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.listing-dates dt { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.listing-dates dd { margin: 2px 0 0; font-size: 13px; }
.green-text { color: var(--green); }
.files-search-row { padding: 10px 16px 0; }
.files-search { width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; }
.legend { display: flex; gap: 16px; padding: 10px 16px; color: var(--text-muted); font-size: 12px; }
.legend > span { display: flex; align-items: center; gap: 6px; }
.legend .push { margin-left: auto; }
.swatch { width: 10px; height: 10px; border-radius: 2px; }

/* Aside */
.queue-link { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 8px; background: var(--surface-sunk); color: var(--text); text-decoration: none; }
.queue-link:hover { outline: 1px solid var(--line); }
.queue-text { display: flex; flex-direction: column; gap: 2px; }
.queue-count { font-size: 20px; font-weight: 700; color: var(--heading); }
.closing-item { display: flex; align-items: center; gap: 12px; }
.cal { width: 44px; flex: none; display: flex; flex-direction: column; align-items: center; padding: 4px 0; border-radius: 8px; background: var(--surface-sunk); }
.cal-dow { font-size: 11px; color: var(--text-muted); }
.cal-day { font-size: 16px; font-weight: 700; color: var(--heading); }
.note { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 8px; background: var(--surface-sunk); line-height: 1.45; }

/* Tasks */
.tasks-page { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start; }
.task-list { position: sticky; top: 92px; max-height: calc(calc(100 * var(--vh, 1vh)) - 116px); display: flex; flex-direction: column; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.task-list-head { display: grid; gap: 10px; padding: 16px; border-bottom: 1px solid var(--line); }
.filter input { box-sizing: border-box; width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-sunk); color: var(--text); font: inherit; }
.toolbar .filter input { width: 300px; }
.task-groups { overflow-y: auto; }
.task-group-head { display: flex; justify-content: space-between; padding: 6px 16px; background: var(--surface-sunk); color: var(--text-muted); font-size: 12px; font-weight: 700; }
.task-group-head.overdue { background: var(--red-bg); color: var(--red); }
.task-group-head.today { background: var(--amber-bg); color: var(--amber); }
.task-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.task-row:hover { background: var(--surface-sunk); }
.task-row.selected { background: var(--info-bg); box-shadow: inset 3px 0 0 var(--accent); }
.task-row .dot { margin-top: 5px; }
.dot.week, .dot.later, .dot.undated { background: var(--line); }
.task-detail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.detail-empty { padding: 60px 0; }
.detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.detail-title h2 { margin: 0 0 4px; font-size: 20px; color: var(--heading); }
.detail-actions { display: flex; gap: 8px; align-items: flex-start; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 20px; color: var(--text-muted); }
.detail-meta strong { color: var(--heading); }
.detail-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.instructions { display: grid; gap: 6px; padding: 14px 16px; border-left: 3px solid var(--link); border-radius: 8px; background: var(--info-bg); }
.instructions p, .instructions ol { margin: 0; }
.step { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.step-n { width: 22px; height: 22px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface-sunk); font-weight: 700; font-size: 12px; }
.step-text { flex: 1; }
.kv { display: grid; gap: 6px; }
.kv-row { display: flex; justify-content: space-between; gap: 10px; }

/* Documents */
.queue-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.queue-card { color: inherit; text-decoration: none; }
.queue-card:hover { outline: 1px solid var(--line); }
.queue-list { display: grid; }
.queue-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: start; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.queue-row:last-child { border-bottom: 0; }
.queue-row-main { display: grid; gap: 4px; min-width: 0; }
.queue-row-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.queue-row-actions { display: flex; gap: 8px; }
.queue-row .row-editor, .queue-row .row-result { grid-column: 1 / -1; }
.queue-row .row-editor:empty, .queue-row .row-result:empty { display: none; }
.attachments { flex-wrap: wrap; gap: 6px; font-size: var(--fs-small); }
.note-editor { display: grid; gap: 8px; }
.note-editor textarea { box-sizing: border-box; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; resize: vertical; }

/* Full file view at page width */
.file-page { max-width: 960px; display: grid; gap: var(--s2); --sticky-top: 73px; }
.file-page .tabs button { padding: var(--s1) var(--s2); }

/* Narrow screens */
@media (max-width: 1100px) {
  .two-col, .two-col.even, .detail-body { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tasks-page { grid-template-columns: minmax(0, 1fr); }
  .task-list { position: static; max-height: none; }
}
@media (max-width: 760px) {
  .app { flex-direction: column; }
  .nav-fold { display: none; }
  #nav { position: static; height: auto; width: auto; flex-direction: row; flex-wrap: wrap; padding: 8px 16px; }
  .brand { padding: 0 8px 0 0; }
  .nav-link { padding: 8px; border-left: 0; }
  .nav-link span:not(.soon-tag) { display: none; }
  .soon-tag { display: none; }
  .nav-bottom { margin: 0 0 0 auto; flex-direction: row; align-items: center; padding: 0; }
  .who { display: none; }
  .theme-switch button { padding: 6px 10px; }
  .topbar { padding: 12px 16px; }
  .preview-flag { display: none; }
  .page { padding: 16px; }
  .queue-cards { grid-template-columns: minmax(0, 1fr); }
  .files-table .tr, .all-files .tr { grid-template-columns: minmax(0, 1fr) auto; }
  .queue-row { grid-template-columns: minmax(0, 1fr); }
  .files-table .tr > :nth-child(n+3):not(:last-child), .all-files .tr > :nth-child(n+3) { display: none; }
  .files-table .tr > :first-child { display: none; }
  .toolbar .filter input { width: 100%; }
}
.small-pill { margin-left: 6px; padding: 1px 6px; font-size: 10px; vertical-align: middle; }

/* New Escrow / New Listing */
.intake { display: grid; gap: var(--s2); max-width: 880px; }
.intake h3 { margin: 0 0 var(--s1); }
.intake-row { display: grid; gap: var(--s-half); margin-bottom: var(--s1); }
.intake-row input, .intake-row select, .intake-row textarea { width: 100%; }
.intake-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 0 var(--s2); }
.intake-fixed { display: flex; flex-wrap: wrap; gap: var(--s-half); margin-bottom: var(--s1); }
.intake-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 var(--s2); }
.intake-people { display: grid; gap: var(--s1); margin-bottom: var(--s1); }
.intake-person input { width: 100%; }
.intake-inline { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1); margin-top: var(--s-half); }
.intake-matches { display: flex; flex-wrap: wrap; gap: var(--s-half); margin-top: var(--s-half); }
.intake-add { display: flex; flex-wrap: wrap; gap: var(--s1); }
@media (max-width: 600px) { .intake-inline { grid-template-columns: 1fr; } }

/* Pending Return: last requested and the timeline */
.pending-info { display: grid; gap: var(--s-half); }
.timeline-box summary { cursor: pointer; color: var(--text-muted); }
.timeline-peek pre.timeline { white-space: pre-wrap; font: inherit; font-size: var(--fs-small); max-height: 320px; overflow-y: auto; margin: var(--s-half) 0 0; }


.cece-rail.rail-off { display: none !important; }
/* CeCe kept up after following one of her links (2026-10-15). */
.cece-dock { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: min(400px, calc(calc(100 * var(--vw, 1vw)) - 32px)); max-height: calc(75 * var(--vh, 1vh)); overflow-y: auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(14, 55, 74, 0.22); padding: 10px; box-sizing: border-box; }
.cece-dock-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 6px; }
.cece-dock .cece-thread { max-height: calc(45 * var(--vh, 1vh)); }


/* Tasks by file, and the task's editors (2026-10-12) */
.task-group-head.file { background: var(--surface-sunk); color: var(--text); text-transform: none; }
.dot.overdue { background: var(--red); }
.dot.today { background: var(--amber); }
.due-edit { display: inline-flex; gap: var(--s-half); align-items: center; }
.due-edit input { font: inherit; }
.detail-actions select { max-width: 220px; }
.task-message .form-row select { width: 100%; }
.agent-systems { display: flex; flex-wrap: wrap; gap: var(--s1); margin: var(--s1) 0; }


/* Tasks: Upcoming groups, then properties; notes and agent notes (2026-10-12) */
.task-group-head.soon { background: var(--purple-bg, var(--surface-sunk)); }
.task-file-head { display: flex; justify-content: space-between; padding: 4px 16px 4px 24px; color: var(--text); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); }
.notes-text { white-space: pre-wrap; }
/* A task's notes, plain to see (2026-10-29). */
.task-notes.has-notes { background: var(--amber-bg); border: 1px solid var(--amber); border-left-width: 5px; }
.task-notes.has-notes h3 { color: var(--amber); }
.task-notes.has-notes .notes-text { color: var(--text); font-size: 15px; font-weight: 500; margin: 4px 0 6px; }
.agent-facts { display: grid; gap: var(--s-half); }
.agent-facts-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-half); }


/* Menu counts: past due + due today, intake, Ok to Send (2026-10-12) */
.nav-count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-sunk); color: var(--text); font-size: 11px; font-weight: 700; text-align: center; line-height: 18px; }
.nav-count.zero { opacity: .5; }
.nav-count.fresh { background: var(--red); color: #fff; opacity: 1; }

/* Questions escalated from CeCe (2026-10-12) */
.escalation summary { cursor: pointer; }
.escalation pre { white-space: pre-wrap; font: inherit; margin: var(--s-half) 0; color: var(--text-muted); }
.cece-actions { display: flex; flex-wrap: wrap; gap: var(--s1); align-items: center; }
.cece-escalate { display: grid; gap: var(--s-half); width: 100%; }

/* Slack (2026-10-12) */
.slack-page { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s2); min-height: calc(60 * var(--vh, 1vh)); }
.slack-side { display: grid; align-content: start; gap: var(--s1); }
.slack-list { display: grid; gap: 2px; max-height: calc(70 * var(--vh, 1vh)); overflow-y: auto; }
.slack-group { margin-top: var(--s1); font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.slack-conv { display: block; padding: 4px 8px; border-radius: var(--radius); color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slack-conv:hover { background: var(--surface-sunk); }
.slack-conv.selected { background: var(--surface-sunk); font-weight: 700; }
.slack-thread { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: var(--s1); min-height: calc(60 * var(--vh, 1vh)); }
.slack-thread-head h2 { margin: 0; }
.slack-messages { overflow-y: auto; max-height: calc(60 * var(--vh, 1vh)); display: grid; align-content: start; gap: var(--s1); padding-right: var(--s1); }
.slack-msg-head { display: flex; gap: var(--s1); align-items: baseline; }
.slack-msg-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.slack-compose textarea { width: 100%; }
.slack-compose .editor-actions { justify-content: space-between; }
@media (max-width: 720px) { .slack-page { grid-template-columns: 1fr; } .slack-list { max-height: calc(30 * var(--vh, 1vh)); } }
.intake .plain-list { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s-half); }
/* Intake screen 2 (2026-10-12): rows keep their own height (no stretching
   to the tallest neighbour), notes are one line that grows, saves show by
   the label, and the bar stays at the bottom. */
.intake-grid, .intake-notes { align-items: start; }
.intake-row { align-content: start; }
.intake-row.wide { grid-column: 1 / -1; }
.intake-row textarea, .intake-row input:not([type=file]), .intake-row select:not([multiple]) { box-sizing: border-box; padding: 6px var(--s1); border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; }
.intake-row textarea.one-line { resize: vertical; overflow: hidden; min-height: 0; line-height: 1.4; }
.save-mark { margin-left: var(--s1); font-weight: 400; }
.intake-linked { display: flex; flex-wrap: wrap; gap: var(--s-half); margin-bottom: var(--s1); }
.intake-linked .chip.on { border-color: var(--accent, currentColor); font-weight: 600; }
.intake-work h3 { margin: var(--s2) 0 var(--s1); }
.intake-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); padding: var(--s1) var(--s2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 10px); box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06); }
/* Commission: Service and Listing TC Fee; the listing side; the buying side. */
.intake-line { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .intake-line { grid-template-columns: 1fr; } }
/* The escrow intake screen (2026-10-12): deadline rows four across, read-only
   values, the agent's documents at the top. */
.intake-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .intake-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .intake-grid4 { grid-template-columns: 1fr; } }
.intake-show { padding: 6px 0; color: var(--text); }
.intake-agent-docs { margin-bottom: var(--s1); }
/* Escrow intake lines (2026-10-12): the items that belong together on one
   line, shaded alternately (grey, then white). */
.ilines { display: grid; gap: 2px; }
.iline { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--s1); align-items: start; padding: var(--s1); border-radius: 8px; }
.iline.alt { background: color-mix(in srgb, var(--text) 7%, transparent); }
/* A line that doesn't apply really hides (2026-11-10, 530 Country Dr: Option fee showed on a Nevada file; .iline's display won over [hidden]). */
.iline[hidden] { display: none; }
.iline-title { font-weight: 600; color: var(--heading); padding-top: 4px; text-transform: capitalize; }
.iline-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 0 var(--s2); align-items: start; }
.iline-items .intake-row { margin-bottom: 0; }
.iline-items .wide { grid-column: 1 / -1; }
.iline-items .span2 { grid-column: span 2; }
@media (max-width: 700px) { .iline { grid-template-columns: 1fr; } .iline-items .span2 { grid-column: 1 / -1; } }
.chip-select { display: flex; flex-wrap: wrap; gap: var(--s-half); }
.chip-select .chip { cursor: pointer; }
.chip-select .chip.on, .intake-linked .chip.on { background: var(--info-bg); color: var(--info); border-color: var(--info); font-weight: 600; }
.intake-photo img { display: block; max-width: 260px; max-height: 180px; border-radius: 8px; margin-top: var(--s1); object-fit: cover; }
.intake-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-half); }
.intake-block { border-left: 4px solid var(--amber, #d98e04); }
.intake-guide:not(:empty) { margin-top: var(--s1); }
.iline.untitled { grid-template-columns: minmax(0, 1fr); }
.multi-drop { position: relative; }
.multi-drop > summary { cursor: pointer; padding: 6px var(--s1); border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); list-style: none; }
.multi-drop > summary::-webkit-details-marker { display: none; }
.multi-drop[open] > summary { border-color: var(--focus); }
.multi-drop-list { display: grid; gap: 2px; margin-top: 4px; padding: var(--s1); border: 1px solid var(--line); border-radius: 6px; background: var(--surface); max-height: 280px; overflow: auto; }
.multi-drop-item { display: flex; gap: 6px; align-items: baseline; color: var(--text); cursor: pointer; }
.intake.intake-wide { max-width: 1280px; }
/* Address groups collapse (2026-10-12). */
button.task-file-head { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; font: inherit; font-size: 12px; font-weight: 600; align-items: center; gap: 6px; }
button.task-file-head > span:nth-child(2) { flex: 1; }
button.task-file-head .caret { width: 10px; color: var(--text-muted); }
button.task-file-head:hover { background: var(--surface-sunk); }

/* Calendar (2026-10-12) */
.cal-head { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); align-items: center; justify-content: space-between; margin-bottom: var(--s1); }
.cal-nav { display: flex; align-items: center; gap: var(--s1); }
.cal-title { margin: 0 var(--s1); font-size: 20px; color: var(--heading); min-width: 170px; text-align: center; }
.cal-kinds { display: flex; flex-wrap: wrap; gap: var(--s-half); }
.cal-kind { cursor: pointer; opacity: .55; }
.cal-kind.on { opacity: 1; font-weight: 600; }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s2); align-items: start; }
@media (max-width: 1000px) { .cal-layout { grid-template-columns: 1fr; } }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cal-weekday { background: var(--surface-sunk); padding: 6px; font-size: 12px; font-weight: 600; color: var(--text-muted); text-align: center; }
.cal-day { display: flex; flex-direction: column; gap: 2px; min-height: 96px; padding: 4px; background: var(--surface); border: 0; text-align: left; cursor: pointer; font: inherit; color: var(--text); min-width: 0; }
.cal-day.other { background: var(--bg); color: var(--text-muted); }
.cal-day.today .cal-num { background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 0 6px; }
.cal-day.picked { outline: 2px solid var(--focus); outline-offset: -2px; }
.cal-num { font-size: 12px; font-weight: 700; align-self: flex-start; }
.cal-pill { display: block; font-size: 11px; line-height: 1.3; padding: 1px 4px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-more { font-size: 11px; }
@media (max-width: 600px) { .cal-day { min-height: 54px; } .cal-pill { font-size: 0; height: 6px; padding: 0; } }
.cal-pill.k-closing, .cal-event.k-closing .cal-dot, .cal-kind.k-closing.on { background: var(--green-bg); color: var(--green); }
.cal-pill.k-inspection, .cal-event.k-inspection .cal-dot, .cal-kind.k-inspection.on { background: var(--info-bg); color: var(--info); }
.cal-pill.k-signing, .cal-event.k-signing .cal-dot, .cal-kind.k-signing.on { background: var(--amber-bg); color: var(--amber); }
.cal-pill.k-walkthrough, .cal-event.k-walkthrough .cal-dot, .cal-kind.k-walkthrough.on { background: #EFE3F0; color: #6E3B66; }
.cal-pill.k-expiration, .cal-event.k-expiration .cal-dot, .cal-kind.k-expiration.on { background: var(--red-bg); color: var(--red); }
.cal-agenda h3 { margin: 0 0 var(--s1); }
.cal-event { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 2px 8px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.cal-event:hover .cal-what { text-decoration: underline; }
.cal-dot { width: 10px; height: 10px; border-radius: 999px; margin-top: 5px; border: 2px solid currentColor; box-sizing: border-box; }
.cal-what { font-weight: 600; }
.cal-where { grid-column: 2; font-size: 13px; }

/* Team (2026-10-12) */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s2); margin-bottom: var(--s2); }
.team-card { display: grid; gap: var(--s1); align-content: start; }
.team-head { display: flex; justify-content: space-between; gap: var(--s1); }
.team-head h3 { margin: 0; }
.team-total { display: grid; justify-items: end; }
.team-big { font-size: 28px; font-weight: 700; color: var(--heading); line-height: 1; }
.team-stages, .team-tasks { display: flex; flex-wrap: wrap; gap: var(--s-half); }
.team-closings { display: grid; gap: 2px; }
.team-closings .kv-row { color: var(--text); text-decoration: none; }

/* Business Center (2026-10-12) */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: var(--s2); margin-bottom: var(--s2); }
.kpi { display: grid; gap: 6px; }
.kpi-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.kpi-value { font-size: 26px; font-weight: 700; color: var(--heading); }
.kpi.green .kpi-value { color: var(--green); }
.biz-h { margin: var(--s2) 0 var(--s1); font-size: 18px; color: var(--heading); }
.biz-goal { display: grid; gap: var(--s1); margin-bottom: var(--s2); }
.biz-goal-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s1); }
.biz-goal-head h3 { margin: 0; }
.biz-bar { height: 14px; border-radius: 999px; background: var(--surface-sunk); overflow: hidden; }
.biz-bar-fill { display: block; height: 100%; background: var(--green); }

/* Business Center menu, lists and profiles (2026-10-12) */
.bc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: var(--s2); align-items: start; }
@media (max-width: 900px) { .bc-layout { grid-template-columns: 1fr; } }
.bc-menu { display: grid; gap: 2px; position: sticky; top: var(--s2); padding: var(--s1); border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.bc-link { padding: 7px 10px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 14px; }
.bc-link:hover { background: var(--surface-sunk); }
.bc-link.active { background: var(--surface-sunk); font-weight: 700; color: var(--heading); }
.bc-toolbar { display: flex; gap: var(--s2); align-items: center; margin-bottom: var(--s1); }
.bc-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.bc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bc-table th { text-align: left; padding: 8px 10px; background: var(--surface-sunk); color: var(--text-muted); font-weight: 600; white-space: nowrap; position: sticky; top: 0; }
.bc-table td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.bc-table td:first-child a { font-weight: 600; }
.bc-section { margin-bottom: var(--s2); }
.bc-section h3 { margin: 0 0 var(--s1); }
.bc-kv { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 6px var(--s2); margin: 0; }
.bc-kv dt { color: var(--text-muted); font-size: 13px; }
.bc-kv dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 600px) { .bc-kv { grid-template-columns: 1fr; } }
.kpi.red .kpi-value { color: var(--red); }

/* Compliance pages (2026-10-12): her interfaces' groupings. */
.cp-group { border-top: 1px solid var(--line); padding: var(--s1) 0; }
.cp-group > summary { cursor: pointer; padding: 4px 0; }
.cp-agent { margin: var(--s1) 0 var(--s1) var(--s2); }
.cp-agent-head { font-weight: 600; margin-bottom: 4px; }
.cp-file { margin: 6px 0 var(--s1) var(--s2); }
.cp-file-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.cp-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.cp-notes { margin: 0 0 var(--s1); padding-left: 18px; }
.cp-detail { display: grid; gap: var(--s1); padding: var(--s1) 0; }
.cp-detail-head { display: flex; gap: var(--s1); align-items: center; }
.cp-field { display: grid; gap: 4px; }
.cp-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-choices .chip[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.cp-phase { margin-top: 6px; }
.bc-table.compact td, .bc-table.compact th { padding-top: 4px; padding-bottom: 4px; }

/* Inbox (2026-10-12): boxes, threads, the open conversation. */
.ib-layout { display: grid; grid-template-columns: 210px minmax(260px, 360px) 1fr; gap: var(--s2); align-items: start; }
.ib-boxes { display: grid; gap: var(--s1); position: sticky; top: var(--s2); }
.ib-group-head { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, inherit); margin: 4px 0; }
.ib-box { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; padding: 6px 8px; border-radius: 8px; background: none; border: 0; color: inherit; cursor: pointer; }
.ib-box.on, .ib-box:hover { background: var(--line); }
.ib-middle { display: grid; gap: var(--s1); }
.ib-list-head { display: flex; align-items: center; gap: var(--s1); }
.ib-list-head .filter { flex: 1; min-width: 0; }
.ib-refresh { white-space: nowrap; }
.ib-list { display: grid; max-height: calc(calc(100 * var(--vh, 1vh)) - 220px); overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.ib-row { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; cursor: pointer; }
.ib-row.on { background: var(--line); }
.ib-row.unread .ib-from, .ib-row.unread .ib-subject { font-weight: 700; }
.ib-row-top { display: flex; gap: 4px; align-items: baseline; }
.ib-date { margin-left: auto; font-size: 12px; opacity: .7; }
.ib-subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-snippet { font-size: 12px; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-reader { min-width: 0; display: grid; gap: var(--s1); }
.ib-head { display: grid; gap: 6px; }
.ib-title { margin: 0; font-size: 20px; }
.ib-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ib-msg { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.ib-msg > summary { cursor: pointer; }
.ib-body { margin-top: 8px; }
.ib-text { font: inherit; margin: 0; }
.ib-html { width: 100%; height: 480px; resize: vertical; overflow: auto; border: 1px solid var(--line); background: #fff; border-radius: 6px; }
.ib-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ib-actions { display: flex; gap: 8px; }
.ib-compose { display: grid; gap: 8px; }
.ib-compose textarea { width: 100%; font: inherit; }
.ib-empty { padding: var(--s2); }
@media (max-width: 1100px) { .ib-layout { grid-template-columns: 1fr; } .ib-boxes { position: static; } }
.ib-title, .ib-subject, .ib-msg summary { text-transform: none; }
.pre-wrap { white-space: pre-wrap; }
.cp-item { display: grid; gap: 10px; padding: 8px 0; }
.cp-item textarea { width: 100%; font: inherit; }
.cp-item .editor-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cp-item .editor-actions input { flex: 1; min-width: 180px; }
.task-file-row { display: flex; align-items: center; gap: 6px; }
.task-file-row .task-file-head { flex: 1; min-width: 0; }
.task-file-link { flex: none; padding: 2px 8px; font-size: 12px; }
/* Closing today: a clear yellow (Nicole, 2026-10-12). */
.bar.today, .swatch.today { background: #F5C400; }
.today-text { color: #9A7300; }
.cal.today { background: #F5C400; color: #2b2300; }
.pill.amber { background: #FFE27A; color: #5c4500; }
@media (min-width: 900px) { .files-table.listings-table .tr { grid-template-columns: 4px minmax(0, 2fr) 110px minmax(0, 1.5fr) minmax(0, 1.4fr) 100px 130px; } }
/* Team on Slack (2026-10-12). */
.slack-team { display: grid; gap: 8px; }
.slack-person { display: flex; gap: 8px; align-items: center; }
.slack-avatar { position: relative; width: 28px; height: 28px; border-radius: 6px; background: var(--line); display: grid; place-items: center; font-weight: 600; flex: none; }
.slack-avatar img { width: 28px; height: 28px; border-radius: 6px; }
.presence { position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--bg, #fff); }
.presence.on { background: #2BAC76; } .presence.off { background: #A0A0A0; }
.slack-who { display: grid; min-width: 0; }
.slack-who > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slack-side .slack-team-panel { margin-bottom: var(--s2); }
.bc-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s1) 0; }
.bc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s2); margin-top: var(--s2); }
.bc-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bc-rank { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.ib-labels { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ib-label { display: inline-flex; align-items: center; gap: 4px; }
.ib-label-x { border: 0; background: none; cursor: pointer; padding: 0 2px; font-size: 14px; line-height: 1; color: inherit; opacity: .7; }
.ib-label-x:hover { opacity: 1; }
.ib-label-add { width: 180px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 13px; background: transparent; color: inherit; }
@media (min-width: 900px) { .files-table.escrows-table .tr { grid-template-columns: 4px minmax(0, 2fr) 70px 130px minmax(0, 1.6fr) minmax(0, 1.4fr) 110px; } }
.view-as-bar { position: sticky; top: 0; z-index: 100; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 8px 16px; background: #3B7DD8; color: #fff; font-size: 14px; } .view-as-bar .btn { background: #fff; color: #1d3f73; }

/* Agent Profile (Business Center) */
.ap-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--s2); align-items: start; }
@media (max-width: 1100px) { .ap-layout { grid-template-columns: 1fr; } }
.ap-tools { display: grid; gap: 6px; margin-bottom: var(--s1); }
.ap-tools select, .ap-tools input { width: 100%; }
.ap-rows { list-style: none; margin: 0; padding: 0; max-height: calc(70 * var(--vh, 1vh)); overflow-y: auto; }
.ap-row { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 6px; color: inherit; text-decoration: none; }
.ap-row:hover { background: var(--surface-2, rgba(127,127,127,.08)); }
.ap-row.active { background: var(--accent-soft, rgba(80,120,255,.14)); }
.ap-head { display: flex; gap: var(--s2); align-items: center; margin-bottom: var(--s2); }
.ap-head h2 { margin: 0; }
.ap-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.ap-kv input, .ap-kv select, .ap-kv textarea { width: min(100%, 420px); }
.ap-steps { list-style: none; margin: 0 0 var(--s1); padding: 0; display: grid; gap: 4px; }
.ap-steps li { display: flex; gap: 8px; align-items: center; color: var(--text-muted); }
.ap-steps li.done { color: inherit; }
.ap-check { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; align-items: center; justify-content: center; font-size: 12px; }
.ap-steps li.done .ap-check { background: var(--green, #2e9e5b); border-color: var(--green, #2e9e5b); color: #fff; }

/* The file, read only, in the item panel (compliance staff) */
.ip-sheet > summary { cursor: pointer; margin-bottom: var(--s1); }
.ip-sheet .kv { margin-bottom: var(--s1); }

/* A new version is out: reload */
.update-bar { position: sticky; top: 0; z-index: 101; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 8px 16px; background: #2e9e5b; color: #fff; font-size: 14px; } .update-bar .btn { background: #fff; color: #1d5a37; }

/* Scheduled emails */
.schedule-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.sched-list { display: grid; gap: 10px; }
.sched-row { border-top: 1px solid var(--border, rgba(127,127,127,.25)); padding-top: 8px; display: grid; gap: 3px; }
.sched-row:first-child { border-top: 0; padding-top: 0; }
.sched-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sched-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sched-subject { text-align: left; padding: 0; }
.sched-open { display: grid; gap: 6px; margin: 6px 0 2px; padding: 8px 10px; border: 1px solid var(--border, rgba(127,127,127,.25)); border-radius: 8px; }
.sched-field { display: grid; gap: 2px; }
.sched-field input { width: 100%; box-sizing: border-box; }

/* Ok to Send, grouped by address and agent */
.queue-group { margin-bottom: var(--s2); }
.queue-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 14px 0; }

/* Commission Instructions panel */
.ip-ci-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ip-ci-figures { margin: 8px 0; }

.queue-group-head .queue-all { margin-left: auto; }
.queue-left { margin: 6px 14px; }

/* Whose side a contact is on (by representation) */
.side-chip { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; vertical-align: middle; background: rgba(127,127,127,.15); color: var(--text-muted, #666); }
.person.side-ours, .ip-party.side-ours { box-shadow: inset 4px 0 0 var(--side, var(--rep-dual)); background: color-mix(in srgb, var(--side, var(--rep-dual)) 7%, transparent); border-radius: 8px; }
.ip-party { padding: 4px 6px; }
.side-ours.rep-seller, .rep-seller .side-chip.side-ours { --side: var(--rep-seller); }
.side-ours.rep-buyer, .rep-buyer .side-chip.side-ours { --side: var(--rep-buyer); }
.side-ours.rep-dual, .rep-dual .side-chip.side-ours { --side: var(--rep-dual); }
.side-chip.side-ours { background: var(--side, var(--rep-dual)); color: #fff; }
.person.side-other, .ip-party.side-other { opacity: .85; }

/* Attachments at the top of a message, by kind (2026-10-13) */
.ib-files { display: grid; gap: 8px; margin: 8px 0; }
.ib-file { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.ib-att-body { display: grid; gap: 4px; min-width: 0; }
.ib-file-top { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.ib-file-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.ib-file-actions .doc-check-btn { margin-left: auto; }
.ib-kind { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 44px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #fff; background: #6b7280; }
.kind-pdf .ib-kind { background: var(--rep-buyer); }
.kind-word .ib-kind { background: var(--rep-seller); }
.kind-excel .ib-kind { background: #1E7B45; }
.ib-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.ib-file-name { font-weight: 600; word-break: break-word; }
/* The thread's file beside it */
.ib-file-panel:empty { display: none; }
/* The file pane's width is yours: drag its edge or Wider (2026-10-16). */
/* The email keeps room to read (Nicole, 2026-11-08: the file beside a
   wide email was layered over it): the file pane gives way first. */
.ib-layout.with-file { grid-template-columns: 200px minmax(240px, 300px) minmax(400px, 1fr) minmax(0, var(--ib-file-w, 460px)); }
.ib-file-panel { position: sticky; overflow-x: hidden; top: var(--s2); max-height: calc(calc(100 * var(--vh, 1vh)) - 120px); min-height: calc(calc(100 * var(--vh, 1vh)) - 120px); box-sizing: border-box; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.ib-file-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
@media (max-width: 1500px) { .ib-layout.with-file { grid-template-columns: 200px minmax(400px, 1fr) minmax(0, var(--ib-file-w, 420px)); } .ib-layout.with-file .ib-middle { grid-column: 1 / -1; order: 5; } }
@media (max-width: 1100px) { .ib-layout.with-file { grid-template-columns: 1fr; } .ib-file-panel { position: static; max-height: none; min-height: 0; } }

/* Suggested from this email (2026-10-13) */
.ib-suggest { display: grid; gap: 8px; margin-bottom: 8px; padding: 10px 12px; border-left: 4px solid #2e9e5b; }
.ib-sug { display: grid; gap: 3px; padding-top: 6px; border-top: 1px solid var(--line); }
.ib-sug:first-of-type { border-top: 0; padding-top: 0; }

/* Suggested from this email: the Inbox and the side panel (2026-10-13) */
.email-suggest { display: grid; gap: 8px; margin-bottom: 8px; padding: 10px 12px; border-left: 4px solid #2e9e5b; }
.email-sug { display: grid; gap: 3px; padding-top: 6px; border-top: 1px solid var(--line); }
.email-sug:first-of-type { border-top: 0; padding-top: 0; }

/* Your status (Today) and who's away (owner, Lead Assistant) */
.my-status { display: grid; gap: 8px; margin-bottom: var(--s2); }
.my-status-head { display: flex; align-items: center; gap: 8px; }
.chip.status-on { background: #e3f4ea; color: #1d5a37; }
.chip.status-away { background: #fdf0d5; color: #7a4b00; }
.away-bar { position: relative; z-index: 5; /* not stuck over the top bar (Nicole, 2026-11-24: "the off bar is blocking all the stuff up top") */ display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; padding: 8px 16px; background: #fdf0d5; color: #4a3200; font-size: 14px; }
.away-bar a { color: inherit; font-weight: 600; }
.slack-alerts { display: grid; gap: 6px; }
.slack-alert { display: grid; gap: 2px; padding: 6px 8px; border-radius: 8px; color: inherit; text-decoration: none; border: 1px solid var(--line); }
.slack-alert:hover { background: var(--line); }

/* Slack page: nothing in the side column pushes the page sideways (2026-10-13) */
.slack-page > * { min-width: 0; }
.slack-side, .slack-side * { overflow-wrap: anywhere; }
.slack-alert span { display: block; }
.slack-msg-text { overflow-wrap: anywhere; }

/* Slack page fits the window (2026-10-13): the lists and the conversation
   scroll on their own; the page never scrolls sideways. */
.slack-page { height: calc(calc(100 * var(--vh, 1vh)) - 235px); min-height: 420px; overflow: hidden; }
.slack-side { overflow-y: auto; min-height: 0; padding-right: 4px; }
.slack-list { max-height: none; overflow: visible; }
.slack-thread { min-height: 0; height: 100%; }
.slack-messages { max-height: none; min-height: 0; }
.slack-messages, .slack-messages * { overflow-wrap: anywhere; }
.slack-msg-text code { background: var(--surface-sunk, rgba(127,127,127,.12)); padding: 0 4px; border-radius: 4px; }
.main { overflow-x: clip; }
@media (max-width: 720px) { .slack-page { height: auto; overflow: visible; } }
body:has(.away-bar:not([hidden])) .slack-page, body:has(.failed-bar:not([hidden])) .slack-page, body:has(.compliance-bar:not([hidden])) .slack-page, body:has(.view-as-bar) .slack-page, body:has(.update-bar) .slack-page { height: calc(calc(100 * var(--vh, 1vh)) - 275px); }
/* A bar across the top (away, View As, update): the app frame shortens by
   its height so no page scrolls just because it's there (2026-10-13). */
body:has(.away-bar:not([hidden])) .app, body:has(.failed-bar:not([hidden])) .app, body:has(.compliance-bar:not([hidden])) .app, body:has(.view-as-bar) .app, body:has(.update-bar) .app { min-height: calc(calc(100 * var(--vh, 1vh)) - 36px); }
@media (min-width: 761px) { body:has(.away-bar:not([hidden])) #nav, body:has(.failed-bar:not([hidden])) #nav, body:has(.compliance-bar:not([hidden])) #nav, body:has(.view-as-bar) #nav, body:has(.update-bar) #nav { height: calc(calc(100 * var(--vh, 1vh)) - 36px); top: 36px; } }

/* Email notes (2026-10-14): the same box in the Inbox and the side panel */
.email-notes { display: grid; gap: 6px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-left: 4px solid #d4a017; border-radius: 10px; background: color-mix(in srgb, #d4a017 6%, transparent); }
.email-notes textarea { width: 100%; font: inherit; resize: vertical; }
.email-notes-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.note-chip { background: #fdf0d5; color: #7a4b00; }

/* The Compliance Processor's desk (2026-10-14): tabs, list beside the document. */
.cpx-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s1); margin-bottom: var(--s2); }
.cpx-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.cpx-tab:hover { border-color: var(--accent); }
.cpx-tab.on { border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.cpx-tab-label { font-size: var(--fs-small); color: var(--text-muted); font-weight: 600; }
.cpx-tab-count { font-size: 24px; font-weight: 700; color: var(--heading); line-height: 1.1; }
.cpx-tab.late { border-color: var(--red); background: var(--red-bg); }
.cpx-tab.late .cpx-tab-count, .cpx-tab-flag { color: var(--red); }
.cpx-tab-flag { font-size: 11px; font-weight: 700; }
.cpx-alert { display: flex; align-items: flex-start; gap: var(--s1); padding: 12px 14px; margin-bottom: var(--s2); border: 1px solid var(--red); border-radius: var(--radius); background: var(--red-bg); color: var(--red); }
.cpx-alert strong { color: var(--red); }
.cpx-layout { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: var(--s2); align-items: start; }
.cpx-list { display: flex; flex-direction: column; gap: var(--s1); position: sticky; top: var(--s1); max-height: calc(calc(100 * var(--vh, 1vh)) - 140px); overflow-y: auto; }
/* The groups keep their height in the scrolling list (Nicole, 2026-10-15:
   Ready to submit's documents were squeezed out of sight). */
.cpx-list > * { flex-shrink: 0; }
.cpx-band { display: flex; align-items: center; gap: 8px; padding: 4px 2px 0; font-size: var(--fs-small); font-weight: 600; }
.cpx-group { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.cpx-brokerage { padding: 8px 12px; background: var(--surface-sunk); font-size: var(--fs-small); font-weight: 600; color: var(--text-muted); }
summary.cpx-brokerage { cursor: pointer; }
.cpx-agent { padding: 6px 12px 0; }
.cpx-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 8px 12px 4px; }
.cpx-row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: var(--s1); padding: 8px 12px 8px 20px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.cpx-row:hover { background: var(--surface-sunk); }
.cpx-row.on { background: var(--info-bg); box-shadow: inset 3px 0 0 var(--accent); }
.cpx-row-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.cpx-age { flex: none; font-size: 12px; color: var(--text-muted); }
.cpx-age.late { color: var(--red); font-weight: 700; }
.cpx-pill { padding: 1px 8px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; }
.cpx-pill.alert { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber); }
.cpx-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: var(--s2); min-height: 240px; }
.cpx-empty { margin: var(--s2) 0; text-align: center; }
.cpx-panel-body { display: flex; flex-direction: column; gap: var(--s2); }
.cpx-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s1); flex-wrap: wrap; }
.cpx-title { margin: 0 0 2px; font-size: 20px; color: var(--heading); }
.hw-stage { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hw-stage-chip { font-size: 16px; font-weight: 700; padding: 6px 14px; }
.hw-ordered { font-size: 16px; padding: 10px 18px; }
.cpx-status.alert { padding: 12px 14px; border: 2px solid var(--amber); border-radius: var(--radius); background: var(--amber-bg); color: var(--text); display: flex; flex-direction: column; gap: 8px; }
.cpx-status-line { display: flex; align-items: center; gap: 8px; color: var(--amber); font-size: 16px; }
.cpx-status p { margin: 0; }
.cpx-note { padding: 8px 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.cpx-ack { display: flex; align-items: center; gap: 6px; font-weight: 700; cursor: pointer; }
.cpx-ack input { width: 18px; height: 18px; }
.cpx-section { display: flex; flex-direction: column; gap: 8px; padding-top: var(--s2); border-top: 1px solid var(--line); }
.cpx-section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; }
.cpx-files { display: flex; flex-wrap: wrap; gap: 8px; }
.cpx-file { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; max-width: 100%; }
.cpx-file span:first-of-type { overflow-wrap: anywhere; }
.cpx-file:hover { border-color: var(--accent); }
.cpx-file-dl { color: var(--link); font-size: 12px; font-weight: 600; }
.cpx-clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s1); }
.cpx-client { padding: 10px 12px; border-radius: var(--radius); background: var(--surface-sunk); display: flex; flex-direction: column; gap: 2px; }
.cpx-contact { overflow-wrap: anywhere; }
.cpx-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
.cpx-more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: auto; }
@media (max-width: 1100px) { .cpx-layout { grid-template-columns: minmax(0, 1fr); } .cpx-list { position: static; max-height: none; } .cpx-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cpx-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cpx-address { font-weight: 600; margin-bottom: 2px; overflow-wrap: anywhere; }
/* "We represent": the shared Buyer / Seller / Dual pill (tokens.css), readable in both themes (2026-10-15). */
/* Our clients in our side's color, as the contact cards everywhere
   (Nicole, 2026-11-08): the bar and a light wash of it. */
.cpx-client.rep-seller { --side: var(--rep-seller); }
.cpx-client.rep-buyer { --side: var(--rep-buyer); }
.cpx-client.rep-dual { --side: var(--rep-dual); }
.cpx-client.rep-seller, .cpx-client.rep-buyer, .cpx-client.rep-dual { box-shadow: inset 4px 0 0 var(--side); background: color-mix(in srgb, var(--side) 7%, transparent); }
/* The side column scrolls as a whole; Alerts and Team keep their full height
   (2026-10-14: they were squeezed to their headings, the team looked empty). */
.slack-side { display: flex; flex-direction: column; gap: var(--s1); }
.slack-side > * { flex: none; }

/* The Compliance Manager's desk (2026-10-14) */
.mgr-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mgr-days { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s1); }
.mgr-day { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.mgr-day:hover { border-color: var(--accent); }
.mgr-day.on { background: var(--accent); border-color: var(--accent); color: var(--onaccent, #fff); }
.mgr-day.warn:not(.on) { background: var(--amber-bg); border-color: var(--amber); }
.mgr-day-n { font-weight: 700; }
.mgr-day-today { font-size: 11px; opacity: .85; }
.mgr-toolbar { margin-bottom: var(--s1); max-width: 360px; }
.mgr-login { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius); background: var(--info-bg); color: var(--info); font-size: var(--fs-small); }
.mgr-doc { padding: 6px 0; border-bottom: 1px solid var(--line); }
.mgr-doc-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.mgr-doc-line .link { text-align: left; }
.mgr-done summary { cursor: pointer; color: var(--text-muted); padding: 6px 0; }
.mgr-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.mgr-choices .btn.on { background: var(--accent); border-color: var(--accent); color: var(--onaccent, #fff); }
.mgr-save { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 6px; }
@media (max-width: 1100px) { .mgr-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* An email's attachment onto the file (2026-10-15): the file small, then
   where it goes, big, in its own box. */
.sug-attach { gap: 6px; }
.sug-file { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sug-file-kind { flex: none; padding: 2px 6px; border-radius: 4px; background: var(--rep-buyer); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .03em; }
.sug-file-name { font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }
.sug-target { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--accent); background: var(--surface-sunk); }
.sug-to { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.sug-target-name { font-size: 15px; font-weight: 700; color: var(--heading); overflow-wrap: anywhere; }
.sug-has { flex-basis: 100%; }
.sug-target.pick { flex-direction: column; align-items: stretch; }
.email-suggest, .email-sug, .sug-target { min-width: 0; box-sizing: border-box; max-width: 100%; }
.email-sug select, .email-sug .status-after { max-width: 100%; }
.email-suggest, .email-sug { grid-template-columns: minmax(0, 1fr); }
.email-sug .upload-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; } .email-sug .upload-row select { flex: 1 1 160px; min-width: 0; width: 100%; }
/* The Tasks page: the file's timeline beside the task (2026-10-15) */
.task-timeline summary { cursor: pointer; }
.task-timeline .timeline { white-space: pre-wrap; margin: var(--s1) 0 0; font: inherit; font-size: var(--fs-small); max-height: 360px; overflow-y: auto; }
.task-file-head .file-status { margin-left: 6px; font-size: 11px; }

/* A calmer Inbox (2026-10-15): one toolbar, short recipients, file chips */
.ib-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ib-toolbar-actions { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; margin-left: auto; align-items: center; }
/* Done and ‹ n of N ›, spaced so nothing overlaps (2026-10-16). */
.ib-step { display: inline-flex; flex: none; align-items: center; gap: 8px; white-space: nowrap; }
.ib-step .ib-done { position: static; margin: 0; }
.ib-step .link { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px; border: 1px solid var(--line); border-radius: 8px; font-size: 18px; line-height: 1; text-decoration: none; }
.ib-step .link:disabled { opacity: .4; cursor: default; }
.ib-recipients .link.muted { color: var(--text-muted); text-decoration: none; padding: 0; }
.ib-recipients .link.muted:hover { text-decoration: underline; }
.ib-msg { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 10px 2px; }
.email-notes[hidden] { display: none; }

/* Today (2026-10-15): two weeks of closings with photos. */
.close-cal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.close-cal-day { border: 1px solid var(--line); border-radius: 8px; padding: 6px; min-height: 64px; display: grid; align-content: start; gap: 4px; }
.close-cal-day.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.close-cal-day.past { opacity: 0.55; }
.close-cal-date { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.close-cal-file { display: flex; gap: 6px; align-items: center; font-size: 12px; text-decoration: none; color: var(--text); background: var(--surface-sunk); border-radius: 6px; padding: 3px; }
.close-cal-file img, .close-cal-nophoto { width: 28px; height: 22px; border-radius: 3px; object-fit: cover; flex: none; background: var(--line); }
@media (max-width: 700px) { .close-cal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Home warranties: company links beside the stages (2026-10-15). */
.hw-layout { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .hw-layout { grid-template-columns: 220px minmax(0, 1fr); align-items: start; } }
.hw-links { display: grid; gap: 6px; }
.hw-link { justify-content: space-between; text-align: left; }
.hw-reps { margin-top: 6px; border-top: 1px solid var(--line, #e5e5e5); padding-top: 8px; display: grid; gap: 8px; }
.hw-reps summary { cursor: pointer; }
.hw-rep-company { display: grid; gap: 4px; margin-top: 6px; }
.hw-rep { padding-left: 8px; border-left: 2px solid var(--line, #e5e5e5); }
.hw-rep-line a { overflow-wrap: anywhere; }
.cpx-pill.wait { background: var(--amber-bg); color: var(--amber); }
.queue-facts { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.queue-dates { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mgr-doc-title { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.mgr-doc-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.mgr-status-group { display: grid; gap: 6px; margin-bottom: var(--s2); }
.mgr-status-head { display: flex; align-items: center; gap: 8px; }
.mgr-doc-fix { border-left: 3px solid var(--red); padding-left: 8px; }
.mgr-notes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 6px; }
@container (min-width: 520px) { .mgr-notes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 900px) { .mgr-notes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.mgr-note { display: grid; gap: 4px; min-width: 0; }
.mgr-note textarea { width: 100%; min-height: 72px; resize: vertical; }
.hw-mail { display: grid; gap: 8px; }
.hw-mail-thread { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 8px 12px; min-width: 0; }
.hw-mail-thread summary { cursor: pointer; overflow-wrap: anywhere; }
.hw-mail-body { display: grid; gap: 10px; margin-top: 8px; }
.hw-mail-msg { display: grid; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.hw-mail-msg .pre-wrap { max-height: 320px; overflow-y: auto; }
.hw-mail-files { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.hw-mail-see { border-left: 3px solid var(--accent, #2563eb); padding-left: 10px; }
.hw-side { display: grid; gap: var(--s2); align-content: start; min-width: 0; }
.hw-tools { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 8px 12px; }
.hw-tools summary { cursor: pointer; }
.hw-tools .hw-links { margin-top: 8px; }
.cpx-row-title .muted { display: block; font-weight: 400; }
.hw-emails { display: grid; gap: 8px; margin-top: 6px; }
.hw-email-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.hw-rep-pick { max-width: 100%; }
.hw-email:empty, .cpx-email:empty { display: none; }
.cpx-email { margin-top: var(--s2); border-top: 1px solid var(--line); padding-top: var(--s2); min-width: 0; }
.hw-groups { display: grid; gap: 8px; }
.hw-row { padding: 6px 0; border-bottom: 1px solid var(--line); }
.hw-row-main { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.slack-files { display: flex; flex-wrap: wrap; gap: 6px; }
.slack-file { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; overflow-wrap: anywhere; }

/* ---- The Agent Portal (2026-10-15) ---- */
.portal-app { min-height: calc(100 * var(--vh, 1vh)); background: var(--bg); }
.portal-top { display: flex; align-items: center; gap: 12px; padding: 12px 20px; }
.portal-top .signout { margin-left: auto; }
.portal-brand { color: var(--text); text-decoration: none; font-size: 16px; }
.portal-page { width: 100%; margin: 0; padding: 16px; display: grid; gap: 16px; box-sizing: border-box; }
.panel.portal-card { display: flex; flex-direction: row; flex-wrap: wrap; gap: 20px; align-items: center; }
.panel.portal-section { display: block; }
.panel.portal-teams { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
/* 2026-10-16: Onboarding's on/off switch (MLS Access). */
.ap-toggle { display: inline-flex; align-items: center; gap: var(--s1, 8px); cursor: pointer; }
.ap-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ap-toggle-track { position: relative; width: 36px; height: 20px; border-radius: 10px; background: var(--border, #c9ced6); transition: background .15s; flex: none; }
.ap-toggle-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.ap-toggle input:checked + .ap-toggle-track { background: var(--green, #2e7d32); }
.ap-toggle input:checked + .ap-toggle-track::after { transform: translateX(16px); }
.ap-toggle input:focus-visible + .ap-toggle-track { outline: 2px solid var(--focus, #1a73e8); outline-offset: 2px; }

/* 2026-10-15: the TC's profile, the calendar's details, the department toggle, the file's sections as Carbon's. */
.portal-tc-open { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.portal-tc-open:hover .link, .portal-tc-open:focus-visible .link { text-decoration: underline; }
.portal-tc-thumb { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.portal-dialog { width: min(640px, calc(calc(100 * var(--vw, 1vw)) - 32px)); max-height: calc(calc(100 * var(--vh, 1vh)) - 48px); box-sizing: border-box; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.portal-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.portal-dialog-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.portal-dialog-head .portal-photo { width: 96px; height: 96px; }
.portal-dialog-x { position: absolute; top: 12px; right: 12px; }
.portal-dialog-head .portal-who { padding-right: 40px; }
.portal-bio { margin: 16px 0; line-height: 1.5; }
.portal-form { display: grid; gap: 10px; margin: 16px 0; }
.portal-form-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.portal-field { display: grid; gap: 4px; min-width: 0; }
.portal-field input, .portal-field textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.portal-field textarea { resize: vertical; }
.portal-dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.portal-facts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: 12px; }
.portal-viewing { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.portal-h-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 12px; }
.portal-h-row .portal-h { margin: 0; }
.portal-member { color: var(--text); text-decoration: none; }
.portal-member:hover, .portal-member:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.portal-cal-box { position: relative; }
button.portal-cal-ev { width: 100%; border: 0; font: inherit; font-size: 11px; text-align: left; cursor: pointer; }
.portal-cal-pop { position: fixed; z-index: 50; display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow); box-sizing: border-box; overflow-wrap: anywhere; }
.portal-cal-pop[hidden] { display: none; }
.portal-cal-pop-when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--text-muted); }
.portal-cal-pop-details { padding-top: 4px; border-top: 1px solid var(--line); }
.portal-tl-groups { display: grid; gap: 10px; }
.portal-tl .tl-list { margin: 0; padding: 0; list-style: none; }
.portal-contacts { padding: 0; }
@media (max-width: 600px) { .portal-contacts { grid-template-columns: minmax(0, 1fr); } }
.portal-doc-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.portal-doc-toolbar .doc-search { flex: 1 1 200px; max-width: 320px; }
.doc-groups { display: grid; gap: 10px; }
/* One line a document (2026-12-03: "condense these lines"). */
.list .item.portal-doc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 12px; min-height: 0; }
.portal-doc-main { flex: 1 1 140px; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.list .item.portal-doc .title { white-space: normal; overflow: visible; }
.list .item.portal-doc .meta { white-space: nowrap; color: var(--text-muted); font-size: 12px; }
.list .item.portal-doc > .chip { max-width: none; }
.list .item.portal-doc .portal-doc-upload { margin-left: 0; }
.list .item.portal-doc .portal-doc-notes { flex-basis: 100%; }
.portal-doc-files { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.portal-doc-files .file-previews.tiny { display: inline-flex; gap: 4px; }
.portal-doc-files .file-previews.tiny .file-preview { width: 28px; }
.portal-doc-files .file-previews.tiny .file-preview img { max-height: 36px; box-shadow: none; }
/* The file page's documents card folds (2026-12-03). */
details.panel.portal-glance-docs { display: block; }
details.portal-glance-docs > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
details.portal-glance-docs > summary::-webkit-details-marker { display: none; }
details.portal-glance-docs > summary::before { content: '▸'; color: var(--text-muted); }
details.portal-glance-docs[open] > summary::before { content: '▾'; }
details.portal-glance-docs[open] > summary { margin-bottom: 8px; }
/* What's on the file in Draft A Document (2026-12-03). */
.portal-draft-onfile { display: grid; gap: 4px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-sunk); margin-bottom: 8px; }
.portal-draft-onfile .label { font-weight: 600; font-size: 12px; }
.portal-draft-onfile p { margin: 0; }
.portal-draft-onfile-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; font-size: 13px; }
.portal-doc-notes { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.portal-note.ccme { border-left-color: var(--accent); }
/* Ask CeCe in the portal (2026-10-15). */
.portal-cece { display: grid; gap: 10px; }
.portal-cece-name { flex: none; align-self: center; color: var(--heading); }
/* The condensed top (2026-10-15). */
.panel.portal-head { display: grid; gap: 12px; }
.portal-head-top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.portal-head .portal-photo { width: 88px; height: 88px; border-radius: 12px; }
.portal-head .portal-name { font-size: 20px; }
.portal-head .portal-who { flex: 1 1 260px; gap: 4px; }
.portal-head .portal-tc { padding: 6px 10px; max-width: 340px; }
.portal-counts { display: grid; grid-template-columns: repeat(4, minmax(96px, 1fr)); gap: 8px; flex: 2 1 420px; }
.portal-count { display: grid; gap: 2px; padding: 8px 10px; border-radius: var(--radius); background: var(--surface-sunk); }
.portal-count .kpi-value { font-size: 22px; line-height: 1.1; }
/* A count that opens its files and stats (2026-10-28). */
.portal-count-open { border: 1px solid transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.portal-count-open:hover, .portal-count-open:focus-visible { border-color: var(--accent); outline: none; box-shadow: var(--shadow); }
.portal-count-go { color: var(--link); display: inline-flex; align-items: center; gap: 2px; }
@media (max-width: 600px) { .portal-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.portal-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.portal-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.portal-filters input, .portal-filters select { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); min-width: 0; }
.portal-filters input { flex: 1 1 220px; max-width: 360px; }
/* The home: what would you like to do today? (2026-10-15) */
.portal-home { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .portal-home { grid-template-columns: minmax(0, 1fr) 380px; } .portal-home-cece { position: sticky; top: 72px; } }
.portal-home-cece .portal-cece { margin: 0; }
.portal-home-cece .portal-cece-ask { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.portal-home-cece .portal-cece-name { grid-column: 1 / -1; }
.portal-home-cece .portal-cece-ask textarea { min-height: 64px; }
.portal-home-cece .portal-cece-thread { max-height: calc(60 * var(--vh, 1vh)); }
.portal-hello { margin: 0; font-size: 22px; }
.portal-highlight { margin: 4px 0 0; padding: 8px 12px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); font-weight: 600; }
.panel.portal-greeting { display: grid; gap: 8px; }
/* The welcome on top (2026-11-03). */
.panel.portal-welcome { display: grid; gap: 8px; margin-bottom: var(--s2); }
.panel.portal-welcome .portal-highlight { margin: 0; }
.portal-tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 6px; }
.portal-tile { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); text-decoration: none; text-align: left; font: inherit; cursor: pointer; min-width: 0; }
.portal-tile:hover, .portal-tile:focus-visible { border-color: var(--accent); outline: none; box-shadow: var(--shadow); }
.portal-tile.primary { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border-color: var(--accent); }
.portal-tile-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--surface-sunk); color: var(--accent); }
.portal-tile-text { display: grid; gap: 2px; min-width: 0; }
.portal-tile-text > * { overflow-wrap: anywhere; }
.portal-board { display: grid; gap: 10px; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; }
.portal-board-col { display: grid; gap: 8px; align-content: start; padding: 8px; border-radius: var(--radius); background: var(--surface-sunk); }
.portal-board-card { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.portal-board-card:hover { border-color: var(--accent); }
.portal-theme { margin-left: auto; }
.portal-theme + .signout { margin-left: 8px; }
.portal-drawer.wide { width: min(1100px, calc(100 * var(--vw, 1vw))); }
/* My stats by any range (2026-10-15). */
.portal-stats-controls { display: grid; gap: 8px; margin-bottom: 14px; }
.portal-stats-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.portal-stats-row > .label { min-width: 90px; }
.portal-stat-pick { flex-wrap: wrap; }
.portal-range { display: inline-flex; align-items: center; gap: 6px; }
.portal-range input { font: inherit; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.portal-stat-big { display: grid; gap: 2px; margin-bottom: 12px; }
.portal-stat-big .kpi-value { font-size: 32px; }
.portal-month-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(28px, 1fr); gap: 6px; align-items: end; height: 180px; overflow-x: auto; padding-top: 8px; }
.portal-month-bar { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; gap: 2px; }
.portal-month-bar .bar-fill { width: 100%; border-radius: 4px 4px 0 0; background: var(--accent); min-height: 2px; }
/* A side panel (2026-10-15). */
.portal-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(560px, calc(100 * var(--vw, 1vw))); height: calc(100 * var(--vh, 1vh)); max-height: calc(100 * var(--vh, 1vh)); box-sizing: border-box; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: -8px 0 28px rgba(0, 0, 0, .25); }
.portal-drawer::backdrop { background: rgba(0, 0, 0, .35); }
.portal-drawer-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--surface); border-bottom: 1px solid var(--line); z-index: 1; }
.portal-drawer-head .portal-name { font-size: 20px; }
.portal-drawer-body { display: grid; gap: 14px; padding: 16px 20px 32px; }
/* A person's profile beside the page (2026-10-19). */
.portal-drawer.contact-drawer { width: min(780px, calc(100 * var(--vw, 1vw))); }
.portal-drawer-file { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-sunk); }
.portal-care .tl-list { margin: 0; padding: 0; list-style: none; }
/* My clients (2026-10-15). */
.portal-clients .tr { grid-template-columns: minmax(0, 1.4fr) 130px minmax(0, 1.2fr) 110px minmax(0, 1.4fr); width: 100%; text-align: left; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; align-items: center; }
.portal-clients button.tr:hover { background: var(--surface-sunk); }
.portal-care-table .tr { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) 110px minmax(0, 1.2fr) 70px; align-items: center; }
/* A row per enrolled client opens them, like Clients (2026-11-13). */
.portal-care-table button.tr { width: 100%; text-align: left; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.portal-care-table button.tr:hover { background: var(--surface-sunk); }
@media (max-width: 760px) { .portal-clients .tr, .portal-care-table .tr { grid-template-columns: minmax(0, 1fr) auto; } .portal-clients .tr > :nth-child(n+3), .portal-care-table .tr > :nth-child(n+3):not(:nth-child(4)) { display: none; } }
.portal-care-sum { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.portal-care-counts { margin-bottom: 12px; }
/* The Client Care emails as the client gets them (2026-11-13): a white
   page like the inbox shows it, the brokerage color on the bars and borders. */
.care-mail-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-top: 8px; }
.care-mail-item > summary { cursor: pointer; padding: 10px 12px; }
.care-mail-item > .care-mail-wrap { padding: 0 12px 12px; }
.care-mail-wrap { display: grid; gap: 8px; }
.care-mail-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.care-mail { display: grid; gap: 8px; }
.care-mail-head { display: grid; gap: 2px; overflow-wrap: anywhere; }
.care-mail-paper { max-width: 700px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: #1a1a1a; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.6; }
.care-mail-paper p { margin: 12px 0 0; }
.care-mail-bars { display: grid; gap: 3px; }
.care-mail-bars span { display: block; height: 4px; border-radius: 3px; }
.care-mail-bars span:nth-child(1) { width: 100%; background: #000; }
.care-mail-bars span:nth-child(2) { width: 95%; background: var(--care-color, #1f2a44); }
.care-mail-bars span:nth-child(3) { width: 90%; background: #d1d5db; }
.care-mail-box { margin: 20px 0 0; padding: 14px 16px; border: 2px solid var(--care-color, #1f2a44); border-radius: 4px; background: #fbfbfb; }
.care-mail-list { margin: 0; padding-left: 18px; }
.care-mail-list li { margin: 0 0 6px; }
.care-mail-list li:last-child { margin-bottom: 0; }
.care-mail-section { margin: 20px 0 0; }
.care-mail-h { margin-bottom: 6px; padding-left: 10px; border-left: 4px solid var(--care-color, #1f2a44); font-weight: 700; }
.care-mail-sig { display: block; width: 100%; max-width: 700px; height: auto; margin-top: 16px; }
.care-mail-sig-none { margin-top: 16px; padding: 18px; border: 1px dashed #c9c9c9; border-radius: 4px; text-align: center; color: #888; }
.care-mail-foot { margin-top: 14px; font-size: 11px; line-height: 1.6; color: #888; }
.block { display: block; }
/* Place a new order (2026-10-15). */
.portal-order { display: grid; gap: 16px; }
/* The order's submit sits at the end, not floating over the last questions (2026-10-15: the lead source was hidden under it). */
.portal-order .portal-profile-save { position: static; box-shadow: none; }
.portal-req { color: var(--red); }
.portal-people { display: grid; gap: 8px; }
/* Contacts colored and tagged as everywhere in Carbon (2026-10-15). */
.portal-profile-grid > .portal-field[class*="role-"] { border-left: 4px solid var(--role); }
.portal-profile-grid > .portal-field[class*="role-"] > .label { color: var(--role); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.portal-person-pick { display: grid; gap: 6px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.portal-person-pick select { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); max-width: 420px; }
.portal-person-row.picked { padding: 8px 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.portal-person-row { display: grid; gap: 8px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; }
@media (max-width: 700px) { .portal-person-row { grid-template-columns: minmax(0, 1fr); } }
/* My profile (2026-10-15). */
.portal-profile-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 8px; }
.portal-profile-grid .portal-field.wide { grid-column: 1 / -1; }
.portal-field select { width: 100%; min-width: 0; box-sizing: border-box; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.portal-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.portal-check { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); cursor: pointer; font-size: 13px; }
.portal-check:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); font-weight: 600; }
.portal-field .portal-check input { width: auto; margin: 0; padding: 0; accent-color: var(--accent); }
/* Each question in its own box (2026-10-15: "line or color break these"). */
.portal-profile-grid { align-items: start; }
.portal-profile-grid > .portal-field { padding: 10px 12px; border-radius: var(--radius); background: var(--surface-sunk); border-left: 3px solid var(--line); }
.portal-profile-grid > .portal-field > .label { color: var(--heading); }
.portal-profile-grid + .portal-profile-grid { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.portal-seg-inner { display: flex; flex-wrap: wrap; gap: 6px; }
.portal-headshot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.portal-headshot .portal-photo { width: 88px; height: 88px; border-radius: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.portal-list { margin: 4px 0 0; padding-left: 18px; }
.portal-signature { max-width: 100%; max-height: 160px; object-fit: contain; border-radius: 6px; background: #fff; }
.portal-profile-save { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.portal-inspectors { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.portal-cece-thread { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; }
.portal-cece-thread:empty { display: none; }
.portal-cece-q { justify-self: end; max-width: 85%; padding: 8px 12px; border-radius: 12px; background: var(--surface-sunk); overflow-wrap: anywhere; }
.portal-cece-a { max-width: 92%; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); overflow-wrap: anywhere; display: grid; gap: 8px; }
.portal-cece-draft { display: grid; gap: 4px; padding: 10px; border-radius: var(--radius); background: var(--surface-sunk); }
.portal-cece-draft .btn { justify-self: start; margin-top: 4px; }
.portal-cece-ask { display: flex; gap: 8px; align-items: flex-end; }
.portal-cece-ask textarea { flex: 1; min-width: 0; box-sizing: border-box; font: inherit; resize: vertical; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.portal-picker { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.portal-pick { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); text-decoration: none; justify-items: start; }
.portal-pick:hover, .portal-pick:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.portal-photo { width: 120px; height: 120px; border-radius: 16px; object-fit: cover; flex: none; background: var(--surface-sunk); }
.portal-photo.portal-logo { object-fit: contain; padding: 8px; box-sizing: border-box; background: #fff; }
.portal-photo.empty { display: grid; place-items: center; color: var(--text-muted); }
.portal-who { display: grid; gap: 6px; min-width: 0; flex: 1 1 260px; }
.portal-name { margin: 0; font-size: 24px; overflow-wrap: anywhere; }
.portal-tc { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-width: 360px; }
.portal-who > .btn { justify-self: start; }
.portal-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.portal-h { margin: 0 0 12px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.portal-sub { margin: 16px 0 8px; font-size: 15px; }
.portal-files { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.portal-file { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); color: var(--text); text-decoration: none; }
.portal-file:hover, .portal-file:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.portal-file-photo { width: 100%; height: 130px; object-fit: cover; background: var(--surface-sunk); }
.portal-file-photo.empty { display: grid; place-items: center; color: var(--text-muted); }
.portal-file-body { display: grid; gap: 4px; padding: 10px 12px; min-width: 0; overflow-wrap: anywhere; }
.portal-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.portal-cal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.portal-cal-key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-left: auto; }
.portal-cal-key > span { display: inline-flex; align-items: center; gap: 4px; }
.cal-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.portal-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.portal-cal-dow { text-align: center; padding: 2px 0; }
.portal-cal-day { min-height: 84px; border: 1px solid var(--line); border-radius: 6px; padding: 4px; display: grid; align-content: start; gap: 2px; background: var(--surface); min-width: 0; }
.portal-cal-day.other { opacity: .5; }
.portal-cal-day.today { outline: 2px solid var(--accent); outline-offset: -2px; }
.portal-cal-num { color: var(--text-muted); }
.portal-cal-ev { display: block; font-size: 11px; line-height: 1.3; padding: 2px 4px; border-radius: 4px; text-decoration: none; color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-cal-ev.done, .cal-dot.done { background: var(--green-bg); color: var(--green); }
.portal-cal-ev.appt, .cal-dot.appt { background: var(--chip-mauve-bg); color: var(--chip-mauve-fg); }
.portal-cal-ev.soon, .cal-dot.soon { background: var(--amber-bg); color: var(--amber); }
.portal-cal-ev.upcoming, .cal-dot.upcoming { background: var(--info-bg); color: var(--info); }
.portal-cal-ev.past, .cal-dot.past { background: var(--red-bg); color: var(--red); }
.cal-dot.done { background: var(--green); } .cal-dot.appt { background: var(--chip-mauve-fg); } .cal-dot.soon { background: #F5C400; } .cal-dot.upcoming { background: var(--info); } .cal-dot.past { background: var(--red); }
/* The calendar on a phone (2026-11-03): small days with a dot per deadline,
   and the month as a list under them; no labels squeezed into the days. */
.portal-cal-dots, .portal-cal-list { display: none; }
@media (max-width: 700px) {
  .portal-cal { gap: 2px; }
  .portal-cal-day { min-height: 40px; padding: 3px; }
  .portal-cal-ev { display: none; }
  .portal-cal-dots { display: flex; flex-wrap: wrap; gap: 2px; }
  .portal-cal-dots .cal-dot { width: 7px; height: 7px; }
  .portal-cal-list { display: grid; gap: 6px; margin-top: 12px; }
  .portal-cal-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
  .portal-cal-row.today { border-color: var(--accent); }
  .portal-cal-row-day { display: grid; align-content: start; font-size: var(--fs-small); }
  .portal-cal-row-what { min-width: 0; overflow-wrap: anywhere; }
  .portal-cal-key { margin-left: 0; width: 100%; }
  /* Carbon for Chrome is for a computer: not offered on a phone. */
  body .portal-chrome-banner, body .portal-tile-chrome { display: none; }
}
.portal-team { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.portal-person { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; overflow-wrap: anywhere; }
.portal-vendors { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 12px; }
.portal-vendors ul { margin: 4px 0 0; padding-left: 18px; }
.portal-vacation { display: grid; gap: 4px; margin-top: 12px; padding: 12px; border-radius: var(--radius); background: var(--surface-sunk); }
.portal-vacation .btn { justify-self: start; }
.portal-kv { max-width: 720px; }
.portal-history .tr { grid-template-columns: minmax(0, 2fr) 140px 90px 130px; }
@media (max-width: 700px) { .portal-history .tr { grid-template-columns: minmax(0, 1fr) auto; } .portal-history .tr > :nth-child(n+3) { display: none; } }
.portal-search { margin: 4px 0 8px; display: block; max-width: 320px; }
.portal-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.portal-stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.portal-stat { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.portal-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.portal-outstanding { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.portal-doc-group { margin-top: 8px; }
.portal-doc { display: grid; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); min-width: 0; }
.portal-doc-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.portal-note { padding: 6px 10px; border-left: 3px solid var(--line); background: var(--surface-sunk); border-radius: 4px; }

/* The portal's reporting (2026-10-15). */
.portal-chart-box { display: grid; gap: 4px; }
.portal-chart { width: 100%; height: auto; max-height: 240px; }
.portal-chart .grid { stroke: var(--line); stroke-width: 1; }
.portal-chart .tick { fill: var(--text-muted); font-size: 11px; }
.portal-chart .cbar.y0 { fill: var(--line); }
.portal-chart .cbar.y1 { fill: var(--info); opacity: .6; }
.portal-chart .cbar.y2 { fill: var(--accent); }
.swatch-y { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.swatch-y.y0 { background: var(--line); } .swatch-y.y1 { background: var(--info); opacity: .6; } .swatch-y.y2 { background: var(--accent); }
.portal-legend { display: flex; flex-wrap: wrap; gap: 12px; }
.portal-legend > span { display: inline-flex; align-items: center; gap: 4px; }
.portal-compares { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 8px 0 12px; }
.portal-compare { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.portal-breaks { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.portal-break { display: grid; gap: 4px; min-width: 0; }
.portal-break-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.portal-break-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-break-bar { height: 8px; background: var(--surface-sunk); border-radius: 4px; overflow: hidden; }
.portal-break-bar > span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

/* Escrow search: the line between the open matches and the closed ones. */
.all-files .tr.match-divider { display: block; padding: 6px 16px; background: var(--surface-sunk); border-top: 2px solid var(--border-strong, var(--border)); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }

/* Inbox composer attachments (2026-10-16). */
.ib-attach-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.ib-attached { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.ib-doc-pick .email-file-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* The File Cabinet beside an email (2026-10-16). */
.ib-cabinet { margin-top: 12px; }
.ib-cabinet > summary { cursor: pointer; }
.ib-cabinet .cabinet-list { max-height: 280px; overflow-y: auto; margin: 8px 0; }

/* The Inbox composer's formatted message box (2026-10-16). */
.ib-rich { min-height: 200px; max-height: 480px; overflow-y: auto; padding: 10px 12px; border: 1px solid var(--line, #ccc); border-radius: 8px; background: var(--surface, #fff); color: var(--text, inherit); font: inherit; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.ib-rich:focus { outline: 2px solid var(--focus, #4a5bd4); outline-offset: 1px; }
.ib-rich:empty::before { content: attr(data-placeholder); color: var(--text-muted, #888); opacity: .55; font-style: italic; }
.ib-rich img { max-width: 100%; height: auto; }

/* Inbox: a name or internal label (Alex, Kelly ...), CcMe navy (2026-10-16). */
.chip.lbl-navy { background: #0E374A; color: #FFFFFF; border: 1px solid rgba(255, 255, 255, .28); }
/* Both sides of one property (Gmail's label color too). */
.chip.lbl-both { background: #41236d; color: #FFFFFF; border: 1px solid rgba(255, 255, 255, .28); }

/* Inbox: find the file when Carbon didn't match one (2026-10-16). */
.ib-finder { display: grid; gap: 8px; padding: 12px; }
.ib-finder input[type=search] { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--surface); color: inherit; }
.ib-finder-results { display: grid; gap: 4px; }
.ib-finder-row { display: grid; gap: 4px; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
.ib-finder-row:hover { border-color: var(--accent, #F26B4E); }
.ib-finder-meta { display: flex; flex-wrap: wrap; gap: 4px; }

/* The team's calendar (2026-10-16): holidays, birthdays, days off. */
.cal-kind.k-holiday.on, .cal-pill.k-holiday, .cal-event.k-holiday .cal-dot { background: #6B7280; color: #fff; }
.cal-kind.k-birthday.on, .cal-pill.k-birthday, .cal-event.k-birthday .cal-dot { background: #D9468F; color: #fff; }
.cal-kind.k-dayoff.on, .cal-pill.k-dayoff, .cal-event.k-dayoff .cal-dot { background: #0E7C86; color: #fff; }
.cal-event.team { cursor: default; }

/* The Compliance Manager's task, as her Airtable interface (2026-10-16). */
.mtask-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.mtask-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.mtask-done { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mtask-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.mtask-docrow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 12px; }
@media (max-width: 900px) { .mtask-docrow { grid-template-columns: 1fr; } }
.mtask-sub { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.mtask-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; }
.mtask-fact { display: grid; gap: 2px; }
.mtask-doc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.mtask-doc-actions { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mtask-broker-note { grid-column: 1 / -1; }
.mtask-doc .row-files, .mtask-doc .row-result { grid-column: 1 / -1; }
.mtask-phase { padding: 4px 0 0; }
.mtask-tips { margin: 4px 0 0; padding-left: 18px; }

/* Agent Portal: the Team Portal set apart, and the free tools (2026-10-16). */
.portal-team-links { display: grid; gap: 8px; margin: 8px 0 12px; }
.portal-team-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-lg); background: #0E374A; color: #FFFFFF; text-decoration: none; border: 1px solid rgba(255, 255, 255, .25); border-left: 6px solid #F26B4E; box-shadow: 0 2px 6px rgba(14, 55, 74, .25); }
.portal-team-link .portal-tile-icon { color: #FFFFFF; }
.portal-team-link .portal-tile-text { flex: 1; display: grid; gap: 2px; }
.portal-team-link .small { opacity: .85; }
.portal-team-link:hover { filter: brightness(1.12); }
/* Install Carbon for Chrome (2026-11-03): a banner with a look at it. */
.portal-chrome-banner { margin-bottom: 12px; display: grid; }
.portal-chrome-banner-open { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--coral) 13%, var(--surface)); color: var(--text); border: 1px solid color-mix(in srgb, var(--coral) 40%, transparent); border-left: 6px solid var(--coral); text-align: left; cursor: pointer; font: inherit; }
.portal-chrome-banner-open:hover { filter: brightness(1.03); }
.portal-chrome-banner-open .portal-tile-text { flex: 1; display: grid; gap: 2px; }
.portal-chrome-banner-open .portal-team-title { color: var(--coral); }
.portal-chrome-banner-shot { width: 150px; height: 94px; object-fit: cover; object-position: right top; border-radius: 8px; box-shadow: 0 2px 8px rgba(14, 55, 74, .18); flex: none; }
.portal-chrome-banner-hide { justify-self: end; margin-top: 4px; }
@media (max-width: 640px) { .portal-chrome-banner-shot { display: none; } }
.portal-chrome-shots { display: grid; gap: 14px; margin: 12px 0 16px; }
.portal-chrome-shots figure { margin: 0; display: grid; gap: 6px; }
.portal-chrome-shots img { width: 100%; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(14, 55, 74, .12); display: block; }
.portal-free-tools { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
.portal-subhead { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 0 0 6px; }
.portal-team-logo { width: 52px; height: 52px; border-radius: 10px; object-fit: contain; background: #FFFFFF; padding: 4px; flex: none; }
.portal-team-logo.empty { display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #FFFFFF; }
.portal-team-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: #F9B4A3; }
.portal-team-go { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; white-space: nowrap; }

/* The header search's matches, dropped under it (2026-10-16). */
.search-drop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; max-height: min(calc(70 * var(--vh, 1vh)), 520px); overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 10px 28px rgba(0, 0, 0, .22); display: grid; gap: 2px; }
.search-drop[hidden] { display: none; }
.search-row { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; color: var(--text); }
.search-row:hover, .search-row.active { background: var(--surface-sunk); }
.search-row-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.search-none { padding: 8px 10px; margin: 0; }
.search-all { justify-self: start; padding: 6px 10px; }

/* Drag the file pane's left edge to make it wider or narrower (2026-10-16). */
.ib-file-grip { position: absolute; top: 0; left: 0; height: 100%; width: 12px; cursor: col-resize; z-index: 5; }
/* The whole edge lights up to show it drags (2026-11-04). */
.ib-file-grip::before { content: ''; position: absolute; top: 8px; bottom: 8px; left: 0; width: 3px; border-radius: 2px; background: transparent; transition: background .15s; }
.ib-file-grip:hover::before, .ib-file-grip.dragging::before { background: var(--accent); }
.ib-file-grip::after { content: ''; position: absolute; top: 50%; left: 4px; width: 3px; height: 44px; transform: translateY(-50%); border-radius: 2px; background: var(--line); }
.ib-file-grip:hover::after, .ib-file-grip.dragging::after { background: var(--accent); }
@media (max-width: 1100px) { .ib-file-grip { display: none; } }

/* Intake sections fold (2026-10-16): the title is the toggle. */
.isec > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.isec > summary::-webkit-details-marker { display: none; }
.isec > summary h3 { margin: 0; }
.isec[hidden] { display: none; }
.isec-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }

/* The File Cabinet: write, tick files, post; the channel below (2026-10-16). */
.ib-cabinet .cabinet-compose { display: grid; gap: 8px; margin: 8px 0 12px; }
.ib-cabinet .cabinet-text { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; }
.ib-cabinet .cabinet-files { display: grid; gap: 4px; }
.ib-cabinet .cabinet-file { display: flex; gap: 6px; align-items: center; font-size: var(--fs-small, 13px); }
.ib-cabinet .cabinet-local { display: flex; flex-wrap: wrap; gap: 4px; }
.ib-cabinet .cabinet-list { max-height: 480px; overflow-y: auto; border-top: 1px solid var(--line); padding-top: 8px; }

/* An email file's preview, under its files (2026-10-16). */
.ib-preview { margin: 8px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.ib-preview-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.ib-preview-head strong { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The PDF viewer at full size inside the 80% page (2026-10-20: a 13-page
   PDF stopped at page 10; Chrome's viewer works out its scrolling wrong when
   the page around it is zoomed): the frame undoes the page's zoom. */
.ib-preview-frame { display: block; zoom: calc(1 / var(--page-zoom, 1)); width: 100%; height: 75vh; border: 0; background: #fff; }
.ib-preview-img { display: block; max-width: 100%; margin: 0 auto; }

/* A label chip's name opens its box (2026-10-19). */
.ib-label-open { all: unset; cursor: pointer; }
.ib-label-open:hover { text-decoration: underline; }
.ib-label-open:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; border-radius: 3px; }

/* A long pick (Additional Contingency name) reads in full: two columns, and
   the chosen text shows on hover (2026-10-19). */
.iline-items .long-pick select, .iline-items .long-pick .ss-button { width: 100%; }
/* Special Circumstances: each box beside its words, left aligned (2026-10-19). */
.multi-drop-item { justify-content: flex-start; text-align: left; align-items: flex-start; }
.multi-drop-item input { flex: none; margin-top: 3px; width: auto; }
.multi-drop { display: block; }
.multi-drop > summary { display: block; }

/* Onboarding: files, copy, duplicates (2026-10-19). */
.ap-files { display: grid; gap: 6px; margin-bottom: 6px; }
.ap-file { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.ap-file-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.ap-copy { display: grid; gap: 4px; }
.ap-copy-text { margin: 0; white-space: pre-wrap; font: inherit; font-size: 13px; background: var(--surface-sunk); padding: 8px; border-radius: 6px; }
.ap-dupes { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ap-dupe { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.ap-dupe-finder input[type="search"] { width: 100%; }

/* The team calendar: anniversaries, requested time off, the request form (2026-10-19). */
.cal-pill.k-anniversary, .cal-event.k-anniversary .cal-dot, .cal-kind.k-anniversary.on { background: var(--chip-green-bg, #E3F4E8); color: var(--chip-green-fg, #1E6B34); }
.cal-pill.k-request, .cal-event.k-request .cal-dot, .cal-kind.k-request.on { background: var(--amber-bg, #FFF1D6); color: var(--amber, #8A5A00); border: 1px dashed currentColor; }
.cal-side { display: grid; gap: 16px; align-content: start; }
.cal-request-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cal-request-note { grid-column: 1 / -1; }
.cal-requests { margin-bottom: 16px; }
.cal-request-item { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.cal-request-actions { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; }

/* Time off answers (2026-10-19). */
.chip.time-off-requested { background: var(--amber-bg, #FFF1D6); color: var(--amber, #8A5A00); }
.chip.time-off-approved { background: var(--chip-green-bg, #E3F4E8); color: var(--chip-green-fg, #1E6B34); }
.chip.time-off-declined { background: var(--surface-sunk); color: var(--text-muted); }
.cal-mine .cal-request-item .chip { margin-left: auto; }
.time-off-toast { display: grid; gap: 4px; }
.time-off-toast a, .time-off-toast button { justify-self: start; }

/* Office Closed, apart from holidays the office is open for (2026-10-19). */
.cal-pill.k-closed, .cal-event.k-closed .cal-dot, .cal-kind.k-closed.on { background: var(--red-bg); color: var(--red); }

/* Part of a day off (2026-10-19). */
.cal-request-part { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; }
.cal-request-times { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cal-request-times[hidden], .cal-request-row [hidden] { display: none; }

/* Billing (2026-10-19). */
.bill-tabs { display: flex; flex-wrap: wrap; gap: 0 4px; border-bottom: 1px solid var(--line); margin: var(--s2) 0 var(--s1); }
.bill-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: var(--s1) var(--s1); background: none; border: 0; border-bottom: 3px solid transparent; color: var(--text-muted); font: 600 14px var(--font-ui); cursor: pointer; }
.bill-tabs button[aria-selected="true"] { color: var(--heading); font-weight: 700; border-bottom-color: var(--accent); }
.bill-count { padding: 0 7px; border-radius: var(--radius-pill); background: var(--surface-sunk); font-size: 12px; }
.bill-filters, .bill-range { flex-wrap: wrap; }
.bill-range input[type="date"] { margin-left: 4px; }
.bill-sum td { font-weight: 700; background: var(--surface-sunk); }
.bill-chart { width: 100%; height: auto; max-height: 280px; display: block; }
.bill-grid { stroke: var(--line); stroke-width: 1; }
.bill-axis { fill: var(--text-muted); font-size: 11px; }
.bill-line { fill: none; stroke-width: 2.5; }
.bill-legend { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 6px 0 var(--s1); }
.bill-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }
.bill-c0 { stroke: var(--accent); background: var(--accent); }
.bill-c1 { stroke: var(--green); background: var(--green); }
.bill-c2 { stroke: var(--amber); background: var(--amber); }
.bill-c3 { stroke: var(--info); background: var(--info); }
.bill-c4 { stroke: var(--red); background: var(--red); }
.bill-c5 { stroke: var(--text-muted); background: var(--text-muted); }

/* Billing fits its box, edited in line (2026-10-19). */
.bill-table { table-layout: fixed; width: 100%; font-size: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.bill-table th, .bill-table td { padding: 4px 5px; overflow-wrap: anywhere; white-space: normal; }
.bill-table th { font-size: 11px; white-space: normal; overflow-wrap: normal; hyphens: auto; }
.bill-panel .bc-table.bill-table td:first-child { white-space: normal; }
.bill-sub { font-size: 11px; }
.bill-in { width: 100%; min-width: 0; box-sizing: border-box; font: 12px var(--font-ui); padding: 2px 3px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--text); }
.bill-in[type="number"] { -moz-appearance: textfield; }
.bill-in::-webkit-inner-spin-button, .bill-in::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.bill-status-cell { display: flex; flex-direction: column; gap: 4px; }
.bill-quick { font-size: 11px; padding: 2px 6px; white-space: nowrap; align-self: flex-start; }
.bill-break { margin-top: 8px; }
.bill-break .portal-break-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; }
.bill-kpis .kpi-value { font-size: 20px; }
.bill-panel .portal-seg { flex-wrap: wrap; } .bill-panel .portal-seg button { white-space: nowrap; }

/* The email beside a file in intake (2026-10-19). */
/* Emails on the left, the property on the right, as in the Inbox (Nicole,
   2026-11-05, team session). */
.fv-with-email { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(0, 960px); gap: var(--s2); align-items: start; }
.fv-with-email > .email-beside, .fv-with-email > aside { order: -1; }
.fv-with-email:has(> .email-beside.folded) { grid-template-columns: 44px minmax(0, 1fr); }
.fv-col { min-width: 0; }
body.email-beside .cece-rail { display: none !important; }
aside.email-beside { position: sticky; top: 73px; max-height: calc(calc(100 * var(--vh, 1vh)) - 90px); overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: var(--s1) var(--s2); display: grid; gap: var(--s1); align-content: start; box-sizing: border-box; }
aside.email-beside.folded { padding: 0; overflow: visible; }
/* The property's emails on the right (2026-10-20). */
aside.file-emails .label-emails { max-height: none; }
aside.file-emails .doc-search { width: 100%; box-sizing: border-box; }
/* Ask CeCe over the file (2026-10-20): a banner, folded until opened. */
/* Clearing Slack alerts (2026-10-20). */
.slack-alert { position: relative; }
.slack-alert-x { position: absolute; top: 4px; right: 6px; border: 0; background: none; color: var(--text-muted); font-size: 16px; line-height: 1; cursor: pointer; padding: 2px 4px; }
.slack-alert-x:hover { color: var(--red); }
.rail-slack-clear { display: block; margin-left: auto; margin-bottom: 4px; }
.cece-banner { margin: 0 0 var(--s2); border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.cece-banner > summary { cursor: pointer; padding: 10px 16px; }
.cece-banner[open] > summary { border-bottom: 1px solid var(--line); }
.cece-banner-body { padding: 12px 16px; }
.cece-banner-body .cece-thread { max-height: 360px; }
.eb-head { display: flex; justify-content: space-between; align-items: center; }
.eb-bar { writing-mode: vertical-rl; display: flex; align-items: center; gap: 8px; width: 42px; padding: 14px 0; border: 0; background: none; color: var(--heading); font: 700 13px var(--font-ui); cursor: pointer; }
.eb-badge { writing-mode: horizontal-tb; min-width: 20px; padding: 1px 6px; border-radius: var(--radius-pill); background: var(--red); color: #fff; font-size: 12px; }
.eb-new { display: grid; gap: 4px; }
.eb-threads ul { margin: 6px 0 0; display: grid; gap: 4px; }
/* The vacation responder's picture (2026-11-10). */
.vac-image { display: grid; gap: 6px; justify-items: start; }
.vac-image img { max-width: min(100%, 400px); height: auto; border: 1px solid var(--line); border-radius: 6px; }
/* The intake's emails, one a row as in the Inbox (2026-11-10). */
.eb-rows { display: grid; margin-top: 6px; border-top: 1px solid var(--line); }
.eb-row { width: 100%; padding: 8px 6px; font-size: 13px; }
.eb-row:hover { background: var(--line); }
.eb-row .ib-from { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eb-row .ib-date { white-space: nowrap; }
.eb-on > button { font-weight: 700; }
.eb-subject { margin: 4px 0; font-size: 16px; }
.eb-msg { border-top: 1px solid var(--line); padding: 6px 0; }
.eb-msg > summary { cursor: pointer; }
.eb-to { margin: 4px 0; overflow-wrap: anywhere; }
.eb-files { display: grid; gap: 4px; margin: 6px 0; }
.eb-file { cursor: grab; }
.eb-html { width: 100%; min-height: 360px; border: 0; background: #fff; border-radius: 6px; }
.eb-text { font: 13px var(--font-ui); }
@media (max-width: 1100px) { .fv-with-email { grid-template-columns: minmax(0, 1fr); } .fv-with-email > .email-beside, .fv-with-email > aside { order: 0; } aside.email-beside { position: static; max-height: none; } .fv-with-email:has(> .email-beside.folded) { grid-template-columns: minmax(0, 1fr); } .eb-bar { writing-mode: horizontal-tb; width: 100%; } }
/* Received By: Carbon's own list, Escrow first (2026-10-19). */
.bill-combo { position: relative; display: block; }
.bill-combo-list { position: absolute; z-index: 20; top: 100%; left: 0; min-width: 100%; width: max-content; max-width: 280px; max-height: 240px; overflow-y: auto; margin: 2px 0 0; padding: 4px 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.bill-combo-list[hidden] { display: none; }
.bill-combo-list li { padding: 4px 10px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.bill-combo-list li.on, .bill-combo-list li:hover { background: var(--surface-sunk); }
.bill-elsewhere { margin: 4px 0 8px; }
.bill-deposit { margin: 4px 0 8px; }
.bill-deposit-form { display: grid; gap: 8px; max-width: 460px; }
.mtask-docrow.no-docs { grid-template-columns: minmax(0, 1fr); }
/* Check a PDF against its file (2026-10-19). */
.doc-check-pane:empty { display: none; }
.doc-check { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 6px 0; background: var(--surface); display: grid; gap: 6px; }
.doc-check-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.doc-check-head .link { margin-left: auto; }
.doc-check-table tr.off td { color: var(--red); font-weight: 600; }
/* The check, its own line under the PDF (2026-10-19: lost among the links). */
.ib-files .ib-file > .doc-check-btn, .eb-files .ib-file > .doc-check-btn { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
/* Document Reviews (2026-10-19). */
.rv-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--s2); align-items: start; }
.rv-side { display: grid; gap: 8px; position: sticky; top: var(--s2); }
.rv-side .segmented { flex-wrap: wrap; }
.rv-list { display: grid; gap: 2px; max-height: calc(calc(100 * var(--vh, 1vh)) - 260px); overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px; background: var(--surface); }
.rv-row { all: unset; display: grid; gap: 2px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.rv-row:hover { background: var(--surface-sunk); }
.rv-row.on { background: var(--surface-sunk); box-shadow: inset 3px 0 0 var(--accent); }
.rv-detail { display: grid; gap: var(--s2); min-width: 0; }
.rv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s1); flex-wrap: wrap; }
.rv-head h3 { margin: 0; }
.rv-section h4 { margin: 0 0 4px; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px var(--s2); align-items: start; }
.rv-field.wide { grid-column: 1 / -1; }
.rv-many summary { cursor: pointer; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; }
.rv-many-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 10px; padding: 6px; max-height: 240px; overflow-y: auto; }
.rv-doc-group { display: grid; gap: 2px; margin-bottom: 8px; }
.rv-doc-head { display: flex; gap: 6px; align-items: center; margin: 4px 0; }
.rv-doc { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 4px 0; border-top: 1px solid var(--line); }
.rv-doc .row-result { grid-column: 1 / -1; }
.rv-doc-done > summary { cursor: pointer; }
.rv-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.rv-empty { padding: var(--s2); }
@media (max-width: 1000px) { .rv-layout { grid-template-columns: 1fr; } .rv-side { position: static; } }
.rv-field.row-start { grid-column-start: 1; }
/* The company today, the owner's Today (2026-10-19). */
.company-today a.kpi { text-decoration: none; color: inherit; }
.company-today a.kpi:hover { outline: 1px solid var(--accent); }
/* A person's assistants on their profile (2026-10-19). */
.assist-list { display: grid; gap: 6px; margin-bottom: 8px; }
.assist-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.assist-add { display: grid; gap: 6px; max-width: 420px; }
.assist-results { display: flex; flex-wrap: wrap; gap: 6px; }
/* The Contact Profile: search, folding sections, Edit on each row (2026-10-20). */
.cp-search { width: 100%; max-width: 520px; margin-bottom: 10px; }
.cp-section > summary { cursor: pointer; display: flex; align-items: baseline; gap: 8px; list-style: none; }
.cp-section > summary::-webkit-details-marker { display: none; }
.cp-section > summary h3 { margin: 0; }
.cp-section[open] > summary { margin-bottom: 8px; }
.cp-edit { margin-left: 8px; }
.cp-actions { display: inline-flex; gap: 6px; margin-left: 6px; align-items: center; }
.bc-kv dd textarea, .bc-kv dd input[type=text], .bc-kv dd input[type=email], .bc-kv dd input[type=tel], .bc-kv dd input[type=url] { width: min(420px, 100%); }
.bc-kv dd .chip-select { margin: 4px 0; }
/* Pending Return / Awaiting Direction files (2026-10-20). */
.queue-files { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 4px 0; }
/* A field required before Under Contract (2026-10-20). */
.required-field > span:first-child::after { content: ' *'; color: var(--red); }
.required-field.missing select, .required-field.missing input { outline: 2px solid var(--amber); outline-offset: 1px; }
/* The intake email's labels and attachment grip (2026-10-20). */
.eb-labels { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.eb-grip { cursor: grab; color: var(--text-muted); font-size: 14px; line-height: 1; padding: 0 2px; user-select: none; }
.eb-files { display: flex; flex-wrap: wrap; gap: 6px; }
/* The Tasks page: each property by its side (2026-10-20), and a file in a
   side panel. */
.task-file-row.side-seller { box-shadow: inset 4px 0 0 var(--rep-seller); }
.task-file-row.side-buyer { box-shadow: inset 4px 0 0 var(--rep-buyer); }
.task-file-row.side-dual { box-shadow: inset 4px 0 0 var(--rep-dual); }
.portal-drawer.file-drawer { width: min(1000px, calc(100 * var(--vw, 1vw))); }
.rv-doc-status { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* Document Reviews: an open picker shows past its panel (2026-10-20). */
.panel.rv-section { overflow: visible; }
/* Inbox: many at once, and our own sends (2026-10-20). */
.ib-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 6px 2px; }
.ib-bulk:empty { display: none; }
.ib-bulk-ours { margin-left: auto; }
.ib-row-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.ib-row-wrap .ib-tick { margin: 12px 4px 0 6px; }
.listing-group { margin-bottom: var(--s3); }
.listing-group-head { margin: 0 0 8px; }
/* Saving, made obvious (2026-10-20): the field lights up amber while it
   saves, green once saved, red if not. */
.save-mark { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; font-weight: 700; }
.save-mark:empty { display: none; }
.save-mark.save-busy { background: var(--amber-bg); color: var(--amber); }
.save-mark.save-ok { background: var(--green-bg); color: var(--green); }
.save-mark.save-bad { background: var(--red-bg); color: var(--red); }
.intake-row.save-busy, .form-row.save-busy, .iline.save-busy { background: color-mix(in srgb, var(--amber-bg) 80%, transparent); box-shadow: 0 0 0 2px var(--amber-bg); border-radius: 8px; }
.intake-row.save-ok, .form-row.save-ok, .iline.save-ok { background: color-mix(in srgb, var(--green-bg) 85%, transparent); box-shadow: 0 0 0 2px var(--green-bg); border-radius: 8px; transition: background .4s, box-shadow .4s; }
.intake-row.save-bad, .form-row.save-bad, .iline.save-bad { background: color-mix(in srgb, var(--red-bg) 85%, transparent); box-shadow: 0 0 0 2px var(--red-bg); border-radius: 8px; }
/* The market check (2026-10-20). */
.listing-wrap { display: grid; gap: 6px; align-content: start; }
.market-alert { display: grid; gap: 4px; padding: 8px 10px; border-radius: 10px; background: var(--red-bg); color: var(--red); border: 1px solid var(--red); }
.market-alert-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.listing-group.review .listing-group-head { color: var(--red); }
/* The RE/MAX month's receipt (2026-10-20): on screen in a dialog, and on
   paper (or PDF) the sheet alone. */
.bill-receipt-btn { margin-left: 10px; }
.receipt-dialog { width: min(900px, 96vw); max-height: 92vh; overflow: auto; border: 0; border-radius: 12px; padding: 16px; background: #fff; color: #111; }
.receipt-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.receipt-tools { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 12px; }
.receipt-sheet { color: #111; background: #fff; font-size: 13px; }
.whats-new { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: var(--radius, 10px); overflow: hidden; display: none; flex-direction: column; }
.whats-new[open] { display: flex; }
.whats-new::backdrop { background: rgba(0, 0, 0, 0.45); }
/* Kelly's I Quit (web/src/i-quit.js) */
.btn.iq-quit { background: #F47D5F; color: #fff; border-color: #F47D5F; }
.iq { padding: 0; border: 0; background: transparent; width: min(760px, calc(100vw - 32px)); }
.iq::backdrop { background: rgba(0, 0, 0, 0.75); }
.iq-crt { position: relative; background: #050805; border: 14px solid #2b2b28; border-radius: 18px; box-shadow: inset 0 0 60px rgba(0, 255, 90, 0.12), 0 20px 60px rgba(0, 0, 0, 0.6); height: min(520px, calc(100vh - 80px)); overflow: hidden; font: 16px/1.35 'Courier New', monospace; color: #3dff6e; text-shadow: 0 0 6px rgba(61, 255, 110, 0.7); }
.iq-crt::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0 2px, transparent 2px 4px); }
.iq-log { padding: 16px 18px; white-space: pre-wrap; height: 100%; box-sizing: border-box; overflow: hidden; }
.iq-log .denied { color: #ff5a4f; text-shadow: 0 0 6px rgba(255, 90, 79, 0.7); }
.iq-win { position: absolute; right: 22px; top: 22px; width: min(360px, 60%); background: #d9d9d9; border: 2px solid #fff; border-right-color: #555; border-bottom-color: #555; color: #000; text-shadow: none; font: 13px/1.3 'Courier New', monospace; opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.2s; }
.iq-win.on { opacity: 1; transform: scale(1); }
.iq-win-bar { background: #000080; color: #fff; padding: 3px 6px; font-weight: 700; }
.iq-win-body { position: relative; aspect-ratio: 320 / 260; overflow: hidden; background: #fff; }
.iq-win-body video { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; }
.iq-head { position: absolute; left: 25.4%; top: -1%; width: 38.5%; z-index: 2; }
.iq-caption { padding: 6px 8px; font-weight: 700; text-align: center; }
.iq-stay { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; font: 700 15px 'Courier New', monospace; padding: 8px 18px; background: #3dff6e; color: #050805; border: 0; cursor: pointer; opacity: 0; transition: opacity 0.3s; }
.iq-stay.on { opacity: 1; }
.whats-new-cards { overflow-y: auto; display: grid; gap: var(--s1); background: var(--surface); }
.whats-new-cards img { width: 100%; height: auto; display: block; }
.whats-new-tools { display: flex; justify-content: flex-end; padding: var(--s1) var(--s2); background: var(--surface); border-top: 1px solid var(--line); }
.receipt-pages .receipt-sheet + .receipt-sheet { break-before: page; margin-top: var(--s3); }
.bill-month-end { display: grid; gap: var(--s1); }
.bill-month-end.due { border-left: 4px solid var(--amber); }
.bill-month-end-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); }
.receipt-sheet .muted { color: #555; }
.receipt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.receipt-head h2 { margin: 0 0 4px; font-size: 20px; color: #111; }
.receipt-from { text-align: right; }
.receipt-table { width: 100%; border-collapse: collapse; }
.receipt-table th, .receipt-table td { padding: 6px 8px; border-bottom: 1px solid #ddd; text-align: left; }
.receipt-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: #444; }
.receipt-table .num { text-align: right; white-space: nowrap; }
.receipt-table tfoot td { border-top: 2px solid #111; border-bottom: 0; font-weight: 700; }
.receipt-total { display: flex; justify-content: flex-end; gap: 16px; align-items: baseline; margin-top: 14px; font-size: 16px; }
.receipt-total strong { font-size: 22px; }
@media print {
  body.printing-receipt * { visibility: hidden; }
  body.printing-receipt .receipt-dialog, body.printing-receipt .receipt-dialog * { visibility: visible; }
  body.printing-receipt .receipt-tools { display: none; }
  body.printing-receipt .receipt-dialog { position: absolute; inset: 0; width: auto; max-height: none; overflow: visible; padding: 0; box-shadow: none; }
}
.receipt-sheet .strong, .receipt-sheet strong, .receipt-sheet td, .receipt-sheet th { color: #111; }
.receipt-company { font-size: 18px; display: block; margin-bottom: 2px; }
.receipt-logo { max-width: 180px; max-height: 90px; object-fit: contain; }
.receipt-from { text-align: left; line-height: 1.45; }
.receipt-to { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin: 6px 0 16px; line-height: 1.45; }
.receipt-title { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #111; padding-bottom: 6px; margin-bottom: 8px; }
.receipt-title h2 { margin: 0; font-size: 18px; color: #111; }
.receipt-totals { display: grid; justify-content: end; gap: 4px; margin-top: 12px; min-width: 260px; margin-left: auto; }
.receipt-totals > div { display: flex; justify-content: space-between; gap: 32px; }
.receipt-due { border-top: 2px solid #111; padding-top: 4px; font-size: 16px; }
.receipt-due strong { font-size: 18px; }
/* The invoice printed on its own (2026-10-20). */
html:has(body.receipt-print-page) { zoom: 1; background: #fff; }
body.receipt-print-page { margin: 0; padding: 24px; background: #fff; color: #111; }
/* White space around it on paper, whatever the print dialog's margins say
   (2026-10-20: it ran to the edges). */
@page { margin: 0; }
@media print { body.receipt-print-page { padding: 0.75in 0.7in; } }
.print-frame { position: fixed; right: 0; bottom: 0; width: 0; height: 0; border: 0; visibility: hidden; }
/* Slack: reactions and threads (2026-10-20). */
.slack-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.slack-reaction { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-sunk); font-size: 13px; }
.slack-reaction-count { font-size: 11px; font-weight: 700; color: var(--text-muted); }
.slack-thread-toggle { margin-top: 4px; }
.slack-thread:not(:empty) { margin: 6px 0 4px 14px; padding-left: 10px; border-left: 3px solid var(--line); display: grid; gap: 6px; }
.slack-msg.in-thread { padding: 4px 0; }
.slack-thread-reply { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: end; }
.slack-thread-reply .small { grid-column: 1 / -1; }
/* My Profile (2026-10-20). */
a.profile { text-decoration: none; color: inherit; }
a.profile:hover .name { text-decoration: underline; }
.mp-layout { display: grid; gap: var(--s2); width: 100%; }
.panel.padded.mp-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--s3, 24px); align-items: center; }
.mp-shot { display: grid; justify-items: center; gap: 6px; }
.mp-shot-button { position: relative; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; display: block; line-height: 0; }
.mp-shot-hint { position: absolute; inset: auto 0 0 0; padding: 8px 0 14px; border-radius: 0 0 90px 90px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; opacity: 0; transition: opacity .15s; }
.mp-shot-button:hover .mp-shot-hint, .mp-shot-button:focus-visible .mp-shot-hint { opacity: 1; }
.mp-headshot { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; object-position: center top; background: var(--surface-sunk); display: grid; place-items: center; font-size: 52px; font-weight: 700; color: var(--text-muted); line-height: 1; }
.mp-grid.mp-grid-personality { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mp-timeoff-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s2); align-items: start; }
.mp-timeoff-grid .cal-request { margin: 0; }
.mp-timeoff-lists { display: grid; gap: 14px; }
.mp-timeoff-group .cal-request-item .chip { margin-left: auto; }
/* The timesheet and hours invoice (2026-10-20): a white sheet, filled in. */
.hs-sheet input, .hs-sheet textarea { background: #fff; color: #111; border: 1px solid #bbb; border-radius: 4px; padding: 3px 6px; font: inherit; }
.hs-sheet input[type=number] { width: 64px; text-align: right; }
.hs-sheet textarea { width: 100%; }
.hs-who { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 10px 0 14px; }
.hs-invoice-who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.hs-invoice-who input { width: 100%; margin-top: 2px; }
.hs-service { margin: 0 0 10px; }
.hs-service input { min-width: 320px; }
.hs-week td, .hs-week th { text-align: center; }
.hs-week td:first-child { text-align: left; white-space: nowrap; }
.hs-notes { margin-top: 14px; display: grid; gap: 4px; }
.hs-notes-text { white-space: pre-wrap; min-height: 40px; border: 1px solid #ddd; padding: 6px 8px; }
.hs-confirm { margin-top: 14px; }
.hs-send { display: grid; gap: 8px; margin: 0 0 14px; padding: 12px; border: 1px solid #ddd; border-radius: 8px; color: #111; }
.hs-send .form-row span, .hs-send p { color: #333; }
.hs-send[hidden] { display: none; }
.hs-send-row { display: flex; gap: 10px; align-items: center; }
@media (max-width: 700px) { .hs-invoice-who { grid-template-columns: 1fr; } }
.mp-who h2 { margin: 0 0 4px; }
.mp-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; margin: 12px 0; }
.mp-facts dt { font-size: 12px; color: var(--text-muted); }
.mp-facts dd { margin: 0; font-weight: 600; }
.mp-section h3 { margin: 0 0 10px; }
.mp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 24px; }
.mp-field { display: grid; gap: 4px; }
.mp-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.mp-value { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.mp-value textarea, .mp-value input { width: 100%; }
.mp-long { white-space: pre-wrap; }
.mp-actions { display: inline-flex; gap: 8px; align-items: center; }
@media (max-width: 700px) { .panel.padded.mp-card, .mp-grid.mp-grid-personality, .mp-timeoff-grid { grid-template-columns: 1fr; } }
/* The small Slack panel under CeCe (2026-10-20). */
.rail-slack { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: grid; gap: 8px; }
.rail-slack-head { display: flex; justify-content: space-between; align-items: center; }
.rail-slack-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rail-slack-list li { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 13px; }
.rail-slack-count { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; text-align: center; }
.rail-slack-mentions { display: grid; gap: 6px; }
.rail-slack-mention { display: grid; gap: 2px; padding: 6px 8px; border-radius: 8px; background: var(--surface-sunk); color: inherit; text-decoration: none; }
/* Admin Tasks (2026-10-20). */
.at-tabs { margin-bottom: 12px; }
.at-body { display: grid; gap: 12px; }
.at-review-line { margin: 0; padding: 10px 14px; border-radius: var(--radius); background: var(--info-bg); color: var(--info); }
.at-filters { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.at-group { gap: 0; }
.at-group h3 { margin-bottom: 6px; }
.at-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(120px, 1.2fr) 80px 130px minmax(90px, 1fr) minmax(110px, 1.2fr); gap: 10px; align-items: center; width: 100%; padding: 8px 6px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.at-row:hover { background: var(--surface-sunk); }
.at-row.at-head { cursor: default; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; border-top: 0; }
.at-row.at-head:hover { background: none; }
.at-row.at-lib { grid-template-columns: minmax(0, 3fr) 1fr 1fr 110px minmax(90px, 1fr) minmax(110px, 1.2fr); }
.at-name { font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.at-due.late, .at-drawer .late { color: var(--red); font-weight: 700; }
.at-auto { background: var(--surface-sunk); color: var(--text-muted); }
.chip.at-s-green { background: var(--green-bg); color: var(--green); }
.chip.at-s-gray { background: var(--surface-sunk); color: var(--text-muted); }
.chip.at-s-purple { background: #EDE4FA; color: #5B2E9C; }
.chip.at-s-red { background: var(--red-bg); color: var(--red); }
.chip.at-s-amber { background: var(--amber-bg); color: var(--amber); }
.chip.at-s-blue { background: var(--info-bg); color: var(--info); }
.at-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 16px; margin: 0; }
.at-facts dt { font-size: 12px; color: var(--text-muted); }
.at-facts dd { margin: 0; font-weight: 600; }
.at-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.at-airtable { margin-left: auto; }
.at-skip input { width: 100%; }
.at-section { display: grid; gap: 6px; }
.at-section textarea { width: 100%; }
.at-files { margin: 0; padding-left: 18px; }
.at-dry { padding: 10px 12px; border-radius: var(--radius); background: var(--amber-bg); color: var(--amber); }
.at-dry ul { margin: 6px 0 0; padding-left: 18px; }
.md { display: grid; gap: 6px; line-height: 1.5; }
.md h3, .md h4, .md h5, .md h6, .md p, .md ul, .md ol, .md blockquote { margin: 0; }
.md h3 { font-size: 16px; } .md h4 { font-size: 15px; } .md h5, .md h6 { font-size: 14px; }
.md ul, .md ol { padding-left: 22px; }
.md blockquote { padding-left: 10px; border-left: 3px solid var(--line); color: var(--text-muted); }
.md code { padding: 0 4px; border-radius: 4px; background: var(--surface-sunk); }
.md-check { list-style: none; margin-left: -18px; }
@media (max-width: 800px) { .at-row, .at-row.at-lib { grid-template-columns: 1fr 1fr; } .at-row.at-head { display: none; } }
/* An inspection line (2026-10-20): the date fills its two columns; the
   company's name and search stack in one. */
.iline-items .insp-when input { width: 100%; box-sizing: border-box; }
.iline-items .insp-company { display: grid; gap: 4px; align-content: start; min-width: 0; }
.iline-items .insp-company input { width: 100%; box-sizing: border-box; }
/* The Tasks page's groups fold (2026-10-20). */
button.task-group-head { width: 100%; border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; text-align: left; align-items: center; }
.task-group-name { display: inline-flex; gap: 6px; align-items: center; }
/* Another file at the same address, beside an email (2026-10-21). */
.ib-file-others { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.ib-file-others:empty { display: none; }
/* Three tiles (the owner's Today, 2026-10-21) fill the row. */
@media (min-width: 900px) { .tiles:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* A contact's profile (the Our Agent side panel and page): every other
   section shaded (Nicole, 2026-10-21). */
.contact-profile .cp-body > .bc-section:nth-of-type(even), .contact-profile .cp-body > div > .bc-section:nth-of-type(even) { background: var(--surface-sunk); }

/* Address suggestions under a To / Cc box (2026-10-21). */
.addr-suggest { z-index: 2500; /* over the New Message pop-up (2000), 2026-11-23 */ background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); padding: 4px; max-height: 320px; overflow: auto; }
.addr-option { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.addr-option.active, .addr-option:hover { background: var(--hover, rgba(127, 127, 127, 0.15)); }
.addr-name { font-weight: 600; font-size: 13px; }
.addr-email { font-size: 12px; opacity: 0.8; }

/* The team's 2FA codes on the compliance dashboards (2026-10-21). */
.tfa-card { display: grid; gap: 8px; margin-bottom: 12px; }
.tfa-list { display: grid; gap: 6px; }
.tfa-row { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.tfa-snippet { font-size: 13px; }

/* Client Care After Close (2026-10-21). */
.cc-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cc-notice { margin-bottom: 12px; }
.bc-table tr.cc-missing td:last-child { font-weight: 600; }
.cc-row { cursor: pointer; }
.cc-row:hover td { background: var(--hover, rgba(127, 127, 127, 0.08)); }
.cc-agent { margin-bottom: 10px; }
.cc-agent > summary { cursor: pointer; padding: 6px 0; }
.cc-group { white-space: nowrap; }

/* Document Reviews (2026-10-21): the status at the top right, inspections as chips. */
.rv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.rv-head-right { display: grid; gap: 8px; justify-items: end; }
.rv-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.rv-insp { display: flex; flex-wrap: wrap; gap: 6px; }

/* Your status in Today's right column (2026-10-21). */
#cece-rail .my-status { margin-top: 12px; }
/* Today's own copy of Your status, for windows too narrow for the right column. */
.my-status.status-narrow { margin-bottom: 16px; }
.my-status.status-narrow .editor-actions { flex-wrap: wrap; gap: 6px; }
@media (min-width: 1400px) { .my-status.status-narrow { display: none; } }
#cece-rail .my-status .editor-actions { flex-wrap: wrap; gap: 6px; }
.back-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.back-in { display: inline-flex; flex-wrap: wrap; gap: 4px; }

/* File creation (2026-10-21): the wide transaction email, the bottom Complete. */
.mtask-email { display: grid; gap: 4px; }
.mtask-email input[type="email"] { width: 100%; max-width: 640px; }
.mtask-done-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
details.mgr-status-group > summary { cursor: pointer; list-style: revert; }

/* File reviews documents, one line each (2026-10-22). */
.mgr-doc { padding: 4px 0; }
.mgr-doc .file-previews.tiny { display: inline-flex; gap: 4px; }
.mgr-doc .file-previews.tiny .file-preview { width: 28px; }
.mgr-doc .file-previews.tiny .file-preview img { max-height: 36px; box-shadow: none; }
.mgr-doc-actions .link .icon, .mgr-doc-actions .link svg { vertical-align: -2px; }
.mgr-team-notes { margin-top: 4px; }
details.mgr-status-group { margin-bottom: 4px; gap: 0; }
details.mgr-status-group > summary { padding: 4px 0; }
.mgr-notes[hidden], .mgr-team-notes[hidden] { display: none; }
/* Slack beside any screen (2026-10-22): not modal, so no backdrop. */
.portal-drawer.slack-drawer { width: min(460px, calc(100 * var(--vw, 1vw))); display: none; flex-direction: column; z-index: 120; }
.portal-drawer.slack-drawer[open] { display: flex; }
.slack-drawer-tabs { padding: 8px 16px 0; flex-wrap: wrap; }
.slack-drawer-body { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 8px 16px 16px; gap: 8px; }
.slack-drawer-messages { flex: 1; min-height: 0; overflow-y: auto; }
.slack-drawer .slack-compose textarea { width: 100%; box-sizing: border-box; }
.topbar-slack { margin-left: auto; }
.topbar-slack + .preview-flag, .topbar .topbar-slack ~ .signout { margin-left: 8px; }
.slack-drawer-tabs .cpx-tab { text-transform: none; }
/* Awaiting Brokerage Review quick buttons (2026-10-22). */
.btn.fix-btn { background: #C92A2A; border-color: #C92A2A; color: #FFFFFF; }
.btn.fix-btn:hover { filter: brightness(1.08); }
.topbar-slack[hidden] { display: none; }
/* Pictures and files in Slack messages (2026-10-22). */
.slack-files-in { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.slack-img { display: block; max-width: min(320px, 100%); max-height: 240px; border-radius: 8px; border: 1px solid var(--line); object-fit: contain; background: var(--surface); }
details.tfa-card > summary { cursor: pointer; list-style: revert; }
details.tfa-card:not([open]) { gap: 0; }
.company-closings { margin-top: 12px; }
.company-closings > div { display: grid; gap: 6px; margin-top: 6px; }
/* Closing today folds (2026-10-29). */
.company-closings > summary { cursor: pointer; list-style: revert; }
.company-closings > summary h3 { display: inline; margin: 0; }
/* The emails about a document, under its notes (2026-10-29). */
.queue-row .doc-emails { grid-column: 1 / -1; margin: 0; }
.doc-emails .doc-email { padding: 4px 0; border-top: 1px solid var(--line); }
.doc-emails .doc-email:first-child { border-top: 0; }
.doc-email-snippet { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-closings .row { text-decoration: none; color: inherit; }
.company-closings button.row { width: 100%; text-align: left; background: none; border: 0; font: inherit; cursor: pointer; }
/* Files by name (2026-10-23). */
.file-names { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; margin-left: 6px; }
.file-name-link { font-size: 13px; text-decoration: none; overflow-wrap: anywhere; }
.file-name-link:hover { text-decoration: underline; }
.mgr-broker-note { margin-top: 6px; }
.mgr-broker-note textarea { width: 100%; min-height: 54px; resize: vertical; }
.cpx-file-names { display: flex; flex-direction: column; margin: 6px 0 0; }
.inspection-order { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.phase-groups { display: grid; gap: 4px; }
.phase-group > summary { cursor: pointer; padding: 3px 0; }
.phase-group-body { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 6px 14px; }
.attach-box .phase-group-body { display: grid; gap: 2px; }
.dt-input { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dt-input .dt-time { width: 9em; }
.dt-input .dt-time.bad { border-color: var(--red); }
.email-text { font: inherit; line-height: 1.5; white-space: normal; word-break: break-word; }
.email-text p { margin: 0 0 10px; }
.email-text a { color: var(--link, var(--accent, #2b59c3)); }
.email-text-quote { margin-top: 8px; border-left: 3px solid var(--line, #ddd); padding-left: 10px; }
.email-text-quote > summary { cursor: pointer; }
/* PDF Tools (2026-10-23). */
.pdf-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.pdf-card { display: grid; gap: 10px; }
.pdf-card h3 { margin: 0; }
.pdf-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.pdf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pdf-name { font-weight: 600; overflow-wrap: anywhere; }
.pdf-row-actions { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; }
.pdf-out { display: flex; flex-wrap: wrap; gap: 8px; }
.pdf-card > .btn { justify-self: start; width: auto; }
/* Clean-up (2026-10-23). */
.cu-box { margin-bottom: 12px; }
.cu-box > summary { cursor: pointer; display: flex; gap: 8px; align-items: center; }
.cu-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0; }
.cu-cols { position: relative; }
.cu-cols-list { display: grid; gap: 4px; padding: 8px; margin-top: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.cu-table-wrap { overflow-x: auto; }
.cu-table tr.on td { background: var(--surface-sunk); }
.btn.danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn.danger[disabled] { opacity: .5; }
.ib-msg-actions { display: flex; gap: 12px; padding: 6px 0 2px; }
.pdf-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pdf-file { display: grid; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); }
.pdf-order { font-weight: 700; }
.pdf-pages { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 6px; }
.pdf-page { margin: 0; display: grid; justify-items: center; gap: 2px; flex: 0 0 auto; }
.pdf-page img, .pdf-page-blank { height: 120px; width: auto; min-width: 80px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.pdf-page figcaption { font-size: 12px; font-weight: 700; }
.pdf-parts { display: grid; gap: 8px; }
.pdf-part { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.pdf-name-input { min-width: 0; width: 100%; }
.mtask-comm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.mtask-comm-cell { display: grid; gap: 2px; margin-bottom: 10px; }
.cabinet-all { font-weight: 600; }
.cabinet-closing { display: block; margin: 4px 0; }
.pdf-name-field { display: grid; gap: 4px; min-width: 0; }
.pdf-name-label { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13px; color: var(--heading, var(--text)); }
.pdf-name-input { font-weight: 600; border: 2px solid var(--accent, #4a5bd4); border-radius: 6px; padding: 6px 8px; background: var(--surface); }
.pdf-guess { margin: 4px 0 0; padding-left: 18px; }
/* Billing: To Invoice, by brokerage then agent (2026-10-26). */
.bill-inv-group { margin-bottom: 10px; }
.bill-inv-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; cursor: pointer; }
.bill-inv-head .btn { margin-left: auto; }
.bill-inv-agent { margin: 10px 0 0 12px; display: grid; gap: 4px; }
.bill-inv-agent-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.receipt-due-box { text-align: right; display: grid; gap: 2px; }
/* Report a problem (2026-10-26). */
.topbar-report { margin-left: 8px; white-space: nowrap; }
.report-dialog { max-width: 520px; width: calc(100% - 32px); border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--surface); color: var(--text); }
.report-dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.report-dialog h3 { margin: 0 0 8px; }
.report-body { display: grid; gap: 8px; }
.report-body textarea { width: 100%; box-sizing: border-box; }
.report-list { display: grid; gap: 10px; }
.report-head { display: flex; gap: 6px; align-items: baseline; }

/* Agent Portal: Needs from you and the calendar link (2026-10-26). */
.portal-needs { margin-bottom: var(--s2); }
/* Soft yellow, an alert for the agent (Nicole, 2026-11-03). */
.portal-needs.portal-tone { background: var(--chip-yellow-bg); border-color: color-mix(in srgb, var(--chip-yellow-fg) 30%, transparent); }
.portal-needs .portal-h { color: var(--chip-yellow-fg); }
.portal-need-group { display: grid; gap: 6px; margin-top: 10px; }
.portal-need { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.portal-need.overdue { border-left: 4px solid var(--red); }
.portal-need-text { min-width: 0; display: grid; gap: 2px; }
/* The document's file under it (2026-11-13). */
.portal-need-files { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.portal-subscribe { display: grid; gap: 6px; padding: 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.portal-subscribe:empty { display: none; }
.portal-subscribe-row { display: flex; gap: 8px; }
.portal-subscribe-row input { flex: 1; min-width: 0; }
.portal-need-choices { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Inbox drag and drop (2026-10-27): the boxes take a drop. */
.ib-boxes.dragging .ib-box:not(.on) { outline: 1px dashed var(--line); }
.ib-box.drop { outline: 2px solid var(--accent) !important; background: var(--surface-sunk); }
.ib-row[draggable="true"] { cursor: grab; }
.ib-leaving { opacity: .35; pointer-events: none; transition: opacity .15s; }

/* Inspections on this contract (Nicole, 2026-10-28: "the distance between
   the inspections on the contract and the status is too wide"): each
   status beside its inspection, every other line shaded. */
.insp-summary { display: grid; gap: 0; max-width: 560px; }
.insp-summary .kv-row { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); justify-content: start; align-items: center; gap: 12px; padding: 4px 8px; border-radius: 4px; }
.insp-summary .kv-row:nth-child(even) { background: var(--surface-sunk); }
.insp-summary .kv-row > :last-child { justify-self: start; text-align: left; }

/* Scheduled emails that didn't send (2026-10-28). */
.failed-bar { position: sticky; top: 0; z-index: 100; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; padding: 8px 16px; background: #f8d7d3; color: #6b1308; font-size: 14px; }
.failed-bar a { color: inherit; font-weight: 700; }

/* Needs from you folds (2026-10-28): the heading is the toggle. */
.portal-needs-fold > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.portal-needs-fold > summary::-webkit-details-marker { display: none; }
.portal-needs-fold > summary::before { content: '▸'; color: var(--text-muted); font-size: 12px; transition: transform .15s; }
.portal-needs-fold[open] > summary::before { transform: rotate(90deg); }
.portal-needs-fold > summary .portal-h { margin: 0; }
.portal-needs-fold[open] > summary { margin-bottom: 12px; }

/* A file's parts in the Agent Portal, each its own colour (2026-10-28):
   a soft tint of the chip colour and its edge on top. */
.portal-section.portal-tone { border-top: 4px solid var(--tone-fg); background: color-mix(in srgb, var(--tone-bg) 55%, var(--surface)); }
.portal-section.portal-tone > .portal-h { color: var(--tone-fg); }
.portal-tone.tone-blue { --tone-bg: var(--chip-blue-bg); --tone-fg: var(--chip-blue-fg); }
.portal-tone.tone-green { --tone-bg: var(--chip-green-bg); --tone-fg: var(--chip-green-fg); }
.portal-tone.tone-yellow { --tone-bg: var(--chip-yellow-bg); --tone-fg: var(--chip-yellow-fg); }
.portal-tone.tone-purple { --tone-bg: var(--chip-purple-bg); --tone-fg: var(--chip-purple-fg); }
.portal-tone.tone-mauve { --tone-bg: var(--chip-mauve-bg); --tone-fg: var(--chip-mauve-fg); }

/* Carbon for Chrome in the Agent Portal (2026-10-28). */
.portal-chrome-list { padding-left: 18px; margin: 8px 0 16px; }
.portal-chrome-list li { margin: 6px 0; }
.portal-chrome-steps { padding-left: 20px; margin: 16px 0 12px; }
.portal-chrome-steps li { margin: 6px 0; }

/* Ok to Send documents sitting in the Compliance Processor (2026-10-28). */
.compliance-bar { position: sticky; top: 0; z-index: 99; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; padding: 8px 16px; background: #fdf1d6; color: #5a3a00; font-size: 14px; border-bottom: 2px solid #EF9F27; }
.compliance-bar a { color: inherit; font-weight: 700; }

/* The task's template, plainly applied (2026-10-29). */
.task-template { border: 2px solid var(--green); background: var(--green-bg); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; }
.task-template-head { display: flex; align-items: center; gap: 8px; }
.task-template-name { font-size: 17px; font-weight: 700; color: var(--heading); margin: 4px 0 2px; }
.task-template p { margin: 0; }
.task-template-applied { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 999px; background: var(--green); color: var(--green-bg); font-size: var(--fs-small); font-weight: 700; }

/* The task's name bar in its file's representation color (2026-10-29). */
.detail-head.side-seller { --side: var(--rep-seller); }
.detail-head.side-buyer { --side: var(--rep-buyer); }
.detail-head.side-dual { --side: var(--rep-dual); }
.detail-head[class*="side-"]:not(.side-none) { border-left: 8px solid var(--side); background: color-mix(in srgb, var(--side) 12%, var(--surface)); }

/* The task bar holds assigned, due, the snapshot and the system buttons, and
   a bigger status (2026-10-29). */
.detail-head .detail-meta, .detail-head .agent-systems { flex-basis: 100%; margin: 0; align-items: center; }
.detail-head .detail-meta { padding-top: 10px; border-top: 1px solid var(--line); }
.task-status-pick .label { font-size: var(--fs-small); }
.task-status-pick .ss-button { font-size: 16px; font-weight: 700; padding: 9px 16px; min-width: 230px; text-align: left; }

/* The documents in For this task: name and files left, status right, one
   clean row each (2026-10-29). */
.task-context-docs { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 4px 0 10px; }
.task-context-doc { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px; }
.task-context-doc + .task-context-doc { border-top: 1px solid var(--line); }
.task-context-doc:nth-child(even) { background: var(--surface-sunk); }
.task-context-doc-main { display: grid; gap: 4px; min-width: 0; }
.task-context-doc-name { font-weight: 600; overflow-wrap: anywhere; }
.task-context-doc-files { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.task-context-doc-files .row-thumb.attach-icon { width: 34px; height: 43px; }
.task-context-doc-status { justify-self: end; }
.task-context-doc-status .ss-button { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The status at the bottom right of the task bar (2026-10-29). */
.detail-head .detail-meta .task-status-pick { margin-left: auto; }
/* For this task folds (2026-10-29). */
details.task-context > summary { cursor: pointer; list-style: revert; }
details.task-context > summary h3 { display: inline; margin: 0; }
.task-context-body { margin-top: 8px; }
/* A bar with nothing to say takes no room (Nicole, 2026-10-29: "a thin empty
   line on the top of the page when there is no alert"): display: flex above
   overrode [hidden]. */
.failed-bar[hidden], .compliance-bar[hidden], .away-bar[hidden] { display: none !important; }

/* A new person as an assistant (2026-10-29). */
.new-assist { display: grid; gap: 6px; margin-top: 4px; }
.new-assist > .link { justify-self: start; }
.new-assist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.new-assist-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 480px) { .new-assist-grid { grid-template-columns: 1fr; } }

/* The new order's departments, bigger, and its packages, more than one (2026-10-29). */
.portal-dept .portal-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
.portal-dept .portal-seg button { min-height: 64px; padding: 14px 18px; font-size: 16px; font-weight: 600; border-radius: var(--radius-lg, 12px); white-space: normal; text-align: center; }
@media (max-width: 560px) { .portal-dept .portal-seg { grid-template-columns: 1fr; } }
.portal-services { display: flex; flex-wrap: wrap; gap: 8px; }
.portal-service.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); font-weight: 600; }

/* The Holiday Switch (2026-10-29). */
.hs-list { display: grid; gap: 4px; margin: 8px 0 12px; }
.hs-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; }
.hs-row:nth-child(odd) { background: var(--surface-sunk); }
.hs-row .hs-name { flex: 1 1 auto; min-width: 0; }
.hs-row.is-on .hs-name { font-weight: 600; }
.hs-page { display: grid; gap: 16px; }

/* Get the offer ready (2026-11-02). */
.pdf-prep-dialog { max-width: 620px; width: calc(100vw - 32px); }
.pdf-prep-list { display: grid; gap: 6px; padding-left: 20px; margin: 10px 0; }
.pdf-prep-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pdf-prep-item > span:first-child { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
/* @mentions (2026-11-02): the bar, Today's card, the notes' picker. */
.mention-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 16px; background: var(--accent-soft, #FDE8E1); color: var(--text); border-bottom: 2px solid var(--accent, #F47D5F); }
.mention-bar .mention-row { flex: 1; border: 0; padding: 0; }
.mentions-card { display: grid; gap: 4px; padding: 12px 14px; border: 2px solid var(--accent, #F47D5F); }
.mention-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mention-row:last-child { border-bottom: 0; }
.mention-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.mention-text { margin-top: 2px; }
/* Today: the day in three lines, the two buttons, the stage tiles (2026-11-02). */
.day-summary { display: grid; gap: 14px; padding: 16px 18px; margin: 12px 0 16px; }
.day-summary-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.day-lines { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 15px; }
.day-buttons { display: grid; gap: 8px; }
.day-buttons .btn { justify-content: center; padding: 10px 16px; }
.stage-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stage-tile { display: grid; gap: 2px; justify-items: center; padding: 10px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.stage-tile strong { font-size: 24px; }
.stage-tile.yellow { background: var(--chip-yellow-bg); color: var(--chip-yellow-fg); }
.stage-tile.blue { background: var(--chip-blue-bg); color: var(--chip-blue-fg); }
.stage-tile.green { background: var(--chip-green-bg); color: var(--chip-green-fg); }
.stage-tile.red { background: var(--chip-red-bg); color: var(--chip-red-fg); }
@media (max-width: 700px) { .day-summary-main { grid-template-columns: 1fr; } .stage-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* The 3:30 nudge. */
.nudge-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: var(--chip-red-bg); color: var(--chip-red-fg); border-bottom: 2px solid currentColor; font-weight: 600; }
.nudge-bar span { flex: 1; }

/* Hidden means hidden: these set their own display. */
.mention-bar[hidden], .mentions-card[hidden], .nudge-bar[hidden] { display: none; }
/* The Inbox's file labels under the boxes (2026-11-02). */
.ib-label-filter { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; padding: 5px 8px; margin: 2px 0 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); }
.ib-label-list { max-height: 320px; overflow-y: auto; }
.ib-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; min-width: 0; }
/* The boxes stay in their column (2026-11-02: a long file label's name
   stretched it over the email list). */
.ib-boxes { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.ib-boxes .ib-group, .ib-file-labels { min-width: 0; }
/* No file open: its empty panel is gone (2026-11-02: it sat in a second row
   under the boxes and, as the File labels list scrolled, slid over it with
   its drag handle, so Find a label couldn't be typed in). */
.ib-layout:not(.with-file) > .ib-file-panel { display: none; }
/* The close-out task's outstanding documents (2026-11-03): name left, files
   middle, status right with Email it under it. */
.close-out-docs .co-doc { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 12px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.close-out-docs .co-doc:last-of-type { border-bottom: 0; }
.close-out-docs .co-doc-files { display: flex; gap: 6px; flex-wrap: wrap; }
.close-out-docs .co-tasks-head { margin-top: 18px; }
.close-out-docs .co-doc-side { display: grid; justify-items: end; gap: 4px; }
@media (max-width: 640px) { .close-out-docs .co-doc { grid-template-columns: 1fr; } .close-out-docs .co-doc-side { justify-items: start; } }
/* The quick buttons on their own line under the name (2026-11-16). */
.close-out-docs .co-doc { grid-template-columns: minmax(0, 1fr) auto; }
.close-out-docs .co-doc-side:has(.quick-status) { grid-column: 1 / -1; }
.close-out-docs .co-doc-side .quick-status-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* An agent's other sign-in emails (2026-11-03). */
.portal-other { margin-top: 4px; }
.portal-other-emails { display: grid; gap: 6px; margin-top: 6px; max-width: 520px; }
.portal-other-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 6px; align-items: center; }
/* Needs from you, simpler (2026-11-03): the document and when, the address,
   what's asked folded. */
.portal-need-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.portal-need-asked summary { cursor: pointer; color: var(--text-muted); }
.portal-need-asked[open] summary { margin-bottom: 2px; }
/* Their TC in a card of their own. */
.panel.portal-tc-card { margin-bottom: var(--s2); }
.panel.portal-tc-card .portal-tc { border: 0; padding: 0; }
.portal-highlight-go { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
/* On a phone the agent's own photo isn't needed. */
@media (max-width: 700px) { .portal-head .portal-photo { display: none; } }
/* The portal home on a phone (2026-11-03): what they tap first. The welcome,
   Needs from you and the tiles (three across, icon and name) before their
   card and TC; on a computer the order is as it was. */
.portal-stack { display: flex; flex-direction: column; }
.portal-stack > * { min-width: 0; }
@media (max-width: 700px) {
  .portal-stack > .portal-welcome { order: 1; }
  .portal-stack > .portal-needs { order: 2; }
  .portal-stack > .portal-home { order: 3; margin-bottom: var(--s2); }
  .portal-stack > .portal-head { order: 4; }
  .portal-stack > .portal-tc-card { order: 5; }
  .portal-greeting .portal-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .portal-greeting .portal-tile { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 4px; text-align: center; }
  .portal-greeting .portal-tile .portal-tile-icon { width: 34px; height: 34px; }
  .portal-greeting .portal-tile .portal-tile-text .small { display: none; }
  .portal-greeting .portal-tile .portal-tile-text .strong { font-size: 12px; line-height: 1.2; }
}
/* The Team Portal's files under contract, first (2026-11-03). */
.panel.portal-team-files { display: grid; gap: 8px; margin-bottom: var(--s2); }
.portal-tf-list { display: grid; gap: 6px; }
.portal-tf-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); text-decoration: none; }
.portal-tf-row:hover { border-color: var(--accent); }
.portal-tf-what { display: grid; gap: 2px; min-width: 0; }
.portal-tf-when { white-space: nowrap; color: var(--text-muted); }
.portal-stack > .panel.portal-greeting { margin-bottom: var(--s2); }
@media (max-width: 700px) { .portal-stack > .portal-team-files { order: 2; } .portal-stack > .portal-greeting { order: 3; } }

/* The agent's home, redesigned (2026-11-03): header with their photo, one
   search-and-ask box, six short buttons, a needs line, the pipeline. */
.portal-top.with-avatar .portal-theme, .portal-top.with-avatar .signout { display: none; }
.portal-avatar-wrap { position: relative; margin-left: auto; }
.portal-avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; border: 2px solid var(--coral); padding: 0; background: var(--surface-sunk); color: var(--text); font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.portal-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portal-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 240px; display: grid; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.portal-menu[hidden] { display: none; }
.portal-menu-who { padding: 6px 8px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.portal-menu-item { display: flex; align-items: center; gap: 8px; padding: 8px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.portal-menu-item:hover, .portal-menu-item:focus-visible { background: var(--surface-sunk); outline: none; }
.portal-menu-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; }
.portal-hello-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 4px 0 14px; }
.portal-hello-text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.portal-hello-row .portal-hello { margin: 0; }
.portal-hello-row .portal-highlight { margin: 0; padding: 0; background: none; }
/* One look for every toggle (Lindsey, 2026-11-03: "The white background for selected is clearer"): the shared selected style. */
.segmented button.on, .portal-scope button.on { background: var(--text); color: var(--bg); }
.portal-chrome-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 12px; border: 1px solid color-mix(in srgb, var(--coral) 35%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--coral) 9%, var(--surface)); }
.portal-chrome-line-shot { width: 64px; height: 40px; object-fit: cover; object-position: right top; border-radius: 6px; }
.portal-search { position: relative; margin: 0 0 14px; max-width: none; }
.portal-search-field { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); }
.portal-search-field:focus-within { border-color: var(--coral); }
.portal-search-input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; padding: 8px 0; color: var(--text); outline: none; }
.portal-search-hint { margin: 6px 14px 0; }
.portal-search-list { position: absolute; left: 0; right: 0; top: 54px; z-index: 50; display: grid; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.portal-search-list[hidden] { display: none; }
.portal-search-hit { display: grid; gap: 2px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.portal-search-hit:hover, .portal-search-hit:focus-visible { background: var(--surface-sunk); outline: none; }
.portal-search-hit.ask { display: flex; align-items: center; gap: 6px; color: var(--accent); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }
.portal-search .portal-cece-thread:not(:empty) { margin-top: 10px; display: grid; gap: 8px; }
.portal-actions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
@media (min-width: 900px) { .portal-actions-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.portal-action { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.portal-action:hover { border-color: var(--coral); }
.portal-action-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-sunk); color: var(--accent); }
.portal-action.primary { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 10%, var(--surface)); }
.portal-needs-line { margin-bottom: 14px; }
.portal-needs-line[hidden] { display: none; }
.portal-needs-go { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--chip-yellow-fg) 35%, transparent); border-radius: 10px; background: var(--chip-yellow-bg); color: var(--chip-yellow-fg); font: inherit; text-align: left; cursor: pointer; }
.portal-needs-go .portal-team-go { margin-left: auto; }
.portal-needs-go.late { border-left: 4px solid var(--red); }
.portal-pipe-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.portal-pipe-head .portal-h { margin: 0; }
.portal-pipe-list { display: grid; gap: 6px; }
.portal-pipe-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); text-decoration: none; }
.portal-pipe-row:hover { border-color: var(--coral); }
.portal-pipe-photo { width: 56px; height: 42px; border-radius: 6px; object-fit: cover; display: grid; place-items: center; background: var(--surface-sunk); color: var(--text-muted); }
.portal-pipe-what { display: grid; gap: 2px; min-width: 0; }
.portal-pipe-dots { display: flex; gap: 3px; margin-top: 2px; }
.portal-pipe-dots .cal-dot { width: 8px; height: 8px; }
.portal-pipe-when { display: grid; justify-items: end; gap: 2px; white-space: nowrap; }
@media (max-width: 700px) { .portal-top.with-avatar #who { display: none; } .portal-pipe-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; } .portal-pipe-photo { width: 44px; height: 34px; } }
@media (max-width: 700px) { body .portal-chrome-line { display: none; } }
/* Sign in: Google, or an emailed link (2026-11-03). */
.signin-choice .signin-email { display: grid; gap: 8px; max-width: 360px; margin: 8px auto 0; text-align: left; }
.signin-choice .signin-email input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 16px; background: var(--surface); color: var(--text); }
/* The agent home on a computer (2026-11-03: "not a wide mobile version"):
   the box and the pipeline on the left, a sidebar on the right. A phone
   keeps its one column. */
.portal-desk { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.portal-desk-main { min-width: 0; }
.portal-desk-side { display: grid; gap: 12px; }
.portal-desk-side .portal-needs { margin: 0; }
.panel.portal-side-card { display: grid; gap: 8px; }
.portal-side-card .portal-h { margin: 0; }
.portal-side-card .portal-tc { border: 0; padding: 0; max-width: none; }
.portal-quick-list { display: grid; gap: 4px; }
.portal-quick { display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.portal-quick:hover, .portal-quick:focus-visible { background: var(--surface-sunk); outline: none; }
.portal-side-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.portal-side-count { display: grid; gap: 2px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-sunk); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.portal-side-count:hover { border-color: var(--coral); }
.portal-desk-side .portal-chrome-line { margin: 0; }
.portal-pipe-next { display: grid; gap: 2px; min-width: 0; }
@media (min-width: 900px) {
  .portal-desk { grid-template-columns: minmax(0, 1fr) 360px; }
  .portal-desk-side { position: sticky; top: 72px; }
  .portal-mobile-only { display: none !important; }
  .portal-pipe-row { grid-template-columns: 64px minmax(0, 1fr) 120px; }
  .portal-pipe-photo { width: 64px; height: 46px; }
}
@media (max-width: 899px) { .portal-desk-only { display: none !important; } }
/* CeCe's answers under the box use the width (2026-11-03: "Make this all span the page width"). */
.portal-search .portal-cece-a { max-width: none; }
.portal-search .portal-cece-q { max-width: 90%; }
.portal-search .portal-cece-thread { max-height: none; overflow: visible; }
/* Mine / Team on the pipeline (2026-11-03), and the needs line bolder in dark. */
.portal-pipe-head { flex-wrap: wrap; align-items: center; }
.portal-pipe-head .portal-scope { margin-left: auto; }
.portal-pipe-links { display: flex; gap: 12px; width: 100%; order: 3; }
:root[data-theme="dark"] .portal-needs-go { background: #E8A33A; color: #1A1305; border-color: #F2B95C; }
:root[data-theme="dark"] .portal-needs-go .chip.red { background: #A94A0C; color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .portal-needs-go { background: #E8A33A; color: #1A1305; border-color: #F2B95C; }
  :root:not([data-theme="light"]) .portal-needs-go .chip.red { background: #A94A0C; color: #fff; }
}
.portal-needs-line { margin-bottom: 14px; }
/* The pipeline's one-tap filters (2026-11-03). */
.portal-pipe-filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 4px; -webkit-overflow-scrolling: touch; }
.portal-pipe-filters .chip-btn { white-space: nowrap; flex: none; }
.portal-pipe-filters .chip-btn.on { background: var(--coral); border-color: var(--coral); color: #fff; }
/* Mine / Team at the top of Stats, History and the Calendar (2026-11-03). */
.portal-panel-scope { margin-bottom: 12px; }
.portal-panel-scope button.on { background: var(--navy, #0E374A); color: #fff; }
/* CeCe's tour (2026-11-03): the part shown lit, the rest dimmed, CeCe's bubble beside it. */
.tour-shade { position: fixed; inset: 0; z-index: 900; }
.tour-ring { position: fixed; z-index: 901; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(8, 22, 30, .62); outline: 3px solid var(--coral); pointer-events: none; }
.tour-bubble { position: fixed; z-index: 902; display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); border-top: 4px solid var(--coral); }
.tour-who { display: flex; align-items: center; gap: 8px; }
.tour-cece { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--coral); color: #fff; font-weight: 800; font-family: 'Fraunces', serif; }
.tour-title { font-size: 17px; }
.tour-text { margin: 0; line-height: 1.45; }
.tour-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tour-nav { display: inline-flex; gap: 6px; }
@media (prefers-reduced-motion: reduce) { .tour-ring { transition: none; } }
/* The pipeline laid out their way (2026-11-03): list or two roads, sort, group. */
.portal-pipe-count { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--text-muted); }
.portal-pipe-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.portal-pipe-pick { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); }
.portal-pipe-pick select { padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.portal-pipe-group { margin: 8px 2px 0; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.portal-pipe-split { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.portal-pipe-road { display: grid; gap: 6px; align-content: start; min-width: 0; }
.portal-pipe-road .portal-subhead { margin: 0; }
@media (min-width: 900px) {
  .portal-pipe-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .portal-pipe-split .portal-pipe-row { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .portal-pipe-split .portal-pipe-next { display: none; }
}
/* One tap to their own calendar (2026-11-03). */
.portal-cal-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.portal-cal-app { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); text-decoration: none; }
.portal-cal-app:hover { border-color: var(--coral); }
.portal-cal-app.mine { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 10%, var(--surface)); }
/* Needs from you opening in place on a phone (2026-11-03). */
.portal-needs-inline { margin-top: 8px; }
.portal-needs-inline .portal-needs { margin: 0; }
.portal-needs-inline .portal-needs-fold > summary { display: none; }
.portal-needs-go .portal-team-go svg { transition: transform .15s; }
.portal-needs-go .portal-team-go.open svg { transform: rotate(180deg); }
/* The box draws the eye without competing with the alert (2026-11-03: "slightly
   lighter background so it draws attention ... it feels a little lost"):
   a lighter field, a soft coral edge, Ask CeCe in coral. */
.portal-search-field { background: color-mix(in srgb, var(--text) 10%, var(--surface)); border-color: color-mix(in srgb, var(--coral) 45%, var(--line)); box-shadow: 0 4px 14px rgba(0, 0, 0, .14); }
.portal-search-field .btn { background: var(--coral); border-color: var(--coral); color: #fff; }
.portal-search-field .btn:hover { filter: brightness(1.05); }
.portal-search-input::placeholder { color: color-mix(in srgb, var(--text) 60%, transparent); }
:root[data-theme="light"] .portal-search-field { background: #fff; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .portal-search-field { background: #fff; } }
/* The Agent Portal on a phone (2026-11-03): "Agents aren't going to use what
   they cant read": full size (not the team's 80%), bigger text; and each
   panel is a page of its own with Back, nothing of the page behind showing. */
.portal-drawer-back { display: none; }
@media (max-width: 700px) {
  html:has(.portal-app) { --page-zoom: 1; --vh: 1vh; --vw: 1vw; --fs-body: 16px; --fs-small: 14px; --fs-label: 13px; --fs-title: 18px; --fs-address: 22px; }
  html:has(.portal-app) .portal-action { font-size: 15px; }
  html:has(.portal-app) .portal-pipe-row .strong { font-size: 16px; }
  html:has(.portal-app) .portal-hello { font-size: 26px; }
  html:has(.portal-app) .portal-cal-ev, html:has(.portal-app) .portal-cal-num { font-size: 12px; }
  .portal-drawer, .portal-drawer.wide, .portal-drawer.file-drawer, .portal-drawer.contact-drawer { inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; border: 0; box-shadow: none; background: var(--bg); }
  .portal-drawer::backdrop { background: var(--bg); }
  .portal-drawer-head { justify-content: flex-start; padding: 12px 16px; background: var(--bg); }
  .portal-drawer-head .portal-name { font-size: 20px; flex: 1; min-width: 0; }
  .portal-drawer-back { display: inline-flex; align-items: center; gap: 2px; font-size: 16px; font-weight: 600; padding: 6px 0; }
  .portal-drawer-x { display: none; }
  .portal-drawer-body { padding: 12px 16px 32px; }
}
/* A panel's page on a phone fits the screen (2026-11-03): its columns shrink,
   rows of buttons wrap, wide charts scroll sideways. */
@media (max-width: 700px) {
  .portal-drawer-body { grid-template-columns: minmax(0, 1fr); }
  .portal-drawer-body > *, .portal-drawer-body .panel, .portal-stats-controls, .portal-stats-row { min-width: 0; max-width: 100%; }
  .portal-drawer .segmented { flex-wrap: wrap; height: auto; }
  .portal-drawer .portal-stats-row { flex-wrap: wrap; }
  .portal-drawer svg { max-width: none; }
  .portal-drawer .portal-section { overflow-x: auto; }
}
/* The pipeline's views in place: List, Cards, Columns (2026-11-03). */
.portal-pipe-columns { overflow-x: auto; }
.portal-pipe-columns .portal-board-card { display: grid; gap: 3px; text-decoration: none; color: var(--text); }
.portal-board-photo { width: 100%; height: 96px; object-fit: cover; border-radius: 8px; margin-bottom: 4px; }
/* A transaction at a glance (2026-11-03: "front of house"). */
.panel.portal-glance-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: var(--s2); }
.portal-glance-photo { width: 120px; height: 90px; object-fit: cover; border-radius: 12px; }
.portal-glance-who { display: grid; gap: 6px; min-width: 0; }
.portal-glance-who .portal-name { margin: 0; }
.portal-glance-big { font-size: 20px; font-weight: 700; }
.portal-steps { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.portal-step { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--text-muted); }
.portal-step-dot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: var(--surface); color: #fff; }
.portal-step.done { color: var(--text); }
.portal-step.done .portal-step-dot { background: var(--green, #1E8E5A); border-color: var(--green, #1E8E5A); }
.portal-step.now { color: var(--text); font-weight: 700; }
.portal-step.now .portal-step-dot { border-color: var(--coral); background: var(--coral); }
.panel.portal-glance { display: grid; gap: 8px; margin-bottom: var(--s2); }
.panel.portal-glance .portal-h { margin: 0; }
.portal-glance-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.portal-glance-row:first-of-type { border-top: 0; }
.portal-glance-needs { border-left: 4px solid var(--chip-yellow-fg); }
.portal-glance-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.portal-all-details { margin: 4px 0 var(--s2); }
.portal-all-details > summary { cursor: pointer; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); list-style: none; }
.portal-all-details > summary::-webkit-details-marker { display: none; }
.portal-all-details > summary::before { content: '▸ '; color: var(--text-muted); }
.portal-all-details[open] > summary::before { content: '▾ '; }
.portal-all-details[open] > summary { margin-bottom: 12px; }
@media (max-width: 700px) { .portal-glance-photo { width: 84px; height: 64px; } .portal-glance-big { font-size: 18px; } }
.portal-pipe-when-label { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }

/* Sign-in and the Agent Portal at full size on a computer too (Lindsey,
   2026-11-03: "your font is micro size compared to even the small font in
   chat"). The team's own Carbon stays at 80%. */
html:has(.signin), html:has(.portal-app) { --page-zoom: 1; --vh: 1vh; --vw: 1vw; }
@media (min-width: 701px) { html:has(.portal-app) { --fs-body: 15px; --fs-small: 13.5px; --fs-label: 12.5px; } }
.signin { max-width: 480px; padding: 40px 36px; gap: 16px; font-size: 16px; }
.signin h1 { font-size: 32px; }
.signin p, .signin .small, .signin label { font-size: 15px; }
.signin .btn { font-size: 16px; padding: 12px 22px; }
.signin-choice .signin-email { gap: 10px; width: 100%; max-width: 400px; box-sizing: border-box; }
.signin-choice .signin-email input { padding: 12px 14px; font-size: 17px; }

/* Half a screen (Lindsey, 2026-11-03: "I almost work exclusively that way"):
   the address gets the room; the next-deadline column goes (the dots stay)
   and the side column narrows. */
@media (min-width: 900px) and (max-width: 1199px) {
  .portal-desk { grid-template-columns: minmax(0, 1fr) 300px; }
  .portal-pipe-row { grid-template-columns: 56px minmax(0, 1fr) 110px; }
  .portal-pipe-photo { width: 56px; height: 42px; }
}
/* Ask CeCe in from the box's rounded edge (Lindsey, 2026-11-03: "oddly
   crowding the edge of the typing box"). */
.portal-search-field { padding: 8px 10px 8px 16px; }
.portal-search-field .btn { border-radius: 999px; margin-right: 2px; }
/* A file's alerts (2026-11-03): overdue in red, due soon in amber. */
.portal-alerts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.portal-alert { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: var(--fs-small); font-weight: 700; line-height: 1.5; }
.portal-alert.late { background: #C62828; color: #fff; }
.portal-alert.soon { background: #F2B705; color: #3A2A00; }
/* No name in the header (Nicole, 2026-11-03: they know it's theirs from the
   welcome and their photo); the photo's menu has it. */
.portal-top.with-avatar #who { display: none; }
/* Sort and Group side by side on a phone (Lindsey, 2026-11-03). */
@media (max-width: 700px) {
  .portal-pipe-tools { flex-wrap: nowrap; gap: 10px; }
  .portal-pipe-pick { flex: 1 1 0; min-width: 0; }
  .portal-pipe-pick select { flex: 1; min-width: 0; width: 100%; }
}
/* A day picked on the calendar (2026-11-03). */
.portal-cal-day { cursor: pointer; }
.portal-cal-day.picked { outline: 2px solid var(--text); outline-offset: -2px; }
.portal-cal-picked { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 2px 8px; }
.portal-cal-more > summary { cursor: pointer; list-style: none; color: var(--text-muted); display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; }
.portal-cal-more > summary::-webkit-details-marker { display: none; }
.portal-cal-more > div { margin-top: 4px; }
/* The month centered between its arrows (Lindsey, 2026-11-03); Today and the
   key on the line below. */
.portal-cal-head > strong { flex: 1 1 auto; text-align: center; font-size: 1.15em; }
.portal-cal-head > .link { order: 4; }
.portal-cal-head > .portal-cal-key { order: 5; flex-basis: 100%; justify-content: center; }
.portal-cal-head > .link { flex-basis: 100%; text-align: center; }
/* The header on a phone's page (2026-11-03). */
.portal-drawer-brand { display: none; }
@media (max-width: 700px) {
  .portal-drawer-brand { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
  .portal-drawer-brand .portal-brand { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--text); cursor: pointer; }
}
/* Client Care on a phone (Nicole, 2026-11-03: "pretty messy on mobile. I
   dont know what im looking at"): one card per client: the name and email,
   the address, then the next follow-up (2026-11-13); no column headings. */
@media (max-width: 760px) {
  .portal-care-table .tr.th { display: none; }
  .portal-care-table .tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 12px 4px; }
  .portal-care-table .tr > * { white-space: normal; overflow: visible; text-overflow: clip; text-align: left; }
  .portal-care-table .tr > :nth-child(2) { color: var(--text-muted); }
  .portal-care-table .tr > :nth-child(4) { font-weight: 600; }
}
/* More room between suggestions (Nicole, 2026-11-03: "a larger border
   between each suggested ... the border is not big enough from one section
   to the next"): each its own card. */
.email-sug { gap: 6px; padding: 12px; margin-top: 12px; border: 1px solid var(--line); border-top: 3px solid var(--line); border-radius: 10px; background: var(--surface); }
.email-sug[data-done="1"] { border-left: 4px solid var(--chip-green-fg); }
.invoice-note { margin-top: 8px; }
/* Shorter need cards (Lindsey, 2026-11-03: "Make them shorter"). */
.portal-need { padding: 6px 10px; }
.portal-need-text { gap: 1px; }
.portal-need-line { flex-wrap: nowrap; min-width: 0; }
.portal-need-line .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The time-off notice in the corner, not over the page (2026-11-03). */
.time-off-toast.fv-toast { left: auto; right: 20px; transform: none; max-width: 340px; }
.portal-pipe-head .portal-pipe-title { font-size: 22px; text-transform: none; letter-spacing: 0; color: var(--heading, var(--text)); }
/* Which property to draft for (2026-11-03). */
.portal-draft-pick { display: grid; gap: 6px; margin-top: 8px; }
.portal-draft-file { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); text-decoration: none; }
.portal-draft-file:hover { border-color: var(--coral); }
.portal-draft-file svg { grid-column: 2; grid-row: 1 / span 2; color: var(--text-muted); }
/* What needs them, all one yellow (Lindsey, 2026-11-03: "Keep the entire
   card the same yellow as alert. We want less competing words and colors"):
   the panel the bar's yellow, the items light cards on it with dark text,
   Overdue as bold dark-red words, no red edges. */
.portal-needs.portal-section { background: var(--chip-yellow-bg); border-color: color-mix(in srgb, var(--chip-yellow-fg) 30%, transparent); color: var(--chip-yellow-fg); }
.portal-needs .portal-h, .portal-needs .strong { color: inherit; }
.portal-needs .portal-need { background: rgba(255, 255, 255, .55); border: 0; border-left: 0; color: inherit; }
.portal-needs .portal-need.overdue { border-left: 0; }
.portal-needs .muted, .portal-needs .portal-need-asked summary { color: inherit; opacity: .8; }
.portal-need-when { font-weight: 700; white-space: nowrap; }
.portal-need-when.late { color: #9B1C1C; }
.portal-needs .btn.secondary { background: transparent; border-color: currentColor; color: inherit; white-space: nowrap; }
:root[data-theme="dark"] .portal-needs.portal-section { background: #E8A33A; color: #1A1305; border-color: #F2B95C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .portal-needs.portal-section { background: #E8A33A; color: #1A1305; border-color: #F2B95C; } }
/* Brought in on a computer (Lindsey, 2026-11-03: "Bring everything in so it
   doesn't span the whole page"): the portal in a centered column, the
   pipeline's cards three across. */
@media (min-width: 900px) {
  .portal-app .portal-page { max-width: 1240px; margin: 0 auto; }
  .portal-app .portal-pipeline .portal-files { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}
/* Carbon for Chrome in the portal's header (2026-11-03). */
@media (min-width: 900px) {
  .portal-top .portal-chrome-btn { margin-left: auto; margin-right: 10px; }
  .portal-top.with-avatar:has(.portal-chrome-btn) .portal-avatar-wrap { margin-left: 0; }
}
.portal-hello-row[hidden] { display: none; }
/* A panel as a page in the home (2026-11-03). */
.portal-home-page { display: grid; gap: 14px; }
.portal-home-page-title { margin: 0; font-size: 24px; }
/* The heading as the phone's bar; its arrow in the panel's dark text (2026-11-03). */
.portal-needs .portal-needs-title { margin: 0; font-size: 17px; font-weight: 700; text-transform: none; letter-spacing: 0; color: inherit; }
.portal-needs .portal-needs-fold > summary::before { color: inherit; }
.portal-needs .portal-needs-fold > summary { color: inherit; }
/* The pipeline list (Lindsey, 2026-11-04): bigger photos, the badges in
   their own column, "Closing in 13 days" with the date under it. */
.portal-pipe-row { grid-template-columns: 96px minmax(0, 1fr) auto 150px !important; grid-template-areas: "photo what badges when"; gap: 14px; }
.portal-pipe-row > .portal-pipe-photo { grid-area: photo; width: 96px; height: 68px; border-radius: 8px; }
.portal-pipe-row > .portal-pipe-what { grid-area: what; }
.portal-pipe-row > .portal-pipe-badges { grid-area: badges; display: flex; justify-content: flex-end; }
.portal-pipe-row > .portal-pipe-when { grid-area: when; }
.portal-pipe-badges .portal-alerts { margin: 0; justify-content: flex-end; }
@media (max-width: 700px) {
  .portal-pipe-row { grid-template-columns: 72px minmax(0, 1fr) auto !important; grid-template-areas: "photo what when" "photo badges when"; column-gap: 10px; row-gap: 4px; }
  .portal-pipe-row > .portal-pipe-photo { width: 72px; height: 54px; }
  .portal-pipe-row > .portal-pipe-badges { justify-content: flex-start; }
  .portal-pipe-row > .portal-pipe-badges:empty { display: none; }
}
.portal-pipe-row > .portal-pipe-when { text-align: right; }
@media (max-width: 700px) {
  .portal-pipe-row > .portal-pipe-when { white-space: normal; max-width: 104px; font-size: 14px; }
  .portal-pipe-row > .portal-pipe-when .strong { font-size: 14px !important; line-height: 1.25; }
}
/* The task page (Nicole, 2026-11-04). The template: one line, not green
   (green reads as done). */
.task-template { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); background: var(--surface-sunk); border-radius: var(--radius); padding: 8px 10px; margin-bottom: 6px; }
/* Picking another template: its results open in the page, tall enough to read. */
.task-message-panel .tp-menu { position: static; max-height: 360px; margin-top: 4px; box-shadow: none; }
/* For this task: light yellow. */
.panel.for-task { background: color-mix(in srgb, var(--chip-yellow-bg, #FFF4D6) 70%, var(--surface)); border-color: color-mix(in srgb, var(--chip-yellow-fg, #8A5A00) 25%, var(--line)); }
.panel.for-task > h3 { color: var(--chip-yellow-fg, #8A5A00); }
/* The agent's facts in the header bar, beside their name (no band of its own). */
.detail-title .detail-facts { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.detail-title .detail-facts .agent-facts { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; border: 0; background: none; }
.task-file-emails { margin: 0; }
.panel.for-task > summary h3 { color: var(--chip-yellow-fg, #8A5A00); }
/* No gaps from empty boxes (2026-11-04: "fix this gapping"). */
.task-detail .detail-body .col > div:empty, .task-detail .detail-body .col > div:not(:has(*:not(:empty))) { display: none; }

/* A team birthday (2026-11-05): brand coral, not an alert. */
.birthday-bar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 16px; background: color-mix(in srgb, var(--coral, #F47D5F) 18%, var(--surface, #fff)); color: var(--heading, #0E374A); font-size: 14px; }
.birthday-bar[hidden], .my-away-bar[hidden] { display: none; }
.my-away-bar { display: flex; align-items: center; justify-content: center; gap: 12px; }

/* Your own Inbox layout (2026-11-05): labels and list sized by their edge,
   labels hidden to a strip, the email list beside, above or below. */
.ib-box-col { position: sticky; top: var(--s2); display: grid; gap: 6px; align-content: start; min-width: 0; }
.ib-box-col > .ib-boxes { position: static; }
.ib-box-toggle { justify-self: start; padding: 2px 4px; }
.ib-middle { position: relative; min-width: 0; }
.ib-col-grip { position: absolute; z-index: 4; }
.ib-col-grip.side { top: 0; right: -10px; width: 10px; height: 100%; cursor: col-resize; }
.ib-col-grip.bottom { left: 0; right: 0; bottom: -10px; height: 10px; cursor: row-resize; }
.ib-col-grip::after { content: ''; position: absolute; border-radius: 2px; background: transparent; transition: background .15s; }
.ib-col-grip.side::after { top: 8px; bottom: 8px; left: 4px; width: 3px; }
.ib-col-grip.bottom::after { left: 8px; right: 8px; top: 4px; height: 3px; }
.ib-col-grip:hover::after, .ib-col-grip.dragging::after { background: var(--accent); }
.ib-layout:not(.list-top):not(.list-bottom) .ib-col-grip.for-stacked, .ib-layout.list-top .ib-col-grip.for-beside, .ib-layout.list-bottom .ib-col-grip.for-beside { display: none; }
.ib-layout.labels-hidden { --ib-boxes-w: 44px !important; }
.ib-layout.labels-hidden .ib-boxes, .ib-layout.labels-hidden .ib-box-col > .ib-col-grip { display: none; }
.ib-layout.labels-hidden .ib-box-toggle { font-size: 20px; }
.ib-layout-menu { position: relative; }
.ib-layout-menu > summary { list-style: none; cursor: pointer; }
.ib-layout-menu > summary::-webkit-details-marker { display: none; }
.ib-layout-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: grid; gap: 6px; width: 260px; padding: 12px; }
.ib-layout-row { display: flex; gap: 6px; flex-wrap: wrap; }
.ib-layout-pop p { margin: 4px 0 0; }
@media (min-width: 1101px) {
  .ib-layout { grid-template-columns: var(--ib-boxes-w, 210px) var(--ib-list-w, minmax(260px, 360px)) minmax(0, 1fr); }
  .ib-layout.with-file { grid-template-columns: var(--ib-boxes-w, 200px) var(--ib-list-w, minmax(240px, 300px)) minmax(400px, 1fr) minmax(0, var(--ib-file-w, 460px)); }
  .ib-layout.list-top, .ib-layout.list-bottom { grid-template-columns: var(--ib-boxes-w, 210px) minmax(0, 1fr); }
  .ib-layout.list-top.with-file, .ib-layout.list-bottom.with-file { grid-template-columns: var(--ib-boxes-w, 200px) minmax(400px, 1fr) minmax(0, var(--ib-file-w, 460px)); }
  .ib-layout.list-top > .ib-box-col, .ib-layout.list-bottom > .ib-box-col { grid-column: 1; grid-row: 1 / span 2; }
  .ib-layout.list-top > .ib-file-panel, .ib-layout.list-bottom > .ib-file-panel { grid-column: 3; grid-row: 1 / span 2; }
  .ib-layout.list-top > .ib-middle { grid-column: 2; grid-row: 1; order: 0; margin-bottom: 8px; }
  .ib-layout.list-top > .ib-reader { grid-column: 2; grid-row: 2; }
  .ib-layout.list-bottom > .ib-reader { grid-column: 2; grid-row: 1; }
  .ib-layout.list-bottom > .ib-middle { grid-column: 2; grid-row: 2; order: 0; }
  .ib-layout.list-top .ib-list, .ib-layout.list-bottom .ib-list { max-height: var(--ib-list-h, 34vh); }
}
@media (min-width: 1101px) and (max-width: 1500px) {
  .ib-layout.with-file:not(.list-top):not(.list-bottom) { grid-template-columns: var(--ib-boxes-w, 200px) minmax(400px, 1fr) minmax(0, var(--ib-file-w, 420px)); }
  .ib-layout.with-file:not(.list-top):not(.list-bottom) .ib-col-grip.for-beside { display: none; }
}
@media (max-width: 1100px) { .ib-box-col { position: static; } .ib-col-grip, .ib-box-toggle { display: none; } .ib-layout.labels-hidden .ib-boxes { display: grid; } }

/* The emails and the file: sized by the edge between them (2026-11-06). */
@media (min-width: 1101px) {
  /* The emails narrower from the start, the file taking the rest (Nicole,
     2026-11-06: "make the email column smaller by default so task fits"). */
  .fv-with-email { grid-template-columns: var(--email-w, 280px) 10px minmax(0, 1fr); column-gap: 6px; }
  .fv-with-email > .fv-email-grip { order: 0; }
  .fv-with-email > :not(aside):not(.email-beside):not(.fv-email-grip) { order: 1; }
  /* Folded, the grip is hidden, so two columns: the bar and the file (Maryjane,
     2026-12-03: the file was put in the grip's 0px column). */
  .fv-with-email:has(> .email-beside.folded) { grid-template-columns: 44px minmax(0, 1fr); }
  .fv-with-email:has(> .email-beside.folded) > .fv-email-grip { display: none; }
}
.fv-email-grip { position: sticky; top: 73px; height: calc(calc(100 * var(--vh, 1vh)) - 90px); cursor: col-resize; display: flex; justify-content: center; }
.fv-email-grip::after { content: ''; width: 3px; height: 100%; border-radius: 2px; background: transparent; transition: background .15s; }
.fv-email-grip:hover::after, .fv-email-grip.dragging::after { background: var(--accent); }
.fv-email-grip::before { content: ''; position: absolute; top: 50%; width: 3px; height: 44px; transform: translateY(-50%); border-radius: 2px; background: var(--line); }
@media (max-width: 1100px) { .fv-email-grip { display: none; } }

/* Finalize Processing: the TCs' counts beside the Managing TC pick, both narrow (2026-11-06). */
.finalize-top { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 320px); gap: 8px 32px; align-items: start; margin-bottom: 8px; }
.finalize-top .kv-row { display: flex; justify-content: space-between; gap: 16px; }
.finalize-top .intake-grid { grid-template-columns: minmax(0, 1fr); }
.finalize-top select { max-width: 100%; }
@media (max-width: 700px) { .finalize-top { grid-template-columns: minmax(0, 1fr); } }

/* Justine's notes (2026-11-08): our side on the compliance lists, ticks for
   marking many Ready to Submit at once, Out for signature folding. */
.cpx-side { margin-left: 6px; vertical-align: middle; }
.cpx-row-pick { display: flex; align-items: center; gap: 6px; }
.cpx-row-pick > .cpx-row { flex: 1; min-width: 0; }
.cpx-pick, .cpx-pick-all { flex: none; width: 16px; height: 16px; margin: 0 6px 0 0; cursor: pointer; vertical-align: middle; }
.cpx-bulk-wrap { position: sticky; top: 0; z-index: 3; }
.cpx-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.cpx-bulk[hidden] { display: none; }
.cpx-band-fold > summary { cursor: pointer; list-style: revert; }
.cpx-fold-hint { margin-left: auto; }

/* Nothing in an email runs under the file beside it (2026-11-08). */
.ib-reader { overflow-x: clip; }
.ib-reader .ib-file, .ib-reader .ib-file-actions { min-width: 0; }

/* The other side's file, one click (2026-11-08). */
.ib-file-others .ib-switch { border: 1px solid var(--accent); font-weight: 600; }

.cpx-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* Real Slack (2026-11-09): the count on the top bar's button. */
.topbar-slack-count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--accent); color: var(--on-accent, #0E374A); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.topbar-slack-count[hidden] { display: none; }
.slack-open { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }

.queue-row-title .doc-pick { margin: 0 6px 0 0; vertical-align: middle; }

/* Intake: the scheduled inspections folded (2026-11-10). */
.insp-scheduled-fold { padding: 6px 8px; }
.insp-scheduled-fold > summary { cursor: pointer; padding: 4px 0; }

/* The home warranty order emails, one colored box that folds (2026-11-10). */
.hw-mail-fold { margin: 10px 0; border: 1px solid #5DCAA5; background: #E1F5EE; border-radius: 10px; padding: 8px 12px; }
.hw-mail-fold > summary { cursor: pointer; color: #085041; padding: 2px 0; }
.hw-mail-fold[open] > summary { margin-bottom: 6px; }
.hw-mail-fold .hw-mail-thread { background: #FFFFFF; border: 1px solid #9FE1CB; border-radius: 8px; padding: 6px 10px; margin-top: 6px; }

/* The Holiday Switch's vacation responder (2026-11-10). */
.vac-panel textarea, .vac-panel input[type=text] { width: 100%; box-sizing: border-box; }
.vac-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 16px; }
.vac-on { font-weight: 700; }

/* Intake: every email about the property listed, scrolling past ~10 (2026-11-12). */
.eb-threads .eb-rows { max-height: 480px; overflow: auto; }

/* ---- The Inbox like Gmail (Nicole only for now, 2026-11-12) ---- */
.gm-top { display: flex; align-items: center; gap: 16px; margin: 4px 0 12px; flex-wrap: wrap; }
.gm-search { flex: 1 1 420px; max-width: 760px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 24px; background: var(--surface-sunk); color: var(--text-muted); }
.gm-search:focus-within { background: var(--surface); box-shadow: 0 1px 3px rgba(14,55,74,.25); }
.gm-search input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; font: inherit; font-size: 16px; color: var(--text); outline: none; padding: 0; }
.gm-top .head-actions { margin-left: auto; }
.ib-layout.gmail, .ib-layout.gmail.with-file, .ib-layout.gmail.list-top, .ib-layout.gmail.list-bottom { grid-template-columns: 236px minmax(0, 1fr) !important; gap: 12px; }
.ib-layout.gmail.with-file { grid-template-columns: 236px minmax(0, 1fr) minmax(0, var(--ib-file-w, 420px)) !important; }
.ib-layout.gmail > .ib-middle, .ib-layout.gmail > .ib-reader { grid-column: 2; grid-row: 1; order: 0 !important; }
.ib-layout.gmail > .ib-file-panel { grid-column: 3; grid-row: 1; }
.ib-layout.gmail:not(.reading) > .ib-reader { display: none; }
.ib-layout.gmail.reading > .ib-middle { display: none; }
.ib-layout.gmail .ib-col-grip, .ib-layout.gmail .ib-box-toggle { display: none; }
.gm-compose-btn { display: inline-flex; align-items: center; gap: 12px; justify-self: start; height: 56px; padding: 0 24px 0 18px; margin: 0 0 12px 4px; border: 0; border-radius: 16px; background: #FCE3DB; color: #0E374A; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 1px 3px rgba(14,55,74,.18); }
.gm-compose-btn:hover { box-shadow: 0 2px 6px rgba(14,55,74,.3); }
.ib-layout.gmail .ib-boxes { gap: 0; }
.ib-layout.gmail .ib-group-head { padding: 14px 0 4px 24px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.ib-layout.gmail .ib-box { height: 32px; padding: 0 16px 0 24px; border-radius: 0 16px 16px 0; font-size: 14px; }
.ib-layout.gmail .ib-box:hover { background: var(--surface-sunk); }
.ib-layout.gmail .ib-box.on { background: #FCE3DB; color: #0E374A; font-weight: 700; }
.ib-layout.gmail .ib-label-filter { margin: 4px 0 4px 24px; width: calc(100% - 32px); }
.ib-layout.gmail .ib-middle { background: var(--surface); border-radius: 16px; overflow: hidden; gap: 0; border: 1px solid var(--line); }
.gm-toolbar { padding: 6px 12px; border-bottom: 1px solid var(--line); }
.gm-toolbar .gm-account { margin-left: auto; }
.ib-layout.gmail .ib-list { border: 0; border-radius: 0; max-height: calc(calc(100 * var(--vh, 1vh)) - 200px); }
.ib-layout.gmail .ib-row-wrap { grid-template-columns: auto minmax(0, 1fr); align-items: center; border-bottom: 1px solid var(--line); background: var(--surface-sunk); }
.ib-layout.gmail .ib-row-wrap .ib-tick { margin: 0 4px 0 14px; }
.ib-layout.gmail .ib-row { display: flex; align-items: center; gap: 0; height: 40px; padding: 0 12px 0 10px; border-bottom: 0; background: transparent; font-size: 14px; white-space: nowrap; overflow: hidden; }
.ib-layout.gmail > .ib-middle .ib-list > .ib-row { border-bottom: 1px solid var(--line); background: var(--surface-sunk); }
.ib-layout.gmail .ib-row-wrap:has(.ib-row.unread), .ib-layout.gmail .ib-list > .ib-row.unread { background: var(--surface); }
.ib-layout.gmail .ib-row-wrap:hover, .ib-layout.gmail .ib-list > .ib-row:hover { box-shadow: inset 1px 0 0 var(--line), inset -1px 0 0 var(--line), 0 1px 3px rgba(14,55,74,.22); position: relative; z-index: 1; }
.ib-layout.gmail .ib-row.on { background: #FCE3DB; }
.ib-layout.gmail .ib-row-top { display: contents; }
.ib-layout.gmail .ib-from { order: 1; flex: 0 0 200px; overflow: hidden; text-overflow: ellipsis; padding-right: 12px; }
.ib-layout.gmail .ib-row-top .muted { order: 2; margin-left: -10px; padding-right: 12px; }
.ib-layout.gmail .ib-subject { order: 3; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ib-layout.gmail .ib-snippet { order: 4; flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text-muted); white-space: nowrap; }
.ib-layout.gmail .ib-snippet::before { content: ' \2013  '; white-space: pre; }
.ib-layout.gmail .ib-snippet .chip { font-size: 12px; padding: 1px 6px; border-radius: 4px; vertical-align: 1px; }
.ib-layout.gmail .ib-date { order: 5; flex: 0 0 auto; margin-left: 12px; font-size: 13px; }
.ib-layout.gmail .ib-row.unread .ib-date { font-weight: 700; color: var(--text); }
.ib-layout.gmail .ib-reader { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 20px 20px; }
.ib-layout.gmail .ib-head { display: grid; gap: 8px; }
.ib-layout.gmail .ib-title { font-size: 22px; font-weight: 400; margin: 4px 0 0; }
.gm-back { justify-self: start; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.gm-back:hover { background: var(--surface-sunk); }
.ib-layout.gmail .ib-actions .btn { border-radius: 20px; padding-inline: 20px; }
.ib-gmail-page .gm-compose { position: fixed; z-index: 2000; right: 24px; bottom: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 80px); overflow: auto; background: var(--surface); color: var(--text); border-radius: 12px 12px 0 0; box-shadow: 0 8px 28px rgba(14,55,74,.3); }
.gm-compose-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 0 8px 0 16px; background: var(--surface-sunk); border-radius: 12px 12px 0 0; }
.gm-compose-body { padding: 8px 16px 14px; }
.gm-compose.min .gm-compose-body { display: none; }
.gm-icon-btn { width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; }
.gm-icon-btn:hover { background: var(--line); }
@media (max-width: 1100px) { .ib-layout.gmail, .ib-layout.gmail.with-file { grid-template-columns: 1fr !important; } .ib-layout.gmail > * { grid-column: 1 !important; grid-row: auto !important; } .ib-layout.gmail .ib-from { flex-basis: 120px; } }

/* The file's documents to attach: one a row, in columns (2026-11-12). */
.doc-choices { display: grid; gap: 6px; }
.doc-choices .dch-find { width: 100%; max-width: 360px; }
.doc-choices .phase-group-body { display: grid !important; gap: 0; padding: 2px 0 6px 0; }
.doc-choices .doc-choice { display: grid; grid-template-columns: 18px minmax(0, 1.3fr) minmax(70px, auto) minmax(0, 1.4fr); align-items: center; gap: 10px; padding: 5px 8px; border-bottom: 1px solid var(--line, #E6DED2); }
.doc-choices .doc-choice:hover { background: var(--surface-sunk, #F5EFE6); }
.doc-choices .doc-choice[hidden] { display: none; }
.doc-choices .dch-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-choices .dch-file { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-choices .dch-status { white-space: nowrap; }
@media (max-width: 640px) { .doc-choices .doc-choice { grid-template-columns: 18px minmax(0, 1fr) auto; } .doc-choices .dch-file { display: none; } }
/* The portal's line, as Carbon's (2026-11-12). */
.portal-progress { grid-column: 1 / -1; padding-top: 12px !important; border-top: 1px solid var(--line); }
.portal-progress .ps-btn { cursor: default; font-size: 12px; }
.portal-progress .ps-label { font-weight: 600; color: var(--text); }

/* The portal's social post (2026-11-12). */
.portal-post-kinds { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.portal-post-preview { max-width: 480px; }
.portal-post-canvas { width: 100%; height: auto; border-radius: 10px; display: block; border: 1px solid var(--line); }
/* A file's tools, bigger and square, the full width (Nicole, 2026-11-12:
   "should be more noticeable and a bit larger, square them off in that
   section making them stretch the full length"). */
.portal-glance-actions { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.portal-glance-actions > .btn, .portal-glance-actions > a.btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 84px; padding: 12px 10px; border-radius: 10px; font-size: 15px; font-weight: 700; text-align: center; background: var(--surface); border: 2px solid var(--coral, #E0694B); color: var(--text); white-space: normal; line-height: 1.2; }
.portal-glance-actions > .btn svg { width: 22px; height: 22px; color: var(--coral, #E0694B); }
.portal-glance-actions > .btn:hover { background: var(--surface-sunk); }
.portal-glance-actions > .btn.primary { grid-column: 1 / -1; min-height: 56px; flex-direction: row; background: var(--coral, #E0694B); color: #fff; }
.portal-glance-actions > .btn.primary svg { color: #fff; }
.portal-file-cece { margin-top: 12px; }

/* Upload on an agent's document (2026-11-12). */
.portal-glance-side { display: inline-flex; align-items: center; gap: 8px; }
.portal-doc-upload { margin-left: auto; }

/* Privacy and data deletion (2026-11-12). */
.legal-page { max-width: 760px; margin: 40px auto; padding: 0 20px 60px; line-height: 1.6; }
.legal-page h2 { margin-top: 28px; font-size: 18px; }

/* A mention's note opens it (2026-11-12). */
.mention-what.clickable { cursor: pointer; color: inherit; text-decoration: none; display: block; }
.mention-what.clickable:hover .mention-text { text-decoration: underline; }
.detail-title .last-edit { flex-basis: 100%; margin: 0; }

/* Replies after the opened email (2026-11-12): an alert tint, burnt orange
   (red/blue/purple stay for the sides). */
.ib-msg.ib-msg-newer { background: var(--red-bg); border-left: 4px solid var(--red); border-radius: 6px; padding-left: 10px; margin-bottom: 4px; }
.ib-msg.ib-msg-newer[open] { background: transparent; }
.ib-newer-tag { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: var(--red); color: var(--surface); font-size: 11px; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; }

/* A hidden button stays hidden (2026-11-12: Draft a document showed an empty
   coral square; .btn's display beat [hidden]). */
.btn[hidden], button[hidden] { display: none !important; }

/* Drafting outside Nevada: greyed, the note on hover (2026-11-13). */
.is-soon, .is-soon:hover { opacity: .5; cursor: not-allowed; filter: grayscale(.6); }
.portal-draft-file.is-soon { display: flex; justify-content: space-between; gap: 8px; }

/* A service package's description on hover or tap (2026-11-13). */
.portal-service { position: relative; }
.portal-svc-info { position: relative; display: inline-flex; align-items: center; margin-left: 6px; color: var(--link); cursor: help; vertical-align: middle; }
.portal-svc-tip { display: none; position: absolute; z-index: 50; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); max-height: 50vh; overflow-y: auto; width: min(340px, 80vw); padding: 10px 12px; border-radius: 8px; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: 13px; font-weight: 400; line-height: 1.45; white-space: pre-line; text-align: left; }
.portal-svc-info:hover .portal-svc-tip, .portal-svc-info:focus .portal-svc-tip, .portal-svc-info.open .portal-svc-tip { display: block; }
/* Under the package, from its left edge (2026-11-13: it cut off at the top). */
.portal-svc-info { position: static; }
.portal-svc-tip { left: 0; transform: none; top: calc(100% + 6px); }
/* The package description shows past its section (2026-11-13: Listing's
   section ends right under the packages and cut it off). */
.portal-section:has(.portal-services) { overflow: visible; }
.portal-section:has(.portal-svc-info.open), .portal-section:has(.portal-svc-info:hover), .portal-section:has(.portal-svc-info:focus) { position: relative; z-index: 5; }

/* Access requests on Agent Portal Access (2026-11-13). */
.access-requests { border-left: 4px solid var(--accent); }
.access-request { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.access-request-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.access-request-act input[type=email] { min-width: 240px; }

/* "powered by Carbon" beside the portal's name (Nicole, 2026-11-13). */
.portal-brand { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.portal-powered { font-size: 11px; font-weight: 500; letter-spacing: .03em; color: var(--text-muted); text-transform: lowercase; }
.portal-powered b { color: var(--accent); font-weight: 800; text-transform: none; letter-spacing: .02em; }

/* New order: an x on every pick (2026-11-13). */
.portal-pick-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.portal-pick-row > :first-child { flex: 1 1 260px; min-width: 0; }
.portal-x { flex: none; width: 28px; height: 28px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; }
.portal-x:hover { border-color: var(--red, #B5471B); color: var(--red, #B5471B); }
/* The calendar subscribe card folds (2026-11-13). */
.portal-cal-fold > summary { cursor: pointer; list-style: revert; }
.portal-cal-fold[open] > summary { margin-bottom: 6px; }
/* A client's page (2026-11-13: "beige on beige"): each file and the Client
   Care follow-ups on white cards with a soft edge, off the page's cream. */
.portal-home-page .portal-drawer-file, .portal-drawer .portal-drawer-file { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--heading); box-shadow: 0 1px 3px rgba(14, 55, 74, .08); }
.portal-home-page .portal-care, .portal-drawer .portal-care { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-top: 6px; }
/* Client Care at a glance (2026-11-13): the follow-up wraps; client names open. */
.portal-care-table .tr > .portal-care-next, .portal-care-table .tr > .portal-care-clients { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.portal-care-clients .link { padding: 0; }

/* Why a Client Care follow-up hasn't gone (2026-11-13). */
.portal-care-why { color: var(--text-muted); margin-top: 2px; }

/* A problem or an idea (2026-11-13). */
.report-kind { margin-bottom: 8px; }
/* The portal's line on a phone (2026-11-13: "i cant read the circles on
   mobile"): full names, wrapping, each step its own width; the line scrolls
   sideways when there are many. */
@media (max-width: 700px) {
  .progress-steps.portal-progress { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; }
  .progress-steps.portal-progress .ps { flex: 1 0 84px; scroll-snap-align: start; }
  .portal-progress .ps-btn { font-size: 13px; }
  .portal-progress .ps-label { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.2; text-align: center; overflow-wrap: normal; word-break: normal; padding: 0 2px; }
  .portal-progress .ps-day { font-size: 12px; }
  .portal-progress .ps-dot { width: 22px; height: 22px; }
  .progress-steps.portal-progress .ps::before { top: 11px; }
}

/* An email listed by its conversation, not its own label (2026-11-13). */
.ib-row.ib-row-thread:not(.on) { opacity: 0.8; }

/* Airtable slow (2026-11-19): one bar across the top of every page. */
.airtable-slow { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; align-items: flex-start; gap: 8px; max-width: min(760px, calc(100vw - 32px)); margin-top: 8px; padding: 10px 14px; border-radius: 10px; background: var(--amber-bg, #FFF4DB); color: var(--amber, #8A5A00); border: 1px solid currentColor; box-shadow: 0 8px 24px rgba(14, 55, 74, .18); font-size: 13px; line-height: 1.4; }
.airtable-slow svg { flex: none; margin-top: 1px; }
.airtable-slow.is-ok { background: var(--green-bg, #E6F4EA); color: var(--green, #1E6B35); }
.airtable-slow.is-error { background: var(--red-bg, #FDECE6); color: var(--red, #B5461F); }

/* Ready to submit: how many are on Closed files (2026-11-20). */
.cpx-tab-good { text-transform: none; font-size: 11px; font-weight: 700; color: var(--green, #1E6B35); }

/* A document by its own name in the compliance pickers (2026-11-20). */
.custom-doc-inline { display: grid; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.custom-doc-inline input[type=text] { width: 100%; }
.custom-doc-inline-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.custom-doc-inline-row select { max-width: 100%; }
/* Problem or idea while a pop-up is open (2026-11-23). */
.popup-report { position: fixed; left: 16px; bottom: 16px; z-index: 2147483000; box-shadow: 0 4px 14px rgba(14, 55, 74, .18); }
/* Airtable is slow, in the top bar (2026-11-23): not over the page. */
.airtable-slow.in-topbar { position: static; transform: none; margin: 0; padding: 4px 10px; border-radius: 999px; box-shadow: none; font-size: 12px; align-items: center; max-width: 340px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: auto; }
.airtable-slow.in-topbar span { overflow: hidden; text-overflow: ellipsis; }
/* People in this email, on the contacts (2026-11-24). */
.email-people { display: grid; gap: 8px; margin: 8px 0 12px; }
.email-person { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.email-person select { max-width: 200px; }

/* Document names stand out on the manager's pages (Nicole, 2026-11-25: "the title of each document kinda gets hidden in all the text on this page, make it bolder"). */
.mtask-doc-name, .mgr-doc-title { font-weight: 700; color: var(--text); }
/* The task's Internal Notes in the header, under the systems (2026-11-25). */
.mtask-head-notes { margin-top: 10px; display: grid; gap: 4px; max-width: 720px; }
.mgr-row-chips { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
/* Invoice Sent by file, agent or brokerage (2026-11-30). */
.bill-inv-agent-btns { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.bill-inv-head .btn + .btn { margin-left: 0; }

/* Commission intake behind a private link (web/src/forms-app.js, 2026-12-01). */
.cf-app { min-height: 100vh; width: 100%; background: var(--bg, var(--surface-sunk)); color: var(--text); }
.cf-top { box-sizing: border-box; width: 100%; display: flex; gap: 12px; align-items: baseline; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.cf-page { max-width: 760px; margin: 0 auto; padding: 16px 16px 64px; display: grid; gap: 14px; }
.cf-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: grid; gap: 10px; }
.cf-card > summary { cursor: pointer; font-weight: 700; list-style: none; }
.cf-card > summary::-webkit-details-marker { display: none; }
.cf-card > summary::after { content: "Hide"; float: right; font-weight: 400; color: var(--text-muted); font-size: 13px; }
.cf-card:not([open]) > summary::after { content: "Show"; }
.cf-deal { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 16px; margin: 0; }
.cf-deal dt { font-size: 12px; color: var(--text-muted); }
.cf-deal dd { margin: 0; font-weight: 600; }
.cf-q { display: grid; gap: 6px; }
.cf-q > .cf-label { font-weight: 600; }
.cf-q input[type="text"], .cf-q input[type="number"], .cf-q select, .cf-q textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); max-width: 100%; }
.cf-q textarea { min-height: 70px; }
.cf-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-choices label { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.cf-choices input:checked + span { font-weight: 700; }
.cf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.cf-money { display: inline-flex; gap: 4px; align-items: center; }
.cf-agent { border-left: 3px solid var(--line); padding-left: 12px; display: grid; gap: 10px; }
.cf-errors { border: 1px solid var(--red); color: var(--red); border-radius: 8px; padding: 10px 14px; }
.cf-errors ul { margin: 6px 0 0; padding-left: 18px; }
.cf-actions { display: flex; gap: 10px; align-items: center; }
.cf-done { text-align: center; padding: 28px 16px; }
.cf-pdf { width: 100%; height: 500px; border: 1px solid var(--line); border-radius: 6px; background: #fff; margin: 8px 0; }
.cf-page h1 { text-transform: none; }

/* Split a PDF from the email (web/src/pages/email-split.js, 2026-12-01). */
.ib-split { display: grid; gap: 8px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ib-split-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ib-split-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ib-split-row input { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; min-width: 180px; background: var(--surface); color: var(--text); }
.ib-split-parts { display: grid; gap: 4px; }
.ib-split-part { font-size: var(--fs-small); }

/* On both sides of the deal (2026-12-01): a burnt orange alert over the file. */
.ib-both-sides { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-bottom: 8px; border: 2px solid var(--red); border-left-width: 6px; border-radius: 10px; background: var(--red-bg); color: var(--red); }
.ib-both-text { display: grid; gap: 2px; min-width: 0; }
.ib-both-text .strong { font-size: 15px; }
.ib-both-btn { background: var(--red); color: var(--surface); border-color: var(--red); }
/* The task header's file line and agent line (2026-12-01). */
.detail-title .detail-file-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 2px; }
.detail-title .detail-agent-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 6px; }
.detail-title .detail-agent-line:empty { display: none; }
/* The task's closing on the right of its header, as on the file (2026-12-01). */
.detail-head > .detail-title { flex: 1 1 360px; min-width: 0; }
.detail-head > .detail-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.detail-head .detail-closing:empty { display: none; }
/* The commission pages while saving (2026-12-01). */
.cf-saving .cf-steps, .cf-saving .cf-card { opacity: 0.6; }
.cf-wait { display: flex; gap: 12px; align-items: center; margin: 12px 0; padding: 14px 16px; border-radius: 10px; background: var(--surface); border: 2px solid var(--coral); color: var(--heading); }
.cf-spinner { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--coral); animation: cf-spin 0.9s linear infinite; }
@keyframes cf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cf-spinner { animation: none; } }
/* Reject's "are you sure" on the approval page (2026-12-01). */
.cf-confirm { margin: 12px 0; padding: 14px 16px; border-radius: 10px; background: var(--surface); border: 2px solid var(--coral); }
.cf-confirm p { margin: 0 0 10px; color: var(--heading); }
.cf-confirm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* The client's Utility List (2026-12-01). */
.ul-body { background: #fff; --ul-accent: #1B3663; }
.ul-page { max-width: 960px; margin: 0 auto; padding: 24px 16px 40px; color: #1a1a1a; }
.ul-county { text-align: center; font-size: 32px; margin: 8px 0 4px; color: var(--ul-accent); letter-spacing: 0.02em; }
.ul-tahoe-note { text-align: center; font-weight: 700; margin: 0 0 12px; }
.ul-h { font-size: 18px; letter-spacing: 0.06em; color: var(--ul-accent); border-bottom: 2px solid var(--ul-accent); padding-bottom: 6px; margin: 24px 0 8px; }
.ul-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.ul-cols.single { grid-template-columns: 1fr; }
@media (max-width: 700px) { .ul-cols { grid-template-columns: 1fr; } .ul-county { font-size: 26px; } }
.ul-block h3 { font-size: 15px; margin: 14px 0 4px; }
.ul-rows { margin: 0; }
.ul-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dotted #d6d6d6; font-size: 14px; }
.ul-row dt { margin: 0; }
.ul-row dd { margin: 0; white-space: nowrap; text-align: right; }
.ul-row a { color: inherit; }
.ul-contacts .ul-block { margin-top: 0; }
.ul-card { border: 1px solid #e3e3e3; border-radius: 10px; padding: 16px; margin: 20px 0; }
.ul-gone, .ul-uncovered { text-align: center; }
.ul-tahoe { border-color: #1d4ed8; }
.ul-tahoe h2 { color: #1d4ed8; text-align: center; font-size: 18px; margin: 0 0 12px; }
.ul-agent { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; border-top: 2px solid var(--ul-accent); margin-top: 28px; padding-top: 20px; }
@media (max-width: 560px) { .ul-agent { grid-template-columns: 1fr; text-align: center; } }
.ul-headshot { max-height: 200px; max-width: 100%; justify-self: center; border-radius: 8px; }
.ul-agent-text h2 { margin: 0 0 6px; font-size: 20px; color: var(--ul-accent); }
.ul-agent-text p { margin: 2px 0; }
.ul-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; margin: 20px 0; }
.ul-logo { max-height: 200px; max-width: 45%; object-fit: contain; }
.ul-disclaimer { text-align: center; color: #7b7b7b; font-size: 12px; margin-top: 24px; }
/* The Agent Portal's shareable utility lists (2026-12-01). */
.portal-utility-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.portal-utility-actions { display: inline-flex; align-items: center; gap: 10px; }
/* The Listing Remarks form (2026-12-01): portal, Carbon and the website. */
.rm-form { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.rm-title { font-size: 22px; margin: 0 0 4px; color: var(--heading); }
.rm-field { display: flex; flex-direction: column; gap: 4px; }
.rm-label { font-weight: 700; color: var(--heading); font-size: 14px; }
.rm-field input, .rm-field textarea, .rm-text { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
.rm-agree { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.rm-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rm-wait { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 2px solid var(--coral); border-radius: 10px; }
.rm-h { font-size: 16px; margin: 16px 0 6px; color: var(--heading); }
.rm-text { width: 100%; min-height: 260px; line-height: 1.5; }
.rm-recap { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: 14px; }
.rm-recap dt { font-weight: 700; color: var(--heading); }
.rm-recap dd { margin: 0; white-space: pre-wrap; }
.rm-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 560px) { .rm-recap { grid-template-columns: 1fr; } }
.rm-public { background: #fff; }
.rm-page { max-width: 800px; margin: 0 auto; padding: 24px 16px 48px; }
.rm-foot { margin-top: 24px; }
.rm-embed .cf-top { display: none; }
.rm-embed .rm-page { padding-top: 8px; }
.topbar .topbar-news.portal-off { display: none; }
/* The co-op Utility Providers page (2026-12-01) */
.up-body { background: #f6f7f8; }
.up-page { max-width: 720px; margin: 0 auto; padding: 24px 16px 48px; }
.up-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: grid; gap: 14px; }
.up-logo { width: 56px; height: 56px; }
.up-title { margin: 0; font: 600 24px/1.25 var(--font-address); color: var(--heading); }
.up-form { display: grid; gap: 10px; }
.up-label { font-weight: 600; color: var(--heading); }
.up-req { color: var(--text-muted); }
.up-help { margin: 0; padding-left: 18px; color: var(--text-muted); display: grid; gap: 2px; }
.up-form textarea { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; resize: vertical; }
.up-current summary { cursor: pointer; font-weight: 600; color: var(--heading); }
.up-current pre { white-space: pre-wrap; font: inherit; font-size: 14px; background: #f6f7f8; border-radius: 8px; padding: 10px; margin: 8px 0 0; max-height: 320px; overflow: auto; }
.up-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.up-error { color: var(--alert, #b4501e); margin: 0; }
.up-actions { display: flex; justify-content: flex-start; }
.up-card p { margin: 0; }
/* The Email Template editor (2026-12-01) */
.te { display: grid; gap: 16px; max-width: 1100px; }
.te-row { display: grid; gap: 4px; }
.te-label { font-weight: 600; color: var(--heading); }
.te-row input[type=text], .te-row textarea, .te-row select { width: 100%; box-sizing: border-box; }
.te-fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 0; display: grid; gap: 8px; }
.te-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.te-check { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.te-body-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.te-body { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.te-helper { display: grid; gap: 6px; position: sticky; top: 12px; }
.te-tokens { display: flex; flex-wrap: wrap; gap: 4px; max-height: 340px; overflow: auto; }
.te-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 16px; }
.te-more summary { cursor: pointer; font-weight: 600; color: var(--heading); }
.te-more[open] { display: grid; gap: 10px; }
.te-file-hits { display: flex; flex-wrap: wrap; gap: 6px; }
.te-preview-body { white-space: pre-wrap; font: inherit; font-size: 14px; background: var(--surface-2, #f6f7f8); border-radius: 8px; padding: 10px; }
.te-warn { border-left: 4px solid var(--alert, #b4501e); background: #fdf3ee; padding: 8px 12px; border-radius: 6px; display: grid; gap: 6px; }
.te-warn ul { margin: 0; padding-left: 18px; }
.te .alert-text { color: var(--alert, #b4501e); }
@media (max-width: 800px) { .te-body-wrap { grid-template-columns: 1fr; } .te-helper { position: static; } }
.te-warn .btn { justify-self: start; }
.te-roles { align-items: end; }
.te-actions { display: flex; }
/* Billing, To Invoice: ticked files and the editable fees (2026-12-01) */
.bill-tick-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 10px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.bill-tick-bar[hidden] { display: none; }
.bill-inv-table .bill-in { width: 90px; text-align: right; }
.bill-inv-table tr.bill-zero td { color: var(--text-muted); }
.ib-from-file-picks { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* Document Approval (2026-12-01) */
.cf-doc-title { font-size: 20px; margin: 0 0 12px; }
.cf-doc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.cf-reject { display: grid; gap: 10px; margin-top: 12px; }
.cf-reject[hidden] { display: none; }
.cf-reject textarea { width: 100%; box-sizing: border-box; }
.cf-doc-actions[hidden] { display: none; }
/* Document Approval on a phone: the PDF's pages as pictures (2026-12-02) */
/* Document Approval: tall enough to show a whole letter page at Fit
   (2026-12-03), within the window. */
.cf-pdf.cf-pdf-fit { height: min(calc(100vh - 300px), 980px); min-height: 360px; }
.cf-pdf-pages { display: grid; gap: 10px; max-height: 70vh; overflow: auto; background: #eef0f2; border-radius: 8px; padding: 8px; }
.cf-pdf-page { width: 100%; height: auto; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); }

/* @mentions stay on screen (Nicole, 2026-12-02: Justine's @Alex only showed
   on Today; in the Inbox the bar had scrolled away). The bar sticks to the
   top of every page, and what else sticks to the top moves down by its
   height (--mention-h, set by mentions.js; 0 when there is nothing). */
.mention-bar { position: sticky; top: 0; z-index: 102; background: var(--red-bg); border-bottom: 3px solid var(--red); box-shadow: 0 2px 8px rgba(14, 55, 74, .12); }
.topbar { top: var(--mention-h, 0px); }
/* The side menu's full height only beside the page (a computer); on a phone
   it's the row of icons at the top (2026-12-03: it filled the screen). */
@media (min-width: 761px) { #nav { top: var(--mention-h, 0px); height: calc(calc(100 * var(--vh, 1vh)) - var(--mention-h, 0px)); } }
.ib-boxes, .ib-box-col, .ib-file-panel { top: calc(var(--s2) + var(--mention-h, 0px)); }
.ib-box-col > .ib-boxes { top: auto; }
aside.email-beside, .fv-email-grip { top: calc(73px + var(--mention-h, 0px)); }
@media (min-width: 1400px) { .cece-rail { top: calc(73px + var(--mention-h, 0px)); } }
