:root {
  --bg: #e4ebe6;
  --paper: #f3f7f4;
  --card: #ffffff;
  --ink: #1a221d;
  --muted: #5f6f68;
  --line: #d9e2dc;
  --green: #1c6b45;
  --green-dark: #114b30;
  --green-soft: #e5f4ec;
  --amber: #8a5a10;
  --amber-soft: #fff4df;
  --red: #8f2d2d;
  --red-soft: #fdecec;
  --blue: #1d4e89;
  --blue-soft: #e7f0fa;
  --sand: #eef2ef;
  --radius: 14px;
  --gap: 14px;
  --shadow: 0 1px 2px rgba(20, 40, 30, 0.04), 0 10px 28px rgba(20, 40, 30, 0.05);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100dvh; background: var(--bg); color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1 {
  font-family: Manrope, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h2 { font-size: 18px; font-weight: 800; }
h3 { font-size: 15px; font-weight: 800; }

.app {
  width: min(1440px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  display: grid;
  grid-template-columns: 260px 1fr;
}
body.signed-out .app { display: block; background: transparent; }
body.signed-out aside { display: none; }

aside {
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: #eef3ef;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mark { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; background: white; display: block; }
.brand { display: flex; gap: 10px; align-items: flex-start; }
.logo-preview { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: white; }
.certificate { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 8px; box-shadow: var(--shadow); }
.certificate h2 { font-family: Fraunces, Georgia, serif; font-size: 28px; font-weight: 560; }
.owner-sheet { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 18px; box-shadow: var(--shadow); max-width: 860px; }
.sheet-banner { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 2px solid #d7e4dc; }
.sheet-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sheet-brand .mark { width: 56px; height: 56px; flex: none; }
.sheet-kicker { margin: 0 0 2px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sheet-brand h2 { font-family: Fraunces, Georgia, serif; font-weight: 560; letter-spacing: 0.02em; font-size: 22px; margin: 0; text-transform: none; }
.sheet-sub { margin: 4px 0 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.sheet-period { text-align: right; flex: none; }
.sheet-period span { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sheet-period strong { display: block; margin-top: 4px; font-size: 16px; font-weight: 800; }
.sheet-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 0 0 16px; }
.sheet-meta-grid span { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.sheet-meta-grid strong { display: block; margin-top: 2px; font-size: 14px; font-weight: 800; }
.sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sheet-head h2 { font-family: Fraunces, Georgia, serif; font-weight: 560; letter-spacing: 0.04em; font-size: 20px; text-transform: uppercase; }
.sheet-head p { font-weight: 800; letter-spacing: 0.04em; }
.sheet-head .mark { width: 56px; height: 56px; }
.sheet-meta { font-weight: 800; letter-spacing: 0.03em; margin: 0 0 8px; }
.owner-sheet table { min-width: 0; width: 100%; border-collapse: collapse; }
.owner-sheet th, .owner-sheet td { border: 1px solid #c9d2cc; padding: 8px 10px; vertical-align: top; }
.owner-sheet thead th { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; background: #f3f7f4; }
.owner-sheet tfoot td { font-weight: 800; background: #eef5f1; }
.sheet-vacant td { color: var(--muted); }
.sheet-work { max-width: 180px; font-size: 12px; }
.sheet-notes { margin-top: 12px; padding: 10px 12px; border: 1px dashed #c9d2cc; border-radius: 12px; background: #fafcfb; }
.sheet-notes-title { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sheet-note { font-weight: 700; margin: 0 0 4px; font-size: 13px; }
.sheet-foot { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 22px; margin-top: 18px; }
.sheet-summary, .sheet-sign { border: 1px solid #d7e4dc; border-radius: 14px; padding: 14px; background: #fbfdfc; }
.sheet-line { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; font-weight: 700; padding: 5px 0; border-bottom: 1px solid #edf2ef; }
.sheet-line strong { font-variant-numeric: tabular-nums; }
.sheet-line.sheet-subtotal { margin-top: 4px; border-top: 1px solid #c9d2cc; border-bottom: 1px solid #c9d2cc; padding-top: 8px; padding-bottom: 8px; }
.sheet-line.sheet-balance { margin-top: 8px; border: 0; background: var(--green-soft); border-radius: 10px; padding: 10px 12px; color: var(--green-dark); }
.sheet-hint { margin: 10px 0 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.sheet-sign p { display: grid; gap: 2px; margin: 0 0 12px; }
.sheet-sign span { font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.sheet-sign strong { font-size: 14px; font-weight: 800; }
.sheet-blank { font-weight: 600; color: var(--muted); }
.sheet-sign-line { margin-top: 18px !important; }
.cert-no { font-weight: 800; letter-spacing: 0.04em; margin: 4px 0 12px; }
.certificate .facts { margin: 8px 0 14px; }
.slip-logos .mark { width: 56px; height: 56px; }
.brand strong { display: block; font-size: 14px; line-height: 1.2; }
.brand small, .who span, .side-building span, .side-building small, .eyebrow, .hint, .stat p, .facts span, .bar-col span, .occ-row {
  color: var(--muted);
}
.brand small, .side-company { display: block; font-size: 12px; }
.who {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}
.who span { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.who strong { display: block; margin: 2px 0; font-size: 14px; font-weight: 800; }
.who span:last-child { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 700; }
.side-building {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--green-soft);
  border: 1px solid #d5e5db;
}
.side-building span { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.side-building strong { display: block; margin: 2px 0; font-size: 14px; }
.side-building small { display: block; font-size: 12px; }
nav { display: grid; gap: 2px; }
nav button, .btn, .block, .desk button, .slot {
  border: 0;
  background: transparent;
}
.nav-label {
  margin: 10px 0 0;
  padding: 6px 12px 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
nav button {
  text-align: left;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
}
nav button.on { background: var(--green-soft); color: var(--green-dark); }
.signout { margin-top: auto; align-self: flex-start; }

main { padding: 22px 22px 72px; }
.page-head, .toolbar, .sheet-head, .split, .job-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.page-head { margin-bottom: 14px; align-items: center; flex-wrap: wrap; }
.page-head > div { min-width: 0; flex: 1 1 220px; }
.page-head > .btn { flex: 0 0 auto; }
.page-desc { margin-top: 4px; font-size: 14px; color: var(--muted); max-width: 62ch; }
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hint { font-size: 13px; margin-top: 6px; color: var(--muted); }
.section-block { margin-top: 22px; }
.section-block > .toolbar { margin-top: 0; }
.empty-panel {
  padding: 28px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fafcfb;
}
.empty-panel strong { display: block; margin-bottom: 4px; }
.form-section {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.form-section:first-of-type { border-top: 0; padding-top: 0; }
.form-sticky {
  position: sticky;
  bottom: 0;
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 0 4px;
  background: linear-gradient(180deg, rgba(243, 247, 244, 0), var(--paper) 28%);
}
.more-wrap { position: relative; display: inline-flex; }
.more-wrap summary {
  list-style: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.more-wrap summary::-webkit-details-marker { display: none; }
.more-wrap[open] summary { border-color: #c5d8cc; }
.more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 8;
  min-width: 140px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
  display: grid;
  gap: 2px;
}
.more-menu button {
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
}
.more-menu button:hover { background: var(--green-soft); }
.list-table { min-width: 720px; }
.list-table.staff-table { min-width: 760px; }
.block:hover, .slot:hover { border-color: #c5d8cc; background: #fbfdff; }
.row-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stats, .desk, .docs, .facts, .grid-2 { display: grid; gap: 12px; }
.stats { grid-template-columns: repeat(4, 1fr); margin: 14px 0; }
.report-stats { grid-template-columns: repeat(5, 1fr); }
.report-stats .stat { padding: 12px 12px; }
.report-stats .stat strong { font-size: 22px; white-space: nowrap; }
.desk, .docs, .grid-2 { grid-template-columns: 1fr 1fr; }
.facts { grid-template-columns: 1fr 1fr; }
.facts > div > span { display: block; font-size: 12px; }
.stat, .card, .panel, .slot, .block, .desk button, .gate, .sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.stat, .card { padding: 14px 16px; }
.card > strong { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.stat strong, .desk button strong, .occ strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat span, .desk button span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.occ { display: flex; gap: 18px; margin: 8px 0 4px; }
.occ span { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.dash-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dash-kpis .stat strong {
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}
.dash-kpis .stat.amber strong { color: var(--amber); }
.dash-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin: 4px 0 16px;
  padding: 20px 20px 18px;
  border-radius: 20px;
  border: 1px solid #d5e5db;
  background:
    radial-gradient(circle at 100% 0%, rgba(28, 107, 69, 0.12), transparent 42%),
    linear-gradient(135deg, #f7fbf8 0%, #eef5f0 55%, #e7f0ea 100%);
  box-shadow: var(--shadow);
}
.dash-hero h2 {
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2px 0 6px;
}
.dash-hero .hint { max-width: 52ch; }
.dash-hero .actions { margin: 0; flex: none; }
.setup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}
.setup-steps .step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.setup-steps .step:hover { border-color: #c5d8cc; }
.setup-steps em {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
  background: var(--green);
  color: white;
}
.setup-steps strong { display: block; font-size: 15px; }
.setup-steps p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.step-go { color: var(--green-dark); font-size: 13px; font-weight: 800; }
.dash-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr); gap: 18px; align-items: start; }
.property-list { display: grid; gap: 12px; align-content: start; }
.property {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  gap: 10px;
}
.property-top { display: flex; gap: 12px; align-items: center; }
.property-top strong { display: block; font-size: 16px; }
.property-top p, .property-meta, .occ-row { color: var(--muted); font-size: 13px; }
.property-top p { margin: 0; }
.monogram {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: none;
}
.occ-row { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.occ-bar { height: 8px; border-radius: 99px; background: #e6eee9; overflow: hidden; }
.occ-bar span { display: block; height: 100%; min-width: 0; background: var(--green); }
.property-meta { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.dash-side { padding: 16px; display: grid; gap: 8px; align-content: start; }
.dash-side .toolbar { margin: 0 0 4px; }
.dash-side .hint { margin: 0 0 4px; }
.dash-side .facts { margin: 4px 0 8px; }
.dash-side .facts strong { display: block; font-size: 15px; margin-top: 2px; }
.due-row, .stack-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
}
.due-row .due-amount, .stack-row .due-amount {
  flex: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
}
.dash-activity { margin-top: 18px; }
.dash-activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash-activity .panel { padding: 16px; display: grid; gap: 8px; align-content: start; }
.dash-activity .toolbar { margin: 0 0 4px; }
.empty-state { padding: 18px 16px; }
.empty-state strong { display: block; font-size: 16px; }
.staff-filters { flex-wrap: wrap; gap: 10px; }
.staff-table th, .staff-table td { vertical-align: middle; }
.actions.tight { margin-top: 0; gap: 6px; flex-wrap: nowrap; }
.actions.tight .btn { padding: 6px 10px; font-size: 13px; }
.staff-profile { display: grid; gap: 14px; }
.staff-hero-card { padding: 16px; }
.staff-photo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  background: white;
  border: 1px solid var(--line);
}
.monogram.large { width: 72px; height: 72px; border-radius: 16px; font-size: 28px; }
.staff-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.staff-form { max-width: 920px; }
.panel.sensitive { border-color: #d7e0d9; background: #fbfdfc; }
.doc-list, .activity-list { margin: 8px 0 0; padding-left: 18px; }
.doc-list li, .activity-list li { margin: 4px 0; }
.due-row-alert td { background: #fff7f7; }
.vacant-row td { background: #fffaf0; }
.building-form { max-width: 860px; }
.ewa-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.ewa-main {
  display: block;
  text-align: left;
  width: 100%;
}
.ewa-main p { margin-top: 2px; color: var(--muted); font-weight: 600; }
.ewa-side {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 140px;
}
.ewa-side strong { font-size: 15px; white-space: nowrap; }
.tenant-table { min-width: 680px; }
@media (max-width: 900px) {
  .staff-facts { grid-template-columns: 1fr 1fr; }
  .ewa-row { grid-template-columns: 1fr; }
  .ewa-side { justify-items: start; min-width: 0; }
}
.desk { margin-top: 8px; }
.desk button { text-align: left; padding: 16px; }
.desk button em { font-style: normal; color: var(--muted); font-size: 13px; font-weight: 700; }

.toolbar { align-items: center; margin: 8px 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button, .btn {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
}
.chips button.on, .btn.primary { background: var(--green); color: white; border-color: var(--green); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--muted); padding-inline: 8px; }
.btn.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, var(--line)); }
.btn.full { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.back { margin-bottom: 8px; }
.impluse-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--green) 28%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--green-soft) 70%, white);
  font-size: 13px;
}
.impluse-bar .actions { margin-top: 0; }

.building-pick { width: 100%; }
.building-pick select { width: 100%; }
.side-add { width: 100%; text-align: left; }
.picker { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--muted); }
.picker input, .picker select, .field input, .field select, .field textarea {
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  background: white;
}
.picker input, .picker select { border-radius: 999px; padding: 8px 12px; }
.form { display: grid; gap: 12px; margin-top: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 800; color: var(--muted); }
.field input, .field select, .field textarea { border-radius: 12px; padding: 10px 12px; }
.field textarea { min-height: 90px; resize: vertical; }
.item-list { margin: 8px 0 0; padding-left: 18px; }
.item-list li { margin: 3px 0; }
.card h3 { margin: 14px 0 0; font-size: 15px; }
.grid-2 .wide { grid-column: 1 / -1; }
.form-error { color: var(--red); font-weight: 800; min-height: 0; }
.form-error:empty { display: none; }

.panel { padding: 4px 4px 8px; overflow: hidden; }
.table-wrap { overflow-x: auto; }
.statement table { min-width: 0; }
.statement { max-width: 640px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 800; background: #f7faf8; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.due { color: var(--amber); font-weight: 800; }
tr.current td { background: #f3faf6; }
tr.total td { font-weight: 800; background: #f4f7f5; border-bottom: 0; }
.linkish { background: none; border: 0; padding: 0; font-weight: 800; color: var(--green-dark); }

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
  background: var(--sand);
  color: var(--muted);
  white-space: nowrap;
}
.badge.paid, .badge.scheduled, .badge.occupied, .badge.done, .badge.active { background: var(--green-soft); color: var(--green-dark); }
.badge.partial, .badge.open, .badge.requested, .badge.quoted, .badge.leave, .badge.vacant, .badge.unpaid { background: var(--amber-soft); color: var(--amber); }
.badge.quote_accepted, .badge.lpo_approved { background: var(--blue-soft); color: var(--blue); }
.badge.declined, .badge.inactive, .badge.overdue { background: var(--red-soft); color: var(--red); }

.bill-alert-wrap { margin: 0 0 16px; }
.bill-alert-wrap h2 { margin: 0 0 8px; font-size: 16px; }
.bill-alerts { display: grid; gap: 8px; }
.bill-alert {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e2c48a;
  background: #fff8ea;
  box-shadow: none;
  cursor: pointer;
}
.bill-alert.overdue {
  border-color: #e3b0b0;
  background: var(--red-soft);
}
.bill-alert strong { display: block; font-size: 14px; }
.bill-alert p { margin: 4px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.bill-alert.overdue p { color: var(--red); }
.bill-overdue-banner {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
}
.overdue-date { color: var(--red); }
.prompt-list { margin: 10px 0 14px; padding-left: 18px; display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.prompt-bill {
  margin: 10px 0 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--sand);
  display: grid;
  gap: 6px;
}
.prompt-bill p { margin: 0; font-weight: 700; }

.pay-months { display: grid; gap: 14px; margin-top: 16px; }
.pay-month {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.pay-month-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.pay-month-head h2 { margin: 0; font-size: 18px; }
.pay-month-stats { margin: 0 0 4px; }
.pay-month-stats .stat { padding: 10px 12px; }
.pay-month-sub {
  margin: 8px 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pay-month-table { width: 100%; }
.pay-month-table th, .pay-month-table td { font-size: 13px; }
.actions.tight { gap: 8px; flex-wrap: wrap; }

.block, .slot {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  margin-top: 8px;
  box-shadow: none;
}
.block p, .slot p { color: var(--muted); font-size: 14px; }
.day { margin-top: 16px; }
.slot { grid-template-columns: 92px 1fr auto; }
.slot time { font-weight: 800; color: var(--green-dark); }

.chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; margin: 8px 0 16px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.bar { width: 100%; max-width: 28px; border-radius: 7px 7px 2px 2px; background: var(--green); }
.bar.water { background: #3d7ea6; }
.bar-col span { font-size: 10px; margin-top: 4px; }

.timeline { list-style: none; margin: 12px 0; padding: 0; }
.timeline li { padding: 8px 0 8px 14px; border-left: 2px solid var(--line); }
.meter { margin-top: 12px; }
.meter h3 { margin-bottom: 8px; }
.eva-live { min-height: 1.2em; font-weight: 800; }
.proof { display: block; max-width: 460px; border-radius: 12px; border: 1px solid var(--line); background: white; }
.paper-text { white-space: pre-wrap; background: var(--sand); border-radius: 12px; padding: 12px; font: inherit; font-size: 14px; }
.years { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.decline { margin-top: 18px; }
.see-list { display: grid; gap: 8px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.check input { width: 18px; height: 18px; }
.company-open { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.company-open summary { cursor: pointer; font-weight: 800; color: var(--green-dark); }
.notice {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}
.access-steps {
  margin: 8px 0 18px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.access-steps li { margin: 4px 0; }

.gate-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.gate { width: min(440px, 100%); padding: 22px; }
.demo-row { display: grid; gap: 8px; margin-top: 14px; }

#sheet:empty { display: none; }
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 28, 22, 0.46);
  display: grid;
  align-items: end;
  z-index: 20;
  padding: 12px;
}
.sheet { width: min(640px, 100%); margin: 0 auto; padding: 16px 16px 22px; max-height: min(92dvh, 860px); overflow: auto; }
.sheet-head { align-items: center; margin-bottom: 8px; }
.sheet-head h2 { font-family: Fraunces, Georgia, serif; font-size: 28px; font-weight: 560; }

#toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 40;
  font-weight: 700;
}
#toast.show { opacity: 1; }
#print-root { display: none; }
.invoice-doc {
  max-width: 760px;
  margin-top: 8px;
  padding: 22px 22px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.inv-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.inv-brand { display: flex; gap: 12px; align-items: flex-start; }
.inv-brand .mark { width: 56px; height: 56px; }
.inv-brand strong { display: block; color: var(--green-dark); font-size: 18px; }
.inv-brand p { margin: 2px 0 0; font-size: 13px; }
.inv-meta { text-align: right; }
.inv-title {
  margin: 0;
  color: var(--green-dark);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.inv-number { margin: 4px 0 8px; font-size: 16px; font-weight: 800; }
.inv-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 18px 0;
}
.inv-details span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.inv-details strong { display: block; margin-top: 3px; font-size: 14px; }
.inv-table { min-width: 0; }
.inv-table th { color: var(--green-dark); }
.inv-table td, .inv-table th { padding: 12px 10px; }
.inv-total td { background: var(--green-soft); font-weight: 800; }
.inv-balance td {
  background: #e8f5ee;
  color: var(--green-dark);
  font-size: 17px;
  font-weight: 800;
  border-bottom: 0;
}
.inv-pay {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.inv-pay h3 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.inv-pay p { margin: 4px 0; font-size: 14px; color: var(--muted); }
.inv-footer-note { margin-top: 10px !important; color: var(--ink) !important; font-weight: 800; }
.inv-next { margin-top: 10px !important; color: var(--ink) !important; font-weight: 700; }
.pay-method {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7faf8;
}
.pay-method strong { color: var(--green-dark); }
.pay-method p { margin: 4px 0; }
.inv-pay-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.receipt-panel { margin-top: 18px; }
.claim-card { border-color: #e2c48a; background: #fffaf0; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 6px; }
.print-invoice { box-shadow: none; border: 0; border-radius: 0; max-width: none; }
@media (max-width: 800px) {
  .inv-head { flex-direction: column; }
  .inv-meta { text-align: left; }
  .inv-details { grid-template-columns: 1fr 1fr; }
}
.slip { max-width: 720px; }
.slip h1 { font-size: 28px; margin: 4px 0; }
.slip table { min-width: 0; }
.slip td:last-child, .slip th:last-child { text-align: right; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

@media (min-width: 800px) {
  .backdrop { align-items: center; }
}
@media (max-width: 1100px) {
  .report-stats, .dash-kpis { grid-template-columns: repeat(3, 1fr); }
  .dash-layout, .setup-steps, .dash-activity-grid { grid-template-columns: 1fr; }
  .dash-hero { flex-direction: column; align-items: stretch; }
}
@media (max-width: 900px) {
  .stats, .years, .report-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .app { grid-template-columns: 1fr; }
  aside {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--paper);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px 12px 8px;
  }
  .who { display: none; }
  .signout { margin: 0; align-self: center; }
  nav { grid-column: 1 / -1; display: flex; overflow: auto; }
  .nav-label { display: none; }
  nav button { width: auto; white-space: nowrap; }
  main { padding: 16px 14px 48px; }
  h1 { font-size: 30px; }
  .docs, .facts, .grid-2, .desk, .slot, .sheet-foot, .sheet-meta-grid, .sheet-banner { grid-template-columns: 1fr; }
  .sheet-banner { display: grid; }
  .sheet-period { text-align: left; }
  .slot time { font-size: 18px; }
}
@media (max-width: 560px) {
  .stats, .years { grid-template-columns: 1fr; }
}
@media print {
  body { background: white; }
  .app, #sheet, #toast { display: none !important; }
  #print-root { display: block; padding: 12px; }
  .owner-sheet, .invoice-doc, .print-invoice { border: 0; box-shadow: none; max-width: none; padding: 0; }
  .sheet-summary, .sheet-sign, .sheet-notes { break-inside: avoid; }
  .sheet-line.sheet-balance { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .owner-sheet thead th, .owner-sheet tfoot td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .inv-total td { background: #eef6f1 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .inv-balance td { background: #e0f0e8 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
