/* Neapo Brand Identity v2. Day = "Black on Mushroom 1"; Night = "Mushroom 1 on Black". */
:root, :root[data-theme="day"] {
  --bg: #EAE6DB; --surface: #F6F3EC; --border: #DDD7C8;
  --text: #0B0B0B; --muted: #5E5B52; --label: #7D7C45; --problem: #734443; --ok: #7D7C45;
  --logo-filter: none;
}
:root[data-theme="night"] {
  --bg: #0B0B0B; --surface: #1A1917; --border: #2A2824;
  --text: #EAE6DB; --muted: #A39D90; --label: #A8AE8D; --problem: #CF9077; --ok: #A8AE8D;
  --logo-filter: invert(1);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.logo { display: block; width: 120px; height: auto; filter: var(--logo-filter); mix-blend-mode: normal; }
.page { max-width: 560px; margin: 0 auto; padding: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.label { color: var(--label); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 2px; }
.problem { color: var(--problem); }
.muted { color: var(--muted); }
input, button { font: inherit; color: inherit; }
input { width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 16px; }
button { min-height: 48px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--text); background: var(--text); color: var(--bg); cursor: pointer; }
button.secondary { background: transparent; color: var(--text); border-color: var(--border); }
.stack > * + * { margin-top: 10px; }
.error { color: var(--problem); font-size: 14px; }

/* Owners' dashboard: four department boxes, quiet and roomy. */
.dash-head { display: flex; justify-content: space-between; align-items: center; }
.dash-title { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 22px 0 0; }
.dept-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.tile-dept { display: flex; flex-direction: column; gap: 6px; min-height: 150px; padding: 16px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border); color: inherit; text-decoration: none;
  transition: transform .12s ease, border-color .12s ease; -webkit-tap-highlight-color: transparent; }
.tile-dept:hover { border-color: var(--muted); }
.tile-dept:active { transform: scale(.97); }
.tile-top { display: flex; justify-content: space-between; align-items: center; }
.tile-arrow { color: var(--muted); }
.tile-value { margin-top: auto; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile-sub { font-size: 13px; color: var(--muted); line-height: 1.3; }
.tile-sub.problem { color: var(--problem); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.quiet-links { display: flex; gap: 20px; justify-content: center; margin-top: 28px; }
.quiet-links a, .back { color: var(--muted); text-decoration: none; font-size: 14px; }
.link-list { margin-top: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.link-list a { display: flex; justify-content: space-between; padding: 16px; color: inherit; text-decoration: none; }
.link-list a + a { border-top: 1px solid var(--border); }
.link-list a span:last-child { color: var(--muted); }
button.link { background: none; border: none; color: var(--muted); min-height: 40px; padding: 6px 0; font-size: 14px; }
@media (max-width: 360px) { .tile-value { font-size: 22px; } .tile-dept { min-height: 132px; padding: 14px; } }
.tile-rs { font-size: 14px; font-weight: 500; color: var(--muted); margin-right: 4px; letter-spacing: 0; }

/* CCTV */
.cam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.cam { margin: 0; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); cursor: pointer; }
.cam.open { grid-column: 1 / -1; }
.cam img, .cam-off { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cam-off { display: flex; align-items: center; justify-content: center; padding: 8px; text-align: center; font-size: 12px; color: var(--muted); }
.cam figcaption { display: flex; justify-content: space-between; gap: 6px; padding: 6px 10px; font-size: 12px; }
.cam-shot { display: block; width: 160px; border-radius: 10px; cursor: zoom-in; }
.cam-shot.big { width: 100%; cursor: zoom-out; }
