/* Dooey Revenue Engine: concept design system. One set of tokens, re-themed per business. */
:root {
  --brand: #E00B0B; --brand-ink: #B80909; --brand-soft: #FDEDED;
  --ink: #1C1C1C; --ink-2: #3A3633; --muted: #5E5955; --hair: #8F877F;
  --line: #E7E2DC; --line-2: #D6CFC7; --paper: #FFFFFF; --ground: #F7F4F0;
  --ok: #1D7238; --ok-soft: #E7F3EB; --warn: #855400; --warn-soft: #FBF1DC; --bad: #B80909; --bad-soft: #FDEDED;
  --display: 'Gloock', Georgia, serif; --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 14px; --r-s: 10px; --shadow: 0 1px 2px rgba(28, 28, 28, .05), 0 8px 24px -12px rgba(28, 28, 28, .12);
  --page: #ECE7E1; --page-ink: #1C1C1C;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --page: #141312; --page-ink: #F2EEE9; } }
:root[data-theme="dark"] { --page: #141312; --page-ink: #F2EEE9; }
[data-brand="kindler"] { --brand: #E43A22; --brand-ink: #B92D18; --brand-soft: #FDEEEA; --ink: #232323; --ground: #F5F5F4; --line: #E4E4E2; --line-2: #D2D2CF; --muted: #5C5C5A; --display: 'Montserrat', 'Inter', sans-serif; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--page-ink); font-family: var(--ui); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.proto { display: flex; flex-direction: column; height: 100dvh; min-height: 560px; }
.pbar { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); background: #1C1C1C; color: #fff; font-size: 12px; }
.pbar b { font-weight: 600; letter-spacing: .02em; }
.pbar .sp { flex: 1; }
.pseg { display: inline-flex; background: #33302D; border-radius: 8px; padding: 2px; }
.pseg button { border: 0; background: none; color: #D9D3CC; padding: 5px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; min-height: 28px; }
.pseg button[aria-pressed="true"] { background: #fff; color: #1C1C1C; }
.pseg.size { display: none; }
@media (min-width: 900px) { .pseg.size { display: inline-flex; } }
.stage { flex: 1; min-height: 0; display: flex; justify-content: center; }
.device { container-type: inline-size; container-name: app; flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--ground); color: var(--ink); font-size: 15px; line-height: 1.45; position: relative; overflow: hidden; }
@media (min-width: 900px) {
  .stage.phone { padding: 20px; align-items: center; }
  .stage.phone .device { flex: 0 0 390px; height: min(844px, 100%); border-radius: 28px; box-shadow: 0 0 0 8px #1C1C1C, 0 24px 60px -20px rgba(0, 0, 0, .45); }
}

/* shell */
.app { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.rail { display: none; }
.view { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.pad { padding: 16px max(16px, env(safe-area-inset-right)) 28px max(16px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 22px; }
.tabbar { flex: 0 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--paper); border-top: 1px solid var(--line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); }
.tabbar button { border: 0; background: none; min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--muted); border-radius: 10px; position: relative; }
.tabbar button[aria-current="page"] { color: var(--brand-ink); font-weight: 700; }
.tabbar .dot { position: absolute; top: 5px; left: calc(50% + 8px); min-width: 16px; height: 16px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
svg.i { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
svg.i.s { width: 18px; height: 18px; }

/* brand header (phone) */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px max(16px, env(safe-area-inset-right)) 14px max(16px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 14px; position: relative; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--brand); }
.hero img { width: 92px; height: 92px; object-fit: contain; flex: 0 0 auto; }
.hero .hi { font-size: 13px; color: var(--muted); }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.05; margin: 2px 0 4px; letter-spacing: -.01em; }
.top { background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 5; }
.top img { width: 44px; height: 44px; object-fit: contain; }
.top h1 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.1; margin: 0; flex: 1; min-width: 0; }
.top .back { border: 0; background: none; min-width: 44px; min-height: 44px; display: grid; place-items: center; margin-left: -10px; border-radius: 10px; }
.top .back span { display: none; }

/* type */
h2 { font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.2; margin: 0; letter-spacing: -.005em; }
.h2row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.h2row .more { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--brand-ink); background: none; border: 0; min-height: 32px; padding: 0 2px; }
.count { background: var(--brand); color: #fff; font: 700 12px/1 var(--ui); border-radius: 9px; padding: 3px 7px; transform: translateY(-2px); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow.b { color: var(--brand-ink); }
small, .sm { font-size: 13px; color: var(--muted); }
.lead { margin: 0; color: var(--muted); }
.m { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: 'tnum', 'lnum', 'cv11'; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.m .c { font-weight: 500; opacity: .7; }
.m .d { opacity: .78; }
.m.lg .c, .m.xl .c { font-size: .6em; vertical-align: .5em; margin-right: 2px; letter-spacing: 0; opacity: .62; }
.m.lg .d, .m.xl .d { font-size: .5em; vertical-align: .82em; margin-left: 2px; letter-spacing: 0; opacity: .62; }
.m.xl { font-size: 40px; line-height: 1; letter-spacing: -.035em; }
.m.lg { font-size: 28px; line-height: 1.05; letter-spacing: -.03em; }
.m.md { font-size: 19px; }
.unknown { color: var(--muted); font-weight: 500; font-style: normal; border-bottom: 1px dashed var(--hair); }

/* surfaces */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.card.p { padding: 16px; }
.card.ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.card.ink small, .card.ink .eyebrow { color: #CFC8C0; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.cols { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* rows */
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; }
.row:first-child { border-top: 0; }
button.row:hover, .setrow:hover { background: #FBF9F6; }
.row .when { flex: 0 0 52px; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.row .when b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.row .when small { font-size: 11px; }
.row .body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row .body b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .body small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .trail { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.row .chev { color: var(--hair); }
.day { padding: 14px 14px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); }
.day:first-child { border-top: 0; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 8px; border-radius: 7px; background: #F1EDE8; color: var(--ink-2); white-space: nowrap; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.plain::before { display: none; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: var(--r-s); border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 600; white-space: nowrap; transition: transform .08s ease, background .15s ease; }
.btn:active { transform: scale(.98); }
.btn.red { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.btn.dark { background: var(--ink); color: #fff; font-weight: 700; }
.btn.quiet { border-color: var(--line-2); font-weight: 500; }
.btn.link { border: 0; background: none; color: var(--brand-ink); padding: 0 4px; min-height: 40px; }
.btn.grow { flex: 1 1 0; }
.btn.sm { min-height: 40px; font-size: 14px; padding: 0 12px; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; }
:is(.btn, .row, .seg button, .tabbar button, .rail button, .qc, .setrow):focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* decisions */
.need { padding: 14px 14px 14px 16px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); }
.need:first-child { border-top: 0; }
.need .t { font-size: 17px; font-weight: 600; line-height: 1.25; }
.need .l { display: flex; gap: 12px; align-items: flex-start; }
.need .l > div { flex: 1; min-width: 0; }
.badge { flex: 0 0 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.badge.k { background: #F1EDE8; color: var(--ink); }

/* quick controls */
.qcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qc { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; font-weight: 600; text-align: left; line-height: 1.2; }
.qc svg { color: var(--muted); }
.qc.hot { border-color: var(--brand); color: var(--brand-ink); }
.qc.hot svg { color: var(--brand-ink); }
.status { display: flex; align-items: center; gap: 10px; }
.status .led { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.status.off .led { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.switch { margin-left: auto; width: 52px; height: 32px; border-radius: 16px; border: 0; background: var(--ok); position: relative; flex: 0 0 auto; }
.switch::after { content: ''; position: absolute; top: 3px; left: 23px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: left .15s ease; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch[aria-checked="false"] { background: #B9B1A8; }
.switch[aria-checked="false"]::after { left: 3px; }

/* segmented + filters */
.seg { display: flex; background: #EDE8E2; border-radius: 11px; padding: 3px; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.seg button { flex: 1 0 auto; border: 0; background: none; min-height: 38px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(28,28,28,.12); }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filters button { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--paper); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* kpis */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.kpi { background: var(--paper); padding: 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kpi small { line-height: 1.3; }
.bar2 { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; }
.bar2 i { background: var(--ink); } .bar2 i + i { background: #B5ABA1; }
.note { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }
.dash { border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 14px 16px; background: transparent; }
.kv { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); }
.kv:first-child { border-top: 0; }
.kv span:first-child { flex: 1; min-width: 0; }
.struck { text-decoration: line-through; color: var(--muted); }

/* forms */
label.f { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.in, textarea.in { width: 100%; border: 1.5px solid var(--line-2); border-radius: var(--r-s); padding: 12px; font-size: 16px; background: var(--paper); line-height: 1.4; }
.in:focus { outline: 0; border-color: var(--ink); }
textarea.in { resize: none; }
.suggest { display: flex; gap: 8px; flex-wrap: wrap; }
.suggest button { border: 1px solid var(--line-2); background: var(--paper); border-radius: 18px; min-height: 36px; padding: 0 12px; font-size: 13px; font-weight: 500; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.steps div { display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--muted); }
.steps div::before { content: ''; height: 5px; border-radius: 3px; background: var(--line-2); }
.steps .done { color: var(--ink); font-weight: 600; } .steps .done::before { background: var(--ink); }
.steps .now { color: var(--brand-ink); font-weight: 700; } .steps .now::before { background: var(--brand); }
.msg { background: var(--ground); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; white-space: pre-line; }

/* price table */
.pt { width: 100%; border-collapse: collapse; }
.pt th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pt td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pt tr:last-child td { border-bottom: 0; }
.pt .r { text-align: right; }
.wide { display: none; } .narrow { display: block; }
.verdict { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; font-size: 14px; }
.verdict.look { color: var(--bad); } .verdict.ok { color: var(--ok); } .verdict.miss { color: var(--warn); }
.prev { display: flex; gap: 10px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.prev:first-of-type { border-top: 0; }
.prev span:first-child { flex: 1; }

/* calendar */
.agenda .d { display: flex; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.agenda .d:first-child { border-top: 0; }
.agenda .dn { flex: 0 0 44px; text-align: center; }
.agenda .dn b { display: block; font: 600 22px/1 var(--ui); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.agenda .dn small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.agenda .today b { color: var(--brand-ink); }
.agenda .ev { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ev1 { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.3; padding: 7px 10px; border-radius: 8px; background: #F1EDE8; border-left: 0; }
.ev1 b { font-weight: 600; }
.ev1.booked { background: var(--ink); color: #fff; }
.ev1.stay { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.ev1.open { background: var(--brand-soft); color: var(--brand-ink); }
.ev1.local { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink-2); border-radius: 8px; }
.ev1.closed { background: repeating-linear-gradient(135deg, #EDE8E2 0 6px, #F7F4F0 6px 12px); color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.legend .ev1 { padding: 4px 8px; font-size: 12px; font-weight: 600; }
.month { display: none; }

/* settings list */
.setrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; }
.setrow:first-child { border-top: 0; }
.setrow .body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.setrow b { font-weight: 600; }
.setrow .val { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* feedback states */
.toast { position: absolute; left: 12px; right: 12px; bottom: 78px; z-index: 30; background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-weight: 500; box-shadow: var(--shadow); animation: up .18s ease; }
.toast button { margin-left: auto; background: none; border: 0; color: #fff; font-weight: 700; text-decoration: underline; min-height: 44px; padding: 0 6px; }
.scrim { position: absolute; inset: 0; background: rgba(28, 28, 28, .45); z-index: 40; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease; }
.sheet { background: var(--paper); width: 100%; max-width: 480px; border-radius: 20px 20px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; animation: up .2s ease; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet h3 { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 0; }
.sheet p { margin: 0; color: var(--muted); }
@keyframes up { from { transform: translateY(12px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sk { border-radius: 8px; background: linear-gradient(90deg, #EDE8E2 25%, #F6F2ED 37%, #EDE8E2 63%); background-size: 400% 100%; animation: sh 1.4s ease infinite; }
@keyframes sh { from { background-position: 100% 0; } to { background-position: 0 0; } }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.banner.err { background: var(--bad-soft); color: var(--bad); } .banner.warn { background: var(--warn-soft); color: var(--warn); } .banner.ok { background: var(--ok-soft); color: var(--ok); }
.banner b { font-weight: 700; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty svg { width: 28px; height: 28px; color: var(--hair); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- desktop (container width, so the phone frame stays phone) ---------- */
@container app (min-width: 860px) {
  .app { flex-direction: row; }
  .tabbar, .hero, .top img { display: none; }
  .rail { display: flex; flex-direction: column; gap: 4px; flex: 0 0 248px; background: var(--paper); border-right: 1px solid var(--line); padding: 20px 14px; overflow-y: auto; position: relative; }
  .rail::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--brand); }
  .rail .logo { width: 132px; height: 132px; object-fit: contain; align-self: center; margin: 6px 0 14px; }
  .rail .klogo { width: 190px; height: auto; align-self: center; margin: 10px 0 18px; }
  .rail button { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border: 0; background: none; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink-2); text-align: left; }
  .rail button:hover { background: var(--ground); }
  .rail button[aria-current="page"] { background: var(--ink); color: #fff; font-weight: 600; }
  .rail .n { margin-left: auto; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; border-radius: 9px; padding: 2px 7px; }
  .rail .foot { margin-top: auto; padding: 14px 12px 0; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
  .rail .grp { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 4px; }
  .pad { padding: 28px 36px 48px; gap: 26px; max-width: 1360px; width: 100%; margin: 0 auto; }
  .top { position: static; background: none; border: 0; padding: 28px 36px 0; max-width: 1360px; width: 100%; margin: 0 auto; gap: 14px; flex-wrap: wrap; }
  .top h1 { font-size: 34px; flex: 1 1 320px; }
  .top .back { display: inline-flex; grid-auto-flow: column; gap: 2px; align-items: center; margin-left: 0; padding: 0 14px 0 8px; min-height: 40px; border: 1px solid var(--line-2); background: var(--paper); font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
  .top .back span { display: inline; }
  .top + .pad { padding-top: 20px; }
  .dhead { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
  .dhead h1 { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
  .dhead .sp { flex: 1; }
  h2 { font-size: 22px; }
  .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
  .g8 { grid-column: span 8; } .g7 { grid-column: span 7; } .g6 { grid-column: span 6; } .g5 { grid-column: span 5; } .g4 { grid-column: span 4; } .g3 { grid-column: span 3; } .g12 { grid-column: span 12; }
  .col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
  .qcs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpis.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .need { flex-direction: row; align-items: center; padding: 16px 18px; }
  .need .l { flex: 1; min-width: 0; }
  .need .acts { flex: 0 0 auto; }
  .need .acts .btn { flex: 0 0 auto; }
  .wide { display: block; } table.wide { display: table; } .narrow { display: none; }
  .seg { display: inline-flex; align-self: flex-start; }
  .seg button { padding: 0 16px; }
  .month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); }
  .month .dow { padding: 10px 10px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
  .month .cell { min-height: 118px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .month .cell:nth-child(7n) { border-right: 0; }
  .month .cell .n { font: 600 13px/1 var(--ui); font-variant-numeric: tabular-nums; color: var(--ink-2); padding: 2px 0 4px; }
  .month .cell.out .n { color: var(--hair); }
  .month .cell.today .n { color: #fff; background: var(--brand); border-radius: 10px; align-self: flex-start; padding: 4px 7px; }
  .month .ev1 { font-size: 12px; padding: 4px 7px; border-radius: 6px; }
  .month .ev1 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .agenda.narrow { display: none; }
  .toast { left: auto; right: 28px; bottom: 28px; width: 380px; }
  .scrim { align-items: center; }
  .sheet { border-radius: 18px; }
  .sticky { position: sticky; top: 20px; }
}
@container app (min-width: 860px) and (max-width: 1180px) {
  .g8, .g7, .g5, .g4 { grid-column: span 12; }
  .qcs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* layout helpers */
.dhead, .donly, .wide-f { display: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.grid { display: flex; flex-direction: column; gap: 22px; }
.col { display: contents; }
.o0 { order: 0; } .o1 { order: 1; } .o2 { order: 2; } .o3 { order: 3; } .o4 { order: 4; } .o5 { order: 5; } .o6 { order: 6; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: space-between; }
.bar .seg { flex: 1 1 auto; }
.ktop img { width: 132px; height: auto; }
.khead h1 { font-family: var(--display); font-weight: 700; font-size: 26px; margin: 2px 0 0; letter-spacing: -.02em; }
[data-brand="kindler"] h2 { font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
[data-brand="kindler"] .dhead h1 { font-weight: 700; letter-spacing: -.03em; }
@container app (min-width: 860px) {
  .dhead { display: flex; } .donly { display: block; } .wide-f { display: flex; }
  .grid { display: grid; } .col { display: flex; }
  .o0, .o1, .o2, .o3, .o4, .o5, .o6 { order: 0; }
  .o-last { order: 2; }
  .narrow-h, .khead, .ktop { display: none; }
  .bar .seg { flex: 0 0 auto; }
  [data-brand="kindler"] h2 { font-size: 19px; }
}

/* round 2 */
.row .body b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.qcs { display: flex; overflow-x: auto; gap: 8px; scrollbar-width: none; margin: -6px -16px 0; padding: 0 16px; }
.qc { flex: 0 0 auto; min-height: 48px; padding: 0 14px 0 12px; border-radius: 24px; white-space: nowrap; }
.statpill { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 8px 10px 8px 18px; }
@container app (min-width: 860px) {
  .ponly { display: none; }
  .qcs { display: grid; overflow: visible; margin: 0; padding: 0; gap: 12px; }
  .qc { min-height: 56px; border-radius: 12px; white-space: normal; padding: 0 14px; }
}

.row .body small { white-space: normal; line-height: 1.35; }
.acts.ponly { display: flex; }
@container app (min-width: 860px) { .acts.ponly { display: none; } }

.oppg { display: flex; flex-direction: column; gap: 10px; }
.row[aria-current="true"] { background: #F3EEE8; }
@container app (min-width: 860px) {
  .oppg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .month .ev1 span { white-space: normal; }
  .month .cell { min-height: 112px; }
  .pt td .verdict { white-space: normal; max-width: 300px; }
}
@container app (max-width: 859px) { .row[aria-current="true"] { background: none; } }

.duo { display: flex; flex-direction: column; gap: 10px; }
.unknown { white-space: nowrap; }
@container app (min-width: 860px) {
  .duo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
  .pt td:first-child { min-width: 220px; }
  .pt td .verdict { max-width: none; }
}
