/* 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;
  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: 3px; 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; } /* 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: 4px; 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: 4px; 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: 3px; 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: 3px; 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: 3px; 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-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; }
.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: 3px; }
.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: 3px; 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: 4px; 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: 3px; 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-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: 3px; }
.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: 3px; 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: 4px; 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: 3px; 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 .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-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: 3px; 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: 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: 4px; 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: 3px; 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; }
.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: 3px; 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: 3px; }
.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: 3px; 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: 3px; padding: 2px; background: var(--surface); }
.logo-prev { height: 72px; display: flex; align-items: center; border: 1px dashed var(--line); border-radius: 3px; 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; }

/* ---------------- 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; }
  .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 { display: inline; } /* no icon: its 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(--muted); 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; }
.preview-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px var(--gutter); background: var(--accent-soft); color: var(--accent-text); font-size: 13px; line-height: 1.35; }
.preview-bar b { font-weight: 600; }
.preview-bar + .studio-bar:not(.show) + .proj { padding-top: 14px; }
.preview-x { flex: none; border: 0; background: none; color: inherit; font: inherit; font-size: 18px; line-height: 1; padding: 2px 6px; cursor: pointer; }
.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; }
.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: 3px; 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: 3px 0 0 3px; }
.segs .btn.seg:last-child { border-radius: 0 3px 3px 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: 3px; 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: 4px; 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: 4px; 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: 4px; 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: 3px; 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: 3px; 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: 4px; background: none; color: var(--accent-text); font-size: 15px; cursor: pointer; }
.pv-empty { color: var(--muted); padding: 20px 4px; }
@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; }

/* ---- 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; }
