/* Home (v8 P1 slice 1): chart-first landing page. Theme tokens only (app.css --v-*, --panel, --ink, --mute), so dark
   and light both hold; one column under 900px, no horizontal scroll at 390px. */
.hm { display: grid; gap: 14px; min-width: 0; }
.hm-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; }
.hm-tiles > div { min-width: 0; display: flex; }
.hm-tiles > div > .v5tile { flex: 1; min-width: 0; }
.hm-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; min-width: 0; }
.hm-call { font-size: 14px; font-weight: 600; margin: 0 0 8px; padding-left: 10px; border-left: 3px solid var(--v-track); }
.hm-call.good { border-color: var(--v-good); } .hm-call.crit { border-color: var(--v-crit); }
.hm-pbar { position: relative; height: 14px; border-radius: 7px; background: var(--v-track); overflow: visible; }
.hm-pfill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; background: var(--v-s1); min-width: 2px; }
.hm-pmark { position: absolute; top: -4px; width: 2px; height: 22px; background: var(--ink); }
.hm-plbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); margin: 6px 0 12px; }
.hm-chart { position: relative; min-width: 0; overflow: hidden; }
.hm-qhead { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.hm-qhead .btn { margin-left: auto; }
.hm-big { font: 600 32px/1 Newsreader, serif; color: var(--ink); }
.hm-q { list-style: none; margin: 0 0 10px; padding: 0; }
.hm-q li { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.hm-q li a { color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-due { flex: none; font-size: 12px; color: var(--mute); }
.hm-due.late { color: var(--bad); font-weight: 600; }
.hm-moves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hm-moves li { border: 1px solid var(--line); border-left: 3px solid var(--v-warn); border-radius: var(--r); padding: 12px; min-width: 0; }
.hm-moves li.hm-sev3 { border-left-color: var(--v-crit); } .hm-moves li.hm-sev1 { border-left-color: var(--v-track); }
.hm-mt { display: flex; gap: 8px; align-items: flex-start; }
.hm-n { flex: none; width: 20px; height: 20px; border-radius: 10px; background: var(--panel2); color: var(--ink); font-size: 12px; text-align: center; line-height: 20px; }
.hm-moves details { margin-top: 8px; } .hm-moves summary { cursor: pointer; color: var(--mute); font-size: 12.5px; }
.hm-moves p { font-size: 13px; color: var(--ink2); margin: 6px 0; }
/* What to change (v8 P2): one card per shift, the figure first; stacks under 900px. */
.hm-change { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hm-change li { border: 1px solid var(--line); border-left: 3px solid var(--v-warn); border-radius: var(--r); padding: 12px; min-width: 0; display: grid; gap: 8px; align-content: start; overflow-wrap: anywhere; }
.hm-change li.hm-sev3 { border-left-color: var(--v-crit); } .hm-change li.hm-sev1 { border-left-color: var(--v-track); }
.hm-cmoved { font-weight: 600; color: var(--ink); font-size: 14px; }
.hm-cbar { display: grid; grid-template-columns: minmax(64px, 38%) minmax(0, 1fr) 44px; gap: 8px; align-items: center; }
.hm-cbar > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-cmark { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink); }
.hm-cmark-sw { display: inline-block; width: 2px; height: 10px; background: var(--ink); vertical-align: middle; }
.hm-ctrack { height: 8px; border-radius: 4px; background: var(--v-track); position: relative; overflow: visible; }
.hm-ctrack i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--v-s1); border-radius: 4px; min-width: 2px; }
.hm-cown { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.hm-chip { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: var(--panel2); color: var(--ink); }
.hm-change details summary { cursor: pointer; color: var(--mute); font-size: 12.5px; } .hm-change p { font-size: 13px; color: var(--ink2); margin: 6px 0; }
/* Moved this week (v8 P2 slice 3) and the this-week/last-week pairs. */
.hm-wow { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 0 0 12px; }
.hm-wchip { font-size: 12.5px; padding: 3px 9px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.hm-wchip.down .hm-wd { color: var(--bad); font-weight: 600; } .hm-wchip.up .hm-wd { color: var(--v-good); font-weight: 600; }
.hm-pair { display: grid; grid-template-columns: minmax(64px, 38%) minmax(0, 1fr) 52px; gap: 8px; align-items: center; }
.hm-pair > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-ptrack { position: relative; height: 10px; border-radius: 5px; background: var(--v-track); }
.hm-ptrack i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; }
.hm-pcur { background: var(--v-s1); } .hm-pprev { background: transparent; border: 2px solid var(--ink); box-sizing: border-box; }
.hm-sw { display: inline-block; width: 12px; height: 8px; border-radius: 3px; vertical-align: middle; position: static; }
@media (max-width: 1200px) { .hm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .hm-grid, .hm-moves, .hm-change { grid-template-columns: minmax(0, 1fr); } .hm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Performance > KPIs, the business scorecard (v3/scorecard.js, v8 11-02): theme tokens only; cards stack at 390. */
.sc { display: grid; gap: 12px; min-width: 0; }
.sc-row { min-width: 0; }
.sc-total { border-color: var(--v-s1); }
.sc-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sc-head h3 { font: 600 17px/1.2 Newsreader, serif; color: var(--ink); text-transform: none; letter-spacing: 0; margin: 0; }
.sc-spark { display: flex; align-items: center; gap: 8px; }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 16px; font-size: 13.5px; min-width: 0; }
.sc-grid > div { min-width: 0; overflow-wrap: anywhere; }
.sc-l { font-size: 11.5px; color: var(--mute); margin-bottom: 3px; }
.sc-tbar { position: relative; height: 10px; border-radius: 5px; background: var(--v-track); margin: 4px 0; }
.sc-tbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--v-s1); min-width: 2px; }
.sc-tbar b { position: absolute; top: -3px; width: 2px; height: 16px; background: var(--ink); }
.sc-tree ul { list-style: none; margin: 6px 0 0; padding-left: 14px; border-left: 1px solid var(--line); }
.sc-tree > ul { padding-left: 0; border-left: 0; }
.sc-n { margin: 6px 0; }
