/* Eastpana CCTV: one look for every page (camera wall, sign-in, users & security).
   Black base, greys for structure, the logo's gold only on the primary action and the current
   selection, green only for "live". Thai text in Leelawadee UI; numbers, times, camera names and
   addresses in Bahnschrift (ships with Windows; falls back to the UI font elsewhere).
   No web fonts: the hotel LAN may have no internet. */
:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #0d0d0d;
  --raised: #161616;
  --hover: #1f1f1f;
  --line: #222;
  --line-strong: #333;
  --text: #f2f2f2;
  --muted: #8c8c8c;
  --faint: #6b6b6b;
  --accent: #c9a35e;
  --accent-hover: #d9b877;
  --on-accent: #120d03;
  --live: #3ddc84;
  --warn: #f5b942;
  --danger: #ff6b6b;
  --radius: 10px;
  --radius-sm: 6px;
  --tap: 36px;
  --font: "Leelawadee UI", "Segoe UI Variable Text", "Segoe UI", "Noto Sans Thai", system-ui, sans-serif;
  --font-num: "Bahnschrift", "DIN Alternate", "Roboto Condensed", "Leelawadee UI", "Noto Sans Thai", system-ui, sans-serif
}

@media (pointer: coarse) {
  :root { --tap: 44px }
}

*, *::before, *::after { box-sizing: border-box }

html { -webkit-text-size-adjust: 100% }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.6 var(--font);
  -webkit-font-smoothing: antialiased
}

h1, h2, h3, p { margin: 0 }

h1 { font-size: 20px; font-weight: 600; line-height: 1.4 }

h2 { font-size: 15px; font-weight: 600 }

h3 { font-size: 14px; font-weight: 600 }

a { color: inherit; text-decoration: none }

svg { flex-shrink: 0 }

button, input, select, summary { font: inherit; color: inherit }

button, summary, select, a { cursor: pointer }

button, a, input, select, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent }

button, a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease
}

button svg, a svg { width: 18px; height: 18px }

button:hover:not(:disabled), a.button:hover { background: var(--hover); border-color: #4a4a4a }

button:active:not(:disabled) { background: var(--raised) }

button:disabled { opacity: .4; cursor: not-allowed }

.accent, button[aria-pressed=true] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600
}

.accent:hover:not(:disabled), button[aria-pressed=true]:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover)
}

.danger { color: var(--danger) }

.danger:hover:not(:disabled) { border-color: var(--danger); background: #ff6b6b14 }

input, select {
  min-height: var(--tap);
  min-width: 0;
  max-width: 100%;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color .15s ease
}

input:hover, select:hover { border-color: #4a4a4a }

input:focus, select:focus { border-color: var(--accent); outline: none }

input::placeholder { color: var(--faint) }

input[type=checkbox] { min-height: 18px; width: 18px; height: 18px; padding: 0; accent-color: var(--accent) }

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

::selection { background: #c9a35e55 }

[hidden] { display: none !important }

.muted { color: var(--muted) }

/* Numbers, clocks, camera names, addresses. */
.num, time, code { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" }

code { font-size: 13px }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { transition: none !important; animation: none !important }
}
