/* FF&E Schedule, step 1: the chosen mockup (CHOISI_ecran_principal.png). Colours and fonts come from the active brand
   profile (theme.ts sets the variables); the values below are Belle Casa's, used before the profile is read. */
:root {
  --paper: #faf8f5; --surface: #fdfcfa; --ink: #1d1b18; --muted: #6f6a63; --faint: #a19b93; --line: #e3ded6; --line-soft: #eeeae4;
  --side: #f4f1ec; --side-ink: #1d1b18; --side-on: #ebe4db; --sec: #f1ece5; --head: #f3f0eb;
  --accent: #8b725d; --accent-text: #7a634f; --on-accent: #fff; --accent-soft: #f2ede7; --sel: #efe8e0; --active: #8b725d;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif; --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif-scale: 1.12; --warn: #a1561c; --warn-bg: #fbf1e6; --bad: #9b2c2c; --bad-bg: #fbeceb; --ok: #2f6b45; --ai: #a26b00; --ai-bg: #fdf4df;
  --side-w: 222px; --gutter: 24px;
  --r: 8px; --r-s: 6px; /* Baden, 05/11/2026: "a nice soft line" on every box */
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { -webkit-tap-highlight-color: transparent; margin: 0; height: 100%; background: var(--paper); color: var(--ink); font: 14px/1.4 var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
body { overscroll-behavior: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-text); }
.ic { flex: none; display: block; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.hide { display: none !important; }
#app { height: 100%; }
.boot { height: 100%; display: grid; place-items: center; }

/* ---------------- spinner ---------------- */
.spin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent); border-top-color: var(--accent); animation: spin .8s linear infinite; vertical-align: -3px; margin-right: 6px; flex: none; }
.spin.small { width: 12px; height: 12px; border-width: 2px; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- buttons ---------------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 15px; border-radius: var(--r-s); border: 1px solid transparent; background: transparent; cursor: pointer; white-space: nowrap; text-decoration: none; color: var(--ink); font-size: 14.5px; line-height: 1; }
.btn:disabled { opacity: .4; cursor: default; }
.btn.outline { border-color: color-mix(in srgb, var(--ink) 18%, var(--paper)); background: var(--surface); }
.btn.outline:hover:not(:disabled) { border-color: color-mix(in srgb, var(--ink) 32%, var(--paper)); }
.btn.outline.on { background: var(--accent-soft); border-color: var(--accent); }
.btn.ghost:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.primary:hover:not(:disabled) { filter: brightness(.94); }
.btn.danger.outline { color: var(--bad); }
.btn.primary.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.icon { width: 40px; padding: 0; justify-content: center; }
.btn.small { height: 30px; padding: 0 10px; font-size: 13px; gap: 6px; }
.btn.small.icon { width: 30px; }
.btn.ghost.tuck { margin-left: -10px; text-decoration: underline; text-underline-offset: 3px; } /* a text-only button under a field: its words on the field's edge (30/10/2026) */
.link-btn { border: 0; background: none; padding: 0; color: var(--accent-text); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; display: inline-flex; align-items: center; gap: 4px; }
.only-phone { display: none !important; }
.only-touch { display: none !important; }
@media (pointer: coarse) { .only-touch { display: inline-flex !important; } }
:focus-visible { outline: 2px solid var(--active); outline-offset: 1px; }

/* ---------------- frame ---------------- */
.app { display: flex; height: 100%; }
.side { width: var(--side-w); flex: none; background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; border-right: 1px solid var(--line-soft); transition: width .18s ease; overflow: hidden; z-index: 30; }
.logo { display: block; padding: 26px 22px 34px; text-decoration: none; color: var(--side-ink); }
.logo img { display: block; max-width: 178px; max-height: 64px; object-fit: contain; object-position: left center; }
.logo-type { font-family: var(--serif); font-size: calc(19px * var(--serif-scale)); letter-spacing: .12em; text-transform: uppercase; line-height: 1.15; display: block; }
.side-nav { display: flex; flex-direction: column; }
.nav-i { display: flex; align-items: center; gap: 13px; height: 50px; padding: 0 22px; color: var(--side-ink); text-decoration: none; font-size: 15px; white-space: nowrap; }
.nav-i:hover { background: color-mix(in srgb, var(--side-on) 55%, transparent); }
.nav-i.on { background: var(--side-on); font-weight: 600; }
.side-bottom { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 14px 0; border-top: 1px solid var(--line-soft); padding-top: 8px; }
.side-bottom .nav-i { flex: 1; }
.side-bottom .fold { color: var(--muted); }
.side-folded .side { width: 64px; }
.side-folded .side .nav-l, .side-folded .side .logo img, .side-folded .side .logo-type { display: none; }
.side-folded .side .logo { padding: 22px 0 28px; height: 90px; }
.side-folded .side .nav-i { justify-content: center; padding: 0; }
.side-folded .side-bottom { flex-direction: column; padding-right: 0; gap: 4px; }
.side-folded .side-bottom .nav-i { width: 100%; }
.scrim { display: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100%; }
.top { display: flex; align-items: center; gap: 12px; padding: 14px var(--gutter) 0 calc(var(--gutter) + 15px); min-height: 62px; flex: none; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--faint); }
.crumbs .here { color: var(--muted); }
.search { display: flex; align-items: center; gap: 10px; width: min(366px, 34vw); height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--muted); }
.search:focus-within { border-color: var(--accent); }
.search-in { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; color: var(--ink); font-size: 14.5px; }
.search-in { text-overflow: ellipsis; }
.search-in::placeholder { color: var(--faint); }
.avatar { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink); }
.avatar-i { width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 88%, var(--accent)); color: var(--paper); display: grid; place-items: center; font-size: 14px; letter-spacing: .02em; }
.proj { padding: 6px var(--gutter) 0 calc(var(--gutter) + 12px); flex: none; transition: margin .15s ease; }
.proj-title { font-family: var(--serif); font-weight: 500; font-size: calc(33px * var(--serif-scale)); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.005em; }
.tabs { display: flex; gap: 0; overflow-x: auto; overflow-y: hidden; padding: 0 var(--gutter) 0 calc(var(--gutter) + 6px); border-bottom: 1px solid var(--line); flex: none; scrollbar-width: none; scroll-behavior: smooth; }
.tabs::-webkit-scrollbar { display: none; }
.tabs.more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 70px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 70px), transparent); }
.tabs.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 50px, #000 calc(100% - 70px), transparent); mask-image: linear-gradient(90deg, transparent, #000 50px, #000 calc(100% - 70px), transparent); }
.tabs.more-l:not(.more-r) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 50px); mask-image: linear-gradient(90deg, transparent, #000 50px); }
/* a page without tabs (the studio's Settings): no empty bar drawing its rule right under the avatar (30/10/2026) */
.tabs:empty { display: none; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 9px 17px 12px; white-space: nowrap; color: var(--ink); text-decoration: none; font-size: 14.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; opacity: .86; }
.tab:hover { opacity: 1; }
.tab.on { border-bottom-color: var(--accent); font-weight: 600; opacity: 1; }
.tab-n { font-size: 11.5px; min-width: 18px; padding: 0 5px; height: 18px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-text); display: inline-grid; place-items: center; font-weight: 600; }
.tab-n.zero { background: transparent; color: var(--faint); }
/* desktop: the tabs that do not fit go behind "More ▾" (second round, point 11); the row then never scrolls */
.tab.tab-over { display: none; }
.tabs.fitted { overflow-x: hidden; -webkit-mask-image: none !important; mask-image: none !important; }
.tab-more { background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; cursor: pointer; }
.tab-more svg { opacity: .7; }
.banner { display: none; flex: none; padding: 8px var(--gutter) 0; }
.banner.show { display: block; }
.b-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-radius: var(--r-s); background: var(--accent-soft); font-size: 13.5px; }
.b-line + .b-line { margin-top: 6px; }
.b-line.warn { background: var(--warn-bg); color: var(--warn); }
.b-line .bar { flex: 1 1 140px; max-width: 220px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 18%, transparent); overflow: hidden; }
.b-line .bar > span { display: block; height: 100%; background: var(--accent); }
.content { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ---------------- the schedule ---------------- */
.sched { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0 var(--gutter) 0; }
.sched-head { display: flex; align-items: flex-end; gap: 16px; padding: 20px 0 16px 14px; flex-wrap: wrap; flex: none; }
.sched-title { flex: 1 1 260px; min-width: 0; }
.sched-title h2, .page-head h2 { font-family: var(--serif); font-weight: 500; font-size: calc(30px * var(--serif-scale)); line-height: 1.1; margin: 0; }
.sched-sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.tools { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.tools-a, .tools-b { display: flex; gap: 8px; align-items: center; }
@media (min-width: 861px) { .tools.wrapped { flex: 1 0 100%; margin-left: 0; justify-content: space-between; } }
.tools-a .btn.ghost { color: var(--muted); }
.tsep { width: 1px; height: 24px; background: var(--line); margin: 0 2px; }
.btn.rev { gap: 8px; }
.btn.rev .dot, .rev-i .dot { width: 8px; height: 8px; border-radius: 50%; background: #d9a62e; flex: none; }
.btn.rev b { font-weight: 600; }
.btn.primary .btn-r { margin-left: -4px; }
.small-chev { opacity: .6; }
.scrolled .sched-head { padding-top: 10px; padding-bottom: 10px; }
.scrolled .sched-sub { display: none; }
.ctx { display: none; flex: none; margin: 0 0 8px; }
.ctx.show { display: flex; flex-direction: column; gap: 4px; }
.ctx-i { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px; border-radius: var(--r-s); background: var(--accent-soft); font-size: 13.5px; }
.ctx-i > span { flex: 1 1 200px; min-width: 0; }
.ctx-i.ai { background: var(--ai-bg); color: color-mix(in srgb, var(--ai) 70%, var(--ink)); }
.ctx-i.failed { background: var(--bad-bg); color: var(--bad); }
.ctx-i.note { background: var(--warn-bg); color: var(--warn); }
.ctx-i .btn.small { background: var(--surface); }
.notice { display: none; position: relative; flex: none; margin: 0 0 8px; padding: 8px 40px 8px 12px; border-radius: var(--r-s); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--paper)); font-size: 13.5px; }
.notice.show { display: block; }
/* view only, or a client's columns (after the integration): one quiet line above the grid, no colour of alarm */
.access-line { display: none; flex: none; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--muted); font-size: 13.5px; }
.access-line.show { display: flex; }
.access-line .ic { flex: none; }
.access-line.nudge { animation: access-nudge 1.2s ease-out; }
@keyframes access-nudge { 0% { color: var(--ink); background: var(--accent-soft); } 100% { color: var(--muted); background: transparent; } }
.access-line { border-radius: 3px; padding: 2px 6px; margin-left: -6px; }
.g-ro .g-cell, .g-ro .g-gutter { cursor: default; }
.notice > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.notice > div + div { margin-top: 5px; }
.notice [data-kind="failed"] { color: var(--bad); }
.notice [data-kind="partial"] { color: var(--warn); }
.notice .notice-x { position: absolute; top: 4px; right: 4px; }
.notice details { width: 100%; font-size: 12.5px; color: var(--muted); }
.grid-wrap { flex: 1; min-height: 0; display: flex; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 6px 12px; font-size: 12.5px; color: var(--muted); flex: none; }
.foot-l, .foot-r { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.foot .sep { color: var(--faint); }
.save { display: inline-flex; align-items: center; gap: 4px; }
.save[data-state="retrying"], .save[data-state="stopped"] { color: var(--warn); font-weight: 600; }

/* ---------------- grid ---------------- */
.grid { flex: 1; min-width: 0; position: relative; outline: none; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.g-scroll { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; }
.g-head { position: sticky; top: 0; z-index: 6; display: flex; height: 44px; background: var(--head); border-bottom: 1px solid var(--line); }
.g-hcell { flex: none; display: flex; align-items: center; gap: 5px; padding: 0 12px; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; user-select: none; background: var(--head); }
.g-htext { overflow: hidden; white-space: normal; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.g-corner { position: sticky; left: 0; z-index: 7; justify-content: center; padding: 0; }
.g-hcell.g-sticky { position: sticky; left: 44px; z-index: 7; }
.g-hcell[data-field="photo"] { padding-right: 4px; } /* in compact lines its 60 px cut the last letter of Image (recette 01/11/2026) */
.g-hmenu { position: sticky; right: 0; z-index: 7; padding: 0; overflow: visible; }
.g-hcell.g-private { color: var(--accent-text); }
.g-lock { color: var(--accent-text); }
.g-body { position: relative; }
.g-row { position: absolute; left: 0; display: flex; border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.g-gutter { flex: none; position: sticky; left: 0; z-index: 3; background: var(--surface); border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 13px; user-select: none; cursor: pointer; }
.g-row-sel .g-gutter { background: var(--sel); color: var(--ink); }
.g-shared { font-size: 10px; line-height: 15px; color: var(--accent-text); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 8px; padding: 0 4px; }
.g-cell { flex: none; position: relative; display: flex; align-items: center; padding: 6px 12px; border-right: 1px solid var(--line-soft); overflow: hidden; background: var(--surface); user-select: none; cursor: cell; font-size: 14px; }
.g-cell[data-field="notes"], .g-cell[data-field="website"] { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; }
.g-cell.g-sticky { position: sticky; left: 44px; z-index: 2; }
.g-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; white-space: pre-wrap; overflow: hidden; word-break: break-word; }
.compact .g-text { -webkit-line-clamp: 2; font-size: 13px; line-height: 1.3; }
.g-view, .g-pdf { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); text-decoration: none; cursor: pointer; }
.g-view span { text-decoration: underline; text-underline-offset: 3px; }
.g-view:hover, .g-pdf:hover { color: var(--ink); }
/* the drawn icon starts where the column's title starts (30/10/2026: the icons' own inner margin set them 2 to 4 px in) */
.g-pdf svg { margin-left: -4px; } .g-view svg { margin-left: -2px; }
.g-pdf.g-unv { color: var(--ai); }
.g-photo { padding: 5px; justify-content: center; }
.g-photo img { max-width: 100%; max-height: 58px; object-fit: contain; mix-blend-mode: multiply; }
.compact .g-photo img { max-height: 34px; }
.g-photo-broken img { display: none; }
.g-private { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.g-sel { background: var(--sel); }
.g-sel.g-private { background: var(--sel); }
.g-active { box-shadow: inset 0 0 0 2px var(--active); }
.g-filltarget { background: #f2f6ee; box-shadow: inset 0 0 0 1px #8bb35a; }
.g-linked::after { content: "↗"; position: absolute; top: 3px; right: 4px; font-size: 10px; color: var(--accent-text); }
/* grouped products (30/10/2026): a value shown from another line, a brush in its corner (a cell link has its arrow) */
.g-applied { background-image: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 40%); }
.g-from { position: absolute; top: 3px; right: 4px; line-height: 0; color: var(--accent-text); }
.g-ph-text { font-size: 12.5px; font-style: italic; color: var(--faint); }
.g-swatch { width: 12px; height: 12px; border-radius: 3px; object-fit: cover; vertical-align: -1px; margin-right: 5px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.g-noswatch { font-size: 11px; font-style: italic; color: var(--faint); text-align: center; line-height: 1.2; }
.g-linked { background-image: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 40%); }
.g-unverified { background: var(--ai-bg); }
.g-unverified .g-text { text-decoration: underline dotted color-mix(in srgb, var(--ai) 65%, transparent); text-underline-offset: 3px; }
.g-ai { position: absolute; top: 3px; right: 4px; font-size: 9px; font-weight: 700; letter-spacing: .04em; color: var(--ai); }
.g-state { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; border-radius: 9px; padding: 1px 7px 1px 5px; white-space: nowrap; }
.g-state.reading { color: var(--accent-text); background: var(--accent-soft); }
.g-state.failed { color: var(--bad); background: var(--bad-bg); }
.g-state.note { color: var(--warn); background: var(--warn-bg); }
.g-state.ask { color: var(--warn); background: var(--warn-bg); }
/* a photo or a spec sheet not copied (or being copied): a small mark, its words in its title (after review, 30/10/2026) */
.g-flag { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; }
.g-flag .spin { margin: 0; }
.g-flag.failed { color: var(--bad); background: var(--bad-bg); box-shadow: 0 0 0 1.5px var(--surface); }
.g-flag.reading { background: var(--accent-soft); box-shadow: 0 0 0 1.5px var(--surface); }
.g-photo .g-flag { position: absolute; right: 3px; bottom: 3px; }
.g-cell[data-field="datasheet"] .g-flag { margin-left: 6px; }
.g-reading .g-gutter { color: var(--accent-text); }
.g-shimmer { display: block; width: 70%; height: 46px; border-radius: 3px; background: linear-gradient(90deg, var(--line-soft), var(--sec), var(--line-soft)); background-size: 200% 100%; animation: shimmer 1.2s ease-in-out infinite; }
.g-shimmer.line { height: 10px; width: 80%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.g-rmenu { flex: none; position: sticky; right: 0; z-index: 2; display: flex; align-items: center; justify-content: center; background: var(--surface); border-left: 1px solid var(--line-soft); }
/* the sticky column ends on a fraction of a device pixel at some zooms (Pixel 7: 2.625): its own background carried a few
   pixels past it (cut by the grid's edge), so no sliver of a cell scrolling under it shows at the right (31/10/2026) */
.g-rmenu::after, .g-hmenu::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(100% - 1px); width: 5px; background: inherit; pointer-events: none; }
/* ...and cut at the end of its row: past the row it made the grid 4 px wider than its columns, so a schedule that fits its
   window scrolled sideways by 4 px (after the merge of 31/10/2026, the studio's 1440 px review). `clip` (not hidden): no
   scroll container, the sticky columns stay sticky */
.g-row, .g-head { overflow-x: clip; }
.g-more { border: 0; background: none; width: 34px; height: 34px; border-radius: 3px; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.g-more:hover { background: var(--sec); }
/* 30/10/2026: columns go on past the window (the edge falls between two columns, fitToEdge): a crisp 1 px divider on the "…"
   column, or at the grid's edge without it, says so (no blur: a shadow read as a grey smudge), over no text; a code (SKU) stays on one line, ended by "…" */
.g-xmore .g-rmenu, .g-xmore .g-hmenu { box-shadow: -1px 0 0 color-mix(in srgb, var(--ink) 30%, transparent); }
.grid.g-xmore.g-nomenu::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 1px; z-index: 8; pointer-events: none; background: color-mix(in srgb, var(--ink) 30%, transparent); }
.g-cell[data-field="sku"] .g-text { display: block; white-space: nowrap; text-overflow: ellipsis; word-break: normal; }
.g-section { position: absolute; left: 0; display: flex; align-items: center; background: var(--sec); border-bottom: 1px solid var(--line-soft); width: var(--gw); min-width: 100%; }
.g-section-inner { position: sticky; left: 0; display: flex; align-items: center; padding-left: 10px; }
/* a room's "…" (11/11/2026): the lines' column of "…", on the room's band and in its colour */
.g-section > .g-rmenu { margin-left: auto; align-self: stretch; background: inherit; }
.g-section-toggle { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; padding: 6px 8px; cursor: pointer; color: var(--ink); border-radius: var(--r-s); }
.g-section-toggle:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.g-section-title { font-weight: 600; font-size: 15.5px; }
.g-section-count { color: var(--ink); font-size: 14px; opacity: .82; }
.g-add { position: absolute; left: 0; width: var(--gw); min-width: 100%; display: flex; align-items: center; padding: 6px 0; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.g-add-box { position: sticky; left: 8px; display: flex; align-items: center; gap: 10px; height: 38px; width: calc(100cqw - 16px); max-width: calc(100vw - 32px); /* the table's width (30/10/2026: it stopped at 720 px) */ padding: 0 14px; border: 1px dashed color-mix(in srgb, var(--ink) 22%, var(--paper)); border-radius: var(--r-s); color: var(--muted); cursor: text; }
.grid { container-type: inline-size; }
.g-add-box:focus-within { border-style: solid; border-color: var(--active); background: var(--surface); }
.g-add-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--ink); }
.g-add-input::placeholder { color: var(--muted); }
.g-drop { outline: 2px dashed var(--active); outline-offset: -3px; }
.g-editor { position: absolute; z-index: 10; padding: 6px 14px; border: 2px solid var(--active); border-radius: 2px; resize: none; outline: none; box-shadow: 0 6px 22px rgba(0,0,0,.14); background: var(--surface); font-size: 14px; line-height: 1.4; overflow: auto; max-height: 60vh; }
.g-editor.sink { opacity: 0; pointer-events: none; z-index: -1; border: 0; box-shadow: none; padding: 0; caret-color: transparent; }
.g-fill { display: none; position: absolute; z-index: 8; width: 9px; height: 9px; background: var(--active); border: 1px solid #fff; cursor: crosshair; touch-action: none; }
/* every room folded: one quiet line under the last bar (31/10/2026), the same words on the cards */
.g-folded { position: absolute; left: 0; width: var(--gw); min-width: 100%; display: flex; align-items: center; }
.g-folded .folded-line { position: sticky; left: 0; padding-left: 46px; }
.folded-line { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); font-size: 13.5px; }
.folded-dot { color: var(--faint); }
.folded-show { border: 0; background: none; padding: 4px 2px; color: var(--ink); font: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); text-underline-offset: 3px; cursor: pointer; }
.folded-show:hover { text-decoration-color: currentColor; }
.pv-folded { padding: 6px 12px 10px 38px; }
.g-empty { display: none; position: absolute; inset: 120px 0 auto; text-align: center; color: var(--muted); }
.g-empty.show { display: block; }

/* ---------------- popovers, dialogs ---------------- */
.pop { position: fixed; z-index: 100; min-width: 220px; max-width: min(420px, calc(100vw - 16px)); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 10px 30px rgba(30,24,18,.14); padding: 6px; }
.pop hr { border: 0; border-top: 1px solid var(--line-soft); margin: 5px 2px; }
.paint-pop { width: min(380px, calc(100vw - 16px)); }
.paint-list { max-height: 300px; overflow: auto; }
.pl-find { padding: 4px 6px 6px; }
.pl-find .field { width: 100%; }
.pl-sw { width: 16px; height: 16px; flex: none; border-radius: 3px; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.pl-sw.none { background: repeating-linear-gradient(135deg, var(--line-soft) 0 3px, var(--surface) 3px 6px); }
.pl-every, .pl-radio { display: flex; gap: 8px; align-items: flex-start; padding: 6px 10px; font-size: 13px; cursor: pointer; }
.pl-choice { display: grid; gap: 2px; margin: 0 0 10px; }
.ctx-i.applied { background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); }
.pop-h { font-size: 12px; color: var(--muted); padding: 6px 10px 4px; text-transform: none; letter-spacing: .01em; }
.mi { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: var(--r-s); cursor: pointer; text-align: left; font-size: 14px; color: var(--ink); }
.mi:hover:not(:disabled) { background: var(--sec); }
.mi:disabled { color: var(--faint); cursor: default; }
.mi.on { font-weight: 600; }
.mi.danger { color: var(--bad); }
.mi.danger:disabled { color: var(--faint); }
.mi-sp { width: 16px; flex: none; }
.mi-l { flex: 1; }
.mi-h { color: var(--muted); font-size: 12.5px; }
.rev-pop { min-width: 330px; }
.rev-i { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; font-size: 13.5px; }
.rev-i.draft { grid-template-columns: 10px 34px 1fr auto; background: var(--accent-soft); border-radius: var(--r-s); }
.rev-d { color: var(--muted); }
.rev-links { display: flex; gap: 10px; }
.cols-pop { min-width: 300px; }
.col-row { display: flex; align-items: center; gap: 6px; padding: 2px 4px; }
.col-vis, .col-priv, .col-del { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 7px 8px; border-radius: var(--r-s); cursor: pointer; font-size: 14px; }
.col-vis { flex: 1; text-align: left; }
.col-vis:not(.on) { color: var(--faint); }
.col-priv { font-size: 12px; color: var(--muted); }
.col-priv.on { color: var(--accent-text); background: var(--accent-soft); font-weight: 600; }
.col-vis:hover, .col-priv:hover, .col-del:hover { background: var(--sec); }
.dlg { border: 1px solid var(--line); border-radius: var(--r); padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(30,24,18,.22); }
.dlg.wide { width: min(760px, calc(100vw - 24px)); }
.dlg::backdrop { background: rgba(29,27,24,.32); }
.dlg-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 6px 24px; }
.dlg-title { font-family: var(--serif); font-weight: 500; font-size: calc(25px * var(--serif-scale)); margin: 0; flex: 1; }
.dlg-body { padding: 6px 24px 22px; }
.dlg-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.dlg-actions .hint { margin-right: auto; }
.field { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); }
/* its own chevron, inside the field like the others' padding (30/10/2026: the browser's arrow sat against the border) */
select.field { -webkit-appearance: none; appearance: none; padding-right: 36px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6a63' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px 16px; }
.field:focus { outline: none; border-color: var(--active); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }
.hint { color: var(--muted); font-size: 12.5px; margin: 6px 0 0; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.choice[hidden] { display: none; }
.choice .btn { width: 100%; justify-content: center; }
.pub-status, .pub-wait { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.pub-lead { margin: 0 0 12px; color: var(--muted); }
.pub-lead.ok { color: var(--ok); display: flex; align-items: center; gap: 8px; font-size: 15px; }
.pub-err { color: var(--bad); display: flex; gap: 8px; align-items: flex-start; }
.pub-facts { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--muted); }
.pub-facts li { display: flex; gap: 8px; align-items: center; }
.pub-facts li.warn { color: var(--warn); align-items: flex-start; }
.pub-facts li.warn > svg { flex: none; margin-top: 2px; }
.pub-facts li.warn > span { flex: 1; min-width: 0; }
.pub-facts li.warn .link-btn { font-size: inherit; }
.pub-facts li.note { align-items: flex-start; }
.pub-facts li.note > svg { flex: none; margin-top: 2px; }
.pub-facts li.note > span { flex: 1; min-width: 0; }
.pub-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); }
.changes { border: 1px solid var(--line-soft); border-radius: var(--r); padding: 10px 14px; max-height: 40vh; overflow: auto; background: var(--paper); }
.changes-sum, .changes-none { margin: 0; }
.changes h4 { margin: 10px 0 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ch-list { margin: 0; padding-left: 18px; font-size: 13.5px; }
.ch-list li { margin: 2px 0; }
.ch-sec { color: var(--muted); }
.ch-fields { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 4px; }
.ch-f { font-size: 12.5px; }
.ch-f del { color: var(--bad); text-decoration: line-through; } .ch-f ins { color: var(--ok); text-decoration: none; }
.pub-grid { display: grid; grid-template-columns: 1fr 190px; gap: 22px; align-items: start; }
.pub-col { display: flex; flex-direction: column; gap: 14px; }
.pub-col > .btn { align-self: flex-start; }
.pub-qr { text-align: center; }
.pub-qr img { width: 150px; height: 150px; border: 1px solid var(--line-soft); background: #fff; }
.copy-row label { font-size: 12.5px; font-weight: 600; display: block; margin-bottom: 4px; }
.copy-in { display: flex; gap: 6px; }
.copy-in .field { height: auto; min-height: 34px; }

/* ---------------- login ---------------- */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px; background: var(--paper); }
.login.overlay { position: fixed; inset: 0; z-index: 200; background: color-mix(in srgb, var(--paper) 94%, transparent); }
.login-card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; }
.login-logo { width: 170px; align-self: center; margin-bottom: 6px; }
.login-card h1 { font-family: var(--serif); font-weight: 500; font-size: calc(28px * var(--serif-scale)); margin: 0; text-align: center; }
.login-sub { margin: 0 0 6px; color: var(--muted); text-align: center; }
.login-card .btn { justify-content: center; }
.login-err { color: var(--bad); min-height: 1.2em; margin: 0; font-size: 13px; }

/* ---------------- pages ---------------- */
.page { flex: 1; overflow: auto; padding: 0 var(--gutter) 40px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 20px 0 18px 14px; }
.page-head > div:first-child { flex: 1 1 300px; }
.page-head .sched-sub { max-width: 820px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; margin-bottom: 18px; }
.card h3 { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 500; font-size: calc(21px * var(--serif-scale)); margin: 0 0 10px; }
.steps { padding-left: 20px; margin: 14px 0 4px; } .steps li { margin: 6px 0; }
.ext-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.qr-card img { width: 170px; height: 170px; border: 1px solid var(--line-soft); background: #fff; display: block; }
.proj-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; text-decoration: none; color: var(--ink); }
.proj-card:hover { border-color: var(--accent); }
.pc-title { font-family: var(--serif); font-size: calc(26px * var(--serif-scale)); }
.pc-meta, .pc-foot { color: var(--muted); font-size: 13.5px; }
.pc-foot { display: flex; justify-content: space-between; align-items: center; }
.pc-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 10px; background: var(--sec); color: var(--ink); text-decoration: none; white-space: nowrap; }
.chip.link:hover { background: var(--accent-soft); color: var(--accent-text); }
.ptable { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.pt-row { display: grid; grid-template-columns: 76px minmax(200px, 2fr) minmax(120px, 1fr) minmax(200px, 2.4fr) 160px; align-items: center; gap: 14px; padding: 8px 16px; border-bottom: 1px solid var(--line-soft); }
.ptable.sup .pt-row { grid-template-columns: minmax(200px, 1.5fr) 90px minmax(160px, 1.5fr) minmax(200px, 2fr); }
.pt-head { background: var(--head); font-size: 13px; font-weight: 500; min-height: 42px; }
.pt-photo img { width: 60px; height: 48px; object-fit: contain; mix-blend-mode: multiply; display: block; }
.ph-empty { width: 60px; height: 48px; display: grid; place-items: center; color: var(--faint); }
.pt-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-decoration: none; color: var(--ink); }
.pt-name b { font-weight: 500; }
.pt-name small { color: var(--muted); }
.pt-used { display: flex; flex-wrap: wrap; gap: 4px; }
.num { font-variant-numeric: tabular-nums; }
.brand-switch { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; } /* 30/10/2026: its hint no longer touches it */
.brand-opt { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); cursor: pointer; min-width: 240px; text-align: left; }
.brand-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.swatches { display: flex; } .swatches span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(29,27,24,.32); /* 30/10: a light colour's circle showed */ margin-left: -6px; } .swatches span:first-child { margin-left: 0; }
.bo-l { display: flex; flex-direction: column; flex: 1; } .bo-l small { color: var(--muted); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 18px; }
.f { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.f > span:first-child { font-weight: 600; }
.cpair { display: flex; gap: 6px; align-items: center; }
.cpair input[type=color] { width: 44px; height: 40px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 2px; background: var(--surface); }
.logo-prev { height: 72px; display: flex; align-items: center; border: 1px dashed var(--line); border-radius: var(--r-s); padding: 8px 12px; background: var(--paper); }
.logo-prev img { max-height: 56px; max-width: 220px; }
.logo-prev .logo-type { font-size: calc(15px * var(--serif-scale)); }
.f .row { display: flex; gap: 6px; flex-wrap: wrap; }
/* Settings, Administration: its buttons stood against each other (seen with Help guides added, 09/11/2026) */
.card > .row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------- phone ---------------- */
@media (max-width: 860px) {
  :root { --gutter: 12px; }
  .only-phone { display: inline-flex !important; }
  /* its shadow only while open: closed, off screen, it spread a grey band down the left edge (30/10/2026) */
  .side { position: fixed; inset: 0 auto 0 0; width: min(280px, 82vw); transform: translateX(-100%); transition: transform .2s ease, box-shadow .2s ease; box-shadow: none; }
  .side-open .side { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  .side-folded .side { width: min(280px, 82vw); }
  .side-folded .side .nav-l, .side-folded .side .logo img, .side-folded .side .logo-type { display: revert; }
  .side-folded .side .nav-i { justify-content: flex-start; padding: 0 22px; }
  .side .fold { display: none; }
  .side-open .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(29,27,24,.28); }
  .top { padding: 8px var(--gutter) 0 6px; min-height: 52px; gap: 6px; }
  .crumbs { display: none; }
  .search { width: auto; flex: 1; height: 38px; }
  .top .grow { display: none; }
  .avatar-i { width: 34px; height: 34px; font-size: 13px; }
  .avatar .ic { display: none; }
  .top .avatar { margin-left: auto; } /* 30/10/2026: on a page without search (Settings), at the right as everywhere */
  .proj { padding: 4px var(--gutter) 0; }
  .proj-title { font-size: calc(24px * var(--serif-scale)); margin-bottom: 4px; }
  .scrolled .proj { display: none; }
  .tabs { padding: 0 var(--gutter) 0 4px; }
  .tab { padding: 8px 11px 10px; font-size: 14px; }
  .sched { padding: 0 var(--gutter); }
  .sched-head { padding: 12px 0 10px 2px; gap: 8px; align-items: center; }
  .sched-title { flex: 1 1 100%; }
  .sched-title h2, .page-head h2 { font-size: calc(22px * var(--serif-scale)); }
  /* two lines rather than a date cut after its day (30/10/2026) */
  .sched-sub { font-size: 13px; margin-top: 3px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  /* a page's sentence wraps: only the schedule's own line is kept to two (demo 7610691, the line was cut at the edge) */
  .page-head .sched-sub { display: block; overflow: visible; -webkit-line-clamp: unset; }
  .tools { width: 100%; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: 6px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); width: calc(100% + 2 * var(--gutter)); }
  .tools::-webkit-scrollbar { display: none; }
  /* the bar goes on to the side: its right edge fades instead of cutting a button in two (30/10/2026) */
  .tools { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 28px; }
  .tools-a, .tools-b { gap: 6px; flex: none; }
  .tools-b { order: -1; }
  .tools .btn { height: 36px; padding: 0 10px; font-size: 13.5px; }
  .tools .btn.icon { width: 36px; padding: 0; }
  .tools-a .btn-l, .trades .btn-l, .trades .small-chev { display: none; }
  .tools-a .range-mode .btn-l, .tools-a .pick-mode .btn-l { display: inline; } /* no icon: their words stay */
  /* the studio's To place: after Publish on a phone, its count only (the tab and the foot say it too) */
  .tools-b .tray-btn { order: 1; }
  .tools-b .tray-btn .btn-l { display: none; }
  .tools-a .btn.outline:not(.icon) .ic:last-child { display: none; }
  .tsep { display: none; }
  .ctx-i, .notice { font-size: 12.5px; }
  .foot { padding: 6px 2px 8px; font-size: 12px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .g-hcell { padding: 0 10px; font-size: 12.5px; }
  .g-cell { padding: 5px 10px; font-size: 13px; }
  .g-add-box { width: calc(100cqw - 16px); }
  .pt-row { grid-template-columns: 64px 1fr; }
  .pt-row > :nth-child(n+3) { grid-column: 2; }
  .pt-head { display: none; }
  .ptable.sup .pt-row { grid-template-columns: 1fr 60px; }
  .ptable.sup .pt-row > :nth-child(n+3) { grid-column: 1 / -1; font-size: 12.5px; }
  .pub-grid { grid-template-columns: 1fr; }
  .choice { grid-template-columns: 1fr; }
  .dlg-head { padding: 14px 14px 4px 18px; }
  .dlg-body { padding: 4px 18px 18px; }
  .page { padding: 0 var(--gutter) 30px; }
  .page-head { padding: 14px 0 12px 2px; }
}

/* ---- B2: projects, schedules and rooms, conflicts field by field, the other chantiers' screens ---- */
.tab-add { background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; cursor: pointer; color: var(--muted); padding: 9px 12px 12px; }
.tab-add:hover { color: var(--ink); }
.sched-title h2 { display: flex; align-items: center; gap: 6px; }
.sched-more { width: 32px; height: 32px; padding: 0; justify-content: center; color: var(--ink); }
.sched-more svg { width: 22px; height: 22px; stroke-width: 3.2; } /* 30/10/2026: its three dots were specks */
.proj-card.open { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.proj-card .pc-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pc-menu { width: 32px; height: 32px; padding: 0; justify-content: center; color: var(--ink); flex: none; }
/* the tile: one link over the whole box (the project), the schedules' links and the menu above it (baden23) */
.proj-card { position: relative; }
.pc-link { color: inherit; text-decoration: none; outline: none; }
.pc-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.proj-card:has(.pc-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pc-tabs .chip.link, .pc-menu { position: relative; z-index: 1; }
.pc-tabs .chip.link:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pc-acts { display: inline-flex; align-items: center; gap: 8px; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 16px; color: var(--muted); }
.empty-i { width: 96px; height: 96px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-text); margin-bottom: 18px; }
.empty h3 { font-family: var(--serif); font-weight: 500; font-size: calc(24px * var(--serif-scale)); color: var(--ink); margin: 0 0 8px; }
.empty p { margin: 0 0 22px; max-width: 420px; font-size: 15px; }
.empty-a { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.b-line.conflicts { align-items: flex-start; }
.b-line.conflicts .cf-head { flex: 1 1 300px; }
.cf-list { flex: 1 0 100%; margin: 2px 0 0; padding: 0 0 0 24px; display: flex; flex-direction: column; gap: 6px; }
.cf-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cf-list .cf-v { color: var(--ink); }
.cf-list .btn.small, .cf-all .btn.small { background: var(--surface); }
.cf-all { flex: 1 0 100%; display: flex; gap: 8px; padding-left: 24px; }
.screen-soon { max-width: 560px; margin-top: 20px; }
.only-touch-nav { display: none !important; }
@media (pointer: coarse), (max-width: 860px) { .only-touch-nav { display: flex !important; } }
.bare-screen { min-height: 100%; }

/* ---- C client (step 2 integration): the sign-in of B1 in the app, the subscription's line, the "To place" tray ---- */
.signin-host { min-height: 100%; height: 100%; background: var(--paper); }
.signin-host.overlay { position: fixed; inset: 0; z-index: 200; overflow: auto; }
.studio-bar { padding-top: 10px; }
.studio-bar .b-line { justify-content: space-between; }
.studio-bar .b-text { flex: 1 1 0; min-width: 0; }
.studio-bar .b-line > svg { flex: none; align-self: flex-start; margin-top: 2px; }
.studio-bar.show + .proj { padding-top: 12px; }
@media (max-width: 860px) { .studio-bar .b-line { font-size: 13px; } }
.b-line.bad { background: var(--bad-bg); color: var(--bad); }
.b-line.bad .btn, .b-line.warn .btn { background: var(--surface); }
.g-section.g-tray { background: var(--ai-bg); border-top: 1px dashed color-mix(in srgb, var(--ai) 45%, transparent); }
.g-tray .g-section-title { color: var(--ink); }
.g-tray-hint { margin-left: 6px; color: var(--muted); font-size: 13px; white-space: nowrap; }
@media (max-width: 860px) { .g-tray-hint { display: none; } }
/* a screen of B1 or B4 in the frame: its own title and scroll (the app's title and the screen's crumbs not twice) */
.app.own-head .proj { display: none; }
/* a laptop's window (a schedule, 820 px of height or less): the page's headings gave the grid one or two lines. The project's
   name goes to the breadcrumb, in ink, and the schedule's sentence beside its title: the grid takes the height, nothing is
   lost (recette 01/11/2026, a blind look said what the first version dropped) */
@media (min-width: 861px) and (max-height: 820px) {
  .app:has(.sched) .proj { display: none; }
  .app:has(.sched) .crumbs .crumb-project { font-weight: 500; }
  .app:has(.sched) .crumbs .crumb-project, .app:has(.sched) .crumbs .here { color: var(--ink); }
  .sched-head { padding: 8px 0 8px 14px; gap: 10px; align-items: center; }
  .sched-title { display: flex; align-items: baseline; gap: 14px; }
  .sched-title h2 { font-size: calc(24px * var(--serif-scale)); flex: none; max-width: 70%; }
  .sched .sched-sub { margin: 0; font-size: 14px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .app:has(.sched) .tabs { margin-top: 6px; }
}
.page.page-screen.own { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.page.page-screen.own > * { flex: 1; min-height: 0; }
.page-screen.own .b1-crumbs, .page-screen.own .imp-crumbs { display: none; }
.page-screen.own .b1-head { padding-top: 18px; }
.page-screen.own > .screen-soon { flex: none; margin: 20px var(--gutter); }

/* ---- a client suggests a product; the product view of a narrow screen (decisions of 30/10/2026) ---- */
/* a client's suggestion in the tray: the line, then a band that says who, for which room, what they said */
.g-row.g-row-sug { flex-wrap: wrap; align-content: flex-start; }
.g-row-sug > .g-gutter, .g-row-sug > .g-cell, .g-row-sug > .g-rmenu { height: var(--rh); }
/* the band belongs to its line (after review, 30/10/2026: under a dashed rule it read as the next line's heading): the
   line and its band share one warm tint and one bar on the left, nothing between them, the rule after the band */
.g-row.g-row-sug { border-bottom: 1px solid color-mix(in srgb, var(--ai) 32%, var(--line)); }
.g-row-sug > .g-cell:not(.g-sel):not(.g-mine), .g-row-sug > .g-gutter, .g-row-sug > .g-rmenu { background: color-mix(in srgb, var(--ai-bg) 45%, var(--surface)); }
.g-row-sug > .g-gutter { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--ai) 55%, transparent); }
.g-sug { flex: 0 0 100%; height: 30px; display: flex; align-items: center; background: color-mix(in srgb, var(--ai-bg) 45%, var(--surface)); font-size: 13px; color: color-mix(in srgb, var(--ai) 55%, var(--ink)); }
.g-sug .g-sug-in { align-self: stretch; box-shadow: inset 3px 0 0 color-mix(in srgb, var(--ai) 55%, transparent); background: inherit; }
.g-sug.two { height: 54px; }
.g-sug.two .g-sug-in { flex-direction: column; align-items: stretch; justify-content: center; gap: 3px; }
.g-sug-l1, .g-sug-l2 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.g-sug-what { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-size: 13px; padding-left: 21px; }
.g-sug.two .g-sug-act { height: 22px; }
.g-sug-in { position: sticky; left: 0; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 14px; white-space: nowrap; width: min(100%, var(--gvis, 100%)); max-width: min(100%, var(--gvis, 100%)); }
.g-sug-t { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.g-sug-t b { font-weight: 600; color: var(--ink); }
.g-sug-i { color: var(--ai); flex: none; }
.g-sug-note { color: var(--muted); }
.g-sug-act .l-short { display: none; }
@media (max-width: 860px) { .g-sug-act .l-long { display: none; } .g-sug-act .l-short { display: inline; } .g-sug { font-size: 12.5px; } }
.g-sug-act { flex: none; display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; height: 24px; padding: 0 9px; border: 1px solid color-mix(in srgb, var(--ink) 18%, var(--paper)); border-radius: var(--r-s); background: var(--surface); cursor: pointer; font-size: 12.5px; color: var(--ink); }
.g-sug-act:hover { border-color: color-mix(in srgb, var(--ink) 32%, var(--paper)); }
/* a client: "Suggest" on a room's title (the room is its wish) */
.g-suggest { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; height: 28px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--ink) 16%, var(--paper)); border-radius: 14px; background: var(--surface); color: var(--accent-text); font-size: 13px; cursor: pointer; }
.g-suggest:hover { border-color: var(--accent); }
/* a client's own columns: a pencil on their titles, their cells a shade warmer; the line kept in view on their left */
.g-hcell.g-mine { color: var(--accent-text); }

.g-pen { color: var(--accent); flex: none; }
.g-cell.g-mine { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.g-row-sel .g-cell.g-mine { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
/* the columns kept on the left: their edge drawn only while the grid is scrolled sideways */
/* opaque, and a crisp 1 px rule at the junction as on the "…" column (after review, 30/10/2026: a soft shadow let the next column
   slide under without a clear edge) */
.g-xscrolled .g-sticky-last { box-shadow: 1px 0 0 color-mix(in srgb, var(--ink) 30%, transparent); }
.g-hcell.g-flash { animation: col-flash 1.4s ease-out; }
@keyframes col-flash { 0%, 30% { background: color-mix(in srgb, var(--accent) 22%, var(--head)); } 100% { background: var(--head); } }
/* the client's sentence: its columns are links to them */
.col-link { display: inline; padding: 0; border: 0; background: none; color: var(--accent-text); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.access-line[data-kind="client"] .ic { color: var(--accent); }
/* the toolbar: "Suggest a product", the view of a client, the studio's "To place" */
.segs { display: inline-flex; }
.segs .btn.seg { border-radius: 0; }
.segs .btn.seg:first-child { border-radius: var(--r-s) 0 0 3px; }
.segs .btn.seg:last-child { border-radius: 0 var(--r-s) var(--r-s) 0; margin-left: -1px; }
.btn.tray-btn { background: var(--ai-bg); border-color: color-mix(in srgb, var(--ai) 40%, var(--paper)); }
.tray-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ai); color: #fff; font-size: 12px; display: inline-grid; place-items: center; font-weight: 700; }
.tab-tray { font-size: 11.5px; min-width: 18px; padding: 0 5px; height: 18px; border-radius: 9px; background: var(--ai); color: #fff; display: inline-grid; place-items: center; font-weight: 700; }
.ctx-i.sug { background: var(--ai-bg); color: color-mix(in srgb, var(--ai) 55%, var(--ink)); }

/* the product view (a client with columns, on a narrow screen): one card per product */
.grid-wrap .pv { display: none; }
.grid-wrap.cards .grid { display: none; }
.grid-wrap.cards .pv { display: block; flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 0 24px; overscroll-behavior: contain; }
.cards-on .foot .foot-l [data-testid="next-to-check"] { display: none; }
.pv-room { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; background: var(--sec); border: 1px solid var(--line-soft); border-radius: var(--r); margin: 14px 0 8px; }
.pv-room:first-child { margin-top: 0; }
.pv-room-t { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px; border: 0; background: none; cursor: pointer; text-align: left; }
.pv-room-name { font-weight: 600; font-size: 15.5px; }
.pv-room-n { color: var(--muted); font-size: 13.5px; }
.pv-room.pv-tray { background: var(--ai-bg); border-style: dashed; border-color: color-mix(in srgb, var(--ai) 40%, transparent); }
.pv-tray-hint { flex: 0 0 100%; margin: -6px 0 10px 38px; color: var(--muted); font-size: 13px; }
.pv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 0 0 10px; }
.pv-id { display: flex; gap: 12px; align-items: flex-start; }
.pv-thumb { position: relative; flex: none; align-self: flex-start; width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; border-radius: 3px; border: 1px solid var(--line-soft); background: var(--paper); color: var(--faint); }
.pv-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; opacity: 0; }
.pv-thumb.has img { opacity: 1; }
.pv-id-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pv-where { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pv-cat { font-family: var(--serif); font-size: calc(20px * var(--serif-scale)); line-height: 1.15; font-weight: 600; }
.pv-name { font-size: 14px; line-height: 1.35; }
.pv-sku { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pv-fields { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.pv-field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.pv-label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.pv-label .g-ai { position: static; font-size: 10px; padding: 1px 5px; border-radius: 8px; background: var(--ai-bg); }
/* 16 px at least: iOS zooms into a smaller field */
.pv-input { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid color-mix(in srgb, var(--ink) 20%, var(--paper)); border-radius: var(--r-s); background: #fff; font-size: 16px; line-height: 1.35; resize: none; overflow: hidden; }
.pv-input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 0; border-color: var(--accent); }
.pv-input:disabled { background: var(--paper); color: var(--ink); opacity: 1; -webkit-text-fill-color: var(--ink); }
.pv-unv .pv-input { border-color: color-mix(in srgb, var(--ai) 55%, var(--paper)); }
.pv-dirty .pv-label::after { content: "not saved yet"; font-weight: 400; color: var(--muted); font-size: 12px; }
.pv-value { margin: 0; padding: 11px 12px; border-radius: var(--r-s); background: var(--paper); font-size: 16px; }
.pv-hint { margin: 0; color: var(--muted); font-size: 13px; }
.pv-quote { color: var(--ai); font-size: 12.5px; overflow-wrap: anywhere; }
p.pv-quote { margin: -2px 0 6px; }
dd .pv-quote { display: block; margin-top: 2px; }
.ctx-quotes { flex: 1 0 100%; padding-left: 24px; margin-top: -2px; }
.ctx-quote { display: block; color: var(--ai); font-size: 12.5px; overflow-wrap: anywhere; }
.pv-photo { width: 120px; height: 120px; object-fit: contain; border: 1px solid var(--line-soft); border-radius: 3px; background: #fff; }
.pv-photo.empty { display: grid; place-items: center; color: var(--faint); background: var(--paper); }
.pv-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--ink) 18%, var(--paper)); border-radius: var(--r-s); background: var(--surface); font-size: 15px; cursor: pointer; }
.pv-open { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; font-size: 14px; }
.pv-more { margin-top: 12px; border-top: 1px solid var(--line-soft); padding-top: 8px; }
.pv-more summary { cursor: pointer; color: var(--accent-text); font-size: 14.5px; padding: 6px 0; list-style-position: inside; }
.pv-dl { margin: 6px 0 0; display: flex; flex-direction: column; gap: 8px; }
.pv-dd { display: grid; grid-template-columns: 112px 1fr; gap: 10px; font-size: 14px; }
.pv-dd dt { color: var(--muted); }
.pv-dd dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.pv-dd a { display: inline-flex; align-items: center; gap: 5px; }
.pv-sug { display: flex; align-items: flex-start; gap: 6px; margin: 12px 0 0; padding: 7px 10px; border-radius: var(--r-s); background: var(--ai-bg); color: color-mix(in srgb, var(--ai) 55%, var(--ink)); font-size: 13.5px; }
.pv-sug b { color: var(--ink); font-weight: 600; }
.pv-sug .ic { margin-top: 2px; }
.pv-sug-note { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.pv-link { margin-top: 6px; padding: 6px 0; border: 0; background: none; color: var(--accent-text); text-decoration: underline; font-size: 14px; cursor: pointer; }
.pv-suggest { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin: 0 0 10px; border: 1px dashed color-mix(in srgb, var(--ink) 22%, var(--paper)); border-radius: var(--r-s); background: none; color: var(--accent-text); font-size: 15px; cursor: pointer; }
.pv-empty { color: var(--muted); padding: 20px 4px; }
/* drag and drop (02/11/2026): a grip says where a line or a room is taken; the rest keeps its gestures */
.g-grip { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; background: none; border-radius: 3px; color: var(--faint); cursor: grab; touch-action: none; opacity: 0; }
/* a mouse: a line's grip is bright on a selected line (it moves them), faint on another (a press there selects) */
.g-row:hover .g-grip { opacity: .35; }
.g-row-sel .g-grip, .g-section:hover .g-room-grip { opacity: 1; }
.g-grip:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.g-room-grip { margin-right: 2px; }
@media (pointer: coarse) { .g-grip { opacity: .75; width: 28px; height: 28px; } }
.dd-on, .dd-on * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }
.dd-ghost { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; max-width: 260px; padding: 7px 12px; border-radius: var(--r-s); background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 8px 24px rgba(30,24,18,.22); }
.dd-line { position: fixed; left: 0; top: 0; z-index: 999; height: 3px; border-radius: 2px; background: var(--active); pointer-events: none; display: none; box-shadow: 0 0 0 1px var(--surface); }
.dd-lit { position: fixed; left: 0; top: 0; z-index: 998; border: 2px solid var(--active); border-radius: var(--r-s); background: color-mix(in srgb, var(--active) 10%, transparent); pointer-events: none; display: none; }
.pv-grip { position: absolute; left: 0; top: 0; bottom: 0; width: 30px; display: grid; place-items: start center; padding-top: 34px; border: 0; background: none; color: var(--faint); cursor: grab; touch-action: none; }
.pv-grip:hover { color: var(--ink); }
.pv-studio.pv-dnd .pv-id-tap { padding-left: 32px; }
.pv-room-grip { flex: none; width: 34px; height: 46px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--faint); cursor: grab; touch-action: none; margin-right: -10px; }
.pv.pv-rooms-only .pv-card, .pv.pv-rooms-only .pv-add, .pv.pv-rooms-only .pv-suggest, .pv.pv-rooms-only .pv-folded, .pv.pv-rooms-only .pv-selbar { display: none; }
.pv.pv-rooms-only .pv-room { position: static; margin: 0 0 6px; }
/* a selection of cards (Select): a box on each card, a bar of actions at the bottom */
.pv-check { position: absolute; left: 10px; top: 36px; width: 22px; height: 22px; border-radius: 4px; border: 2px solid color-mix(in srgb, var(--ink) 35%, var(--paper)); background: var(--surface); display: grid; place-items: center; color: #fff; pointer-events: none; }
.pv-picked .pv-check { background: var(--active); border-color: var(--active); }
.pv-picked { border-color: var(--active); box-shadow: 0 0 0 1px var(--active); }
.pv-selecting .pv-studio .pv-id-tap { padding-left: 44px; }
.pv-selbar { position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: 0 -6px 18px rgba(30,24,18,.08); }
.pv-selbar-t { flex: 1 0 100%; display: flex; align-items: center; gap: 8px; }
.pv-selbar .pv-seln { flex: 1; font-weight: 600; font-size: 14px; }
.pv-selbar .btn { height: 38px; }
.mv-warn { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 0; }
.mv-warn p { margin: 0; padding: 7px 10px; border-radius: var(--r-s); background: var(--paper); font-size: 13.5px; color: var(--ink); }
.mv-warn p.warn { background: var(--ai-bg); }
/* the studio's card (02/11/2026): closed on its summary, a tap opens its fields; the line menu on the right */
.pv-card.pv-studio { position: relative; padding: 0; }
.pv-studio .pv-id-tap { padding: 14px 92px 14px 14px; cursor: pointer; border-radius: var(--r); -webkit-tap-highlight-color: transparent; }
.pv-studio .pv-id-tap:focus-visible { outline: 2px solid var(--active); outline-offset: -2px; }
.pv-studio.pv-opened .pv-id-tap { border-bottom: 1px solid var(--line-soft); border-radius: var(--r-s) 4px 0 0; }
.pv-studio .pv-fields { margin: 0; padding: 14px; border-top: 0; }
.pv-studio > .pv-sug, .pv-studio > .pv-sug-note, .pv-studio > .pv-place, .pv-studio > .pv-link { margin-left: 14px; margin-right: 14px; }
.pv-studio > .pv-place { margin-top: 8px; }
.pv-studio > :last-child:not(.pv-fields):not(.pv-id):not(.pv-menu) { margin-bottom: 14px; }
.pv-chev { position: absolute; top: 18px; right: 52px; color: var(--muted); display: grid; place-items: center; width: 32px; height: 32px; }
.pv-menu { position: absolute; top: 12px; right: 8px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: var(--r-s); background: none; color: var(--ink); cursor: pointer; }
.pv-menu:hover, .pv-menu:focus-visible { background: var(--paper); }
.pv-facts { font-size: 13px; color: var(--muted); line-height: 1.35; }
.pv-marks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pv-reading { display: inline-flex; align-items: center; font-size: 12.5px; color: var(--accent-text); }
.pv-ai { position: static; font-size: 11px; padding: 1px 7px; border-radius: 8px; background: var(--ai-bg); color: var(--ai); }
.pv-room-menu { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); cursor: pointer; }
.pv-add { display: flex; align-items: center; gap: 10px; min-height: 46px; margin: 0 0 10px; padding: 0 14px; border: 1px dashed color-mix(in srgb, var(--ink) 22%, var(--paper)); border-radius: var(--r-s); color: var(--muted); cursor: text; }
.pv-add:focus-within { border-style: solid; border-color: var(--active); background: var(--surface); }
.pv-add-input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); }

@media (max-width: 860px) {
  .g-suggest span { display: none; }
  .g-suggest { padding: 0 8px; }
  .tools-b .suggest-btn { order: 2; }
}

/* a computer's "Suggest a product" (after review, 30/10/2026): the add screen of /add in a panel on the right, the
   schedule still behind; its sheets and its message stay inside the panel (the transform contains them) */
.add-scrim { position: fixed; inset: 0; z-index: 40; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.add-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(520px, 100vw); display: flex; flex-direction: column; background: var(--paper); box-shadow: -1px 0 0 var(--line), -24px 0 60px -30px rgba(0, 0, 0, .35); transform: translateX(24px); opacity: 0; transition: transform .18s ease-out, opacity .18s ease-out; font: 16px/1.4 var(--sans); --group: color-mix(in srgb, var(--ink) 4.5%, var(--paper)); }
.add-panel.on { transform: translateX(0); opacity: 1; }
.add-panel-x { position: absolute; top: 14px; right: 14px; z-index: 6; }
.add-panel-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 28px; }
.add-panel-body .qa-title { padding-right: 48px; }
@media (prefers-reduced-motion: reduce) { .add-panel { transition: none; } }
.add-panel-body .qa { padding: 6px 28px 0; }
.g-ph { color: var(--muted); font-style: italic; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; font-size: 13px; }

/* placeholders of the template (03/11/2026): a line to source, quieter than a product, its Category cell says so */
.g-row-ph > .g-cell { color: var(--muted); font-style: italic; }
.g-row-ph > .g-gutter { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--muted) 40%, transparent); }
.g-row-ph > .g-cell[data-field="category"] { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
.g-row-ph > .g-cell[data-field="category"] .g-text { -webkit-line-clamp: 2; }
.g-ph-tag { flex: none; font-style: normal; font-size: 10.5px; line-height: 16px; letter-spacing: .02em; color: var(--muted); }
.g-ph-tag::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 4px; border: 1px dashed currentColor; border-radius: 50%; vertical-align: -0.5px; }
.pv-ph .pv-cat, .pv-ph .pv-name { color: var(--muted); font-style: italic; }
.pv-ph .pv-cat .g-ph-tag { margin-left: 6px; }
/* New project: how it starts (03/11/2026) */
.np-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.np-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; background: var(--surface); }
.np-opt.on { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.np-opt > input { margin-top: 3px; flex: none; accent-color: var(--accent); }
.np-opt-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; font-size: 14px; }
.np-opt-t .hint { margin: 0; }
/* the Publish window's choice, "Update R4" or "Publish as R5" (03/11/2026) */
.pub-choice { margin: 14px 0 4px; }
.np-opt.off { cursor: default; opacity: .62; background: var(--surface); }
.np-opt.off .np-opt-t b { color: var(--muted); }
.np-copy { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.np-copy[hidden] { display: none; }
.np-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; cursor: pointer; }
.np-check[hidden] { display: none; }
.np-check input { margin-top: 2px; flex: none; accent-color: var(--accent); }
.f + .np-check { margin-top: 12px; }
/* Projects › Recently deleted (03/11/2026) */
.deleted { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line-soft); max-width: 760px; }
.deleted h3 { font-size: 15px; margin: 0; }
.deleted-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.deleted-list li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: var(--r-s); background: var(--surface); }
.deleted-list .deleted-name { font-weight: 600; }
.deleted-list .hint { margin: 0 auto 0 0; }
/* Products: ticks and the bar of the ticked ones (03/11/2026) */
.ptable.ticks .pt-row { grid-template-columns: 24px 76px minmax(200px, 2fr) minmax(120px, 1fr) minmax(200px, 2.4fr) 160px; }
.pt-tick { display: flex; align-items: center; justify-content: center; }
.pt-tick input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.pt-row.ticked { background: color-mix(in srgb, var(--accent-soft) 40%, var(--surface)); }
.pt-bar { display: none; position: sticky; top: 0; z-index: 4; align-items: center; gap: 12px; padding: 8px 16px; margin-bottom: 8px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: var(--r-s); background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); font-size: 13.5px; }
.pt-bar.on { display: flex; }
.pt-bar span { margin-right: auto; }
@media (max-width: 760px) {
  .ptable.ticks .pt-row { grid-template-columns: 24px 64px 1fr; }
  .ptable.ticks .pt-row > :nth-child(n+4) { grid-column: 3; }
}
.tpl-actions { margin-top: 12px; }
@media (max-width: 600px) {
  .deleted-list li { flex-wrap: wrap; gap: 8px 12px; }
  .deleted-list .deleted-name { flex: 1 1 100%; }
  .deleted-list .hint { flex: 1 1 100%; }
}

/* Selection Changes: the window that replaces a product everywhere (ui/replace.ts) */
.dlg.rp-dlg { width: min(1080px, calc(100vw - 24px)); }
.rp-top { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1.25fr); gap: 12px; padding: 4px 0 18px; border-bottom: 1px solid var(--line); }
.rp-arrow { align-self: center; justify-self: center; font-size: 26px; color: var(--ink); line-height: 1; }
.rp-h { font-family: var(--serif); font-weight: 500; font-size: calc(19px * var(--serif-scale)); margin: 0 0 12px; }
.rp-prod { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.rp-prod-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; font-size: 13px; color: var(--muted); }
.rp-prod-t b { font-size: 15px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.rp-photo { flex: none; width: 104px; height: 104px; border-radius: 3px; background: var(--sec); display: flex; align-items: center; justify-content: center; color: var(--faint); overflow: hidden; }
.rp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-pill { align-self: flex-start; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: var(--sec); color: var(--ink); font-size: 12px; }
.rp-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.btn.rp-tab, button.rp-tab { background: var(--sec); border: 1px solid transparent; color: var(--ink); padding: 6px 12px; font-size: 13px; border-radius: var(--r-s); cursor: pointer; font-weight: 500; }
button.rp-tab.on { background: var(--surface); border-color: var(--ink); font-weight: 600; }
.rp-row { display: flex; gap: 8px; }
.rp-row[hidden] { display: none; }
.rp-row .field { flex: 1; min-width: 0; }
.rp-result { margin-top: 12px; }
.rp-result:empty { margin: 0; }
.rp-name { font-weight: 600; font-size: 15px; width: 100%; }
.rp-link { font-size: 12.5px; color: var(--accent-text); }
.rp-said { display: flex; gap: 8px; align-items: center; margin: 10px 0 0; padding: 8px 12px; border-radius: var(--r-s); font-size: 13px; }
.rp-said.ok { background: color-mix(in srgb, var(--ok) 10%, var(--surface)); color: var(--ok); }
.rp-said.warn { background: var(--warn-bg); color: var(--warn); }
.rp-said[hidden] { display: none; }
.rp-find { max-height: 212px; overflow: auto; margin-top: 8px; border: 1px solid var(--line-soft); border-radius: var(--r-s); }
.rp-find:empty { display: none; }
.rp-find .hint { padding: 8px 10px; margin: 0; }
.rp-find-i { display: flex; width: 100%; align-items: center; gap: 10px; padding: 6px 10px; background: none; border: 0; border-bottom: 1px solid var(--line-soft); text-align: left; cursor: pointer; color: inherit; font: inherit; }
.rp-find-i:hover, .rp-find-i:focus-visible { background: var(--accent-soft); }
.rp-find-t { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 13px; }
.rp-find-t b { font-weight: 600; overflow-wrap: anywhere; }
.rp-find-t small { color: var(--muted); font-size: 12px; }
.rp-find-i .hint { white-space: nowrap; font-size: 12px; padding: 0; }
.rp-thumb { flex: none; width: 36px; height: 36px; border-radius: 2px; background: var(--sec); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--faint); }
.rp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rp-linehead { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin: 16px 0 10px; flex-wrap: wrap; }
.rp-linehead .hint { margin: 2px 0 0; }
.rp-count { font-family: var(--serif); font-weight: 500; font-size: calc(19px * var(--serif-scale)); margin: 0; }
.rp-keep { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 8px 12px; background: var(--accent-soft); border-radius: var(--r-s); max-width: 340px; }
.rp-keep input { margin-top: 3px; accent-color: var(--ink); width: 16px; height: 16px; }
.rp-keep span { display: flex; flex-direction: column; font-size: 13px; }
.rp-keep b { font-weight: 600; }
.rp-keep small { color: var(--muted); font-size: 12px; }
.rp-lines { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.rp-line { display: grid; grid-template-columns: 24px minmax(150px, 1fr) minmax(170px, 1.1fr) minmax(220px, 1.5fr); gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); align-items: flex-start; font-size: 13px; }
.rp-line:last-child { border-bottom: 0; }
.rp-line.rp-head { background: var(--head); color: var(--ink); font-size: 12.5px; font-weight: 500; padding: 8px 14px; position: sticky; top: 0; z-index: 1; }
.rp-line.off { color: var(--muted); }
.rp-line.off .rp-after { opacity: .45; }
.rp-line input[type="checkbox"] { margin-top: 3px; accent-color: var(--ink); width: 15px; height: 15px; }
.rp-where, .rp-now, .rp-after { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.rp-where b { font-weight: 600; }
.rp-where small, .rp-now small { color: var(--muted); font-size: 12px; }
.rp-now span { white-space: pre-line; }
.rp-new { font-weight: 600; min-height: 1.2em; }
.field.rp-notes { width: 100%; height: auto; resize: vertical; font-size: 13px; padding: 5px 8px; min-height: 30px; }
/* a hundred lines: the button stays in sight */
.rp-dlg .dlg-actions { position: sticky; bottom: 0; background: var(--surface); padding: 12px 0; margin-top: 6px; border-top: 1px solid var(--line-soft); z-index: 2; }
.rp-notes:disabled { background: transparent; border-color: var(--line-soft); }
.rp-sep { padding: 8px 14px; background: var(--head); font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line-soft); }
.rp-more { margin-top: 10px; max-width: 420px; }
.rp-more .field { width: 100%; }
.rp-note { margin: 10px 0 0; }
.rp-note[hidden] { display: none; }
.rp-recent { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.rp-recent[hidden] { display: none; }
.rp-recent-i { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 8px 14px; background: var(--accent-soft); border-radius: var(--r-s); font-size: 13px; }
.rp-recent-i small { margin-left: 10px; color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .rp-top { grid-template-columns: minmax(0, 1fr); }
  .rp-arrow { display: none; }
  .rp-photo { width: 76px; height: 76px; }
  .rp-row { flex-wrap: wrap; }
  .rp-line { grid-template-columns: 24px minmax(0, 1fr); }
  .rp-line > :nth-child(n+3) { grid-column: 2; }
  .rp-line.rp-head { display: none; }
  .rp-keep { max-width: none; }
}

/* The RFI button: an email prepared for a supplier (ui/rfi.ts) */
.ptable.sup.with-rfi .pt-row { grid-template-columns: minmax(200px, 1.5fr) 90px minmax(160px, 1.3fr) minmax(180px, 1.8fr) 170px; }
/* a long address (a photo store's) broke over the next column (Condor, 05/11/2026) */
.sup-sites { min-width: 0; overflow-wrap: anywhere; }
.sup-rfi { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.sup-rfi small { font-size: 12px; line-height: 1.25; }
.sup-rfi small:empty { display: none; }
.rfi-pages { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; margin-bottom: 14px; cursor: pointer; }
.rfi-pages input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--ink); flex: none; }
.rfi-pages span { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.rfi-pages b { font-weight: 600; }
.rfi-pages small { color: var(--muted); font-size: 12.5px; }
.dlg.rfi-dlg { width: min(1160px, calc(100vw - 24px)); }
.rfi-project { margin: 0 0 2px; font-size: 15px; }
.rfi-project b { font-weight: 600; }
.rfi-lede { margin: 0 0 14px; }
.rfi-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.rfi-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rfi-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 12px 14px; min-width: 0; }
.rfi-card h3 { margin: 0 0 8px; font-size: 14.5px; font-weight: 600; }
.rfi-list { padding: 0; }
.rfi-card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px 10px; }
.rfi-card-h h3 { margin: 0; }
.rfi-tick { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-size: 13.5px; }
.rfi-tick input, .rfi-row input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--ink); flex: none; }
.rfi-tick.small { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.rfi-tick[hidden] { display: none; }
.rfi-row { display: grid; grid-template-columns: 18px 44px minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 58px 66px; gap: 10px; align-items: center; padding: 7px 14px; border-top: 1px solid var(--line-soft); font-size: 13px; }
.rfi-row.off .rfi-name, .rfi-row.off .rfi-sku, .rfi-row.off .rfi-fin { color: var(--faint); }
.rfi-row.off .rfi-photo { opacity: .4; }
.rfi-head { background: var(--head); font-size: 12.5px; font-weight: 500; padding-block: 8px; }
.rfi-photo { width: 44px; height: 36px; display: grid; place-items: center; color: var(--faint); }
.rfi-photo img { max-width: 44px; max-height: 36px; object-fit: contain; mix-blend-mode: multiply; display: block; }
.rfi-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rfi-name b { font-weight: 500; overflow-wrap: anywhere; }
.rfi-name small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.rfi-sku, .rfi-fin { color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
.field.rfi-qty { height: 32px; padding: 0 8px; text-align: center; font-size: 13px; }
.field.rfi-unit { height: 32px; padding: 0 4px; font-size: 13px; width: 100%; }
.rfi-qu { display: contents; }
.rfi-send-note { margin: 0; text-align: right; flex: 1 0 100%; }
.rfi-dlg .dlg-actions { flex-wrap: wrap; }
.rfi-dlg .dlg-actions .rfi-to-said { flex: 1 0 100%; margin: 0; text-align: right; }
.rfi-send-note[hidden], .rfi-note-said[hidden], .rfi-dlg .btn[hidden] { display: none; }
.rfi-note-said { margin-left: 0; }
.rfi-name small[hidden] { display: none; }
.rfi-to { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.rfi-to .field { height: 36px; font-size: 13.5px; color: var(--ink); }
.rfi-to-said { color: var(--danger, #a4392c); margin: 6px 0 0 44px; font-size: 12.5px; }
.rfi-to-said[hidden] { display: none; }
.rfi-asks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 10px; }
.field.rfi-note { height: auto; padding: 8px 10px; resize: vertical; font-size: 13.5px; }
.rfi-preview { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 12.5px/1.45 var(--sans); color: var(--ink); max-height: 300px; overflow: auto; }
.rfi-dlg .dlg-actions { position: sticky; bottom: 0; background: var(--surface); padding: 12px 0; margin-top: 8px; border-top: 1px solid var(--line-soft); z-index: 2; }
.rfi-via-l { display: inline-flex; align-items: center; gap: 6px; }
.rfi-via-l .hint { margin: 0; }
.field.rfi-via { height: 36px; width: auto; font-size: 13.5px; }
@media (max-width: 899px) {
  .rfi-cols { grid-template-columns: 1fr; }
  /* on one column: who it goes to, what is asked about, then the words */
  .rfi-side { display: contents; }
  .rfi-side > * { order: 1; }
  .rfi-side > :first-child { order: -1; }
  .rfi-head { display: none; }
  .rfi-row { grid-template-columns: 18px 44px minmax(0, 1fr) 74px; gap: 2px 10px; align-items: start; }
  .rfi-row > input[type=checkbox], .rfi-row .rfi-photo { margin-top: 4px; }
  .rfi-row .rfi-name { grid-column: 3; }
  .rfi-row .rfi-sku, .rfi-row .rfi-fin { grid-column: 3; grid-row: auto; font-size: 12px; }
  .rfi-row .rfi-sku:empty, .rfi-row .rfi-fin:empty { display: none; }
  .rfi-row { grid-template-rows: auto auto 1fr; }
  .rfi-row .rfi-qu { display: flex; flex-direction: column; gap: 4px; grid-column: 4; grid-row: 1 / span 3; }
  .rfi-send-note, .rfi-dlg .dlg-actions .rfi-to-said { text-align: left; }
  /* iOS Safari zooms into a field under 16 px */
  .field.rfi-qty, .field.rfi-unit, .rfi-to .field, .field.rfi-note, .field.rfi-via { font-size: 16px; }
  .ptable.sup.with-rfi .pt-row { grid-template-columns: 1fr 60px; }
}
@media (max-width: 599px) {
  .rfi-dlg .dlg-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .rfi-dlg .dlg-actions [data-testid="rfi-cancel"], .rfi-via-l .hint { display: none; }
  .rfi-via-l { display: block; }
  .field.rfi-via { width: 100%; height: 40px; }
  .rfi-dlg .dlg-actions .btn.primary { grid-column: 1 / -1; }
  /* beside Send: Open and Send on one line, the list keeps the room */
  .rfi-dlg .dlg-actions .btn.primary[data-testid="rfi-send"] { grid-column: auto; }
  .rfi-send-note, .rfi-dlg .dlg-actions .rfi-to-said { grid-column: 1 / -1; }
}

/* ---------------- a project's home page (Baden's Loom of 30/10/2026; state/ffe-schedule-design/accueil-projet/maquette_1.png) ---------------- */
.home-meta { margin: 0 0 14px 12px; color: var(--muted); font-size: 14.5px; }
.home { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; max-width: 1500px; margin-left: 12px; } /* the same left line as the project's title */
.notice:has(~ .home) { margin-left: 12px; }
/* a computer: the schedules at the left, the to-dos and Files at the right, each tile its own height (Baden, 06/11/2026) */
.home-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.home-one > .home-main { grid-column: 1 / -1; }
.home-one > .home-side { display: none; }
.ht { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 20px; }
.ht-head { display: flex; align-items: center; gap: 9px; min-height: 36px; margin-bottom: 14px; }
.ht-h { margin: 0; font-family: var(--serif); font-weight: 500; font-size: calc(22px * var(--serif-scale)); line-height: 1.15; }
.ht-title { color: var(--ink); text-decoration: none; }
a.ht-title:hover { color: var(--accent-text); }
.ht-count { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ht-action { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ht-icon { color: var(--muted); }
.ht-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }

.hs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 10px; }
.hs { display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s); color: var(--ink); text-decoration: none; min-width: 0; }
@media (hover: hover) { .hs:hover { border-color: var(--accent); } }
.hs:focus-visible, .hl-a:focus-visible, .hl-pdf:focus-visible, .hl-qr:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hs-ic { color: var(--accent-text); }
.hs-zero .hs-ic { color: var(--faint); }
.hs-tx, .hl-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.hs-name, .hl-l { font-weight: 500; overflow-wrap: anywhere; }
.hs-sub, .hl-sub { color: var(--muted); font-size: 13px; }
.hs-go { color: var(--muted); }

.hl-list { display: flex; flex-direction: column; gap: 10px; }
.hl { display: flex; align-items: center; gap: 8px; min-height: 66px; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s); min-width: 0; }
@media (hover: hover) { .hl:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); } }
.hl-a { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; color: var(--ink); text-decoration: none; }
.hl-a .ic:first-child { color: var(--accent-text); }
.hl-qr { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: none; margin-left: 4px; padding-left: 14px; border-left: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
.hl-qr img { display: block; width: 72px; height: 72px; background: #fff; }
.hl-qr .hl-sub { font-size: 11.5px; white-space: nowrap; }
.hl-pdfs { display: flex; flex-direction: column; margin-top: 16px; }
.hl-h { margin: 0 0 6px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.hl-pdf { display: flex; align-items: center; gap: 14px; padding: 9px 15px; border-top: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; min-width: 0; }
.hl-pdf:hover .hl-l { color: var(--accent-text); }
.hl-pdf .ic:first-child { color: var(--accent-text); }
.hl-more { align-self: flex-start; margin: 4px 0 0 40px; } /* its words on the line of the PDFs' names */
.ht-body > .hint { margin: 14px 0 0; }

.td-list { display: flex; flex-direction: column; }
.td { position: relative; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 3px 0; border-bottom: 1px solid var(--line-soft); min-width: 0; }
.td-grip { position: absolute; left: -17px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 16px; height: 26px; color: var(--faint); cursor: grab; opacity: 0; touch-action: none; }
.td:hover .td-grip, .td-grip:focus-visible { opacity: 1; }
.td-check { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.td-check:disabled { cursor: default; }
.td-text { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 3px 0; cursor: text; }
.td-edit { flex: 1; min-width: 0; height: 32px; padding: 0 8px; border: 1px solid var(--accent); border-radius: var(--r-s); background: var(--surface); outline: none; }
.td-who { flex: none; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.td-x { flex: none; color: var(--muted); opacity: 0; }
.td:hover .td-x, .td-x:focus-visible { opacity: 1; }
.td.is-done .td-text { color: var(--muted); text-decoration: line-through; }
.td-empty { margin: 2px 0 10px; }
.td-add { display: flex; align-items: center; gap: 2px; margin-top: 12px; padding-left: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s); }
.td-add:focus-within { border-color: var(--accent); }
.td-new { flex: 1; min-width: 0; height: 42px; padding: 0 10px 0 2px; border: 0; background: transparent; outline: none; }
.td-toggle { display: inline-flex; align-items: center; gap: 5px; margin: 12px 0 4px; padding: 3px 0; border: 0; background: none; color: var(--muted); font-size: 13.5px; cursor: pointer; }
.td-toggle:hover { color: var(--ink); }
.td-done .td:last-child { border-bottom: 0; }

@media (pointer: coarse) { .td-x, .td-grip { opacity: 1; } .td-grip { position: static; transform: none; flex: none; width: 24px; height: 32px; } .td-check { width: 22px; height: 22px; } }
@media (max-width: 1160px) {
  .home { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  /* one column: the tiles in their own order, as before the two columns (the phone's page is unchanged) */
  .home-col { display: contents; }
  .home-col > .ht { order: var(--o, 0); }
}
@media (max-width: 860px) {
  .home-meta { margin: 0 0 12px 2px; font-size: 13.5px; }
  .home { gap: 12px; margin-left: 0; }
  .notice:has(~ .home) { margin-left: 0; }
  .ht { padding: 14px 14px 16px; }
  .ht-head { margin-bottom: 10px; }
  .hs-list { gap: 8px; }
  .hs { min-height: 60px; }
  .td-new { font-size: 16px; } /* iOS Safari zooms into a field under 16 px */
  .td-edit { font-size: 16px; }
}
/* The schedules on a phone (Baden, 06/11/2026: "just a tile saying schedules"): one line that opens their list where it is,
   the same width as the product cards' (App.CARDS_BELOW, 760 px). A computer has no such line: every schedule is a tile. */
.hs-sum, .hs-sum-h { display: none; }
@media (max-width: 760px) {
  .ht-schedules { padding: 0; }
  .hs-sum-h { display: block; }
  .hs-sum { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 12px 16px; border: 0; background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; border-radius: var(--r); }
  .hs-sum:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .hs-sum-name { font-family: var(--serif); font-weight: 500; font-size: calc(21px * var(--serif-scale)); line-height: 1.15; }
  .hs-sum-go { transition: transform .15s; }
  .ht-schedules.is-open .hs-sum-go { transform: rotate(90deg); }
  .hs-sum-h { margin: 0; font: inherit; }
  .ht-schedules > .ht-head, .ht-schedules > .ht-body { display: none; }
  /* open: Add schedule, then the list (the title is the line's; Add stays before the list, in the page's order and the eye's) */
  .ht-schedules.is-open > .ht-body { display: flex; padding: 0 14px 14px; }
  .ht-schedules.is-open > .ht-head { display: flex; min-height: 0; margin: 0 14px 10px; }
  .ht-schedules.is-open > .ht-head:not(:has(.ht-action)) { display: none; }
  .ht-schedules > .ht-head .ht-h { display: none; }
  .ht-schedules > .ht-head .ht-action { margin-left: 0; }
}

/* ---------------- Two way Chat: a project's Correspondence (state/ffe-schedule-design/chat/) ---------------- */
.page.page-chat { padding: 0; overflow: hidden; display: flex; min-height: 0; }
.chat { flex: 1; min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(300px, 410px) minmax(0, 1fr); border-top: 1px solid var(--line-soft); }
.chat-list { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; border-right: 1px solid var(--line); padding: 16px 14px; gap: 12px; }
.chat-list-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px; }
.chat-list-h h2 { margin: 0; font: 500 calc(21px * var(--serif-scale))/1.15 var(--serif); }
.chat-list-h .btn { height: 36px; }
.chat-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-linebar { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--accent-soft); }
.chat-linebar-t { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--accent-text); }
.chat-linebar-a { display: flex; flex-wrap: wrap; gap: 6px; justify-content: space-between; }
.chat-pill { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; height: 30px; padding: 0 12px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.chat-pill:hover { border-color: var(--faint); }
.chat-pill.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.chat-pill small { font-weight: 400; color: var(--muted); }
.chat-pill .ic { display: inline-block; vertical-align: -2px; margin-left: 4px; }
.chat-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--muted); }
.chat-search-in { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink); }
.chat-rows { display: flex; flex-direction: column; flex: 1 0 auto; }
.chat-row { display: flex; gap: 12px; padding: 13px 10px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line-soft); border-radius: var(--r-s); }
.chat-row:hover { background: color-mix(in srgb, var(--side-on) 40%, transparent); }
.chat-row.on { background: var(--side-on); border-bottom-color: transparent; }
.chat-row-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chat-row-t, .chat-row-l { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.chat-row-l { align-items: center; }
.chat-row-s { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-row.unread .chat-row-s { font-weight: 600; }
.chat-row-w { flex: none; font-size: 12px; color: var(--muted); }
.chat-row-m { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-row-x { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chat-row.unread .chat-row-x { color: var(--ink); }
.chat-badge { flex: none; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 600; }
.chat-done { flex: none; font-size: 12px; color: var(--muted); background: var(--sec); padding: 2px 9px; border-radius: 999px; }
.nav-i .nav-badge { margin-left: auto; }
.chat-none { color: var(--muted); padding: 14px 8px; margin: 0; line-height: 1.5; }
.chat-sched { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px 8px; border-top: 1px solid var(--line-soft); color: inherit; text-decoration: none; font-size: 14px; }
.chat-sched span { flex: 1; min-width: 0; }
.chat-av { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; font-size: 15px; letter-spacing: .02em; }
.chat-av.big { width: 56px; height: 56px; font-size: 18px; }
.chat-av.small { width: 32px; height: 32px; font-size: 12px; }
.chat-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); container-type: inline-size; }
.chat-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--faint); }
.chat-empty p { margin: 0; color: var(--muted); }
.chat-wait { flex: 1; display: grid; place-items: center; }
.chat-t-h { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 22px 12px; }
.chat-back { display: none; }
/* a narrow reading pane (a tablet, a small laptop) breaks the subject between words, never letter by letter: below
   about 180 px of title, the menu and the status go under it, on the right */
.chat-t-tt { flex: 1 1 180px; min-width: 0; }
.chat-t-tt h2 { margin: 0; font: 500 calc(26px * var(--serif-scale))/1.12 var(--serif); overflow-wrap: anywhere; }
.chat-t-tt p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.chat-t-proj { display: none; }
.chat-t-tools { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.chat-t-tools .btn.small { height: 36px; width: 38px; }
.chat-state { height: 36px; padding: 0 8px; border: 1px solid color-mix(in srgb, var(--ink) 18%, var(--paper)); border-radius: var(--r-s); background: var(--surface); }
.chat-strip { display: flex; align-items: center; gap: 14px; margin: 0 22px 6px; padding: 8px 12px; background: var(--sec); border-radius: var(--r-s); }
.chat-strip-p { width: 64px; height: 48px; object-fit: contain; background: #fff; border-radius: 3px; flex: none; mix-blend-mode: multiply; }
.chat-strip-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chat-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; }
.chat-trail .ic { color: var(--faint); }
.chat-strip-n { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.chat-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 22px 18px; display: flex; flex-direction: column; gap: 16px; }
.chat-m { display: flex; gap: 12px; align-items: flex-start; }
.chat-m-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.chat-m-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; width: 100%; }
.chat-m-a { font-weight: 600; }
.chat-m-tag { color: var(--muted); font-size: 13px; }
.chat-m-w { color: var(--muted); font-size: 12px; }
.chat-m-x { margin-left: auto; }
.chat-m-orig { font-size: 12px; }
.chat-m-x { border: 0; background: none; padding: 2px; color: var(--faint); cursor: pointer; opacity: 0; transition: opacity .12s; }
.chat-m:hover .chat-m-x, .chat-m-x:focus-visible { opacity: 1; }
@media (hover: none) { .chat-m-x { opacity: 1; } }
.chat-m-x:hover { color: var(--bad); }
.chat-bubble { background: var(--sec); border-radius: var(--r-s); padding: 9px 13px; max-width: min(100%, 720px); }
.chat-m.mine .chat-bubble { background: color-mix(in srgb, var(--accent) 11%, var(--surface)); }
.chat-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.chat-gone { color: var(--muted); font-style: italic; }
.chat-files { display: flex; flex-wrap: wrap; gap: 10px; }
.chat-photo { display: block; line-height: 0; }
.chat-photo img { display: block; max-width: min(100%, 300px); max-height: 240px; border-radius: var(--r-s); background: var(--sec); object-fit: cover; }
.chat-file { display: flex; align-items: center; gap: 12px; min-width: 240px; max-width: 380px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: inherit; text-decoration: none; }
.chat-file:hover { border-color: var(--faint); }
.chat-file-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-file-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-file-s { font-size: 12px; color: var(--muted); }
.chat-file-d { transform: rotate(180deg); color: var(--muted); }
.chat-note { background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 18%, var(--warn-bg)); border-radius: var(--r-s); padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-note-h { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.chat-note-h .ic { color: var(--warn); }
.chat-note-h b { color: var(--ink); font-weight: 600; }
.chat-sys { display: flex; gap: 8px; align-items: flex-start; align-self: center; max-width: 620px; color: var(--muted); font-size: 13px; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--r-s); padding: 8px 12px; }
.chat-ro { margin: 0 22px 16px; padding: 10px 14px; background: var(--sec); border-radius: var(--r-s); color: var(--muted); }
.chat-comp { flex: none; margin: 0 22px 16px; border: 1px solid color-mix(in srgb, var(--ink) 18%, var(--paper)); border-radius: 6px; background: #fff; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.chat-comp:focus-within { border-color: var(--accent); }
.chat-comp.drop { border-color: var(--accent); background: var(--accent-soft); }
.chat-comp.as-note { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 35%, var(--warn-bg)); }
.chat-comp-in { width: 100%; border: 0; outline: none; background: none; resize: none; min-height: 52px; line-height: 1.45; font-size: 15px; }
.chat-comp-tools { display: flex; align-items: center; gap: 2px; }
.chat-comp-tools .btn.ghost { color: var(--muted); height: 34px; }
.chat-comp-tools .btn.ghost.on { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
/* a reading pane too narrow for the words keeps Send in view: the tools show their icons only, as on a phone (titles stay) */
@container (max-width: 520px) {
  .chat-comp-tools .btn.ghost { font-size: 0; gap: 0; width: 38px; padding: 0; justify-content: center; }
}
.chat-up:empty { display: none; }
.chat-up { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-up-c { display: inline-flex; align-items: center; gap: 6px; max-width: 280px; padding: 3px 6px 3px 9px; background: var(--sec); border-radius: 999px; font-size: 13px; }
.chat-up-x { border: 0; background: none; padding: 1px; color: var(--muted); cursor: pointer; }
.chat-err { margin: 0; color: var(--bad); font-size: 13px; }
.chat-new { display: flex; flex-direction: column; gap: 8px; min-width: min(560px, 100%); }
.chat-lbl { font-size: 13px; color: var(--muted); margin-top: 6px; }
.chat-new-in { margin: 0; font-size: 15px; font-weight: 500; }
.chat-in { width: 100%; border: 1px solid var(--line); border-radius: var(--r-s); padding: 9px 11px; background: var(--surface); font-size: 15px; }
textarea.chat-in { resize: vertical; line-height: 1.45; }
.chat-new-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chat-new-people .hint { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.chat-new-line { position: relative; }
.chat-sug { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); max-height: 260px; overflow-y: auto; }
.chat-sug-i { display: flex; flex-direction: column; align-items: flex-start; width: 100%; border: 0; background: none; padding: 8px 11px; text-align: left; cursor: pointer; }
.chat-sug-i:hover, .chat-sug-i:focus-visible { background: var(--sel); }
.chat-sug-i b { font-weight: 500; }
.chat-sug-i small { color: var(--muted); }
.chat-new-foot { display: flex; justify-content: flex-end; margin-top: 6px; }
.chat-pick { display: flex; flex-direction: column; gap: 4px; min-width: min(460px, 100%); }
.chat-pick-r { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.chat-pick-n { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.chat-pick-n small { color: var(--muted); }
.chat-add { margin-top: 10px; }
.chat-add-r { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.chat-add-r .chat-in { flex: 1 1 150px; width: auto; }
.chat-tile { display: flex; flex-direction: column; gap: 2px; }
.chat-tile-r { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--line-soft); color: inherit; text-decoration: none; min-width: 0; }
.chat-tile-r:hover .chat-tile-s { text-decoration: underline; text-underline-offset: 2px; }
.chat-tile-s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-tile-r.unread .chat-tile-s { font-weight: 600; }
.chat-tile-m { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-tile-all { padding-top: 8px; font-size: 13px; }
.g-more, .pv-menu { position: relative; }
.g-talks { position: absolute; top: 0; right: -2px; display: grid; place-items: center; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 600; line-height: 1; pointer-events: none; }
/* the studio's Correspondence and its count (state/ffe-schedule-design/chat-studio/): one count, three places */
.top-bell { position: relative; flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); text-decoration: none; }
.top-bell:hover { background: var(--side-on); }
.top-bell-n { position: absolute; top: 1px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; }
.pc-talk { position: relative; z-index: 1; flex: none; margin-left: auto; display: inline-flex; padding: 5px 4px 2px 2px; color: var(--ink); text-decoration: none; }
.pc-talk .chat-badge { align-self: flex-start; margin: -4px 0 0 -6px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; }
.pc-talk:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 4px; }
.pc-talk + .pc-menu { margin-left: 0; }
.page-screen.studio-chat > .studio-chat-h { flex: none; padding: 4px var(--gutter) 14px; }
.studio-chat-h .proj-title { margin: 0; }
.studio-chat-sub { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.page-screen.studio-chat > .chat { flex: 1; min-height: 0; }
/* the list never takes more than about two fifths: between a tablet and a laptop the open conversation keeps room to read and to write */
.studio-chat .chat { grid-template-columns: minmax(320px, min(490px, 42%)) minmax(0, 1fr); }
/* the order stays at the right of the tabs; when the list is narrow (a tablet, a small laptop) the tabs go on two lines
   inside their own block rather than spill out of the list (Gemini, 10/11/2026) */
.studio-chat .chat-tabs { flex-wrap: nowrap; align-items: flex-start; }
.studio-chat .chat-tabs .chat-pills { flex-wrap: wrap; flex: 0 1 auto; min-width: 0; }
.studio-chat .chat-tabs .chat-order { flex: none; height: 30px; padding-block: 0; } /* a pill's height: the row as before on one line */
.chat-tabs { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.chat-order { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; padding: 4px 2px; }
.chat-row-trail { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-row-by { display: none; }
.chat-row-mm { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.chat-row-mm .chat-badge, .chat-row-mm .chat-done { flex: none; }
.chat-done:has(.ic) { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.chat-row-go { display: none; }
.chat-day { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.chat-day::before, .chat-day::after { content: ''; flex: 1; border-top: 1px solid var(--line-soft); }
/* a trade's own page: their conversations and the published schedules, no project */
.bare-screen.chat-page { height: 100dvh; min-height: 0; display: flex; flex-direction: column; }
.chat-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; background: var(--surface); }
.chat-bar-s { font-family: var(--serif); font-size: calc(19px * var(--serif-scale)); letter-spacing: .12em; text-transform: uppercase; line-height: 1.1; min-width: 0; }
a.chat-bar-s { color: inherit; text-decoration: none; }
.chat-bar-s img { display: block; max-width: 200px; max-height: 42px; object-fit: contain; object-position: left center; }
@media (max-width: 760px) {
  .chat { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .chat.has-open .chat-list { display: none; }
  .page-screen.studio-chat:has(.chat.has-open) > .studio-chat-h { display: none; }
  .page-screen.studio-chat > .studio-chat-h { padding: 2px var(--gutter) 6px; }
  .studio-chat .chat-row-who { display: none; }
  .studio-chat .chat { grid-template-columns: minmax(0, 1fr); }
  .studio-chat .chat-tabs .chat-pills { flex-wrap: wrap; }
  .studio-chat .chat-row-by { display: inline; }
  .studio-chat .chat-row-go { display: block; flex: none; align-self: center; color: var(--faint); }
  .studio-chat .chat-tabs .chat-order { display: none; }
  .top .top-bell { width: 34px; margin-left: auto; }
  .top .top-bell + .avatar { margin-left: 0; }
  .chat:not(.has-open) .chat-thread { display: none; }
  .chat-list { border-right: 0; padding: 12px; }
  .chat-t-h { flex-wrap: wrap; position: relative; padding: 10px 12px 8px; background: var(--head); gap: 8px; }
  .chat-t-h .chat-av { display: none; }
  .chat-back { display: inline-flex; width: 36px; height: 36px; margin-left: -6px; flex: none; }
  .chat-t-tt { flex: 1 1 0; }
  .chat-t-proj { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .chat-t-tt h2 { font-size: calc(22px * var(--serif-scale)); }
  .chat-t-tools .chat-state, .chat-t-tools .chat-status { display: none; }
  .chat-t-tools .btn.small { border: 0; background: none; width: 34px; }
  .chat-strip { margin: 0; padding: 0 14px 10px 14px; background: var(--head); border-radius: 0; gap: 10px; }
  .chat-strip .btn { flex: none; padding: 0 8px; }
  .chat-strip-p { width: 44px; height: 36px; }
  .chat-trail { font-size: 13px; color: var(--muted); }
  .chat-strip-n { font-size: 12px; }
  .chat-msgs { padding: 12px 14px; gap: 18px; }
  .chat-m { gap: 10px; }
  .chat-av { width: 38px; height: 38px; font-size: 14px; }
  .chat-bubble, .chat-m.mine .chat-bubble { background: none; padding: 0; }
  .chat-photo img { max-width: 100%; max-height: 300px; }
  .chat-file { min-width: 0; width: 100%; max-width: none; }
  .chat-files { width: 100%; }
  .chat-comp { margin: 0 10px calc(10px + env(safe-area-inset-bottom)); padding: 8px 10px; }
  .chat-comp-in { font-size: 16px; min-height: 44px; } /* below 16 px, iOS zooms the page in */
  .chat-comp-tools .btn { font-size: 0; gap: 0; }
  .chat-comp-tools .btn.ghost { width: 38px; padding: 0; justify-content: center; }
  .chat-comp-tools .btn.primary { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 50%; }
  .chat-in, .chat-search-in { font-size: 16px; }
  .chat-new { min-width: 0; }
  .chat-bar { padding: 8px 14px; }
}

.chat-gone-back { margin: 12px auto 0; }
.chat-earlier { display: flex; margin: 4px auto 14px; }

/* ---------------- Messages: List or Board, and the Kanban (state/ffe-schedule-design/chat-kanban/, chosen 12/11/2026) ----------------
   The seven statuses keep the colours the studio's owner gave them (grey, yellow, orange, rosy red, light blue, blue, green),
   measured on the chosen mockups: a column's head, its body, its words, the stronger head of a phone's studio page, a dot. */
[data-kstatus="upcoming"] { --k-head: #e3e5e5; --k-body: #f4f5f5; --k-ink: #2f3b40; --k-strong: #e0e1e1; --k-dot: #5c676b; }
[data-kstatus="todo"] { --k-head: #fff4d3; --k-body: #fbf8ef; --k-ink: #6e4214; --k-strong: #fee093; --k-dot: #ecb00e; }
[data-kstatus="working"] { --k-head: #feebd9; --k-body: #fbf6f0; --k-ink: #6f3814; --k-strong: #fac49e; --k-dot: #f58f05; }
[data-kstatus="internal_review"] { --k-head: #fcdfe0; --k-body: #fbf3f3; --k-ink: #7f1c1b; --k-strong: #f8d6d7; --k-dot: #931b2f; }
[data-kstatus="client_review"] { --k-head: #deeefa; --k-body: #f2f7fa; --k-ink: #163f5b; --k-strong: #cfecfd; --k-dot: #3d80dd; }
[data-kstatus="changes"] { --k-head: #dde7fa; --k-body: #f0f4fa; --k-ink: #223e62; --k-strong: #b3d0fb; --k-dot: #166cd6; }
[data-kstatus="done"] { --k-head: #e6f3e6; --k-body: #f3f7f3; --k-ink: #2a4740; --k-strong: #b7ddc6; --k-dot: #109b2a; }
/* a development space's two decisions (16/11/2026), measured on its mockup (state/ffe-schedule-design/espace-dev/board_ordi_1.png) */
[data-kstatus="please_price"] { --k-head: #ede5f4; --k-body: #f7f5f8; --k-ink: #2e2340; --k-strong: #cabcd9; --k-dot: #5b3e74; }
[data-kstatus="proceed"] { --k-head: #eee3f7; --k-body: #f7f4fa; --k-ink: #57107f; --k-strong: #d9b6e6; --k-dot: #a62bd2; }
.kb[data-cols="9"] .kb-cols { grid-template-columns: repeat(9, minmax(116px, 1fr)); gap: 6px; }
.kb[data-cols="9"] .kb-studio .kb-col-h, .kb-studio.kb[data-cols="9"] .kb-col-h { padding: 0 7px 0 10px; gap: 5px; }
@media (max-width: 1160px) and (min-width: 761px) { .kb[data-cols="9"] .kb-cols { grid-template-columns: repeat(9, 164px); } }
@media (max-width: 760px) { .kb[data-cols="9"][data-view="phone"] .kb-col:nth-child(n+4) { grid-column: span 4; } }
.kb-decision { color: var(--muted); }
.kb-decision::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--k-dot); margin-right: 6px; vertical-align: 1px; }
.kb-dot { flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--k-dot); }
.kb-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--k-head); color: var(--k-ink); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.chat-t-tools .btn.chat-status { gap: 6px; padding: 0 10px 0 4px; height: 36px; width: auto; }
.chat-status .kb-chip { background: none; padding: 0 2px 0 6px; font-size: 13.5px; }
.kb-pick .kb-pick-h { padding: 6px 10px 4px; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.kb-pick .mi .kb-dot { margin: 0 3px; }
.kb-pick .mi.on { font-weight: 600; }
.kb-pick-on { margin-left: auto; color: var(--ink); }
.kb-pick-sep { height: 1px; background: var(--line-soft); margin: 5px 4px; }

/* the page's head: "Messages", the project, the count, the switch List / Board and the board's filters */
.page.page-chat { flex-direction: column; }
.msgs-h { flex: none; padding: 6px var(--gutter) 14px calc(var(--gutter) + 12px); }
.page-screen.studio-chat > .msgs-h { padding: 4px var(--gutter) 14px; }
.msgs-h-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.msgs-h-t { min-width: 0; }
.msgs-kicker { font-family: var(--serif); font-size: calc(33px * var(--serif-scale)); font-weight: 600; line-height: 1.15; letter-spacing: -.005em; }
.msgs-h .msgs-project { font-size: calc(25px * var(--serif-scale)); font-weight: 400; margin: 2px 0 0; }
.msgs-h .msgs-title { margin: 0; }
.msgs-sub { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.msgs-h-tools { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex: none; }
.msgs-h-f { align-items: center; margin-top: 14px; }
.msgs-f { display: flex; align-items: center; gap: 10px; min-width: 0; }
.msgs-f .msgs-count { color: var(--muted); font-size: 14px; white-space: nowrap; margin-left: 14px; }
.kb-switch { display: inline-flex; flex: none; border: 1px solid color-mix(in srgb, var(--ink) 14%, var(--paper)); border-radius: var(--r); background: var(--surface); padding: 0; overflow: hidden; }
.kb-switch-b { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 18px; border: 0; background: none; cursor: pointer; font-size: 15px; color: var(--ink); }
.kb-switch-b + .kb-switch-b { border-left: 1px solid color-mix(in srgb, var(--ink) 10%, var(--paper)); }
.kb-switch-b.on { background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); border-radius: calc(var(--r) - 1px); }
.kb-select { height: 42px; min-width: 140px; max-width: 220px; padding: 0 34px 0 14px; border: 1px solid color-mix(in srgb, var(--ink) 14%, var(--paper)); border-radius: var(--r); background: var(--surface); font-size: 15px; cursor: pointer; }
.kb-filter.on { background: var(--accent-soft); border-color: var(--accent); }
.page-chat > .chat, .page-screen.studio-chat > .chat { flex: 1; min-height: 0; }
/* a conversation opened from the board: alone, its way back leads to the board */
.chat.solo { grid-template-columns: minmax(0, 1fr); }
.chat.solo .chat-list { display: none; }
.chat.solo .chat-back { display: inline-flex; width: 36px; height: 36px; margin-left: -8px; flex: none; }

/* the board */
.kb { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0 var(--gutter) 16px calc(var(--gutter) - 10px); border-top: 1px solid var(--line-soft); padding-top: 14px; }
.page-screen.studio-chat > .kb { padding-left: calc(var(--gutter) - 14px); border-top: 0; padding-top: 4px; }
.kb[hidden] { display: none; }
.kb-wait, .kb-none { padding: 40px; display: grid; place-items: center; gap: 12px; color: var(--muted); }
.kb-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(7, minmax(154px, 1fr)); gap: 8px; overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; }
.kb-col { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: linear-gradient(var(--k-body), color-mix(in srgb, var(--k-body) 55%, var(--paper))); border: 1px solid color-mix(in srgb, var(--k-head) 70%, var(--line-soft)); border-radius: 10px; }
.kb-col.kb-drop { outline: 2px dashed color-mix(in srgb, var(--k-dot) 70%, transparent); outline-offset: -2px; }
.kb-col-h { flex: none; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; background: var(--k-head); color: var(--k-ink); border-radius: 9px 9px 0 0; border: 0; font: inherit; text-align: left; width: 100%; }
.kb-col-t { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; line-height: 1.15; overflow-wrap: anywhere; }
.kb-col-n { flex: none; font-size: 15px; }
.kb-col-h .kb-dot { display: none; }
.kb-studio .kb-col-h .kb-dot { display: inline-block; }
.kb-studio .kb-col-h { padding: 0 10px 0 13px; gap: 7px; }
.kb-studio .kb-col-t { font-size: 14.5px; }
.kb-studio .kb-col-n { min-width: 24px; height: 23px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: color-mix(in srgb, var(--k-dot) 12%, transparent); font-size: 14px; }
.kb-cards { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px 7px 8px; }
.kb-empty { margin: 6px 4px; color: var(--muted); font-size: 13px; }
.kb-more { flex: none; margin: 4px 8px 10px; height: 34px; border: 0; background: none; color: var(--muted); font-size: 13.5px; cursor: pointer; border-radius: var(--r-s); }
.kb-more:hover { background: color-mix(in srgb, var(--k-head) 60%, transparent); color: var(--ink); }
.kb-card { position: relative; flex: none; display: flex; flex-direction: column; gap: 7px; padding: 12px 10px 11px 12px; background: #fff; border: 1px solid color-mix(in srgb, var(--ink) 8%, #fff); border-radius: 9px; box-shadow: 0 1px 2px rgba(20, 24, 22, .04); color: var(--ink); text-decoration: none; cursor: pointer; }
.kb-card:hover { border-color: color-mix(in srgb, var(--ink) 18%, #fff); box-shadow: 0 2px 8px rgba(20, 24, 22, .07); }
.kb-card.kb-dragging { opacity: .45; }
.kb-card.kb-moved { animation: kb-moved .9s ease; }
@keyframes kb-moved { from { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); } }
.kb-card-t { display: flex; align-items: flex-start; gap: 4px; }
.kb-card-s { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; color: inherit; text-decoration: none; }
.kb-card-s::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.kb-card-s:focus-visible { outline: none; }
.kb-card:has(.kb-card-s:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.kb-card-m { position: relative; z-index: 1; }
.kb-col-u { min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; }
.kb-card-m { flex: none; display: grid; place-items: center; width: 24px; height: 22px; margin: -2px -4px 0 0; border: 0; background: none; border-radius: 5px; color: var(--muted); cursor: pointer; }
.kb-card-m:hover, .kb-card-m[aria-expanded="true"] { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.kb-card-p { font-size: 13px; color: var(--muted); margin-top: -2px; }
.kb-card-a { display: flex; align-items: center; gap: 6px; min-height: 20px; font-size: 13px; color: var(--faint); }
.kb-aud { display: inline-flex; align-items: center; gap: 5px; }
.kb-aud-i { display: none; }
.kb-studio .kb-aud-i { display: block; }
.kb-portal { color: var(--faint); display: inline-flex; }
.kb-unread { margin-left: auto; min-width: 20px; height: 20px; font-size: 11.5px; }
.kb-card-x { font-size: 13px; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.kb-card-f { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 5px; margin-top: 4px; }
.kb-people { flex: none; display: flex; gap: 2px; }
.kb-av { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 10.5px; letter-spacing: .02em; }
.kb-av-more { background: color-mix(in srgb, var(--ink) 12%, #fff); color: var(--ink); }
.kb-files { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 12.5px; }
/* the files: none on a computer's card (the mockups), in the foot on a phone; the unread: on the audience's line on a
   computer, at the foot on a phone (where the phone mockups put it, away from the audience's word) */
.kb-card-a .kb-files, .kb-card-f .kb-files, .kb-unread-f { display: none; }
.kb-when { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.kb-back { align-self: flex-start; margin: 0 0 8px -6px; }
.kb-tabs { display: none; }
@media (max-width: 1160px) and (min-width: 761px) { .kb-cols { grid-template-columns: repeat(7, 172px); } }
/* a computer (Frederic, 12/11/2026, after his look): each column's name on ONE line at 1440, as in the mockups ("Internal
   Review" took two), by the head's spacing only (the studio's: its words at 13.5px, as the mockup's); and the board's bar at
   one height, the select's and the switch's 42px, "New conversation" and the icons included. The phone keeps its own. */
@media (min-width: 761px) {
  .kb-col-h { padding: 0 13px; }
  .kb-studio .kb-col-h { padding: 0 8px 0 11px; gap: 5px; }
  .kb-studio .kb-col-t { font-size: 13.5px; }
  .kb-studio .kb-col-n { padding: 0 5px; }
  .msgs-f .kb-filter, .msgs-f .kb-search { height: 42px; width: 42px; }
  .msgs-f .btn.kb-new { height: 42px; padding: 0 16px; gap: 8px; font-size: 14.5px; }
}

@media (max-width: 760px) {
  .msgs-h { padding: 2px var(--gutter) 10px; }
  .page-screen.studio-chat > .msgs-h { padding: 2px var(--gutter) 10px; }
  .msgs-kicker { font-family: var(--sans); font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
  .msgs-h .msgs-project { font-size: calc(24px * var(--serif-scale)); margin: 2px 0 0; }
  .msgs-sub { font-size: 14.5px; margin-top: 2px; }
  .msgs-h-f { margin-top: 12px; }
  .msgs-h-row { align-items: center; }
  .msgs-sub-phone { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
  .msgs-f { gap: 4px; }
  .msgs-f .kb-select { flex: 1; min-width: 0; max-width: none; height: 40px; font-size: 15px; }
  .studio-chat .msgs-h-f .msgs-f { flex: 1; }
  .studio-chat .msgs-h-f .kb-filter { flex: none; margin-left: 4px; }
  .msgs-f .kb-search, .msgs-f .kb-filter { width: 40px; border-color: transparent; background: none; }
  .msgs-f .kb-filter.on { background: var(--accent-soft); }
  .kb-switch-b { height: 38px; padding: 0 14px; gap: 7px; }
  .studio-chat .kb-switch { border-color: color-mix(in srgb, var(--ink) 14%, var(--paper)); }
  .studio-chat .kb-switch-b.on { background: var(--accent); color: var(--on-accent); box-shadow: none; border-radius: 0; }
  .msgs-solo > .msgs-h { display: none; }
  .page-screen.studio-chat:has(.chat.has-open) > .msgs-h { display: none; }
  .chat.solo .chat-back { margin-left: -6px; }
  /* the board on a phone: the page scrolls, not each column */
  .page.page-chat:has(> .kb:not([hidden])), .page-screen.studio-chat:has(> .kb:not([hidden])) { overflow-y: auto; }
  .kb { flex: none; padding: 10px 8px 16px; border-top: 0; }
  .page-screen.studio-chat > .kb { padding: 4px 6px calc(70px + env(safe-area-inset-bottom)); }
  .kb-cols { flex: none; overflow: visible; gap: 6px; }
  .kb-col { max-height: none; }
  .kb-cards { flex: none; overflow: visible; padding: 6px 5px 6px; gap: 6px; }
  .kb-card-f .kb-files { display: inline-flex; }
  .kb-card-a .kb-unread { display: none; }
  .kb-card-f .kb-unread-f { display: inline-grid; margin-left: auto; }
  .kb-card { padding: 9px 8px 9px 9px; gap: 5px; border-radius: 8px; }
  .kb-card-s { font-size: 12px; }
  .kb-card-m { width: 20px; height: 18px; margin-right: -4px; }
  .kb-card-p { font-size: 11.5px; }
  .kb-card-a { font-size: 11.5px; }
  .kb-aud { height: 20px; padding: 0 7px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, #fff); color: var(--ink); }
  .kb-studio .kb-aud-i { display: none; }
  .kb-card-x { font-size: 11.5px; line-height: 1.4; color: var(--muted); }
  .kb-av { width: 24px; height: 24px; font-size: 9.5px; }
  .kb-files, .kb-when { font-size: 11px; }
  .kb-col-h { height: 38px; padding: 0 10px; gap: 6px; }
  .kb-col-t { font-size: 13px; font-weight: 500; }
  .kb-col-n { font-size: 13px; }
  .kb-more { height: 30px; margin: 0 4px 6px; font-size: 12px; }
  /* a project: the seven statuses at once, three then four (projet_tel_2) */
  .kb[data-view="phone"] .kb-cols { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: 8px; }
  .kb[data-view="phone"] .kb-col:nth-child(-n+3) { grid-column: span 4; }
  .kb[data-view="phone"] .kb-col:nth-child(n+4) { grid-column: span 3; }
  .kb[data-view="phone"] .kb-col-h { cursor: pointer; justify-content: flex-start; column-gap: 5px; }
  .kb[data-view="phone"] .kb-col-t { flex: 0 1 auto; }
  .kb[data-view="phone"] .kb-col-t { white-space: normal; line-height: 1.15; overflow-wrap: anywhere; }
  .kb[data-view="phone"] .kb-col:nth-child(n+4) .kb-col-h { padding: 0 6px; height: auto; min-height: 38px; flex-wrap: wrap; column-gap: 3px; row-gap: 0; align-content: center; }
  .kb[data-view="phone"] .kb-col:nth-child(n+4) .kb-col-t { flex: 0 1 auto; font-size: 10.5px; }
  .kb[data-view="phone"] .kb-col:nth-child(n+4) .kb-col-n { font-size: 10.5px; }
  .kb[data-view="phone"] .kb-col:nth-child(n+4) .kb-card { padding: 7px 6px; }
  .kb[data-view="phone"] .kb-col:nth-child(n+4) .kb-card-s { font-size: 11px; }
  .kb[data-view="phone"] .kb-col:nth-child(n+4) .kb-card-x, .kb[data-view="phone"] .kb-col:nth-child(n+4) .kb-aud { font-size: 10.5px; }
  .kb[data-view="phone"] .kb-col:nth-child(n+4) .kb-card-m { display: none; }
  .kb[data-view="phone"] .kb-col:nth-child(n+4) .kb-av:not(.kb-av-more):nth-child(n+3) { display: none; }
  .kb[data-view="phone"] .kb-when { display: none; }
  /* the studio on a phone (studio_tel_1 has the date beside the people, the files below): a third of a real phone holds
     two people, so the files and the date share the line below */
  .kb[data-view="studio-phone"] .kb-card-f { flex-wrap: wrap; row-gap: 4px; }
  .kb[data-view="studio-phone"] .kb-card-f .kb-people { flex-basis: 100%; }
  .kb[data-view="studio-phone"] .kb-card-f .kb-files { order: 3; }
  .kb[data-view="studio-phone"] .kb-card-f .kb-when { order: 4; }
  .kb[data-view="studio-phone"] .kb-card-f .kb-unread-f { order: 5; margin-left: 4px; }
  .kb[data-view="studio-phone"] .kb-card-f { column-gap: 4px; }
  .kb[data-view="studio-phone"] .kb-av { width: 24px; height: 24px; font-size: 9.5px; }
  .kb[data-view="studio-phone"] .kb-people { gap: 2px; }
  .kb[data-view="studio-phone"] .kb-when { font-size: 10.5px; }
  .kb[data-view="phone"] .kb-card-f { flex-wrap: wrap; }
  .kb[data-view="phone"] .kb-files { margin-left: auto; }
  /* a third of a phone holds two people and one more thing: the unread (as projet_tel_2), the files otherwise */
  .kb[data-view="phone"] .kb-card.unread .kb-card-f .kb-files { display: none; }
  /* one column alone (its head or its "+ more" tapped) */
  .kb[data-view="one"] .kb-col { max-height: none; }
  .kb[data-view="one"] .kb-card-s { font-size: 15px; }
  .kb[data-view="one"] .kb-card-x { font-size: 14px; color: var(--ink); }
  .kb[data-view="one"] .kb-card-a, .kb[data-view="one"] .kb-card-p { font-size: 13px; }
  .kb[data-view="one"] .kb-av { width: 30px; height: 30px; font-size: 11.5px; }
  .kb[data-view="one"] .kb-when, .kb[data-view="one"] .kb-files { font-size: 13px; }
  .kb[data-view="one"] .kb-col-t { font-size: 15px; font-weight: 600; }
  /* the studio: three columns, the four others as tabs at the bottom with their number (studio_tel_1) */
  .kb[data-view="studio-phone"] .kb-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kb[data-view="studio-phone"] .kb-col { background: var(--surface); border-color: var(--line-soft); }
  .kb[data-view="studio-phone"] .kb-col-h { background: var(--k-strong); }
  .kb[data-view="studio-phone"] .kb-col-h .kb-dot { display: none; }
  .kb[data-view="studio-phone"] .kb-col-n { background: none; min-width: 0; padding: 0; font-size: 13px; }
  .kb[data-view="studio-phone"] .kb-col-t { font-size: 12.5px; }
  .kb[data-view="studio-phone"] .kb-col-h { padding: 0 8px 0 10px; }
  .kb[data-view="studio-phone"] .kb-card { border-radius: 8px; }
  .kb-tabs { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(6px); border-top: 1px solid var(--line-soft); }
  .kb-tab { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; height: 42px; padding: 0 5px; border: 0; border-radius: 10px 10px 6px 6px; background: var(--k-strong); color: var(--k-ink); font-size: 11px; line-height: 1.1; cursor: pointer; }
  .kb-tab-l { min-width: 0; color: var(--ink); text-align: center; }
  .kb-tab-n { flex: none; color: var(--ink); font-weight: 600; }
  .kb-tab-u { position: absolute; top: -6px; right: -2px; min-width: 17px; height: 17px; padding: 0 4px; font-size: 10.5px; }
}

/* the development space (16/11/2026, state/ffe-schedule-design/espace-dev/): its name and the way back in place of the studio's logo,
   its door in Settings, a request's decisions under its subject */
.side .dev-head { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.dev-head .dev-name { font-size: 22px; font-weight: 600; line-height: 1.15; color: var(--side-ink); }
.dev-head .dev-back { display: inline-flex; gap: 6px; align-items: flex-start; font-size: 14px; color: var(--side-ink); text-decoration: none; line-height: 1.35; }
.dev-head .dev-back:hover span { text-decoration: underline; }
.dev-head .dev-back svg { flex: none; margin-top: 2px; }
.side-folded .dev-head .dev-name, .side-folded .dev-head .dev-back span { display: none; }
.dev-card .dev-open { width: 100%; justify-content: center; margin-top: 6px; }
.dev-card .dev-waiting { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); margin: 12px 0 0; }
.chat-dev { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.chat-dev-d::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--k-dot); margin-right: 6px; vertical-align: 1px; }
.chat-dev-w { color: var(--warn); }
/* the preview edition's band (state/ffe-schedule-design/espace-dev/preview_ordi_1.png): over every screen, never mistaken for the studio */
.has-preview-band { --pv-h: 48px; }
.preview-band { position: relative; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 10px 24px; background: #fbd56e; color: #1d1b18; font-size: 14px; line-height: 1.35; }
.preview-band .pv-t { font-size: 20px; font-weight: 700; padding-right: 18px; border-right: 1px solid rgba(29, 27, 24, .25); }
.preview-band .pv-x { flex: 0 1 auto; }
.preview-band .pv-n { padding-left: 18px; border-left: 1px solid rgba(29, 27, 24, .25); }
.has-preview-band > .app { height: calc(100% - var(--pv-h)); }
@media (max-width: 760px) {
  .preview-band { padding: 8px 14px; gap: 2px 8px; font-size: 13px; }
  .preview-band .pv-t { font-size: 15px; padding-right: 0; border-right: 0; }
  .preview-band .pv-x { flex: 1 1 60%; }
  .preview-band .pv-n { flex-basis: 100%; padding-left: 30px; border-left: 0; }
}

/* ---- the add screen in the app's panel: add/add.css from its "top" section (add/embed-css.mjs) ---- */
/* ---------------- top ---------------- */
/* plain paper, no frosted glass (31/10/2026: scrolled, the list showed through it; the same choice as the trades' pages'
   band on 30/10). Sticky, in the flow: nothing of the list is under it at the top */
.qa-top { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 8px; padding: calc(6px + env(safe-area-inset-top)) 16px 6px; background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.qa-top-side.end { display: flex; justify-content: flex-end; }
/* the logo's place, kept before anything arrives (31/10/2026): 40 px high; the studio's name holds it until the logo
   comes the first time on a browser (.waiting: loading, out of the flow and unseen) */
.qa-logo { position: relative; display: flex; align-items: center; justify-content: center; height: 40px; min-width: 0; }
.qa-logo-img { display: block; max-height: 40px; max-width: min(200px, 100%); object-fit: contain; }
.qa-logo-img.waiting { position: absolute; opacity: 0; pointer-events: none; }
.qa-logo-type { font-family: var(--serif); font-size: calc(18px * var(--serif-scale)); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa-avatar { width: 44px; height: 44px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--ink) 88%, var(--accent)); color: var(--paper); font-size: 15px; letter-spacing: .04em; cursor: pointer; }

.qa { padding: 0 16px; }
.qa-title { font-family: var(--serif); font-weight: 500; font-size: calc(32px * var(--serif-scale)); line-height: 1.1; margin: 16px 2px 12px; letter-spacing: .005em; }

/* ---------------- destination ---------------- */
.qa-dest { background: var(--group); border-radius: 10px; overflow: hidden; }
.qa-dest-row { width: 100%; min-height: 50px; display: flex; align-items: center; gap: 14px; padding: 8px 14px 8px 16px; border: 0; background: transparent; text-align: left; cursor: pointer; color: var(--ink); }
.qa-dest-row + .qa-dest-row { border-top: 1px solid color-mix(in srgb, var(--ink) 7%, transparent); }
.qa-dest-row:active { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.qa-dest-row > .ic:first-child { color: var(--muted); }
.qa-dest-row > .ic:last-child { color: var(--faint); }
.qa-dest-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qa-dest-label { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa-dest-sub { font-size: 13px; color: var(--muted); }
.qa-dest-row.tray .qa-dest-label { color: var(--accent-text); }

/* ---------------- form ---------------- */
.qa-form { margin-top: 18px; }
.qa-label-row { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 8px; }
.qa-label { font-size: 17px; font-weight: 600; }
.qa-link { border: 0; background: none; padding: 6px 0; color: var(--accent-text); font-size: 15.5px; cursor: pointer; text-decoration: none; }
a.qa-link { display: inline-block; margin-top: 14px; }
.qa-field { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 6px 0 14px; border: 1px solid color-mix(in srgb, var(--ink) 20%, var(--paper)); border-radius: 8px; background: var(--surface); }
.qa-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.qa-field > .ic { color: var(--muted); }
.qa-input { flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; outline: none; font-size: 16px; /* 16 px: iOS never zooms the page on focus */ }
.qa-input.plain { padding: 0 2px; }
.qa-clear { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 50%; }
.qa-paste { height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--paper)); background: var(--accent-soft); color: var(--accent-text); font-weight: 600; font-size: 15px; cursor: pointer; }
.qa-field-error { margin: 8px 2px 0; color: var(--bad); font-size: 14.5px; }
.qa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--ink) 18%, var(--paper)); background: var(--surface); cursor: pointer; font-size: 16px; color: var(--ink); }
.qa-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-size: 17.5px; letter-spacing: .01em; box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 6px 14px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.qa-btn.primary:active { filter: brightness(.92); }
.qa-btn.wide { width: 100%; min-height: 54px; margin-top: 12px; }
.qa-btn.small { min-height: 40px; font-size: 15px; padding: 0 14px; }
.qa-btn.primary.small { font-size: 15px; }
.qa-btn:disabled { opacity: .5; }
.qa-btn[data-waiting="true"] { opacity: .45; box-shadow: none; cursor: default; }
.qa-note-bar { margin: 0; padding: 14px 16px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); }

/* ---------------- added today ---------------- */
.qa-added { margin-top: 24px; }
.qa-h2 { font-family: var(--serif); font-weight: 500; font-size: calc(25px * var(--serif-scale)); margin: 0 2px 4px; }
.qa-count { display: flex; align-items: center; gap: 8px; margin: 0 2px 14px; color: var(--muted); font-size: 15px; }
.qa-count > .ic { color: var(--ok); }
.qa-count > .ic:has(path[d^="M12 4"]) { color: var(--warn); }
.qa-count.empty { display: block; line-height: 1.5; }
.qa-ring { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 28%, transparent); border-top-color: var(--accent); animation: qa-spin .9s linear infinite; }
.qa-ring.big { width: 28px; height: 28px; border-width: 3px; }
@keyframes qa-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .qa-ring { animation-duration: 3s; } }

.qa-cards { display: flex; flex-direction: column; gap: 12px; }
.qa-card { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 12px; }
.qa-card.local.offline, .qa-card.local.sending { border-style: dashed; }
.qa-card-top { display: flex; gap: 14px; align-items: flex-start; }
.qa-thumb { width: 92px; height: 92px; flex: none; border-radius: 6px; object-fit: contain; background: #fff; border: 1px solid var(--line-soft); }
.qa-thumb.empty { display: grid; place-items: center; color: var(--faint); background: var(--group); }
.qa-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 1px; }
.qa-supplier { font-weight: 700; font-size: 16.5px; line-height: 1.25; overflow-wrap: anywhere; }
.qa-model { font-size: 15.5px; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.qa-model.wait { color: var(--faint); }
.qa-sku { font-size: 14px; color: var(--muted); letter-spacing: .02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.qa-where { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.qa-where .ic { color: var(--faint); }
.qa-status { display: flex; align-items: flex-start; gap: 7px; margin-top: 6px; font-size: 14.5px; line-height: 1.35; }
.qa-status > .ic, .qa-status > .qa-ring { margin-top: 2px; }
.qa-status.busy, .qa-status.wait { color: var(--muted); }
.qa-status.ok { color: var(--ok); }
.qa-status.warn { color: var(--warn); }
.qa-status.bad { color: var(--bad); }
.qa-more { width: 44px; height: 44px; margin: -8px -8px 0 0; flex: none; display: grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 50%; }
.qa-chips { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.qa-chip { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 14.5px; cursor: pointer; }
.qa-chip .ic { color: var(--accent-text); }
.qa-card-note { margin: 10px 0 0; padding: 8px 12px; border-radius: 6px; background: var(--accent-soft); font-size: 14.5px; }
.qa-note-edit { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.qa-note-edit .qa-input { height: 48px; width: 100%; border: 1px solid color-mix(in srgb, var(--ink) 20%, var(--paper)); border-radius: 8px; padding: 0 12px; background: #fff; }
.qa-note-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* ---------------- sheets ---------------- */
.qa-sheet-wrap { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.qa-shade { position: absolute; inset: 0; background: rgba(20, 18, 15, .38); animation: qa-fade .15s ease; }
.qa-sheet { position: relative; width: 100%; max-width: 560px; max-height: 82dvh; overflow: auto; background: var(--paper); border-radius: 16px 16px 0 0; padding: 6px 16px calc(16px + env(safe-area-inset-bottom)); animation: qa-up .2s ease; }
@keyframes qa-up { from { transform: translateY(30px); opacity: .4; } }
@keyframes qa-fade { from { opacity: 0; } }
.qa-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 6px auto 10px; }
.qa-sheet-title { margin: 4px 4px 10px; font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa-sheet-list { background: var(--group); border-radius: 10px; overflow: hidden; }
.qa-sheet-item { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 14px; padding: 8px 16px; border: 0; background: transparent; text-align: left; cursor: pointer; color: var(--ink); font-size: 16.5px; }
.qa-sheet-item + .qa-sheet-item { border-top: 1px solid color-mix(in srgb, var(--ink) 7%, transparent); }
.qa-sheet-item > .ic:first-child { color: var(--muted); }
.qa-sheet-item.on { font-weight: 600; }
.qa-sheet-item.on > .ic:last-child { color: var(--accent); }
.qa-sheet-item.danger { color: var(--bad); }
.qa-sheet-item.danger > .ic { color: var(--bad); }
.qa-sheet-item:disabled { opacity: .45; }
.qa-sheet-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qa-sheet-sub { font-size: 13.5px; color: var(--muted); font-weight: 400; }

.qa-toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 10px; background: #26231f; color: #fff; font-size: 15px; line-height: 1.35; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 30; }
.qa-toast.on { opacity: 1; transform: translate(-50%, 0); }

.qa-fatal { padding: 64px 22px; }
.qa-fatal h1 { font-family: var(--serif); font-weight: 500; font-size: calc(32px * var(--serif-scale)); margin: 0 0 12px; }
.qa-fatal p { color: var(--muted); line-height: 1.5; margin: 0 0 18px; }

/* a client's suggestion (decision of 30/10/2026): what happens to it, and the way back to the schedule it came from */
.qa-suggest-hint { margin: 10px 4px 0; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.qa-back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; color: var(--accent-text); text-decoration: none; font-size: 15px; margin-left: -8px; white-space: nowrap; }
.qa-top.with-back { grid-template-columns: 104px 1fr 104px; }

/* ---- the calendar in the app (calendar/team.ts, settings.ts, client.ts, picker.ts): the colours of the chosen mockups
   (state/ffe-schedule-design/calendrier/DECISION.md, screens 3 to 6), kept as drawn, not the app's accent ---- */
:root {
  --cal-ink: #1e2a2a; --cal-text: #3c4644; --cal-muted: #6c7472; --cal-line: #e4e6e3; --cal-soft: #f3f4f2; --cal-card: #fbfbfa;
  --cal-dark: #212f33; --cal-green: #306155; --cal-green-2: #39665d; --cal-teal: #457667; --cal-radio: #436f63; --cal-day: #e2eae6;
  --cal-wait: #fff6e2; --cal-wait-line: #e9c47a; --cal-wait-pill: #fbe2a4; --cal-banner: #fef7e3; --cal-busy: #eaebec; --cal-busy-bar: #c6cbcf;
  --cal-toggle: #37634f; --cal-bad: #a3402f;
}
.cal-screen {
  height: 100%; overflow: auto; padding: 24px var(--gutter, 24px) 48px; color: var(--cal-ink); background: #f8f9f7;
}
.cal-muted { color: var(--cal-muted); }
.cal-screen .small, .dlg .cal-muted.small { font-size: 12.5px; }
.cal-loading { display: flex; align-items: center; gap: 8px; }
.cal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.cal-h1 { font: 600 34px/1.15 var(--sans); letter-spacing: -0.01em; margin: 0; color: var(--cal-ink); }
.cal-h2 { font: 600 19px/1.3 var(--sans); margin: 22px 0 10px; }
.cal-sub { margin: 6px 0 0; font-size: 16px; color: var(--cal-muted); }
.cal-head-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.cal-note { display: flex; align-items: center; gap: 10px; background: var(--cal-soft); border: 1px solid var(--cal-line); border-radius: 8px; padding: 12px 16px; margin: 0 0 14px; }
.cal-note.warn { background: var(--cal-banner); border-color: #f3e2b5; }
.cal-error { color: var(--cal-bad); margin: 10px 0; }
.cal-screen .btn.cal-new, .dlg .btn.cal-new { background: var(--cal-dark); color: #fff; border-color: var(--cal-dark); height: 46px; padding: 0 20px; font-weight: 600; }
.cal-screen .btn.cal-new:hover { filter: brightness(1.15); }
.btn.cal-approve, .btn.cal-join { background: var(--cal-green); color: #fff; border-color: var(--cal-green); font-weight: 600; }
.btn.cal-dir { background: #e5eae7; color: var(--cal-ink); border-radius: 999px; }
.cal-link { display: inline-flex; align-items: center; gap: 6px; color: var(--cal-ink); text-decoration: underline; text-underline-offset: 3px; }
.cal-plain { color: inherit; text-decoration: none; }

/* the requests waiting */
.cal-banner { display: flex; align-items: center; gap: 12px; background: var(--cal-banner); border: 1px solid #f5e6bd; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: 15px; }
.cal-banner .btn.cal-view-req { background: #fff; }
.cal-banner.phone { align-items: center; gap: 14px; padding: 16px; }
.cal-banner-ic { width: 46px; height: 46px; border-radius: 50%; background: #fbe8a6; display: grid; place-items: center; flex: none; }
.cal-banner-b { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; font-size: 14px; }
.cal-banner-b b { font-size: 16px; font-weight: 500; }

/* the bar: today, the week, the views, who, new */
.cal-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-bar .btn.outline { height: 46px; background: #fff; }
.cal-bar .btn.icon { width: 46px; }
.cal-range { font-size: 18px; font-weight: 600; padding: 0 10px; }
.cal-range.day { display: flex; align-items: center; gap: 12px; border: 1px solid var(--cal-line); background: #fff; border-radius: 8px; height: 56px; padding: 0 14px; font-weight: 400; flex: 1; min-width: 0; }
.cal-range.day > span { display: flex; flex-direction: column; min-width: 0; }
.cal-range.day b { font-weight: 500; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-seg { display: inline-flex; border: 1px solid var(--cal-line); border-radius: 8px; overflow: hidden; background: #fff; }
.cal-seg .btn.cal-seg-b { border-radius: 0; height: 44px; padding: 0 20px; }
.cal-seg .btn.cal-seg-b.on { background: #e8ebe9; font-weight: 600; }
.cal-bar .field.cal-who { width: auto; min-width: 190px; height: 46px; background: #fff; }

/* the legend */
.cal-legend { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: var(--cal-text); margin: 0 0 12px; }
.cal-key { display: inline-flex; align-items: center; gap: 8px; }
.cal-key i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.cal-legend-note { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--cal-muted); }

/* the week */
.cal-week-wrap { position: relative; background: #fff; border: 1px solid var(--cal-line); border-radius: 10px; overflow: auto; }
.cal-week { display: grid; grid-template-columns: 74px repeat(var(--cols), minmax(150px, 1fr)); min-width: calc(74px + var(--cols) * 150px); }
.cal-wk-zone { font-size: 13px; color: var(--cal-text); padding: 18px 10px; border-bottom: 1px solid var(--cal-line); position: sticky; top: 0; background: #fff; z-index: 3; }
.cal-wk-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 12px 6px; border-bottom: 1px solid var(--cal-line); border-left: 1px solid var(--cal-line); position: sticky; top: 0; background: #fff; z-index: 3; font-size: 15px; }
.cal-wk-day span { font-size: 13px; color: var(--cal-muted); }
.cal-wk-day.today b { color: var(--cal-green); }
.cal-wk-hours { position: relative; }
.cal-wk-hours span { position: absolute; right: 10px; transform: translateY(-50%); font-size: 12.5px; color: var(--cal-muted); white-space: nowrap; }
.cal-wk-hours span:first-child { transform: none; margin-top: 4px; }
.cal-wk-col { position: relative; border-left: 1px solid var(--cal-line); }
.cal-wk-line { position: absolute; left: 0; right: 0; border-top: 1px solid #eef0ee; }
.cal-off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(0deg, #f5f6f5, #f5f6f5); }
.cal-hol { font-size: 11.5px; color: var(--cal-muted); text-align: center; }
/* a busy whole day, in the day's head (the head stays on top while the hours scroll) */
.cal-wk-allday { align-self: stretch; display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.cal-allday { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 6px 4px 8px; border-left: 4px solid var(--cal-busy-bar); border-radius: 4px; background: var(--cal-busy); color: var(--cal-ink); font-size: 12px; line-height: 1.25; text-align: left; }
.cal-allday .cal-ev-t { color: var(--cal-text); white-space: nowrap; }
.cal-allday b { font-size: 12.5px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-allday .cal-face { width: 20px; height: 20px; font-size: 9px; }
.cal-buf { position: absolute; z-index: 1; pointer-events: none; border-radius: 4px; background: repeating-linear-gradient(135deg, rgba(150, 160, 155, 0.18) 0 4px, transparent 4px 8px); }
.cal-ev { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 1px; overflow: hidden; text-align: left; padding: 7px 34px 6px 12px; border: 0; border-left: 4px solid var(--c, #86b491); border-radius: 4px; background: var(--f, #ebf4ee); color: var(--cal-ink); font-size: 12px; line-height: 1.28; cursor: pointer; box-shadow: 0 1px 2px rgba(20, 30, 28, 0.06); }
.cal-ev:hover { filter: brightness(0.98); box-shadow: 0 2px 6px rgba(20, 30, 28, 0.12); }
.cal-ev:focus-visible { outline: 2px solid var(--cal-dark); outline-offset: 1px; }
.cal-ev b { font-size: 13px; font-weight: 600; }
.cal-ev > span { color: var(--cal-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cal-ev .cal-ev-t { display: inline-flex; align-items: center; gap: 4px; color: var(--cal-text); }
.cal-ev > .cal-ev-m { display: inline-flex; align-items: center; gap: 5px; }
.cal-ev .cal-face { position: absolute; top: 7px; right: 7px; }
.cal-ev.short { padding-top: 2px; padding-bottom: 2px; flex-direction: row; gap: 6px; align-items: center; }
.cal-ev.short > span:not(.cal-ev-t):not(.cal-face), .cal-ev.mid > span:not(.cal-ev-t):not(.cal-face):not(:nth-child(3)) { display: none; }
.cal-ev.short b, .cal-ev.mid b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cal-ev.short .cal-face { top: 50%; transform: translateY(-50%); width: 20px; height: 20px; font-size: 9px; }
.cal-ev.short .cal-ev-t { flex: none; }
/* side by side (two or more at once): the text has the width, the member's initials go (the card says who) */
.cal-ev.narrow { padding-right: 6px; padding-left: 7px; }
.cal-ev.narrow .cal-face { display: none; }
.cal-ev.narrow .cal-ev-t, .cal-ev.narrow b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cal-ev.busy { cursor: default; border-left-color: var(--cal-busy-bar); background: var(--cal-busy); }
.cal-ev.pending { background: var(--cal-wait); border: 1.5px dashed var(--cal-wait-line); border-left: 1.5px dashed var(--cal-wait-line); }
.cal-ev.pending .cal-ev-t { font-weight: 600; color: var(--cal-ink); }
.cal-pill { margin-top: 4px; background: var(--cal-wait-pill); color: #6d4c00 !important; border-radius: 999px; padding: 1px 9px; font-size: 11.5px; }
.cal-empty { position: absolute; top: 90px; left: 0; right: 0; text-align: center; color: var(--cal-muted); pointer-events: none; }
.cal-face { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 600; background: #fff; border: 1px solid #c9cfcc; color: var(--cal-ink); flex: none; }
.cal-face.big { width: 46px; height: 46px; font-size: 15px; background: var(--cal-dark); color: #fff; border: 0; }
.cal-face.big.pale { background: #e3ded5; color: var(--cal-ink); }

/* the list and a phone's day */
.cal-list { display: flex; flex-direction: column; gap: 10px; }
.cal-list-day { display: flex; align-items: baseline; justify-content: space-between; margin: 14px 0 2px; }
.cal-list-day h2 { font: 500 22px/1.2 var(--sans); margin: 0; }
.cal-list-none { margin: 0 0 6px; }
.cal-row { display: grid; grid-template-columns: 88px 5px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--cal-line); border-radius: 10px; padding: 14px 16px; cursor: pointer; }
.cal-row:hover { border-color: #cfd5d2; }
.cal-row:focus-visible { outline: 2px solid var(--cal-dark); }
.cal-row-t { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.cal-row-bar { align-self: stretch; width: 5px; border-radius: 3px; background: var(--c, #86b491); }
.cal-row-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 15px; }
.cal-row-b b { font-size: 18px; font-weight: 500; }
.cal-row-m { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--cal-muted); font-size: 13.5px; margin-top: 4px; }
.cal-row-m > span { display: inline-flex; align-items: center; gap: 6px; }
.cal-row-go { color: var(--cal-muted); }
.cal-row.busy { cursor: default; }
.cal-row.busy .cal-row-bar { background: #b8bcbe; }
.cal-row-lock { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 14px; }
.cal-row-lock > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.cal-row.off { opacity: 0.62; }
.cal-row.off b { text-decoration: line-through; text-decoration-thickness: 1px; }
.cal-row.pending { background: var(--cal-wait); border: 1.5px dashed var(--cal-wait-line); }
.cal-phone-new { position: sticky; bottom: 0; padding: 14px 0 4px; background: linear-gradient(transparent, #f8f9f7 30%); }
.btn.cal-new.wide { width: 100%; justify-content: center; height: 56px; font-size: 17px; background: var(--cal-green-2); border-color: var(--cal-green-2); color: #fff; }

/* the card of a booking */
.dlg.cal-card-dlg { width: min(760px, calc(100vw - 24px)); background: #fafaf8; }
.cal-card-dlg .dlg-head { align-items: flex-start; padding-top: 22px; }
.cal-card-dlg .dlg-title { display: none; }
.cal-card-head { display: flex; gap: 14px; align-items: center; flex: 1; }
.cal-card-ic { width: 54px; height: 54px; border-radius: 50%; background: #ecedea; display: grid; place-items: center; }
.cal-card-title { font: 600 20px/1.3 var(--sans); margin: 0 0 4px; }
.cal-status { display: inline-block; font-size: 13.5px; border-radius: 999px; padding: 2px 12px; background: #eceeec; color: var(--cal-text); }
.cal-status.s-pending { background: #fdedc4; color: #6d4c00; }
.cal-status.s-confirmed { background: #e2efe6; color: #24533d; }
.cal-status.s-cancelled, .cal-status.s-declined { background: #f6e3e0; color: #7f2e22; }
.cal-card { display: flex; flex-direction: column; gap: 4px; }
.cal-card-row { display: grid; grid-template-columns: 24px 110px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid #ebecea; align-items: start; color: var(--cal-ink); }
.cal-card-row:last-of-type { border-bottom: 0; }
.cal-card-k { font-size: 14.5px; color: var(--cal-text); }
.cal-card-v { display: flex; flex-direction: column; gap: 3px; font-size: 14.5px; min-width: 0; }
.cal-card-when { font-size: 17px; }
.cal-card-buf { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 13.5px; color: var(--cal-text); }
.cal-with { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cal-with > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.cal-free { margin-left: auto; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; background: #eaf3ec; border-radius: 999px; padding: 4px 12px; font-size: 13.5px; }
.cal-free small { grid-column: 1 / -1; color: var(--cal-muted); font-size: 12px; text-align: right; }
.cal-free-dot { width: 9px; height: 9px; border-radius: 50%; background: #3f9b62; }
.cal-free.stale { background: #fbf1e6; }
.cal-free.stale .cal-free-dot { background: #d29a2b; }
.cal-quote { margin: 0; background: #eeefec; border-radius: 6px; padding: 12px 16px; white-space: pre-wrap; }
.cal-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cal-hist li { display: flex; flex-direction: column; }
.cal-card-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 14px; }
.cal-act { display: flex; align-items: center; gap: 12px; text-align: left; border-radius: 8px; padding: 12px 16px; border: 1px solid #cdd2cf; background: #fff; cursor: pointer; color: var(--cal-ink); }
.cal-act > span { display: flex; flex-direction: column; gap: 2px; }
.cal-act b { font-size: 15.5px; font-weight: 600; }
.cal-act small { font-size: 12.5px; color: var(--cal-muted); }
.cal-act.primary { background: var(--cal-dark); border-color: var(--cal-dark); color: #fff; }
.cal-act.primary small { color: #d4dbd9; }
.cal-act.danger b { color: var(--cal-bad); }
.cal-act:hover { filter: brightness(0.97); }

/* the dialogs: the day and the time, any time, a grid of fields */
.cal-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 6px 0 12px; }
.cal-grid2 .f.wide, .cal-grid2 > .wide { grid-column: 1 / -1; }
.f.wide { margin-bottom: 12px; }
.cal-area { height: auto; padding: 10px 12px; resize: vertical; }
.cal-any { margin: 10px 0; }
.cal-any summary { cursor: pointer; color: var(--cal-text); font-size: 13.5px; }
.cal-any-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.cal-any-row .field { flex: 1; min-width: 140px; }
.cal-oo-out { background: #eef3ef; border-radius: 8px; padding: 12px 14px; margin-top: 10px; }
.cal-pick { display: flex; flex-direction: column; gap: 10px; }
.cal-days { display: flex; align-items: stretch; gap: 8px; }
.cal-days-in { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 8px; flex: 1; }
.cal-daynav { width: 34px; border: 1px solid var(--line, #e3ded6); border-radius: 8px; background: #fff; display: grid; place-items: center; cursor: pointer; color: inherit; }
.cal-daynav:disabled { opacity: 0.35; cursor: default; }
.cal-dayb { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 1px solid #d6dbd8; border-radius: 8px; background: #fff; cursor: pointer; font-size: 15px; color: inherit; }
.cal-dayb.on { background: var(--cal-day, #e2eae6); border-color: #9fb8ad; }
.cal-times { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-timeb { min-width: 120px; padding: 10px 14px; border: 0; border-radius: 8px; background: #edf0ee; cursor: pointer; font-size: 15px; color: inherit; }
.cal-timeb.on { background: var(--cal-teal, #457667); color: #fff; }
.cal-check { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 14px; }
.cal-checks { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* the settings */
.cal-back { display: inline-flex; align-items: center; gap: 6px; color: var(--cal-muted); text-decoration: none; margin-bottom: 8px; }
.cal-set-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cal-set-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cal-card-box { background: #fff; border: 1px solid var(--cal-line); border-radius: 10px; overflow: hidden; }
.cal-box-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 18px 12px; flex-wrap: wrap; }
.cal-box-head h2 { font: 600 19px/1.3 var(--sans); margin: 0; }
.cal-box-head h3 { font: 600 17px/1.3 var(--sans); margin: 0; }
.cal-box-head p { margin: 4px 0 0; }
.cal-block .cal-box-head { padding: 0 0 8px; }
.cal-pad { padding: 0 18px 16px; }
.cal-table-wrap { overflow-x: auto; }
.cal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cal-table th { text-align: left; font-weight: 600; font-size: 13.5px; padding: 10px 14px; background: #f6f7f5; border-top: 1px solid var(--cal-line); border-bottom: 1px solid var(--cal-line); }
.cal-table td { padding: 14px; vertical-align: top; border-bottom: 1px solid #eef0ee; }
.cal-table td > b, .cal-table td > small { display: block; }
.cal-table td small { color: var(--cal-text); font-size: 13px; margin-top: 3px; }
.cal-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.cal-table td > .cal-dot + b { display: inline; }
.cal-where { display: inline-flex; align-items: center; gap: 6px; }
.cal-archived { padding: 10px 18px 16px; color: var(--cal-muted); }
.cal-arch-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.cal-block { padding: 14px 18px; border-top: 1px solid #eef0ee; }
.cal-block h3 { font: 600 15.5px/1.3 var(--sans); margin: 0 0 8px; }
.cal-block.cal-soft { display: flex; gap: 14px; align-items: flex-start; background: #f4f5f3; margin: 8px 18px; border-radius: 8px; border: 0; }
.cal-block.cal-soft.col { flex-direction: column; gap: 6px; }
.cal-block.cal-soft p { margin: 2px 0; }
.cal-block.cal-soft .field { margin-top: 8px; max-width: 260px; }
.cal-hours { display: flex; flex-direction: column; gap: 6px; }
.cal-hours-day { display: grid; grid-template-columns: 100px minmax(0, 1fr) 110px; align-items: center; gap: 10px; min-height: 38px; }
.cal-hours-r { display: flex; flex-direction: column; gap: 6px; }
.cal-range-row { display: flex; align-items: center; gap: 8px; }
.cal-range-row .field.small { height: 36px; width: 112px; padding: 0 8px; }
.cal-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--cal-text); }
.cal-toggle { appearance: none; width: 38px; height: 22px; border-radius: 999px; background: #d6d9d7; position: relative; cursor: pointer; margin: 0; transition: background 0.15s; flex: none; }
.cal-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left 0.15s; }
.cal-toggle:checked { background: var(--cal-toggle); }
.cal-toggle:checked::after { left: 19px; }
.cal-row-end { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.cal-title { flex: 1; max-width: 300px; }
.cal-off-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cal-off-list li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--cal-line); border-radius: 8px; padding: 8px 12px; }
.cal-feed { display: flex; align-items: center; gap: 12px; border: 1px solid var(--cal-line); border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.cal-feed > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-feed code { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-feed-dot { width: 12px; height: 12px; border-radius: 50%; background: #3f9b62; flex: none; }
.cal-feed-dot.bad { background: var(--cal-bad); }
.cal-where-help { margin-top: 8px; font-size: 13.5px; color: var(--cal-text); }
.cal-where-help summary { cursor: pointer; }
.cal-prefix { display: flex; align-items: center; border: 1px solid var(--line, #e3ded6); border-radius: var(--r-s, 6px); background: var(--surface, #fff); }
.cal-prefix > span { padding: 0 4px 0 10px; color: var(--cal-muted); font-size: 13px; }
.cal-prefix .field { border: 0; padding-left: 0; }
.cal-code { height: auto; font: 12px/1.4 ui-monospace, Menlo, monospace; padding: 8px 10px; }
.cal-member { width: auto; max-width: 280px; }

/* a client's page */
.cal-screen.cal-client { max-width: 760px; background: transparent; padding: 4px 0 40px; height: auto; overflow: visible; }
.cal-client .cal-h1 { font-size: 30px; }
.cal-block-c { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 0; }
.cal-q { font-size: 17px; font-weight: 600; }
.cal-q-row { display: flex; justify-content: space-between; align-items: center; }
.cal-zone { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.cal-choices { display: flex; flex-direction: column; gap: 10px; }
.cal-choice { display: flex; align-items: center; gap: 18px; text-align: left; padding: 14px 18px; border: 1px solid #dfe2df; border-radius: 10px; background: #fff; cursor: pointer; color: inherit; }
.cal-choice.on { border-color: var(--cal-radio); background: #edf2ef; }
.cal-radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #b5bbb8; flex: none; position: relative; }
.cal-choice.on .cal-radio { border-color: var(--cal-radio); }
.cal-choice.on .cal-radio::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--cal-radio); }
.cal-choice-b { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; color: var(--cal-muted); }
.cal-choice-b b { color: var(--cal-ink); font-size: 16px; font-weight: 600; }
.cal-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.btn.cal-chip { min-width: 120px; justify-content: center; background: #edf0ee; border-radius: 8px; }
.btn.cal-chip.on { background: var(--cal-teal); color: #fff; }
.cal-with-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #dfe2df; border-radius: 10px; padding: 12px 18px; }
.cal-with-card > span:last-child { display: flex; flex-direction: column; }
.cal-count { align-self: flex-end; color: var(--cal-muted); font-size: 12px; margin-top: -4px; }
.cal-info { display: flex; gap: 10px; align-items: flex-start; background: #f0f1ef; border-radius: 8px; padding: 12px 16px; margin: 16px 0 0; color: var(--cal-text); }
.btn.cal-primary { background: var(--cal-teal); color: #fff; border-color: var(--cal-teal); height: 52px; font-size: 16px; font-weight: 600; margin-top: 16px; }
.btn.cal-primary.wide { width: 100%; justify-content: center; }
.cal-mine { margin-top: 24px; border-top: 1px solid var(--cal-line); }
.cal-mine-row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid #eef0ee; color: inherit; text-decoration: none; }
.cal-mine-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-mine-act { display: flex; gap: 8px; flex-direction: row !important; }

/* a phone */
@media (max-width: 760px) {
  .cal-screen { padding: 16px 16px 24px; }
  .cal-h1 { font-size: 30px; }
  .cal-head-tools .btn-l { display: none; }
  .cal-bar { gap: 8px; }
  .cal-bar > .grow, .cal-bar .cal-who, .cal-bar [data-testid='cal-more'] { display: none; }
  .cal-nav { flex: 1; min-width: 0; }
  .cal-seg { border: 0; background: none; }
  .cal-bar .btn.outline { height: 56px; }
  .cal-bar .btn.icon { width: 44px; }
  .cal-seg .btn.outline { padding: 0 12px; }
  .cal-row { grid-template-columns: 64px 5px minmax(0, 1fr) auto auto; gap: 10px; padding: 14px 10px 14px 12px; }
  .cal-row-t { font-size: 14px; }
  .cal-row .btn.cal-join, .cal-row .btn.cal-dir { padding: 0 12px; }
  .cal-row:has(.cal-join) > .cal-row-go, .cal-row.busy > :last-child { display: none; }
  .cal-head-tools .btn { height: 44px; width: 44px; padding: 0; justify-content: center; }
  .cal-list-day h2 { font-size: 20px; }
  .cal-list-day { gap: 12px; }
  .cal-list-day > span { white-space: nowrap; }
  .cal-range.day { gap: 10px; padding: 0 10px; }
  .cal-row-b b { font-size: 17px; }
  .cal-legend { display: none; }
  .cal-grid2 { grid-template-columns: 1fr; }
  .cal-card-row { grid-template-columns: 22px minmax(0, 1fr); row-gap: 4px; }
  .cal-card-k { grid-column: 2; font-weight: 600; }
  .cal-card-v { grid-column: 2; }
  .cal-free { margin-left: 0; }
  .cal-set-grid { grid-template-columns: minmax(0, 1fr); }
  .cal-hours-day { grid-template-columns: 82px minmax(0, 1fr) 44px; }
  .cal-table thead { display: none; }
  .cal-table, .cal-table tbody { display: block; }
  .cal-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 14px 18px; border-top: 1px solid #eef0ee; }
  .cal-table td { display: block; padding: 0; border: 0; grid-column: 1; }
  .cal-table td:last-child { grid-column: 2; grid-row: 1; }
  .cal-table td:first-child > b { display: inline; }
  .cal-table td:first-child > small { display: inline; margin-left: 8px; }
  .cal-where { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
  .cal-where small { flex-basis: 100%; margin: 0; }
  .cal-switch span { display: none; }
  .cal-range-row .field.small { width: 92px; }
  .cal-timeb { min-width: 0; flex: 0 0 calc((100% - 16px) / 3); padding: 10px 6px; }
  .cal-choice { padding: 11px 14px; gap: 14px; }
  .cal-choice-b { font-size: 13.5px; }
  .cal-choice-b b { font-size: 15.5px; }
  .cal-dayb { font-size: 14px; padding: 8px 4px; }
  .cal-daynav { width: 28px; }
  .cal-block-c { margin-top: 14px; }
  .btn.cal-chip { min-width: 0; flex: 1; }
  .cal-mine-row { flex-wrap: wrap; }
}

/* ---- the calendar assistant (calendar/assistant.ts; state/ffe-schedule-design/calendrier-ia/DECISION.md): a panel on the right of
   the Calendar page on a computer, a sheet over it on a phone; your Claude's card in the settings ---- */
.cal-ai { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; z-index: 60; display: flex; flex-direction: column; background: var(--cal-card); border-left: 1px solid var(--cal-line); box-shadow: -8px 0 24px rgba(30, 42, 42, .06); color: var(--cal-ink); }
.cal-ai[hidden] { display: none; }
body.cal-ai-open .cal-screen { padding-right: 424px; }
.cal-ai-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 18px 18px 0 24px; }
.cal-ai-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex: 1; margin-top: 30px; }
.cal-ai-title h2 { font: 600 21px/1.25 var(--sans); margin: 0; }
.cal-ai-new { border: 0; background: none; color: var(--cal-muted); font-size: 13.5px; cursor: pointer; padding: 2px 0; }
.cal-ai-new:hover { color: var(--cal-ink); text-decoration: underline; }
.cal-ai-close { border: 0; background: none; color: var(--cal-ink); cursor: pointer; padding: 4px; border-radius: 6px; position: absolute; top: 14px; right: 14px; }
.cal-ai-close:hover { background: var(--cal-soft); }
.cal-ai-sub { margin: 6px 24px 14px; color: var(--cal-muted); font-size: 14.5px; line-height: 1.45; }
.cal-ai-list { flex: 1; overflow: auto; padding: 8px 18px 18px 24px; display: flex; flex-direction: column; gap: 16px; }
.cal-ai-hint { color: var(--cal-muted); font-size: 14px; line-height: 1.5; margin: 6px 0; }
.cal-ai-row { display: flex; align-items: flex-start; gap: 12px; }
.cal-ai-row.me { justify-content: flex-end; }
.cal-ai-row .cal-face { width: 40px; height: 40px; font-size: 14px; background: #fff; }
.cal-ai-row.me .cal-ai-bubble { background: #e6edf3; }
.cal-ai-bubble { background: #eef0ee; border-radius: 10px; padding: 12px 14px; font-size: 15.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 300px; }
.cal-ai-bubble.thinking { display: inline-flex; align-items: center; gap: 8px; color: var(--cal-muted); }
.cal-ai-mark { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #e2e9f1; color: #2b5d7d; }
.cal-ai-card { display: flex; gap: 14px; background: #fff; border: 1px solid var(--cal-line); border-radius: 10px; padding: 16px; }
.cal-ai-card.done { background: transparent; opacity: .85; }
.cal-ai-card-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--cal-day); color: var(--cal-ink); }
.cal-ai-card-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cal-ai-card-h { font-size: 14px; color: var(--cal-muted); }
.cal-ai-card-b p { margin: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.cal-ai-card-t { font-size: 15.5px; }
.cal-ai-lines { display: grid; grid-template-columns: max-content 1fr; gap: 4px 10px; margin: 0; font-size: 14.5px; line-height: 1.45; }
.cal-ai-lines dt { color: var(--cal-muted); }
.cal-ai-lines dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.cal-ai-card.refused .cal-ai-card-h { color: var(--cal-bad); }
.cal-ai-acts { display: flex; gap: 10px; margin-top: 8px; }
.cal-ai-acts .btn { height: 44px; padding: 0 22px; font-weight: 600; flex: 1; justify-content: center; }
.btn.cal-ai-yes { background: var(--cal-dark); color: #fff; border-color: var(--cal-dark); }
.btn.cal-ai-yes:hover { filter: brightness(1.15); }
.cal-ai-form { display: flex; align-items: flex-end; gap: 10px; padding: 14px 18px 18px 24px; border-top: 1px solid var(--cal-line); }
.cal-ai-input { flex: 1; min-height: 56px; max-height: 140px; resize: none; border: 1px solid var(--cal-line); border-radius: 10px; padding: 16px; font: 15.5px/1.4 var(--sans); background: #fff; color: var(--cal-ink); }
.cal-ai-input:focus { outline: 2px solid var(--cal-teal); outline-offset: 0; }
.cal-ai-send { width: 50px; height: 50px; flex: none; border-radius: 50%; border: 0; background: var(--cal-dark); color: #fff; display: grid; place-items: center; cursor: pointer; margin-bottom: 3px; }
.cal-ai-send:disabled, .cal-ai-input:disabled { opacity: .55; cursor: default; }
@media (max-width: 1100px) { body.cal-ai-open .cal-screen { padding-right: var(--gutter, 24px); } }
@media (max-width: 760px) {
  .cal-ai { top: auto; left: 0; width: auto; height: 86vh; height: 86dvh; border-left: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(30, 42, 42, .22), 0 0 0 100vmax rgba(29, 27, 24, .28); }
  .cal-ai::before { content: ''; display: block; width: 44px; height: 4px; border-radius: 2px; background: #c9cecb; margin: 10px auto 0; }
  .cal-ai-head { padding: 6px 52px 0 16px; }
  .cal-ai-title { margin-top: 12px; }
  .cal-ai-close { top: 28px; right: 10px; }
  .cal-ai-sub { margin: 6px 16px 12px; }
  .cal-ai-list { padding: 8px 16px 16px; }
  .cal-ai-form { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
  .cal-ai-bubble { max-width: 74vw; }
  .btn.cal-ai-yes { background: var(--cal-green); border-color: var(--cal-green); }
}
.cal-claude { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; }
.cal-claude-url { display: flex; gap: 8px; }
.cal-claude-url .field { flex: 1; min-width: 0; font-family: var(--mono, monospace); font-size: 13px; }
.cal-claude-acts { display: inline-flex; gap: 8px; }
.cal-claude-team { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--cal-line); padding-top: 12px; margin-top: 4px; }
