:root {
  --bg: #0b0b0c; --panel: #151517; --panel2: #1c1c1f; --line: #2a2a2e; --text: #ececec; --muted: #a3a3a8;
  --silver: linear-gradient(180deg, #ffffff 0%, #cfcfd4 55%, #8d8d94 100%);
  --ok: #34d399; --bad: #f87171; --warn: #fbbf24;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(ellipse at 50% 0%, #222226 0%, var(--bg) 55%) fixed, var(--bg);
  color: var(--text); font: 400 16px/1.55 Inter, system-ui, -apple-system, Segoe UI, sans-serif; }
a { color: #fff; }
h1, h2, .brand { font-family: Cinzel, Georgia, serif; letter-spacing: .02em; }
h1 { font-size: clamp(26px, 4vw, 34px); margin: 8px 0 18px; }
h2 { font-size: 19px; margin: 0 0 12px; }

.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px;
  padding: 10px max(16px, calc((100% - 1100px) / 2)); background: rgba(11, 11, 12, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; font-size: 19px; text-decoration: none; white-space: nowrap; }
.brand span { font-weight: 600; color: var(--muted); font-size: 14px; margin-left: 4px; }
.bar nav { display: flex; gap: 4px 18px; margin-left: auto; flex-wrap: wrap; }
.bar nav a { text-decoration: none; color: var(--muted); font-size: 15px; white-space: nowrap; }
.bar nav a:hover { color: #fff; }
/* The owner's menu has eleven entries: slightly smaller and closer together so it stays on one line on a computer screen. */
.bar nav.long { gap: 4px 13px; }
.bar nav.long a { font-size: 14px; }
.inline { display: inline; margin: 0; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; flex: 1; }
.wrap.narrow { max-width: 520px; }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px 32px; border-top: 1px solid var(--line); }
footer a { text-decoration: none; }

.btn { display: inline-block; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--silver); color: #111;
  font: 600 15px Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid #55555c; }
.btn-sm { padding: 7px 14px; font-size: 14px; white-space: nowrap; }
.btn-danger { background: transparent; color: var(--bad); border: 1px solid #7f1d1d; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 0 0 16px; }
.card.warn { border-color: #78350f; background: #1f1608; }
.card p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.flash { border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; }
.flash.ok { background: #062a1f; border: 1px solid #065f46; }
.flash.err { background: #2a0a0a; border: 1px solid #7f1d1d; }

.form { display: grid; gap: 14px; align-content: start; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form label.check { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.form small { color: var(--muted); font-size: 13px; }
.form small.hint { display: block; margin-top: 2px; }
input, select, textarea { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid #3a3a40; background: var(--panel2);
  color: var(--text); font: 400 16px Inter, system-ui, sans-serif; }
input[type=checkbox] { width: auto; margin-top: 3px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #8d8d94; outline-offset: 1px; }
input:disabled { opacity: .6; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: 13px; }
th, td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.card table { margin: -4px 0; }
.searchbar { display: flex; gap: 8px; margin: 0 0 14px; }
.searchbar input { max-width: 420px; }

.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 0 0 16px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.stat .n { font: 800 30px Cinzel, Georgia, serif; }
.stat .l { color: var(--muted); font-size: 14px; }
.grid2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid2 .card { margin: 0; }
.grid2 { margin-bottom: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.nowrap { white-space: nowrap; }
.howto-video { display: block; width: 100%; max-width: 900px; aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid var(--line); background: #000; }
/* Payments & email: what the website made of each pasted key */
.keychecks { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; background: var(--panel); }
.keychecks p { margin: 0 0 10px; }
.keychecks p:last-child { margin: 10px 0 0; }
.keycheck { display: flex; gap: 12px; align-items: flex-start; border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.keycheck .mark { flex: none; font-weight: 700; font-size: 18px; line-height: 1.3; }
.keycheck.good { background: #062a1f; border: 1px solid #065f46; }
.keycheck.bad { background: #2a0a0a; border: 1px solid #7f1d1d; }
.keyhint { display: block; min-height: 1.3em; margin-top: 6px; font-size: 14px; font-weight: 500; }
.keyhint.good { color: #a7f3d0; }
.keyhint.bad { color: #fecaca; }
.pill { display: inline-block; font: 600 12px Inter, sans-serif; padding: 2px 9px; border-radius: 999px; background: #2a2a2e; color: var(--muted); vertical-align: middle; }
.pill.ok { background: #064e3b; color: #a7f3d0; }
.pill.bad { background: #7f1d1d; color: #fecaca; }
.pill.warn { background: #78350f; color: #fde68a; }
.qr { background: #fff; border-radius: 12px; padding: 10px; width: 220px; margin: 8px 0 12px; }
.qr svg { width: 100%; height: auto; display: block; }
code { background: var(--panel2); padding: 2px 6px; border-radius: 6px; font-size: 14px; word-break: break-all; }
pre.mail { white-space: pre-wrap; font: 400 14px/1.5 ui-monospace, Menlo, monospace; background: var(--panel2); padding: 14px; border-radius: 10px; overflow-x: auto; }

@media (max-width: 720px) {
  .bar { flex-wrap: wrap; gap: 10px; }
  .bar nav { order: 3; width: 100%; margin: 0; gap: 6px 16px; flex-wrap: wrap; }
  .bar nav.long { gap: 6px 16px; }   /* on a phone the menu wraps anyway: keep the links full size and easy to tap */
  .bar nav.long a { font-size: 15px; }
  .bar nav a { white-space: nowrap; }
  .brand span { display: none; }
  .brand { margin-right: auto; }
  .row3 { grid-template-columns: 1fr 1fr; }
  table { font-size: 14px; }
  .card { padding: 16px; overflow-x: auto; }
}
details.card summary { cursor: pointer; font-weight: 600; }
details.card[open] summary { margin-bottom: 10px; }
details.danger summary { color: var(--bad); }
.split { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; }
.split > div:first-child { flex: 1; min-width: 220px; }
.agreement { white-space: pre-wrap; font-size: 15px; line-height: 1.6; max-height: 60vh; overflow-y: auto; background: var(--panel2); padding: 16px; border-radius: 10px; }
details.moveout { margin-top: 10px; }
details.moveout summary { cursor: pointer; color: var(--muted); font-size: 14px; }
details.moveout form { margin-top: 10px; max-width: 320px; }
a.card.block { display: block; text-decoration: none; }
.photos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin: 10px 0 14px; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; border: 1px solid var(--line); }
.linkbtn { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 4px 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
a.vehicle h2 { margin-bottom: 4px; }
a.vehicle p { margin: 4px 0; }
.vehicle-box { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.vehicle-box:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.vehicle-box h3 { margin: 0 0 6px; font-size: 16px; }
table.kv th { width: 120px; font-size: 13px; }
fieldset.sub { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 12px; }
fieldset.sub legend { color: var(--muted); font-size: 13px; padding: 0 6px; }
.row-ymm { display: grid; grid-template-columns: 1fr 2fr 2fr; gap: 10px; }
@media (max-width: 720px) { .row-ymm { grid-template-columns: 1fr 2fr; } .row-ymm label:last-child { grid-column: 1 / -1; } }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 700; border-top: 1px solid #3a3a40; }
.right { text-align: right; }
@media print {
  body { background: #fff; color: #000; } .bar, footer, .noprint, .flash { display: none !important; }
  .card { border: 0; background: #fff; padding: 0; } .muted, th { color: #444; } a { color: #000; text-decoration: none; }
  .pill { border: 1px solid #000; background: #fff; color: #000; }
}
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.tabs a { text-decoration: none; color: var(--muted); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }
.tabs a.on { color: #111; background: var(--silver); border-color: transparent; }
@media (max-width: 720px) { .hide-sm { display: none; } }
.show-sm { display: none; overflow-wrap: anywhere; }   /* the phone's stand-in for a column that .hide-sm drops */
@media (max-width: 720px) { .show-sm { display: block; } .nowrap { white-space: normal; } }
.pill { white-space: nowrap; }
details.howto { background: var(--panel2); border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; }
details.howto summary { cursor: pointer; font-weight: 600; }
details.howto h3 { font-size: 15px; margin: 16px 0 6px; }
details.howto ol { margin: 6px 0 10px; padding-left: 22px; } details.howto li { margin: 6px 0; }
.autopay-box { background: var(--panel2); border-radius: 12px; padding: 12px 14px; margin-top: 14px; }
form.inline { display: inline-flex; gap: 8px; align-items: center; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.toc a { color: var(--text); font-size: 14px; }
.help h3 { font-size: 16px; margin: 18px 0 6px; }
.help ol, .help ul { padding-left: 22px; } .help li { margin: 6px 0; line-height: 1.5; }
.help dt { font-weight: 600; margin-top: 12px; } .help dd { margin: 4px 0 0 0; color: var(--muted); }
.help .mode { background: var(--panel2); border-radius: 12px; padding: 4px 16px; }
section.help { scroll-margin-top: 80px; }
.autopay-box form.inline input { width: 120px; }
td.mbar { width: 30%; } td.mbar span { display: block; height: 10px; border-radius: 6px; background: var(--silver); opacity: .7; }
.note { background: var(--panel2); border-radius: 12px; padding: 4px 16px 8px; margin-top: 18px; }
.note li { margin: 6px 0; line-height: 1.5; }
.dl { display: flex; flex-wrap: wrap; gap: 8px; }
@media print { .card { break-inside: avoid; } td.mbar span { background: #999; } }
.mbar .w0 { width: 0%; } .mbar .w5 { width: 5%; } .mbar .w10 { width: 10%; } .mbar .w15 { width: 15%; } .mbar .w20 { width: 20%; } .mbar .w25 { width: 25%; } .mbar .w30 { width: 30%; } .mbar .w35 { width: 35%; } .mbar .w40 { width: 40%; } .mbar .w45 { width: 45%; } .mbar .w50 { width: 50%; } .mbar .w55 { width: 55%; } .mbar .w60 { width: 60%; } .mbar .w65 { width: 65%; } .mbar .w70 { width: 70%; } .mbar .w75 { width: 75%; } .mbar .w80 { width: 80%; } .mbar .w85 { width: 85%; } .mbar .w90 { width: 90%; } .mbar .w95 { width: 95%; } .mbar .w100 { width: 100%; }
.mt6 { margin-top: 6px; } .mt8 { margin-top: 8px; } .mt10 { margin-top: 10px; } .mt12 { margin-top: 12px; } .mt14 { margin-top: 14px; }
.mt16 { margin-top: 16px; } .mt18 { margin-top: 18px; } .mb12 { margin-bottom: 12px; } .m0 { margin: 0; } small.block { display: block; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 8px; }
.feat { display: block; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--text); }
.feat:hover { border-color: #55555c; }
.feat .tags { display: block; margin-top: 8px; } .feat .tags i { font-style: normal; margin: 0 4px 4px 0; }
.feat-grid.hub { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 16px 0; } .feat-grid.hub .feat { background: var(--panel); padding: 18px 20px; }
.feat-grid.hub .feat strong { font: 600 17px Cinzel, Georgia, serif; letter-spacing: .02em; }
.feat strong { display: block; margin-bottom: 4px; } .feat span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.bad-text { color: #f87171; }
.letter { background: #fff; color: #111; border-radius: 12px; padding: 36px 40px; line-height: 1.55; font-size: 15px; }
.letter p { margin: 0 0 14px; } .letter table.itemized { width: 100%; margin: 10px 0 18px; color: #111; }
.letter table.itemized th, .letter table.itemized td { border-bottom: 1px solid #ddd; color: #111; padding: 4px 6px; }
.letter .sig { margin-top: 36px; }
@media print { .letter { padding: 0; } }
.doorcode { background: var(--panel2); border-radius: 10px; padding: 8px 12px; display: inline-block; }

.form-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.form-inline input[type=file] { max-width: 100%; }
