:root { --bg: #f1f3f5; --box: #fff; --line: #cfd6dd; --fg: #17212b; --muted: #5b6876; --accent: #1d5fd1; --accent-fg: #fff; --ok-bg: #dcefe4; --ok: #1b7a4b; --bad-bg: #f7dcd9; --bad: #b3261e; }
@media (prefers-color-scheme: dark) { :root { --bg: #11171e; --box: #19222c; --line: #2d3a47; --fg: #e4eaf0; --muted: #94a3b3; --accent: #6ea8ff; --accent-fg: #0b1420; --ok-bg: #163527; --ok: #6fd29d; --bad-bg: #40181a; --bad: #ff8a80; color-scheme: dark; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 980px; margin: 0 auto; padding-inline: 16px; }
main.wrap { padding-block: 24px 48px; display: flex; flex-direction: column; gap: 18px; }
header { background: var(--box); border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-block: 12px; }
.brand { font-weight: 700; font-size: 18px; color: var(--fg); text-decoration: none; }
nav { display: flex; align-items: center; gap: 16px; font-size: 15px; } nav form { margin: 0; }
h1 { font-size: 24px; margin: 0; } h2 { font-size: 18px; margin: 0; } p { margin: 0; }
.lead { font-size: 17px; color: var(--muted); } .hint { color: var(--muted); font-size: 14px; } .mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.box { background: var(--box); border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.box.narrow { max-width: 400px; }
.cams { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.cam { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 120px; padding: 16px; background: var(--accent); color: var(--accent-fg); border-radius: 10px; font-size: 20px; font-weight: 600; text-decoration: none; }
.cam:hover, .cam:focus-visible { filter: brightness(1.1); outline: 3px solid var(--fg); outline-offset: 2px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 6px; color: var(--fg); }
input, textarea { font: 15px inherit; font-family: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--box); color: var(--fg); min-width: 0; }
input[type=checkbox] { width: 18px; height: 18px; } input.short { width: 6em; }
input.wide { width: 100%; min-width: 260px; } textarea { width: 100%; resize: vertical; }
input:focus-visible, textarea:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn { display: inline-block; font: 600 15px inherit; font-family: inherit; padding: 8px 16px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-fg); cursor: pointer; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent); } .btn.small { padding: 4px 12px; font-size: 14px; }
button.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.row, .folders, .pager { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .row form { margin: 0; }
.note { padding: 10px 14px; border-radius: 6px; background: var(--ok-bg); color: var(--ok); } .note.bad { background: var(--bad-bg); color: var(--bad); }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 13px; color: var(--muted); font-weight: 500; white-space: nowrap; } tr:last-child td { border-bottom: 0; }
td.name { overflow-wrap: anywhere; } td.acts { white-space: nowrap; text-align: right; } .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.on td { background: var(--ok-bg); }
.player video, .player img { width: 100%; max-height: 72vh; background: #000; border-radius: 6px; }
.crumbs { font-size: 14px; color: var(--muted); }
.user { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding-block: 10px; border-bottom: 1px solid var(--line); margin: 0; }
.user:last-child { border-bottom: 0; } .user strong { min-width: 110px; } .cams-pick { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.row.between { justify-content: space-between; } form.inline { display: inline; margin: 0; } .btn.danger { border-color: var(--bad); color: var(--bad); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dow { text-align: center; font-size: 13px; color: var(--muted); }
.day { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-variant-numeric: tabular-nums; }
.day.has { background: var(--ok-bg); color: var(--ok); border-color: transparent; font-weight: 700; } .day.has:hover, .day.on { outline: 3px solid var(--accent); }
.day.today { border-color: var(--accent); } .day small, .hour small { font-size: 11px; font-weight: 400; }
.hours { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.hour { display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 6px; font-variant-numeric: tabular-nums; text-decoration: none; }
a.hour { background: var(--ok-bg); color: var(--ok); font-weight: 700; } a.hour:hover, a.hour.on { outline: 3px solid var(--accent); }
.hour.none { color: var(--muted); opacity: .5; }
[hidden] { display: none !important; }
@media (max-width: 560px) { .hours { grid-template-columns: repeat(6, 1fr); } .day { min-height: 44px; } }
.tag { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--line); color: var(--fg); } .tag.adm { background: var(--accent); color: var(--accent-fg); }
select { font: 15px inherit; font-family: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--box); color: var(--fg); }
