/* SPACES - what the landlord's portal changes about HQ's look. Loaded after styles.css (HQ) and
   kit.css (the Kit), so it only overrides. Themed to Prosperity Chambers' own site (17 Sep 2026):
   ivory page #fcfaf6, deep navy #081c2f / #030e1c, gold #cca363, hairline borders #e1ddd7, Inter
   throughout, light headings, 6px corners, uppercase micro-labels with wide tracking.
   Nothing under 12px, nothing you tap under 44px. */

:root {
  --bg: #fcfaf6;
  --surface: #ffffff;
  --surface-2: #f1eee9;
  --card: #ffffff;
  --tint: rgba(8, 28, 47, .04);
  --line: #e1ddd7;
  --line-strong: #cfc9bf;
  --fg: #0b1723;
  --fg-2: #555f69;
  --fg-3: #8a8f95;
  --accent: #cca363;
  --accent-deep: #081c2f;
  --accent-tint: #f9f5ec;
  --on-accent: #030e1c;
  --ink: #081c2f;
  --cream: #fcfaf6;
  --chalk: #e1ddd7;
  --gold: #cca363;
  --gold-soft: #dec79f;
  --navy: #081c2f;
  --navy-deep: #030e1c;
  --red: #cc2827;
  --amber: #8a5a00;
  --green: #1d6b4c;
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 6px;
}
body { background: var(--bg); }

/* ---------- headings: light, tight, a thin gold rule under the page title ---------- */
h1 { font-weight: 500; letter-spacing: -.02em; font-size: 28px; }
h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
.sp-h1 { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; position: relative; padding-bottom: 14px; }
.sp-h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 2px; background: var(--gold); }
.sp-h1 .subtitle { margin-bottom: 0; }
.sp-h1-right { flex-shrink: 0; }
.sp-h1-right .btn-row { margin: 0; }
.sp-sec { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 28px 0 10px; }
.sp-sec h2 { font-size: 17px; margin: 0; }
.sp-sec-sub { color: var(--fg-2); font-size: 13px; margin: 3px 0 0; }
.sp-sec-right .btn-row { margin: 0; }
.sp-h3 { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.sp-h3:first-child { margin-top: 0; }

/* ---------- the sidebar is Prosperity's dark-navy band, gold for the live item ---------- */
.sidebar { background: var(--navy); border-right: none; }
.sidebar .brand { padding: 6px 8px 16px; justify-content: center; }
.sp-logo, .sidebar .brand img.sp-logo { width: 150px; height: auto; display: block; }
.sidebar .nav-item { color: rgba(232, 228, 221, .78); border-radius: var(--r); }
.sidebar .nav-item:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.sidebar .nav-item.active { background: rgba(204, 163, 99, .10); color: #fff; border-left-color: var(--gold); }
.sidebar .nav-item .nav-hint { color: rgba(232, 228, 221, .5); }
.sidebar .nav-item.active .nav-hint { color: rgba(232, 228, 221, .7); }
.kit-biz { color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .02em; padding: 0 12px 16px; text-align: center; }
.kit-biz .kit-biz-sub { color: rgba(232, 228, 221, .55); font-size: 12px; }
.signout-link { color: rgba(232, 228, 221, .6); }
.signout-link:hover { color: #fff; }
.topbar { background: var(--bg); border-bottom: 1px solid var(--line); }

/* ---------- corners, buttons, inputs: 6px, gold primary on navy text ---------- */
.btn { border-radius: var(--r); font-weight: 600; letter-spacing: .01em; }
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: var(--gold-soft); }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--navy); }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); background: var(--surface); }
.btn-quiet { color: var(--fg-2); }
.kit-btn-off { color: var(--red); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.row-card .right .btn-row { margin-top: 0; justify-content: flex-end; }
.kpi-tile, .row-card, .kit-card, .empty, .strip, .sp-card, .sp-unit { border-radius: var(--r); box-shadow: none; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="number"],
input[type="date"], input[type="time"], input[type="datetime-local"], input[type="search"], select, textarea {
  border-radius: var(--r); min-height: 44px; width: 100%; max-width: none; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg);
  padding: 10px 12px; font-size: 15px; font-family: var(--font-body); line-height: 1.4;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.search-box { max-width: 360px; margin: 0; flex: 1 1 240px; }
.search-box input { height: 44px; border-radius: var(--r); }
.sp-select { width: auto; min-width: 200px; }
.chip { text-decoration: none; border-radius: var(--r); height: 44px; font-size: 13px; background: var(--surface); border-color: var(--line-strong); color: var(--fg-2); }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.on .n { color: var(--gold); opacity: 1; }
.filters { flex-direction: row; flex-wrap: wrap; margin: 0; }
.sp-tabs { margin: 0 0 18px; }
.sp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 12px; }
.sp-tools .btn { height: 44px; }
.sp-muted { color: var(--fg-2); font-size: 13px; }
.sp-bad { color: var(--red); font-weight: 600; }
.sp-req { color: var(--gold); }
/* inline links keep a 40px tap area without moving the text around them */
.link { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; font-weight: 500; display: inline-block; min-width: 40px; padding: 11px 0; margin: -11px 0; line-height: 18px; }
.link:hover { color: var(--gold); }
.back-link { color: var(--fg-2); font-size: 13px; text-decoration: none; margin-bottom: 8px; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- KPI tiles: uppercase micro-label, light number ---------- */
.kpi-row { margin: 0 0 8px; }
.kpi-tile { border-color: var(--line); background: var(--surface); }
.kpi-tile .label { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--fg-2); font-weight: 600; }
.kpi-tile .value { font-weight: 500; font-size: 28px; color: var(--navy); margin-top: 6px; }
.kpi-tile .value.bad { color: var(--red); }
a.kpi-tile:hover { border-color: var(--gold); background: var(--surface); }

/* ---------- pills and strips ---------- */
.sp-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; background: var(--surface-2); color: var(--fg-2); vertical-align: middle; white-space: nowrap; }
.sp-pill.good { background: rgba(29, 107, 76, .12); color: var(--green); }
.sp-pill.warn { background: rgba(204, 163, 99, .18); color: #7a5a1e; }
.sp-pill.amber { background: rgba(138, 90, 0, .12); color: var(--amber); }
.sp-pill.bad { background: rgba(204, 40, 39, .10); color: var(--red); }
.sp-pill.muted { background: var(--surface-2); color: var(--fg-3); }
.strip { border-radius: var(--r); font-weight: 500; }
.strip.bad { background: rgba(204, 40, 39, .08); color: var(--red); border: 1px solid rgba(204, 40, 39, .2); }
.strip.sp-good { background: rgba(29, 107, 76, .08); color: var(--green); border: 1px solid rgba(29, 107, 76, .2); }
.strip.sp-act { background: var(--navy); color: #fff; border: none; align-items: center; margin: 14px 0 6px; }
.strip.sp-act strong { color: var(--gold-soft); }
.strip.sp-act .btn { flex-shrink: 0; }
.sp-status { margin: -6px 0 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sp-notes { white-space: pre-wrap; color: var(--fg-2); font-size: 14px; }

/* ---------- rows and cards ---------- */
.row-card { border-color: var(--line); padding: 14px 16px; }
.row-card .title { font-weight: 600; color: var(--navy); }
.row-card .title .link { text-decoration: none; }
.row-card .title .link:hover { text-decoration: underline; }
.sp-card { border: 1px solid var(--line); background: var(--surface); padding: 16px 18px; margin-bottom: 10px; }
.sp-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.sp-card-top .title { font-weight: 600; font-size: 15px; color: var(--navy); }
.sp-card-line { font-size: 14px; color: var(--fg); margin: 3px 0; line-height: 1.45; }
.sp-inline-x { border: none; background: transparent; color: var(--fg-3); cursor: pointer; font-size: 18px; line-height: 1; padding: 0; width: 40px; height: 40px; margin: -12px -8px -12px -6px; vertical-align: middle; border-radius: var(--r); }
.sp-inline-x:hover { color: var(--red); }

/* ---------- the offices grid ---------- */
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 6px; }
.sp-unit { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; min-height: 120px; border-top: 3px solid var(--line-strong); transition: border-color .2s; }
.sp-unit:hover { border-color: var(--gold); }
.sp-unit.let { border-top-color: var(--green); }
.sp-unit.available { border-top-color: var(--gold); }
.sp-unit.notice { border-top-color: var(--amber); }
.sp-unit.maintenance, .sp-unit.unavailable { border-top-color: var(--fg-3); opacity: .85; }
.sp-unit-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sp-unit-name { font-weight: 600; font-size: 16px; color: var(--navy); }
.sp-unit-who { font-size: 15px; margin-top: 8px; color: var(--fg); font-weight: 500; }
.sp-unit-sub { font-size: 12px; color: var(--fg-3); margin-top: 2px; text-transform: uppercase; letter-spacing: .08em; }
.sp-unit-line { font-size: 13px; color: var(--fg-2); margin-top: 8px; line-height: 1.4; }

/* ---------- tables: measured, scroll inside their box, and shown on the phone too ---------- */
table.data { table-layout: auto; }
table.data th { white-space: nowrap; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-2); font-weight: 600; border-bottom: 1px solid var(--line-strong); }
table.data td { font-size: 14px; }
table.data tr.sp-rowlink { cursor: pointer; }
table.data tr.sp-rowlink:hover td { background: var(--accent-tint); }
table.data th:last-child, table.data td:last-child { width: 1%; white-space: normal; }
table.data td .btn-row { margin: 0; flex-wrap: wrap; justify-content: flex-end; min-width: 300px; }
table.data td:first-child { min-width: 180px; }
table.data td .btn { height: 40px; padding: 0 12px; font-size: 13px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
@media (max-width: 767px) {
  .table-wrap { display: block; }
  table.data td .btn { height: 44px; }
}

/* ---------- history ---------- */
.sp-hist { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 4px 0; }
.sp-hist-row { display: grid; grid-template-columns: 110px 90px 1fr; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 13px; align-items: baseline; }
.sp-hist-row:last-child { border-bottom: none; }
.sp-hist-when { color: var(--fg-3); }
.sp-hist-kind { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 600; }
.sp-hist-text { color: var(--fg); overflow-wrap: anywhere; }
.sp-hist-who { color: var(--fg-3); margin-left: 6px; }
@media (max-width: 640px) { .sp-hist-row { grid-template-columns: 1fr; gap: 2px; } }
.sp-addnote { display: flex; gap: 8px; margin-bottom: 10px; }
.sp-addnote input { flex: 1; }
.sp-addnote .btn { flex-shrink: 0; }

/* ---------- forms ---------- */
.kit-field { margin: 0 0 14px; }
.kit-field .kit-label, .kit-label { font-size: 13px; font-weight: 600; color: var(--fg); }
.kit-field .kit-help { font-size: 12px; }
.sp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.sp-check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; font-size: 14px; cursor: pointer; min-height: 44px; padding-top: 10px; }
.sp-check input { appearance: none; -webkit-appearance: none; width: 44px; height: 44px; min-height: 0; margin: -11px 0 -11px -11px; position: relative; cursor: pointer; flex-shrink: 0; border: none; background: transparent; }
.sp-check input::before { content: ""; position: absolute; left: 11px; top: 11px; width: 20px; height: 20px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); }
.sp-check input:checked::before { background: var(--navy); border-color: var(--navy); }
.sp-check input:checked::after { content: "✓"; position: absolute; left: 11px; top: 11px; width: 20px; height: 20px; color: var(--gold-soft); font-size: 14px; line-height: 20px; text-align: center; }
.sp-check input:focus-visible { outline: 2px solid var(--gold); outline-offset: -8px; border-radius: 8px; }
.sp-check .kit-help { display: block; }
.sp-checklist { border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 12px 14px; margin-top: 8px; background: var(--accent-tint); }
.sp-checklist .sp-check { margin: 0; min-height: 40px; padding-top: 8px; }
.sp-line { display: grid; grid-template-columns: 1fr 70px 100px 80px; gap: 6px; margin-bottom: 6px; }
.kit-form { max-width: none; }
.kit-card { max-width: 680px; }
.kit-card h2 { font-size: 17px; font-weight: 600; margin-top: 10px; }
.kit-card h2:first-child { margin-top: 0; }
.kit-note.good { color: var(--green); }
.kit-note.warn { color: var(--red); }
@media (max-width: 640px) { .sp-two { grid-template-columns: 1fr; gap: 0; } .sp-line { grid-template-columns: 1fr 1fr; } }

/* ---------- the dialog every form opens in ---------- */
.sp-dialog { border: none; border-radius: var(--r); padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--surface); color: var(--fg); box-shadow: 0 20px 60px rgba(3, 14, 28, .35); }
.sp-dialog.wide { width: min(760px, calc(100vw - 32px)); }
.sp-dialog::backdrop { background: rgba(3, 14, 28, .55); }
.sp-dialog-form { display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.sp-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.sp-dialog-head h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--navy); }
.sp-x { border: none; background: transparent; font-size: 26px; line-height: 1; color: var(--fg-3); cursor: pointer; width: 44px; height: 44px; margin: -10px -12px 0 0; border-radius: var(--r); }
.sp-x:hover { background: var(--surface-2); color: var(--fg); }
.sp-dialog-body { padding: 16px 20px 4px; overflow-y: auto; flex: 1 1 auto; }
.sp-dialog-foot { display: flex; align-items: center; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.sp-grow { flex: 1; }
@media (max-width: 640px) {
  .sp-dialog, .sp-dialog.wide { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; border-radius: 0; }
  .sp-dialog-form { max-height: 100vh; }
  .sp-dialog-foot .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- sign-in: the mark on ivory ---------- */
.signin { text-align: center; }
.signin .sp-signin-mark { margin: 0 auto 18px; width: 180px; background: var(--navy); border-radius: var(--r); padding: 22px 18px; }
.signin .sp-signin-mark .sp-logo { width: 100%; }
.signin h1 { font-weight: 500; }
.signin input { border-radius: var(--r); }
.signin form { text-align: left; }
.signin .note a { color: var(--navy); }

/* ---------- the invoice: paper on the screen, and what the printer gets ---------- */
.sp-invoice { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 36px 40px; max-width: 800px; margin: 8px 0 20px; color: #0b1723; }
.sp-inv-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 2px solid var(--gold); padding-bottom: 18px; margin-bottom: 18px; }
.sp-inv-biz { font-size: 20px; font-weight: 600; color: var(--navy); letter-spacing: .02em; }
.sp-inv-addr { font-size: 13px; color: var(--fg-2); margin-top: 4px; line-height: 1.5; }
.sp-inv-meta { text-align: right; font-size: 13px; line-height: 1.6; }
.sp-inv-title { font-size: 12px; letter-spacing: .28em; color: var(--gold); font-weight: 600; }
.sp-inv-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); font-weight: 600; margin-bottom: 4px; }
.sp-inv-to { font-size: 14px; line-height: 1.5; margin-bottom: 22px; }
.sp-inv-lines { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 22px; }
.sp-inv-lines th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); padding: 8px 6px; border-bottom: 1px solid var(--line-strong); }
.sp-inv-lines td { padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sp-inv-lines .num { text-align: right; white-space: nowrap; }
.sp-inv-lines tfoot td { border-bottom: none; padding: 5px 6px; }
.sp-inv-lines tfoot tr.strong td { font-weight: 700; font-size: 15px; color: var(--navy); border-top: 1px solid var(--line-strong); padding-top: 9px; }
.sp-inv-foot { font-size: 13px; line-height: 1.6; color: var(--fg); border-top: 1px solid var(--line); padding-top: 14px; }
.sp-inv-terms { color: var(--fg-2); margin-top: 6px; }
@media print {
  body.sp-printing-invoice .sidebar, body.sp-printing-invoice .topbar, body.sp-printing-invoice .tabbar, body.sp-printing-invoice .sp-h1, body.sp-printing-invoice .back-link,
  body.sp-printing-invoice .sp-sec, body.sp-printing-invoice .table-wrap, body.sp-printing-invoice .strip, .sp-noprint { display: none !important; }
  body.sp-printing-invoice .content { padding: 0; max-width: none; }
  body.sp-printing-invoice .sp-invoice { border: none; padding: 0; max-width: none; margin: 0; }
  body { background: #fff; }
}

/* ---------- the phone ---------- */
.tabbar { background: var(--navy); border-top: 1px solid rgba(255,255,255,.08); }
.tabbar .tab { color: rgba(232, 228, 221, .7); font-size: 12px; }
.tabbar .tab.active { color: var(--gold); }
@media (max-width: 767px) {
  .content { padding: 16px; padding-bottom: 84px; }
  .sp-h1 { margin-bottom: 14px; }
  .sp-h1-right { width: 100%; }
  .sp-h1-right .btn-row .btn { flex: 1 1 auto; justify-content: center; }
  .kpi-tile .value { font-size: 22px; }
  .sp-grid { grid-template-columns: 1fr; }
  .sp-invoice { padding: 18px 16px; }
  .sp-inv-meta { text-align: left; }
  .strip.sp-act { flex-wrap: wrap; }
  .strip.sp-act .btn { width: 100%; justify-content: center; }
  .tabbar { overflow-x: auto; }
  .tabbar .tab { min-width: 64px; }
}

/* ---------- buildings: one band per address, its rooms under it ---------- */
.sp-building { margin: 22px 0 6px; }
.sp-building-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.sp-building-name { font-size: 16px; font-weight: 600; color: var(--navy); letter-spacing: .01em; }
.sp-building-sub { font-size: 12px; color: var(--fg-2); margin-top: 2px; text-transform: uppercase; letter-spacing: .1em; }
.sp-building-bar { flex: none; width: 160px; height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; margin-bottom: 6px; }
.sp-building-bar span { display: block; height: 100%; background: var(--gold); }
@media (max-width: 640px) { .sp-building-bar { display: none; } }

/* ---------- first-run set-up list on Today ---------- */
.sp-setup { border: 1px solid var(--gold); background: var(--accent-tint); border-radius: var(--r); padding: 14px 16px; margin: 0 0 16px; }
.sp-setup-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.sp-setup-title { font-weight: 600; color: var(--navy); }
.sp-setup-sub { font-size: 13px; color: var(--fg-2); }
.sp-setup-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 0; text-decoration: none; color: var(--fg); border-top: 1px solid var(--line); font-size: 14px; }
.sp-setup-row:first-of-type { border-top: none; }
.sp-setup-row.done { color: var(--fg-3); text-decoration: line-through; }
.sp-setup-tick { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; color: var(--green); }
.sp-setup-row.done .sp-setup-tick { background: rgba(29,107,76,.12); border-color: transparent; }
.sp-setup-next { margin-left: auto; color: var(--gold); font-weight: 600; font-size: 13px; white-space: nowrap; }

/* ---------- buildings, legend ---------- */
.sp-building-addr { font-size: 13px; font-weight: 400; color: var(--fg-2); margin-left: 8px; }
.sp-building-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sp-building-right .btn-row { margin: 0; }
.sp-building-right .btn { height: 40px; }
.sp-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--fg-2); margin: 4px 0 0; text-transform: uppercase; letter-spacing: .08em; }
.sp-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--line-strong); }
.sp-legend i.let { background: var(--green); } .sp-legend i.available { background: var(--gold); } .sp-legend i.notice { background: var(--amber); } .sp-legend i.muted { background: var(--fg-3); }
@media (max-width: 640px) { .sp-building-head { flex-direction: column; align-items: stretch; } .sp-building-right { align-items: flex-start; } }

/* ---------- monograms ---------- */
.sp-mono { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold-soft); font-size: 12px; font-weight: 600; letter-spacing: .06em; flex-shrink: 0; vertical-align: middle; }
h1 .sp-mono { width: 40px; height: 40px; font-size: 14px; margin-right: 4px; vertical-align: -6px; }
.sp-who { display: flex; align-items: center; gap: 10px; }

/* ---------- search (⌘K) ---------- */
.sp-topsearch { margin-left: 12px; height: 40px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg-2); font: inherit; font-size: 13px; cursor: pointer; }
.sp-topsearch:hover { border-color: var(--navy); color: var(--navy); }
.sp-search { width: min(640px, calc(100vw - 32px)); margin-top: 8vh; }
.sp-search #sp-cmdk { border: none; border-bottom: 1px solid var(--line); border-radius: 0; height: 56px; font-size: 17px; padding: 0 18px; }
.sp-search #sp-cmdk:focus-visible { outline: none; }
.sp-cmdk-list { max-height: 60vh; overflow-y: auto; padding: 6px; }
.sp-cmdk-row { display: grid; grid-template-columns: 76px 1fr; gap: 2px 12px; padding: 9px 12px; border-radius: var(--r); text-decoration: none; color: var(--fg); min-height: 44px; align-items: center; }
.sp-cmdk-row.on, .sp-cmdk-row:hover { background: var(--accent-tint); }
.sp-cmdk-k { grid-row: 1 / 3; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-weight: 600; }
.sp-cmdk-t { font-weight: 600; color: var(--navy); }
.sp-cmdk-s { font-size: 13px; color: var(--fg-2); }
.sp-cmdk-none { padding: 20px; color: var(--fg-2); text-align: center; }
.sp-cmdk-foot { font-size: 12px; color: var(--fg-3); padding: 8px 18px 12px; border-top: 1px solid var(--line); }

/* ---------- the 12-month chart ---------- */
.sp-chart-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 12px 16px 6px; margin: 0 0 10px; }
.sp-chart-title { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--fg-2); font-weight: 600; display: flex; justify-content: space-between; }
.sp-chart-key { text-transform: none; letter-spacing: 0; font-weight: 500; }
.sp-chart-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 5px 0 10px; vertical-align: -1px; }
.sp-chart-key i.billed, .sp-chart rect.billed { fill: var(--navy); background: var(--navy); }
.sp-chart-key i.paid, .sp-chart rect.paid { fill: var(--gold); background: var(--gold); }
.sp-chart { width: 100%; height: auto; display: block; margin-top: 6px; }
.sp-chart text { font-size: 12px; fill: var(--fg-2); font-family: var(--font-body); }

/* ---------- meeting rooms, one day ---------- */
.sp-daygrid-wrap { margin-bottom: 6px; }
#room-day.sp-select { width: 180px; min-width: 0; }
.sp-tools .btn[data-act=room-day] { width: 44px; padding: 0; justify-content: center; }
.sp-daygrid { border-collapse: collapse; width: 100%; min-width: 760px; }
.sp-daygrid th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-2); font-weight: 600; padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sp-daygrid tbody th { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--navy); min-width: 150px; }
.sp-daygrid td { padding: 3px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.sp-slot { width: 100%; min-width: 44px; height: 44px; border: none; border-radius: 4px; background: var(--navy); color: var(--gold-soft); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.sp-slot.free { background: transparent; color: var(--line-strong); }
.sp-slot.free:hover { background: var(--accent-tint); color: var(--navy); }

/* ---------- invoice extras ---------- */
.sp-inv-logo { width: 54px; height: 54px; display: block; margin-bottom: 8px; background: var(--navy); border-radius: 4px; padding: 6px; object-fit: contain; }
.sp-inv-pay { margin: 10px 0 4px; }
.sp-tab-ico { display: block; font-size: 14px; line-height: 1; margin-bottom: 2px; }
.kit-form textarea#imp-rooms, .kit-form textarea#imp-tenants { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }

/* ---------- connections: copy boxes, the pasted form, QR ---------- */
.sp-copy { display: flex; gap: 8px; margin: 6px 0 10px; }
.sp-copy input { flex: 1; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.sp-copy .btn { flex-shrink: 0; }
.sp-details { margin: 6px 0 10px; }
.sp-details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--navy); }
.sp-details textarea { font-family: ui-monospace, Menlo, monospace; font-size: 12px; white-space: pre; margin-bottom: 8px; }
.sp-qr { width: 200px; height: 200px; display: block; border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 8px; margin: 6px 0 10px; }
code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }
.sp-help { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 16px; }
.sp-help-row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.sp-help-row:last-child { border-bottom: none; }
.sp-help-k { font-weight: 600; color: var(--navy); }
.sp-ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.6; }
@media (max-width: 640px) { .sp-help-row { grid-template-columns: 1fr; gap: 2px; } .sp-copy { flex-direction: column; } }
