/* P009 review r1 (Fable live): consistency between Fluent's controls and the page's own parts. */

/* One warning colour family everywhere: Fluent's status-warning tokens. The state badge uses Fluent's "severe" colour,
   whose palette read close to red; it is pointed at the same status-warning values as the tags, dots and row bars, so
   "Warning" never looks like "At risk" (red). Custom properties reach into the badge's shadow DOM. */
.hp fluent-badge[color="severe"] {
  --colorPaletteDarkOrangeBackground1: var(--colorStatusWarningBackground1);
  --colorPaletteDarkOrangeBackground2: var(--colorStatusWarningBackground1);
  --colorPaletteDarkOrangeForeground1: var(--colorStatusWarningForeground1);
  --colorPaletteDarkOrangeForeground2: var(--colorStatusWarningForeground1);
  --colorPaletteDarkOrangeBorder1: var(--colorStatusWarningBorder1);
  --colorPaletteDarkOrangeBorder2: var(--colorStatusWarningBorder1);
}

/* Brand-coloured marks use Fluent's brand foreground, which has a readable dark-theme value (the tab count and the
   link arrows were 2.4:1 in dark). */
.hp dl.facts dd .arr, .hp .vmcard .cardfoot .more .arr { color: var(--colorBrandForeground1); }
.hp .tabs a.on .n { background: var(--colorBrandBackground2); color: var(--colorBrandForeground1); }

/* Disabled looks exactly like Fluent's disabled buttons: no extra fading. */
.hp .hbtn:disabled, .hp button.primary:disabled, dialog.hv .btn:disabled, .hp .seg .chip:disabled { opacity: 1; }

/* Keyboard focus rings, the same 2 px ring and offset as Fluent's controls. */
.hp .hbtn:focus-visible, dialog.hv .btn:focus-visible { outline-offset: 2px; }
.hp table.vms th .hd:focus-visible, .hp dl.facts .hd:focus-visible, .hp .ged .gt:focus-visible { outline: 2px solid var(--colorStrokeFocus2); outline-offset: 2px; border-radius: var(--borderRadiusSmall); }
.hp .seg .chip:focus-visible, .hp .tabs a:focus-visible, .hp table.vms button.lb:focus-visible { outline: 2px solid var(--colorStrokeFocus2); outline-offset: 2px; }

/* One tab weight: unselected tabs are regular, as in Fluent. */
.hp .tabs a:not(.on) { font-weight: var(--fontWeightRegular); }

/* The password field's eye button as a subtle Fluent icon button. */
.hp .ged .eye { background: none; border: none; border-radius: var(--borderRadiusMedium); color: var(--colorNeutralForeground3); width: 24px; height: 24px; bottom: 4px; right: 4px; padding: 0; display: inline-grid; place-items: center; }
.hp .ged .eye:hover { background: var(--colorSubtleBackgroundHover); color: var(--colorNeutralForeground2); }
.hp .ged .eye svg { width: 16px; height: 16px; }

/* The selected page tab's underline: p008.css reuses ::after (hidden, for a bold-width trick), which hid the marker. */
.hp .tabs a.on::after { visibility: visible; overflow: visible; }
.hp .tabs a:not(.on)::after { content: none; }

/* Gemini r1: the title badge centred on the capitals (measured 1.5 px high), the guest editor's row in a light brand
   tint instead of a heavy grey, the dark table header a step above the canvas, Fluent's soft success border on
   "Protected" (as on "Warning"), warning tags in the badges' shape and size, a disabled row link in Fluent's disabled
   colour, primary buttons disabled without a border (Fluent's own), and the avatar readable in dark. */
.hp .titlerow fluent-badge { position: relative; top: 2px; }
.hp table.vms tr.opened td, .hp table.vms tr.opened:hover td, .hp table.vms tr.editor td, .hp table.vms tr.editor:hover td { background: var(--colorBrandBackground2); }
.hp table.vms th, .hp table.vms thead tr:hover th { background: var(--colorSubtleBackgroundHover); }
.hp fluent-badge[color="success"] { --colorPaletteGreenBorder1: var(--colorStatusSuccessBorder1); --colorPaletteGreenBorder2: var(--colorStatusSuccessBorder1); }
.hp table.vms .tag { height: 20px; line-height: 18px; padding: 0 7px; border-radius: var(--borderRadiusCircular); font-size: var(--fontSizeBase200); }
.hp table.vms button.lb:disabled { color: var(--colorNeutralForegroundDisabled); }
.hp button.primary:disabled { border-color: transparent; }
.side .user .avatar { background: var(--colorBrandBackground2); color: var(--colorBrandForeground2); }

/* P009 review r2 (Gemini): a disabled filter dims all of it (dot, count, label); a held Back up now is a disabled primary
   like Save changes and Test and save (no border); the card has a visible hairline edge, so the header band meets it
   instead of stopping short of a transparent one (and view and Edit mode share the same edge). */
.hp .seg .chip:disabled, .hp .seg .chip:disabled .cnt, .hp .seg .chip.on:disabled { color: var(--colorNeutralForegroundDisabled); }
.hp .seg .chip:disabled .adot { background: var(--colorNeutralForegroundDisabled); }
.hp .hbtn.sec:disabled, .hp button.primary.hbtn:disabled { border-color: transparent; }
.hp .vmcard { border-color: var(--colorNeutralStroke2); }

/* Relative times first (P009, owner): "8h ago · Sun, Nov 29, 6:09 AM". The relative part carries the line's weight and
   colour; the exact time sits beside it in grey. Below 1280 px only the relative part shows (exact time on hover). */
.hp .wsep { color: var(--colorNeutralForeground3); }
.hp .wdate, .hp .wdate time, .hp table.vms .lastb .wdate time { color: var(--colorNeutralForeground3); font-weight: var(--fontWeightRegular); }
.hp table.vms .lastb .reltime { color: var(--colorNeutralForeground1); }
.hp .vmcard .cardfoot .reltime { color: var(--colorNeutralForeground2); }
@media (max-width: 1279px) { .hp .wsep, .hp .wdate { display: none; } }
.hp .vmcard .cardfoot .wsep { margin: 0 6px; }
/* Laptop widths: the relative time comes first, so the date beside it drops its weekday ("16h ago · Nov 29, 6:09 AM"). */
@media (max-width: 1439px) { .hp table.vms .lastb .wdate .wd { display: none; } }
