/* WCPS District Command — brand: WCPS navy #24418F, WCPS red #E0262F, charcoal #242424 */
:root {
  --red: #24418F; --red-d: #1a3070; --red-l: #e8edf8; --ink: #242424; --ink2: #373737; --mut: #6f6f6f; --line: #e5e5e5; --bg: #f8f8f8; --card: #fff;
  --ok: #1a9b5b; --ok-l: #e3f5ec; --warn: #c77700; --warn-l: #fff3dc; --bad: #c9302c; --bad-l: #fdeaea; --info: #2463a6; --info-l: #e7f0fa;
  --r: 12px; --sh: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05); --sh2: 0 10px 40px rgba(0,0,0,.18);
  --side: 258px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); display: flex; overflow: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h3 { font-size: 15px; font-weight: 700; }
small { font-size: 12px; }
.muted { color: var(--mut); } .small { font-size: 12px; } .b { font-weight: 700; } .r { text-align: right; } .c { text-align: center; }
.pos { color: var(--ok); font-weight: 700; } .neg { color: var(--bad); font-weight: 700; } .red { color: var(--red) !important; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.grow { flex: 1; } .d { display: block; } .link { color: var(--red); font-weight: 600; } .link:hover { text-decoration: underline; }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }

/* ---------- sidebar ---------- */
.side { width: var(--side); flex: none; background: var(--ink); color: #cfcfcf; display: flex; flex-direction: column; height: 100vh; position: relative; overflow: hidden; }
.side::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--red); }
.brand { display: flex; align-items: center; gap: 12px; padding: 22px 18px 18px; border-bottom: 1px solid #333; }
.brand img { width: 46px; height: 46px; border-radius: 10px; background: #fff; object-fit: contain; padding: 3px; box-shadow: 0 0 0 2px var(--red); }
.brand b { display: block; color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.brand b span { color: var(--red); }
.brand small { color: #9a9a9a; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
#nav { flex: 1; overflow-y: auto; padding: 10px 10px 20px; }
.nav-sec { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: #7d7d7d; padding: 16px 12px 6px; font-weight: 700; }
#nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; color: #d6d6d6; font-weight: 500; margin: 1px 0; transition: background .15s, color .15s; position: relative; }
#nav a .ic { width: 18px; height: 18px; color: #9a9a9a; }
#nav a:hover { background: #2f2f2f; color: #fff; }
#nav a.on { background: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(36,65,143,.35); }
#nav a.on .ic { color: #fff; }
#nav a.parent { color: #fff; background: #2f2f2f; }
#nav a.sub { padding: 6px 12px 6px 41px; font-size: 13px; color: #a9a9a9; }
#nav a.sub .dot { width: 6px; height: 6px; border-radius: 50%; background: #555; position: absolute; left: 21px; }
#nav a.sub.on { background: #2c4790; color: #fff; box-shadow: none; } #nav a.sub.on .dot { background: var(--red); box-shadow: 0 0 0 3px rgba(36,65,143,.25); }
#nav a span { flex: 1; }
.nb { font-style: normal; font-size: 11px; font-weight: 700; background: #444; color: #fff; border-radius: 10px; padding: 1px 7px; min-width: 20px; text-align: center; }
.nb.red { background: #fff; color: var(--red); } #nav a.on .nb.red { background: #fff; }
.nb.amber { background: #e29a00; color: #241800; }
.side-foot { padding: 16px 18px 20px; border-top: 1px solid #333; background: linear-gradient(180deg, transparent, rgba(36,65,143,.12)); }
.sf-tag { color: #fff; font-weight: 800; font-size: 13px; }
.side-foot small { color: #8b8b8b; font-size: 11px; }

/* ---------- main / topbar ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100vh; }
.top { height: 62px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--line); }
.crumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mut); }
.crumb b { color: var(--ink); font-size: 15px; } .crumb span::after { content: "›"; margin-left: 10px; color: #bbb; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.top-s { width: 300px; }
.sy-pill { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 20px; background: var(--red-l); color: var(--red-d); }
.me { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid var(--line); }
.me b { display: block; font-size: 13px; } .me small { color: var(--mut); font-size: 11px; }
.av { width: 32px; height: 32px; border-radius: 50%; background: var(--ink2); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: none; }
.me .av { background: var(--red); }
.view { flex: 1; overflow-y: auto; padding: 24px 28px 60px; }
.view > * + * { margin-top: 18px; }

/* ---------- generic ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 18px; }
.card.flat { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-h h3 { display: flex; align-items: center; gap: 7px; }
.card-h > :last-child:not(:first-child) { margin-left: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--red); }
.eyebrow.light { color: #ffb3b4; }
.page-h { display: flex; align-items: flex-end; gap: 20px; }
.page-h h1 { font-size: 27px; font-weight: 800; margin-top: 4px; }
.page-h p { margin: 6px 0 0; max-width: 820px; }
.ph-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.grid { display: grid; gap: 18px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--mut); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend i.dash { height: 0; border-top: 2px dashed var(--ink); border-radius: 0; width: 16px; }
.empty-s { padding: 26px 14px; text-align: center; color: var(--mut); font-size: 13px; background: var(--bg); border-radius: 10px; border: 1px dashed var(--line); }
.banner { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 10px; font-size: 13px; border: 1px solid; }
.banner .ic { margin-top: 1px; }
.banner.warn { background: var(--warn-l); border-color: #f1d49a; color: #6b4300; }
.banner.bad { background: var(--bad-l); border-color: #f2c1c0; color: #7d1a17; }
.banner.ok { background: var(--ok-l); border-color: #b8e2cb; color: #0f5a35; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: transform .08s, background .15s, box-shadow .15s, border-color .15s; }
.btn:hover { border-color: #cfcfcf; background: #fafafa; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; } .btn.primary:hover { background: #000; }
.btn.hornet { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(36,65,143,.28); } .btn.hornet:hover { background: var(--red-d); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; } .btn.ok:hover { background: #15834c; }
.btn.ghost { background: transparent; } .btn.ghost:hover { background: #f1f1f1; }
.btn.danger-text { color: var(--bad); border-color: transparent; }
.btn.big { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 11px; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 7px; gap: 5px; }
.btn.xs .ic { width: 13px; height: 13px; }
.btn.wide { width: 100%; justify-content: center; height: 42px; }
.iconbtn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 8px; cursor: pointer; color: var(--mut); }
.iconbtn:hover { background: #efefef; color: var(--ink); } .iconbtn.del:hover { color: var(--bad); background: var(--bad-l); }
.iconbtn.xs { width: 22px; height: 22px; } .iconbtn.xs .ic { width: 13px; height: 13px; }

/* chips & pills */
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: #efefef; color: var(--ink2); white-space: nowrap; line-height: 1.35; }
.chip .ic { width: 13px; height: 13px; }
.chip.xs { font-size: 11px; padding: 2px 7px; }
.chip.ok { background: var(--ok-l); color: #0f6e3f; } .chip.bad { background: var(--bad-l); color: #a1221f; } .chip.warn { background: var(--warn-l); color: #8a5300; } .chip.info { background: var(--info-l); color: var(--info); }
.chip.ghost { background: transparent; border: 1px solid var(--line); color: var(--mut); } .chip.dark { background: var(--ink); color: #fff; }
.chip.c-sib { background: #e8edf8; color: var(--red-d); } .chip.c-prior { background: #ece9fb; color: #4a3aa8; } .chip.c-near { background: var(--info-l); color: var(--info); }
.chip.c-mv { background: var(--warn-l); color: #8a5300; } .chip.c-foster { background: #e2f4f4; color: #0d6b6b; } .chip.c-mig { background: #eef6e1; color: #4c6b12; }
.chip.ky { background: #e8f5e3; color: #2f6b1d; } .chip.usda { background: #e7eefb; color: #1d4c94; } .chip.allergen { background: #fff0e6; color: #a1460a; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; font-size: 12.5px; background: rgba(255,255,255,.12); color: #eee; border: 1px solid rgba(255,255,255,.18); font-family: inherit; }
.pill.dark { background: rgba(0,0,0,.35); } .pill.link { cursor: pointer; } .pill.link:hover { background: rgba(255,255,255,.22); }
.pill b { color: #fff; }

/* segmented / tabs */
.seg { display: inline-flex; background: #efefef; border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 8px; cursor: pointer; color: var(--ink2); }
.seg button em { font-style: normal; font-size: 11px; color: var(--mut); margin-left: 3px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); } .seg button.on em { color: var(--red); }
.seg.big button { padding: 9px 16px; font-size: 13.5px; }
.subtabs, .rtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.subtabs a, .rtabs a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; font-weight: 600; color: var(--mut); border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .15s; }
.subtabs a:hover, .rtabs a:hover { color: var(--ink); }
.subtabs a.on, .rtabs a.on { color: var(--ink); border-bottom-color: var(--red); }
.subtabs a em, .rtabs a em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #efefef; color: var(--ink2); }
.rtabs a.on em { background: var(--red); color: #fff; }
.rtabs a { font-size: 15px; padding: 13px 20px; }

/* KPI tiles */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi-row.k3 { grid-template-columns: repeat(3, 1fr); }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh); position: relative; overflow: hidden; }
.kpi label { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); }
.kpi b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.kpi b i { font-style: normal; font-size: 14px; color: var(--mut); font-weight: 600; }
.kpi small { color: var(--mut); }
.kpi.red { border-color: #f6c8c9; background: linear-gradient(135deg, #fff 55%, #f0f4fc); }
.kpi.red::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); }
.kpi.red b { color: var(--red); }

/* tables */
.tbl-tools { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fcfcfc; flex-wrap: wrap; }
.tbl-tools select, select.big, .add { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 30px 0 10px; font: inherit; font-size: 13px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23777' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center; -webkit-appearance: none; appearance: none; cursor: pointer; }
select.big { height: 40px; font-size: 14px; font-weight: 600; min-width: 200px; }
.tsearch { display: flex; align-items: center; gap: 7px; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: #fff; min-width: 240px; color: var(--mut); }
.tsearch:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(36,65,143,.12); }
.tsearch input { border: 0; outline: 0; font: inherit; font-size: 13px; flex: 1; background: transparent; color: var(--ink); min-width: 0; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafafa; white-space: nowrap; user-select: none; position: sticky; top: 0; }
.tbl th.r { text-align: right; } .tbl th.c { text-align: center; }
.tbl th[data-sort] s { display: inline-block; width: 8px; height: 8px; margin-left: 5px; text-decoration: none; opacity: .3; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; vertical-align: 1px; width: 0; height: 0; cursor: pointer; }
.tbl th.sorted { color: var(--ink); } .tbl th.sorted s { opacity: 1; color: var(--red); } .tbl th.sorted.desc s { transform: rotate(180deg); }
.tbl td { padding: 10px 14px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: #fbf7f7; }
.tbl tbody tr[data-id] { cursor: pointer; }
.tbl td.acts { white-space: nowrap; text-align: right; opacity: .35; transition: opacity .15s; } .tbl tr:hover td.acts { opacity: 1; }
.tbl td.empty { text-align: center; color: var(--mut); padding: 34px; }
.tbl tr.row-bad td:first-child { box-shadow: inset 3px 0 0 var(--bad); } .tbl tr.row-bad { background: #fffafa; }
.tbl tr.cur { background: #fff5f5; } .tbl tr.cur td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.tbl.mini th, .tbl.mini td { padding: 8px 10px; }
.tbl-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; font-size: 12.5px; color: var(--mut); background: #fcfcfc; }
.pager { display: flex; align-items: center; gap: 10px; } .pager b { color: var(--ink); font-weight: 600; }
.who { display: flex; align-items: center; gap: 10px; } .who b { display: block; } .who small { color: var(--mut); }
.who .av { width: 30px; height: 30px; font-size: 11px; background: #ececec; color: var(--ink2); }
.grp { display: inline-block; padding: 2px 8px; margin: 1px 4px 1px 0; border-radius: 6px; background: #f1f1f1; font-weight: 600; font-size: 12px; }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 30%, 70% { transform: translateX(5px); } 50% { transform: translateX(-5px); } }
tr.shake { animation: shake .5s; background: var(--bad-l) !important; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(20,20,20,.5); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 20px 20px; z-index: 50; opacity: 0; transition: opacity .18s; overflow-y: auto; }
.modal.in { opacity: 1; }
.modal.confirm { z-index: 60; align-items: center; padding-top: 20px; }
.modal-card { background: #fff; border-radius: 16px; width: 560px; max-width: 100%; box-shadow: var(--sh2); transform: translateY(12px) scale(.98); transition: transform .22s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.modal.in .modal-card { transform: none; }
.modal-card.wide { width: 860px; } .modal-card.sm { width: 400px; }
.modal-head { display: flex; align-items: flex-start; gap: 10px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 18px; } .modal-head > div { flex: 1; } .modal-head .muted { margin-top: 2px; }
.modal-head::before { content: ""; width: 4px; align-self: stretch; border-radius: 3px; background: var(--red); }
.modal-body { padding: 18px 20px; max-height: 64vh; overflow-y: auto; }
.modal-body h3 { font-size: 17px; margin-bottom: 6px; }
.modal-foot { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: #fafafa; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.modal-card.wide .form-grid { grid-template-columns: repeat(4, 1fr); }
.modal-card.wide .fld.span2 { grid-column: span 4; }
.fld.span2 { grid-column: span 2; }
.fld label { display: block; font-size: 12px; font-weight: 600; color: var(--ink2); margin-bottom: 5px; } .fld label i { color: var(--red); font-style: normal; }
.fld input:not([type=checkbox]), .fld select, .fld textarea { width: 100%; height: 38px; border: 1px solid #dcdcdc; border-radius: 8px; padding: 0 11px; font: inherit; background: #fff; color: var(--ink); }
.fld textarea { height: auto; padding: 9px 11px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(36,65,143,.12); }
.fld input:disabled { background: #f4f4f4; color: var(--mut); }
.fld .invalid { border-color: var(--bad) !important; background: #fffafa; }
label.check { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 500 !important; cursor: pointer; font-size: 13px !important; margin: 0 !important; }
label.check input { width: 16px; height: 16px; accent-color: var(--red); }
.multi { display: flex; flex-wrap: wrap; gap: 6px; }
.pillck input { display: none; }
.pillck span { display: inline-block; padding: 5px 11px; border-radius: 20px; border: 1px solid #dcdcdc; font-size: 12.5px; cursor: pointer; user-select: none; transition: all .12s; }
.pillck input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.sms { background: #f1f1f4; border-radius: 16px 16px 16px 4px; padding: 12px 14px; font-size: 13px; max-width: 520px; }
.sms b { font-size: 11.5px; color: var(--mut); } .sms p { margin: 4px 0 0; }
.determ { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; background: var(--bg); border-radius: 10px; font-size: 13px; }
.formula { background: var(--bg); border-radius: 10px; padding: 14px 16px; margin-top: 14px; display: grid; gap: 7px; font-size: 13px; }
.sigpad { height: 70px; border: 1px dashed #cfcfcf; border-radius: 10px; display: flex; align-items: center; padding: 0 20px; background: #fcfcfc; }
.sigpad span { font-family: "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive; font-size: 30px; color: #1d3f8a; }

/* toasts */
#toasts { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 80; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 300px; max-width: 460px; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: var(--sh2); font-size: 13.5px; transform: translateX(30px); opacity: 0; transition: all .28s cubic-bezier(.2,.8,.2,1); border-left: 4px solid var(--ok); }
.toast.in { transform: none; opacity: 1; }
.toast .ic { color: #59d692; width: 18px; height: 18px; }
.toast.bad { border-left-color: var(--red); } .toast.bad .ic { color: #ff7b7d; }
.toast.info { border-left-color: #6aa4e6; } .toast.info .ic { color: #8dbdf2; }

/* charts */
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: #efefef; stroke-width: 1; }
.chart .ax { font-size: 11px; fill: #8a8a8a; } .chart .axl { font-size: 12px; fill: var(--ink2); font-weight: 700; }
.chart rect { transition: opacity .2s; } .chart rect:hover { opacity: .8; }
.donut { width: 150px; height: 150px; flex: none; } .donut .dv { font-size: 17px; font-weight: 800; fill: var(--ink); } .donut .ds { font-size: 10px; fill: var(--mut); text-transform: uppercase; letter-spacing: .08em; }
.spark { width: 120px; height: 34px; }
.gauge { width: 100%; display: block; }
.gauge .gfill { transition: stroke-dasharray 1s cubic-bezier(.2,.8,.2,1), stroke .4s; }
.gauge .gt { font-size: 9px; fill: #9a9a9a; font-weight: 600; }
.gauge .gv { font-size: 25px; font-weight: 800; fill: var(--ink); letter-spacing: -.02em; }
.gauge .gs { font-size: 9.5px; fill: var(--mut); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.bar { height: 8px; background: #eee; border-radius: 6px; overflow: hidden; flex: 1; }
.bar i { display: block; height: 100%; background: var(--red); border-radius: 6px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.bar.done i { background: var(--ok); } .bar.low i { background: var(--warn); }

