:root { color-scheme: light; font-family: "Segoe UI", sans-serif; }
body { margin: 0; background: #f4efe8; color: #241b33; }
body.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: #2b1448; color: #f7f1ff; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; box-sizing: border-box; }
.brand { margin: 0; font-size: 1.25rem; font-weight: 700; }
.brand-sub { margin: 0 0 16px; color: #d5c4ef; font-size: 0.85rem; }
.group { margin: 16px 8px 4px; color: #b9a4d6; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.side a, .side button { display: block; color: #f7f1ff; background: transparent; border: 0; border-radius: 10px; text-decoration: none; text-align: left; font: inherit; padding: 9px 12px; cursor: pointer; width: 100%; }
.side a:hover, .side button:hover, .side a.active { background: #4b2a86; }
.side-foot { margin-top: auto; padding-top: 16px; }
.side-foot a { font-size: 0.85rem; word-break: break-all; }
main { padding: 28px 32px 48px; max-width: 1100px; }
h1 { margin: 0 0 6px; font-size: 1.7rem; }
.lead { margin: 0 0 18px; color: #66597a; max-width: 62ch; }
h2 { margin: 22px 0 8px; font-size: 1.1rem; }
.card { background: white; border-radius: 16px; padding: 18px; margin: 12px 0; box-shadow: 0 1px 0 rgba(43, 20, 72, 0.06); }
.narrow { max-width: 420px; }
.login-page { min-height: 100vh; display: grid; place-items: center; }
.login-page main { width: min(420px, calc(100% - 32px)); }
label { display: grid; gap: 6px; margin: 10px 0; font-size: 0.92rem; }
input, select { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid #d9cfe8; background: white; }
button, .shot a { font: inherit; padding: 8px 12px; border-radius: 8px; border: 0; background: #5a2fbd; color: white; text-decoration: none; cursor: pointer; }
button.quiet { background: #efeaf8; color: #3b2468; }
button.danger { background: #8d1230; }
.stats, .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.split { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 18px; align-items: start; }
.stats article, .shot { background: white; border-radius: 16px; padding: 14px; }
.stats span { display: block; color: #6d6280; }
.stats strong { font-size: 1.8rem; }
.shot img { width: 100%; height: 220px; object-fit: cover; border-radius: 10px; background: #eee; }
.shot form { display: inline; }
.filters { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.error { color: #8d1230; }
table { width: 100%; border-collapse: collapse; background: white; border-radius: 16px; overflow: hidden; }
td, th { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; vertical-align: middle; }
code { word-break: break-all; }
@media (max-width: 860px) {
  body.app { grid-template-columns: 1fr; }
  .side { position: relative; height: auto; }
  .split { grid-template-columns: 1fr; }
}
