:root {
  --bg: #f7f3ec;
  --surface: #ffffff;
  --surface-2: #f1ebe1;
  --ink: #2a2230;
  --muted: #6f6675;
  --line: #e4dccf;
  --accent: #5b2a4e;
  --accent-ink: #ffffff;
  --accent-soft: #efe2ea;
  --gold: #b8873b;
  --ok: #2f6b4f; --ok-soft: #e2f0e8;
  --warn: #8a5a12; --warn-soft: #f7ecd6;
  --err: #9b2c2c; --err-soft: #f8e1e1;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(42,34,48,.05), 0 6px 20px rgba(42,34,48,.05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1620; --surface: #241f2b; --surface-2: #2e2836; --ink: #f1ebf2; --muted: #a99fae;
    --line: #3a3343; --accent: #c99bbd; --accent-ink: #1a1620; --accent-soft: #3a2b37; --gold: #d8ad66;
    --ok: #8fd1ad; --ok-soft: #1f3529; --warn: #e5bb73; --warn-soft: #3a2f1c; --err: #f0a3a3; --err-soft: #3d2222;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 Inter, system-ui, -apple-system, Segoe UI, sans-serif; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: 30px; } h2 { font-size: 20px; } h3 { font-size: 17px; margin: 0; }
h2.section { margin-top: 28px; }
a { color: var(--accent); }
code, .mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 28px; padding-bottom: 40px; min-height: 70vh; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
.foot { color: var(--muted); font-size: 13px; padding-bottom: 28px; }

/* Top bar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-in { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 17px; }
.brand-mark.big { width: 64px; height: 64px; font-size: 34px; border-radius: 16px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav a { padding: 7px 9px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; }
.nav a:hover { background: var(--surface-2); }
.nav a.on { background: var(--accent-soft); color: var(--accent); }
.nav-sep { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin: 0 4px 0 12px; font-weight: 600; }
.nav-logout button { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; color: var(--muted); cursor: pointer; margin-left: 8px; font: inherit; font-size: 13px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 18px; color: var(--ink); }
.badge { background: var(--err); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 6px; }
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 14px; }
  body.nav-open .nav { display: flex; }
  .nav-sep { margin: 10px 0 2px; }
  .nav-logout button { margin: 8px 0 0; width: 100%; }
}

/* Cards and layout */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.narrow { max-width: 520px; margin: 20px auto; }
.narrow-lg { max-width: 720px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; align-items: start; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
@media (max-width: 860px) { .grid2, .grid3 { grid-template-columns: 1fr; } .grid4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* Forms */
.form label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 12px; }
.form input, .form select, .form textarea, .filters input, .filters select, .inline input, .inline select {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit; }
.form input:focus, .form select:focus, .form textarea:focus, .chat-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form .check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.form .check input { width: auto; margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px; padding: 10px 16px; font: 600 14px Inter, sans-serif; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn.wide { width: 100%; }
.btn-light { background: var(--surface-2); color: var(--ink); }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: var(--err); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.inline input, .inline select { margin: 0; width: auto; padding: 6px 8px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters input, .filters select { width: auto; flex: 1 1 180px; margin: 0; }

/* Flash and tags */
.flash { padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.flash-ok { background: var(--ok-soft); color: var(--ok); }
.flash-warn { background: var(--warn-soft); color: var(--warn); }
.flash-err { background: var(--err-soft); color: var(--err); }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-err { background: var(--err-soft); color: var(--err); }
.tag-admin { background: var(--accent-soft); color: var(--accent); }

/* Auth */
.auth { display: grid; grid-template-columns: 1fr 420px; gap: 32px; align-items: center; max-width: 900px; margin: 40px auto; }
.auth-side h1 { font-size: 38px; margin-top: 18px; }
.auth-side p { color: var(--muted); font-size: 17px; }
.auth-card { padding: 28px; }
@media (max-width: 760px) { .auth { grid-template-columns: 1fr; margin-top: 10px; } .auth-side { text-align: center; } }

/* Dashboard */
.hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--gold); font-weight: 600; margin: 0 0 4px; }
.member-card { background: linear-gradient(135deg, var(--accent), #3b1a33); color: #fff; border-radius: 16px; padding: 16px 22px; min-width: 240px; display: grid; }
.mc-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; opacity: .75; }
.mc-no { font: 600 30px ui-monospace, Menlo, monospace; letter-spacing: .04em; }
.mc-since { font-size: 12px; opacity: .8; }
.announce { border-left: 4px solid var(--gold); background: var(--surface); border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; }
.announce p { margin: 4px 0 0; }
.list { list-style: none; padding: 0; margin: 0 0 10px; }
.list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; }
.list li:last-child { border-bottom: 0; }
.chat-preview li { display: block; font-size: 14px; }
.more { font-size: 14px; font-weight: 600; text-decoration: none; }

/* Voting */
.poll-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.poll-card { text-decoration: none; color: var(--ink); display: block; }
.poll-card:hover { border-color: var(--accent); }
.ballot { margin: 18px 0; }
.choice { display: flex !important; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 500; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { width: auto !important; margin: 0 !important; }
.res { margin-bottom: 12px; }
.res-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.bar { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* Chat */
.chat { padding: 0; display: flex; flex-direction: column; height: calc(100vh - 240px); min-height: 420px; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 78%; align-self: flex-start; }
.msg.mine { align-self: flex-end; }
.msg-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.msg.mine .msg-meta { justify-content: flex-end; }
.msg-meta strong { color: var(--ink); }
.msg-body { background: var(--surface-2); padding: 9px 13px; border-radius: 14px 14px 14px 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.mine .msg-body { background: var(--accent); color: var(--accent-ink); border-radius: 14px 14px 4px 14px; }
.msg-del { background: none; border: 0; color: var(--muted); font-size: 11px; cursor: pointer; text-decoration: underline; padding: 0; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--surface); color: var(--ink); }

/* Files */
.file-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 10px; }
.file-ext { flex: none; width: 48px; height: 48px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font: 700 11px Inter, sans-serif; }
.file-info { flex: 1; display: grid; gap: 2px; min-width: 0; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; font-weight: 500; }

/* Reports */
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat b { display: block; font: 600 26px Fraunces, Georgia, serif; }
.stat span { font-size: 13px; color: var(--muted); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 20px 0 16px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--accent); border-color: var(--accent); }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.report-head h2 { margin: 0; }
.mini-bars { display: grid; gap: 6px; }
.mini-bars .row { display: grid; grid-template-columns: 80px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; }

@media print {
  .topbar, .foot, .tabs, .filters, .btn, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border: 0; padding: 0; }
}

/* Public landing + signup */
.landing { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding: 30px 0 34px; }
.landing-hero h1 { font-size: 44px; max-width: 20ch; }
.lead { font-size: 18px; color: var(--muted); max-width: 52ch; }
.landing-card { justify-self: center; padding: 26px 30px; min-width: 280px; transform: rotate(-3deg); box-shadow: 0 20px 40px rgba(59,26,51,.25); }
.landing-card .mc-no { font-size: 40px; }
.features .card h3 { margin-bottom: 6px; }
.pricing { text-align: center; padding: 36px 20px; margin-top: 10px; }
.price { margin: 4px 0; } .price b { font: 600 48px Fraunces, Georgia, serif; }
.slug-row { display: flex; align-items: center; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.slug-row input { flex: 1; min-width: 140px; margin: 0 !important; }
@media (max-width: 760px) { .landing { grid-template-columns: 1fr; } .landing-hero h1 { font-size: 32px; } }

/* Admin sub-bar */
.adminbar { border-top: 1px solid var(--line); background: var(--surface-2); }
.adminbar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-height: 42px; padding-top: 4px; padding-bottom: 4px; }
.adminbar a { padding: 5px 10px; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; white-space: nowrap; }
.adminbar a:hover { background: var(--surface); }
.adminbar a.on { background: var(--surface); color: var(--accent); }
.adminbar .nav-sep { margin-left: 0; }
.only-mobile { display: none !important; }
@media (max-width: 1100px) { .adminbar { display: none; } .nav .only-mobile { display: block !important; } .nav span.only-mobile { display: inline !important; } }

/* Accounting */
.neg { color: var(--err); } .pos { color: var(--ok); }
.stat b.neg { color: var(--err); }
.row4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
@media (max-width: 860px) { .row4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .row4 { grid-template-columns: 1fr; } }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-bottom: 14px; gap: 3px; }
.seg label { margin: 0 !important; padding: 7px 14px; border-radius: 8px; cursor: pointer; display: flex !important; align-items: center; gap: 6px; }
.seg label:has(input:checked) { background: var(--accent); color: var(--accent-ink); }
.seg input { width: auto !important; margin: 0 !important; }
.txn-form[data-type="income"] .only-expense, .txn-form[data-type="expense"] .only-income { display: none; }
.txn-form[data-type="income"] .opt-expense, .txn-form[data-type="expense"] .opt-income { display: none; }
.bar2 { display: grid; gap: 3px; } .bar2 i { display: block; height: 6px; border-radius: 99px; min-width: 2px; }
.bar2 .in, .key.in { background: var(--ok); } .bar2 .out, .key.out { background: var(--err); opacity: .75; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: middle; }
.st-total td { font-weight: 600; border-top: 2px solid var(--ink); }
.st-sub td { color: var(--muted); font-size: 13px; }
.statement { max-width: 760px; }
.st-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.st-head h2 { margin: 0; }
.st-to { text-align: right; }

/* Forms */
.req { color: var(--err); }
.help { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.fs { border: 0; padding: 0; margin: 0 0 14px; } .fs legend { font-weight: 500; font-size: 14px; margin-bottom: 6px; padding: 0; }
.choices { display: grid; gap: 6px; margin-top: 6px; } .choices .choice { margin: 0; }
.form-heading { margin: 18px 0 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.qcard { padding: 0; } .qcard summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.qcard summary::-webkit-details-marker { display: none; }
.qcard[open] summary { border-bottom: 1px solid var(--line); }
.qcard .qform { padding: 16px; }
.qnum { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.qtitle { flex: 1; min-width: 0; }
.qform .if-choice { display: none; }
.qform[data-ftype="select"] .if-choice, .qform[data-ftype="radio"] .if-choice, .qform[data-ftype="checkbox"] .if-choice { display: block; }
.qform[data-ftype="heading"] .not-heading { display: none !important; }
.wrap-any { word-break: break-all; }
.btn:disabled { opacity: .4; cursor: default; }

/* Plans */
.plans { margin-top: 16px; }
.plan .price { margin: 4px 0 12px; } .plan .price b { font: 600 38px Fraunces, Georgia, serif; }
.plan-pro { border: 2px solid var(--accent); }
.plan-current { box-shadow: 0 0 0 3px var(--ok-soft); }
.checks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 7px; }
.checks li { padding-left: 24px; position: relative; font-size: 14px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.upsell { text-align: center; margin: 30px auto; padding: 34px; }

/* Time clock */
.clock { text-align: center; }
.clock-now { font: 600 48px Fraunces, Georgia, serif; margin: 4px 0; }
.clock-status { font-weight: 600; display: inline-block; padding: 6px 14px; border-radius: 999px; }
.clock-status.on { background: var(--ok-soft); color: var(--ok); }
.clock-status.on-break { background: var(--warn-soft); color: var(--warn); }
.clock-status.off { background: var(--surface-2); color: var(--muted); }
.clock .form { text-align: left; max-width: 360px; margin: 14px auto 0; }
.clock .actions { justify-content: center; }
.btn.big { width: 100%; padding: 16px; font-size: 17px; }
.mini-stats { margin-top: 18px; gap: 10px; }
.emp-row { margin-bottom: 10px; box-shadow: none; }

/* Church profiles */
.logo-row { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.logo-prev, .profile-logo { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; background: var(--surface-2); }
.profile-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; margin: 10px 0 24px; }
.profile-hero h1 { margin-bottom: 4px; }
.profile-logo { width: 96px; height: 96px; }
@media (max-width: 760px) { .profile-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.church-card { display: flex; gap: 14px; text-decoration: none; color: var(--ink); align-items: flex-start; }
.church-card:hover { border-color: var(--accent); }
.church-card img, .church-card .brand-mark { flex: none; width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }

/* Messages */
.pick-box { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.pick-box .check { margin-bottom: 6px; font-weight: 400; }
.msg-preview { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; white-space: normal; overflow-wrap: anywhere; }
.msg-preview.sms { max-width: 320px; border-radius: 16px 16px 16px 4px; }

.plan-top { box-shadow: 0 10px 30px rgba(91,42,78,.18); }

/* Newsletter editor */
.nl-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 18px; align-items: start; }
.nl-right { position: sticky; top: 120px; }
.nl-frame-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.nl-frame-bar { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.nl-frame { display: block; width: 100%; height: calc(100vh - 200px); min-height: 520px; border: 0; background: #ece6dc; }
@media (max-width: 960px) { .nl-editor { grid-template-columns: 1fr; } .nl-right { position: static; } .nl-frame { height: 640px; } }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 14px; }
.swatches label { margin: 0 !important; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; width: 0 !important; }
.swatches span { display: block; width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.swatches input:checked + span { box-shadow: 0 0 0 2px var(--ink); }
.add-blocks { display: flex; flex-wrap: wrap; gap: 6px; }
.nl-thumb { display: block; max-width: 100%; max-height: 160px; border-radius: 8px; margin-bottom: 8px; }
.tpl-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: -4px 0 14px; }
.send-card { border: 2px solid var(--accent); }
.nl-stats .stat b { font-size: 20px; }

/* Calendar */
.cal-bar { align-items: center; }
.cal-bar .seg { margin: 0; } .cal-bar .seg a { padding: 6px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; }
.cal-bar .seg a.on { background: var(--accent); color: var(--accent-ink); }
.cal-title { font: 600 19px Fraunces, Georgia, serif; min-width: 150px; text-align: center; }
.cal { padding: 0; overflow: hidden; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head div { padding: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.cal-day { min-height: 108px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.out { background: var(--surface-2); } .cal-day.out .cal-num { color: var(--muted); opacity: .6; }
.cal-num { font-size: 13px; font-weight: 600; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal-day.today .cal-num { background: var(--accent); color: var(--accent-ink); }
.cal-ev { display: block; font-size: 12px; padding: 2px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev:hover { filter: brightness(.95); }
.cal-ev.canceled, .ev-row.canceled strong { text-decoration: line-through; opacity: .6; }
.cal-mobile-list { display: none; }
@media (max-width: 760px) { .cal { display: none; } .cal-mobile-list { display: block; } }
.ev-day { margin: 18px 0 8px; font-size: 15px; color: var(--muted); font-family: Inter, sans-serif; font-weight: 600; }
.ev-row { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); padding: 14px 16px; margin-bottom: 8px; }
.ev-row:hover { border-color: var(--accent); }
.ev-time { width: 74px; flex: none; font-weight: 600; font-size: 14px; color: var(--accent); }
.ev-info { flex: 1; min-width: 0; }
.ev-meta { font-size: 15px; margin: 6px 0; }
.event-form[data-allday="1"] .time-only { display: none; }
.soon { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.soon.one-col { grid-template-columns: 1fr; }
@media (max-width: 860px) { .soon { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .soon { grid-template-columns: 1fr; } }
.soon-item { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); min-width: 0; }
.date-chip { flex: none; width: 48px; height: 52px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; align-content: center; font-size: 11px; text-transform: uppercase; line-height: 1.1; }
.date-chip b { font-size: 19px; display: block; }

/* Universal positioning */
.org-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.org-chip { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.org-chip b { color: var(--accent); }
.special { margin: 10px 0 24px; padding: 26px; display: grid; gap: 14px; }
.special h2 { font-size: 26px; margin: 0; }
.special h3 { margin-bottom: 6px; }

/* Chat rooms + video */
.chat-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.room-list { padding: 10px; position: sticky; top: 120px; }
.room-list-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 8px; }
.room-link { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; }
.room-link:hover { background: var(--surface-2); }
.room-link.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.room-link span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-link { margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; padding-top: 12px; }
.chat-main .chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.chat-main .chat-head h1 { font-size: 24px; margin: 0; }
@media (max-width: 760px) { .chat-layout { grid-template-columns: 1fr; } .room-list { position: static; display: flex; flex-wrap: wrap; gap: 4px; } .room-list-head { width: 100%; } .video-link { border: 0; margin: 0; padding-top: 8px; } }
.msg-body a { color: inherit; font-weight: 600; }
.meet-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.meet-row:last-child { border-bottom: 0; }
.meet-info { flex: 1; min-width: 0; }
.live-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); flex: none; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px var(--ok-soft); } }
.meet-form[data-provider="jitsi"] .if-link { display: none; }
.room-form:not([data-access="picked"]) .if-picked { display: none; }
.join-card { padding: 40px 20px; } .join-icon { font-size: 44px; }
.video-wrap { padding: 0; overflow: hidden; } .jitsi-frame { height: calc(100vh - 230px); min-height: 480px; }

/* App */
.app-banner { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.app-banner img, .app-icon { border-radius: 22%; flex: none; }
.app-banner > div:nth-child(2) { flex: 1; min-width: 0; }
.is-app [data-app-banner] { display: none; }
.app-hero { display: flex; gap: 22px; align-items: center; padding: 26px; }
.app-hero h1 { margin-bottom: 6px; }
@media (max-width: 600px) { .app-hero { flex-direction: column; text-align: center; } .app-hero .actions { justify-content: center; } }
.steps { padding-left: 20px; margin: 0; display: grid; gap: 8px; }
.kbd { display: inline-block; border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; font-size: 13px; background: var(--surface-2); }
.app-here { border: 2px solid var(--accent); }
.qr-card { display: flex; gap: 22px; align-items: center; }
.qr { background: #fff; padding: 10px; border-radius: 12px; flex: none; width: 188px; height: 188px; }
@media (max-width: 600px) { .qr-card { flex-direction: column; text-align: center; } }
.nav-app { font-size: 16px; }
.is-app .foot { padding-bottom: 40px; }

/* Membership cards */
.mcard-wrap { display: flex; justify-content: center; padding: 10px 0; }
.mcard { width: 100%; max-width: 460px; aspect-ratio: 85.6 / 54; border-radius: 18px; background: linear-gradient(135deg, #5b2a4e, #3b1a33); color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 18px 40px rgba(59,26,51,.28); display: grid; grid-template-rows: auto 1fr auto; padding: 18px 20px 0; }
.mcard-top { display: flex; align-items: center; gap: 10px; }
.mcard-logo { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; background: #fff; }
.mcard-org { font: 600 16px Fraunces, Georgia, serif; line-height: 1.15; }
.mcard-kind { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.mcard-mid { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mcard-name { font-weight: 600; font-size: 18px; }
.mcard-label { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-top: 6px; }
.mcard-no { font: 700 26px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; }
.mcard-since { font-size: 11px; opacity: .8; }
.mcard-qr { background: #fff; padding: 6px; border-radius: 8px; flex: none; }
.mcard-qr img, .mcard-qr canvas { display: block; width: 100px !important; height: 100px !important; }
.mcard-bar { background: #fff; margin: 10px -20px 0; padding: 8px 20px; display: flex; justify-content: center; }
.mcard-bar svg { height: 34px; max-width: 100%; }
.card-full { position: fixed; inset: 0; background: #fff; z-index: 50; display: grid; place-items: center; color: #2a2230; text-align: center; }
.card-full #qrBig { display: inline-block; padding: 12px; } .card-full .mcard-no { font-size: 34px; }
.card-sheet { display: grid; grid-template-columns: repeat(2, 85.6mm); gap: 6mm; justify-content: center; }
.mcard-print { width: 85.6mm; max-width: none; box-shadow: none; padding: 3.2mm 3.6mm 0; border-radius: 3.2mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.mcard-print .mcard-org { font-size: 11pt; } .mcard-print .mcard-name { font-size: 11pt; } .mcard-print .mcard-no { font-size: 15pt; }
.mcard-print .mcard-qr img, .mcard-print .mcard-qr canvas { width: 19mm !important; height: 19mm !important; }
.mcard-print .mcard-bar { margin: 1.5mm -3.6mm 0; padding: 1.2mm 3.6mm; } .mcard-print .mcard-bar svg { height: 7mm; }
@media print { .card-sheet { gap: 4mm; } .mcard-print { break-inside: avoid; } }
/* Scanner */
.scan-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .scan-layout { grid-template-columns: 1fr; } }
.reader { border-radius: 12px; overflow: hidden; background: var(--surface-2); min-height: 40px; margin-top: 4px; }
.reader video { border-radius: 12px; }
.scan-result { text-align: center; min-height: 200px; display: flex; flex-direction: column; justify-content: center; transition: background .2s; }
.scan-result.good { background: var(--ok-soft); border-color: var(--ok); } .scan-result.warn { background: var(--warn-soft); border-color: var(--warn); } .scan-result.bad { background: var(--err-soft); border-color: var(--err); }
.big-mark { font-size: 54px; line-height: 1; font-weight: 700; }
.good .big-mark { color: var(--ok); } .warn .big-mark { color: var(--warn); } .bad .big-mark { color: var(--err); }
.scan-result h2 { margin: 8px 0 0; } .scan-result .flash { margin: 10px auto 0; max-width: 380px; }
.trial-choices { margin-bottom: 14px; }

/* Nav "More" menu */
.nav-more { position: relative; }
.nav-more summary { list-style: none; cursor: pointer; padding: 7px 9px; border-radius: 8px; font-weight: 500; font-size: 14px; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary:hover, .nav-more summary.on { background: var(--surface-2); }
.nav-more-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 180px; display: grid; z-index: 20; }
.nav-more-menu a { padding: 8px 10px; }
@media (max-width: 1100px) { .nav-more-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 10px; } .nav-more[open] summary { background: none; } }
.mail-form:not([data-mode="custom"]) .if-custom-mail { display: none; }
.mail-form .choice { margin-bottom: 10px; align-items: flex-start; }

.only-in-app { display: none !important; }
.in-store-app .only-in-app { display: inline-block !important; }
.in-store-app .nav-app, .in-store-app [data-app-banner], .in-store-app [data-install] { display: none !important; }

/* Modes: daycare + salon */
.mode-panel { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-left: 4px solid var(--accent); }
.mode-panel h2 { margin: 0; }
.kid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.kid { margin: 0; display: grid; gap: 10px; }
.kid-head { display: flex; gap: 12px; align-items: center; }
.kid-head > div { flex: 1; min-width: 0; }
.kid-face { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.kid-here { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok-soft); }
.kid-here .kid-face { background: var(--ok); color: #fff; }
.kid-gone { opacity: .7; }
.kid-alert { color: var(--err); font-weight: 600; margin: 0; }
.kid-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kid-actions select { flex: 1; min-width: 140px; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.scan-kids { text-align: left; margin-top: 14px; display: grid; gap: 8px; }
.scan-kid { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; flex-wrap: wrap; }
.scan-kid select { padding: 6px; border-radius: 8px; border: 1px solid var(--line); }
.appt-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 960px) { .appt-layout { grid-template-columns: 1fr; } }
.appt-book { padding: 0; overflow-x: auto; }
.ab-head, .ab-body { display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(120px, 1fr)); }
.ab-head div { padding: 10px 8px; font-weight: 600; font-size: 13px; border-bottom: 1px solid var(--line); text-align: center; }
.ab-body { position: relative; }
.ab-times { position: relative; border-right: 1px solid var(--line); }
.ab-times span { position: absolute; right: 6px; font-size: 11px; color: var(--muted); transform: translateY(-6px); }
.ab-col { position: relative; border-right: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 83px, var(--line) 83px, var(--line) 84px); }
.ab-appt { position: absolute; left: 4px; right: 4px; border-radius: 8px; padding: 4px 7px; font-size: 12px; line-height: 1.3; overflow: hidden; text-decoration: none; color: var(--ink); background: var(--accent-soft); border-left: 3px solid var(--accent); }
.ab-appt span { color: var(--muted); }
.ab-appt.st-checked_in { background: var(--warn-soft); border-color: var(--warn); }
.ab-appt.st-completed { background: var(--ok-soft); border-color: var(--ok); }
.ab-appt.st-cancelled, .ab-appt.st-no_show { opacity: .45; text-decoration: line-through; }
.appt-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 8px; }
.appt-time { width: 70px; font-weight: 600; color: var(--accent); }
.appt-info { flex: 1; min-width: 200px; }
.appt-row.st-cancelled, .appt-row.st-no_show { opacity: .6; }
.checkout input, .checkout select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.svc-pick { display: grid; gap: 6px; margin: -4px 0 14px; }
.svc-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 6px; font-weight: 600; }
.choice.svc { align-items: center; } .choice.svc > span { flex: 1; } .svc-price { white-space: nowrap; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; margin: -4px 0 14px; }
.slot { padding: 9px 6px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 14px Inter, sans-serif; cursor: pointer; }
.slot:hover { border-color: var(--accent); } .slot.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* sign-in station signatures */
.sig-thumb { height: 34px; max-width: 120px; object-fit: contain; background: #fff; border: 1px solid #eee5d8; border-radius: 6px; vertical-align: middle; }
@media print { .sig-thumb { border: 0; height: 30px; } }

.give-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

/* invoices */
.invoice .inv-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.invoice .inv-title { font: 600 22px Fraunces, Georgia, serif; }
.neg { color: var(--err); }
@media print { .invoice { box-shadow: none; border: 0; } }

/* daycare daily reports */
.daily-list { list-style: none; padding: 0; margin: 0; }
.daily-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.daily-list li:last-child { border-bottom: 0; }
.daily-ico { font-size: 22px; width: 32px; text-align: center; flex: none; }
.daily-photo { max-width: 100%; max-height: 260px; border-radius: 10px; margin-top: 6px; }
.daily-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; cursor: pointer; background: var(--surface); }
.chip input { margin: 0; }
.linkish { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0; }
.kid-links { margin: 4px 0 8px; } .kid-links a { text-decoration: none; }
.lang-switch a { color: inherit; } .s-lang { opacity: .9; font-size: 15px; } .s-lang a { color: #fff; }

.feather { display: inline-block; vertical-align: -0.12em; }
.brand-mark .feather { width: 1.25em; height: 1.25em; }

.report-dir ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

/* block scheduler (assets/blocks.js) */
.bg { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: auto; max-height: 72vh; position: relative; }
.bg-head { display: flex; position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--line); min-width: max-content; }
.bg-corner { width: 64px; flex: none; position: sticky; left: 0; background: var(--surface); }
.bg-heads { display: flex; flex: 1; }
.bg-lh { flex: 1 0 140px; padding: 8px 8px 6px; border-left: 1px solid var(--line); font-size: 14px; display: flex; flex-direction: column; }
.bg-lh small { color: var(--muted); font-size: 12px; }
.bg-body { display: flex; min-width: max-content; }
.bg-times { width: 64px; flex: none; position: sticky; left: 0; z-index: 2; background: var(--surface); }
.bg-time { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.bg-time:first-child { transform: none; }
.bg-lanes { display: flex; flex: 1; position: relative; }
.bg-lane { flex: 1 0 140px; position: relative; border-left: 1px solid var(--line); touch-action: none; cursor: crosshair; }
.bg-lane.bg-off { background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 6px, var(--surface) 6px, var(--surface) 12px); cursor: not-allowed; }
.bg-hour { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); }
.bg-block { position: absolute; border-radius: 8px; padding: 3px 6px; font-size: 12px; line-height: 1.25; overflow: hidden; cursor: grab; box-shadow: 0 1px 3px rgba(0,0,0,.18); display: flex; flex-direction: column; user-select: none; }
.bg-block b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bg-block span { opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bg-block.locked { cursor: pointer; } .bg-block.faded { opacity: .55; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 6px, transparent 6px 12px); }
.bg-grip { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; cursor: ns-resize; }
.bg-grip::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 18px; margin-left: -9px; border-top: 2px solid currentColor; opacity: .6; }
.bg-ghost { background: var(--accent-soft); border: 2px dashed var(--accent); color: var(--accent); box-shadow: none; font-weight: 600; padding: 4px; pointer-events: none; }
.bg-now { position: absolute; left: 0; right: 0; border-top: 2px solid #d33; z-index: 1; pointer-events: none; }
.bg-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; font-size: 13px; }
.bg-legend span { display: inline-flex; align-items: center; gap: 5px; } .bg-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.bg-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.bg-modal { position: fixed; inset: 0; background: rgba(20,14,24,.5); display: none; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
.bg-modal.open { display: flex; } .bg-modal .card { width: min(520px, 100%); max-height: 92vh; overflow: auto; }

/* phone */
.phone-acts { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; } .phone-acts a { text-decoration: none; white-space: nowrap; }
.call-pop { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; gap: 8px; }
.call-card { display: grid; gap: 2px; background: #1f6f43; color: #fff !important; text-decoration: none; padding: 12px 16px; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.3); animation: ring 1s ease-in-out infinite alternate; min-width: 240px; }
.call-card small { opacity: .85; } @keyframes ring { from { transform: translateY(0); } to { transform: translateY(-3px); } }
tr.unread td { font-weight: 600; }

/* ---------- charts (reports) ---------- */
.chart { margin: 0 0 8px; --cs1: #2a78d6; --cs2: #eb6834; --cs3: #1baf7a; }
@media (prefers-color-scheme: dark) { .chart { --cs1: #3987e5; --cs2: #d95926; --cs3: #199e70; } }
.chart figcaption { font: 600 15px Inter, sans-serif; margin-bottom: 6px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .cg { stroke: var(--line); stroke-width: 1; }
.chart .ca { stroke: var(--muted); stroke-width: 1; opacity: .6; }
.chart .ct { fill: var(--muted); font: 12px Inter, system-ui, sans-serif; }
.chart .cn { fill: var(--ink); font-size: 13px; } .chart .cv { fill: var(--ink); font-size: 13px; font-weight: 600; }
.chart .cb.cs1, .chart .cp.cs1 { fill: var(--cs1); } .chart .cb.cs2, .chart .cp.cs2 { fill: var(--cs2); } .chart .cb.cs3, .chart .cp.cs3 { fill: var(--cs3); }
.chart .cp { stroke: var(--surface); stroke-width: 2; }
.chart .cl { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .cl.cs1 { stroke: var(--cs1); } .chart .cl.cs2 { stroke: var(--cs2); } .chart .cl.cs3 { stroke: var(--cs3); }
.chart .carea { fill: var(--cs1); opacity: .10; }
.chart .chit { fill: transparent; cursor: default; }
.chart .chit:hover { fill: var(--ink); fill-opacity: .04; }
.chart .cline:hover { fill-opacity: 0; }
.chart .cx { stroke: var(--muted); stroke-dasharray: 3 3; opacity: 0; pointer-events: none; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.chart-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart-legend i.cs1 { background: var(--cs1); } .chart-legend i.cs2 { background: var(--cs2); } .chart-legend i.cs3 { background: var(--cs3); }
.chart-empty p { margin: 8px 0 0; }
.chart-tip { position: fixed; z-index: 99; pointer-events: none; background: var(--ink); color: var(--bg); font: 12px/1.45 Inter, sans-serif; padding: 6px 9px; border-radius: 8px; white-space: pre; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.chart-tip b { font-weight: 600; }
.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .chart-row { grid-template-columns: 1fr; } }
@media print { .chart { break-inside: avoid; } .chart-tip { display: none; } }
