:root { --teal: #0e9a8c; --navy: #1b2a4a; --ink: #1b2333; --muted: #5d6779; --line: #dfe4ec; --bg: #f4f6fa; --danger: #c0392b; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.45 -apple-system, "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--teal); }
header.bar { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 1rem; padding: .6rem 1.2rem; flex-wrap: wrap; }
header.bar h1 { font-size: 1.1rem; margin: 0 1rem 0 0; }
header.bar nav { display: flex; gap: .3rem; flex: 1; }
header.bar a.nav { color: #cfe; text-decoration: none; padding: .35rem .8rem; border-radius: 8px; }
header.bar a.nav.on { background: rgba(255,255,255,.15); color: #fff; }
header.bar .who { font-size: .9rem; color: #cbd5e6; }
header.bar button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
main { max-width: 1100px; margin: 0 auto; padding: 1.2rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem; margin-bottom: 1.2rem; }
.login { max-width: 400px; margin: 10vh auto; }
.login h1 { margin-top: 0; color: var(--navy); }
h2 { margin: 0 0 .8rem; font-size: 1.25rem; }
label { display: block; font-size: .85rem; color: var(--muted); margin: .7rem 0 .2rem; }
input, select, textarea { width: 100%; padding: .6rem .7rem; font: inherit; border: 1px solid #c3cad6; border-radius: 8px; background: #fff; color: var(--ink); }
input:disabled, textarea:disabled, select:disabled { background: #eef1f6; color: #556; }
textarea { min-height: 5rem; resize: vertical; }
button, .btn { font: inherit; padding: .55rem 1rem; border-radius: 8px; border: 1px solid var(--teal); background: var(--teal); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
button.secondary, .btn.secondary { background: #fff; color: var(--teal); }
button.danger { background: #fff; color: var(--danger); border-color: var(--danger); }
button:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.row.grow > * { flex: 1; }
.spacer { flex: 1; }
.msg { padding: .6rem .9rem; border-radius: 8px; margin: .8rem 0; }
.msg.err { background: #fdecea; color: #8a1f14; border: 1px solid #f5c2bd; }
.msg.ok { background: #e6f6f1; color: #0b5b50; border: 1px solid #b9e4d8; }
.muted { color: var(--muted); font-size: .9rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
tr.click { cursor: pointer; }
tr.click:hover { background: #f0f7f6; }
img.thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: #e8ecf3; display: block; }
.none { width: 56px; height: 56px; border-radius: 8px; background: #e8ecf3; display: flex; align-items: center; justify-content: center; color: #9aa4b5; font-size: .75rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 1.2rem; }
.photos { display: flex; flex-wrap: wrap; gap: .8rem; margin: .5rem 0 1rem; }
.photo { position: relative; }
.photo img { width: 150px; height: 150px; object-fit: cover; border-radius: 10px; display: block; background: #e8ecf3; }
.photo button { position: absolute; top: 6px; right: 6px; padding: .1rem .5rem; background: rgba(0,0,0,.6); border-color: transparent; }
.pill { display: inline-block; padding: .1rem .6rem; border-radius: 99px; background: #e4f2f0; color: #0b5b50; font-size: .8rem; }
details { margin: 1rem 0; }
summary { cursor: pointer; color: var(--teal); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: .8rem; }
@media (max-width: 640px) { th.hide, td.hide { display: none; } main { padding: .7rem; } }

.codes { font: 1rem/1.7 ui-monospace, Menlo, Consolas, monospace; background: #f4f6fa; border: 1px dashed #b8c1d1; border-radius: 8px; padding: .8rem 1rem; columns: 2; margin: .6rem 0; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .05em; }
.qr img { background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.boot { padding: 2rem; color: var(--muted); }
[hidden] { display: none !important; }
