/* P010: the server page's Overview, Backups and Settings tabs on Fluent 2 (docs/design/README.md; design in
   docs/ai/evidence/P010/design-gemini-s1.md). Loaded after fluent-fixes.css. Sizes are Fluent's (14 px body, 12 px
   captions, 32 px controls, 44 px table rows, 8 px card corners) and every box lands on whole pixels: grid columns are
   rounded with container units, the last column takes the remainder. */

/* Side menu group labels in sentence case, as Fluent's navigation section headers ("uppercase nowhere"). */
.side .group { text-transform: none; letter-spacing: 0; font-size: var(--fontSizeBase200); line-height: var(--lineHeightBase200); font-weight: var(--fontWeightSemibold); color: var(--colorNeutralForeground3); }

/* One card look for every part of these tabs: the VMs card's edge, corner and shadow. */
.hp .ov .card, .hp .ovtile, .hp .ftcard, .hp .sset {
  background: var(--colorNeutralBackground1); border: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusXLarge); box-shadow: var(--shadow4); }

/* Section titles between cards. */
.hp h2.ovsec { margin: 28px 0 12px; font-size: var(--fontSizeBase400); line-height: var(--lineHeightBase400); font-weight: var(--fontWeightSemibold); color: var(--colorNeutralForeground1); }

/* ---------- Message bars (Fluent MessageBar): alerts, a request's answer, a check that is running. ---------- */
.hp .mbar { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 9px 12px; box-sizing: border-box;
  border: var(--strokeWidthThin) solid var(--colorNeutralStroke1); border-radius: var(--borderRadiusMedium);
  background: var(--colorNeutralBackground3); color: var(--colorNeutralForeground1); font-size: var(--fontSizeBase300); line-height: var(--lineHeightBase300); }
.hp .mbar > svg, .hp .mbar > .ico { width: 16px; height: 16px; flex: none; color: var(--colorNeutralForeground3); }
.hp .mbar .txt { flex: 1 1 auto; min-width: 0; }
.hp .mbar .txt b { font-weight: var(--fontWeightSemibold); }
.hp .mbar .meta { flex: none; color: var(--colorNeutralForeground3); font-size: var(--fontSizeBase200); line-height: var(--lineHeightBase200); white-space: nowrap; }
.hp .mbar .meta .wdate, .hp .mbar .meta .wsep { display: none; }
.hp .mbar .more { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--colorBrandForegroundLink); font-weight: var(--fontWeightSemibold); }
.hp .mbar .more:hover { color: var(--colorBrandForegroundLinkHover); }
.hp .mbar.warn { background: var(--colorStatusWarningBackground1); border-color: var(--colorStatusWarningBorder1); }
.hp .mbar.warn > svg, .hp .mbar.warn > .ico { color: var(--colorStatusWarningForeground3); }
.hp .mbar.bad { background: var(--colorStatusDangerBackground1); border-color: var(--colorStatusDangerBorder1); }
.hp .mbar.bad > svg, .hp .mbar.bad > .ico { color: var(--colorStatusDangerForeground1); }
.hp .mbar.good { background: var(--colorStatusSuccessBackground1); border-color: var(--colorStatusSuccessBorder1); }
.hp .mbar.good > svg, .hp .mbar.good > .ico { color: var(--colorStatusSuccessForeground1); }
.hp .mbar.run { background: var(--colorBrandBackground2); border-color: var(--colorBrandStroke2); }
.hp .mbar .spin { width: 16px; height: 16px; flex: none; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--colorBrandStroke2); border-top-color: var(--colorBrandForeground1); animation: hvspin 1s linear infinite; }
@keyframes hvspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hp .mbar .spin { animation-duration: 3s; } }

/* ---------- Overview ---------- */
.hp .ov { display: flex; flex-direction: column; gap: 16px; container-type: inline-size;
  --tw: round(down, calc((100cqw - 48px) / 4), 1px); --hw: round(down, calc((100cqw - 16px) / 2), 1px); }
.hp .ov > h2.ovsec { margin: 12px 0 -4px; }

/* Live activity, only while a backup runs. */
.hp .ovact { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px; }
.hp .ovact[hidden] { display: none; }
.hp .ovact .acthead { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hp .ovact .acthead b { font-weight: var(--fontWeightSemibold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp .ovact .actbar { height: 4px; border-radius: var(--borderRadiusCircular); background: var(--colorNeutralBackground6, var(--colorNeutralBackground5)); overflow: hidden; }
.hp .ovact .actbar i { display: block; height: 100%; background: var(--colorBrandBackground); border-radius: var(--borderRadiusCircular); }
.hp .ovact .actnums { color: var(--colorNeutralForeground3); font-size: var(--fontSizeBase200); line-height: var(--lineHeightBase200); font-variant-numeric: tabular-nums; }
.hp .ovact .actvms { display: flex; flex-wrap: wrap; gap: 6px; }
.hp .ovact .vmst { height: 20px; padding: 0 8px; border-radius: var(--borderRadiusCircular); font-size: var(--fontSizeBase200); line-height: 20px; background: var(--colorNeutralBackground3); color: var(--colorNeutralForeground2); }
.hp .ovact .vmst.good { background: var(--colorStatusSuccessBackground1); color: var(--colorStatusSuccessForeground1); }
.hp .ovact .vmst.bad { background: var(--colorStatusDangerBackground1); color: var(--colorStatusDangerForeground1); }
.hp .ovact .vmst.run { background: var(--colorBrandBackground2); color: var(--colorBrandForeground2); }
.hp .ovact .vmst.warn { background: var(--colorStatusWarningBackground1); color: var(--colorStatusWarningForeground1); }

/* Four tiles. */
.hp .ovtiles { display: grid; grid-template-columns: repeat(3, var(--tw)) minmax(0, 1fr); gap: 16px; }
.hp .ovtile { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 20px; }
.hp .ovtile .lab { color: var(--colorNeutralForeground2); font-size: var(--fontSizeBase300); line-height: var(--lineHeightBase300); }
.hp .ovtile .val { color: var(--colorNeutralForeground1); font-size: var(--fontSizeBase600); line-height: var(--lineHeightBase600); font-weight: var(--fontWeightSemibold); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp .ovtile .val.sm { font-size: var(--fontSizeBase500); line-height: var(--lineHeightBase600); }
.hp .ovtile .val.off { color: var(--colorNeutralForeground3); font-weight: var(--fontWeightRegular); }
.hp .ovtile .val .unit { color: var(--colorNeutralForeground3); font-size: var(--fontSizeBase300); font-weight: var(--fontWeightRegular); }
.hp .ovtile .sub { margin-top: auto; color: var(--colorNeutralForeground3); font-size: var(--fontSizeBase200); line-height: var(--lineHeightBase200); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp .ovtile .sub.warn { color: var(--colorStatusWarningForeground1); } .hp .ovtile .sub.bad { color: var(--colorStatusDangerForeground1); }
.hp .ovtile a.sub { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; color: var(--colorBrandForegroundLink); font-weight: var(--fontWeightSemibold); }
.hp .ovtile a.sub:hover { color: var(--colorBrandForegroundLinkHover); }
.hp .ovtile .lab .hd, .hp .sset .hd, .hp .ovhead .hd { cursor: help; text-decoration: underline dotted transparent; text-underline-offset: 3px; }
.hp .ovtile .lab .hd:hover, .hp .sset .hd:hover, .hp .ovhead .hd:hover { text-decoration-color: var(--colorNeutralForeground3); }
.hp .ovtile .hd:focus-visible, .hp .sset .hd:focus-visible, .hp .ovhead .hd:focus-visible { outline: 2px solid var(--colorStrokeFocus2); outline-offset: 2px; border-radius: var(--borderRadiusSmall); }

/* Storage: the used share filled (as Windows shows drives), the minimum free marked. */
.hp .capbar { position: relative; height: 6px; margin: 6px 0 2px; border-radius: var(--borderRadiusCircular); background: var(--colorNeutralBackground6, var(--colorNeutralBackground5)); }
.hp .capbar i { display: block; height: 100%; border-radius: var(--borderRadiusCircular); background: var(--good); }   /* healthy is green: brand blue only marks what you press or what runs (slice 2) */
.hp .capbar.warn i { background: var(--warn); } .hp .capbar.bad i { background: var(--bad); }
.hp .capbar b { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--colorNeutralForeground2); }
.hp .capbar b::after { content: ""; position: absolute; inset: -4px -6px; }   /* an easier target for the hover help */

/* The nights strip and the duration chart, side by side. */
.hp .ovtrends { display: grid; grid-template-columns: var(--hw) minmax(0, 1fr); gap: 16px; }
.hp .ovcard { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 20px 24px; container-type: inline-size; }
.hp .ovhead { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.hp .ovhead h2 { margin: 0; font-size: var(--fontSizeBase400); line-height: var(--lineHeightBase400); font-weight: var(--fontWeightSemibold); white-space: nowrap; }
.hp .ovhead .cap { margin-left: auto; color: var(--colorNeutralForeground3); font-size: var(--fontSizeBase200); line-height: var(--lineHeightBase200); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hp .ovcard .legend { margin: auto 0 0; gap: 4px 16px; color: var(--colorNeutralForeground3); }

/* Night strip: one whole-pixel column per night, as wide as the card allows (at most 28 px). */
.hp .ovcard .nights.big { display: flex; gap: 4px; --nw: min(28px, round(down, calc((100cqw - 80px) / 21), 1px)); }
.hp .ovcard .nights.big > a, .hp .ovcard .nights.big > i { display: block; flex: none; width: var(--nw); height: 56px; border-radius: var(--borderRadiusMedium); }
.hp .ovcard .nights.big > a > i { width: 100%; height: 100%; border-radius: var(--borderRadiusMedium); }
.hp .ovcard .nights.big > a:hover > i { filter: brightness(1.08); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--colorNeutralForeground1) 25%, transparent); }
.hp .ovcard .nights.big > a:focus-visible { outline: 2px solid var(--colorStrokeFocus2); outline-offset: 2px; }
/* Missed: hatched, so it differs from a warning by shape as well as colour. */
.nights .missed, .legend i.missed { background: repeating-linear-gradient(135deg, var(--warn) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1.5px var(--warn); }
.hp .ovcard .nights .missed { background: repeating-linear-gradient(135deg, var(--warn) 0 3px, transparent 3px 7px); box-shadow: inset 0 0 0 2px var(--warn); }
/* P042 slice E. Late: delivered after its deadline: Success colour with the miss kept as a Warning band on top (shape too).
   Unreported: no word from the server: hatched in the neutral stroke. Not due (paused): an empty cell with a dotted outline. */
.nights .late, .legend i.late { background: linear-gradient(to bottom, var(--warn) 0 35%, var(--good) 35%); }
.nights .unrep, .legend i.unrep { background: repeating-linear-gradient(135deg, var(--night-empty, var(--colorNeutralStroke1)) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1.5px var(--night-empty, var(--colorNeutralStroke1)); }
.hp .ovcard .nights .unrep { background: repeating-linear-gradient(135deg, var(--night-empty, var(--colorNeutralStroke1)) 0 3px, transparent 3px 7px); box-shadow: inset 0 0 0 2px var(--night-empty, var(--colorNeutralStroke1)); }
.nights i.paused, .legend i.paused { background: transparent; box-shadow: none; border: 2px dotted var(--colorNeutralStrokeAccessible, var(--colorNeutralForeground3, #8a8886)); box-sizing: border-box; }
.legend i.none { background: transparent; box-shadow: inset 0 0 0 1.5px var(--night-empty, var(--colorNeutralStroke1)); }
/* Scheduled (the next backup, owner 2026-12-01): a dashed outline in the Running colour, no fill; differs from "Nothing scheduled" by shape. */
.nights i.sched, .legend i.sched { background: transparent; box-shadow: none; border: 1.5px dashed var(--run); box-sizing: border-box; }
.hp .ovcard .nights.big > i.sched { border-width: 2px; }
.chart .hbg { fill: transparent; } .chart .hln { fill: var(--warn); } .chart rect.missed { fill: url(#hvhatch); stroke: var(--warn); stroke-width: 1.5; }

/* Duration chart: HTML bars, labels at Fluent's 12 px at any width. */
.hp .dchart { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; padding-top: 8px; }
.hp .dchart .yax { position: relative; height: 96px; }
.hp .dchart .yax span { position: absolute; right: 0; color: var(--colorNeutralForeground3); font-size: var(--fontSizeBase200); line-height: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hp .dchart .plot { position: relative; min-width: 0; container-type: inline-size; }
.hp .dchart .gl { position: absolute; left: 0; right: 0; height: 1px; background: var(--colorNeutralStroke3); }
.hp .dchart .pw { position: relative; display: inline-grid; --bw: min(24px, round(down, calc((100cqw - (var(--n) - 1) * 6px) / var(--n)), 1px)); }
.hp .dchart .bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; }
.hp .dchart .b { display: flex; align-items: flex-end; flex: none; width: var(--bw); height: 96px; border-radius: 2px 2px 0 0; }
.hp .dchart .b i { display: block; width: 100%; border-radius: 2px 2px 0 0; background: var(--good); }
.hp .dchart .b.warn i { background: var(--warn); } .hp .dchart .b.bad i { background: var(--bad); }
.hp .dchart .bars:hover .b:not(:hover) i { opacity: .45; }
.hp .dchart .b:focus-visible { outline: 2px solid var(--colorStrokeFocus2); outline-offset: 2px; }
.hp .ovcard .nstrip { display: grid; justify-content: start; }   /* the dates span exactly the strip */
.hp .dchart .xax, .hp .nstrip .xax { display: flex; justify-content: space-between; gap: 12px; margin-top: 5px; color: var(--colorNeutralForeground3); font-size: var(--fontSizeBase200); line-height: var(--lineHeightBase200); white-space: nowrap; }
.hp .dempty { margin: 0; color: var(--colorNeutralForeground3); }

@media (max-width: 1279px) {
  .hp .ovtiles { grid-template-columns: var(--hw) minmax(0, 1fr); }
  .hp .ovtrends { grid-template-columns: minmax(0, 1fr); }   /* see below: stacked under 1440 */
}

/* ---------- Tables of runs and requests: the VMs table's look, one line per row. ---------- */
.hp .ftcard { overflow: hidden; padding: 0; }
.hp table.ft { width: 100%; table-layout: fixed; border: none; box-shadow: none; border-radius: 0; border-spacing: 0; background: none; }
.hp table.ft col.w-when { width: auto; } .hp table.ft col.w-kind { width: 140px; } .hp table.ft col.w-res { width: 140px; }
.hp table.ft col.w-num { width: 126px; } .hp table.ft col.w-chev { width: 46px; }
.hp table.ft col.w-data { width: 136px; }   /* P013: Processed and Sent offsite, beside Duration */
.hp table.ft col.w-data2 { width: 140px; }   /* P013: the fleet table's two-line Processed column */
.hp table.ft col.w-dur { width: 156px; }   /* P013: a VM table's Duration with "512.4 GB processed" under it */
.hp table.ft.reqs col.w-when { width: 300px; } .hp table.ft col.w-req { width: 180px; } .hp table.ft col.w-by { width: 200px; } .hp table.ft col.w-st { width: 120px; }
.hp table.ft th { height: 41px; padding: 0 19px; vertical-align: middle; background: var(--colorSubtleBackgroundHover); color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200); line-height: 17px; font-weight: var(--fontWeightSemibold); border-bottom: 1px solid var(--colorNeutralStroke2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp table.ft td { height: 45px; padding: 0 19px; vertical-align: middle; border-bottom: 1px solid var(--rowline); background: var(--colorNeutralBackground1); box-shadow: none;
  font-size: var(--fontSizeBase300); line-height: var(--lineHeightBase300); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp table.ft th:first-child, .hp table.ft td:first-child { padding-left: 22px; position: relative; }
.hp table.ft th:last-child, .hp table.ft td:last-child { padding-right: 22px; }
.hp table.ft th.num, .hp table.ft td.num { text-align: right; font-variant-numeric: tabular-nums; }
.hp table.ft td.num { color: var(--colorNeutralForeground2); }
.hp table.ft td fluent-badge { vertical-align: top; }   /* on the line box, so its 20 px sit on whole pixels in the 44 px row */
.hp table.ft tbody tr:last-child td { border-bottom-color: transparent; }   /* 45 px rows are 44 px inside a 1 px line, so 20 px badges and lines centre on whole pixels */
.hp table.ft td:first-child a { color: var(--colorNeutralForeground1); }
.hp table.ft td:first-child a:hover { text-decoration: none; }
.hp table.ft .reltime { color: var(--colorNeutralForeground1); }
.hp table.ft .wsep, .hp .stab .wsep, .hp .mbar .wsep { margin: 0 6px; }   /* "8h ago Â· Sun, Nov 29, 3:39 AM" in running text (flex rows space it with their gap) */
.hp table.ft td.chev { padding: 0 16px 0 0; text-align: right; color: var(--colorBrandForeground1); }
.hp table.ft td.chev .ico, .hp table.ft td.chev svg { width: 14px; height: 14px; display: inline-block; vertical-align: middle; opacity: 0; transition: opacity .12s; }
.hp table.ft tbody tr[data-href] { cursor: pointer; }
.hp table.ft tbody tr[data-href]:hover td { background: var(--colorNeutralBackground1Hover); }
.hp table.ft tbody tr[data-href]:hover td.chev svg, .hp table.ft tbody tr[data-href]:hover td.chev .ico { opacity: 1; }
.hp #runbar { margin-left: -10px; }   /* filter labels on the text edge, their hover box hanging outside it (as the VMs toolbar) */
.hp table.ft tr.empty td { height: 72px; text-align: center; color: var(--colorNeutralForeground3); }
.hp table.ft td.resp .cut { display: block; overflow: hidden; text-overflow: ellipsis; color: var(--colorNeutralForeground2); }
/* Severity bar on rows with warnings or failures, joined across neighbours (the VMs table's rule). */
.hp table.ft tr.sev-warn { --bar: var(--warn); } .hp table.ft tr.sev-bad { --bar: var(--bad); }
.hp table.ft tr.sev-warn > td:first-child::before, .hp table.ft tr.sev-bad > td:first-child::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--bar); pointer-events: none; }
.hp table.ft tr.sev-warn:has(+ tr.sev-warn) > td:first-child::before, .hp table.ft tr.sev-bad:has(+ tr.sev-bad) > td:first-child::before { bottom: -1px; }
.hp .ftfoot { display: flex; align-items: center; height: 41px; padding: 0 22px; border-top: 1px solid var(--rowline); font-size: var(--fontSizeBase200); line-height: 17px; color: var(--colorNeutralForeground3); }
.hp .ftfoot .more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--colorNeutralForeground2); font-weight: var(--fontWeightSemibold); }
.hp .ftfoot .more:hover { color: var(--colorBrandForegroundLinkHover); text-decoration: none; }
.hp .ftfoot .more .arr, .hp .ovtile a.sub .arr, .hp .mbar .more .arr { color: var(--colorBrandForeground1); }
@media (max-width: 1439px) { .hp table.ft col.w-data { width: 120px; } .hp table.ft col.w-kind { width: 110px; } .hp table.ft col.w-res, .hp table.ft col.w-num { width: 110px; } .hp table.ft.reqs col.w-when { width: 230px; } .hp table.ft.reqs .wd { display: none; } .hp table.ft col.w-req { width: 150px; } .hp table.ft col.w-by { width: 120px; } .hp table.ft col.w-st { width: 110px; } }

/* ---------- Settings: view first; Edit opens one card at a time. ---------- */
.hp .stab { display: flex; flex-direction: column; gap: 16px; }
.hp .stab > form, .hp .stab > section { margin: 0; }
.hp .sset { padding: 0; min-width: 0; }
.hp .sset .shead { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 24px; box-sizing: border-box; border-radius: var(--borderRadiusXLarge) var(--borderRadiusXLarge) 0 0; }
.hp .sset .shead h2 { margin: 0; font-size: var(--fontSizeBase400); line-height: var(--lineHeightBase400); font-weight: var(--fontWeightSemibold); white-space: nowrap; }
.hp .sset .shead fluent-badge { flex: none; }
.hp .sset .sact { margin: 0 0 0 auto; display: inline-flex; align-items: center; gap: 8px; }
.hp .sset .sact .note { color: var(--colorNeutralForeground3); font-size: var(--fontSizeBase300); }
.hp .sset > .kv, .hp .sset > .sempty, .hp .sset > .sline, .hp .sset > .mrow, .hp .sset > .rline, .hp .sset > .rdet, .hp .sset > .mbar { margin: 0 24px 20px; }
.hp .sset > .kv { margin-bottom: 8px; }
.hp .sset > .rline:has(+ .rdet) { margin-bottom: 8px; }
.hp .sset .sempty { color: var(--colorNeutralForeground3); }
.hp .sset .sline { color: var(--colorNeutralForeground2); }

/* Label and value rows. */
.hp .kv > div { display: grid; grid-template-columns: 320px minmax(0, 1fr); column-gap: 24px; align-items: center; min-height: 45px; border-top: 1px solid var(--rowline); }   /* 44 px inside the 1 px line */
.hp .kv dt, .hp .kv label { display: block; margin: 0; color: var(--colorNeutralForeground2); font-weight: var(--fontWeightRegular); }   /* site.css gives labels a top margin */
.hp .kv dd { margin: 0; color: var(--colorNeutralForeground1); min-width: 0; overflow-wrap: anywhere; }
.hp .kv dd.off, .hp .kv .unit { color: var(--colorNeutralForeground3); }
.hp .kv.edit > div { min-height: 52px; }
.hp .kv .ctl { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }

/* View and edit, one unit at a time. */
.hp .sset .sact.edit, .hp .sset .kv.edit { display: none; }
.hp .sset.editing .sact.view, .hp .sset.editing .kv.view, .hp .sset.editing .shead h2 { display: none; }
.hp .sset.editing .sact.edit { display: flex; flex: 1 1 auto; margin-left: 0; }
.hp .sset.editing .kv.edit { display: block; }
.hp .sset.editing { border-color: var(--colorBrandStroke2); }
.hp .sset.editing .shead { background: var(--colorBrandBackground2); }
.hp .sset .etitle { margin-right: auto; font-weight: var(--fontWeightSemibold); color: var(--colorNeutralForeground1); }

/* Inputs in Fluent's text-input look (hairline box, darker bottom edge, brand underline on focus), as in the guest editor. */
.hp .kv input:not([type=hidden]), .hp dialog.hv input:not([type=hidden]) {
  width: auto; max-width: none; height: 32px; padding: 0 10px; box-sizing: border-box; margin: 0;
  border: var(--strokeWidthThin) solid var(--colorNeutralStroke1); border-bottom-color: var(--colorNeutralStrokeAccessible);
  border-radius: var(--borderRadiusMedium); background: var(--colorNeutralBackground1); color: var(--colorNeutralForeground1);
  font: var(--fontSizeBase300)/var(--lineHeightBase300) var(--fontFamilyBase); outline: none; }
.hp .kv input:hover, .hp dialog.hv input:hover { border-color: var(--colorNeutralStroke1Hover); border-bottom-color: var(--colorNeutralStrokeAccessibleHover); }
.hp .kv input:focus, .hp dialog.hv input:focus { outline: none; border-bottom: 2px solid var(--colorCompoundBrandStroke); padding-bottom: 0; }
.hp .kv input[type=time] { width: 132px; } .hp .kv input[type=number] { width: 100px; } .hp .kv input:not([type]), .hp .kv input[type=text] { width: 320px; }
.hp dialog.hv input[type=datetime-local] { width: 240px; }

/* Readiness, muting, removal. */
.hp .rline { display: flex; align-items: center; gap: 12px; min-height: 32px; }
.hp .rline .when { color: var(--colorNeutralForeground3); }
.hp .rline .verdict { color: var(--colorNeutralForeground1); font-weight: var(--fontWeightSemibold); }
.hp .rdet summary { display: inline-block; color: var(--colorBrandForegroundLink); cursor: pointer; }
.hp .rdet summary:hover { color: var(--colorBrandForegroundLinkHover); text-decoration: underline; }
.hp .rdet pre { margin: 8px 0 0; max-height: 320px; overflow: auto; padding: 12px; border-radius: var(--borderRadiusMedium); background: var(--colorNeutralBackground3); color: var(--colorNeutralForeground1); font: var(--fontSizeBase200)/var(--lineHeightBase200) var(--fontFamilyMonospace, Consolas, monospace); white-space: pre-wrap; }
.hp .mrow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 32px; }
.hp .mrow form { display: inline-flex; margin: 0; }
.hp .mrow > .lab, .hp .mrow > span:first-child { margin-right: 8px; color: var(--colorNeutralForeground2); }
.hp fluent-button.danger:not([disabled]) { color: var(--colorPaletteRedForeground1); }   /* 4.5:1 on the dark card too (review r1) */   /* held or disabled: Fluent's disabled grey, like every other button */
.hp dialog.hv .btn.danger { background: var(--colorStatusDangerBackground3); border-color: transparent; color: var(--colorNeutralForegroundOnBrand); }
.hp dialog.hv .btn.danger:hover { background: var(--colorStatusDangerBackground3Hover, var(--colorStatusDangerBackground3)); color: var(--colorNeutralForegroundOnBrand); }
.hp dialog.hv p { color: var(--colorNeutralForeground2); }

/* A result shown in its card after a save (hidden once that card is edited again); jump targets clear the page top. */
.hp .sset.editing > .mbar.done { display: none; }
.hp .stab [id] { scroll-margin-top: 24px; }
.hp .mrow .unit { color: var(--colorNeutralForeground3); }

/* ---------- Review r1 (Fable live, Gemini on 2x shots) ---------- */
/* The page doesn't shift sideways when one tab scrolls and another doesn't. */
html { scrollbar-gutter: stable; }
/* Fluent's ramp, whole pixels: body 14/20, small 12/16, section 20/28, page title 28/36 (the book's Typography). */
.hp .tabs a { line-height: 20px; }
.hp .crumbs { line-height: 16px; }
.hp table.vms th, .hp table.ft th { line-height: 16px; }
.hp .ftfoot { line-height: 16px; }
.hp .ov, .hp .ftcard, .hp .stab, .hp dialog.hv p { line-height: 20px; }
.hp .titlerow h1 { font-size: 28px; line-height: 36px; }
.hp h2.ovsec { font-size: var(--fontSizeBase500); line-height: var(--lineHeightBase500); }
.hp .ov > h2.ovsec { margin: 12px 0 -4px; }
/* Row chevrons centred on whole pixels. */
.hp table.ft td.chev svg, .hp table.ft td.chev .ico { display: block; margin-left: auto; }
/* Dialog buttons at Fluent's 32 px like every other button. */
.hp dialog.hv .btns .btn { height: 32px; font-size: var(--fontSizeBase300); line-height: var(--lineHeightBase300); }
/* Tiles: one value size for all four; their links in the page's link pattern (neutral text, brand arrow). */
.hp .ovtile .val, .hp .ovtile .val.sm { font-size: var(--fontSizeBase600); line-height: var(--lineHeightBase600); }
.hp .ovtile a.sub { color: var(--colorNeutralForeground2); }
.hp .ovtile a.sub:hover { color: var(--colorNeutralForeground2Hover); text-decoration: none; }
/* The nights strip is as tall as the duration chart's plot and starts at the same height, so the two cards line up. */
.hp .ovcard .nstrip { padding-top: 8px; }
.hp .ovcard .nights.big > a, .hp .ovcard .nights.big > i { height: 96px; }
@media (max-width: 1439px) { .hp .ovtrends { grid-template-columns: minmax(0, 1fr); } }
/* Duration chart: newest bar at the right edge (as the strip); with few bars one label, under them. */
.hp .dchart .plot { display: flex; justify-content: flex-end; }
.hp .dchart .bars { justify-content: flex-end; }
.hp .dchart .xax.joined { justify-content: flex-end; gap: 0; }
.hp .dchart .xax.joined span + span::before { content: "\00a0\2013\00a0"; }   /* en dash as an escape: the file's encoding can't garble it */
/* Failed filter dot. */
.hp .seg .chip .adot.bad { background: var(--bad); }
/* Header facts stay on one line on laptops: the exact next-backup time moves to hover. */
@media (max-width: 1439px) { .hp dl.facts .wsep, .hp dl.facts .wdate { display: none; } }
/* Edit units: rows as tall as in view, so nothing below moves; the edit bar comes after the fields in keyboard order
   and shows at the top of the card. */
.hp .sset { display: flex; flex-direction: column; }
.hp .kv.edit > div { min-height: 45px; }
.hp .sset .ebar { display: none; order: -1; }
.hp .sset.editing .ebar { display: flex; gap: 8px; }
.hp .sset.editing > .shead:not(.ebar) { display: none; }
.hp .kv .ferr { color: var(--colorPaletteRedForeground1); font-size: var(--fontSizeBase200); line-height: var(--lineHeightBase200); }
.hp .kv input[aria-invalid="true"] { border-color: var(--colorPaletteRedBorder2); border-bottom-color: var(--colorPaletteRedBorder2); }
/* "Technical details" disclosure with its chevron. */
.hp .rdet summary::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .12s; }
.hp .rdet[open] summary::before { transform: rotate(45deg); }
/* Review r2 (Fable): the base .card margin added 16 px under the trend cards (flex and grid don't collapse margins). */
.hp .ov .card, .hp .ovtrends .card { margin: 0; }
/* Review r2 (Gemini): stacked under 1440, the strip spans its full-width card; the requests table gives its spare
   width to Response. */
@media (max-width: 1439px) { .hp .ovcard .nights.big { --nw: min(56px, round(down, calc((100cqw - 80px) / 21), 1px)); } }
.hp table.ft.reqs col.w-when { width: 260px; } .hp table.ft.reqs col.w-req { width: 170px; } .hp table.ft.reqs col.w-by { width: 140px; } .hp table.ft.reqs col.w-st { width: 120px; }
@media (max-width: 1439px) { .hp table.ft.reqs col.w-when { width: 230px; } .hp table.ft.reqs col.w-req { width: 150px; } .hp table.ft.reqs col.w-by { width: 100px; } .hp table.ft.reqs col.w-st { width: 110px; } }

/* ---------- P010 slice 2: fleet pages ---------- */
/* Charts with a fixed number of columns (14 nights) share the plot's width, up to --bmax per column. */
.hp .dchart .pw { --bw: min(var(--bmax, 24px), round(down, calc((100cqw - (var(--n) - 1) * 6px) / var(--n)), 1px)); }
/* Stacked columns: one segment per result from the bottom, a 2 px card-coloured seam between segments. */
.hp .dchart .b.stk { flex-direction: column-reverse; align-items: stretch; justify-content: flex-start; }
.hp .dchart .b.stk i { flex: none; border-radius: 0; }
.hp .dchart .b.stk i:last-child { border-radius: 2px 2px 0 0; }
.hp .dchart .b.stk i + i { box-shadow: inset 0 -2px 0 var(--colorNeutralBackground1); }
.hp .dchart .b.stk i.ok { background: var(--good); } .hp .dchart .b.stk i.warn { background: var(--warn); }
.hp .dchart .b.stk i.bad { background: var(--bad); } .hp .dchart .b.stk i.run { background: var(--run); }
.hp .dchart .b.stk i.missed { background: repeating-linear-gradient(135deg, var(--warn) 0 3px, transparent 3px 7px); box-shadow: inset 0 0 0 2px var(--warn); }

/* ---------- P048 S3: Retention policy preview & StepUp dialog ---------- */
.hp .retdest { gap: 8px; }
.hp .retdestbtn { height: 30px; padding: 0 12px; border: 1px solid var(--colorNeutralStroke1); border-radius: var(--borderRadiusMedium); background: var(--colorNeutralBackground1); color: var(--colorNeutralForeground1); cursor: pointer; }
.hp .retdestbtn.on { background: var(--colorBrandBackground2); border-color: var(--colorBrandStroke2); color: var(--colorBrandForeground2); font-weight: var(--fontWeightSemibold); }
.hp dialog.hv.retdlg { max-width: 580px; width: min(92vw, 580px); }
.hp dialog.hv.retdlg .retsum { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; margin: 10px 0 12px; border-radius: var(--borderRadiusMedium); background: var(--colorNeutralBackground3); font-size: var(--fontSizeBase300); }
.hp dialog.hv.retdlg h4 { margin: 12px 0 6px; font-size: var(--fontSizeBase300); font-weight: var(--fontWeightSemibold); color: var(--colorNeutralForeground1); }
.hp dialog.hv.retdlg ul.retlist { margin: 0 0 10px; padding: 8px 12px 8px 26px; max-height: 190px; overflow: auto; border: 1px solid var(--rowline); border-radius: var(--borderRadiusMedium); font-size: var(--fontSizeBase200); line-height: 20px; }
.hp dialog.hv.retdlg .retstepup { margin: 12px 0; padding: 12px; border-radius: var(--borderRadiusMedium); background: var(--colorNeutralBackground3); border: 1px solid var(--rowline); }
.hp dialog.hv.retdlg .retstepup p { margin: 0 0 10px; }
.hp dialog.hv.retdlg .retfields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp dialog.hv.retdlg .retfields label { display: flex; flex-direction: column; gap: 4px; font-size: var(--fontSizeBase200); color: var(--colorNeutralForeground2); margin: 0; }
.hp dialog.hv.retdlg .retfields input { width: 100%; }
.hp .dchart .b.stk i + i.missed { box-shadow: inset 0 -2px 0 var(--colorNeutralBackground1), inset 0 0 0 2px var(--warn); }

/* P013: below 1280 px the data columns tighten so Finished and the results keep their room; "processed" folds away.
   Last in the file so it wins over the 1439 px rules above. */
@media (max-width: 1279px) {
  .hp table.ft col.w-data { width: 92px; } .hp table.ft col.w-data2 { width: 110px; } .hp #history col.w-fin { width: 150px; } .hp table.ft col.w-num { width: 96px; } .hp table.ft col.w-dur { width: 110px; }
  .hp table.ft th.num, .hp table.ft td.num { padding-left: 8px; }   /* right-aligned figures need no left gap */
  .hp table.ft .pw { display: none; }
}
/* P042 slice E review r1 #1: Late in the fleet's Results per night. */
.hp .dchart .b.stk i.late { background: linear-gradient(to bottom, var(--warn) 0 35%, var(--good) 35%); }
/* Overview Results per day: percent-of-servers bars with muted server total above each column and light-grey "Still to run". */
.hp .dchart.outc { padding-top: 22px; }
.hp .dchart.outc .b.stk { position: relative; }
.hp .dchart.outc .b.stk .tot { position: absolute; bottom: calc(100% + 4px); left: 0; right: 0; text-align: center; font-size: var(--fontSizeBase100, 11px); line-height: 14px; color: var(--colorNeutralForeground3); font-variant-numeric: tabular-nums; pointer-events: none; }
.hp .dchart .b.stk i.pend, .hp .legend i.pend { background: var(--colorNeutralBackground5, var(--line-strong)); }
@media (max-width: 639px) { .hp .dchart.outc { padding-top: 8px; } .hp .dchart.outc .b.stk .tot { display: none; } }
