/* Halawi Bloom: application styles on top of the shared Halawi design system. Warm, calm and readable. */

/* ---------- warm palette ---------- */
html[data-theme="light"] {
  --bg: #fbf7f4; --bg-1: #ffffff; --bg-2: #ffffff; --bg-3: #f6efea; --bg-4: #efe6df;
  --glass: rgba(80,30,40,.022); --glass-2: rgba(80,30,40,.04); --glass-3: rgba(80,30,40,.07);
  --line: rgba(80,30,40,.09); --line-2: rgba(80,30,40,.14); --line-3: rgba(80,30,40,.22);
  --text: #221a1f; --text-2: #463a41; --muted: #74656d; --dim: #9a8b92;
  --accent: #8b35ec; --accent-bg: rgba(155,61,245,.08); --accent-line: rgba(155,61,245,.38);
  --card: #ffffff; --card-sh: 0 1px 2px rgba(80,30,40,.05), 0 8px 28px -18px rgba(80,30,40,.22);
  --warm: #fff1ea; --rose: #fdeef5; --lav: #f4ecff;
}
:root, html[data-theme="dark"] { --card: #16131b; --card-sh: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px -20px rgba(0,0,0,.8); --warm: rgba(234,106,90,.08); --rose: rgba(200,79,180,.09); --lav: rgba(155,61,245,.1); }
html[data-theme="dark"] { --bg: #111015; --bg-1: #15131a; --bg-2: #1a1720; --bg-3: #1f1c26; }
body { font-size: 15px; }
html[data-theme="light"] body::before { opacity: .5; }

/* ---------- shell ---------- */
.mobile-only { display: none !important; }
.content { padding: 0 0 48px; scroll-padding-top: 12px; }
.content > .view-host { max-width: 1240px; margin: 0 auto; }
.page { padding: 26px 28px 56px; }
.scrim { display: none; }
.bottomnav { display: none; }
#print-host { display: none; }
.modal--lg { max-width: 780px; }
.tb-logo { display: none; align-items: center; gap: 8px; color: var(--text); font: 600 16px var(--f-ui); text-decoration: none !important; }
.tb-logo .sb-mark { width: 28px; height: 28px; }
.sb-cta.btn--block { margin: 0 10px 8px; width: calc(100% - 20px); }
.sb-link { font-size: 14px; padding: 9px 10px; }
.sb-legal { flex-wrap: wrap; row-gap: 4px; }
.sb-proj .av, .tb-prof .av, .pcard .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c, var(--violet)); color: #fff; font: 600 13px var(--f-ui); flex: none; }
.tb-prof { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 3px; border-radius: 20px; border: 1px solid var(--line); background: var(--glass); cursor: pointer; font: 500 13px var(--f-ui); color: var(--text-2); max-width: 180px; }
.tb-prof span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-prof:hover { border-color: var(--line-2); }
.banner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.boot { background: var(--bg); }

/* ---------- buttons and inputs ---------- */
.btn { height: 38px; font-size: 14px; border-radius: 10px; }
.btn--sm { height: 32px; font-size: 13px; }
.btn--lg { height: 46px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.btn--xl { height: 54px; padding: 0 24px; font-size: 16px; border-radius: 14px; gap: 9px; }
.btn--xl .ic { width: 19px; height: 19px; }
.btn--block { width: 100%; justify-content: center; }
.btn--danger-text { color: #c62f37 !important; }
html[data-theme="dark"] .btn--danger-text { color: #ff8d92 !important; }
.btn--warnish { filter: saturate(.8); }
.input { height: 40px; font-size: 15px; border-radius: 10px; }
.input--lg { height: 48px; font-size: 16px; border-radius: 12px; }
.input--sm { height: 32px; font-size: 13px; }
textarea.input { font-size: 15px; }
.field-l { font-size: 13.5px; }
.field-h { font-size: 12.5px; color: var(--muted); }
.field--full { grid-column: 1 / -1; }
.form-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-bottom: 14px; }
.form-2 .field { margin: 0; }
.field { margin-bottom: 14px; }
.switch { height: auto; min-height: 40px; align-items: flex-start; padding: 6px 0; }
.switch span { margin-top: 2px; }
.switch em { display: flex; flex-direction: column; font-size: 14px; }
.switch em b { font-weight: 500; font-family: var(--f-ui); color: var(--text); }
.switch em small { color: var(--muted); font-size: 12.5px; }
.switch.sm { min-height: 32px; padding: 0; align-items: center; } .switch.sm span { margin-top: 0; } .switch.sm em { font-size: 13px; }
.search-in .ic { left: 12px; width: 16px; height: 16px; }
.search-in .input { padding-left: 36px; }
.search-in.big .input { height: 52px; font-size: 16px; border-radius: 14px; }
.search-in.big .ic { left: 15px; width: 18px; height: 18px; }
.search-in.big .input { padding-left: 42px; }
.seg button { padding: 7px 13px; font-size: 13.5px; }
.seg button.on { background: var(--bg-1); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.nowrap-row { flex-wrap: nowrap; }
.nowrap-row .input { min-width: 0; }
.row { gap: 10px; }
.sm { font-size: 13px; }
.lede { font-size: 16px; color: var(--text-2); margin: 6px 0 0; line-height: 1.55; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font: 500 14px var(--f-ui); margin-bottom: 14px; }
.back:hover { color: var(--text); text-decoration: none; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 30px 0; }
.loading .ic { animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.warn-t { color: #a86a0c !important; } html[data-theme="dark"] .warn-t { color: #f2b85e !important; }
.callout--ok { border-color: rgba(63,182,139,.4); background: rgba(63,182,139,.07); } .callout--ok > .ic { color: var(--ok); }
.callout { margin-bottom: 14px; }
.callout p { font-size: 14px; }
.callout ul { margin: 6px 0 0; padding-left: 18px; }
.callout .blist { padding-left: 0; }
.radio-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; cursor: pointer; }
.radio-row:has(input:checked) { border-color: var(--accent-line); background: var(--accent-bg); }
.radio-row input { margin-top: 4px; accent-color: var(--violet); }
.radio-row span { display: flex; flex-direction: column; }
.radio-row small { color: var(--muted); font-size: 12.5px; }
.ack { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; cursor: pointer; padding: 14px; border-radius: 12px; border: 1px solid var(--accent-line); background: var(--accent-bg); font-size: 14px; }
.ack input { margin-top: 3px; flex: none; width: 20px; height: 20px; }
.ack a { color: var(--accent); text-decoration: underline; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kp { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--card-sh); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kp-l { font: 500 12px/1.2 var(--f-ui); color: var(--muted); }
.kp-v { font: 600 24px/1.15 var(--f-ui); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpis--sm { margin: 10px 0 14px; } .kpis--sm .kp { padding: 10px; box-shadow: none; } .kpis--sm .kp-v { font-size: 18px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 18px; text-align: center; color: var(--muted); }
.empty > .ic { width: 34px; height: 34px; color: var(--accent); opacity: .8; }
.empty h3 { color: var(--text); font-size: 17px; }
.empty p { margin: 0; max-width: 460px; }
.soft-empty { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--warm); }
.soft-empty > .ic { width: 22px; height: 22px; color: var(--coral); margin-top: 2px; }
.soft-empty.ok { background: rgba(63,182,139,.08); } .soft-empty.ok > .ic { color: var(--ok); }
.soft-empty p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.blist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.blist li { position: relative; padding-left: 20px; line-height: 1.5; }
.blist li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .7; }
.blist.ok li::before { background: var(--ok); } .blist.warn li::before { background: var(--warn); } .blist.bad li::before { background: var(--bad); } .blist.no li::before { background: var(--coral); border-radius: 2px; }
.badge { height: 24px; font-size: 12px; }
.chip { height: 28px; font-size: 13px; border-radius: 20px; padding: 0 11px; text-decoration: none !important; }
a.chip:hover { border-color: var(--accent-line); color: var(--text); }

/* ---------- page header and cards ---------- */
.page-hd h1 { font-size: 28px; }
.page-hd p { font-size: 15px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: var(--card-sh); margin-bottom: 16px; min-width: 0; }
.card-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-hd h2 { font-size: 17px; display: flex; align-items: center; gap: 9px; }
.card-hd h2 .ic { width: 19px; height: 19px; color: var(--accent); }
.card-hd > :last-child:not(h2) { margin-left: auto; }
.sec-t { font-size: 17px; margin: 22px 0 12px; }
.sub-t { font-size: 14.5px; margin: 16px 0 8px; color: var(--text-2); }
.cols2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: flex-end; }
.filters .search-in { flex: 1 1 320px; }
.filters > select.input { flex: 0 1 200px; width: auto; height: 52px; border-radius: 14px; }
.filters .field { margin: 0; min-width: 220px; }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; padding: 28px; border-radius: 24px; margin-bottom: 18px; background: linear-gradient(130deg, var(--lav), var(--rose) 55%, var(--warm)); border: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(200,79,180,.16), transparent 70%); pointer-events: none; }
.hero h1 { font-size: 34px; line-height: 1.15; margin-top: 8px; }
.hero p { font-size: 16.5px; color: var(--text-2); max-width: 560px; margin: 10px 0 0; line-height: 1.55; }
.hero-acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-side { display: flex; flex-direction: column; gap: 10px; justify-content: center; position: relative; z-index: 1; }
.hs-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--bg-1) 75%, transparent); border: 1px solid var(--line); }
.hs-n { font: 600 24px/1 var(--f-ui); min-width: 34px; text-align: center; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hs-row span:last-child { color: var(--text-2); font-size: 14px; }
.sample-note .acts .btn { white-space: nowrap; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.up-row, .ev-row, .pcard, .pm { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; color: var(--text); text-decoration: none !important; border: 1px solid transparent; min-width: 0; }
a.up-row:hover, a.ev-row:hover, a.pcard:hover, a.pm:hover { background: var(--glass-2); border-color: var(--line); }
.up-row + .up-row, .ev-row + .ev-row { margin-top: 2px; }
.up-row .grow, .ev-row .grow, .pcard .grow, .pm .grow { min-width: 0; }
.up-row b, .ev-row b, .pcard b, .pm b { display: block; font: 500 15px/1.3 var(--f-ui); }
.up-row small, .ev-row small, .pcard small, .pm small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.up-d { width: 50px; height: 54px; border-radius: 12px; background: var(--accent-bg); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.up-d b { font: 600 20px/1 var(--f-ui) !important; color: var(--accent); }
.up-d small { font-size: 11.5px !important; text-transform: uppercase; letter-spacing: .06em; margin: 2px 0 0 !important; }
.count { text-align: center; flex: none; } .count b { font: 600 20px/1 var(--f-ui) !important; } .count small { margin: 0 !important; }
.ev-ic, .tc-ic, .td-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--accent-bg); color: var(--accent); }
.ev-ic .ic, .tc-ic .ic { width: 20px; height: 20px; }
.ev-bigday { background: rgba(200,79,180,.12); color: var(--magenta); } .ev-sun { background: rgba(232,163,61,.14); color: #c07a12; } .ev-travel { background: rgba(123,147,255,.14); color: #4a63d8; } .ev-other { background: var(--glass-3); color: var(--muted); }
html[data-theme="dark"] .ev-sun { color: #f2b85e; } html[data-theme="dark"] .ev-travel { color: #9eb0ff; }
.cat-laser, .cat-tightening { background: rgba(155,61,245,.11); color: var(--violet); }
.cat-rejuvenation, .cat-acne { background: rgba(63,182,139,.12); color: #1d8a61; }
.cat-injectables, .cat-semi { background: rgba(200,79,180,.12); color: var(--magenta); }
.cat-hair, .cat-smile { background: rgba(123,147,255,.13); color: #4a63d8; }
.cat-body, .cat-surgical { background: rgba(234,106,90,.12); color: var(--coral); }
.cat-pigmentation, .cat-other { background: rgba(232,163,61,.14); color: #b06f0d; }
html[data-theme="dark"] .cat-rejuvenation, html[data-theme="dark"] .cat-acne { color: #5fd3a8; } html[data-theme="dark"] .cat-hair, html[data-theme="dark"] .cat-smile { color: #9eb0ff; } html[data-theme="dark"] .cat-pigmentation, html[data-theme="dark"] .cat-other { color: #f2b85e; }
.plan-mini, .plist { display: flex; flex-direction: column; gap: 4px; }
.pm .bar, .pcard .bar { margin: 8px 0 2px; max-width: 320px; }
.pcard--sm { padding: 10px; }
.pcard.on { border-color: var(--accent-line); background: var(--accent-bg); }
.pcard > .ic { color: var(--dim); }
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.quick a { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: var(--glass-2); color: var(--text); font: 500 14px/1.3 var(--f-ui); text-decoration: none !important; border: 1px solid var(--line); }
.quick a:hover { border-color: var(--accent-line); }
.quick .ic { width: 22px; height: 22px; color: var(--accent); }

/* checklists */
.cgroup { padding: 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.cgroup + .cgroup { margin-top: 10px; }
.cg-hd { display: flex; align-items: flex-start; gap: 12px; }
.cg-hd > div { flex: 1; min-width: 0; }
.cg-hd b { display: block; font: 500 15px/1.3 var(--f-ui); }
.cg-hd small { color: var(--muted); font-size: 13px; }
.cg-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--accent-bg); color: var(--accent); }
.cg-after .cg-ic { background: rgba(200,79,180,.12); color: var(--magenta); }
.cg-today { border-color: var(--accent-line); background: var(--accent-bg); }
.cg-today .cg-ic { background: var(--grad); color: #fff; }
.checks { list-style: none; margin: 10px 0 0; padding: 0 0 0 44px; display: flex; flex-direction: column; gap: 4px; }
.checks label, .check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 7px 0; font-size: 14.5px; line-height: 1.45; }
.checks input, .check input { width: 22px; height: 22px; margin: 0; flex: none; }
.checks small { display: block; color: var(--dim); font-size: 12.5px; margin-top: 1px; }
.checks li.done span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-3); }
div.checks { padding: 0; margin: 0; }

/* conflicts */
.clist { display: flex; flex-direction: column; gap: 10px; }
.conf { display: flex; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); align-items: flex-start; }
.conf > .ic { width: 20px; height: 20px; margin-top: 1px; }
.conf > div { min-width: 0; flex: 1; }
.conf b { display: block; font: 500 15px/1.3 var(--f-ui); }
.conf-when { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.conf p { margin: 6px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.conf-sug { font-size: 13.5px !important; }
.conf .lnk { margin-top: 8px; font-size: 13.5px; }
.conf--bad { border-color: rgba(239,91,98,.4); background: rgba(239,91,98,.06); } .conf--bad > .ic { color: var(--bad); }
.conf--warn { border-color: rgba(232,163,61,.4); background: rgba(232,163,61,.06); } .conf--warn > .ic { color: var(--warn); }
.conf--info > .ic { color: var(--info); }

/* ---------- explore ---------- */
.cat-chips, .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip-b { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--card); color: var(--text-2); font: 500 14px var(--f-ui); cursor: pointer; }
.chip-b .ic { width: 16px; height: 16px; }
.chip-b:hover { border-color: var(--line-3); color: var(--text); }
.chip-b.on { background: var(--accent-bg); border-color: var(--accent-line); color: var(--text); }
.chip-b.on .ic { color: var(--accent); }
.res-hd { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tcard { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--card-sh); color: var(--text); text-decoration: none !important; transition: border-color .15s, transform .15s; min-width: 0; }
.tcard:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.tc-top { display: flex; align-items: center; gap: 10px; }
.tc-cat { font: 500 12.5px var(--f-ui); color: var(--muted); }
.tc-saved { margin-left: auto; color: var(--accent); }
.tcard h3 { font-size: 17px; line-height: 1.3; }
.tcard p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.5; flex: 1; }
.tc-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

/* treatment detail */
.td-hd { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; flex-wrap: wrap; }
.td-hd .grow { min-width: 240px; }
.td-hd h1 { font-size: 30px; line-height: 1.15; margin-top: 6px; }
.td-hd .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.td-ic { width: 56px; height: 56px; border-radius: 16px; }
.td-ic .ic { width: 26px; height: 26px; }
.aka { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.fact { padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fact > span { display: flex; align-items: center; gap: 6px; color: var(--muted); font: 500 12.5px var(--f-ui); }
.fact > span .ic { width: 15px; height: 15px; }
.fact b { font: 600 16px/1.3 var(--f-ui); }
.fact small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.pain { display: inline-flex; gap: 4px; vertical-align: middle; }
.pain i { width: 12px; height: 12px; border-radius: 50%; background: var(--glass-3); border: 1px solid var(--line-2); }
.pain i.on { background: var(--grad); border-color: transparent; }
.td-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs { margin-bottom: 16px; }
.tab { font-size: 14.5px; padding: 12px 14px; }
.tcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.tbox { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--card-sh); }
.tbox h3 { font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.tbox p { margin: 0 0 10px; line-height: 1.6; color: var(--text-2); } .tbox p:last-child { margin-bottom: 0; }
.tbox--warn { background: color-mix(in srgb, var(--warn) 6%, var(--card)); border-color: rgba(232,163,61,.35); }
.tbox--bad { border-color: rgba(239,91,98,.4); } .tbox--bad h3 .ic { color: var(--bad); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.steps li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); line-height: 1.5; }
.steps li:first-child { border-top: 0; }
.steps .when { font: 500 13.5px/1.4 var(--f-ui); color: var(--accent); }
ol.steps { counter-reset: s; }
ol.steps li { display: block; padding-left: 40px; position: relative; counter-increment: s; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 11px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-bg); color: var(--accent); display: grid; place-items: center; font: 600 13px var(--f-ui); }
.kv { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: 14px; } .kv dd { margin: 0; font-size: 14.5px; }
.qlist { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; line-height: 1.5; }
.srcs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.srcs li { display: flex; flex-direction: column; gap: 2px; }
.srcs a { display: inline-flex; gap: 7px; align-items: flex-start; font-weight: 500; }
.srcs a .ic { margin-top: 3px; width: 14px; height: 14px; }
.srcs small { color: var(--dim); padding-left: 21px; }
.med-note { margin: 26px 0 0; font-size: 12px; color: var(--dim); text-align: center; }
.med-note a { color: var(--muted); text-decoration: underline; }
.qpick { display: flex; flex-direction: column; gap: 2px; }
.stars { display: inline-flex; gap: 2px; color: var(--line-3); }
.stars i, .stars button { color: var(--line-3); display: inline-grid; }
.stars button { border: 0; background: none; padding: 4px; cursor: pointer; border-radius: 8px; }
.stars button .ic { width: 28px; height: 28px; }
.stars .on, .stars .on .ic { color: #e8a33d; fill: #e8a33d; }

/* ---------- wizard and plans ---------- */
.wiz-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.wiz-form { padding: 22px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper output { min-width: 48px; text-align: center; font: 600 22px var(--f-ui); }
.stepper .btn { width: 48px; padding: 0; justify-content: center; }
details.more { margin: 4px 0 18px; border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; }
details.more summary { cursor: pointer; padding: 14px 0; font: 500 14.5px var(--f-ui); display: flex; align-items: center; gap: 8px; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl li { display: grid; grid-template-columns: 82px 30px minmax(0, 1fr); gap: 10px; padding: 8px 0; align-items: start; position: relative; }
.tl li::after { content: ''; position: absolute; left: 106px; top: 36px; bottom: -6px; width: 2px; background: var(--line); }
.tl li:last-child::after { display: none; }
.tl-d { font: 500 13px/1.3 var(--f-ui); color: var(--muted); padding-top: 6px; text-align: right; }
.tl-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-3); color: var(--muted); position: relative; z-index: 1; }
.tl-ic .ic { width: 15px; height: 15px; }
.tl li b { display: block; font: 500 14.5px/1.35 var(--f-ui); padding-top: 5px; }
.tl li small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.tl-session .tl-ic { background: var(--grad); color: #fff; }
.tl-prep .tl-ic { background: var(--accent-bg); color: var(--accent); }
.tl-followup .tl-ic, .tl-course .tl-ic { background: rgba(123,147,255,.14); color: var(--info); }
.tl-ready .tl-ic { background: rgba(63,182,139,.14); color: var(--ok); }
.tl-safe .tl-ic { background: rgba(234,106,90,.13); color: var(--coral); }
.tl .is-done { opacity: .6; }
.sess { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.sess-row { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); flex-wrap: wrap; }
.sess-row.done { background: rgba(63,182,139,.06); border-color: rgba(63,182,139,.3); }
.sess-done { position: relative; cursor: pointer; flex: none; }
.sess-done input { position: absolute; opacity: 0; inset: 0; }
.sess-done span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-3); font: 600 15px var(--f-ui); color: var(--muted); }
.sess-done input:checked + span { background: var(--ok); border-color: var(--ok); color: #fff; }
.sess-done input:focus-visible + span { box-shadow: var(--focus); }
.sess-f { display: grid; grid-template-columns: minmax(140px, 1.3fr) minmax(100px, 1fr) minmax(90px, 1fr); gap: 8px; flex: 1 1 340px; min-width: 0; }
.sess-a { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sess-a small { color: var(--muted); font-size: 12.5px; min-width: 70px; }
.bw { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.bw-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); border-left: 4px solid var(--line-3); flex-wrap: wrap; }
.bw-row .grow { min-width: 200px; }
.bw-row b { font: 500 15px var(--f-ui); color: var(--text); }
.bw-row small { display: block; font-size: 13.5px; color: var(--text-2); margin-top: 2px; line-height: 1.45; }
.bw-row small.muted { color: var(--muted); font-size: 12.5px; }
.bw--ok { border-left-color: var(--ok); } .bw--warn { border-left-color: var(--warn); } .bw--bad { border-left-color: var(--bad); opacity: .85; }
.kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.kind { cursor: pointer; }
.kind input { position: absolute; opacity: 0; }
.kind span { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--line-2); height: 100%; }
.kind .ic { grid-row: span 2; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.kind b { font: 500 14.5px var(--f-ui); } .kind small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.kind input:checked + span { border-color: var(--accent-line); background: var(--accent-bg); }
.kind input:focus-visible + span { box-shadow: var(--focus); }

/* ---------- calendar ---------- */
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-t { font-size: 20px; margin-left: 8px; }
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.cal-wrap--one { grid-template-columns: minmax(0, 1fr); }
.cal-main { padding: 14px; }
.cal-dow, .cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow span { text-align: center; font: 500 12.5px var(--f-ui); color: var(--muted); padding: 6px 0; }
.cal-c { min-height: 92px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); padding: 6px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; text-align: left; min-width: 0; color: var(--text); }
.cal-c:hover { border-color: var(--line-3); }
.cal-c.out { opacity: .45; }
.cal-c.today .cal-n { background: var(--grad); color: #fff; }
.cal-c.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.cal-c.has-ev { background: color-mix(in srgb, var(--magenta) 7%, var(--glass)); }
.cal-n { font: 500 13px/1 var(--f-ui); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.cal-ps { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-ps small { font-size: 11px; color: var(--muted); }
.cal-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.cal-ps .cal-dot { width: auto; height: auto; border-radius: 6px; padding: 2px 6px; font-style: normal; color: #fff; font-size: 11px; line-height: 1.35; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-ps .cal-dot em { font-style: normal; }
.cal-ps .cal-dot--after { width: 18px; height: 5px; padding: 0; }
.cal-dot--session { background: var(--violet); } .cal-dot--prep { background: #a77de6; } .cal-dot--after { background: #e59bc9; } .cal-dot--followup, .cal-dot--course { background: var(--info); } .cal-dot--ready { background: var(--ok); } .cal-dot--safe { background: var(--coral); } .cal-dot--event, .cal-dot--eventspan { background: var(--magenta); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-w { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-wd { border: 1px solid var(--line); border-radius: 14px; padding: 8px; min-height: 240px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cal-wd.today { border-color: var(--accent-line); background: var(--accent-bg); }
.cal-wh { border: 0; background: none; display: flex; align-items: baseline; gap: 6px; cursor: pointer; padding: 2px; color: var(--text); }
.cal-wh b { font: 500 12.5px var(--f-ui); color: var(--muted); } .cal-wh span { font: 600 18px var(--f-ui); }
.cal-wl { display: flex; flex-direction: column; gap: 4px; }
.cal-p { display: flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 8px; font-size: 12px; line-height: 1.3; background: var(--glass-2); color: var(--text); text-decoration: none !important; min-width: 0; }
.cal-p span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-p .ic { width: 12px; height: 12px; }
.cal-p--session { background: var(--violet); color: #fff; } .cal-p--event, .cal-p--eventspan { background: var(--magenta); color: #fff; } .cal-p--prep { background: var(--accent-bg); } .cal-p--after { background: rgba(200,79,180,.1); } .cal-p--ready { background: rgba(63,182,139,.12); } .cal-p--safe { background: rgba(234,106,90,.12); } .cal-p--followup, .cal-p--course { background: rgba(123,147,255,.14); }
.cal-p.is-done, .ag-i.is-done { opacity: .55; }
.cal-day h2 { font-size: 16px; }
.agenda { display: flex; flex-direction: column; gap: 14px; }
.ag-d { display: flex; flex-direction: column; gap: 4px; }
.ag-h { display: flex; align-items: baseline; gap: 10px; padding: 0 4px 4px; border-bottom: 1px solid var(--line); }
.ag-h b { font: 600 15px var(--f-ui); } .ag-h small { color: var(--muted); }
.ag-d.today .ag-h b { color: var(--accent); }
.ag-i { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--text); text-decoration: none !important; min-width: 0; flex-wrap: wrap; }
.ag-i:hover { background: var(--glass-2); }
.ag-i .grow { min-width: 160px; }
.ag-i b { display: block; font: 500 14.5px/1.35 var(--f-ui); }
.ag-i small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.ag-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--glass-3); color: var(--muted); flex: none; }
.ag-i--session .ag-ic { background: var(--grad); color: #fff; } .ag-i--event .ag-ic { background: var(--magenta); color: #fff; } .ag-i--prep .ag-ic { background: var(--accent-bg); color: var(--accent); } .ag-i--ready .ag-ic { background: rgba(63,182,139,.14); color: var(--ok); } .ag-i--safe .ag-ic { background: rgba(234,106,90,.13); color: var(--coral); } .ag-i--followup .ag-ic, .ag-i--course .ag-ic { background: rgba(123,147,255,.14); color: var(--info); }
.ag-aft { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 4px 10px; }
.ag-aft .ic { color: var(--magenta); width: 14px; height: 14px; }

/* ---------- journal and compare ---------- */
.jlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.jcard { margin: 0; }
.jc-hd { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.jc-hd h3 { font-size: 17px; margin-top: 4px; cursor: pointer; }
.jc-ph { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 10px; }
.jc-ph figure { margin: 0; flex: none; }
.jc-ph figcaption { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 3px; text-transform: capitalize; }
img.thumb { width: 92px; height: 110px; object-fit: cover; border-radius: 10px; display: block; background: var(--glass-3); }
img.missing { opacity: .3; }
.jcard p { margin: 0 0 10px; color: var(--text-2); line-height: 1.55; }
.jcard .kv { font-size: 13.5px; }
.jphotos { display: flex; gap: 10px; flex-wrap: wrap; }
.jp { position: relative; display: flex; flex-direction: column; gap: 6px; width: 104px; }
.jp img.thumb { width: 104px; height: 120px; }
.jp .icon-btn { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.55); color: #fff; }
.drop { position: relative; display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 14px; border: 2px dashed var(--line-2); margin-top: 10px; cursor: pointer; }
.drop.over { border-color: var(--accent); background: var(--accent-bg); }
.drop > .ic { width: 26px; height: 26px; color: var(--accent); }
.drop small { display: block; color: var(--muted); font-size: 12.5px; }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.cmp { position: relative; max-width: 720px; margin: 0 auto; border-radius: 18px; overflow: hidden; background: var(--glass-3); aspect-ratio: 4 / 5; user-select: none; touch-action: pan-y; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp-a { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.cmp-h { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.4); pointer-events: none; }
.cmp-h i { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; color: #222; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.cmp-in { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.cmp-l, .cmp-r { position: absolute; top: 12px; padding: 4px 10px; border-radius: 20px; background: rgba(0,0,0,.55); color: #fff; font-size: 12.5px; text-transform: capitalize; pointer-events: none; }
.cmp-l { left: 12px; } .cmp-r { right: 12px; }
.cmp-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cmp-side figure { margin: 0; } .cmp-side img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; display: block; background: var(--glass-3); }
.cmp-side figcaption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 6px; text-transform: capitalize; }

/* ---------- costs ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font: 500 12.5px var(--f-ui); color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--line-2); }
.table td { padding: 10px 6px; border-bottom: 1px solid var(--line); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-r { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.bar-r .bar { height: 10px; }
.bar-r b { font-variant-numeric: tabular-nums; font-weight: 500; }

/* ---------- settings and help ---------- */
.vlist { display: flex; flex-direction: column; gap: 6px; }
.v-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.v-row b { display: block; font: 500 14px var(--f-ui); } .v-row small { color: var(--muted); font-size: 12.5px; }
.card > .btn + .btn, .card > .row + .btn { margin-top: 10px; }
.card > .btn { margin-top: 6px; margin-right: 8px; }
.gloss { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.gloss dt { font: 500 14.5px var(--f-ui); margin-top: 10px; } .gloss dd { margin: 0; color: var(--text-2); line-height: 1.55; font-size: 14.5px; }
.kbd-grid { display: flex; flex-direction: column; gap: 6px; }
.kbd-grid > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kbd-grid kbd + kbd { margin-left: 4px; }

/* ---------- first run ---------- */
.first-run .lede { margin: 0 0 14px; }
.big-callout { display: flex; gap: 14px; padding: 16px; border-radius: 14px; margin-bottom: 12px; border: 1px solid rgba(232,163,61,.4); background: rgba(232,163,61,.07); }
.big-callout > .ic { width: 22px; height: 22px; color: var(--warn); flex: none; margin-top: 2px; }
.big-callout b { font: 600 15px var(--f-ui); }
.big-callout p { margin: 6px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.55; }
.big-callout ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.big-callout--med { border-color: var(--accent-line); background: var(--accent-bg); }
.big-callout--med > .ic { color: var(--magenta); }
.first-run-modal .modal-ft .btn--primary { min-width: 220px; justify-content: center; }

/* ---------- larger text ---------- */
html.big-text .view-host { zoom: 1.14; }
html.big-text .modal { zoom: 1.1; }
html.big-text .sb-nav, html.big-text .bottomnav { zoom: 1.08; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cols2, .home-grid, .wiz-grid, .tcols { grid-template-columns: minmax(0, 1fr); }
  .cal-wrap { grid-template-columns: minmax(0, 1fr); }
  .facts, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-side { flex-direction: row; flex-wrap: wrap; }
  .hs-row { flex: 1 1 160px; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 290px; max-width: 86vw; z-index: 180; transform: translateX(-105%); transition: transform .22s ease; box-shadow: var(--shadow); }
  .app.sb-open .sidebar { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(20,10,20,.45); z-index: 170; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .app.sb-open .scrim { opacity: 1; pointer-events: auto; }
  .sb-link { min-height: 46px; }
  .sb-close { margin-left: auto; }
  .mobile-only { display: inline-grid !important; }
  .tb-logo.mobile-only { display: inline-flex !important; margin-left: 2px; }
  .desk-only { display: none !important; }
  .cmdk-btn { display: none; }
  .save-ind span { display: none; }
  .save-ind { padding: 6px 4px; }
  .topbar { gap: 2px; padding: 0 6px; }
  .topbar .icon-btn { width: 42px; height: 42px; }
  .tb-prof { padding: 0 3px; border: 0; background: none; }
  .content { padding: 0 0 calc(70px + env(safe-area-inset-bottom)); }
  .page { padding: 16px 14px 30px; }
  .bottomnav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg-1) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line-2); }
  .bottomnav a, .bottomnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; border: 0; background: none; border-radius: 12px; color: var(--muted); font: 500 12px var(--f-ui); text-decoration: none !important; cursor: pointer; }
  .bottomnav .ic { width: 23px; height: 23px; }
  .bottomnav .on { color: var(--accent); background: var(--accent-bg); }
  .page-hd h1 { font-size: 24px; }
  .page-hd .acts { margin-left: 0; width: 100%; }
  .hero { padding: 20px; border-radius: 20px; }
  .hero h1 { font-size: 27px; }
  .hero p { font-size: 15.5px; }
  .hero-acts .btn { flex: 1 1 100%; justify-content: center; }
  .hero-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hs-row { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; }
  .hs-n { text-align: left; min-width: 0; font-size: 22px; }
  .hs-row span:last-child { font-size: 12.5px; line-height: 1.3; }
  .td-hd h1 { font-size: 24px; }
  .td-acts .btn { flex: 1 1 auto; justify-content: center; }
  .td-acts .btn--xl { flex-basis: 100%; }
  .filters > select.input { flex: 1 1 140px; height: 46px; }
  .filters .search-in { flex-basis: 100%; }
  .cat-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -14px; margin-right: -14px; padding: 0 14px; }
  .cat-chips::-webkit-scrollbar { display: none; }
  .chip-b { flex: none; }
  .tgrid, .jlist { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 16px; border-radius: 16px; }
  .form-2 { grid-template-columns: minmax(0, 1fr); }
  .kinds { grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sess-f { grid-template-columns: minmax(132px, 1.25fr) minmax(0, 1fr); flex: 1 1 200px; }
  .sess-a { width: 100%; padding-left: 52px; }
  .sess-f input[type=date] { grid-column: 1 / -1; }
  .sess-f input[type=time] { padding-left: 10px; padding-right: 6px; font-size: 15px; }
  .cal-c { min-height: 58px; padding: 3px; border-radius: 8px; }
  .cal-ps .cal-dot { width: 7px; height: 7px; padding: 0; border-radius: 50%; }
  .cal-ps .cal-dot em { display: none; }
  .cal-ps { flex-direction: row; flex-wrap: wrap; gap: 3px; }
  .cal-ps .cal-dot--after { width: 7px; height: 7px; }
  .cal-n { width: 22px; height: 22px; font-size: 12px; }
  .cal-main { padding: 8px; }
  .cal-g, .cal-dow { gap: 2px; }
  .cal-w { grid-template-columns: minmax(0, 1fr); }
  .cal-wd { min-height: 0; flex-direction: row; align-items: flex-start; }
  .cal-wh { flex-direction: column; align-items: center; width: 44px; flex: none; }
  .cal-wl { flex: 1; min-width: 0; }
  .tl li { grid-template-columns: 64px 30px minmax(0, 1fr); gap: 8px; }
  .tl li::after { left: 86px; }
  .modal-wrap { padding: 8px; align-items: flex-end; }
  .modal { max-height: calc(100dvh - 16px); border-radius: 18px; }
  .modal-ft { flex-wrap: wrap; }
  .modal-ft .btn { flex: 1 1 auto; justify-content: center; min-height: 46px; }
  .banner { padding: 8px 12px; font-size: 13px; }
  .ctx-i { min-height: 46px; }
  #toasts { bottom: calc(84px + env(safe-area-inset-bottom)); right: 10px; left: 10px; align-items: stretch; }
  .toast { min-width: 0; max-width: none; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis--sm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmp-side { grid-template-columns: minmax(0, 1fr); }
  .search-in .input { min-width: 0; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .kv dd { margin-bottom: 8px; }
}
@media (max-width: 420px) { .facts, .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; } .fact { padding: 12px; } .kp-v { font-size: 19px; } .bar-r { grid-template-columns: 52px minmax(0, 1fr) auto; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* ---------- print ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  :root, html[data-theme] { color-scheme: light !important; }
  html, body { height: auto; overflow: visible; background: #fff !important; color: #000 !important; }
  html.big-text .view-host { zoom: 1; }
  body::before { display: none !important; }
  body.printing .app, body.printing #modals, body.printing #toasts, body.printing .boot, body.printing .cmdk, body.printing .ctx { display: none !important; }
  body:not(.printing) .sidebar, body:not(.printing) .topbar, body:not(.printing) .bottomnav, body:not(.printing) #banners { display: none !important; }
  body:not(.printing) .app { display: block; height: auto; } body:not(.printing) .content { overflow: visible; }
  body.printing #print-host { display: block !important; }
  .print-doc { font: 10.5pt/1.5 'Inter', Arial, sans-serif; color: #000; }
  .print-doc header { border-bottom: 2px solid #000; padding-bottom: 6px; margin-bottom: 12px; }
  .print-doc h1 { font: 600 18pt/1.2 'Lexend', Arial, sans-serif; color: #000; }
  .print-doc h2 { font: 600 12.5pt 'Lexend', Arial, sans-serif; margin: 14px 0 6px; color: #000; }
  .print-doc h3 { font: 600 10.5pt 'Lexend', Arial, sans-serif; margin: 10px 0 4px; }
  .print-doc header p { margin: 4px 0 0; font-size: 9.5pt; color: #444; }
  .print-doc footer { margin-top: 16px; border-top: 1px solid #999; padding-top: 6px; font-size: 8pt; color: #555; }
  .print-doc section { break-inside: auto; }
  .print-doc ul, .print-doc ol { margin: 0; padding-left: 18px; }
  .print-doc .blist { display: block; } .print-doc .blist li { padding-left: 0; } .print-doc .blist li::before { display: none; }
  .print-doc .blist { list-style: disc; padding-left: 18px; }
  .pq { break-inside: avoid-page; margin-bottom: 10px; }
  .pq li { margin-bottom: 6px; }
  .ans { height: 30px; border-bottom: 1px dotted #888; margin: 2px 0 6px; }
  .pfacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 12px; border: 1px solid #bbb; border-radius: 6px; padding: 8px; margin-bottom: 8px; }
  .pfacts b { display: block; font-size: 8.5pt; text-transform: uppercase; letter-spacing: .05em; color: #555; }
  .ptable { width: 100%; border-collapse: collapse; font-size: 9.5pt; } .ptable th, .ptable td { border-bottom: 1px solid #ccc; padding: 4px 6px; text-align: left; vertical-align: top; } .ptable tr { break-inside: avoid; }
}
