/* RentGhost — single stylesheet, no framework. */
:root {
  --brand: #206960;
  --brand-ink: #164c45;
  --brand-soft: #e5f0ee;
  --accent: #ff6d00;
  --accent-ink: #c25300;
  --accent-soft: #fff1e6;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --ink: #1b2422;
  --ink-2: #4a5553;
  --muted: #74807d;
  --line: #e4e2db;
  --line-2: #efede7;
  --ok: #15803d; --ok-soft: #e7f5ec;
  --warn: #b45309; --warn-soft: #fdf3e3;
  --bad: #b91c1c; --bad-soft: #fbeaea;
  --info: #1d4ed8; --info-soft: #e8eefc;
  --s1: #a7b8b4; --s2: var(--brand); --s3: var(--accent);
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 30, 28, .05), 0 4px 16px rgba(20, 30, 28, .04);
  --font: "Plus Jakarta Sans", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-bn: "Hind Siliguri", "Plus Jakarta Sans", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.app {
    --bg: #111615; --surface: #171d1c; --surface-2: #1b2221; --ink: #e8ecea; --ink-2: #c1c9c6; --muted: #8b9693;
    --line: #29312f; --line-2: #222a28; --brand-soft: #13302d; --ok-soft: #12291b; --warn-soft: #2e2312; --bad-soft: #321616; --info-soft: #172240;
    --s1: #4b5a6b; color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); }
body.loc-bn { font-family: var(--font-bn); font-size: 15.5px; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
h2 { font-size: 1.12rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .9em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; background: var(--line-2); padding: .1em .35em; border-radius: 4px; }
.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; } .r { text-align: right; } .pre { white-space: pre-line; }
.ok-t { color: var(--ok); } .bad-t { color: var(--bad); } .warn-t { color: var(--warn); }
.mt { margin-top: 1.2rem; }
.row { display: flex; align-items: center; } .gap { gap: .6rem; } .row-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.row-end { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; } .row-end .grow { flex: 1; min-width: 220px; }
.stack { display: grid; gap: .5rem; }
.inline { display: inline; } .hp { position: absolute; left: -9999px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem 1rem; border-radius: 10px; border: 1px solid var(--brand);
  background: var(--brand); color: #fff; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none; line-height: 1.2; white-space: nowrap; transition: background .15s, box-shadow .15s; }
.btn:hover { background: var(--brand-ink); color: #fff; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); color: var(--brand-ink); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-light { background: #fff; color: var(--brand-ink); border-color: #fff; } .btn-light:hover { background: #f0f7f6; color: var(--brand-ink); }
.btn-sm { padding: .38rem .7rem; font-size: .84rem; border-radius: 8px; }
.btn-lg { padding: .8rem 1.3rem; font-size: 1rem; }
.btn-block { width: 100%; }
.danger, .btn.danger { color: var(--bad); } .btn-ghost.danger:hover { background: var(--bad-soft); color: var(--bad); }
.danger-btn { background: var(--bad); border-color: var(--bad); } .danger-btn:hover { background: #8f1515; }

/* ---------- Forms ---------- */
.form { display: grid; gap: .9rem; }
.field { display: grid; gap: .3rem; min-width: 0; align-content: start; }
.field label { font-weight: 600; font-size: .86rem; color: var(--ink-2); }
.req { color: var(--bad); margin-left: 2px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .55rem .7rem; width: 100%; min-width: 0; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--brand); }
input[type="color"] { padding: .2rem; height: 2.4rem; }
input[type="file"] { padding: .4rem; background: var(--surface-2); }
textarea { resize: vertical; } .mono textarea, textarea.mono { font-family: ui-monospace, Menlo, monospace; font-size: .86rem; }
input:disabled, select:disabled { background: var(--line-2); color: var(--muted); }
.help { color: var(--muted); font-size: .82rem; }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.field.check label { display: flex; align-items: center; gap: .5rem; font-weight: 500; color: var(--ink); font-size: .92rem; }
fieldset { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: .8rem; margin: 0; } legend { font-weight: 600; font-size: .88rem; padding: 0 .3rem; }
.grid2 { align-items: start; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.grid3 { align-items: start; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.gap-lg { gap: 1.2rem; margin-bottom: 1.2rem; }
.form-actions { display: flex; gap: .6rem; flex-wrap: wrap; padding-top: .3rem; }
.form-actions.sticky { position: sticky; bottom: 0; background: var(--bg); padding: .8rem 0; }
.narrow-form { max-width: 760px; }
.charge-row { display: grid; grid-template-columns: 150px 1fr 130px; gap: .5rem; margin-bottom: .5rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.filters input, .filters select { width: auto; min-width: 140px; flex: 0 1 auto; }
.filters input[type="search"] { flex: 1 1 200px; }
.inline-label { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); }
.inline-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.inline-form select { width: auto; }
.add-item { display: grid; grid-template-columns: 150px 1fr 120px auto; gap: .5rem; margin-top: .8rem; }
.copy-row { display: flex; gap: .4rem; } .copy-row input { font-size: .8rem; }
.upload { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line-2); }
.upload input[type="text"] { flex: 1 1 160px; width: auto; } .upload input[type="file"] { flex: 2 1 220px; width: auto; }
.upload .help { flex-basis: 100%; }
.tiny { display: flex; gap: .25rem; align-items: center; font-size: .72rem; color: var(--muted); margin-top: .2rem; }

/* ---------- Cards, tables, lists ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.card.accent { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); background: linear-gradient(180deg, var(--brand-soft), var(--surface) 70%); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 1.2rem; }
.card .table-wrap { border: 0; border-radius: 0; margin: 0 -1.2rem; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: .62rem .85rem; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
.table th.r, .table td.r { text-align: right; }
.table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; background: var(--surface-2); white-space: nowrap; }
.loc-bn .table thead th { text-transform: none; font-size: .82rem; letter-spacing: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table tfoot th, .table tfoot td { background: var(--surface-2); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.util-table input.num { width: 92px; padding: .4rem .5rem; text-align: right; }
.tr-table textarea { min-width: 220px; font-size: .86rem; } .tr-table tr.overridden td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line-2); }
.list li:last-child { border-bottom: 0; }
.list li > a, .list li > span:first-child { display: grid; text-decoration: none; color: inherit; min-width: 0; }
.list li > a strong { color: var(--ink); } .list li > a:hover strong { color: var(--brand); }
.list small { color: var(--muted); font-size: .8rem; }
.list .r { display: grid; justify-items: end; gap: .15rem; flex: none; }
.list.compact li { padding: .35rem 0; font-size: .85rem; }
.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: .45rem 1rem; margin: 0; }
.kv dt { color: var(--muted); font-size: .86rem; } .kv dd { margin: 0; font-weight: 500; word-break: break-word; }
.badge { display: inline-block; padding: .14rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); } .badge.info { background: var(--info-soft); color: var(--info); }
.empty { text-align: center; padding: 2.4rem 1rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface-2); margin-bottom: 1.2rem; }
.empty .ghost-ic { width: 44px; height: 44px; color: var(--accent); stroke-width: 1.4; margin-bottom: .5rem; }
.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; overflow-x: auto; }
.tabs a { padding: .6rem .9rem; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--brand); border-color: var(--brand); }
.pager { display: flex; justify-content: center; gap: 1rem; align-items: center; margin: 1rem 0; font-size: .9rem; }
.flashes { margin-bottom: 1rem; display: grid; gap: .5rem; }
.flash { padding: .75rem 1rem; border-radius: var(--radius-sm); border: 1px solid; font-size: .92rem; word-break: break-word; }
.flash.success { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 25%, transparent); color: var(--ok); }
.flash.error { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 25%, transparent); color: var(--bad); }
.flash.info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 20%, transparent); color: var(--info); }
.banner { padding: .55rem 1.4rem; font-size: .88rem; } .banner.info { background: var(--info-soft); color: var(--info); } .banner.bad { background: var(--bad-soft); color: var(--bad); }
.content .banner { border-radius: var(--radius-sm); margin-bottom: 1rem; }
.danger-zone { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed var(--line); }

/* ---------- Stats & charts ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--line); }
.stat.ok::before { background: var(--ok); } .stat.bad::before { background: var(--bad); }
.stat-l { font-size: .78rem; color: var(--muted); font-weight: 600; }
.stat-v { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin: .15rem 0; font-variant-numeric: tabular-nums; }
.stat-s { font-size: .78rem; color: var(--muted); }
.progress { position: relative; height: 26px; background: var(--line-2); border-radius: 999px; overflow: hidden; margin: -.2rem 0 1.4rem; }
.progress i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #fff)); border-radius: 999px; }
.progress span { position: relative; display: block; line-height: 26px; padding-left: .8rem; font-size: .78rem; font-weight: 700; color: var(--ink); mix-blend-mode: normal; }
.meter { display: inline-block; width: 70px; height: 7px; border-radius: 99px; background: var(--line-2); overflow: hidden; vertical-align: middle; position: relative; }
.meter i { position: absolute; inset: 0 auto 0 0; background: var(--brand); }
.hbars { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.hbars li { display: grid; grid-template-columns: 120px 1fr auto; gap: .7rem; align-items: center; font-size: .88rem; }
.hbar { height: 10px; background: var(--line-2); border-radius: 99px; position: relative; overflow: hidden; } .hbar i { position: absolute; inset: 0 auto 0 0; background: var(--s3); border-radius: 99px; }
/* width utilities (no inline styles under CSP) */
.w0{width:0}.w5{width:5%}.w10{width:10%}.w15{width:15%}.w20{width:20%}.w25{width:25%}.w30{width:30%}.w35{width:35%}.w40{width:40%}.w45{width:45%}.w50{width:50%}.w55{width:55%}.w60{width:60%}.w65{width:65%}.w70{width:70%}.w75{width:75%}.w80{width:80%}.w85{width:85%}.w90{width:90%}.w95{width:95%}.w100{width:100%}
.chart { margin: 0; } .chart svg { width: 100%; height: auto; display: block; }
.chart .bar.s1 { fill: var(--s1); } .chart .bar.s2 { fill: var(--s2); } .chart .bar.s3 { fill: var(--s3); }
.chart .grid { stroke: var(--line-2); stroke-width: 1; } .chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: .4rem; }
.legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.sw.s1 { background: var(--s1); } .sw.s2 { background: var(--s2); } .sw.s3 { background: var(--s3); }

/* ---------- App shell ---------- */
body.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 1rem .8rem; display: flex; flex-direction: column; gap: .6rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo { padding: .2rem .5rem; }
.org-name { font-size: .78rem; color: var(--muted); padding: 0 .55rem .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--line-2); }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: .7rem; padding: .52rem .65rem; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9rem; }
.side nav a:hover { background: var(--line-2); color: var(--ink); }
.side nav a.on { background: var(--brand-soft); color: var(--brand-ink); } .side nav a.on .ic { color: var(--brand); }
.side-foot { margin-top: auto; display: grid; gap: .5rem; padding-top: .8rem; border-top: 1px solid var(--line-2); }
.me { display: grid; padding: 0 .5rem; text-decoration: none; color: var(--ink); } .me small { color: var(--muted); }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.6rem; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.top h1 { margin: 0; font-size: 1.25rem; flex: 1; min-width: 160px; }
.top .actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.content { padding: 1.4rem 1.6rem 3rem; max-width: 1320px; width: 100%; }
.navt { display: none; }
.navt-btn { display: none; cursor: pointer; padding: .4rem; border-radius: 8px; color: var(--ink); }
.side-scrim { display: none; }
.period-label { margin: -.4rem 0 .6rem; font-weight: 600; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 1.2rem; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.prop-card { text-decoration: none; color: inherit; margin: 0; transition: border-color .15s, transform .15s; } .prop-card:hover { border-color: var(--brand); transform: translateY(-1px); color: inherit; }
.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-top: .8rem; }
.mini-stats small { display: block; color: var(--muted); font-size: .75rem; } .mini-stats b { font-variant-numeric: tabular-nums; }
.inv-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.inv-totals { display: flex; gap: 1.6rem; } .inv-totals small { display: block; color: var(--muted); font-size: .76rem; } .inv-totals b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.quick { display: inline-block; position: relative; } .quick summary { list-style: none; } .quick summary::-webkit-details-marker { display: none; }
.quick-form { position: absolute; right: 0; top: 110%; z-index: 4; display: flex; gap: .4rem; background: var(--surface); padding: .6rem; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.quick-form input { width: 110px; } .quick-form select { width: 110px; }
.onboarding { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.checklist li { display: flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; }
.checklist li.done { background: var(--ok-soft); border-color: transparent; } .checklist li.done a { color: var(--ok); text-decoration: line-through; }
.checklist .dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--brand); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .7rem; margin-bottom: .8rem; }
.gallery figure { margin: 0; } .gallery img { aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; width: 100%; border: 1px solid var(--line); }
.gallery figcaption { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--muted); }
.usage { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: .6rem; } .usage small { display: block; color: var(--muted); font-size: .78rem; }
.util-rate .field { max-width: 260px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; }
.media-grid figure { margin: 0; padding: .6rem; } .media-grid img { aspect-ratio: 16/10; object-fit: cover; border-radius: 6px; width: 100%; }
.media-grid figcaption { display: flex; gap: .3rem; align-items: center; } .media-grid figcaption input { font-size: .75rem; padding: .3rem; }
.thumb { max-width: 220px; border-radius: 8px; border: 1px solid var(--line); display: block; margin-bottom: .4rem; }
.serp { border: 1px solid var(--line); border-radius: 8px; padding: .7rem; display: grid; gap: .1rem; font-family: arial, sans-serif; background: #fff; }
.serp-t { color: #1a0dab; font-size: 1.05rem; } .serp-u { color: #006621; font-size: .8rem; } .serp-d { color: #545454; font-size: .82rem; }
.preview { margin-top: .5rem; } .preview summary { cursor: pointer; font-weight: 600; color: var(--muted); } .preview .prose { border-top: 1px solid var(--line-2); margin-top: .6rem; padding-top: .6rem; }
.msgs li { display: flex; align-items: flex-start; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.logo-mark .ic { width: 20px; height: 20px; stroke-width: 2; }
.logo-img { height: 30px; width: auto; display: block; }
.side .logo-img { height: 26px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; font-size: .78rem; }
.lang a { padding: .22rem .6rem; text-decoration: none; color: var(--muted); font-weight: 600; } .lang a[aria-current] { background: var(--brand); color: #fff; }

/* ---------- Public site ---------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.pub-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2); }
.pub-head .row { height: 66px; justify-content: space-between; gap: 1rem; }
.pub-nav { display: flex; align-items: center; gap: 1.2rem; }
.pub-nav > a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .93rem; } .pub-nav > a:not(.btn):hover { color: var(--brand); }
.hero { padding: 4.2rem 0 3rem; background: radial-gradient(1200px 420px at 85% -10%, var(--brand-soft), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); line-height: 1.1; letter-spacing: -.03em; margin-bottom: .5em; }
.loc-bn .hero h1 { line-height: 1.3; letter-spacing: 0; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 36em; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 800; color: var(--accent-ink); margin-bottom: .6rem; display: inline-block; text-decoration: none; }
.loc-bn .eyebrow { text-transform: none; letter-spacing: .02em; font-size: .86rem; }
.cta-row { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.4rem 0 .6rem; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(15, 60, 55, .25), 0 0 0 8px color-mix(in srgb, var(--brand-soft) 60%, transparent); overflow: hidden; transform: rotate(.6deg); }
.mock-top { display: flex; gap: 6px; padding: .7rem .9rem; background: var(--surface-2); border-bottom: 1px solid var(--line-2); } .mock-top span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-body { padding: 1.1rem; } .mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.mock-stats div { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: .6rem .7rem; } .mock-stats small { display: block; color: var(--muted); font-size: .72rem; } .mock-stats b { font-size: 1.02rem; }
.mock-bar { height: 10px; border-radius: 99px; background: var(--line-2); margin: .9rem 0; position: relative; overflow: hidden; } .mock-bar i { position: absolute; inset: 0 17% 0 0; background: var(--brand); border-radius: 99px; }
.mock table { width: 100%; border-collapse: collapse; font-size: .86rem; } .mock td { padding: .5rem .3rem; border-top: 1px solid var(--line-2); }
.audiences { padding: 1.8rem 1.25rem; text-align: center; } .audiences ul { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.audiences li { padding: .45rem .95rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.section { padding: 3.2rem 1.25rem; } .section-head { text-align: center; max-width: 720px; margin: 0 auto 2rem; }
.section-head h2, .section h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); letter-spacing: -.02em; }
.section-head.row-between { max-width: none; text-align: left; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.feature .ic { width: 30px; height: 30px; color: var(--brand); background: var(--brand-soft); padding: 6px; border-radius: 9px; box-sizing: content-box; margin-bottom: .7rem; }
.feature p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.band { background: #173f3a; color: #e8efed; } .band .eyebrow { color: #ffb27a; } .band h2 { color: #fff; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: s; }
.steps li { border-top: 2px solid #3d4a47; padding-top: 1rem; } .steps span { font-size: 2rem; font-weight: 800; color: var(--accent); } .steps p { color: #b8c4c1; font-size: .94rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 20px 40px -20px rgba(15, 118, 110, .35); }
.ribbon { position: absolute; top: -12px; left: 1.5rem; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700; padding: .2rem .65rem; border-radius: 99px; }
.price { display: flex; align-items: baseline; gap: .3rem; margin: .5rem 0 0; } .price strong { font-size: 2rem; letter-spacing: -.03em; } .price span { color: var(--muted); }
.price-alt { color: var(--muted); font-size: .85rem; margin-bottom: 1rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.3rem; display: grid; gap: .45rem; flex: 1; } .ticks li { display: flex; gap: .5rem; font-size: .93rem; } .ticks .ic { color: var(--ok); }
.pay-note { display: flex; gap: .8rem; align-items: center; justify-content: center; color: var(--muted); font-size: .9rem; margin: 1rem 0 2rem; } .pay-note p { margin: 0; }
.compare { width: 100%; max-width: 760px; margin: 0 auto; border-collapse: collapse; } .compare th, .compare td { padding: .6rem; border-bottom: 1px solid var(--line); text-align: center; } .compare td:first-child { text-align: left; color: var(--ink-2); }
.faq { display: grid; gap: .6rem; } .faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.faq summary { cursor: pointer; font-weight: 700; } .faq details p { margin: .7rem 0 0; color: var(--ink-2); }
.cta-band { background: linear-gradient(135deg, var(--brand), var(--brand-ink)); color: #fff; border-radius: 20px; padding: 2.6rem 2rem; text-align: center; }
.cta-band h2 { color: #fff; } .cta-band p { color: #d6ece9; } .cta-band.small { padding: 1.6rem; margin-top: 2rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card img, .post-ph { aspect-ratio: 1200/630; object-fit: cover; width: 100%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.post-ph img { width: 64px; height: 64px; aspect-ratio: 1; opacity: .9; }
.post-card-b { padding: 1rem 1.1rem 1.2rem; } .post-card h3 { font-size: 1.06rem; } .post-card h3 a { color: var(--ink); text-decoration: none; } .post-card h3 a:hover { color: var(--brand); }
.search { display: flex; gap: .4rem; max-width: 420px; margin: 1rem auto 0; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 1rem; }
.chips a { padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink-2); font-size: .85rem; font-weight: 600; background: var(--surface); } .chips a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.post { padding-top: 2rem; padding-bottom: 2rem; } .post header h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); letter-spacing: -.02em; }
.cover { border-radius: var(--radius); margin: 1rem 0 1.6rem; width: 100%; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; } .crumbs a { color: var(--muted); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.5rem; } .toc ol { margin: .4rem 0 0; padding-left: 1.2rem; }
.prose { font-size: 1.05rem; line-height: 1.75; } .prose h2 { font-size: 1.45rem; margin-top: 1.8em; } .prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.prose img { border-radius: 10px; } .prose blockquote { margin: 1.2em 0; padding: .3em 1.1em; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 0 8px 8px 0; }
.prose pre { background: var(--ink); color: #e8efed; padding: 1rem; border-radius: 10px; overflow-x: auto; } .prose pre code { background: none; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; } .prose th, .prose td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; } .prose .table-wrap { margin: 1em 0; }
.tags span { display: inline-block; margin: 0 .4rem .4rem 0; color: var(--muted); font-size: .88rem; }
.pub-foot { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2.6rem 0 1.4rem; background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; } .foot-grid h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.foot-grid a:not(.logo) { display: block; color: var(--ink-2); text-decoration: none; padding: .18rem 0; font-size: .93rem; } .foot-grid a:hover { color: var(--brand); } .foot-grid .lang { margin-top: .6rem; } .foot-grid .lang a { display: inline-block; }
.pub-foot .foot-grid .lang a { display: inline-block; padding: .22rem .6rem; font-size: .78rem; color: var(--muted); }
.pub-foot .foot-grid .lang a[aria-current] { color: #fff; }
.side-foot .lang { justify-self: start; }
.copy { padding-top: 1.6rem; font-size: .85rem; color: var(--muted); }
.auth { min-height: calc(100vh - 66px - 260px); display: grid; place-items: center; padding: 3rem 1rem; }
.auth-card { width: 100%; max-width: 460px; padding: 2rem; } .auth-card h1 { text-align: center; font-size: 1.5rem; }
.ghost-lg { width: 44px; height: 44px; color: var(--accent); display: block; margin: 0 auto .8rem; } .ghost-xl { width: 72px; height: 72px; color: var(--accent); }
.pad-xl { padding: 5rem 1rem; }

/* ---------- Print documents ---------- */
body.print { background: #eceae4; color: #111; }
.print-bar { display: flex; gap: .6rem; justify-content: center; padding: 1rem; }
.sheet { background: #fff; max-width: 820px; margin: 0 auto 3rem; padding: 2.4rem 2.6rem; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.08); }
.doc-head { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 2px solid #111; padding-bottom: 1rem; margin-bottom: 1.2rem; }
.doc-org { font-size: 1.3rem; margin: 0 0 .3rem; } .doc-title { text-align: right; } .doc-title h1 { font-size: 1.6rem; margin: 0; letter-spacing: .04em; text-transform: uppercase; } .loc-bn .doc-title h1 { text-transform: none; letter-spacing: 0; }
.doc-title p { margin: .2rem 0; }
.doc-meta { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1rem; margin-bottom: 1.4rem; } .doc-meta.four { grid-template-columns: repeat(4, 1fr); }
.doc-meta small { display: block; color: #666; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; } .doc-meta span { display: block; font-size: .86rem; color: #444; }
.doc-table { width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; } .doc-table th, .doc-table td { padding: .55rem .4rem; border-bottom: 1px solid #e5e5e5; text-align: left; } .doc-table .r { text-align: right; }
.doc-table thead th { font-size: .76rem; text-transform: uppercase; color: #666; border-bottom: 1px solid #111; } .doc-table tfoot th, .doc-table tfoot td { border-bottom: 0; }
.doc-table tr.grand th { font-size: 1.1rem; border-top: 2px solid #111; } .doc-table.small { font-size: .88rem; }
.doc-dl { display: grid; grid-template-columns: 160px 1fr; gap: .4rem 1rem; } .doc-dl dt { color: #666; } .doc-dl dd { margin: 0; font-weight: 600; }
.receipt-amount { text-align: center; padding: 1.4rem; background: #f4faf9; border-radius: 10px; margin-bottom: 1.4rem; } .receipt-amount .big { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; }
.sign { margin-top: 3rem; display: flex; justify-content: flex-end; } .sign span { border-top: 1px solid #111; padding-top: .3rem; min-width: 200px; text-align: center; font-size: .85rem; color: #555; }
.note { background: #fafaf7; border: 1px solid #eee; border-radius: 8px; padding: .8rem 1rem; margin-bottom: 1rem; }
.pay-box { border: 2px solid var(--brand); border-radius: 12px; padding: 1rem 1.2rem; margin: 1rem 0 1.4rem; background: #f4faf9; }
.doc-foot { border-top: 1px solid #ddd; padding-top: .8rem; margin-top: 1rem; font-size: .85rem; color: #555; } .powered { margin-top: 1.4rem; text-align: center; }
@media print {
  body.print { background: #fff; } .no-print, .print-bar { display: none !important; } .sheet { box-shadow: none; margin: 0; padding: 0; max-width: none; }
  a { color: inherit; text-decoration: none; } .badge { border: 1px solid #999; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) { .grid-main { grid-template-columns: 1fr; } .feature-grid, .post-grid { grid-template-columns: repeat(2, 1fr); } .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  body.app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 30; transform: translateX(-105%); transition: transform .2s; height: 100%; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  #sidet:checked ~ .side { transform: none; }
  #sidet:checked ~ .side-scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 25; }
  .navt-btn { display: inline-flex; }
  .top { padding: .8rem 1rem; } .content { padding: 1rem 1rem 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; } .hero { padding-top: 2.6rem; }
  .pub-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); padding: 1rem 1.25rem 1.4rem; border-bottom: 1px solid var(--line); gap: .9rem; }
  #navt:checked ~ .pub-nav { display: flex; }
  .pub-head .navt-btn { display: inline-flex; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .feature-grid, .post-grid, .steps { grid-template-columns: 1fr; }
  .add-item { grid-template-columns: 1fr 1fr; } .add-item input[name="description"] { grid-column: span 2; }
  .charge-row { grid-template-columns: 1fr 1fr; } .charge-row input[name="charge_label[]"] { grid-column: span 2; order: 3; }
  .doc-meta, .doc-meta.four { grid-template-columns: 1fr 1fr; } .sheet { padding: 1.2rem; border-radius: 0; }
  .inv-totals { gap: 1rem; } .stat-v { font-size: 1.15rem; }
  .foot-grid { grid-template-columns: 1fr; } .hbars li { grid-template-columns: 90px 1fr auto; }
  .top h1 { font-size: 1.08rem; }
}

/* Brand accents (logo orange) */
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; } .btn-accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.hero .btn-lg:not(.btn-ghost) { background: var(--accent); border-color: var(--accent); } .hero .btn-lg:not(.btn-ghost):hover { background: var(--accent-ink); }
.cta-band .btn-light { color: var(--accent-ink); }
.side nav a.on { box-shadow: inset 3px 0 0 var(--accent); }
.feature .ic { color: var(--accent-ink); background: var(--accent-soft); }
.checklist .dot { border-color: var(--accent); }
address { font-style: normal; line-height: 1.7; }
.contact-card { margin-top: 1.2rem; } .contact-card .ic { color: var(--accent); }
.help-guide h1 { font-size: 1.5rem; } .help-guide { max-width: 880px; }
.pub-head .logo-img { height: 32px; }

.offer-bar { background: var(--accent); color: #fff; font-weight: 600; font-size: .9rem; padding: .5rem 0; text-align: center; }
.offer-bar a { color: #fff; } .offer-bar code, .offer-banner code { background: rgba(255,255,255,.25); color: inherit; font-weight: 700; }
.offer-banner { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; background: var(--accent-soft); color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: var(--radius-sm); padding: .7rem 1rem; margin-bottom: 1rem; font-weight: 600; }
.offer-banner code { background: #fff; }

.portal-nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.portal-nav > a { color: var(--ink-2); text-decoration: none; font-weight: 600; } .portal-nav > a.on { color: var(--brand); box-shadow: inset 0 -2px 0 var(--accent); }
.portal-main { padding-top: 1.6rem; padding-bottom: 3rem; } .portal .pub-head .row { height: auto; min-height: 66px; flex-wrap: wrap; padding: .5rem 0; }
