/* Morning-Rounds - Settings (2026-10-30, the settings review).
   Every Settings page: the settings menu down the left (HtmlHelpers Get-HcSettingsMenu) and the page beside it.
   /targets holds several sections (Systems, Sites, Mail server, ...) as .st-pane blocks and shows the one in the
   address's #hash. Loaded after atlas.css, and only on Settings pages. Colours come from the theme's variables;
   the Atlas look (uppercase heads, square corners, the green / pink / blue stripe) is at the end. */

/* ── frame: menu | page ── */
.hc-set { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 44px; align-items: start; }
.hc-set-body { min-width: 0; }
.hc-set-nav { position: sticky; top: 76px; max-height: calc(100vh - 128px); overflow-y: auto; padding-bottom: 12px; }
.hc-set-t { font-size: 20px; font-weight: 800; color: var(--text); margin: 2px 0 18px; }
.hc-set-g + .hc-set-g { margin-top: 18px; }
.hc-set-gl { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px 12px; }
.hc-set-i { display: flex; align-items: baseline; gap: 8px; padding: 6px 10px 6px 12px; border-left: 3px solid transparent; color: var(--text); text-decoration: none; font-size: 13.5px; line-height: 1.3; }
.hc-set-i > span { flex: 1; min-width: 0; }
/* a small line icon before each item (2026-11-24): muted, taking the text colour on the current item and on hover */
.hc-set-ico { flex: none; align-self: center; width: 15px; height: 15px; color: var(--muted); }
.hc-set-i:hover .hc-set-ico, .hc-set-i.on .hc-set-ico { color: var(--text); }
.hc-set-i:hover { background: var(--surface2); }
.hc-set-i.on { font-weight: 700; background: var(--surface2); border-left-color: var(--accent); }
.hc-set-ext { color: var(--muted); font-size: 11px; margin-left: 4px; }
.hc-set-n { font-size: 11.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.hc-set-n:empty { display: none; }
.hc-set-n.bad { color: var(--crit); font-weight: 700; }

/* ── a section's heading: title and what it is on the left, its buttons on the right ── */
.st-pane { display: none; }
.st-pane.on { display: block; }
.st-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 2px solid var(--text); }
.st-hl { min-width: 0; }
.st-hl h1 { margin: 0 0 8px; font-size: 30px; line-height: 1; }
.st-hl p { margin: 0; max-width: 78ch; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.st-ha { display: flex; gap: 8px; flex-shrink: 0; }
.st-loading, .st-empty { padding: 36px 0; color: var(--muted); }

/* messages after a change */
.st-flash { padding: 10px 14px; margin: 0 0 18px; border: 1px solid var(--border); border-left: 5px solid var(--ok); background: var(--surface); font-size: 14px; }
.st-flash.err { border-left-color: var(--crit); }

/* ── needs attention: one line per thing to fix, with the button that fixes it ── */
.st-attn { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.st-attn li { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border: 1px solid var(--border); border-left: 5px solid var(--warn); background: var(--surface); }
.st-attn li.crit { border-left-color: var(--crit); }
.st-attn p { margin: 0; flex: 1; font-size: 14px; line-height: 1.45; }
.st-attn .hc-btn { flex-shrink: 0; }

/* ── find and filter ── */
.st-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.st-tools #st-q { flex: 1 1 240px; min-width: 200px; height: 36px; padding: 0 12px 0 34px; font-size: 14px; box-sizing: border-box;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='6.5' cy='6.5' r='5' fill='none' stroke='%236F6F6F' stroke-width='1.6'/%3E%3Cpath d='M10.3 10.3 14.5 14.5' stroke='%236F6F6F' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: 11px center; }
.st-tools select { height: 36px; padding: 0 10px; font-size: 13.5px; max-width: 200px; }
.st-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.st-seg button { height: 34px; padding: 0 12px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.st-seg button + button { border-left: 1px solid var(--border); }
.st-seg button[aria-pressed="true"] { background: var(--accent-soft); font-weight: 700; }
.st-seg button i { font-style: normal; color: var(--muted); margin-left: 5px; font-variant-numeric: tabular-nums; }
.st-count { margin-left: auto; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.st-only { display: flex; align-items: center; gap: 14px; padding: 8px 14px; margin: 0 0 12px; background: var(--surface2); border-left: 4px solid var(--text); font-size: 14px; }
.st-only[hidden] { display: none; }
.st-link { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ── lists (systems, sites, change history) ── */
.st-tw { overflow-x: auto; }
.st-list { width: 100%; border-collapse: collapse; font-size: 13.5px; border-top: 2px solid var(--text); }
.st-list thead th { text-align: left; padding: 9px 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.st-list td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.4; }
.st-list tbody tr:not(.st-gh):not(.st-sitelist):hover td { background: var(--row-hover); }
.st-list th.n, .st-list td.n { text-align: right; }
.st-list th.c { text-align: center; }
.st-list small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.st-list .mono { font-size: 12px; }
.st-list tr.st-gh th { text-align: left; padding: 20px 12px 7px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text); border-bottom: 1px solid var(--text); }
.st-list tbody tr.st-gh:first-child th { padding-top: 14px; }
.st-gh i { display: inline-block; width: 10px; height: 10px; margin-right: 9px; vertical-align: 0; }
.st-gh span { margin-left: 8px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.st-list tr.st-none td { padding: 28px 12px; text-align: center; color: var(--muted); }
.st-ok { color: var(--ok); font-weight: 700; }
.st-bad { color: var(--crit); }
.st-bad small { color: var(--crit); }
.st-warn { color: var(--warn); }
.st-mute { color: var(--muted); }

/* systems */
.st-sys a { color: var(--text); font-weight: 700; text-decoration: none; }
.st-sys a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.st-sys em { font-style: normal; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-left: 8px; }
.st-sys .mono { margin-top: 3px; color: var(--muted); }
.st-sys .mono span { opacity: .75; }
.st-sys .mono .st-api { opacity: 1; margin-left: 8px; padding: 0 5px; border: 1px solid var(--border); font-size: 10.5px; white-space: nowrap; }
.st-sysl .st-cred { white-space: nowrap; }
.st-sysl .st-cred .st-bad { white-space: normal; }
.st-sysl .st-last { white-space: nowrap; }
.st-sysl .st-where { min-width: 140px; }
.st-tag { display: inline-block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: top;
    margin: 0 4px 4px 0; padding: 1px 7px; border: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; font-size: 11.5px; line-height: 1.5; cursor: pointer; }
.st-tag:hover { border-color: var(--text); }
.st-sys .st-tag { margin: 0 0 0 6px; vertical-align: 1px; font-size: 11px; padding: 0 6px; }
.st-sysl tr.off td:not(.st-coll):not(.st-act) { opacity: .6; }
.st-act { white-space: nowrap; text-align: right; }
.st-act > .hc-btn, .st-act > .tg-menu { vertical-align: middle; }

/* collect switch: on = collected every night */
.st-cw { display: flex; align-items: flex-start; gap: 12px; }
.st-cw form { flex: none; margin: 1px 0 0; }
.st-sw { position: relative; display: inline-block; width: 38px; height: 20px; padding: 0; vertical-align: middle; cursor: pointer;
    border: 1.5px solid var(--muted); border-radius: 999px; background: transparent; }
.st-sw .knob { position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--muted); transition: left .15s ease; }
.st-sw[aria-checked="true"] { background: var(--ok); border-color: var(--ok); }
.st-sw[aria-checked="true"] .knob { left: 20px; background: #FFFFFF; }

/* row menu (⋯): the pop-up is moved to <body> while open, so these rules are not scoped to the page */
.tg-menu { display: inline-block; position: relative; margin-left: 4px; }
.tg-menu > summary { list-style: none; cursor: pointer; }
.tg-menu > summary::-webkit-details-marker { display: none; }
.tg-menu-pop { position: fixed; z-index: 300; width: 200px; padding: 6px; display: flex; flex-direction: column; gap: 4px;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.tg-menu-pop form { margin: 0; }
.tg-menu-pop .hc-btn { display: block; width: 100%; text-align: left; margin: 0; box-sizing: border-box; text-decoration: none; }

/* sites */
.st-sites .st-site { min-width: 170px; }
.st-site b { display: block; }
.st-chip { display: inline-flex; align-items: center; gap: 5px; margin: 0 4px 4px 0; padding: 1px 8px; border: 1px solid var(--border); font-size: 12px; white-space: nowrap; }
.st-chip i { display: inline-block; width: 8px; height: 8px; }
.st-chip b { font-weight: 700; }
.st-more { border: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; font-size: 12.5px; padding: 3px 10px; cursor: pointer; white-space: nowrap; }
.st-more::after { content: ''; display: inline-block; margin-left: 8px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; vertical-align: 2px; }
.st-more[aria-expanded="true"] { border-color: var(--text); }
.st-more[aria-expanded="true"]::after { border-top: 0; border-bottom: 4px solid currentColor; }
.st-sitelist td { background: var(--surface2); }
.st-sitelist div { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.st-sitelist a { color: var(--text); font-weight: 600; text-decoration: none; }
.st-sitelist a:hover { color: var(--accent); text-decoration: underline; }
.st-sitelist a.off { color: var(--muted); font-weight: 400; }
.st-sitelist a i { font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--muted); }

/* change history */
.st-hist .st-time { width: 56px; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-hist .st-sys { white-space: nowrap; }
.st-hist s { color: var(--muted); }
.st-hist .st-by { color: var(--muted); max-width: 240px; }
.st-hist .st-note { display: inline-block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ── settings forms: what a group is on the left, its fields on the right ── */
.st-group { margin: 0 0 30px; }
.st-split { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding-top: 20px; border-top: 1px solid var(--border); }
.st-head + .st-split, .st-head + .st-flash + .st-split { border-top: 0; padding-top: 4px; }
.st-gl h2 { margin: 0 0 6px; font-size: 15px; font-weight: 800; color: var(--text); }
.st-gl p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.st-form { display: grid; gap: 16px; max-width: 580px; align-content: start; }
.st-field { display: grid; gap: 6px; min-width: 0; }
.st-field > span { font-size: 12.5px; font-weight: 700; color: var(--text); }
.st-field > span em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
.hc-set-body .st-field input:not([type=checkbox]):not([type=radio]), .hc-set-body .st-field select { width: 100%; height: 38px; padding: 0 12px; font-size: 14px; box-sizing: border-box; }
.st-field small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.st-narrow2 { max-width: 260px; }
.st-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.st-f2:has(> .st-narrow) { grid-template-columns: minmax(0, 1fr) 120px; }
.st-f3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.st-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.st-check input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; }
.st-check > span { font-size: 14px; font-weight: 600; }
.st-check small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.st-save { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.st-msg { font-size: 13px; }
.st-msg.ok { color: var(--ok); }
.st-msg.err { color: var(--crit); }
.st-note { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

/* ── the Edit dialog ── */
.st-dlg[hidden] { display: none; }
.st-dlg:not([hidden]) { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: max(8vh, 76px) 16px 4vh; overflow-y: auto; background: rgba(10, 10, 10, .45); }
body.st-dlg-open { overflow: hidden; }
.st-dlg-box { width: min(780px, 100%); box-sizing: border-box; padding: 24px 28px 20px; background: var(--surface); color: var(--text); border-top: 4px solid var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
.st-dlg-box h2 { margin: 0; font-size: 22px; line-height: 1.1; }
.st-dlg-sub { margin: 4px 0 16px; color: var(--muted); font-size: 13px; }
.st-dlg-sub:empty { display: none; }
.st-dlg fieldset { margin: 0; padding: 14px 0 16px; border: 0; border-top: 1px solid var(--border); min-width: 0; }
.st-dlg legend { float: left; width: 100%; margin: 0 0 12px; padding: 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.st-dlg legend + * { clear: both; }
.st-dlg fieldset > :not(legend) + :not(legend) { margin-top: 12px; }
.st-actor { padding: 12px 0 4px; border-top: 1px solid var(--border); }
.st-dlg-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; padding-top: 16px; border-top: 2px solid var(--text); }
.st-dlg-foot .st-msg { margin-right: auto; }

.st-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.st-h2, .cfp-h { margin: 40px 0 12px; font-size: 15px; font-weight: 800; color: var(--text); }

/* ══ the sections /targets loads when opened (web/helpers/ConfigPanels.psm1) ══ */
/* Users */
.cfp-users td { vertical-align: middle; }
.cfp-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cfp-av { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #FFFFFF; }
.cfp-av img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cfp-av .dot { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--surface); }
.cfp-av .dot.on { background: var(--ok); }
.cfp-av .dot.recent { background: var(--warn); }
.cfp-av .dot.off { background: var(--muted); }
.cfp-un { min-width: 0; }
.cfp-un b { display: block; font-size: 14px; line-height: 1.25; }
.cfp-un .login { display: block; font-size: 12px; color: var(--muted); }
.cfp-role { display: inline-block; padding: 1px 8px; border: 1px solid var(--border); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cfp-role.admin { border-color: var(--text); color: var(--text); }
.cfp-last { white-space: nowrap; }
.cfp-30 { width: 210px; }
.cfp-strip { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; align-items: end; height: 18px; max-width: 190px; }
.cfp-strip span { background: var(--accent); min-height: 2px; }
.cfp-strip span.z { background: var(--border); }
.cfp-users tr.idle .cfp-person, .cfp-users tr.idle .cfp-30 { opacity: .6; }
.cfp-trail .t { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.cfp-trail .by { color: var(--muted); }
/* add or edit a user */
.cfp-add { margin: 0 0 28px; padding: 20px 24px 22px; border: 1px solid var(--border); border-top: 4px solid var(--text); background: var(--surface); }
.cfp-add[hidden], .cfp-add .adm[hidden], .cfp-add .own[hidden], .cfp-add .hint[hidden] { display: none; }
.cfp-add form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 16px; align-items: end; }
.cfp-add h4 { grid-column: 1 / -1; margin: 0; font-size: 18px; font-weight: 800; }
.cfp-add label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--text); }
.hc-set-body .cfp-add input:not([type=file]), .hc-set-body .cfp-add select { font: inherit; font-size: 14px; font-weight: 400; height: 38px; padding: 0 12px; box-sizing: border-box; min-width: 0; color: var(--text); background: var(--surface); border: 1px solid var(--border); }
.cfp-add input[readonly] { opacity: .7; }
.cfp-add .hint { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.cfp-add .acts { grid-column: 1 / -1; display: flex; gap: 8px; }
.cfp-add .msg { grid-column: 1 / -1; font-size: 13px; }
.cfp-add .msg:empty { display: none; }
.cfp-add .msg.err { color: var(--crit); }
.cfp-add .msg.ok { color: var(--ok); }
.cfp-photo { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cfp-photo .pv { position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; border: 1px dashed var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--muted); font-size: 10px; }
.cfp-photo .pv img { width: 100%; height: 100%; object-fit: cover; }
.cfp-photo .pick { position: relative; flex-direction: row; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--text); cursor: pointer; }
.cfp-photo .pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.cfp-photo .pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cfp-photo .rm { border: 0; background: none; padding: 0; color: var(--muted); font: inherit; font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.cfp-photo .ph { font-size: 12px; font-weight: 400; color: var(--muted); }

/* Database */
.cfp-opt { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cfp-optmsg { max-width: 360px; font-size: 12.5px; line-height: 1.45; color: var(--muted); text-align: right; }
.cfp-optmsg:empty { display: none; }
.cfp-optmsg.err { color: var(--crit); }
.cfp-optmsg.ok { color: var(--ok); }
.cfp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; margin: 0 0 30px; }
.cfp-tile { min-width: 0; padding: 2px 0 12px; border-bottom: 3px solid var(--text); }
.cfp-tile.ok { border-bottom-color: var(--ok); }
.cfp-tile.warn { border-bottom-color: var(--warn); }
.cfp-tile.crit { border-bottom-color: var(--crit); }
.cfp-tile .k { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cfp-tile .v { margin-top: 6px; font-size: 28px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.cfp-tile .s { margin-top: 6px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.cfp-viz { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) minmax(0, 1.2fr); gap: 16px; margin: 0 0 8px; }
.cfp-vc { min-width: 0; padding: 16px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.cfp-vc h4 { margin: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cfp-ring { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cfp-ring svg { flex: none; }
.cfp-ring .c1 { font-size: 17px; font-weight: 800; fill: var(--text); }
.cfp-ring .c2 { font-size: 9.5px; letter-spacing: .5px; text-transform: uppercase; fill: var(--muted); }
.cfp-lg { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; font-size: 12px; }
.cfp-lg li { display: flex; align-items: center; gap: 7px; min-width: 0; }
.cfp-lg i { flex: none; width: 9px; height: 9px; }
.cfp-lg span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.cfp-lg b { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cfp-act svg { display: block; width: 100%; height: auto; }
.cfp-act .bar { fill: var(--accent); opacity: .85; }
.cfp-act .bar:hover { opacity: 1; }
.cfp-act .bar.lo { fill: var(--warn); }
.cfp-act .grid { stroke: var(--border); stroke-width: 1; }
.cfp-act .ax { font-size: 9px; fill: var(--muted); }
.cfp-act .run { fill: none; stroke: var(--text); stroke-width: 1.5; opacity: .55; }
.cfp-act .cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); }
.cfp-act .cap b { color: var(--text); }
.cfp-ret { position: relative; height: 8px; margin-top: 4px; background: var(--border); }
.cfp-ret span { position: absolute; top: 0; bottom: 0; left: 0; background: var(--accent); }
.cfp-retl { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.cfp-wait { padding: 18px 0; font-size: 13px; color: var(--muted); }
.cfp-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.cfp-cols .cfp-h { padding-bottom: 10px; border-bottom: 2px solid var(--text); }
.cfp-tbl { display: grid; grid-template-columns: minmax(120px, 1fr) 80px minmax(120px, 1.4fr) 70px; gap: 9px 12px; align-items: center; font-size: 13px; }
.cfp-tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.cfp-tbl .hh { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cfp-bar { display: flex; height: 8px; background: var(--surface2); }
.cfp-bar .d { background: var(--accent); }
.cfp-bar .i { background: var(--accent); opacity: .4; }
.cfp-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.cfp-legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 6px; vertical-align: -1px; background: var(--accent); }
.cfp-legend .i::before { opacity: .4; }
.cfp-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); margin: 0; font-size: 13px; }
.cfp-kv dt, .cfp-kv dd { padding: 7px 0; border-bottom: 1px solid var(--border); }
.cfp-kv dt { padding-right: 18px; color: var(--muted); }
.cfp-kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.cfp-kv .mono { font-size: 11.5px; word-break: break-all; }

/* Scoring */
.cfs-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; }
.st-form .cfs-acts { margin: 0; }
.cfs-acts .msg { flex: 1 1 240px; font-size: 13px; }
.cfs-acts .msg.err { color: var(--crit); }
.cfs-acts .msg.ok { color: var(--ok); }
.cfs-rows { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 8px 14px; align-items: center; max-width: 420px; font-size: 14px; }
.cfs-rows.two { grid-template-columns: minmax(0, 1fr) 90px 90px; max-width: 540px; }
.cfs-rows .hh { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: right; }
.cfs-rows label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cfs-sw { flex: none; width: 10px; height: 10px; }
.hc-set-body .cfs input[type=number] { width: 100%; height: 36px; padding: 0 10px; box-sizing: border-box; font: inherit; font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); background: var(--surface); border: 1px solid var(--border); }
.cfs input:disabled { opacity: .65; cursor: not-allowed; }
.hc-set-body .cfs input.changed { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cfs .chk { display: flex; align-items: flex-start; gap: 10px; max-width: 540px; font-size: 13.5px; line-height: 1.45; }
.cfs .chk input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; }
.cfs .ex { max-width: 540px; padding: 10px 12px; background: var(--surface2); font-size: 13px; line-height: 1.5; }
.cfs .ex:empty { display: none; }
.cfs-strip { position: relative; height: 12px; max-width: 420px; margin: 2px 0 18px; }
.cfs-strip i { position: absolute; top: 15px; transform: translateX(-50%); font-style: normal; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cfs-pv { margin: 0 0 28px; padding: 16px 20px; border: 1px solid var(--border); border-top: 4px solid var(--text); }
.cfs-pv[hidden] { display: none; }
.cfs-pv h4 { margin: 0 0 12px; font-size: 15px; font-weight: 800; }
.cfs-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 26px; margin-bottom: 14px; }
.cfs-big div { font-size: 12px; color: var(--muted); }
.cfs-big b { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.cfs-pv table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cfs-pv th { padding: 5px 8px; text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); }
.cfs-pv td { padding: 5px 8px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.cfs-pv td.n, .cfs-pv th.n { text-align: right; }
.cfs-pv .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 18px; }
.cfs-up { color: var(--ok); font-weight: 700; }
.cfs-down { color: var(--crit); font-weight: 700; }
.cfs-hist { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.cfs-hist li { padding: 8px 0; border-bottom: 1px solid var(--border); line-height: 1.5; }
.cfs-hist .t { font-size: 12px; color: var(--muted); }
.cfs-hist s { color: var(--muted); }

/* ── narrower windows: the menu narrows, then sits across the top ── */
@media (max-width: 1100px) {
    .hc-set { grid-template-columns: 172px minmax(0, 1fr); gap: 28px; }
    .st-split { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .st-gl p { max-width: 70ch; }
    .cfp-viz, .cfp-cols, .cfs-pv .cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
    .hc-set { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .hc-set-nav { position: static; max-height: none; display: flex; gap: 2px; overflow-x: auto; padding-bottom: 0; border-bottom: 1px solid var(--border); }
    .hc-set-t, .hc-set-gl { display: none; }
    .hc-set-g { display: flex; gap: 2px; }
    .hc-set-g + .hc-set-g { margin-top: 0; }
    .hc-set-i { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; padding: 10px 10px 8px; }
    .hc-set-i.on { border-bottom-color: var(--accent); }
    .st-head { flex-direction: column; align-items: flex-start; }
    .st-attn li { flex-direction: column; align-items: flex-start; gap: 8px; }
    .st-count { margin-left: 0; width: 100%; }
    .st-f2, .st-f2:has(> .st-narrow), .st-f3 { grid-template-columns: minmax(0, 1fr); }
    .st-dlg-box { padding: 20px 16px 16px; }
}

/* ══ Atlas ══════════════════════════════════════════════════════════════════════════════════════
   Uppercase 900 heads, square corners, black ink, and the green / pink / blue stripe on the current item. */
html.theme-atlas .hc-set-t { font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; font-size: 22px; }
html.theme-atlas .hc-set-i:hover { background: #F4F4F4; }
html.theme-atlas .hc-set-i.on { background: #F4F4F4; border-left: 3px solid; border-image: linear-gradient(180deg, #00D400 0 33.3%, #FF00A3 33.3% 66.6%, #0000FF 66.6%) 1; }
html.theme-atlas .hc-set-n.bad { color: #EC2127; }
/* (beats atlas.css's page-title rule, which sizes any h1 in the page at up to 48 px) */
html.theme-atlas .hc-main .hc-set .hc-set-body h1 { font-size: 34px !important; margin: 0 0 10px !important; line-height: .95 !important; }
html.theme-atlas .st-head { border-bottom-color: #0A0A0A; }
html.theme-atlas .st-hl p { color: #6F6F6F; font-weight: 300; font-size: 15.5px; }
html.theme-atlas .st-hl p a, html.theme-atlas .st-attn p a, html.theme-atlas .st-gl p a, html.theme-atlas .st-note a { color: #0000FF; }
html.theme-atlas .st-attn li, html.theme-atlas .st-flash { background: #FFFFFF; border-color: #D8D8D8; border-left-width: 6px; }
html.theme-atlas .st-attn li { border-left-color: #C27400; }
html.theme-atlas .st-attn li.crit, html.theme-atlas .st-flash.err { border-left-color: #EC2127; }
html.theme-atlas .st-flash { border-left-color: #008A00; }
html.theme-atlas .st-seg { border-color: #0A0A0A; border-radius: 0; }
html.theme-atlas .st-seg button { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #0A0A0A; }
html.theme-atlas .st-seg button + button { border-left-color: #0A0A0A; }
html.theme-atlas .st-seg button:hover { background: #F4F4F4; }
html.theme-atlas .st-seg button[aria-pressed="true"] { background: #0A0A0A; color: #FFFFFF; }
html.theme-atlas .st-seg button[aria-pressed="true"] i { color: #BDBDBD; }
html.theme-atlas .st-only { background: #F4F4F4; border-left-color: #0A0A0A; }
html.theme-atlas .st-link { color: #0000FF; }
html.theme-atlas .st-list { border-top-color: #0A0A0A; }
html.theme-atlas .st-list thead th { color: #6F6F6F; border-bottom-color: #D8D8D8; }
html.theme-atlas .st-list td { border-bottom-color: #E4E4E4; }
html.theme-atlas .st-list tbody tr:not(.st-gh):not(.st-sitelist):hover td { background: #F4F4F4; }
html.theme-atlas .st-list tr.st-gh th { font-weight: 900; border-bottom-color: #0A0A0A; }
html.theme-atlas .st-sys a:hover, html.theme-atlas .st-sitelist a:hover { color: #0000FF; }
/* names in the lists are ink, blue on hover (atlas.css colours every bare link in the page blue) */
html.theme-atlas .hc-main .hc-set-body .st-list a:not([class]) { color: #0A0A0A; }
html.theme-atlas .hc-main .hc-set-body .st-list a:not([class]):hover { color: #0000FF; }
html.theme-atlas .st-ok { color: #008A00; }
html.theme-atlas .st-bad, html.theme-atlas .st-bad small, html.theme-atlas .st-msg.err { color: #EC2127; }
html.theme-atlas .st-warn { color: #C27400; }
html.theme-atlas .st-msg.ok { color: #008A00; }
html.theme-atlas .st-tag, html.theme-atlas .st-chip, html.theme-atlas .st-more, html.theme-atlas .st-api { border-color: #D8D8D8; }
html.theme-atlas .st-tag:hover, html.theme-atlas .st-more:hover, html.theme-atlas .st-more[aria-expanded="true"] { border-color: #0A0A0A; }
html.theme-atlas .st-sitelist td { background: #F7F7F7; }
/* the switch is square, like everything else in the Atlas look */
html.theme-atlas .st-sw { border-color: #8A8A8A; border-radius: 0 !important; }
html.theme-atlas .st-sw .knob { border-radius: 0 !important; background: #8A8A8A; }
html.theme-atlas .st-sw[aria-checked="true"] { background: #0A0A0A; border-color: #0A0A0A; }
html.theme-atlas .st-sw[aria-checked="true"] .knob { background: #00D400; }
html.theme-atlas .tg-menu-pop { background: #FFFFFF; border: 1px solid #0A0A0A; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .35); }
html.theme-atlas .tg-menu-pop .hc-btn { letter-spacing: .05em !important; }
html.theme-atlas .st-gl h2 { font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
html.theme-atlas .st-field > span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
html.theme-atlas .st-field > span em { letter-spacing: 0; text-transform: none; font-size: 12px; }
html.theme-atlas .st-dlg-box { border-top-color: #0A0A0A; }
html.theme-atlas .st-dlg-box h2 { font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }
html.theme-atlas .st-dlg-foot { border-top-color: #0A0A0A; }
html.theme-atlas .st-h2, html.theme-atlas .cfp-h, html.theme-atlas .cfp-add h4, html.theme-atlas .cfs-pv h4 { font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
html.theme-atlas .cfp-add, html.theme-atlas .cfs-pv { background: #FFFFFF; border-color: #D8D8D8; border-top-color: #0A0A0A; }
html.theme-atlas .cfp-add label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
html.theme-atlas .cfp-av img { border-radius: 0; }
html.theme-atlas .cfp-role.admin { border-color: #0A0A0A; color: #0A0A0A; }
html.theme-atlas .cfp-tile { border-bottom-color: #0A0A0A; }
html.theme-atlas .cfp-tile.ok { border-bottom-color: #00B800; }
html.theme-atlas .cfp-tile.warn { border-bottom-color: #FDA227; }
html.theme-atlas .cfp-tile.crit { border-bottom-color: #EC2127; }
html.theme-atlas .cfp-tile .v { font-size: 32px; font-weight: 900; letter-spacing: -.04em; }
html.theme-atlas .cfp-vc { background: #FFFFFF; border-color: #D8D8D8; }
html.theme-atlas .cfp-act .bar { rx: 0; }
html.theme-atlas .cfp-kv dt, html.theme-atlas .cfp-kv dd { border-bottom-color: #E4E4E4; }
html.theme-atlas .cfs .ex { background: #F4F4F4; }
/* a box you have changed: blue (atlas.css fixes every input's border and shadow) */
html.theme-atlas .hc-main .hc-set-body .cfs input.changed { border-color: #0000FF !important; box-shadow: inset 0 0 0 1px #0000FF !important; }
@media (max-width: 800px) {
    html.theme-atlas .hc-set-i.on { border-left: 0; border-image: none; border-bottom: 3px solid; border-image: linear-gradient(90deg, #00D400 0 33.3%, #FF00A3 33.3% 66.6%, #0000FF 66.6%) 1; }
}

/* Change history: folds (a part, a day, a person). details/summary, so they work without script */
.st-fold > summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; cursor: pointer; list-style: none; user-select: none; }
.st-fold > summary::-webkit-details-marker { display: none; }
.st-fold > summary::before { content: ''; flex: none; align-self: center; width: 0; height: 0; border: 5px solid transparent; border-left-color: currentColor; border-right: 0; margin-right: -2px; transition: transform .12s; }
.st-fold[open] > summary::before { transform: rotate(90deg); }
.st-fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.st-fold > summary > span { color: var(--muted); font-size: 13px; }
.st-sec { margin: 0 0 34px; }
.st-sec > summary { padding: 0 0 10px; border-bottom: 2px solid var(--text); }
.st-sec > summary h2 { margin: 0; font-size: 20px; line-height: 1.1; }
.st-day { border-bottom: 1px solid var(--border); }
.st-day > summary { padding: 13px 4px; }
.st-day > summary:hover, .st-who > summary:hover { background: var(--row-hover); }
.st-day > summary > b { font-size: 14.5px; font-weight: 700; }
.st-day > summary > span:first-of-type { margin-left: auto; }
/* one part at a time, with a quiet line above the list: what it is on the left, Open all / Close all on the right */
.st-htab[hidden] { display: none; }
#pane-history .st-head { margin-bottom: 12px; }
.st-hbar { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 0 4px 10px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 13px; line-height: 1.5; }
.st-hbar a { color: var(--accent); }
.st-hlinks { flex: none; white-space: nowrap; }
.st-hlinks button { padding: 0; margin-left: 16px; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.st-hlinks button:hover { color: var(--text); }
html.theme-atlas .st-hbar a { color: #0000FF; }
.st-day[open] { padding-bottom: 14px; }
.st-day > .st-tw, .st-who > .st-tw { margin-left: 22px; }
.st-who { margin-left: 22px; border-top: 1px solid var(--border); }
.st-who > summary { padding: 9px 4px; }
.st-who > summary > b { font-size: 14px; min-width: 110px; }
.st-whotop { margin-left: auto; text-align: right; }
.st-whotop .st-chip { margin: 0 0 0 4px; }
.st-who[open] { padding-bottom: 10px; }
.st-fold .st-list { border-top: 0; table-layout: fixed; }
.st-fold .st-list thead th { height: 0; padding-top: 0; padding-bottom: 0; border: 0; line-height: 0; font-size: 0; color: transparent; }
.st-fold .st-list td { overflow-wrap: anywhere; }
.st-chg th:nth-child(1), .st-nav th:nth-child(1), .st-chg .st-time, .st-nav .st-time { width: 64px; }
.st-chg th:nth-child(2), .st-chg .st-sys { width: 30%; white-space: normal; }
.st-chg th:nth-child(4), .st-chg .st-by { width: 250px; }
.st-nav th:nth-child(2), .st-nav td:nth-child(2) { width: 46%; }
.st-nav a { color: var(--text); font-weight: 600; text-decoration: none; }
.st-nav a:hover { color: var(--accent); text-decoration: underline; }
.st-foldnote { margin: 12px 0 6px; max-width: 86ch; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
#st-nav .st-loading { padding: 20px 0; }
html.theme-atlas .st-sec > summary { border-bottom-color: #0A0A0A; }
@media (max-width: 760px) { .st-whotop { display: none; } .st-who, .st-day > .st-tw, .st-who > .st-tw { margin-left: 8px; } .st-chg .st-sys { width: 34%; } .st-chg .st-by { width: 90px; } }

/* Website certificate (Settings > Website certificate, web/helpers/WebCertificate.psm1) */
.st-form.wc-wide { max-width: 860px; }
.wc-facts { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 18px; margin: 0; font-size: 14px; line-height: 1.45; }
.wc-facts dt { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.wc-facts dd { margin: 0; overflow-wrap: anywhere; }
.wc-thumb { font-size: 12px; letter-spacing: .02em; }
.wc-list td { vertical-align: top; }
.wc-list .wc-pick { width: 28px; padding-top: 12px; }
.wc-list label { cursor: pointer; }
.wc-list tr.idle label, .wc-list tr.idle .wc-sub { opacity: .6; }
.wc-list .wc-exp { white-space: nowrap; }
.wc-sub { font-size: 12.5px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.wc-warn { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.wc .st-bad { font-size: 12.5px; line-height: 1.45; }
.wc-f { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--text); max-width: 420px; }
.wc .st-flash[hidden] { display: none; }
.wc-sites td { vertical-align: top; }
.wc-sites .wc-site { white-space: nowrap; font-weight: 700; width: 150px; }
.wc-sites .wc-site a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.wc-steps { margin: 16px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.55; }
.wc-steps li { margin: 0 0 6px; }
.wc-internal { border-left: 3px solid var(--border); padding-left: 12px; }
.bk-parts td.n, .bk-parts th.n, .bk-sets td.n, .bk-sets th.n { text-align: right; white-space: nowrap; }
.bk-state { font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.bk-state small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 3px; }
.bk-in { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.bk-in li { margin: 0 0 4px; }
.bk-f { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--text); max-width: 520px; margin: 0 0 14px; }
.bk-f input[type=text], .bk-f input[type=number] { padding: 8px 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 400; }
.bk-f input[type=number] { width: 110px; }
.bk-f small { font-weight: 400; color: var(--muted); }
.bk-check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; }
.bk-cmd { margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; overflow-x: auto; white-space: pre; }

/* Settings actions (2026-11-23): a button marked hidden stays hidden (.hc-btn sets its own display). Web server restart: the confirm and cancel buttons. */
.cfs-acts [hidden] { display: none !important; }
