:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #f3f0e8; color: #14251f; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 10% 0%, #e6f0e8, transparent 35%), #f3f0e8; }
.shell { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0; }
.hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.eyebrow, .label { color: #0a6951; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 7px 0 10px; font-size: clamp(32px, 6vw, 58px); line-height: 1; letter-spacing: -.05em; }
h2 { margin: 0 0 10px; font-size: 18px; }
.muted, small { color: #64726b; line-height: 1.6; }
.badge { border-radius: 999px; padding: 9px 13px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.badge.pending { background: #fff0c7; color: #806000; }
.badge.ok { background: #dcefe4; color: #126044; }
.badge.error { background: #fbe0da; color: #9d3d31; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card, .notice { border: 1px solid #ddd8ca; border-radius: 22px; background: rgba(255,255,255,.78); box-shadow: 0 14px 40px rgba(36, 54, 45, .06); }
.card { min-height: 150px; padding: 20px; display: flex; flex-direction: column; gap: 9px; }
.card strong { font-size: 25px; }
.notice { margin-top: 14px; padding: 22px; }
.notice p { margin: 0; color: #64726b; line-height: 1.65; }
.auth-panel form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; }
.auth-panel label { display: grid; gap: 6px; color: #64726b; font-size: 13px; font-weight: 700; }
.auth-panel input { width: 100%; border: 1px solid #d5d0c3; border-radius: 10px; padding: 11px 12px; font: inherit; background: #fff; }
.auth-panel button { margin-top: 0; }
.auth-panel #session-user p { margin: 0; }
.dashboard { margin-top: 28px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading h2 { margin: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
.metric-grid .card { min-height: 125px; }
.data-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
.data-panel { min-height: 190px; }
.data-list { display: grid; gap: 8px; margin-top: 16px; }
.data-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #e8e3d9; }
.data-row:first-child { border-top: 0; padding-top: 0; }
.data-row strong { display: block; font-size: 14px; }
.data-row small { display: block; font-size: 12px; }
.empty { color: #64726b; font-size: 13px; }
button { margin-top: 20px; border: 0; border-radius: 14px; background: #0a6951; color: white; cursor: pointer; font: inherit; font-weight: 800; padding: 13px 18px; }
.error { min-height: 24px; color: #9d3d31; }
@media (max-width: 820px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } .data-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .hero { flex-direction: column; } .grid, .metric-grid { grid-template-columns: 1fr; } .auth-panel form { grid-template-columns: 1fr; } .auth-panel button { width: 100%; } .shell { padding-top: 32px; } }
