/* Sailwork — Business wing, design preview. Built on Current's own tokens
 * (dashboard-v2: beautiful/theme.css, styles.css, accents.css): cool near-white
 * page, white cards, hairline rings, JetBrains Mono interface type, Inter for
 * running text, one indigo accent, semantic colour used sparingly. */
@font-face { font-family: "Inter Local"; src: url("fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono Local"; src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

.fold > summary { cursor: pointer; padding: 14px 16px; min-height: 44px; display: flex; align-items: center; gap: 12px; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before { content: '›'; font-size: 20px; transition: transform .15s; }
.fold[open] > summary::before { transform: rotate(90deg); }
.fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--r-card); }
.fold-label { min-width: 0; overflow-wrap: anywhere; }
.fold-title { font-weight: 600; }
.fold-hint { color: var(--ink-2); font-size: 12px; }
.fold-hint:not(:empty)::before { content: ' · '; }
.fold-body { padding: 0 16px 16px; }
.fold-body > .ask { margin-bottom: 12px; }
.overview-cards { gap: 10px; }
.overview-money { margin: 0 0 8px; line-height: 1.8; }
.overview-money a { display: inline; }
.overview-ask { gap: 8px; flex-wrap: wrap; }
.overview-ask input { flex: 1 1 180px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); color: var(--ink); padding: 10px; font: inherit; }
.view-save { padding: 8px 16px; font-size: 12px; color: var(--ink-2); }
.view-save:empty { display: none; }
@media (max-width: 600px) { .fold > summary { gap: 8px; } .fold > summary::before { flex: none; } }

:root {
  --font-inter: "Inter Local", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono Local", ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --page: #fafafb; --canvas: #f3f4f6; --surface: #fff; --inset: #f8f9fa; --hover: #f4f5f7; --hover-2: #eaecef;
  --ink: #1f2228; --ink-2: #646a76; --ink-3: #9a9fab;
  --line: #ebecef; --line-strong: #dfe1e6; --line-soft: #f2f3f5;
  --accent: #55549a; --accent-ink: #4a4990; --accent-tint: #eeeef8;
  --green: #199a4d; --green-tint: #e8f5ed; --orange: #c8651b; --orange-tint: #fcf0e4; --red: #c93a3f; --red-tint: #fbebea;
  --blue: #2f6fca; --blue-tint: #e9f1fb;
  --added: #8a6d1f; --added-tint: #fbf5df;
  --shadow-xs: 0 1px 1px rgb(0 0 0 / .03); --shadow-sm: 0 1px 2px rgb(0 0 0 / .04), 0 2px 4px rgb(0 0 0 / .02);
  --shadow-lg: 0 4px 10px rgb(0 0 0 / .05), 0 16px 40px rgb(0 0 0 / .10);
  --ring: 0 0 0 1px var(--line); --card: 0 0 0 1px var(--line), var(--shadow-sm); --btn: 0 0 0 1px var(--line-strong), var(--shadow-xs);
  --r-control: 8px; --r-card: 10px; --r-window: 14px;
}
.dark {
  --page: #05081c; --canvas: #080d25; --surface: #0c132d; --inset: #101933; --hover: #15213e; --hover-2: #1d2d4b;
  --ink: #edf3ff; --ink-2: #b0bfd6; --ink-3: #8496b5; --line: #202c47; --line-strong: #344665; --line-soft: #18223b;
  --accent: #9a99e6; --accent-ink: #b9b8f4; --accent-tint: #23234d;
  --green: #4fcf85; --green-tint: #12331f; --orange: #f0a35f; --orange-tint: #3a2616; --red: #f08086; --red-tint: #3d1b1f;
  --blue: #7fb0f5; --blue-tint: #152a4a; --added: #e2c877; --added-tint: #332b12;
  --shadow-lg: 0 8px 28px rgb(0 0 0 / .5);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 12px/1.5 var(--font-mono); }
button, input, select, textarea { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1 { font-size: 26px; line-height: 1.25; letter-spacing: -1px; font-weight: 500; }
h2 { font-size: 15px; font-weight: 600; letter-spacing: -.3px; }
h3 { font-size: 13px; font-weight: 600; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); }
.small { font-size: 11px; } .tiny { font-size: 10px; }
.prose { font-family: var(--font-inter); font-size: 14px; line-height: 1.55; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.r { text-align: right; } .nowrap { white-space: nowrap; }
.pos { color: var(--green); } .neg { color: var(--red); } .warn { color: var(--orange); }
.eyebrow { font-size: 9px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink-2); }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* preview strip */
.preview-strip { display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; padding: 6px 16px; background: var(--added-tint); color: var(--added); font-size: 11px; border-bottom: 1px solid color-mix(in srgb, var(--added) 22%, transparent); }
.preview-strip strong { font-weight: 600; letter-spacing: .6px; text-transform: uppercase; font-size: 10px; }
.preview-strip button { text-decoration: underline; text-underline-offset: 2px; color: inherit; }

/* shell */
.shell { display: flex; gap: 10px; padding: 10px; min-height: calc(100dvh - 31px); }
.sidebar { width: 236px; flex: none; position: sticky; top: 10px; height: calc(100dvh - 51px); display: flex; flex-direction: column; padding: 16px 10px 8px; overflow-y: auto; scrollbar-width: thin; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; font-size: 20px; letter-spacing: -1px; }
.brand svg { width: 24px; height: 24px; stroke: var(--accent); }
.company { margin: 16px 4px 14px; padding: 10px; border-radius: var(--r-control); background: var(--surface); box-shadow: var(--ring); }
.company strong { display: block; font-size: 13px; font-weight: 600; }
.company span { display: block; font-size: 10px; color: var(--ink-2); margin-top: 2px; }
.nav-label { font-size: 9px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink-3); padding: 0 10px; margin: 14px 0 5px; display: flex; justify-content: space-between; align-items: center; }
.sidebar nav { display: flex; flex-direction: column; gap: 1px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; color: var(--ink-2); font-size: 12px; min-height: 32px; }
.sidebar nav a:hover { background: var(--hover); }
.sidebar nav a.selected { background: var(--accent-tint); color: var(--accent-ink); }
.nav-count { margin-left: auto; border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 5px; font-size: 10px; background: var(--surface); color: var(--ink-2); }
.nav-count.hot { border-color: transparent; background: var(--accent); color: #fff; }
.nav-added { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--added); opacity: .7; }
.sidebar-bottom { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.side-btn { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; color: var(--ink-2); font-size: 11px; width: 100%; text-align: left; }
.side-btn:hover { background: var(--hover); }
.side-btn span.v { margin-left: auto; color: var(--ink-3); }

.window { flex: 1; min-width: 0; background: var(--page); border-radius: var(--r-window); box-shadow: var(--ring); display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: var(--surface); border-radius: var(--r-window) var(--r-window) 0 0; position: sticky; top: 0; z-index: 20; min-height: 54px; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--ink-2); min-width: 0; white-space: nowrap; overflow: hidden; }
.crumbs b { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.crumbs a:hover { color: var(--ink); }
.tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.menu-language { display: none; }
.menu-btn { display: none; width: 34px; height: 34px; border-radius: 8px; place-items: center; }
.seg { display: inline-flex; background: var(--canvas); border-radius: 8px; padding: 2px; gap: 2px; }
.seg button { padding: 4px 9px; border-radius: 6px; color: var(--ink-2); font-size: 11px; min-height: 26px; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--btn); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 32px; padding: 0 12px; border-radius: var(--r-control); background: var(--surface); box-shadow: var(--btn); font-size: 12px; white-space: nowrap; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--ink); color: var(--surface); box-shadow: none; }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); }
.btn.accent { background: var(--accent); color: #fff; box-shadow: none; }
.btn.quiet { box-shadow: none; background: none; color: var(--ink-2); }
.btn.quiet:hover { background: var(--hover); color: var(--ink); }
.btn.sm { min-height: 26px; padding: 0 9px; font-size: 11px; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.done { background: var(--green-tint); color: var(--green); box-shadow: none; }

.main { padding: 26px 30px 60px; max-width: 1480px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .sub { color: var(--ink-2); margin-top: 4px; font-size: 12px; max-width: 78ch; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* cards */
.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--card); position: relative; }
.card-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.card-h h2, .card-h h3 { margin-right: auto; }
.card-b { padding: 14px; }
.card-f { padding: 10px 14px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; color: var(--ink-2); font-size: 11px; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; } .push { margin-left: auto; }
.section-h { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 10px; }
.section-h h2 { font-size: 15px; }
.section-h .more { margin-left: auto; color: var(--accent-ink); font-size: 11px; }
.section-h .more:hover { text-decoration: underline; }

/* totals */
.stat { padding: 14px; display: flex; flex-direction: column; gap: 4px; min-height: 104px; }
.stat .k { color: var(--ink-2); font-size: 11px; display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 24px; letter-spacing: -1px; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .v small { font-size: 12px; color: var(--ink-2); letter-spacing: 0; margin-left: 3px; }
.stat .d { font-size: 11px; color: var(--ink-2); margin-top: auto; }
.stat .ask { position: absolute; top: 9px; right: 9px; }
a.stat:hover { box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-sm); }

/* ask affordance: one obvious way to ask the AI about this very thing. A labelled pill with a spark;
   "Întreabă AI" where there is room, "AI" alone inside the totals and on phones. */
.ask { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px 0 6px; border-radius: 999px; flex: none; white-space: nowrap;
  font-size: 11px; font-weight: 600; letter-spacing: .1px; line-height: 1; color: var(--accent-ink); background: var(--accent-tint);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 26%, transparent); transition: background .15s, color .15s, box-shadow .15s; }
.ask:hover, .ask:focus-visible { background: var(--accent); color: #fff; box-shadow: none; }
.ask svg { width: 14px; height: 14px; stroke: none; }
.ask svg .fill, .btn svg .fill { fill: currentColor; stroke: none; }
.stat .ask .w, .list .ask .w { display: none; }
.stat .ask { height: 22px; padding: 0 8px 0 5px; }
@media (max-width: 860px) { .ask .w { display: none; } }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 7px; border-radius: 5px; font-size: 10.5px; line-height: 1.7; white-space: nowrap; background: var(--canvas); color: var(--ink-2); }
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .8; }
.chip.plain::before { display: none; }
.chip.green { background: var(--green-tint); color: var(--green); } .chip.orange { background: var(--orange-tint); color: var(--orange); }
.chip.red { background: var(--red-tint); color: var(--red); } .chip.blue { background: var(--blue-tint); color: var(--blue); }
.chip.accent { background: var(--accent-tint); color: var(--accent-ink); }
.chip.added { background: var(--added-tint); color: var(--added); }
.added-note { display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; border-radius: var(--r-control); background: var(--added-tint); color: var(--added); font-size: 11px; margin-bottom: 14px; }
.who { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.av { width: 20px; height: 20px; border-radius: 7px; background: var(--accent-tint); color: var(--accent-ink); display: inline-grid; place-items: center; font-size: 10px; font-weight: 600; flex: none; }
.av.h { background: var(--canvas); color: var(--ink-2); }
.av.lg { width: 34px; height: 34px; border-radius: 11px; font-size: 14px; }

/* tables as tools */
.tbl-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.tbl-tools .search { position: relative; margin-left: auto; }
.tbl-tools .search input { height: 32px; width: 230px; max-width: 100%; border: 0; border-radius: 8px; background: var(--surface); box-shadow: var(--btn); padding: 0 10px 0 30px; font-size: 12px; }
.tbl-tools .search svg { position: absolute; left: 9px; top: 8px; color: var(--ink-3); }
.tbl-tools select { height: 30px; border: 0; border-radius: 8px; background: var(--surface); box-shadow: var(--btn); padding: 0 8px; font-size: 11px; }
.seg .n { color: var(--ink-3); margin-left: 4px; font-size: 10px; }
.tbl-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 12px; }
table.t th { text-align: left; font-weight: 400; font-size: 9.5px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--ink-2); padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--inset); white-space: nowrap; user-select: none; }
table.t th.sortable { cursor: pointer; } table.t th.sortable:hover { color: var(--ink); }
table.t th .arr { opacity: .9; margin-left: 3px; color: var(--accent-ink); }
table.t td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr.click { cursor: pointer; } table.t tbody tr.click:hover { background: var(--hover); }
table.t tbody tr.sel { background: var(--accent-tint); }
table.t td.r, table.t th.r { text-align: right; }
table.t td .sub { display: block; color: var(--ink-3); font-size: 10.5px; }
table.t.compact td { padding: 6px 12px; }
.tbl-foot { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 11px; flex-wrap: wrap; }
.tbl-foot .push { display: flex; gap: 14px; }
.empty { padding: 28px 14px; text-align: center; color: var(--ink-2); }

/* key/value, lists */
dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 12px; }
dl.kv dt { color: var(--ink-2); } dl.kv dd { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.list > li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 14px; border-bottom: 1px solid var(--line-soft); }
.list > li:last-child { border-bottom: 0; }
.list .t1 { font-size: 12px; } .list .t2 { font-size: 10.5px; color: var(--ink-2); margin-top: 1px; }
.list a.t1:hover { text-decoration: underline; }
.list .right { margin-left: auto; text-align: right; flex: none; }
/* dated rows (the legal module's Cabinet pages): the hour or the day first, a line for each day, the whole row opens its detail */
.list .when { width: 46px; flex: none; color: var(--ink-2); font-size: 11.5px; padding-top: 1px; }
.list > li.day { padding: 6px 14px; background: var(--inset); color: var(--ink-2); font-size: 9.5px; letter-spacing: 1.1px; text-transform: uppercase; }
.list > li[data-href] { cursor: pointer; } .list > li[data-href]:hover { background: var(--hover); }
@media (max-width: 860px) { .page-head .actions { max-width: 100%; } .page-head .actions .seg { flex-wrap: wrap; overflow: visible; } }
@media (max-width: 560px) { .list > li[data-href] { flex-wrap: wrap; row-gap: 4px; } .list > li[data-href] > .right { flex-basis: calc(100% - 56px); margin-left: 56px; display: flex; gap: 8px; align-items: center; text-align: left; } .list > li[data-href] > .right .t2 { margin-top: 0; } }
.bar { height: 6px; border-radius: 3px; background: var(--canvas); overflow: hidden; min-width: 60px; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.bar.green > i { background: var(--green); } .bar.orange > i { background: var(--orange); } .bar.red > i { background: var(--red); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 10.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.chart { width: 100%; display: block; overflow: visible; }
.chart text { font: 9.5px var(--font-mono); fill: var(--ink-2); }
.hint { font-size: 11px; color: var(--ink-2); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button, .tabs a { padding: 8px 12px; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs .on { color: var(--ink); border-bottom-color: var(--accent); }

/* approval cards */
.appr { padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; }
.appr .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--ink-2); font-size: 11px; }
.appr h3 { font-size: 13.5px; font-weight: 600; margin-top: 4px; }
.appr .what { font-family: var(--font-inter); font-size: 13px; color: var(--ink-2); margin-top: 3px; line-height: 1.5; }
.appr .thing { margin-top: 10px; border-radius: 8px; background: var(--inset); box-shadow: var(--ring); font-size: 11.5px; overflow: hidden; }
.appr .thing .ln { display: flex; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--line-soft); }
.appr .thing .ln:last-child { border-bottom: 0; }
.appr .thing .ln span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appr .thing .ln .num { margin-left: auto; }
.appr .thing .ln.more { color: var(--accent-ink); cursor: pointer; }
.appr .side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.appr .amt { font-size: 18px; letter-spacing: -.6px; }
.appr .acts { display: flex; gap: 6px; align-items: center; margin-top: auto; }
.appr.decided { opacity: .72; }
.appr.decided .thing { display: none; }

/* Shared overview approval preview: one desktop line, title + summary on phones. */
.appr-rows > .appr-row { align-items: center; gap: 14px; padding: 9px 0; }
.appr-row .appr-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appr-summary { flex: 0 1 62%; display: flex; align-items: center; gap: 10px; min-width: 0; }
.appr-row .appr-whom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appr-row .appr-age, .appr-amount { white-space: nowrap; }
.appr-amount { max-width: 25%; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.appr-actions { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.appr-actions .chip { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appr-full { overflow-wrap: anywhere; }
.appr-full .side { min-width: 0; }
.appr-full .acts { flex-wrap: wrap; justify-content: flex-end; }
.appr-full.decided .thing { display: block; }
.appr-full .full-action { white-space: pre-wrap; padding: 10px; max-height: 36dvh; overflow-y: auto; }
@media (max-width: 600px) {
  .appr-rows > .appr-row { flex-direction: column; align-items: stretch; gap: 3px; }
  .appr-summary { flex-basis: auto; gap: 5px; }
  .appr-row .appr-age, .appr-amount { font-size: 10px; }
  .appr-actions .btn { padding: 5px 7px; font-size: 10px; }
  .appr-actions a { max-width: 125px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .appr-actions .chip { max-width: 125px; font-size: 10px; }
  .appr-full { grid-template-columns: 1fr; }
}

/* sheet (row detail) and ask drawer */
.scrim { position: fixed; inset: 0; background: rgb(15 18 30 / .28); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .16s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet, .drawer { position: fixed; top: 0; right: 0; height: 100dvh; background: var(--page); box-shadow: var(--shadow-lg), var(--ring); z-index: 70; display: flex; flex-direction: column; transform: translateX(104%); transition: transform .2s ease; }
.sheet { width: min(620px, 100vw); } .drawer { width: min(460px, 100vw); z-index: 80; }
.sheet.on, .drawer.on { transform: none; }
.sheet-h { display: flex; gap: 10px; align-items: flex-start; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.sheet-h h2 { font-size: 17px; letter-spacing: -.5px; } .sheet-h .sub { color: var(--ink-2); font-size: 11.5px; margin-top: 2px; }
.sheet-b { padding: 16px 18px 40px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.x { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-2); flex: none; }
.x:hover { background: var(--hover); }
.rel-h { font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-2); margin: 8px 0 -6px; }
.bigv { font-size: 26px; letter-spacing: -1px; }

.drawer-h { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.drawer-b { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ctx { border-radius: var(--r-card); background: var(--accent-tint); padding: 10px 12px; font-size: 11.5px; }
.ctx .eyebrow { color: var(--accent-ink); }
.ctx strong { display: block; font-size: 13px; margin: 2px 0 6px; font-weight: 600; }
.ctx dl.kv { font-size: 11px; gap: 3px 12px; }
.msg { max-width: 92%; padding: 10px 12px; border-radius: 12px; font-family: var(--font-inter); font-size: 13.5px; line-height: 1.55; }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--surface); border-bottom-right-radius: 4px; }
.msg.it { align-self: flex-start; background: var(--surface); box-shadow: var(--card); border-bottom-left-radius: 4px; }
.msg.it p + p, .msg.it ul { margin-top: 8px; } .msg.it ul { list-style: disc; padding-left: 18px; } .msg.it b { font-weight: 600; }
.msg .src { display: block; margin-top: 8px; font: 10.5px var(--font-mono); color: var(--ink-3); }
.typing { align-self: flex-start; color: var(--ink-3); font-size: 11px; padding: 4px 6px; }
.sugg { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sugg button { text-align: left; padding: 7px 11px; border-radius: 10px; background: var(--surface); box-shadow: var(--btn); font-family: var(--font-inter); font-size: 13px; }
.sugg button:hover { background: var(--accent-tint); }
.composer { display: flex; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.composer input { flex: 1; min-width: 0; height: 38px; border: 0; border-radius: 10px; background: var(--canvas); padding: 0 12px; font: 14px var(--font-inter); }

/* popover (modules, about) */
.pop { position: fixed; z-index: 90; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.98); width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); overflow-y: auto; background: var(--surface); border-radius: var(--r-window); box-shadow: var(--shadow-lg), var(--ring); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.pop:not(.on) { visibility: hidden; }
/* embedded in the installation's shell: its menu and top bar, not ours */
.embed .sidebar, .embed .topbar { display: none; }
.embed .preview-strip { display: none !important; }
.embed .shell { padding: 0; gap: 0; min-height: 100dvh; }
.embed .window { border-radius: 0; box-shadow: none; }
.pop.on { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.pop-h { display: flex; gap: 10px; align-items: flex-start; padding: 16px 18px 10px; }
.pop-b { padding: 0 18px 18px; }
.modrow { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.modrow .nm { font-size: 12.5px; } .modrow .ds { font-size: 10.5px; color: var(--ink-2); }
.sw { width: 34px; height: 20px; border-radius: 10px; background: var(--hover-2); position: relative; flex: none; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: transform .15s; }
.sw.on { background: var(--accent); } .sw.on::after { transform: translateX(14px); }
.sw[disabled] { opacity: .45; cursor: default; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); background: var(--ink); color: var(--surface); padding: 9px 14px; border-radius: 10px; font-size: 12px; z-index: 100; opacity: 0; transition: .2s; pointer-events: none; max-width: calc(100vw - 24px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* cash-ahead bars */
.weeks { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 4px; align-items: end; height: 150px; }
.weeks .w { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 3px; cursor: pointer; position: relative; }
.weeks .w i { display: block; border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--accent) 55%, var(--surface)); min-height: 3px; }
.weeks .w:hover i, .weeks .w.sel i { background: var(--accent); }
.weeks .w.tight i { background: var(--orange); } .weeks .w.below i { background: var(--red); }
.weeks .w span { font-size: 9px; color: var(--ink-3); text-align: center; white-space: nowrap; overflow: hidden; }
.weeks .w.tight span { color: var(--orange); }
.weeks-line { position: relative; }
.weeks-line .thr { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--red); font-size: 9px; color: var(--red); padding-top: 1px; pointer-events: none; }

/* phone */
@media (max-width: 1180px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { padding: 0; gap: 0; }
  .window { border-radius: 0; box-shadow: none; }
  .topbar { border-radius: 0; padding: 8px 10px; gap: 6px; }
  .menu-btn { display: grid; flex: none; }
  .topbar-language { display: none; }
  .menu-language { display: flex; align-items: center; justify-content: space-between; padding: 10px; font-size: 12px; }
  .topbar .crumbs { flex: 1; flex-wrap: wrap; white-space: normal; overflow: visible; }
  .topbar .crumbs b, .topbar .crumbs a { overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
  .topbar .tools { flex: none; margin-left: 0; }
  .topbar .tools > .btn span.show-sm { display: inline !important; }
  .sidebar { position: fixed; z-index: 75; top: 0; left: 0; height: 100dvh; width: min(290px, 86vw); background: var(--page); box-shadow: var(--shadow-lg); transform: translateX(-104%); transition: transform .2s; }
  .sidebar.on { transform: none; }
  .sidebar nav a { min-height: 40px; font-size: 13px; }
  .main { padding: 16px 12px 70px; }
  h1 { font-size: 22px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .tools .hide-sm, .hide-sm { display: none !important; }
  .tbl-tools .search { margin-left: 0; width: 100%; } .tbl-tools .search input { width: 100%; height: 38px; font-size: 16px; }
  .seg { overflow-x: auto; max-width: 100%; } .seg button { min-height: 32px; }
  .btn { min-height: 38px; } .btn.sm { min-height: 32px; }
  /* tables turn into stacked cards */
  table.t.cards thead { display: none; }
  table.t.cards, table.t.cards tbody, table.t.cards tr, table.t.cards td { display: block; width: 100%; }
  table.t.cards tr { padding: 10px 12px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
  table.t.cards td { padding: 0; border: 0; text-align: left !important; }
  table.t.cards td.pri { grid-column: 1; font-size: 13px; } table.t.cards td.sec { grid-column: 2; grid-row: 1; text-align: right !important; font-size: 13px; }
  table.t.cards td:not(.pri):not(.sec) { grid-column: 1 / -1; font-size: 11px; color: var(--ink-2); display: flex; gap: 8px; }
  table.t.cards td:not(.pri):not(.sec)::before { content: attr(data-l); color: var(--ink-3); min-width: 92px; }
  table.t.cards td.nosm { display: none; }
  .appr { grid-template-columns: 1fr; } .appr .side { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .weeks { height: 120px; gap: 2px; } .weeks .w span { font-size: 8px; }
  .stat .v { font-size: 21px; }
  .sheet-b { padding: 14px 12px 60px; } .sheet-h { padding: 12px; }
}
@media (max-width: 420px) { .g4 { grid-template-columns: 1fr 1fr; gap: 8px; } .stat { padding: 11px; min-height: 92px; } .stat .v { font-size: 18px; } }
@media print { .sidebar, .topbar, .preview-strip { display: none; } }

/* width safety: grid and flex children may shrink */
.split > *, .appr > *, .stack > *, .grid > *, .tbl, .card { min-width: 0; }
.appr .thing { max-width: 100%; }
.tbl-tools select { max-width: 100%; }
.weeks-line .thr { background: none; text-shadow: 0 0 3px var(--surface), 0 0 3px var(--surface); }
@media (max-width: 860px) { .tbl-tools > * { max-width: 100%; } .page-head .actions { margin-left: 0; } .appr .meta { font-size: 10.5px; } }
.stat .k { padding-right: 46px; }
.stat .bar { min-width: 16px; } .stat { overflow: hidden; }

/* review fixes */
.sidebar { overflow: hidden; }
.side-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; margin: 0 -4px; padding: 0 4px; }
.sidebar nav a { padding: 5px 10px; min-height: 29px; }
.nav-label { margin: 10px 0 3px; }
.company { margin: 12px 4px 8px; }
.sidebar-bottom { margin-top: 0; padding-top: 8px; border-top: 1px solid var(--line); }
.side-btn { padding: 6px 10px; }
.show-sm, .sort-sm { display: none !important; }
dl.kv dd .who { white-space: normal; justify-content: flex-end; }
.preview-strip { padding: 4px 16px; font-size: 10.5px; }
.weeks-line .thr { color: var(--red); font-size: 9px; text-align: right; padding-right: 2px; }
.weeks .w span { letter-spacing: -.3px; }
.appr .meta > span:nth-child(n+3)::before { content: none; }
@media (max-width: 860px) {
  .show-sm { display: inline-flex !important; } .sort-sm { display: block !important; }
  .preview-strip span { display: none; }
  .weeks .w:nth-child(even) span { visibility: hidden; }
  table.t.cards td:empty { display: none; }
  .sheet { z-index: 78; }
}
@media (min-width: 861px) { .drawer.on ~ .sheet, .sheet.under { } }
.company span{white-space:normal} .nav-label{margin:8px 0 2px}

/* third review */
.appr .thing .ln span:first-child { white-space: normal; overflow: visible; }
.appr .meta { gap: 4px 10px; }
@media (max-width: 860px) {
  .tbl-tools .seg, .tabs { flex-wrap: wrap; overflow: visible; }
  .tabs { border-bottom: 0; gap: 4px; } .tabs button, .tabs a { border: 0; border-radius: 6px; background: var(--canvas); padding: 6px 10px; margin: 0; } .tabs .on { background: var(--accent-tint); color: var(--accent-ink); }
  .weeks .w:nth-child(even) span { visibility: visible; } .weeks .w span { font-size: 8px; letter-spacing: -.4px; overflow: visible; }
  .toast { bottom: auto; top: 10px; }
  table.t.cards td:not(.pri):not(.sec) { flex-wrap: wrap; } table.t.cards td:not(.pri):not(.sec)::before { flex: none; }
  dl.kv dd { overflow-wrap: break-word; }
}
@media (max-width: 860px) { table.t.cards td.nosm, table.t.cards td:empty { display: none !important; } }
/* Desktop breadcrumbs can shorten the company name. */
.crumbs a { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* rows that can be chosen, the page's own dialogs, the invoice viewer */
table.t th.chk, table.t td.chk { width: 34px; padding-right: 0; cursor: pointer; }
table.t td.chk input, .selall input { width: 15px; height: 15px; accent-color: var(--ink); vertical-align: middle; cursor: pointer; margin: 0; }
.sel-bar { display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; padding: 8px 12px; min-height: 44px; border-radius: 10px; background: var(--surface); box-shadow: var(--ring); font-size: 11.5px; }
.sel-bar .grow { flex: 1; min-width: 120px; }
.selall { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; white-space: nowrap; }
.pdf-acts { display: inline-flex; gap: 6px; align-items: center; }
.btn.ico { padding: 0 7px; }
.pop.wide { width: min(980px, calc(100vw - 24px)); height: calc(100dvh - 40px); display: flex; flex-direction: column; overflow: hidden; }
.pop-b.viewer { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.pop-b.viewer iframe { flex: 1; width: 100%; min-height: 320px; border: 0; border-radius: 8px; background: var(--inset); box-shadow: var(--ring); }
.paper { padding: 22px 20px; border-radius: 8px; background: var(--surface); box-shadow: 0 0 0 1px var(--line-strong); }
.paper .ttl { font-size: 17px; margin: 4px 0 2px; } .paper dl.kv { margin-top: 14px; } .paper dl.kv dd { white-space: nowrap; }
.pop-b.decide { display: flex; flex-direction: column; gap: 10px; outline: 0; }
.decide .what { font-family: var(--font-inter); font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.decide .thing { border-radius: 8px; background: var(--inset); box-shadow: var(--ring); font-size: 11.5px; max-height: 36dvh; overflow-y: auto; }
.decide .thing .ln { padding: 6px 10px; border-bottom: 1px solid var(--line-soft); overflow-wrap: anywhere; }
.decide .thing .ln:last-child { border-bottom: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; color: var(--ink-2); }
.field textarea { border: 0; border-radius: 8px; background: var(--inset); box-shadow: var(--ring); padding: 9px 10px; font-size: 13px; color: var(--ink); resize: vertical; }
.pop-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
@media (max-width: 860px) {
  table.t.cards td.chk { width: auto; }
  .field textarea { font-size: 16px; }
  .pop.wide { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .pop-acts .btn { flex: 1; }
}

/* Marketing: the same quiet cards, a week at a glance, readable channel drafts. */
.mk-head-actions, .mk-notice, .mk-section-head, .mk-card-actions, .mk-draft-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mk-head-actions { justify-content: flex-end; }
.mk-head-actions .seg { align-items: center; }
.mk-head-actions .seg span { padding: 0 8px; font-size: 11px; }
.mk-notice { color: var(--ink-2); font-size: 11px; margin: -6px 0 22px; }
.mk-notice > span { flex: 1; }
.mk-empty { padding: 48px 26px; text-align: center; }
.mk-empty h2 { margin: 16px 0 10px; font-size: 20px; }
.mk-empty p { max-width: 560px; margin: 0 auto 22px; color: var(--ink-2); }
.mk-empty-icon { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--accent-tint); color: var(--accent); }
.mk-empty-icon svg { width: 26px; height: 26px; }
.mk-stats { margin-bottom: 22px; }
.mk-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mk-day { min-height: 170px; border-left: 1px solid var(--line); padding: 10px; }
.mk-day:first-child { border: 0; }
.mk-day-head { display: flex; justify-content: space-between; gap: 4px; color: var(--ink-2); font-size: 10px; margin-bottom: 12px; }
.mk-day-head b { font-size: 13px; color: var(--ink); }
.mk-day.today { background: var(--accent-tint); }
.mk-day-items { display: flex; flex-direction: column; gap: 7px; }
.mk-slot { display: flex; gap: 5px; align-items: flex-start; font-size: 10px; padding: 8px 6px; border-radius: 6px; background: var(--inset); box-shadow: var(--ring); }
.mk-slot:hover { background: var(--hover); }
.mk-slot > span:nth-child(2) { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mk-slot i { flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); margin: 4px 0 0 auto; }
.mk-slot.approved i { background: var(--green); }
.mk-channel { display: inline-grid; place-items: center; flex: none; min-width: 22px; height: 22px; font-weight: 600; font-size: 11px; border-radius: 5px; background: var(--surface); box-shadow: var(--ring); color: var(--accent-ink); }
.mk-rest { color: var(--ink-3); font-size: 10px; }
.mk-section-head { justify-content: space-between; margin: 28px 0 12px; }
.mk-tabs { margin-bottom: 16px; }
.mk-drafts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.mk-draft { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.mk-draft.decided { opacity: .68; }
.mk-draft-top { font-size: 10px; gap: 8px; }
.mk-draft-top .muted { margin-left: auto; }
.mk-draft h3 { font-size: 15px; line-height: 1.45; }
.mk-snippet { color: var(--ink-2); flex: 1; font-size: 13px; }
.mk-card-actions { margin-top: 4px; }
.mk-card-actions .ask { margin-left: auto; }
.mk-assets li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.mk-assets li:last-child { border: 0; }
.mk-assets li > div { flex: 1; }
.mk-assets strong, .mk-assets span { display: block; }
.mk-assets strong { font-family: var(--font-inter); font-weight: 500; font-size: 14px; }
.mk-assets span { color: var(--ink-2); margin-top: 4px; font-size: 10px; }
.mk-sources { padding-top: 12px; color: var(--ink-2); }
.mk-sources li { margin-top: 6px; padding-left: 12px; border-left: 2px solid var(--line-strong); }
.mk-mode { margin: 18px 0; }
.mk-preview { border-radius: 10px; box-shadow: var(--ring); background: var(--surface); overflow: hidden; }
.mk-profile { display: flex; align-items: center; gap: 10px; padding: 16px; }
.mk-profile strong, .mk-profile span:not(.av) { display: block; }
.mk-profile div span { color: var(--ink-2); font-size: 10px; margin-top: 2px; }
.mk-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.mk-preview .mk-copy { padding: 0 18px 18px; }
.mk-preview .mk-copy h2, .mk-preview .mk-copy h3 { margin: 12px 0 8px; font-family: var(--font-inter); }
.mk-article { padding: 24px; }
.mk-article > h2 { font-family: var(--font-inter); font-size: 24px; line-height: 1.35; margin: 12px 0; }
.mk-article .mk-copy { padding: 16px 0 0; }
.mk-excerpt { font-family: var(--font-inter); color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.mk-image { aspect-ratio: 1.91; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; padding: 24px; text-align: center; background: var(--inset); color: var(--ink-2); border-block: 1px dashed var(--line-strong); }
.mk-image.portrait { aspect-ratio: 4/5; max-height: 380px; }
.mk-image span { font-family: var(--font-inter); max-width: 320px; font-size: 13px; }
.mk-image small { font-size: 10px; }
.mk-fold { margin: 0 16px 12px; padding-top: 8px; border-top: 1px dashed var(--line-strong); color: var(--ink-2); font-size: 11px; }
.mk-tags, .mk-link { padding: 0 18px 16px; color: var(--accent-ink); overflow-wrap: anywhere; }
.mk-inbox { display: flex; flex-direction: column; gap: 5px; padding: 16px; border-bottom: 1px solid var(--line); background: var(--inset); }
.mk-inbox > span:last-child { color: var(--ink-2); }
.mk-email { padding-top: 22px; }
.mk-preview-note { margin: 12px 0; }
.mk-approved { display: flex; align-items: flex-start; gap: 10px; padding: 12px; margin-bottom: 16px; border-radius: 8px; background: var(--green-tint); color: var(--green); font-family: var(--font-inter); font-size: 13px; }
.mk-approved small { display: block; font: 10px var(--font-mono); margin-top: 5px; }
.mk-edit { display: flex; flex-direction: column; gap: 16px; }
.mk-counter { font-size: 10px; margin: 14px 0; }
.mk-sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; position: sticky; bottom: -24px; background: var(--surface); border-top: 1px solid var(--line); padding: 14px 0; margin-top: 20px; }
.mk-decision-text { margin: 18px 0; white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; max-height: 60dvh; overflow-y: auto; background: var(--inset); border-radius: 8px; }
.mk-copy-fallback { width: 100%; height: 60dvh; padding: 16px; }
.mk-export-options { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
@media (max-width: 860px) {
  .mk-head { flex-direction: column; align-items: stretch; }
  .mk-head-actions { justify-content: space-between; }
  .mk-calendar { display: flex; flex-direction: column; }
  .mk-day { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; min-height: 60px; border-left: 0; border-top: 1px solid var(--line); padding: 12px; }
  .mk-day-head { flex-direction: column; justify-content: flex-start; margin: 0; }
  .mk-day-items { flex: 1; }
  .mk-slot { font-size: 11px; align-items: center; }
  .mk-drafts { grid-template-columns: minmax(0, 1fr); }
  .mk-assets li { align-items: flex-start; flex-direction: column; gap: 8px; }
  .mk-section-head .seg { flex-wrap: wrap; }
  .mk-sheet-actions { bottom: -18px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .mk-sheet-actions .btn { flex: 1; }
  .mk-article { padding: 18px; }
}

/* The native modal keeps the real interface inert. Its transparent hole shows
 * the live element, while all tour controls remain inside the viewport. */
dialog.business-tour { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: hidden; }
dialog.business-tour::backdrop { background: transparent; }
.business-tour.tour-no-target { background: rgb(15 18 30 / .58); }
.tour-spot { position: fixed; border-radius: 10px; outline: 2px solid var(--accent); box-shadow: 0 0 0 100vmax rgb(15 18 30 / .58); pointer-events: none; }
.tour-bubble { position: fixed; padding: 16px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-lg), var(--ring); overflow: auto; overscroll-behavior: contain; }
.tour-bubble h2 { font-size: 14px; line-height: 1.4; margin: 0 0 8px; overflow-wrap: anywhere; }
.tour-bubble #tour-text { font: 15px/1.5 var(--font-inter); margin: 0 0 14px; }
.tour-count { color: var(--ink-2); font-size: 11px; margin: 0 0 6px; }
.tour-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.tour-controls .btn { min-height: 44px; white-space: normal; }
.tour-controls .btn:first-child { margin-right: auto; }
.tour-controls .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tour-controls .btn:disabled { opacity: .45; cursor: default; }
