/* Same compact, flat HTML language and palette as car-listing-os/dashboard. */
:root {
  color-scheme: light;
  --bg: #fff; --surface: #fff; --soft: #f2f3f4; --ink: #24282c;
  --muted: #606770; --line: #cbd0d5; --accent: #24577e;
  --accent-hover: #153e60; --accent-soft: #edf3f8; --accent-ink: #fff; --danger: #a22a22;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #202326; --surface: #25292d; --soft: #30353a; --ink: #eceff1;
    --muted: #b1b9c0; --line: #50575e; --accent: #a3c9ec;
    --accent-hover: #c5dff7; --accent-soft: #2d3e4d; --accent-ink: #162734; --danger: #f1a198;
  }
}
* { box-sizing: border-box; }
body { margin: 0; padding: 14px 20px; background: var(--bg); color: var(--ink); font: 14px/1.6 Arial, Helvetica, sans-serif; }
.site { max-width: 1080px; margin: 0 auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
button, input { font: inherit; color: inherit; }
button { background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 8px 14px; cursor: pointer; white-space: nowrap; }
button:hover { background: var(--soft); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .6; cursor: wait; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.primary:hover { background: var(--accent-hover); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0 18px; border-bottom: 2px solid var(--ink); }
.brand { color: var(--ink); font-size: 22px; font-weight: 700; text-decoration: none; }
.brand span { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 10px; }
main { padding: 28px 0; }
h1 { font-size: 24px; line-height: 1.3; margin: 0 0 8px; }
p { margin: 0; }
.intro, .muted { color: var(--muted); }
.heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.buildings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
fieldset { min-width: 0; margin: 0; padding: 10px 16px 16px; border: 1px solid var(--line); background: var(--surface); }
legend { padding: 0 8px; font-weight: 700; font-size: 16px; }
.unit { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; padding: 8px 10px; cursor: pointer; }
.unit:nth-of-type(even) { background: var(--soft); }
.unit:has(input:checked) { color: var(--accent); font-weight: 700; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }
.save-bar { display: flex; align-items: center; gap: 16px; padding: 20px 0; margin-top: 20px; border-top: 1px solid var(--line); }
.notice { padding: 12px 14px; border: 1px solid var(--line); margin-bottom: 20px; }
.success { background: var(--accent-soft); color: var(--accent); }
.error, #network-error { color: var(--danger); }
#network-error { border: 1px solid currentColor; padding: 12px; margin: 10px 0; }
.login { max-width: 380px; margin: 32px auto; }
.login .intro { margin-bottom: 24px; }
.login label { display: block; margin: 16px 0 6px; font-weight: 700; }
.login input:not([type=hidden]) { display: block; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); }
.login button { margin-top: 24px; }
.htmx-indicator { display: none; color: var(--muted); }
.htmx-request .htmx-indicator { display: inline; }
footer { border-top: 1px solid var(--line); padding: 16px 0; color: var(--muted); font-size: 12px; }
@media (max-width: 720px) {
  body { padding: 10px 14px; }
  .buildings { grid-template-columns: 1fr; }
  .heading { flex-direction: column; gap: 12px; }
  .brand span { display: block; margin-left: 0; }
  .top > a:last-child { font-size: 13px; }
  .save-bar { flex-wrap: wrap; }
  .login { margin: 16px auto; }
}
