/* EGO Master LIVE: only what the live screens add. Everything else is the demo's styles.css. */
body.gated #shell { display: none; }
#gate { display: none; }
body.gated #gate { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.gate-card { background: var(--ge-bg); border: 1px solid var(--ge-border); border-radius: 22px; padding: 28px; width: 100%; max-width: 420px; }
.err { color: var(--bad); min-height: 18px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.span2 { grid-column: 1 / -1; }
.mob { display: flex; gap: 6px; }
.mob .dial { width: 92px; flex: none; padding-right: 4px; }
.checks { display: flex; flex-wrap: wrap; gap: 4px; }
.checks .chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; cursor: pointer; }
.fs { border: 1px solid var(--ge-border); border-radius: var(--r); padding: 12px 14px 14px; margin: 0; min-width: 0; }
.fs legend { font-weight: 600; font-size: 13px; padding: 0 6px; }
.sticky-actions { position: sticky; bottom: -24px; background: var(--ge-bg); padding: 12px 0; }
.empty { border-style: dashed; }
.side-note.live .dot { background: var(--ok); }

/* native pickers (the calendar on a date) follow the theme, so their icon shows on dark */
:root { color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }
:root[data-theme="dark"] { color-scheme: dark; }
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .85; }
/* ₹ … /-, sq ft, kg beside the box */
.adorn { display: flex; align-items: stretch; border: 1px solid var(--ge-border); border-radius: var(--r-sm, 10px); background: var(--ge-surface); overflow: hidden; }
.adorn .input { border: 0; border-radius: 0; flex: 1; min-width: 0; background: transparent; }
.adorn .pre, .adorn .suf { display: grid; place-items: center; padding: 0 10px; color: var(--ge-text-muted); background: var(--ge-surface-2); font-size: 13px; white-space: nowrap; }
.adorn:focus-within { outline: 2px solid var(--ge-primary); outline-offset: -1px; }
/* the kind of record, chosen at the top of the form */
.seg-kind { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-kind label { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border: 1px solid var(--ge-border); border-radius: 999px; cursor: pointer; }
.seg-kind label:has(input:checked) { border-color: var(--ge-primary); background: var(--ge-surface-2); font-weight: 600; }
.more { border: 1px dashed var(--ge-border); border-radius: var(--r); padding: 10px 14px; }
.more > summary { cursor: pointer; font-weight: 600; }
.more[open] > summary { margin-bottom: 10px; }

/* a stage board scrolls inside itself, never the page */
.board { max-width: 100%; min-width: 0; }
.stack > .board, .stack-s > .board { width: 100%; }

/* the list editor: a locked row looks settled */
.lrow.is-locked .input { opacity: .75; }
.lrow .lock { min-width: 38px; }

/* the bell, beside the logo, and its pop-up */
.side-top { display: flex; align-items: center; gap: 8px; }
.side-top .bell { margin-left: auto; position: relative; width: 34px; height: 34px; display: grid; place-items: center; }
.bell .nbadge { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--ge-primary-fill, #FB0B18); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 700; display: grid; place-items: center; padding: 0 4px; line-height: 1; }
.bell .nbadge[hidden] { display: none; }
#notif-pop { position: fixed; z-index: 2000; background: var(--ge-bg); border: 1px solid var(--ge-border); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.35); display: flex; flex-direction: column; max-height: min(70vh, 560px); overflow: hidden; }
.np-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 8px; }
.np-tabs { display: flex; gap: 4px; padding: 0 10px 8px; border-bottom: 1px solid var(--ge-border); }
.np-tab { background: none; border: 0; color: var(--ge-text-muted); padding: 6px 10px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.np-tab.on { background: var(--ge-surface-2); color: var(--ge-text); font-weight: 600; }
.np-tab i { font-style: normal; font-size: 11px; background: var(--ge-primary-fill, #FB0B18); color: #fff; border-radius: 8px; padding: 0 6px; }
.np-list { overflow-y: auto; padding: 6px; display: block; }
.np-page { overflow: visible; border: 1px solid var(--ge-border); border-radius: 12px; }
.np-head { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ge-text-muted); padding: 8px 8px 4px; }
.np-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 8px; border-radius: 10px; text-decoration: none; color: inherit; }
.np-item:hover { background: var(--ge-surface-2); }
.np-item.is-new .np-title::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ge-primary-fill, #FB0B18); margin-left: 6px; vertical-align: middle; }
.np-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--ge-text-muted); }
.np-dot.warn { background: var(--ge-warning); } .np-dot.bad { background: var(--ge-danger); } .np-dot.info { background: var(--ge-success); }
.np-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.np-title { font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.np-body { font-size: 12.5px; line-height: 1.4; color: var(--ge-text); opacity: .85; overflow-wrap: anywhere; }
.np-meta { font-size: 11.5px; color: var(--ge-text-muted); }
.np-note { font-size: 12.5px; color: var(--ge-text-muted); padding: 6px 8px; margin: 0; }
.np-src { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px; font-size: 13px; border-top: 1px solid var(--ge-border); }
.np-foot { border-top: 1px solid var(--ge-border); padding: 8px 14px; display: flex; justify-content: flex-end; }
.np-link { background: none; border: 0; color: var(--ge-primary); font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; }
/* a mistake, just above its field */
.field.has-err .input, .field.has-err .mob, .field.has-err .adorn, .field.has-err .msel-box { border-color: var(--ge-danger) !important; }
.ferr { position: relative; background: var(--ge-danger); color: #fff; font-size: 12px; line-height: 1.35; padding: 5px 9px; border-radius: 8px; margin-bottom: 6px; width: fit-content; max-width: 100%; }
.ferr::after { content: ''; position: absolute; left: 14px; bottom: -5px; border: 5px solid transparent; border-top-color: var(--ge-danger); border-bottom: 0; }
.near-err { position: fixed; z-index: 2100; max-width: min(360px, 92vw); background: var(--ge-danger); color: #fff; font-size: 12.5px; line-height: 1.4; padding: 8px 11px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.3); cursor: pointer; }
/* what is this? */
#hover-help { position: fixed; z-index: 2200; max-width: 300px; background: var(--ge-surface); color: var(--ge-text); border: 1px solid var(--ge-border); border-radius: 10px; padding: 9px 11px; font-size: 12.5px; line-height: 1.45; box-shadow: 0 12px 34px rgba(0,0,0,.3); pointer-events: none; }

/* Both: to look at; buttons that change something are hidden by hideChangeButtons() */
[hidden] { display: none !important; }   /* hidden means hidden, in the page and in pop-ups */
/* type-to-search dropdown (11 Oct) */
.cb { position: relative; }
.cb-sel { position: absolute !important; opacity: 0; pointer-events: none; width: 1px !important; height: 1px; overflow: hidden; }
.cb-q { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.cb-list { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px); max-height: 260px; overflow: auto; background: var(--ge-surface); border: 1px solid var(--ge-border); border-radius: var(--r-sm, 10px); box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 4px; }
.cb-list[hidden] { display: none; }
.cb-opt { padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.cb-opt.on, .cb-opt:hover { background: var(--ge-surface-2); }
.cb-none { padding: 8px 10px; }
hr.sep { border: 0; border-top: 1px dashed var(--ge-border); margin: 6px 0; }
/* 13 Oct, batch 3: a figure you can click to see the records behind it, and a target's progress bar */
.fig{background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer;text-decoration:underline dotted;text-underline-offset:3px;text-align:inherit}
.fig:hover,.fig:focus-visible{color:var(--ge-primary);text-decoration-style:solid}
.tg-bar{display:inline-block;width:56px;height:6px;border-radius:3px;background:var(--ge-border);vertical-align:middle;overflow:hidden}
.tg-bar>span{display:block;height:100%;background:var(--ge-warning)}
.tg-bar>span.ok{background:var(--ge-success)}
#toast.on [data-act]{pointer-events:auto}   /* an Undo inside a toast must be pressable (the toast itself lets clicks through) */

/* ---- the dealer portal (13 Oct, batch 4): phone first, one column, a bottom menu */
body.pt-on #shell { display: none; }
.pt { max-width: 680px; margin: 0 auto; min-height: 100vh; padding: 0 16px calc(84px + env(safe-area-inset-bottom, 0px)); }
.pt-top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 0; background: var(--ge-bg); border-bottom: 1px solid var(--ge-border); }
.pt-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-view { padding-top: 16px; padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }   /* B4-F1 item 3: the last card clears the fixed bottom menu */
.pt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.pt-head h1 { font-size: 24px; margin: 0; }
.pt-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pt-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; text-decoration: none; color: inherit; min-width: 0; }
.pt-tile .num { font-size: 22px; overflow-wrap: anywhere; }
.pt-item { display: flex; flex-direction: column; gap: 6px; padding: 14px; text-decoration: none; color: inherit; }
.pt-item.is-new { border-color: var(--info, #2563eb); }
.pt-item .btn { align-self: flex-start; }
.pt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pt-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pt-filters input[data-pk="q"] { grid-column: 1 / -1; }
.pt-filters .btn { justify-self: start; }
.pt-file { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--ge-border); padding-top: 8px; }
.pt-steps { display: flex; gap: 3px; }
.pt-steps span { flex: 1; height: 6px; border-radius: 3px; background: var(--ge-border); }
.pt-steps span.done { background: var(--ok); }
.pt-steps span.cur { background: var(--info, #2563eb); }
.pt-bar { height: 8px; border-radius: 4px; background: var(--ge-border); overflow: hidden; }
.pt-bar span { display: block; height: 100%; background: var(--ok); }
.pt-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pt-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; justify-content: center; gap: 2px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--ge-bg); border-top: 1px solid var(--ge-border); }
.pt-nav a { flex: 1; max-width: 136px; text-align: center; padding: 10px 4px; border-radius: 12px; text-decoration: none; color: inherit; font-size: 13px; font-weight: 600; }
.pt-nav a.on { background: var(--ge-border); }
@media (max-width: 380px) { .pt-filters, .pt-actions { grid-template-columns: 1fr; } }

/* R4: Design 500 fits at 1280 wide; headers and cells wrap instead of pushing Business brought out of view */
.d5-tbl .tbl th, .d5-tbl .tbl td { white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.d5-tbl .tbl th { min-width: 0; }
.d5-tbl .tbl td:first-child { min-width: 180px; }
/* S3: Dealers and Architects fit at 1280 (Looked after by never clipped): headings and cells wrap, tighter side padding */
.org-tbl .tbl th, .org-tbl .tbl td { white-space: normal; overflow-wrap: normal; word-break: normal; padding-left: 10px; padding-right: 10px; }
.org-tbl .tbl td:first-child { min-width: 170px; }
/* R6b: a page's tabs wrap onto a second row instead of running off the edge (dealer page at 1280: Displays stays reachable) */
.subtabs { flex-wrap: wrap; overflow-x: visible; row-gap: 2px; }
/* R8: the tabs of a grouped menu item (Dealers, Field team, Opportunities), above the screen's own tabs */
.sectabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 4px; border: 1px solid var(--ge-border); border-radius: 12px; background: var(--ge-surface, transparent); width: fit-content; max-width: 100%; }
.sectabs a { text-decoration: none; padding: 7px 14px; border-radius: 8px; color: var(--ge-text-muted); font-weight: 500; white-space: nowrap; }
.sectabs a:hover { color: var(--ge-text); }
.sectabs a.on { background: var(--ge-primary); color: var(--ge-on-primary, #111); font-weight: 600; }

/* Bhargav 18 Oct: the tile menu is always two columns of fixed pairs; an empty slot holds its place, and goes in the one-column folded menu */
@media (max-width: 1000px) { .navgrid { grid-template-columns: 1fr 1fr; } }
#shell.folded .navslot { display: none; }

/* S2 gate (Captain 18 Oct): the Save / Send bar sits clear of the raised + in the bottom bar, and the last field scrolls clear of it */
.fd .fd-savebar { bottom: calc(var(--fd-bar) + 34px + env(safe-area-inset-bottom, 0px)); margin-bottom: 24px; }
/* a picked file that is not an image (or will not draw): a file tile with its name, the X in its own corner */
.fd-thumb .fd-fname { display: none; }
.fd-thumb.is-file { display: grid; align-content: end; padding: 8px; border: 1px solid var(--fd-line, rgba(127,127,127,.3)); background: var(--fd-card); }
.fd-thumb.is-file .fd-fname { display: block; font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--fd-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* B1 22 Oct: a text box hidden until it is needed (a new address) hides its voice typing mic with it */
.vt-wrap:has(> textarea[hidden]) { display: none; }

/* B3: photos on record in the field app's Displays (SDR) */
.fd-sph { margin: 0; display: grid; gap: 4px; width: 104px; }
.fd-sph .fd-thumb { width: 104px; height: 88px; }
.fd-sph figcaption { font-size: 12px; line-height: 1.3; color: var(--fd-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-sph-acts { display: grid; gap: 4px; }
.fd-sph-acts a, .fd-sph-acts button { min-height: 40px; display: flex; gap: 6px; align-items: center; justify-content: center; font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid var(--fd-line, rgba(127,127,127,.3)); border-radius: 12px; background: var(--fd-card); color: inherit; cursor: pointer; }
.fd-sph-acts .fd-ic { width: 16px; height: 16px; }
/* G5 25 Oct round 2: an edited target's note is its own muted line under the row, never squeezing "Target for" */
[data-tg-table] tr.tg-chg td { padding-top: 0; white-space: normal; }
[data-tg-table] tr.tg-chg td > div { position: sticky; left: 14px; max-width: calc(100vw - 72px); }

/* ===== Batch 3 (25 Oct 2026), Picasso kit: U1 boards, U2 record page, U5 won note ===== */
/* U1 full width (over app/styles.css, which the build copies and never edits): no 1320px cap, a 24px gutter */
.wrap { max-width: none; margin: 0; }
/* sticky needs a non-scrolling clip on the content card (overflow:hidden made it a scroll box) */
#content { overflow: clip; min-width: 0; }   /* clip is not a scroll box, so the grid would size it to its widest content: min-width 0 keeps it in the viewport */
.stack > .board-box, .stack-s > .board-box { width: 100%; }
/* U1 boards: whole lanes, never a half-cut lane at the right edge */
.board-box { container-type: inline-size; min-width: 0; }
.board { --lanes: 1.25; grid-auto-columns: calc((100% - (var(--lanes) - 1) * 10px) / var(--lanes)); scroll-snap-type: x proximity; }
.lane { scroll-snap-align: start; min-width: 0; }
.lane h4 { align-items: flex-start; gap: 8px; }
.lane h4 > span:first-child { min-width: 0; overflow-wrap: break-word; }
.mini b { display: block; overflow-wrap: break-word; }
@container (min-width: 440px)  { .board { --lanes: 2; } }
@container (min-width: 620px)  { .board { --lanes: 3; } }
@container (min-width: 840px)  { .board { --lanes: 4; } }
@container (min-width: 1080px) { .board { --lanes: 5; } }
@container (min-width: 1400px) { .board { --lanes: 6; } }

/* U2 record page: main column + Activity column */
.rec-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 32%, 440px); gap: var(--s4); align-items: start; }
.rec-main { min-width: 0; }
.rec-aside { position: sticky; top: var(--s4); height: calc(100dvh - 2 * var(--s4)); display: flex; flex-direction: column; min-width: 0; }
.rec-aside > [data-activity] { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--s3); }
.rec-aside > [data-activity] > * + * { margin-top: 0; }
.rec-aside [data-open-fu] { flex: none; max-height: 38%; overflow: auto; }
.rec-aside [data-act-card] { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.rec-aside [data-act-filters] { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
.rec-aside [data-act-filters] .field { min-width: 0 !important; }
.rec-aside [data-act-filters] .input { min-height: 34px; padding: 5px 10px; font-size: 12.5px; }
.rec-aside [data-timeline], .rec-aside [data-act-empty] { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px; }
.rec-aside [data-act-logs] { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px !important; width: 100%; }
.rec-aside [data-act-logs] .btn { padding: 5px 6px; }
@media (max-width: 1100px) {
  .rec-grid { grid-template-columns: minmax(0, 1fr); }
  .rec-aside { position: static; height: auto; }
  .rec-aside [data-open-fu] { max-height: none; }
  .rec-aside [data-timeline], .rec-aside [data-act-empty] { overflow: visible; }
}
/* a dealer / architect / person tab holding a wide table (SDR, Samples, Orders...) keeps the whole width under 1500 px (R6b fit at 1280) */
@media (max-width: 1499px) {
  .rec-wide { grid-template-columns: minmax(0, 1fr); }
  .rec-wide .rec-aside { position: static; height: auto; }
  .rec-wide .rec-aside [data-open-fu] { max-height: none; }
  .rec-wide .rec-aside [data-timeline], .rec-wide .rec-aside [data-act-empty] { overflow: visible; }
}
@media (max-width: 420px) { .rec-aside [data-act-logs] { grid-template-columns: 1fr 1fr; } .rec-aside [data-act-filters] { grid-template-columns: 1fr; } }

/* U5 won note under the stage strip */
.won-note { margin: 2px 0 0; }
.won-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* the timeline scrolls inside the column: draw its line as a background so the dots are not clipped */
.rec-aside [data-timeline] { margin-left: 0; border-left: 0; padding-left: 22px; background: linear-gradient(var(--ge-border), var(--ge-border)) 4px 0 / 2px 100% no-repeat; }


/* U6 batch 3: the filter bar's record dropdowns use the same type-to-search box (cbEnhance in live.js) */
.flt-dd .cb { position: relative; display: inline-block; min-width: 0; }
.flt-dd .cb-q { font-weight: 600; field-sizing: content; width: auto; min-width: 0; max-width: 190px; padding: 0; background-image: none; text-overflow: ellipsis; }
@media (max-width: 760px) { .flt-dd .cb, .flt-dd .cb-q { width: 100%; max-width: 100%; } }
.flt-dd .cb-list { min-width: 220px; font-weight: 400; }
/* R3 batch 4: "Target for" keeps a readable width (name + level line); the table scrolls inside its frame, never the page */
[data-tg-table] th:first-child, [data-tg-table] tr:not(.tg-chg) > td:first-child { min-width: 170px; }
[data-tg-table] th:not(:first-child) { white-space: normal; }   /* long headings (Should be at today) take two lines so the table fits 1280 */

/* Leads L4 (26 Oct). G1: below 1500 px Value, Expected close and Added sit as a second line under City (their own columns
   show from 1500, field.css), and Owner / City wrap, so every column reads at 1280 without sideways scroll. */
.ld-2nd { margin-top: 4px; white-space: nowrap; }
@media (min-width: 1500px) { .ld-2nd { display: none; } }
@media (max-width: 1499px) and (min-width: 700px) {
  #view .ld-tbl .tbl th, #view .ld-tbl .tbl td { padding-left: 7px; padding-right: 7px; }   /* F3: 9 columns with Category, words whole */
  #view .ld-tbl .tbl td:nth-child(6) { white-space: normal; min-width: 90px; }
  #view .ld-tbl .tbl th:nth-child(6), #view .ld-tbl .tbl th:nth-child(7) { white-space: normal; }
}
/* F2 T-06: a long unbroken name, firm or campaign wraps inside its own cell, so no column grows past its share at 1280 */
#view .ld-tbl .tbl td:nth-child(1) { overflow-wrap: anywhere; }
@media (min-width: 1500px) { #view .ld-tbl .tbl th, #view .ld-tbl .tbl td { padding-left: 8px; padding-right: 8px; } }   /* F3: 12 columns at 1536, words whole */   /* the Lead cell; Category is column 2 (b1) */
#view .ld-tbl .tbl td:nth-child(3) { overflow-wrap: break-word; }   /* Source and campaign: whole words; only the Lead cell breaks inside a word (F3) */
#view .ld-tbl .tbl td:nth-child(1) { min-width: 88px; }
/* G3: the top search in the header, every screen */
.ts { position: relative; flex: 1 1 300px; max-width: 440px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--ge-border); border-radius: 999px; background: var(--ge-surface); margin-left: 12px; }
.ts .ic { width: 16px; height: 16px; flex: none; color: var(--ge-text-muted); }
.ts input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ge-text); font: inherit; font-size: 14px; outline: none; }
.ts:focus-within { border-color: var(--ge-text); }
.ts-pop { position: absolute; top: 44px; left: 0; right: 0; z-index: 40; display: grid; padding: 6px; border: 1px solid var(--ge-border); border-radius: 14px; background: var(--ge-surface); box-shadow: 0 12px 32px rgba(0,0,0,.14); max-height: 60vh; overflow: auto; }
.ts-pop[hidden] { display: none; }
.ts-hit { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; color: var(--ge-text); text-decoration: none; }
.ts-hit:hover, .ts-hit:focus { background: var(--ge-surface-2); }
.ts-none { padding: 8px 10px; }
@media (max-width: 700px) { .ts { margin-left: 0; flex-basis: 100%; order: 9; } }

/* C1 (27 Oct): the Kind pill is an outline, so it shows on both row colours, light and dark */
.badge.plain.line { background: transparent; border: 1px solid var(--ge-border); color: var(--ge-text); padding: 2px 8px; }
.ch-list { display: grid; gap: 8px; }
.ch-row { padding: 10px 12px; border: 1px solid var(--ge-border); border-radius: 10px; }
.ch-row.done { opacity: .78; }
.ch-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.ch-text { margin: 6px 0 4px; white-space: normal; overflow-wrap: anywhere; }
.ch-acts { display: flex; gap: 6px; flex-wrap: nowrap; flex-shrink: 0; }
@media (max-width: 720px) { .ch-head { flex-direction: column; align-items: flex-start; } .ch-acts { flex-wrap: wrap; } }
/* F1 item 8 (27 Oct): a segmented choice sitting on the page ground (lead form Category, Wholesale as) gets its track back:
   the kit's .fd-seg track is --fd-ground, the same as the page, so the three options read as plain text */
.fd-field > .fd-seg { background: var(--fd-card); box-shadow: inset 0 0 0 1px var(--fd-line); }
.fd-field > .fd-seg label:has(input:checked) { background: var(--fd-ink); color: var(--fd-on-ink); }
.fd-field.has-err > .fd-seg { box-shadow: inset 0 0 0 1.5px var(--fd-bad); }
/* M-A (28 Oct): the Orders table never outgrows its box, whatever the names: fixed columns, every cell wraps inside its own width */
[data-orderbook-table].org-tbl .tbl { table-layout: fixed; width: 100%; }
[data-orderbook-table].org-tbl .tbl th, [data-orderbook-table].org-tbl .tbl td { min-width: 0; overflow-wrap: break-word; }
[data-orderbook-table].org-tbl .tbl td .badge { white-space: normal; max-width: 100%; }
[data-orderbook-table].org-tbl .tbl th:nth-child(1) { width: 21%; }
[data-orderbook-table].org-tbl .tbl th:nth-child(2) { width: 12%; }
[data-orderbook-table].org-tbl .tbl th:nth-child(3) { width: 15%; }
[data-orderbook-table].org-tbl .tbl th:nth-child(4) { width: 11%; }
[data-orderbook-table].org-tbl .tbl th:last-child { width: 17%; }
/* F2 T-08: the retail order designs table keeps the Design column readable */
[data-rf-lines] table th:first-child, [data-rf-lines] table td:first-child { min-width: 140px; white-space: normal; }
/* F2 T-08: the retail order page (designs with Boxes blocked and Amount) keeps the whole width up to 1700 px; Activity sits below */
@media (max-width: 1700px) {
  .rec-xl { grid-template-columns: minmax(0, 1fr); }
  .rec-xl .rec-aside { position: static; height: auto; }
  .rec-xl .rec-aside [data-open-fu] { max-height: none; }
  .rec-xl .rec-aside [data-timeline], .rec-xl .rec-aside [data-act-empty] { overflow: visible; }
}
/* B5-F1 M-03 (28 Oct): a table in a narrow card (the record page's Open follow-ups, Inventory By warehouse) fits it: words wrap, tight padding */
.fu-side .tbl th, .fu-side .tbl td { white-space: normal; overflow-wrap: break-word; padding-left: 8px; padding-right: 8px; }
.fu-side .tbl td:last-child { width: 1%; }
.fu-side .tbl td:last-child .row { flex-direction: column; align-items: stretch; }   /* Done over Change, so the follow-up words get the width */
/* B5-F1 L-01: a stage pill keeps a round dot, has its own background over a striped row, and wraps as a clean two-line pill */
.badge::before { flex: none; }
.tbl td .badge.info { background: color-mix(in srgb, var(--ge-text) 10%, transparent); }
[data-orderbook-table].org-tbl .tbl td .badge { border-radius: 9px; line-height: 1.25; align-items: flex-start; }
[data-orderbook-table].org-tbl .tbl td .badge::before { margin-top: 4px; }
[data-opp-lines-table].org-tbl .tbl th, [data-opp-lines-table].org-tbl .tbl td { padding-left: 8px; padding-right: 8px; }
[data-opp-lines-table].org-tbl .tbl td:first-child { min-width: 140px; }
/* EGO6 B6/B7: Dealers and Architects start with the ID chip; the company name is the wide column, and the three EGO people fit at 1280 */
[data-org-table].org-tbl .tbl th, [data-org-table].org-tbl .tbl td { padding-left: 8px; padding-right: 8px; }
[data-org-table].org-tbl .tbl td:first-child { min-width: 0; width: 1%; white-space: nowrap; }
[data-org-table].org-tbl .tbl td:nth-child(2) { min-width: 150px; }
/* R2-F1 (9 Nov): M-1 the Dealers list's one EGO people column; headers never break one word per line */
.org-tbl .tbl th { white-space: nowrap; }
.ppl-col { display: grid; gap: 2px; }
.ppl-col > div { white-space: nowrap; }
/* the ID chip came first in B6: the 170 px floor belongs to the Company column, not to the ID */
.org-tbl .tbl td:first-child:has(> .idc) { min-width: 0; }
.org-tbl .tbl td:first-child:has(> .idc) + td { min-width: 140px; }
[data-org-table].org-tbl .tbl th, [data-org-table].org-tbl .tbl td { padding-left: 6px; padding-right: 6px; }
/* M-7 the Roadmap row opened from a No location / Far mark */
.fb-visit.is-focus { outline: 2px solid var(--ge-ink, currentColor); outline-offset: 2px; }
.vmark a[data-act="v-open"] { text-decoration: none; }
/* H-1 the Plan my day list at 375: each pick is as tall as its content (a scroll grid with max-height squeezed the rows to 60 px) */
.fd-sheet .fd-picks.scroll { grid-auto-rows: max-content; }
.fd-sheet .fd-picks.scroll > .fd-pick { min-height: max-content; }
