:root {
  --ink: #182138;
  --ink-soft: #3c4a66;
  --paper: #f3f5f8;
  --white: #ffffff;
  --line: #d5dce8;
  --blue: #335192;
  --focus: #5289fc;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: "Roboto Slab", Palatino, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a { color: var(--blue); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  background: rgba(243, 245, 248, 0.94);
  border-bottom: 1px solid var(--line);
}

.brand img { display: block; height: 34px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.lang { display: flex; border: 1px solid var(--line); background: var(--white); }

.lang button {
  background: transparent;
  color: var(--ink-soft);
  border: 0;
  font: 700 0.82rem/1 "Source Sans 3", sans-serif;
  letter-spacing: 0.04em;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.lang button[aria-current="true"] { background: var(--ink); color: var(--white); }

button, .button {
  border: 0;
  background: var(--ink);
  color: var(--white);
  font: 600 1rem/1.2 "Source Sans 3", sans-serif;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  text-decoration: none;
}

main { max-width: 72rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

table { border-collapse: collapse; width: 100%; background: var(--white); }

th, td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

label { display: block; margin-top: 1rem; }

input, select {
  font: inherit;
  color: inherit;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  background: var(--white);
  width: min(100%, 24rem);
}

.errorlist { color: #8a1f1f; padding-left: 1rem; }

.period { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin: 1rem 0; }

.period label { margin: 0; }

.cameras { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }

.cameras video { width: 100%; background: var(--ink); }

.picker { margin-bottom: 1rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 40rem) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { margin-bottom: 1rem; background: var(--white); }
  .cameras { grid-template-columns: 1fr; }
}
