:root {
  color-scheme: light;
  font-family: Arial, sans-serif;
  background: #f3f5f7;
  color: #20252b;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; padding: 1.25rem; display: flex; justify-content: center; }
.app { width: min(100%, 900px); display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
h1 { margin: 0.5rem 0 0; text-align: center; }
.intro { margin: 0; text-align: center; color: #535d68; }
label { align-self: flex-start; font-weight: 700; }
#cameraSelect { width: 100%; min-height: 3rem; padding: 0.5rem 0.75rem; font-size: 1.1rem; }
.button-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
button { min-height: 2.75rem; padding: 0.55rem 1.1rem; border: 0; border-radius: 0.45rem; background: #1769aa; color: white; font-size: 1rem; font-weight: 700; cursor: pointer; }
button:hover:not(:disabled) { background: #0d4f86; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
#cameraStatus { min-height: 1.5em; margin: 0; text-align: center; }
#cameraStatus[data-state="error"] { color: #b42318; }
#cameraStatus[data-state="connected"] { color: #167044; font-weight: 700; }
#video { display: block; width: 100%; max-height: 72vh; margin-top: 0.25rem; aspect-ratio: 4 / 3; object-fit: contain; background: #080a0c; border: 2px solid #444; border-radius: 0.5rem; }
@media (max-width: 480px) { body { padding: 0.75rem; } h1 { font-size: 1.45rem; } #video { max-height: 62vh; } }
