/* =============================================================================
   BuildNexx styles — tokens match the design canvas (checkpoint 4, 03/Oct/26).
   Rules: buttons 32px high · accent #B9481F (AppleUI rulebook, v0.4.3) · sidebar 200px #f6f4ef · Closed = green ·
          help text only in grey (i) icons · dates DD/Mmm/YY.
   Class names are used by src/core/ui/kit.tsx and pages; keep them in sync.
   ============================================================================= */
:root {
  --accent: #B9481F; --accent-hover: #993C1D; --accent-ink: #712B13; --accent-bg: #FAECE7;
  --bg: #ffffff; --side: #f6f4ef; --line: #ecebe4; --line2: #c9c6bc; --ink: #1a1a18; --ink2: #5f5e5a; --ink3: #6b6a65; --icon-muted: #8f8e88; --faint: #c9c6bc;   /* faint = borders / dividers only, never text or icons */
  --ok: #3B6D11; --ok-bg: #EAF3DE; --crit: #712B13; --crit-bg: #FAECE7; --open: #854F0B; --open-bg: #FAEEDA; --red: #A32D2D;
  --radius: 8px; --btn-h: 32px;
  font-family: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 13px; color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Libre Franklin", Inter, -apple-system, "Segoe UI", sans-serif; }
h1 { font-size: 20px; font-weight: 600; margin: 0; } h2 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
p { margin: 0; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th { text-align: left; font-weight: 500; color: var(--ink2); padding: 0 8px 8px 0; border-bottom: 1px solid var(--line2); white-space: nowrap; background: #fff; }
td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.num { text-align: center; } .nowrap { white-space: nowrap; } .faint { color: var(--ink3); }
.muted { color: var(--ink2); } .small { font-size: 12px; } .pad { padding: 16px; } .grow { flex: 1; }
.ok { color: var(--ok); } .code { color: var(--accent); font-weight: 500; } .code.big { font-size: 15px; }
.row { display: flex; align-items: center; gap: 8px; } .between { justify-content: space-between; } .end { justify-content: flex-end; }
.gap6 { gap: 6px; } .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overdue { color: var(--red); } .overdue.strong { font-weight: 600; font-size: 12px; margin-top: 2px; }
.link { color: var(--accent); }

/* buttons + inputs (32px) */
.btn { height: var(--btn-h); padding: 0 12px; border: 1px solid var(--line2); border-radius: 8px; background: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 12.5px; color: var(--ink2); white-space: nowrap; }
.btn:hover:not(:disabled) { background: var(--side); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { color: var(--red); border-color: #e6c2b6; }
.btn.quiet { align-self: flex-start; margin-top: 4px; }
.btn.link { border: 0; background: none; color: var(--ink2); padding: 0 6px; }
.btn.link.accent { color: var(--accent); }
.btn.icon { width: var(--btn-h); padding: 0; font-size: 14px; }
.btn.icon.mini { width: 24px; height: 24px; font-size: 11px; }
.btn.wide { width: 100%; }
input, select, textarea { font: inherit; font-size: 13px; border: 1px solid var(--line2); border-radius: 8px; padding: 0 10px; background: #fff; color: var(--ink); }
input, select { height: var(--btn-h); }
textarea { padding: 8px 10px; resize: vertical; }
input[type=checkbox] { height: 14px; width: 14px; accent-color: var(--accent); margin: 0; }
input.invalid { border-color: var(--red); background: #fdf3f0; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--ink2); margin-bottom: 12px; }
.field-label { display: inline-flex; align-items: center; gap: 6px; }
.field > input, .field > select, .field > textarea, .field .row > input { width: 100%; color: var(--ink); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.error-box { background: #fdf3f0; border: 1px solid #efc6b8; color: var(--crit); padding: 8px 12px; border-radius: 8px; margin: 8px 0; }
.error-inline { color: var(--red); font-size: 12px; }

/* (i) help icon — grey, one style everywhere. The bubble (.tip-pop) is drawn in <body> on top of everything,
   so it never shifts the layout or gets cut off (comment #20); bullet lists for several points (#11). */
.info { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 50%;
  border: 1.3px solid var(--icon-muted); color: var(--ink2); font: italic 700 9px Georgia, serif; flex-shrink: 0; vertical-align: middle; cursor: help; top: -1px; }
.tip-pop { position: fixed; z-index: 100; max-width: 280px; background: #1a1a18; color: #f6f4ef; font: 400 12px/1.45 Inter, -apple-system, sans-serif;
  border-radius: 8px; padding: 9px 12px; text-align: left; white-space: normal; box-shadow: 0 8px 22px rgba(0,0,0,.25); pointer-events: none; }
.tip-pop ul { margin: 0; padding-left: 16px; } .tip-pop li { margin: 0 0 3px; } .tip-pop li:last-child { margin-bottom: 0; }
.tip-pop.name { white-space: nowrap; padding: 5px 9px; }

/* search box with × (comments #10, #27) */
.search-box { position: relative; display: inline-flex; align-items: center; width: 240px; height: var(--btn-h); flex-shrink: 0; }
.search-box .search { width: 100%; padding-right: 30px; }
.search-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; border: 0;
  background: var(--icon-muted); color: #fff; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.search-x:hover { background: var(--ink3); }

/* shell */
/* minimum page size 1280 × 720 — smaller windows scroll instead of squashing cards (comment #18) */
/* v0.4.3: the app always fills the window; below 1280 × 720 only the page area scrolls (both ways), never the sidebar */
html, body { overflow: hidden; height: 100%; }
.shell { display: flex; height: 100vh; width: 100vw; }
.sidebar { width: 200px; flex: none; background: var(--side); padding: 16px 12px; display: flex; flex-direction: column; height: 100%; z-index: 5; position: relative; }
/* sidebar: fixed top + bottom; only the menu between them scrolls, without a scroll bar; a fade shows more below */
.side-top, .side-bottom { flex: none; display: flex; flex-direction: column; }
.side-menu { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
.side-menu::-webkit-scrollbar { display: none; }
.side-menu.more { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
.collapsed .side-top, .collapsed .side-menu, .collapsed .side-bottom { align-items: center; gap: 6px; }
.collapsed .side-menu { margin: 0 -8px; padding: 0 8px; }
.collapsed .side-top { margin-bottom: 6px; }
.collapsed .sidebar { width: 52px; padding: 16px 8px; }
.collapse-btn { position: absolute; top: 24px; right: -9px; width: 18px; height: 28px; background: #fff; border: 1px solid var(--line2); border-radius: 6px; color: var(--ink2); font-size: 12px; cursor: pointer; padding: 0; z-index: 6; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 4px 6px 14px; }
.brand.mini { padding: 4px 5px; }
.brand.big { font-size: 22px; justify-content: center; margin-bottom: 20px; }
.logo { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); display: inline-block; flex: none; }
.nav-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border-radius: 8px; color: var(--ink2); font-size: 14px; margin-bottom: 2px; }
.nav-item:hover { background: #ece9e1; } .nav-item.active { background: var(--accent-bg); color: var(--accent-ink); font-weight: 500; }
.nav-item.disabled { cursor: default; } .nav-item.disabled:hover { background: none; }
.soon { font-size: 10px; color: var(--ink3); border: 1px dashed var(--line2); border-radius: 4px; padding: 0 4px; font-weight: 400; margin-left: 6px; }
.back { font-size: 13px; color: var(--ink2); padding: 4px 10px 8px; display: block; }
.side-rule { border-top: 1px solid var(--line); margin: 12px 4px; }
.section { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink3); padding: 0 10px; margin: 0 0 6px; }
.switcher { position: relative; margin-bottom: 12px; }
.switcher-btn { width: 100%; text-align: left; background: #fff; border: 1px solid #e0ddd4; border-radius: 8px; padding: 8px 10px; cursor: pointer; font: inherit; }
.switcher-btn .row { justify-content: space-between; }
.switcher-btn .name { display: block; font-size: 12.5px; font-weight: 500; margin-top: 4px; }
.caret { color: var(--ink3); font-size: 11px; }
.menu { position: absolute; z-index: 40; background: #fff; border: 1px solid #e0ddd4; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 6px; }
.switcher-menu { top: calc(100% + 4px); left: 0; width: 320px; max-height: 360px; overflow: auto; }
.switcher-menu input { flex: 1; margin-bottom: 6px; }
.menu-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 6px 10px; border: 0; background: none; border-radius: 6px; cursor: pointer; font: inherit; font-size: 13px; text-align: left; color: var(--ink); }
.menu-item:hover { background: var(--side); } .menu-item.current { background: var(--accent-bg); color: var(--accent-ink); }
.menu-foot { border-top: 1px solid var(--line); margin-top: 4px; padding: 6px 8px 2px; display: flex; justify-content: flex-end; }
.profile { position: relative; }
.profile-btn { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 8px 10px; margin-top: 6px; border-radius: 8px; cursor: pointer; font: inherit; text-align: left; }
.profile-btn:hover, .profile-btn.on { background: #ece9e1; }
.profile-btn .who { display: flex; flex-direction: column; flex: 1; } .profile-btn b { font-size: 12px; font-weight: 500; } .profile-btn small { color: var(--ink3); font-size: 10px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: #F0997B; color: #4A1B0C; display: grid; place-items: center; font-size: 11px; font-weight: 500; flex: none; }
.profile-menu { bottom: calc(100% + 4px); left: 0; width: 100%; }
.profile-menu p { margin: 4px 8px 6px; font-size: 11px; color: var(--ink3); }
.powered { font-size: 10px; color: var(--ink3); margin: 6px 10px 0; }
/* Round 15 #1 (10/Oct/26): the sidebar stays put — only the page area (.main) scrolls. In windows shorter than
   the sidebar's items (≈ 600 px) the sidebar scrolls its own items. */
.main { flex: 1; min-width: 0; position: relative; height: 100%; overflow: auto; }
.main-inner { min-width: 1080px; min-height: 100%; padding: 24px 32px 32px; position: relative; box-sizing: border-box; }

/* page parts */
.page-header { margin-bottom: 14px; }
.crumb-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 32px; margin-bottom: 4px; }
.eyebrow { font-size: 11px; color: var(--ink3); text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.eyebrow a:hover { color: var(--accent); }
.actions { display: flex; gap: 12px; align-items: center; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.title-row h1 { display: flex; align-items: center; gap: 10px; }
.title-row h1 .code { font-size: 26px; font-weight: 600; }
.title-sub { font: 400 12px Inter, sans-serif; color: var(--ink2); }
.sub { margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.code-chip { font-size: 10px; font-weight: 600; letter-spacing: .04em; color: var(--ink2); background: #f0ede6; border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.pill { display: inline-block; font-size: 11px; border-radius: 5px; padding: 2px 8px; white-space: nowrap; }
.p-open { background: var(--open-bg); color: var(--open); } .p-crit { background: var(--crit-bg); color: var(--crit); }
.p-closed { background: var(--ok-bg); color: var(--ok); } .p-void { background: #f1efe8; color: var(--ink3); text-decoration: line-through; }
.p-tag { background: #f0ede6; color: var(--ink2); }
.disc-tag { font-weight: 500; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.card.pad { padding: 16px 18px; }
.scroll { overflow: auto; }
.seg { display: inline-flex; gap: 2px; background: #f0ede6; border-radius: 8px; padding: 2px; }
.seg button { height: 28px; border: 0; background: none; padding: 0 12px; cursor: pointer; font: inherit; font-size: 12.5px; border-radius: 6px; color: var(--ink2); white-space: nowrap; }
.seg button.on { background: #fff; border: 1px solid #d9d6cc; color: var(--ink); }
.seg button:disabled { opacity: .5; cursor: default; }
.search { width: 240px; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.popover { position: relative; display: inline-block; }
.pop-btn { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
.pop-menu { top: calc(100% + 4px); min-width: 180px; max-height: 340px; overflow: auto; }
.pop-menu.right { right: 0; }
.filter-btn { box-sizing: border-box; height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid #d9d6cc; border-radius: 8px; background: #fff; font-size: 12.5px; color: var(--ink2); white-space: nowrap; }
.filter.on .filter-btn { border: 1.5px solid var(--accent); background: var(--accent-bg); color: var(--accent-ink); font-weight: 500; }
.range { display: flex; gap: 6px; align-items: center; padding: 8px; } .range input { width: 110px; } .range.col { flex-direction: column; align-items: stretch; } .range.col input { width: 200px; }
tr.clickable { cursor: pointer; } tr.clickable:hover td { background: #fbfaf7; }
tr.ticked td, tr.active td { background: var(--accent-bg) !important; }
tr.voided td { color: var(--ink3); } tr.voided td.code { color: #c9a99b; text-decoration: line-through; }
.fab { position: fixed; right: 40px; bottom: 32px; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; border: 0; font-size: 26px; cursor: pointer; box-shadow: 0 6px 16px rgba(185,72,31,.35); z-index: 15; }
.fab:hover { background: var(--accent-hover); }

/* card rows (A3, A4) */
.cards6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 8px; }
.cards7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 14px; }
.stat { border-radius: 8px; padding: 9px 12px; border: 0; text-align: left; font: inherit; }
button.stat { cursor: pointer; } button.stat:hover { filter: brightness(.97); }
.stat.picked { box-shadow: 0 0 0 2px var(--accent) inset; }
.stat .k { font-size: 11px; white-space: nowrap; } .stat .v { font-size: 18px; font-weight: 500; }
.stat .bar { margin-top: 5px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.7); } .stat .bar div { height: 100%; border-radius: 2px; }
.stat.slot { background: #fff; border: 1.5px dashed #e0ddd4; color: var(--icon-muted); }
.table-card { padding: 16px 18px; }
.table-card h2 { margin-bottom: 8px; }
.comp-table th:first-child, .comp-table td:first-child { width: 52px; }
.so-col { width: 96px; text-align: left; }
.so-chip { box-sizing: border-box; height: 28px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 7px; font-size: 11.5px; font-weight: 600; border: 1px solid; }
.so-chip.signed { background: var(--ok-bg); color: var(--ok); border-color: #B9D79A; }
.so-chip.awaiting { background: var(--open-bg); color: var(--open); border-color: #EFC98A; }
.so-chip.published { background: #fff; color: var(--ink2); border-color: var(--line2); }

/* A1 projects */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project-card { background: var(--side); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-height: 150px; }
.project-card:hover { box-shadow: 0 0 0 1.5px var(--accent) inset; }
.project-card .title { font-size: 15px; font-weight: 500; min-width: 0; } .project-card .muted { font-size: 12.5px; }
.project-card .bottom { margin-top: auto; color: var(--ink2); } .project-card .date { color: var(--ink); font-weight: 400; }
.list-card { padding: 16px 20px; }

/* A2 dashboard */
.dash { display: grid; grid-template-columns: 1fr 330px; gap: 16px; align-items: stretch; }
.dash-main { display: flex; flex-direction: column; gap: 16px; }
.stats-card { border-color: #F0997B; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--side); border-radius: 8px; padding: 8px 12px; } .kpi .k { font-size: 11px; color: var(--ink2); } .kpi .v { font-size: 20px; font-weight: 500; }
.kpi.red .v { color: var(--red); } .kpi.amber .v { color: var(--open); } .kpi.green .v { color: var(--ok); }
.stats-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mini-label { font-size: 11px; color: var(--ink3); margin-bottom: 2px; }
.disc-bars { display: flex; flex-direction: column; gap: 7px; }
.disc-bar { display: flex; align-items: center; gap: 8px; font-size: 11px; } .disc-bar > span:first-child { width: 30px; font-weight: 500; }
.disc-bar .track { flex: 1; height: 6px; background: #f0ede6; border-radius: 3px; } .disc-bar .track div { height: 100%; border-radius: 3px; }
.disc-bar .n { width: 20px; text-align: right; }
.act-block { display: flex; flex-direction: column; gap: 8px; } .act-head { height: 28px; }
.act-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .act-tiles.four { grid-template-columns: repeat(4, 1fr); margin-bottom: 12px; gap: 10px; }
.act-tile { background: var(--side); border-radius: 8px; padding: 7px 10px; } .act-tile p:first-child { font-size: 10.5px; color: var(--ink2); }
.act-tile .n { font-size: 17px; font-weight: 500; margin-top: 2px; } .act-tile .n.off { color: var(--ink3); }
.tile.placeholder { border: 1.5px dashed var(--line2); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; min-height: 240px; flex: 1; }
.tile.placeholder h2 { color: var(--ink2); }
.ghost-bars { flex: 1; display: flex; align-items: flex-end; gap: 10px; opacity: .35; min-height: 160px; }
.ghost-bars div { flex: 1; display: flex; gap: 3px; align-items: flex-end; height: 100%; } .ghost-bars i { flex: 1; background: var(--line2); border-radius: 3px 3px 0 0; } .ghost-bars i + i { background: var(--ink3); }
.activity { display: flex; flex-direction: column; max-height: calc(100vh - 130px); }
.act-list { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 12px; font-size: 12px; padding-right: 6px; margin-bottom: 10px; }
.act-line { display: flex; gap: 9px; line-height: 1.4; min-width: 0; }
.act-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.act-text { min-width: 0; } .act-text .pill { padding: 0 6px; }
.act-meta { font-size: 11px; color: var(--ink3); margin-top: 2px; }

/* A2.2 activity page */
.act-page { padding: 4px 20px 12px; }
.act-scroll { max-height: calc(100vh - 330px); min-height: 200px; overflow: auto; padding-right: 10px; }
.act-day { font-size: 12px; font-weight: 600; padding: 10px 0 6px; border-bottom: 1px solid var(--line); }
.act-row { display: grid; grid-template-columns: 52px 1fr 150px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid #f3f1ec; font-size: 12.5px; }
.act-row .time { color: var(--ink3); font-size: 11.5px; } .act-row .where { font-size: 11px; color: var(--ink2); text-align: right; white-space: nowrap; }
.pager { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; font-size: 12px; color: var(--ink2); }

/* A4 component summary + A4.1 side panel + bulk bar */
.with-panel { display: grid; grid-template-columns: 1fr 360px; gap: 0; margin: -24px -32px -32px 0; }
.with-panel .page-col { padding: 24px 24px 32px 0; min-width: 0; }
.side-panel { background: #faf9f6; border-left: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.snap-card { background: #f0ede6; border-radius: 12px; min-height: 220px; display: flex; align-items: center; justify-content: center; color: var(--ink3); font-size: 13px; }
.field-card { background: var(--side); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field-card .k { font-size: 12px; color: var(--ink2); display: flex; align-items: center; justify-content: space-between; }
.field-card .v { font-size: 14px; line-height: 1.5; }
.field-card.tall { min-height: 220px; }
.bulk-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--accent-bg); border-radius: 10px; padding: 8px 10px; margin-bottom: 12px; }
.bulk-bar b { font-weight: 500; color: var(--accent-ink); margin-right: 6px; }
.issue-table th.cb, .issue-table td.cb { width: 28px; }
.sort { border: 0; background: none; font: inherit; color: inherit; padding: 0; cursor: pointer; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(26,26,24,.38); z-index: 50; display: flex; justify-content: flex-end; }
.drawer { width: 440px; max-width: 100vw; height: 100vh; background: #fff; display: flex; flex-direction: column; padding: 20px 24px; box-shadow: -8px 0 24px rgba(0,0,0,.12); }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; } .drawer-head h2 { font-size: 17px; margin: 0 0 2px; }
.drawer-body { flex: 1; overflow: auto; }
.drawer-foot { display: flex; justify-content: flex-end; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.dropzone { border: 1.5px dashed var(--line2); border-radius: 8px; height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink2); }
.dropzone.off { opacity: .6; }
.btn.pin { flex: none; }

/* A5 issue detail */
.stepper { display: flex; align-items: center; gap: 8px; }
.num-input { width: 44px; text-align: center; }
.created { display: flex; flex-direction: column; align-items: flex-end; }
.detail { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
.detail-left { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.inline-view { border: 0; background: none; padding: 2px 0; margin: 0; font: inherit; font-size: 14px; color: var(--ink); text-align: left; cursor: text; width: 100%; border-radius: 4px; white-space: pre-wrap; line-height: 1.5; min-height: 22px; }
.inline-view:hover:not(:disabled) { background: rgba(185,72,31,.07); } .inline-view:disabled { cursor: default; color: var(--ink); }
.inline-view.date { font-size: 14px; width: auto; } .created .inline-view.date { border-bottom: 1px dashed var(--line2); }
.inline-input { width: 100%; border-color: var(--accent); }
.chip-pop .pill { font-size: 13px; padding: 4px 10px; cursor: pointer; }
.void-banner { background: #f1efe8; border: 1px dashed #c9c5b9; color: var(--ink2); padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.log h2 { font-size: 16px; }
.log ol { list-style: none; padding: 0 0 0 14px; margin: 0 0 12px; border-left: 2px solid #F0997B; max-height: calc(100vh - 380px); overflow: auto; }
.log li { display: flex; flex-direction: column; gap: 4px; padding: 6px 0 12px; }
.log li .inline-view { font-size: 13px; color: var(--ink2); } .log li .inline-view.date { color: var(--ink); font-size: 14px; }
.act-by { font-size: 12px; color: var(--ink3); } .act-by u { text-decoration: underline dashed; text-underline-offset: 3px; }
.log-add { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; } .log-add textarea { width: 100%; }
.log-add input { width: 120px; } .log-add select { flex: 1; }

/* modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(26,26,24,.35); display: grid; place-items: center; z-index: 60; }
.modal-backdrop.top { z-index: 70; }
.modal { background: #fff; border-radius: 12px; width: 560px; max-width: calc(100vw - 32px); max-height: 90vh; overflow: auto; padding: 18px 20px; }
.modal.small { width: 380px; } .modal.small h2 { margin-bottom: 6px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .modal-head h2 { margin: 0; }
.modal-foot { display: flex; justify-content: flex-end; gap: 12px; margin-top: 12px; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; background: var(--side); }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; width: 420px; }
.login-card form { display: flex; flex-direction: column; gap: 12px; }
.demo-users { display: flex; flex-direction: column; gap: 6px; }
.demo-user { text-align: left; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px 12px; cursor: pointer; font: inherit; display: flex; flex-direction: column; }
.demo-user:hover { border-color: var(--accent); } .demo-user small { color: var(--ink2); }

/* collapsed sidebar: icons, name on hover, K profile (comment #5) */
.collapsed .sidebar { align-items: center; }
.nav-mini { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.nav-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--ink2); }
.nav-icon:hover { background: #ece9e1; } .nav-icon.active { background: var(--accent-bg); color: var(--accent-ink); }
.nav-icon.disabled { color: var(--icon-muted); cursor: default; } .nav-icon.disabled:hover { background: none; }
.switcher.mini { margin: 0 0 4px; }
.switcher-chip { width: 36px; height: 24px; border-radius: 5px; background: #fff; border: 1px solid #e0ddd4; font: 600 10px Inter, sans-serif; color: var(--ink2); cursor: pointer; padding: 0; }
.switcher.mini .switcher-menu { left: 44px; top: 0; }
.side-rule.mini { width: 32px; margin: 8px 0; }
.profile.mini .profile-btn { padding: 6px; width: auto; margin-top: 4px; }
.profile.mini .profile-menu { left: 44px; bottom: 0; width: 220px; }
.powered.mini { margin: 4px 0 0; font-size: 10px; }
.login .powered { margin-top: 16px; text-align: center; }

/* A2 / A2.2 activity links (comment #7) */
.act-link { color: var(--accent); font-weight: 500; } .act-link:hover { text-decoration: underline; }

/* Admin console / Settings × (comment #25) */
.close-x { font-size: 18px; }

/* A5 layout (comments #13–17) and card alignment (#16) */
.snap-card.wide { min-height: 220px; height: 220px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.field-card { position: relative; }
.field-card .k { min-height: 18px; line-height: 18px; }
.field-extra { position: absolute; top: 8px; right: 10px; }
.issue-page .detail { align-items: start; }
.issue-page .log { position: sticky; top: 16px; height: max(calc(100vh - 140px), 440px); display: flex; flex-direction: column; }
.issue-page .log ol { flex: 1; max-height: none; min-height: 0; }
.log-edit { display: flex; gap: 6px; align-items: flex-start; } .log-edit textarea { flex: 1; } .log-edit input { width: 130px; }
.btn.icon.ok { color: var(--ok); border-color: #B9D79A; background: var(--ok-bg); }

/* A4 bulk void / migrate pop-ups (comments #24, #26) */
.migrate-list { background: var(--side); border-radius: 8px; padding: 10px 12px; font-size: 12.5px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 4px; }
label.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); margin: 4px 16px 8px 0; cursor: pointer; }
label.check input[type=radio] { accent-color: var(--accent); }

/* ---- round 13 (v0.2.2, 04/Oct/26) ---- */
/* #4 menus float above everything (portal) and flip up near the bottom of the window */
.pop-menu.floating { position: fixed; top: auto; z-index: 90; }
/* #3 sidebar: icon + name; "soon" items greyed (word "soon" on hover) */
.nav-item { justify-content: flex-start; gap: 10px; min-height: 36px; padding: 0 10px; white-space: nowrap; }
.nav-ic { display: inline-flex; width: 18px; height: 18px; flex-shrink: 0; } .nav-ic svg { width: 100%; height: 100%; }
.nav-ic.small { width: 16px; height: 16px; }
.nav-item.disabled { color: var(--ink3); } .nav-item.disabled .nav-ic { color: var(--icon-muted); }
.sidebar .back { display: flex; align-items: center; gap: 8px; }
/* #8 keyboard highlight (↑ / ↓) */
tr.kbd { outline: 2px solid var(--accent); outline-offset: -2px; }
.project-card.kbd { outline: 2px solid var(--accent); outline-offset: 2px; }
/* #1 sortable headers: ↕ grey, ↑ / ↓ on the sorted column */
.sort { display: inline-flex; align-items: center; gap: 4px; color: var(--ink2); }
.sort .arrow { color: var(--icon-muted); font-size: 11px; } .sort.on { color: var(--ink); } .sort.on .arrow { color: var(--accent); }
th.tip-th { width: 24px; }
/* A2 Statistics: discipline bars in two columns */
.disc-bars.two-col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 6px; }
.disc-bars.two-col .mini-label { grid-column: 1 / -1; margin-bottom: 0; }
/* #2 Activity statistics card + collapsible cards */
.act-stats { border-color: #F0997B; }
.card-head { min-height: 28px; margin-bottom: 8px; } .card-head h2 { margin: 0; }
.collapse-head { border: 0; background: none; font: inherit; font-size: inherit; font-weight: inherit; color: inherit; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.collapse-head .chev { color: var(--ink3); font-size: 11px; width: 12px; }
.act-stats.collapsed .card-head { margin-bottom: 0; }
.tile.placeholder.collapsed { min-height: 0; flex: none; padding: 10px 18px; } .tile.placeholder.collapsed h2 { margin: 0; }
.legend-row { margin-bottom: 6px; flex-wrap: wrap; }
.legend-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 13px; background: #fff; font: inherit; font-size: 11.5px; cursor: pointer; color: var(--ink); }
.legend-chip i { width: 12px; height: 3px; border-radius: 2px; } .legend-chip b { font-weight: 600; }
.legend-chip.off { color: var(--ink3); border-color: var(--line); } .legend-chip.off i { background: var(--line2) !important; }
.range-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 6px; background: #fff; font-size: 11.5px; white-space: nowrap; }
.range-pop .pop-btn { border: 0; background: none; padding: 0; cursor: pointer; }
.range-menu { display: grid; grid-template-columns: 150px 150px; gap: 10px; padding: 2px; }
.range-menu .custom { border-left: 1px solid var(--line); padding-left: 10px; display: flex; flex-direction: column; gap: 4px; }
.range-menu .custom input { width: 100%; }
.chart { position: relative; }
.chart svg { display: block; }
.chart .ax { font-size: 10px; fill: var(--ink3); } .chart .end-label { font-size: 10px; font-weight: 600; }
.chart-tip { position: absolute; top: 8px; margin-left: 10px; background: #1a1a18; color: #f6f4ef; border-radius: 8px; padding: 7px 10px; font-size: 11px; line-height: 1.5; white-space: nowrap; pointer-events: none; z-index: 5; }
.chart-tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.tiny { font-size: 10.5px; }
.error-text { color: var(--red); }
/* #6 icon buttons with a floating name */
.icon-btn-wrap { display: inline-flex; }
/* #9 A4.1 latest resolution */
.latest-log .clamp4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-weight: 400; }
.latest-log .v.strong { font-weight: 500; font-size: 12.5px; }
/* resolution log: newest on top, add box above the list; void entry locked (#10) */
.log-add { border-top: 0; padding-top: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.log-locked { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin: 0 0 12px; }
.void-entry .log-date { font-size: 14px; font-weight: 500; } .void-entry .log-note { font-size: 13px; color: var(--ink2); }
.menu-item:focus { outline: none; background: var(--side); } .menu-item.current:focus { background: var(--accent-bg); box-shadow: inset 0 0 0 1.5px var(--accent); }
.tile.placeholder { min-height: 150px; } .ghost-bars { min-height: 90px; }

/* ---- round 14 (v0.2.3, 10/Oct/26) ---- */
/* #1 both A2 cards collapse to the same 62 px strip */
.act-stats.collapsed, .tile.placeholder.collapsed { height: 62px; min-height: 0; padding: 0 18px; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; box-sizing: border-box; flex: none; }
.tile.placeholder.collapsed h2 { width: 100%; justify-content: flex-start; }
.act-stats.collapsed .card-head { width: 100%; margin: 0; }
.tile.placeholder.collapsed h2, .act-stats.collapsed h2 { margin: 0; font-size: 15px; }
.tile.placeholder h2 .collapse-head, .act-stats h2 .collapse-head { font-size: 15px; font-weight: 600; }
/* #2 sorting never moves columns: fixed layout + fixed-width arrow slot */
table.fixed-cols { table-layout: fixed; }
table.fixed-cols td { overflow-wrap: anywhere; }
.sort .arrow { display: inline-block; width: 12px; text-align: center; }

/* ---- Part 3 (v0.3.0, 10/Oct/26) ---- */
/* round 15 #1: sidebar menus float (portal) so the sidebar can scroll its own items */
.menu.side-floating { position: fixed; z-index: 90; bottom: auto; }
.switcher-menu.side-floating { width: 320px; }
.profile-menu.side-floating { width: 220px; }
/* A7 Admin console: header tabs, list + right panel */
.admin-head { margin-bottom: 14px; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-top: 6px; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 2px; font-size: 13px; color: var(--ink2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); } .tab.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.tab.disabled { color: var(--ink3); cursor: default; } .tab.disabled:hover { color: var(--ink3); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.admin-panel { padding: 18px; display: flex; flex-direction: column; position: sticky; top: 0; max-height: calc(100vh - 150px); }
.admin-panel h2 { margin: 0 0 12px; font-size: 15px; }
.admin-panel .panel-body { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.panel-foot { display: flex; justify-content: flex-end; gap: 12px; padding-top: 14px; }
.admin-panel .field { margin-bottom: 12px; } .admin-panel label.check { margin: 2px 0; } label.check.muted { color: var(--ink3); }
.code-input { width: 120px !important; font-weight: 600; }
.kv { font-size: 13px; margin-bottom: 12px; }
td.strong { font-weight: 500; } .accent-text { color: var(--accent); }
tr.dim td { color: var(--ink3); }
.filters-row { margin-bottom: 12px; } .gap8 { gap: 8px; }
.pill.p-mod { background: var(--accent-bg); color: var(--accent-ink); margin: 1px 4px 1px 0; }
.pill.p-invited { background: var(--open-bg); color: var(--open); }
.pill.p-void-plain { background: #f1efe8; color: var(--ink3); }
.member-list { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.member-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 30px; }
select.slim { height: 28px; font-size: 12px; padding: 0 6px; max-width: 150px; }
.assign-rows { display: flex; flex-direction: column; gap: 6px; }
.assign-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 24px; gap: 8px; align-items: center; }
.assign-row select { width: 100%; min-width: 0; }
b.assign-code { font-size: 12.5px; }
.modal.add-member { width: 440px; } .modal.small-wide { width: 400px; }
.add-member .assign-row { grid-template-columns: 92px minmax(0, 1fr) 24px; }
/* on / off switch */
.switch { width: 34px; height: 20px; border-radius: 10px; border: 0; background: #d3d1c7; position: relative; cursor: pointer; padding: 0; vertical-align: middle; flex: none; }
.switch i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .12s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch.on { background: #1D9E75; } .switch.on i { left: 16px; }
.switch:disabled { cursor: default; opacity: .75; }
/* A7.1 access dropdowns: Edit green, View blue, No access grey */
.roles-table td, .roles-table th { padding-right: 8px; } .roles-table td { height: 46px; }
.acc { height: 28px; font-size: 12.5px; border: 0; border-radius: 6px; padding: 0 8px; cursor: pointer; }
span.acc { display: inline-flex; align-items: center; padding: 0 10px; cursor: default; }
.acc-edit { background: var(--ok-bg); color: var(--ok); } .acc-view { background: #E6F1FB; color: #185FA5; } .acc-none { background: #f1efe8; color: var(--ink3); }

/* ---- Round 16 (v0.3.1, 10/Oct/26) ---- */
.btn.slim-btn { height: 28px; font-size: 11.5px; padding: 0 9px; }
.btn.accent-outline { color: var(--accent); border-color: #F0C9B9; }
.role-kind { display: block; font-size: 10.5px; color: var(--ink3); }
/* A7.1 Manage members / A7.2.2 Manage projects: two boxed sections, the lower one scrolls */
.modal.pick-modal { width: 936px; height: 680px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; gap: 10px; overflow: hidden; padding: 20px 24px; }
.pick-modal .modal-head h2 { font-size: 16px; }
.pick-modal .search-box { width: 100%; display: flex; } .pick-modal input.search { width: 100%; height: 30px; }
.pick-section { display: flex; flex-direction: column; gap: 4px; }
.pick-section.grow { flex: 1; min-height: 0; }
.pick-head { border: 0; background: none; padding: 2px 0; font: inherit; font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--ink2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; }
.pick-head .chev { color: var(--ink3); width: 10px; }
.pick-box { border: 1px solid var(--line); border-radius: 8px; padding: 0 4px 0 12px; overflow-y: auto; scrollbar-gutter: stable; }
/* both boxes keep the same scrollbar space, so names, roles and × line up between the two sections (Windows shows a real scrollbar) */
.pick-box.scroll { flex: 1; min-height: 0; overflow-y: auto; }
.pick-row { display: flex; align-items: center; gap: 10px; min-height: 32px; border-bottom: 1px solid #f1efe8; font-size: 12px; }
.pick-row:last-child { border-bottom: 0; }
.pick-tick { width: 16px; flex: none; display: inline-flex; }
.pick-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; }
.pick-name .pill { font-size: 10.5px; }
.pick-code { width: 60px; flex: none; color: var(--ink2); }
.pick-role { width: 220px; flex: none; height: 28px; font-size: 12px; padding: 0 8px; }
select.pick-role.changed { border-color: var(--accent); }
.pick-role.fixed { display: inline-flex; align-items: center; color: var(--ink2); padding: 0 8px; box-sizing: border-box; }
.pick-x { width: 24px; flex: none; display: inline-flex; justify-content: center; }
.pick-undo { width: 220px; justify-content: flex-end; }
.pick-row.removed .pick-name { text-decoration: line-through; color: var(--ink3); }
.pick-row.disabled .pick-name { color: var(--ink3); }
/* A7.2 Edit member (round 16b) */
.member-panel { padding: 0; overflow: hidden; }
.mp-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mp-head b { display: block; font-size: 14px; } .mp-head small { display: block; font-size: 11.5px; color: var(--ink2); }
.avatar.big { width: 34px; height: 34px; font-size: 13px; }
.member-panel .mp-body { padding: 12px 18px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.mp-body section + section { border-top: 1px solid #f1efe8; padding-top: 10px; }
.mp-body .field { margin-bottom: 8px; font-size: 11.5px; } .mp-body .field input, .mp-body .field select { height: 30px; font-size: 12.5px; }
.mp-cap { font-size: 10.5px; color: var(--ink3); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 6px; }
.mp-row { display: flex; align-items: center; justify-content: space-between; min-height: 26px; font-size: 12.5px; color: var(--ink2); }
.mp-row .btn.link { height: 24px; padding: 0; font-weight: 500; }
.mp-projects > div { display: flex; align-items: center; gap: 8px; font-size: 12px; min-height: 24px; }
.mp-projects b { width: 58px; flex: none; color: var(--ink2); font-weight: 600; }
.mp-projects .ellipsis { flex: 1; min-width: 0; }
.member-panel .panel-foot { padding: 12px 18px; border-top: 1px solid var(--line); }
.assign-row.no-role { grid-template-columns: 1fr 24px; }
/* A1 stars + Not assigned (round 16) */
.star-btn { border: 0; background: none; padding: 0; width: 18px; height: 18px; font-size: 15px; line-height: 1; cursor: pointer; color: var(--icon-muted); flex: none; position: relative; }
.star-btn.on { color: #EF9F27; } .star-btn:hover { color: #EF9F27; }
.pill.p-unassigned { background: #f1efe8; color: var(--ink2); }
th.star-col, td.star-col { width: 22px; padding-right: 0; }

/* ---- Round 17 + Part 4 (v0.4.0, 10/Oct/26) ---- */
/* A7.2.4 Change company role? (every change asks) */
.role-confirm .role-change { display: flex; align-items: center; gap: 10px; font-size: 13px; margin: 4px 0 8px; }
.pill.p-crit-soft { background: var(--accent-bg); color: var(--accent-ink); }
/* A6 Project setup */
.setup-page .page-header .actions { align-items: center; }
.v-rule { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.setup-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.setup-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.setup-card { padding: 16px 20px; }
.setup-card h2 { font-size: 15px; margin: 0 0 10px; }
.cover-card { flex: 1; }
.cover-auto { font-size: 12.5px; margin: 0 0 8px; }
.cover-card .field input:disabled { background: #f1efe8; color: var(--ink2); }
.upload-box { border: 1px dashed var(--line2); border-radius: 8px; min-height: 32px; display: flex; align-items: center; position: relative; margin-bottom: 8px; }
.upload-box.big.has { min-height: 90px; }
.upload-box img { max-height: 80px; max-width: 70%; margin: 6px 10px; border-radius: 4px; object-fit: contain; }
.upload-box:not(.big) img { max-height: 36px; }
.upload-box .btn.mini { position: absolute; top: 4px; right: 4px; }
.upload-btn { border: 0; background: none; font: inherit; color: var(--ink3); text-align: left; width: 100%; height: 32px; padding: 0 10px; cursor: pointer; }
.upload-btn:hover { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px; background: #f1efe8; font-size: 12.5px; border: 0; }
.chip button { border: 0; background: none; color: var(--ink3); cursor: pointer; padding: 0 0 0 2px; font-size: 13px; position: relative; }
.chip button:hover { color: var(--red); }
.chip.add { background: #fff; border: 1px dashed var(--line2); color: var(--accent); cursor: pointer; font: inherit; font-size: 12.5px; }
.chip.disc i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chip.disc b { font-weight: 600; }
.chip-input { height: 28px; width: 150px; border-radius: 14px; font-size: 12.5px; padding: 0 10px; }
.count-pill { font-size: 11.5px; background: #f1efe8; color: var(--ink2); border-radius: 9px; padding: 1px 8px; font-weight: 500; }
.comp-card { display: flex; flex-direction: column; }
.comp-head, .comp-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) 56px 44px 44px 28px; gap: 8px; align-items: center; }
.comp-head { font-size: 11.5px; color: var(--ink2); padding: 0 10px 6px; }
.comp-list { max-height: 352px; overflow-y: auto; scrollbar-gutter: stable; display: flex; flex-direction: column; gap: 6px; }
.comp-row { background: #f6f4ef; border-radius: 8px; padding: 6px 10px; }
.comp-row.drop { outline: 2px dashed var(--accent); outline-offset: -2px; }
.comp-row input { height: 30px; font-size: 12.5px; }
.comp-row .drag { cursor: grab; color: var(--ink3); user-select: none; text-align: center; }
.prefix-input { text-align: center; color: var(--accent); font-weight: 500; padding: 0 4px; }
.prefix-input.changed { border-color: var(--accent); background: var(--accent-bg); }
.center { text-align: center; }
.btn.ghost { border-color: transparent; background: none; color: var(--ink3); }
.btn.ghost:hover { color: var(--red); }
.requests { border: 1px solid #F0C9B9; background: #fdf6f3; border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.request { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; }
.warn-box { background: var(--open-bg); color: #633806; border-radius: 8px; padding: 10px 14px; font-size: 12.5px; line-height: 1.5; margin: 6px 0; }
.warn-box.red { background: var(--crit-bg); color: var(--crit); }
.disc-form { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; }
.swatches { display: grid; grid-template-columns: repeat(5, 30px); gap: 10px; margin-top: 4px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.swatch:disabled { opacity: .2; cursor: not-allowed; }
ul.tight { margin: 4px 0; padding-left: 18px; font-size: 12.5px; }
/* A6.3 signing page */
.modal.signing-modal { width: 880px; }
.sign-grid { display: grid; grid-template-columns: 16px 1fr 0.8fr 1fr 124px 28px; gap: 8px; align-items: center; margin-bottom: 8px; }
.sign-grid.sign-head { font-size: 12px; color: var(--ink2); margin-bottom: 4px; }
.sign-grid input { height: 32px; }
.date-cell { position: relative; } .date-cell .cal { position: absolute; right: 8px; top: 7px; font-size: 12px; pointer-events: none; opacity: .6; }
.modal-foot.sep { border-top: 1px solid var(--line); padding-top: 12px; }
.modal.sign-preview { width: 520px; }
/* round 22: preview = a portrait A4 sheet, boxes 2 across × 4 down like the printed P1.1 */
.sign-sheet { aspect-ratio: 210 / 297; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 1fr); gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; box-sizing: border-box; }
.sign-box { border: 1px solid var(--line); border-radius: 6px; padding: 30px 12px 10px; font-size: 12px; }
.sign-box p { margin: 2px 0; min-height: 15px; } .sign-line { border-top: 1px solid var(--ink2); margin-bottom: 6px; }
.sign-sheet .sign-box { min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px 12px 10px; }
/* Import clash report */
.modal.import-modal { width: 936px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; gap: 10px; }
.import-sheets { display: flex; flex-direction: column; gap: 4px; }
.import-sheets .check { display: flex; gap: 8px; align-items: center; font-size: 12.5px; }
.import-table { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; max-height: 360px; overflow-y: auto; }
.import-table table { font-size: 12px; } .import-table td { padding: 6px 8px 6px 0; }
.pill.imp-new { background: var(--ok-bg); color: var(--ok); } .pill.imp-update { background: #E6F1FB; color: #185FA5; }
.pill.imp-same { background: #f1efe8; color: var(--ink2); } .pill.imp-skip { background: var(--crit-bg); color: var(--crit); }
tr.dim td { color: var(--ink3); }
.sign-grid { grid-template-columns: 16px minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr) 124px 28px; }
.sign-grid input { width: 100%; min-width: 0; box-sizing: border-box; }
/* ---- v0.4.1 · round 18 ---- */
/* #2 date field: 📅 inside the field opens the calendar (board A4.2.1) */
.date-input { position: relative; display: inline-block; max-width: 100%; }
.date-input > input { padding-right: 30px; width: 136px; }
.field-card .date-input, .sign-grid .date-input, .field .date-input { display: block; }
.field-card .date-input > input { width: 100%; border-color: var(--accent); }
.date-input .cal-btn { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; background: none;
  border-radius: 6px; cursor: pointer; font-size: 12px; opacity: .65; padding: 0; display: flex; align-items: center; justify-content: center; }
.date-input .cal-btn:hover { opacity: 1; background: var(--side); }
.sign-grid .date-input, .field .date-input { display: block; }
.sign-grid .date-input > input, .field .date-input > input { width: 100%; box-sizing: border-box; }
.cal-pop { position: fixed; z-index: 120; width: 268px; background: #fff; border: 1px solid #d9d6cc; border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.16);
  padding: 12px; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; } .cal-head b { font-size: 13px; }
.cal-head .btn.icon { width: 28px; height: 28px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-dow { text-align: center; font-size: 10.5px; color: var(--ink3); font-weight: 500; padding-bottom: 2px; }
.cal-day { height: 30px; border: 0; background: none; border-radius: 7px; font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; padding: 0; }
.cal-day:hover, .cal-day.cursor { background: var(--side); }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-ink); font-weight: 500; }
.cal-day.chosen { background: var(--accent); color: #fff; font-weight: 600; box-shadow: none; }
.cal-day.chosen.cursor { box-shadow: 0 0 0 2px #fff inset; }
.cal-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; }
.cal-foot .link { border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; color: var(--accent); font-weight: 500; cursor: pointer; }
.cal-foot .link.muted { color: var(--ink2); font-weight: 400; }
/* #1 floating message: bottom centre, over the page, fades away — the layout never moves */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 150; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #1a1a18; color: #f6f4ef; border-radius: 8px; padding: 9px 14px; font-size: 12.5px; box-shadow: 0 6px 18px rgba(0,0,0,.18);
  display: flex; gap: 8px; align-items: center; animation: toast-life 3s ease forwards; }
.toast-tick { color: #97C459; font-weight: 600; }
@keyframes toast-life { 0% { opacity: 0; transform: translateY(6px); } 8% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; } }
/* #3 signing page: the row that stops Save */
.sign-grid.bad input.invalid, .sign-grid input.invalid { border-color: var(--red); background: #fdf3f0; }
.sign-errors { margin: 4px 0 8px; }

/* ---- v0.4.3 · AppleUI rulebook: every small clickable thing gets a 24 × 24 px hit area (the drawn size stays) ---- */
.info::after, .search-x::after, .star-btn::after, .chip button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; transform: translate(-50%, -50%); }
/* A4.2.2 calendar — month view (v0.4.3): click the month name, pick a month, ‹ › change the year */
.cal-title { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; padding: 4px 6px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; }
.cal-title:hover { background: var(--side); } .cal-title .caret { font-size: 10px; color: var(--icon-muted); }
.cal-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 4px 0; }
.cal-month { height: 40px; border: 0; background: none; border-radius: 7px; font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.cal-month:hover, .cal-month.cursor { background: var(--side); }
.cal-month.today { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-ink); font-weight: 500; }
.cal-month.chosen { background: var(--accent); color: #fff; font-weight: 600; box-shadow: none; }

/* =============================================================================
   PART 5 (v0.5.0) — A3.1 Export PDF, A3.1.1 Download PDFs, A3.2 Publish history, A3.3 Sign-off.
   Used by src/modules/issues/components/ExportPdf.tsx and PublishHistory.tsx.
   ============================================================================= */
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.gap10 { gap: 10px; } .gap16 { gap: 16px; } .wrap { flex-wrap: wrap; }

/* A3.1 Export PDF (board 640 px wide) */
.modal.export-modal { width: 640px; padding: 22px 24px; }
.export-k { font-size: 12px; color: var(--ink2); margin: 0 0 6px; }
.export-box { background: var(--side); border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; }
.export-all { display: flex; align-items: center; gap: 8px; font-weight: 500; padding: 3px 0; cursor: pointer; }
.export-all .muted { font-weight: 400; }
.export-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; padding-left: 22px; }
.export-row { display: grid; grid-template-columns: 14px 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 24px; cursor: pointer; }
.export-next { font-size: 11px; color: var(--ink3); white-space: nowrap; } .export-next.on { color: var(--accent-ink); }
.disc-tog { height: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line2);
  background: #fff; color: var(--ink3); font: inherit; font-size: 12.5px; cursor: pointer; }
.disc-tog i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.export-check { margin: 0 0 10px; cursor: pointer; } .export-check.sep { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; }
.export-opts { display: grid; grid-template-columns: 230px 1fr; gap: 16px; margin-bottom: 10px; }
.export-opts .seg { display: flex; } .export-opts .seg button { flex: 1; }
.export-date { width: 112px; } .export-date input { width: 112px; } .export-date .date-input > input { width: 112px; } .export-date.off { opacity: .45; }

/* A3.1.1 Download PDFs (board 880 px wide) */
.modal.download-modal { width: 880px; padding: 20px 24px; }
.dl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px 64px 190px; align-items: center; gap: 12px; }
.dl-head { font-size: 12px; color: var(--ink2); padding-bottom: 6px; }
.dl-row { min-height: 44px; border-top: 1px solid var(--line); }
.dl-ver { font-weight: 500; } .dl-ver.ok { color: var(--ok); }
.dl-act { display: flex; align-items: center; justify-content: flex-end; gap: 12px; white-space: nowrap; }
.dl-act .btn.link { padding: 0; } .dl-act .btn.link:hover:not(:disabled) { background: none; text-decoration: underline; }
.dl-foot { align-items: center; margin-top: 0; padding-top: 14px; }

/* A3.2 Publish history (board 960 px wide) */
.modal.history-modal { width: 960px; padding: 22px 24px; }
.hist { display: grid; grid-template-columns: 255px minmax(0, 1fr); gap: 20px; min-height: 340px; }
.hist-list { display: flex; flex-direction: column; border-right: 1px solid var(--line); padding-right: 14px; }
.hist-li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 26px; padding: 0 10px; border: 0; border-radius: 6px;
  background: none; font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; color: var(--ink); }
.hist-li.head { font-size: 11.5px; color: var(--ink2); cursor: default; min-height: 22px; }
.hist-li:not(.head):hover { background: var(--side); } .hist-li.on { background: var(--accent-bg); }
.hist-detail h3 { font-size: 14px; font-weight: 500; margin: 0 0 10px; }
.hist-table td { vertical-align: top; padding: 10px 8px 10px 0; } .hist-table th { font-size: 12px; }
.pill.p-latest { background: var(--ok-bg); color: var(--ok); font-size: 10px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }

/* A3.3 Sign-off — panel under the chip; see-through backdrop catches outside clicks (calendar z 120 and the Save? box stay above) */
button.so-chip { cursor: pointer; font-family: inherit; }
button.so-chip:hover { box-shadow: 0 0 0 2px rgba(185,72,31,.25); }
.so-backdrop { position: fixed; inset: 0; z-index: 65; }
.so-panel { position: fixed; width: 330px; background: #fff; border: 1px solid #e0ddd4; border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.16); padding: 14px 16px 16px; }
.so-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; } .so-head h3 { font-size: 13.5px; font-weight: 600; margin: 0; }
.so-head .btn.icon.mini { width: 24px; height: 24px; border: 0; font-size: 14px; }
.so-k { font-size: 12px; color: var(--ink2); margin: 10px 0 6px; } .so-k:first-of-type { margin-top: 0; }
.so-pick { width: 100%; height: 32px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line2); border-radius: 8px; background: #fff;
  padding: 0 10px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--ink); }
.so-pick.open { border-color: var(--accent); } .so-pick .caret { color: var(--ink3); font-size: 10px; }
.so-list { margin-top: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; max-height: 160px; overflow: auto; }
.so-opt { width: 100%; height: 26px; display: flex; justify-content: space-between; align-items: center; border: 0; background: none; border-radius: 6px; padding: 0 8px;
  font: inherit; font-size: 12.5px; cursor: pointer; color: var(--ink); } .so-opt:hover { background: var(--side); } .so-opt.on { background: var(--accent-bg); }
.so-switch { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.so-panel input:not([type=checkbox]), .so-panel .date-input, .so-panel .date-input > input { width: 100%; display: block; }
.so-panel .modal-foot { margin-top: 14px; }
.so-key b { display: block; margin-bottom: 8px; } .so-key p { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.so-key .so-chip { height: 22px; padding: 0 7px; font-size: 11px; } .so-key-note { margin-top: 8px !important; display: block !important; color: #d3d1c7; }
.so-key-note b { display: inline; margin: 0; color: #fff; }
.tip-pop:has(.so-key) { max-width: 360px; }

/* =============================================================================
   PRINT — PDF pages P0–P3 (src/modules/issues/print/PrintPages.tsx, printer.tsx).
   Pages are drawn at real A4 size in .print-root (off screen) so the issue pages can measure their log;
   while printing only .print-root shows. Every page A4 portrait 210 × 297 mm (cover + signing page portrait since round 22).
   Margins come from the page itself (@page margin 0), so the browser's own header / footer lines have no room.
   ============================================================================= */
@page { size: A4 portrait; margin: 0; }
.print-root { position: fixed; left: -10000px; top: 0; width: 210mm; pointer-events: none; }
.pp { width: 210mm; height: 296.6mm; overflow: hidden; background: #fff; display: flex; flex-direction: column; padding: 13mm 13mm 11mm; break-after: page;
  font-family: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 12px; color: #1a1a18; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pp[data-last] { break-after: auto; }
.pp-body { flex: 1; min-height: 0; }
.pp-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #ecebe4; padding-top: 3.5mm; font-size: 12px; }
.pp-foot b { font-weight: 400; } .pp-page { color: #6b6a65; font-size: 11px; }
.pp-logo { height: 8.5mm; max-width: 40mm; object-fit: contain; }
.pp-eyebrow { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #6b6a65; margin-bottom: 2px; }
.pp h2 { font-size: 19px; font-weight: 700; margin: 0; } .pp .pp-h { font-size: 20px; }
.pp-title { margin-bottom: 3.5mm; }
.pp-ver { display: inline-flex; align-items: center; height: 19px; padding: 0 8px; border: 1px solid #d9d6cc; border-radius: 5px; background: #f6f4ef; font-size: 11.5px; color: #6b6a65; font-weight: 500; }
.pp-issue-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4mm; }
.pp-right { text-align: right; } .pp-right .k, .pp .k { font-size: 11px; color: #5f5e5a; } .pp-right .v { font-size: 13px; }
.pp .v { font-size: 13px; }
/* P1 cover / P1.1 signing — A4 portrait since round 22 (17/Oct/26): band across the top, no page padding (.cov).
   Cover = photo full width + fields in two columns; signing page = 8 boxes, 2 across × 4 down. Sizes follow board P1 / P1.1 (48 px = 12.7 mm). */
.pp.cov { padding: 0; }
.pp-band { background: #FAECE7; height: 23mm; display: flex; align-items: center; justify-content: center; gap: 4mm; text-align: center; flex: none; }
.pp-band-k { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #B9481F; }
.pp-band h1 { font-size: 21px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #3d1a0c; margin-top: 1px; }
.pp-band .pp-ver { background: #fff; }
.pp-cover { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8.5mm; padding: 8.5mm 12.7mm 12.7mm; }
.pp-photo { flex: 1; min-height: 0; background: #f6f4ef; border-radius: 6px; overflow: hidden; } .pp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-cover-fields { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 5.8mm 9.5mm; } .pp-cover-fields .v { font-size: 15px; }
.pp-cover-logo { display: block; height: 12.7mm; max-width: 45mm; object-fit: contain; margin-top: 2mm; object-position: left center; }
.pp-sign { flex: 1; min-height: 0; padding: 6.4mm 12.7mm 12.7mm; display: flex; flex-direction: column; }
.pp-sign-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4.8mm; } .pp-sign-head h2 { font-size: 16px; } .pp-sign-head p { font-size: 12px; color: #5f5e5a; }
.pp-sig-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 1fr); gap: 4.2mm; }
.pp-sig { border: 1px solid #ecebe4; border-radius: 8px; padding: 4mm 4mm 3mm; display: flex; flex-direction: column; }
.pp-sig-k { font-size: 10px; color: #6b6a65; } .pp-sig-space { flex: 1; border-bottom: 1px solid #1a1a18; margin-bottom: 2mm; }
.pp-sig-line { display: grid; grid-template-columns: 15mm 1fr; align-items: end; min-height: 7mm; font-size: 12px; }
.pp-sig-line span { font-size: 10px; color: #6b6a65; } .pp-sig-line b { font-weight: 400; font-size: 11.5px; line-height: 1.3; border-bottom: 1px solid #ecebe4; padding-bottom: 1px; min-height: 18px; overflow-wrap: anywhere; }
/* P2 component summary */
.pp-chips { display: flex; gap: 6px; margin-bottom: 3.5mm; }
.pp-chip { display: flex; align-items: center; gap: 14px; height: 24px; padding: 0 10px; border-radius: 6px; font-size: 11px; }
.pp-chip b { font-size: 14px; font-weight: 400; } .pp-chip.total { background: #f0ede6; color: #5f5e5a; }
.pp-note { font-size: 10.5px; color: #6b6a65; margin-bottom: 1mm; }
.pp-table { font-size: 12px; } .pp-table th { font-size: 12px; padding: 4px 6px 4px 0; border-bottom-color: #c9c6bc; }
.pp-table td { padding: 2.5px 6px 2.5px 0; border-bottom-color: #ecebe4; } .pp-table .pill { font-size: 10.5px; padding: 0 6px; }
.pp-table tr.voided td { color: #6b6a65; } .pp-table tr.voided td.code { color: #c9a99b; text-decoration: line-through; }
.pp-table.master td { padding: 8px 6px 8px 0; }
/* P3 issue page */
.pp-issue-head h2.code { font-size: 20px; } .pp-cont { font-size: 13px; color: #6b6a65; font-weight: 400; }
.pp-desc { background: #f6f4ef; border-radius: 8px; padding: 3.5mm; min-height: 32mm; margin-bottom: 2.5mm; } .pp-desc .v { margin-top: 1mm; white-space: pre-line; }
.pp-fields3 { display: grid; grid-template-columns: 37mm 1fr 32mm; gap: 2.5mm; margin-bottom: 2.5mm; }
.pp-fields2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5mm; margin-bottom: 5mm; }
.pp-field { background: #f6f4ef; border-radius: 8px; padding: 2.5mm 3.5mm; } .pp-field .v { overflow-wrap: anywhere; }
.pp-log-title { font-size: 13px; margin-bottom: 2.5mm; } .pp-log-title span { font-size: 10.5px; color: #6b6a65; }
.pp-log { border-left: 2px solid #E8957A; padding-left: 4mm; }
.pp-log:empty { border-left: 0; }
.pp-log-entry { padding-bottom: 12px; } .pp-log-entry .d { font-size: 12.5px; } .pp-log-entry .n { font-size: 12.5px; white-space: pre-line; }
.pp-log-entry .by { font-size: 11px; color: #6b6a65; }
.pp-more { text-align: right; font-size: 11px; color: #6b6a65; margin-top: 2mm; }
/* P0 master summary */
.pp-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2.5mm; margin-bottom: 6mm; }
.pp-card { border-radius: 8px; padding: 3mm 3.5mm; } .pp-card p { font-size: 11.5px; } .pp-card b { font-size: 20px; font-weight: 400; }
.pp-section { font-size: 13px; color: #5f5e5a; margin: 0 0 2.5mm; }
.pp-bars { margin-bottom: 6mm; } .pp-bars > div { margin-bottom: 2.5mm; }
.pp-bar-k { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 1mm; } .pp-bar-k b { font-weight: 400; }
.pp-bar { height: 2.6mm; background: #f6f4ef; border-radius: 2mm; overflow: hidden; } .pp-bar > div { height: 100%; border-radius: 2mm; }
.pp-so { display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border: 1px solid; border-radius: 5px; font-size: 11px; font-weight: 600; }
.pp-so.signed { background: #EAF3DE; color: #3B6D11; border-color: #B9D79A; } .pp-so.awaiting { background: #FAEEDA; color: #854F0B; border-color: #EFC98A; }
.pp-so.published { background: #fff; color: #5f5e5a; border-color: #c9c6bc; }
.pp-key { display: flex; align-items: center; gap: 14px; font-size: 11px; color: #5f5e5a; margin-top: 3mm; } .pp-key > span { display: inline-flex; align-items: center; gap: 6px; }

@media print {
  html, body { overflow: visible !important; height: auto !important; background: #fff; }
  body > *:not(.print-root) { display: none !important; }
  .print-root { position: static; left: 0; width: auto; }
}
