/* ===== Fonts (bundled, works offline) ===== */
@font-face { font-family: 'Inter'; src: url(../fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url(../fonts/playfair.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(../fonts/cormorant.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url(../fonts/montserrat.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url(../fonts/dmsans.woff2) format('woff2'); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: 'DM Serif Display'; src: url(../fonts/dmserif.woff2) format('woff2'); font-weight: 400; font-display: swap; }

/* ===== Tokens (brand colours are injected by JS) ===== */
:root {
  --brand: #c25b78; --brand-ink: #fff; --accent: #c9a35b; --accent-ink: #1d1a1c;
  --bg: #faf7f6; --surface: #ffffff; --surface-2: #f6f1f0; --line: #ece4e5; --text: #2b2530; --muted: #7b7380;
  --ok: #3d9a6b; --bad: #d2584f; --warn: #d9962a; --info: #6a5cb0;
  --brand-50: color-mix(in oklab, var(--brand) 6%, var(--surface));
  --brand-100: color-mix(in oklab, var(--brand) 12%, var(--surface));
  --brand-200: color-mix(in oklab, var(--brand) 22%, var(--surface));
  --shadow: 0 1px 2px rgba(40, 24, 34, .05), 0 10px 30px rgba(40, 24, 34, .06);
  --shadow-lg: 0 4px 10px rgba(40, 24, 34, .08), 0 24px 60px rgba(40, 24, 34, .16);
  --font-head: 'Playfair Display', Georgia, serif; --font-body: 'Inter', system-ui, sans-serif; --radius: 14px;
  --side-w: 262px; color-scheme: light;
}
:root[data-theme=dark] {
  --bg: #15121a; --surface: #1e1a25; --surface-2: #272230; --line: #342e3d; --text: #f2edf3; --muted: #a79fb0;
  --ok: #58c08a; --bad: #ee7a70; --warn: #efb653; --info: #a597e6;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .3); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55); color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 600; letter-spacing: .005em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.ic { flex: none; vertical-align: -.2em; }
.muted { color: var(--muted); } .grow { flex: 1; } .strong { font-weight: 700; } .r { text-align: right; } .c { text-align: center; } .pad { padding: 24px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ===== Shell ===== */
#app { display: flex; min-height: 100vh; }
.side { width: var(--side-w); flex: none; background: var(--surface); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 14px 14px; z-index: 40; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 20px; }
.brand b { display: block; font: 600 1.18rem/1.15 var(--font-head); }
.brand small { color: var(--muted); font-size: .76rem; }
.brand-mark { width: 40px; height: 40px; border-radius: calc(var(--radius) * .8); background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; flex: none; box-shadow: 0 6px 16px color-mix(in oklab, var(--brand) 40%, transparent); }
.brand-logo { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; flex: none; }
#nav { display: flex; flex-direction: column; gap: 2px; overflow: auto; }
#nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: calc(var(--radius) * .75); color: var(--muted); text-decoration: none; font-weight: 500; position: relative; transition: background .15s, color .15s; }
#nav a:hover { background: var(--surface-2); color: var(--text); }
#nav a.on { background: var(--brand-100); color: var(--brand); font-weight: 600; }
#nav a.on::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand); }
.nb { margin-left: auto; font-style: normal; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 99px; display: none; }
.nb.show { display: inline-block; } .nb.bad { background: var(--bad); color: #fff; } .nb.soft { background: var(--brand-100); color: var(--brand); }
.side-foot { margin-top: auto; padding: 14px 10px 4px; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.main { flex: 1; min-width: 0; overflow-x: clip; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px 32px; background: color-mix(in oklab, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent); }
.ttl { min-width: 0; } .ttl h2 { font-size: 1.55rem; line-height: 1.2; } .ttl p { margin: 0; color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
#view { padding: 22px 32px 80px; max-width: 1560px; margin: 0 auto; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.save { display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; color: var(--muted); padding: 5px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.save i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.save[data-st=dirty] i { background: var(--warn); animation: pulse 1s infinite; } .save[data-st=error] i { background: var(--bad); }
@keyframes pulse { 50% { opacity: .3; } }
.scrim { display: none; }

/* ===== Buttons & form bits ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 9px 16px; border-radius: calc(var(--radius) * .75); font-weight: 600; font-size: .88rem; transition: transform .1s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { background: var(--surface-2); } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px color-mix(in oklab, var(--brand) 35%, transparent); }
.btn.primary:hover { filter: brightness(1.07); background: var(--brand); } .btn[disabled] { opacity: .6; pointer-events: none; }
.btn.ghost { background: transparent; } .btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--bad); border-color: color-mix(in oklab, var(--bad) 40%, var(--line)); background: transparent; } .btn.danger:hover { background: color-mix(in oklab, var(--bad) 10%, var(--surface)); }
.btn.sm { padding: 6px 12px; font-size: .8rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.ico-btn { border: 0; background: transparent; color: var(--muted); width: 32px; height: 32px; border-radius: 9px; display: inline-grid; place-items: center; text-decoration: none; transition: background .15s, color .15s; }
.ico-btn:hover { background: var(--surface-2); color: var(--text); } .ico-btn.danger:hover { background: color-mix(in oklab, var(--bad) 12%, var(--surface)); color: var(--bad); }
.link { border: 0; background: none; color: var(--brand); font-weight: 600; font-size: .82rem; padding: 0; display: inline-flex; gap: 5px; align-items: center; } .link:hover { text-decoration: underline; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip.ok { background: color-mix(in oklab, var(--ok) 15%, var(--surface)); color: var(--ok); } .chip.bad { background: color-mix(in oklab, var(--bad) 15%, var(--surface)); color: var(--bad); } .chip.warn { background: color-mix(in oklab, var(--warn) 18%, var(--surface)); color: var(--warn); }
.btnchip { border: 1px dashed var(--line); background: transparent; cursor: pointer; } .btnchip:hover { border-color: var(--brand); color: var(--brand); }
.hint { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .82rem; margin: 6px 0; } .hint.warn { color: var(--warn); }
.ok-t { color: var(--ok); display: flex; gap: 6px; align-items: center; }
input[type=text], input[type=search], input[type=number], input[type=date], input[type=time], input[type=email], select, textarea { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * .6); padding: 9px 12px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 20%, transparent); }
input[type=color] { width: 100%; height: 40px; padding: 3px; border: 1px solid var(--line); border-radius: calc(var(--radius) * .6); background: var(--surface); }
input[type=range] { accent-color: var(--brand); padding: 0; border: 0; box-shadow: none; }
textarea { resize: vertical; line-height: 1.45; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; } input[type=number] { -moz-appearance: textfield; appearance: textfield; }
label { display: flex; flex-direction: column; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--muted); } label.one { margin-top: 8px; }
.lbl { font-size: .78rem; font-weight: 600; color: var(--muted); display: block; margin-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; } .form-grid .span2 { grid-column: span 2; }
.switch { flex-direction: row; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; font-size: .84rem; } .switch input { display: none; }
.switch span { width: 36px; height: 20px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.switch input:checked + span { background: var(--brand); } .switch input:checked + span::after { transform: translateX(16px); }
.chk { flex-direction: row; justify-content: center; } .chk input { display: none; }
.chk span { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line); display: grid; place-items: center; transition: all .15s; background: var(--surface); }
.chk input:checked + span { background: var(--brand); border-color: var(--brand); } .chk input:checked + span::after { content: ''; width: 5px; height: 10px; border: solid var(--brand-ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.search { position: relative; flex: 1 1 220px; max-width: 320px; } .search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); } .search input { padding-left: 34px; }
.flt { width: auto; padding-right: 30px; } .w56 { width: 56px; padding: 4px 6px; text-align: center; } .w80 { width: 80px; }
.field-inline { display: flex; align-items: center; gap: 10px; flex-direction: row; } .field-inline label { font-size: .84rem; white-space: nowrap; }
.money-in { display: flex; align-items: center; border: 1px solid var(--line); border-radius: calc(var(--radius) * .6); background: var(--surface); padding-left: 12px; } .money-in span { color: var(--muted); } .money-in input { border: 0; box-shadow: none !important; width: 130px; }

/* ===== Cards, KPI, hero ===== */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.card > header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; } .card > header h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; } .card > header .link, .card > header .lg-inline { margin-left: auto; }
.card.flush { padding: 0; overflow: hidden; }
.stack { display: flex; flex-direction: column; gap: 16px; } .row-end { display: flex; justify-content: flex-end; margin-top: 14px; }
.hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 38px; border-radius: calc(var(--radius) * 1.5); color: var(--brand-ink);
  background: radial-gradient(900px 300px at 100% 0%, color-mix(in oklab, var(--accent) 60%, transparent), transparent 70%), linear-gradient(120deg, var(--brand), color-mix(in oklab, var(--brand) 62%, var(--accent))); box-shadow: 0 16px 40px color-mix(in oklab, var(--brand) 32%, transparent); }
.hero::after { content: ''; position: absolute; right: -60px; bottom: -90px; width: 280px; height: 280px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .08); }
.hero > * { position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 600; opacity: .85; }
.hero-names { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; margin: 6px 0 12px; font-weight: 600; } .amp { font-style: italic; opacity: .85; font-weight: 400; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: .9rem; opacity: .95; } .hero-meta span { display: inline-flex; gap: 6px; align-items: center; }
.hero .link { color: inherit; opacity: .85; }
.hero-r { display: flex; align-items: center; gap: 26px; flex: none; }
.cd { text-align: right; } .cd b { display: block; font: 600 clamp(3rem, 6vw, 4.8rem)/1 var(--font-head); } .cd span { font-size: .84rem; opacity: .9; text-transform: uppercase; letter-spacing: .08em; }
.hero .ringc-t { color: #fff; } .hero .ringc-t small { color: rgba(255, 255, 255, .8); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 18px 0; } .kpis.tight { margin: 14px 0; }
.kpi { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; display: block; width: 100%; }
button.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); } .kpi.static { cursor: default; }
.kpi-h { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; font-weight: 600; } .kpi-i { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-100); color: var(--brand); display: grid; place-items: center; }
.kpi-v { font: 600 1.9rem/1.2 var(--font-head); margin: 8px 0 2px; font-variant-numeric: tabular-nums; } .kpi-s { color: var(--muted); font-size: .78rem; min-height: 1.2em; }
.bar { height: 6px; border-radius: 9px; background: var(--surface-2); overflow: hidden; margin-top: 10px; } .bar i { display: block; height: 100%; border-radius: 9px; background: var(--brand); transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.bar.ok i { background: var(--ok); } .bar.bad i { background: var(--bad); } .bar.warn i { background: var(--warn); } .bar.soft i { background: var(--accent); }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .span2 { grid-column: span 2; }
.donut-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; } .donut { position: relative; width: var(--sz); height: var(--sz); flex: none; } .donut svg { width: 100%; height: 100%; } .donut .seg { transition: opacity .2s; } .donut:hover .seg { opacity: .75; } .donut .seg:hover { opacity: 1; }
.donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .donut-c b { font: 600 1.35rem/1.1 var(--font-head); } .donut-c small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; flex: 1; min-width: 140px; } .legend li { display: flex; align-items: center; gap: 8px; font-size: .82rem; } .legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; } .legend span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .legend b { font-variant-numeric: tabular-nums; font-size: .78rem; color: var(--muted); font-weight: 600; }
.lg-inline { display: flex; gap: 14px; font-size: .76rem; color: var(--muted); } .lg-inline i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.hb { display: grid; gap: 9px; } .hb-row { display: grid; grid-template-columns: minmax(70px, 130px) 1fr minmax(70px, auto); gap: 12px; align-items: center; font-size: .82rem; cursor: default; } .hb-row[data-go] { cursor: pointer; } .hb-row[data-go]:hover .hb-l { color: var(--brand); }
.hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); } .hb-t { display: flex; flex-direction: column; gap: 3px; } .hb-t i { display: block; height: 7px; border-radius: 6px; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.hb-t.st { flex-direction: row; gap: 0; height: 10px; border-radius: 99px; overflow: hidden; background: var(--surface-2); } .hb-t.st i { height: 100%; border-radius: 0; } .hb-v { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; } .hb-v b { color: var(--text); }
.ringc { position: relative; width: var(--sz); height: var(--sz); flex: none; } .ringc svg { width: 100%; height: 100%; } .ringc-t { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .ringc-t b { font: 600 1.25rem/1.1 var(--font-head); } .ringc-t small { font-size: .66rem; opacity: .8; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; } .list li { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px dashed var(--line); } .list li:last-child { border: 0; } .li-t { flex: 1; min-width: 0; } .li-t b { display: block; font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .li-t small { color: var(--muted); font-size: .74rem; }
.tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); color: transparent; display: inline-grid; place-items: center; flex: none; transition: all .15s; padding: 0; } .tick:hover { border-color: var(--ok); color: var(--ok); } .tick.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.alerts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; } .al { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: calc(var(--radius) * .7); font-size: .85rem; cursor: pointer; background: var(--surface-2); } .al .ic { margin-top: 2px; }
.al.bad { background: color-mix(in oklab, var(--bad) 11%, var(--surface)); color: var(--bad); } .al.warn { background: color-mix(in oklab, var(--warn) 13%, var(--surface)); color: var(--warn); } .al.info { background: var(--brand-50); color: var(--brand); } .al span { color: var(--text); }
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; } .minis button { background: var(--surface-2); border: 0; border-radius: calc(var(--radius) * .7); padding: 10px 12px; text-align: left; } .minis b { display: block; font: 600 1.25rem var(--font-head); } .minis span { color: var(--muted); font-size: .74rem; } .minis button:hover { background: var(--brand-100); }

/* ===== Stats & toolbar & tabs ===== */
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; } .stat { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * .8); padding: 10px 18px; min-width: 120px; box-shadow: var(--shadow); } .stat b { display: block; font: 600 1.45rem/1.2 var(--font-head); font-variant-numeric: tabular-nums; } .stat span { color: var(--muted); font-size: .74rem; font-weight: 600; }
.stat.ok b { color: var(--ok); } .stat.bad b { color: var(--bad); } .stat.warn b { color: var(--warn); } .stat.brand b { color: var(--brand); }
.toolbar { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; } .hint { min-width: 0; }
.tabs { display: flex; gap: 6px; margin: 0 0 16px; border-bottom: 1px solid var(--line); } .tabs.inline { margin: 0; border: 0; background: var(--surface-2); padding: 4px; border-radius: 99px; }
.tab { border: 0; background: transparent; padding: 10px 16px; font-weight: 600; font-size: .88rem; color: var(--muted); border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 8px; margin-bottom: -1px; }
.tab.on { color: var(--brand); border-color: var(--brand); } .tabs.inline .tab { border: 0; border-radius: 99px; padding: 7px 14px; margin: 0; } .tabs.inline .tab.on { background: var(--surface); box-shadow: var(--shadow); color: var(--brand); }
.task-top { display: flex; align-items: center; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; } .task-top .stats { margin: 0; }

/* ===== Editable grid ===== */
.grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.grid th { text-align: left; font: 700 .68rem var(--font-body); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 10px 6px; background: var(--surface-2); white-space: nowrap; border-bottom: 1px solid var(--line); } .grid th:first-child { padding-left: 14px; } .grid th.r { text-align: right; } .grid th.c { text-align: center; }
.grid td { padding: 3px 4px; border-bottom: 1px solid color-mix(in oklab, var(--line) 65%, transparent); vertical-align: middle; } .grid td:first-child { padding-left: 10px; }
.grid tbody tr:hover td { background: color-mix(in oklab, var(--brand) 3.5%, var(--surface)); } .grid tr.empty td { text-align: center; color: var(--muted); padding: 22px; }
.grid td.r input, .grid td.r .calc { text-align: right; } .grid td.c { text-align: center; } .grid td.c input[type=number] { text-align: center; }
.grid input[type=text], .grid input[type=number], .grid input[type=date], .grid input[type=time], .grid textarea, .grid select { border: 1px solid transparent; background: transparent; padding: 8px 8px; border-radius: 8px; box-shadow: none; }
.grid input:hover, .grid textarea:hover, .grid select:hover { background: var(--surface-2); } .grid input:focus, .grid textarea:focus, .grid select:focus { background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 20%, transparent); }
.grid textarea { field-sizing: content; min-height: 36px; max-height: 120px; }
.grid input.auto { color: var(--muted); font-style: italic; }
.grid td.act { white-space: nowrap; text-align: right; width: 76px; padding-right: 10px; opacity: .25; transition: opacity .15s; } .grid tr:hover td.act, .grid tr:focus-within td.act { opacity: 1; }
.calc { display: inline-block; padding: 8px 8px; font-variant-numeric: tabular-nums; white-space: nowrap; } .calc.strong { color: var(--text); }
.urlc { display: flex; align-items: center; } .urlc .ico-btn { width: 26px; height: 26px; color: var(--brand); }
.grid-add { padding: 10px 14px; border-top: 1px dashed var(--line); } .card.flush .grid-add { background: var(--surface-2); border-top: 1px solid var(--line); }
.cat-b .grid-add { border-top: 0; padding: 8px 4px 0; }
select.pill { appearance: none; -webkit-appearance: none; padding: 6px 26px 6px 12px; border-radius: 99px; font-size: .8rem; font-weight: 600; background-color: var(--surface-2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23999' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; cursor: pointer; text-overflow: ellipsis; }
.grid select.pill { border: 1px solid transparent; } .grid select.pill:hover { background-color: var(--surface-2); filter: brightness(.97); }
select.pill[data-v=yes], select.pill[data-v=done], select.pill[data-v=booked] { background-color: color-mix(in oklab, var(--ok) 16%, var(--surface)); color: var(--ok); }
select.pill[data-c=rsvp][data-v=no], select.pill[data-v=declined] { background-color: color-mix(in oklab, var(--bad) 14%, var(--surface)); color: var(--bad); }
select.pill[data-v=waiting], select.pill[data-v=doing], select.pill[data-v=option], select.pill[data-c=inv][data-v=todo] { background-color: color-mix(in oklab, var(--warn) 17%, var(--surface)); color: var(--warn); }
select.pill[data-v=revisit] { background-color: color-mix(in oklab, var(--info) 15%, var(--surface)); color: var(--info); }
select.pill[data-c=side], select.pill[data-c=meal], select.pill[data-c=diet], select.pill[data-c=who] { font-weight: 500; }
tr.maybe td:first-child { box-shadow: inset 3px 0 0 var(--accent); } tr.declined input[type=text] { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--bad) 50%, transparent); }
tr.st-done input[data-c=title], tr.st-done textarea { color: var(--muted); text-decoration: line-through; } tr.v-declined td { opacity: .55; } tr.v-booked td:nth-child(2) input { font-weight: 700; }
.qtyc .autoq { color: var(--brand); font-weight: 700; }

/* category / phase / moment cards */
.cat { padding: 0; overflow: hidden; } .cat-h { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 0 !important; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cat.closed .cat-b { display: none; } .cat.closed .cat-h { border-bottom: 0; } .chev { border: 0; background: transparent; color: var(--muted); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; padding: 0; transition: transform .2s; } .chev:hover { background: var(--surface-2); } .cat.closed .chev { transform: rotate(-90deg); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.cat-name { border: 1px solid transparent !important; background: transparent !important; font: 600 1.08rem var(--font-head) !important; padding: 6px 8px !important; width: auto !important; flex: 1 1 140px; max-width: 280px; } .cat-name:hover { background: var(--surface-2) !important; } .cat-name:focus { background: var(--surface) !important; border-color: var(--brand) !important; }
.cat-sum { display: flex; gap: 22px; margin-left: auto; } .cat-sum span { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; line-height: 1.25; } .cat-sum small { color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; } .cat-sum b { font-size: .9rem; }
.cat-bar { width: 120px; margin: 0; flex: none; } .cat-b { padding: 4px 12px 14px; } .ph-t { font-size: 1.05rem; } .ph-d { display: inline-flex; gap: 5px; align-items: center; font-size: .78rem; } .mo-desc { margin: 8px 6px 4px; color: var(--muted); font-size: .8rem; }
.tgt { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; }
.msec-h { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin: 26px 0 12px; color: var(--brand); } .msec:first-of-type .msec-h { margin-top: 4px; } .msec .card { margin-bottom: 12px; }
.todo-cats { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 14px; font-size: .8rem; color: var(--muted); }

/* seating / catering */
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; } .table-card { padding: 14px 16px; } .table-card header { margin-bottom: 8px !important; } .table-card h4 { font-size: 1rem; } .table-card.over { border-color: var(--bad); }
.chips { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; } .chips.wide { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } .chips li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 4px 3px 10px; border-radius: 10px; background: var(--surface-2); font-size: .84rem; } .chips .gn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .chips em { font-style: normal; color: var(--muted); }
.chips select.pill { padding: 3px 20px 3px 8px; font-size: .72rem; background-color: var(--surface); max-width: 110px; }
.newtable { display: flex; gap: 8px; align-items: center; align-self: start; padding: 14px; border: 1px dashed var(--line); border-radius: var(--radius); } .newtable input { padding: 6px 10px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
table.mini { width: 100%; border-collapse: collapse; font-size: .88rem; } table.mini th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 6px 4px; } table.mini td { padding: 8px 4px; border-top: 1px solid var(--line); vertical-align: top; } table.mini tr.tot td { font-weight: 700; }

/* visual timeline */
.tl { list-style: none; margin: 0; padding: 4px 0 4px 0; position: relative; } .tl li { display: grid; grid-template-columns: 96px 18px 1fr; gap: 12px; align-items: start; position: relative; padding-bottom: 14px; }
.tl li::before { content: ''; position: absolute; left: 107px; top: 14px; bottom: -6px; width: 2px; background: var(--line); } .tl li:last-child::before { display: none; }
.tl-time { text-align: right; padding-top: 6px; } .tl-time b { display: block; font: 600 .95rem var(--font-head); color: var(--brand); } .tl-time small { color: var(--muted); font-size: .72rem; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); margin-top: 9px; position: relative; z-index: 1; }
.tl-card { background: var(--surface-2); border-radius: calc(var(--radius) * .8); padding: 10px 14px; } .tl-card h4 { display: inline; font: 600 1rem var(--font-body); margin-right: 8px; } .tl-card p { margin: 4px 0 0; font-size: .82rem; display: flex; gap: 6px; align-items: flex-start; }
.tl li.gap { grid-template-columns: 96px 18px 1fr; padding-bottom: 6px; } .tl li.gap span { grid-column: 3; color: var(--muted); font-size: .74rem; font-style: italic; } .tl li.gap::before { display: none; }
.print-h { display: none; }

/* settings */
.settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; } .sw { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--surface); background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: 0 0 0 1px var(--line); padding: 0; transition: transform .15s; } .sw:hover { transform: scale(1.1); } .sw.on { box-shadow: 0 0 0 2.5px var(--brand); }
.logo-row { display: flex; align-items: center; gap: 10px; } .logo-row img, .logo-ph { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }

/* modal & toast */
.modal-wrap { position: fixed; inset: 0; background: rgba(20, 12, 24, .5); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { background: var(--surface); border-radius: calc(var(--radius) * 1.3); width: min(520px, 100%); max-height: 92vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); } .modal.wide { width: min(680px, 100%); }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 6px; } .modal-h h3 { font-size: 1.3rem; } .modal-b { padding: 8px 22px 16px; overflow: auto; } .modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; flex-wrap: wrap; }
.modal-b textarea { min-height: 120px; } .lead { color: var(--muted); margin: 0 0 16px; }
#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 200; width: min(460px, calc(100% - 28px)); }
.toast { background: #2b2530; color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px; justify-content: space-between; opacity: 0; transform: translateY(12px); transition: all .25s; font-size: .88rem; }
.toast.in { opacity: 1; transform: none; } .toast.ok { background: #1e6b45; } .toast.bad { background: #a3342b; } .toast-a { border: 0; background: rgba(255, 255, 255, .16); color: #fff; padding: 5px 12px; border-radius: 99px; font-weight: 700; font-size: .8rem; }

/* ===== Responsive ===== */
button.menu { display: none; }
@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(2, 1fr); } .dash-grid { grid-template-columns: repeat(2, 1fr); } .cat-sum .hide-sm { display: none; } }
@media (max-width: 900px) {
  .side { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-102%); transition: transform .25s; box-shadow: var(--shadow-lg); } .side.open { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(20, 12, 24, .45); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .25s; } body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  button.menu { display: inline-grid; } .top { padding: 10px 14px; } .ttl h2 { font-size: 1.25rem; } #view { padding: 14px 14px 80px; } .save span { display: none; } .save { padding: 8px; }
  #exportBtn span, #installBtn span { display: none; } #exportBtn, #installBtn { padding: 9px 11px; }
  .hero { flex-direction: column; align-items: flex-start; padding: 24px 22px; } .hero-r { width: 100%; justify-content: space-between; } .cd { text-align: left; }
  .settings, .two { grid-template-columns: 1fr; } .dash-grid { grid-template-columns: 1fr; } .span2 { grid-column: auto; } .form-grid { grid-template-columns: 1fr; } .form-grid .span2 { grid-column: auto; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi { padding: 12px; } .kpi-v { font-size: 1.4rem; }
  .cat-sum { margin-left: 0; width: 100%; justify-content: space-between; } .cat-bar { width: 100%; order: 9; } .cat-name { max-width: none; }
  .tl li { grid-template-columns: 70px 16px 1fr; } .tl li::before { left: 80px; }
  /* grid → cards */
  .grid-wrap { overflow: visible; } table.grid { min-width: 0; } .grid thead { display: none; } .grid, .grid tbody, .grid tfoot { display: block; }
  .grid tr { display: block; margin: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); } .grid tr.empty { border: 0; }
  .grid td { display: flex; align-items: center; gap: 10px; border: 0; padding: 3px 0 !important; width: 100% !important; text-align: left !important; }
  .grid td::before { content: attr(data-label); flex: 0 0 34%; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; } .grid td[data-label=""]::before { display: none; }
  .grid td.act { opacity: 1; justify-content: flex-end; } .grid td.act::before { display: none; } .grid td.r input, .grid td.r .calc { text-align: left; }
  .grid td input[type=text], .grid td input[type=number], .grid td input[type=date], .grid td input[type=time], .grid td textarea, .grid td select { background: var(--surface-2); flex: 1; }
  .grid td.t-check { justify-content: space-between; } .grid td.t-btn { justify-content: flex-start; }
  .toolbar .search { max-width: none; flex-basis: 100%; }
}
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr; } .stats .stat { flex: 1 1 40%; min-width: 0; } }
@media print {
  .side, .top-r, .menu, .toolbar, .tabs, .grid-add, .scrim, #toasts, .ico-btn, .stats { display: none !important; }
  body { background: #fff; color: #000; } #view { padding: 0; max-width: none; } .top { position: static; border: 0; background: none; } .card { box-shadow: none; border-color: #ddd; break-inside: avoid; } .print-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
  .tl li::before { background: #ccc; } .tables { grid-template-columns: repeat(3, 1fr); } .chips select { display: none; } .chips select + * { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

@media (max-width: 900px) { table.grid[data-list] { min-width: 0 !important; table-layout: auto; } }
.tgt input.w56 { width: 56px; padding: 4px 6px; text-align: center; }

/* ===== Workspace: nav sections, wedding switcher, portfolio, leads ===== */
.nav-sec { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 4px; opacity: .85; }
.wsw-wrap { position: relative; margin: 2px 0 6px; }
.wsw { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: calc(var(--radius) * .75); border: 1px solid var(--line); background: var(--brand-50); text-align: left; }
.wsw:hover { background: var(--brand-100); } .wsw-t { min-width: 0; display: block; } .wsw-t b { display: block; font: 600 .98rem var(--font-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wsw-t small { color: var(--muted); font-size: .72rem; }
.wsw-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; max-height: 60vh; overflow: auto; min-width: 250px; }
.wsw-item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 0; background: transparent; padding: 8px 10px; border-radius: 10px; text-align: left; } .wsw-item:hover { background: var(--surface-2); } .wsw-item.on { background: var(--brand-100); }
.wsw-item b { display: block; font-size: .88rem; } .wsw-item small { color: var(--muted); font-size: .72rem; } .wsw-foot { display: flex; justify-content: space-between; padding: 8px 10px 4px; border-top: 1px solid var(--line); margin-top: 4px; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.wcard { display: flex; flex-direction: column; gap: 14px; } .wcard.cur { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); } .wcard.arch { opacity: .6; }
.wcard > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin: 0; } .wcard h3 { font-size: 1.25rem; } .wcard header p { margin: 2px 0 0; font-size: .82rem; }
.wc-body { display: flex; gap: 16px; align-items: center; } .wc-bars { flex: 1; display: grid; gap: 10px; min-width: 0; } .wc-bars small { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .74rem; } .wc-bars small b { color: var(--text); font-variant-numeric: tabular-nums; } .wc-bars .bar { margin-top: 4px; }
.wcard footer { display: flex; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.board { display: grid; grid-template-columns: repeat(6, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.kcol { background: var(--surface-2); border-radius: var(--radius); padding: 10px; min-width: 210px; } .kcol > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; } .kcol h4 { font: 700 .8rem var(--font-body); display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .06em; }
.kval { display: block; margin: 0 2px 8px; } .sdot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); } .s-new { background: var(--info); } .s-contacted { background: var(--accent); } .s-meeting { background: var(--warn); } .s-proposal { background: var(--brand); } .s-won { background: var(--ok); } .s-lost { background: var(--bad); }
.kbody { display: grid; gap: 8px; min-height: 70px; border-radius: 10px; padding: 2px; transition: background .15s; } .kbody.over { background: color-mix(in oklab, var(--brand) 12%, transparent); outline: 2px dashed var(--brand); }
.kempty { margin: 0; text-align: center; color: var(--muted); font-size: .76rem; padding: 18px 0; opacity: .6; }
.lcard { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * .75); padding: 10px 12px; cursor: grab; box-shadow: var(--shadow); } .lcard:hover { border-color: var(--brand); } .lcard.drag { opacity: .4; } .lcard b { font-size: .92rem; display: block; margin-bottom: 4px; }
.lmeta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: .74rem; } .lmeta span { display: inline-flex; align-items: center; gap: 4px; } .lfoot { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
select.pill[data-c=stage][data-v=new] { background-color: color-mix(in oklab, var(--info) 15%, var(--surface)); color: var(--info); }
select.pill[data-c=stage][data-v=contacted], select.pill[data-c=stage][data-v=meeting], select.pill[data-c=stage][data-v=proposal] { background-color: color-mix(in oklab, var(--warn) 17%, var(--surface)); color: var(--warn); }
select.pill[data-c=stage][data-v=won] { background-color: color-mix(in oklab, var(--ok) 16%, var(--surface)); color: var(--ok); } select.pill[data-c=stage][data-v=lost] { background-color: color-mix(in oklab, var(--bad) 14%, var(--surface)); color: var(--bad); }
@media (max-width: 900px) { .board { grid-template-columns: repeat(6, 78vw); scroll-snap-type: x mandatory; } .kcol { scroll-snap-align: start; } .wgrid { grid-template-columns: 1fr; } }

/* ===== Account & pricing ===== */
.settings .span-all { grid-column: 1 / -1; }
.btn.acct { font-weight: 600; } .btn.acct.warn { color: var(--warn); border-color: color-mix(in oklab, var(--warn) 45%, var(--line)); } .btn.acct.bad { background: var(--bad); color: #fff; border-color: var(--bad); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); } .plan.cur { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.plan h4 { font-size: 1.3rem; } .price { display: flex; align-items: baseline; gap: 6px; } .price b { font: 600 2rem var(--font-head); } .price span { color: var(--muted); }
.plan ul { list-style: none; margin: 6px 0 12px; padding: 0; display: grid; gap: 6px; font-size: .86rem; } .plan li { display: flex; gap: 8px; align-items: flex-start; } .plan li .ic { color: var(--ok); margin-top: 2px; }
.plan .btn { margin-top: auto; justify-content: center; }
@media (max-width: 900px) { .btn.acct span { display: none; } .btn.acct { padding: 9px 11px; } }

/* ===== Invitation studio ===== */
@font-face { font-family: 'Pinyon Script'; src: url(../fonts/pinyon.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Great Vibes'; src: url(../fonts/greatvibes.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url(../fonts/cinzel.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
.inv { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
.inv-stage { display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); }
.inv-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inv-canvas { display: grid; place-items: center; padding: 18px 8px; min-height: 420px; background: radial-gradient(circle at 50% 40%, color-mix(in oklab, var(--brand) 6%, var(--surface-2)), var(--surface-2)); border-radius: var(--radius); }
.inv-card { width: min(100%, 520px); max-height: 78vh; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 24px 50px rgba(40,24,34,.22); } .inv-card[data-fmt=landscape] { width: min(100%, 760px); } .inv-card[data-fmt=story] { width: min(100%, 330px); } .inv-card[data-fmt=square] { width: min(100%, 560px); }
.inv-card svg { display: block; width: 100%; height: 100%; }
.inv-panel { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
.inv-panel .tabs { margin-bottom: 14px; } .inv-panel .tab { padding: 8px 10px; font-size: .82rem; }
.presets, .variants { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; } .variants { grid-template-columns: repeat(3, 1fr); }
.preset { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 5px; display: flex; flex-direction: column; gap: 4px; align-items: center; } .preset:hover { border-color: var(--brand); box-shadow: var(--shadow); } .preset small { font-size: .66rem; color: var(--muted); text-align: center; line-height: 1.1; }
.preset .pv { display: block; width: 100%; aspect-ratio: 5 / 7; overflow: hidden; border-radius: 4px; } .pv svg { width: 100%; height: 100%; display: block; }
.colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; } .colors input[type=color] { height: 34px; }
.sub { font: 700 .8rem var(--font-body); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 16px 0 8px; }
.tf { margin-bottom: 10px; } .tf-in { display: flex; gap: 4px; align-items: flex-start; } .tf-in input, .tf-in textarea { flex: 1; }
.tf-guest { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.form-grid.cols2 { gap: 10px 12px; }
#printCard { display: none; }
@media (max-width: 1100px) { .inv { grid-template-columns: 1fr; } .inv-panel { position: static; max-height: none; } }
@media print { body.printing-card #app, body.printing-card #toasts, body.printing-card .modal-wrap { display: none !important; } body.printing-card { background: #fff; } body.printing-card #printCard { display: block; position: fixed; inset: 0; } body.printing-card #printCard svg { width: 100%; height: 100%; display: block; } }
