:root { color-scheme: light; font-family: "Inter", system-ui, sans-serif; color: #172c35; background: #f3f6f7; line-height: 1.5; --stroke: #dbe4e7; --brand: #146354; --muted: #4b626c; }
* { box-sizing: border-box; }
body { margin: 0; display: grid; grid-template-columns: minmax(220px, 250px) minmax(0, 1fr); min-height: 100vh; }
aside { padding: 30px 20px; background: #112f33; color: #f7ffff; display: flex; flex-direction: column; gap: 26px; }
.brand { display: flex; gap: 12px; align-items: center; font-weight: 730; line-height: 1.25; }
.brand small { display: block; opacity: .82; font-size: .78rem; font-weight: 500; margin-top: 4px; }
.mark { display: grid; place-items: center; flex: 0 0 39px; height: 39px; border-radius: 11px; background: #bde8cf; color: #113833; font-size: 1.15rem; }
nav { display: grid; gap: 4px; }
nav a { color: #e3efec; text-decoration: none; padding: 10px 12px; border-radius: 7px; font-size: .91rem; }
nav a:hover, nav a[aria-current] { background: #27504d; color: white; }
aside form { margin-top: auto; }
main { width: 100%; max-width: 1440px; padding: 42px clamp(20px,4vw,56px); }
.top { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
h1, h2, p { margin: 0 0 16px; }
h1 { font-size: clamp(1.48rem, 3vw, 2.2rem); line-height: 1.18; letter-spacing: -.04em; }
.top h1 { margin: 0; }
h2 { font-size: 1.08rem; }
.mode { font-size: .78rem; font-weight: 750; padding: 5px 10px; border-radius: 12px; background: #e8edee; color: #354a52; }
.mode.test, .notice { background: #fff2d5; color: #614305; }
.mode.active { background: #d9f2e6; color: #0a533d; }
.notice { padding: 12px 16px; border-radius: 8px; }
.panel, .metric { background: white; border: 1px solid var(--stroke); border-radius: 12px; box-shadow: 0 1px 3px #18363c09; }
.panel { padding: clamp(13px, 3vw, 24px); margin-bottom: 18px; }
.panel p { color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.metric { padding: 17px; }
.metric span { color: var(--muted); display: block; font-size: .86rem; }
.metric strong { display: block; font-size: 1.85rem; margin-top: 4px; letter-spacing: -.03em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--stroke); border-radius: 7px; margin: 0 0 14px; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; text-align: left; }
th, td { padding: 10px 13px; min-width: 85px; vertical-align: top; }
th { background: #f1f6f5; color: #27454d; font-weight: 730; }
td { border-top: 1px solid var(--stroke); }
.empty { color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
label { display: grid; gap: 5px; font-size: .88rem; font-weight: 650; }
input, select, button { font: inherit; }
input, select { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #a8bdc4; border-radius: 6px; background: white; color: inherit; }
button { border: 1px solid var(--brand); background: var(--brand); color: white; border-radius: 7px; padding: 9px 13px; cursor: pointer; font-weight: 650; }
button:hover { filter: brightness(.92); }
.quiet { background: #edf5f2; color: #215248; border-color: #bfd4cd; }
:focus-visible { outline: 3px solid #49a890; outline-offset: 2px; }
.controls, .inline, .pagination { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; margin-bottom: 14px; }
main a { color: var(--brand); }
body:has(.login) { display: block; }
.login { max-width: 470px; margin: 8vh auto 0; }
.login .brand { margin-bottom: 20px; }
.login button { margin-top: 16px; }
@media (max-width: 1000px) { .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 720px) {
  body { display: block; }
  aside { padding: 15px; gap: 10px; }
  nav { display: flex; overflow-x: auto; }
  nav a { white-space: nowrap; }
  aside form { margin: 0; }
  aside button { padding: 6px 10px; }
  main { padding: 22px 14px; }
  .fields { grid-template-columns: minmax(0,1fr); }
}
