:root {
  color-scheme: light;
  --ink: #172622;
  --muted: #566761;
  --page: #f1f4f0;
  --paper: #fbfcf9;
  --line: #dce4dc;
  --accent: #b6de8d;
  --forest: #152b23;
  font: 15px/1.5 "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--page); display: grid; grid-template-columns: 246px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--forest); color: #e9f1e7; padding: 26px 16px; display: flex; flex-direction: column; gap: 25px; }
.brand { color: inherit; text-decoration: none; font-weight: 750; display: flex; gap: 11px; align-items: center; letter-spacing: -.035em; white-space: nowrap; }
.brand small { display: block; font-weight: 450; opacity: .75; font-size: 12px; letter-spacing: .01em; }
.mark { background: var(--accent); color: var(--forest); border-radius: 10px; width: 39px; height: 39px; display: grid; place-items: center; font-size: 23px; flex: none; }
nav { display: grid; gap: 4px; }
nav a { color: #d6e3d9; text-decoration: none; padding: 8px 12px; border-radius: 7px; font-size: 14px; }
nav a:hover, nav a[aria-current] { color: white; background: #2d4739; }
nav a[aria-current] { box-shadow: inset 3px 0 var(--accent); font-weight: 700; }
.sidebar-foot { margin-top: auto; font-size: 12px; color: #c7d5ca; padding: 12px; border-top: 1px solid #395143; }
.signal { display: inline-block; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; margin-right: 8px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 34px; border-bottom: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 13px; }
.top span { padding: 0 9px; color: #7b8d80; }
.account { display: flex; align-items: center; gap: 10px; }
.content { padding: 36px 34px; max-width: 1440px; margin: 0 auto; }
h1 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 43px); line-height: 1.1; letter-spacing: -.055em; }
h2 { font-size: 19px; letter-spacing: -.025em; margin: 0 0 13px; }
.subtitle { color: var(--muted); margin: 0 0 23px; }
.grid { display: grid; gap: 15px; grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); margin-bottom: 16px; }
.card { border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 18px; margin-bottom: 15px; }
.grid .card { margin: 0; }
.metric { font-size: 28px; font-weight: 750; letter-spacing: -.045em; }
.label { color: var(--muted); display: block; font-size: 13px; }
.hero { background: #e4efdd; border-color: #cdddc7; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero h2 { margin-bottom: 2px; }
.badge { border: 1px solid #bed0b8; background: #f3f8ef; padding: 5px 9px; border-radius: 20px; font-size: 12px; font-weight: 650; }
.split { display: grid; grid-template-columns: 1.45fr 1fr; gap: 15px; }
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
th, td { padding: 10px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 650; }
td:last-child { white-space: normal; }
button { border: 1px solid #214938; border-radius: 7px; padding: 8px 13px; color: white; background: #28543f; font: inherit; font-weight: 650; cursor: pointer; }
button:hover { background: #1e3c2d; }
button.secondary { background: var(--paper); color: #244636; border-color: #b8cbbd; font-size: 13px; }
button.secondary:hover { background: #e7efe4; }
input, textarea, select { width: 100%; border: 1px solid #bfcfc2; border-radius: 6px; background: white; padding: 8px; font: inherit; color: inherit; }
label { display: grid; gap: 5px; font-weight: 600; }
form { display: grid; gap: 12px; margin: 12px 0; }
form.inline { grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); align-items: end; }
textarea, pre { font-family: ui-monospace, monospace; font-size: 13px; }
textarea { min-height: 250px; }
pre { max-width: 100%; overflow: auto; white-space: pre-wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
#notice:not(:empty) { margin-block: 12px; background: #edf4e8; padding: 10px; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
audio { width: min(100%, 180px); height: 32px; }
.login { display: grid; place-items: center; grid-template-columns: 1fr; padding: 20px; background: #e0ebdf; }
.login-card { width: min(430px,100%); background: var(--paper); border-radius: 16px; border: 1px solid var(--line); padding: 32px; }
.login .brand { margin-bottom: 30px; }
.flow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.flow span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; background: #eef4ea; }
:focus-visible { outline: 3px solid #669952; outline-offset: 2px; }
@media(max-width: 850px) { body { grid-template-columns: 195px minmax(0,1fr); } .split { grid-template-columns: 1fr; } .content,.top { padding: 20px; } }
@media(max-width: 610px) { body { grid-template-columns: 1fr; } .sidebar { padding: 12px; gap: 12px; } nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; } .sidebar-foot { display: none; } .content,.top { padding: 15px; } .top { flex-wrap: wrap; } }
main, .sidebar { min-width: 0; }
@media(max-width: 610px) { body { grid-template-columns: minmax(0,1fr); } }
