/* Admin dashboard styles (filled in with the admin screens). */
.admin { padding-top: 8px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 14px; }
.admin-head h1 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; letter-spacing: -0.02em; }
.admin-head p { margin-top: 2px; }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.crumbs a { color: var(--primary); font-weight: 700; }
.admin-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--divider); margin-bottom: 14px; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs a { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; font-weight: 700; color: var(--text-3); white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color var(--t-fast), border-color var(--t-base) var(--ease); }
.admin-tabs a:hover { color: var(--text); }
.admin-tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }
.admin-notice { margin-bottom: 14px; align-items: center; }
.admin-notice > .grow { flex: 1; min-width: 0; gap: 4px 10px; }
.admin-notice > .grow b { overflow-wrap: anywhere; }
.admin-notice > .btn { flex: none; }
.h2 { font-size: 18px; font-weight: 800; }
.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kpi .v { font-size: 26px; }
.kpi-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-height: 28px; }
.kpi .d { color: var(--text-3); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* charts */
.chart { position: relative; margin-top: 8px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.c-grid { stroke: var(--divider); stroke-width: 1; stroke-dasharray: 3 4; }
.c-tick { fill: var(--text-3); font: 600 11px var(--font-num); }
.c-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) var(--d, 0ms) forwards; }
.c-area { animation: fade 1.2s var(--ease) both; }
.c-cursor { stroke: var(--divider-strong); stroke-width: 1; }
.c-dot { stroke: var(--surface); stroke-width: 2; }
.c-tip { position: absolute; top: 0; z-index: 3; pointer-events: none; min-width: 120px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--ink); color: var(--on-ink); font-size: 12px; box-shadow: var(--sh-md); display: grid; gap: 2px; }
.c-tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.c-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-top: 6px; }
.c-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.spark { flex: none; }
.bar-list { display: grid; gap: 12px; }
.bar-list li { animation: rise var(--t-slow) var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.bl-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.bl-track { height: 8px; border-radius: 4px; background: var(--surface-sunk); overflow: hidden; }
.bl-track i { display: block; height: 100%; border-radius: 4px; background: var(--primary); transform-origin: left; animation: grow-w 900ms var(--ease) both; }
.funnel { display: grid; gap: 14px; }
.funnel li { animation: rise var(--t-slow) var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }
.f-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.f-top small { margin-left: 8px; color: var(--text-3); font-weight: 700; }
.donut { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center; }
.d-arc { transition: stroke-width var(--t-base); animation: fade 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms); }
.d-arc:hover { stroke-width: 28; }
.d-total { font: 800 24px var(--font-num); fill: var(--text); }
.d-sub { font: 600 11px var(--font); fill: var(--text-3); }
.d-legend { display: grid; gap: 8px; font-size: 13px; }
.d-legend li { display: flex; align-items: center; gap: 8px; }
.d-legend i { width: 10px; height: 10px; border-radius: 3px; }
.d-legend b { margin-left: auto; padding-left: 12px; }
.heat { display: grid; gap: 3px; overflow-x: auto; }
.heat-hours, .heat-row { display: grid; grid-template-columns: 34px repeat(24, minmax(10px, 1fr)); gap: 3px; align-items: center; }
.heat-hours span { font: 600 10px var(--font-num); color: var(--text-3); }
.heat-hours::before { content: ''; }
.heat-day { font-size: 11px; font-weight: 700; color: var(--text-2); }
.heat-row i { display: block; aspect-ratio: 1; min-height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--primary) calc(var(--a) * 100%), var(--surface-sunk)); transition: transform var(--t-fast); }
.heat-row i:hover { transform: scale(1.35); }
.health { display: grid; }
.health-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--divider); }
.health-row .grow { flex: 1; min-width: 0; display: grid; gap: 4px; }
.health-row:hover { background: var(--surface-soft); }
