/* ui.css: the page's look, for the local tool (bulk-export.mjs) and the hosted page alike. Kept out of ui.html so a strict
   Content-Security-Policy (no inline styles) can serve it. */
/* The language picker's default look, as ../shared/ssnd-i18n.js would add it in a <style> element of its own: the hosted page's CSP
   blocks that, so it is here instead, first, so the page's own rules below win. ui.html's link to this file carries the id
   ssndLangStyle, which tells the module its styles are in place. Keep in step with picker() in ssnd-i18n.js. */
#ssndLang{position:relative;display:inline-block}
.ssnd-lang-btn{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font:inherit;white-space:nowrap}
.ssnd-flag{width:20px;height:14px;flex:none;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.18)}
.ssnd-lang-list{position:absolute;right:0;top:calc(100% + 4px);z-index:50;margin:0;padding:4px;list-style:none;min-width:100%}
.ssnd-lang-list[hidden]{display:none}
.ssnd-lang-list button{display:flex;align-items:center;gap:8px;width:100%;padding:6px 10px;border:0;background:transparent;font:inherit;text-align:left;cursor:pointer;white-space:nowrap;border-radius:4px}
/* SSND design tokens: a copy of ssnd/shared/ssnd-theme.css, kept here because the customer runs this tool
   on its own. Dark mode = data-theme="dark" on <html>, set by theme.js before first paint. */
:root {
    --bg: #f7f8fc; --bg-secondary: #eaecf5; --stripe-bg: rgba(0,0,50,0.03); --hover-bg: rgba(87,41,219,0.06);
    --text: #1a1d2e; --text-muted: #555970; --text-faint: #8b90a8;
    --border: #d4d8ea; --border-subtle: #e4e7f2; --border-input: #c4c9de; --input-bg: #fff;
    --panel: #fff; --primary: #5729DB; --accent: #5729DB; --navy: #003177;
    --ok: #1f7a3d; --on-ok: #fff; --err: #b42318; --warn: #9a6700; --row-hi: rgba(87,41,219,0.10);
    /* names this page used before the shared tokens */
    --muted: var(--text-muted); --line: var(--border); --chip: var(--bg-secondary);
}
html[data-theme="dark"] {
    --bg: #0E1119; --bg-secondary: #1A1D22; --stripe-bg: rgba(255,255,255,0.04); --hover-bg: rgba(169,139,255,0.10);
    --text: #ECEEF5; --text-muted: #8A91A8; --text-faint: #6B7186;
    --border: #232838; --border-subtle: #232838; --border-input: #2C3245; --input-bg: #1A1D22;
    --panel: #151820; --accent: #a98bff;
    --ok: #4cc27a; --on-ok: #0b2414; --err: #ff7b6e; --warn: #e6b54a; --row-hi: rgba(169,139,255,0.16);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
/* Header: same build as matter-search (gradient, wordmark, script line, netdocuments, copyright, theme switch). */
header { background: linear-gradient(135deg, #003177, #5729DB); color: #fff; padding: 0 16px; min-height: 52px;
         display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 14px; margin: 0; font-weight: normal; white-space: nowrap; flex: none; }   /* never squeezed under its neighbours */
/* All three on one baseline. A drawn element sits with its bottom edge on the baseline: the wordmark has nothing below the line, the
   handwriting has 300 of its 1260 units below it (Caveat's descent), so it is moved down by that share (measured: all three within 0.5 px). */
.brand .wordmark { height: 24px; width: auto; flex: none; }
/* The three parts are centred on one line through the middle of their letters (Anders, 2026-11-10: "center-aligning them makes most
   sense"), measured in a browser, not the middle of their boxes. The wordmark, mostly tall letters, by its whole height; netdocuments
   and the handwriting, lowercase, by the middle of their small letters (Anders, 2026-11-12: the line by the ink, tall d and t
   included, "does not run through the middle of netdocuments"). Measured 2026-11-12 at 1440 px: x-height of netdocuments from
   measureText('x'), of the handwriting from its ink by rows (viewBox 564 to 944). Then set by Anders's eye, 2026-11-12, from a
   screenshot he adjusted: the handwriting a little lower and netdocuments with it (+3.6 px and +2.7 px on the measured places). */
.brand-script { height: 30px; width: auto; flex: none; position: relative; top: 0.7px; }
.brand-nd { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; font-size: 25px; letter-spacing: -0.02em; line-height: 1; position: relative; top: 0.05em; }
.brand-nd sup { font-size: 9px; font-weight: 400; margin-left: 1px; }
.dc { font-size: 11px; font-weight: 600; letter-spacing: .06em; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 1px 8px; }
.who-name { font-size: 13px; opacity: .9; }
main { max-width: 1680px; margin: 0 auto; padding: 16px; display: grid; gap: 16px; }
section { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
section h2 { font-size: 15px; margin: 0 0 12px; }
section h2 .n { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; text-align: center; font-size: 13px; line-height: 22px; margin-right: 6px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row.mid { align-items: center; }      /* a line of text with a button beside it, as the basket's summary line */
/* The progress line under the bar: Stop keeps to the right edge and the changing text wraps in its own room, so the button never
   moves while a run counts (it slid about with every update and was hard to hit). */
#progress .row, #impProg .row { flex-wrap: nowrap; align-items: flex-start; }
#progText, #impProgText { flex: 1 1 0; min-width: 0; }
#btnStop, #btnImpStop { flex: none; margin-left: auto; }
label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); align-content: start; }
label.inline { display: flex; align-items: center; gap: 6px; color: var(--text); font-size: 13px; }
input[type=text], input[type=date], input[type=number], select, textarea {
    font: inherit; color: var(--text); background: var(--input-bg); border: 1px solid var(--border-input); border-radius: 6px; padding: 6px 8px; min-width: 0;
}
html[data-theme="dark"] { color-scheme: dark; }
/* The page's left edge is measured from the whole window (100vw counts the scrollbar), so a long view (export) and a short one
   (import) stand at the same place: centred with margin auto they were half a scrollbar apart (Anders, 2026-11-12: 9 px on
   Windows Chrome, whose scrollbar is 17 px). Not scrollbar-gutter: stable, which left the header and footer short of the edge. */
main { margin-left: max(0px, (100vw - 1680px) / 2) !important; margin-right: 0 !important; width: auto !important; }      /* stretched to what is left (max 1680): no overflow just above 1680 px; margin-right auto would stop the stretch */
textarea { min-height: 64px; resize: vertical; width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
select { min-width: 280px; max-width: 100%; }
button { font: inherit; border: 1px solid var(--primary); background: var(--primary); color: #fff; border-radius: 6px; padding: 7px 14px; cursor: pointer; }
button.secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
button.danger { background: var(--err); border-color: var(--err); }
button:disabled { opacity: .45; cursor: not-allowed; }
/* Negative actions (clear, remove, empty, stop) are tinted red, positive ones (add, check, import, export, log in) tinted green,
   everywhere. Links into ND stay solid ND purple (a.btnlink, .nd-btn). Neutral controls (Close, Hide list, the header) keep the default. */
button.neg { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); border-color: var(--err); }
button.neg:hover:not(:disabled) { background: color-mix(in srgb, var(--err) 22%, transparent); }
button.pos { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); border-color: var(--ok); }
button.pos:hover:not(:disabled) { background: color-mix(in srgb, var(--ok) 24%, transparent); }
/* The one action that writes, the final Import: solid green, larger, so it stands apart from the tinted buttons. */
button.pos.main { background: var(--ok); color: var(--on-ok); font-weight: 700; font-size: 1.05rem; padding: 10px 26px; }
button.pos.main:hover:not(:disabled) { background: var(--ok); filter: brightness(1.08); }
header button { background: transparent; border-color: rgba(255,255,255,.4); }
/* Export and Import: the page's two tasks, so the switch between them stands out from the rest of the header. */
#taskSwitch button { font-size: 15px; padding: 6px 18px; border-color: rgba(255,255,255,.7); }
#taskSwitch button[aria-pressed="true"] { background: #fff; color: #5729DB; font-weight: 700; border-color: #fff; }
.user-box { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }      /* on a wrapped header it keeps to the right */
@media (max-width: 900px) { #taskSwitch button { font-size: 14px; padding: 5px 12px; } header { gap: 10px; } }
#themeToggle { font-size: 1rem; padding: 4px 10px; }
/* The language picker (ssnd-i18n.js puts it where #langMount was): drawn as the header's buttons. The open list takes the panel's
   colours, so it reads in light and dark mode alike. The id beats the page's select rules (width, min-width, background). */
#ssndLang { flex: none; }
#ssndLang .ssnd-lang-btn { font-size: 13px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.4); border-radius: 6px; padding: 4px 8px; }
#ssndLang .ssnd-lang-btn:hover, #ssndLang .ssnd-lang-btn[aria-expanded="true"] { background: rgba(255,255,255,.12); }
#ssndLang .ssnd-lang-btn::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; margin-left: 2px; opacity: .8; }
#ssndLang .ssnd-lang-list { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
#ssndLang .ssnd-lang-list button { color: var(--text); font-size: 14px; }
#ssndLang .ssnd-lang-list button:hover, #ssndLang .ssnd-lang-list button:focus-visible { background: rgba(87,41,219,0.10); outline: none; }
#ssndLang .ssnd-lang-list button[aria-checked="true"] { font-weight: 600; }
.mode-switch { display: inline-flex; }
.mode-switch button { padding: 4px 12px; border-radius: 0; }
.mode-switch button:first-child { border-radius: 6px 0 0 6px; }
.mode-switch button:last-child { border-radius: 0 6px 6px 0; border-left: 0; }
/* The chosen half is filled white, like Export/Import beside it; the other half is dimmed, so the choice reads at a glance. */
.mode-switch button[aria-pressed="false"] { color: rgba(255,255,255,.75); }
.mode-switch button[aria-pressed="false"]:hover { color: #fff; background: rgba(255,255,255,.12); }
.mode-switch button[aria-pressed="true"] { background: #fff; color: #5729DB; font-weight: 700; border-color: #fff; }
/* Light hides what only Pro offers; Pro hides Light's own short way. */
[hidden] { display: none !important; }
/* a class that sets display must never beat hidden: the ND button kept an old matter's link */
body.light .pro-only { display: none !important; }
body:not(.light) .light-only { display: none !important; }
/* Export and import are two views of the page, chosen at the top. */
body.import .export-only { display: none !important; }
body:not(.import) .import-only { display: none !important; }
#taskSwitch { margin-right: 8px; }
header button, .who-name { white-space: nowrap; }
/* The header's parts drop out as the window narrows (measured 2026-11-12: all of it needs about 1,430 px), then it wraps onto two
   rows rather than letting anything overlap. */
@media (max-width: 1150px) { .who-name { display: none; } }
@media (max-width: 1030px) { .brand-script { display: none; } }
@media (max-width: 860px) { header { flex-wrap: wrap; row-gap: 6px; padding: 6px 16px; } }
@media (max-width: 560px) { .site-footer .dc, .site-footer .footer-copy { display: none; } }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }      /* 12px until 2026-11-12: Anders, "could do with a size larger" */
.format { font-family: ui-monospace, Consolas, monospace; background: var(--chip); padding: 2px 6px; border-radius: 4px; }
.about .format { white-space: nowrap; }        /* a code or an example path is one unit: no break at its "/" or "-" */
.about #secLog { white-space: normal; overflow-wrap: anywhere; }      /* the log file's full path can be long: it breaks rather than widening the page */
.summary { margin: 12px 0 8px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.pill { background: var(--chip); border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.tablewrap { overflow: auto; max-height: 560px; }
/* Matter list: same look as matter-search (uppercase muted headers, zebra rows, purple hover, ND button). */
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; padding: 10px 14px; border-bottom: 2px solid var(--border); color: var(--text-muted); font-weight: 600;
     font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap;
     position: sticky; top: 0; background: var(--panel); z-index: 2; }
td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
tbody tr:nth-child(even) td { background: var(--stripe-bg); }
tbody tr:hover td { background: var(--hover-bg) !important; }
td.k { white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.active td { background: var(--row-hi) !important; }
td.act { white-space: nowrap; text-align: right; }
td.wsname { min-width: 300px; }
.nd-btn { display: inline-block; background: #5729DB; color: #fff !important; font-size: 0.78rem; font-weight: 600; text-decoration: none;
          border-radius: 5px; padding: 3px 10px; letter-spacing: 0.02em; transition: opacity 0.15s; }
.nd-btn:hover { opacity: 0.82; }
.st-refreshed { color: var(--ok); } .st-error { color: var(--err); } .st-running { color: var(--accent); } .st-done { color: var(--muted); }
.ws-tag { display: inline-block; margin-left: 8px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.ws-tag.st-error { color: var(--err); border-color: var(--err); }
.newname { color: var(--ok); font-size: 12px; }
.unchanged { color: var(--warn); font-size: 12px; }
.bar { height: 8px; background: var(--chip); border-radius: 4px; overflow: hidden; margin: 8px 0; }
.bar > div { height: 100%; background: var(--primary); width: 0; transition: width .3s; }
#barFill.done-ok { background: var(--ok); } #barFill.done-warn { background: var(--warn); } #barFill.done-err { background: var(--err); }
.msg { padding: 8px 12px; border-radius: 6px; margin-top: 8px; display: none; }
.msg.show { display: block; }
.msg.err { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.msg.info { background: var(--chip); }
.hidden { display: none !important; }
/* The filters: three key boxes over name and dates, Matter type in a column of its own, so it leaves no hole. */
.drop { border: 2px dashed var(--line); border-radius: 8px; padding: 18px; text-align: center; margin: 12px 0 4px; }
.drop.over { border-color: var(--primary); background: var(--chip); }
.drop .hint { margin-top: 8px; }
.drop button { padding: 7px 5px; }      /* the usual height, less width */
/* Links into ND look like the export's ND buttons: solid ND purple, white text, in light and dark alike. */
a.btnlink { display: inline-block; padding: 8px 14px; border-radius: 6px; background: #5729DB; color: #fff !important; text-decoration: none; font-weight: 600; white-space: nowrap; }
a.btnlink:hover { opacity: 0.82; }
p, .hint, .msg, .rights-note { text-wrap: pretty; }
.rights-note { margin-top: 12px; max-width: 760px; padding: 10px 14px; border-left: 3px solid var(--primary); background: var(--chip); border-radius: 4px; font-size: 13px; line-height: 1.5; }
.drop-note { margin: 4px auto 0; max-width: 720px; font-size: 12px; text-align: center; }
.drop-note > span { display: block; text-wrap: balance; }      /* one sentence per block, each balanced; under the drop zone (Anders: the zone said too much at once) */
.drop .drop-line { margin-top: 6px; color: var(--muted); font-size: 13px; }
.drop .drop-total { margin-top: 6px; font-size: 13px; color: var(--muted); }
.drop .drop-total.warn { color: var(--warn); font-weight: 600; text-wrap: balance; }      /* a drop that cannot go in as it is */
/* The import's rights: a box of its own above step 1's text, the button beside its sentence (Anders: "a bit crowded"). */
.callout { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; background: var(--chip); }
.callout.hidden { display: none; }
.callout p { flex: 1 1 320px; margin: 0; }
.callout .btnlink { flex: none; }
.drop button.rm { padding: 1px 6px; font-size: 12px; margin-left: 4px; }
.find { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.find-field { position: relative; flex: 0 1 340px; min-width: 200px; }
.find-field input { width: 100%; box-sizing: border-box; }
.cabtree { list-style: none; margin: 0; padding: 0; }
.cabtree .cabtree { padding-left: 22px; }
.cabtree li > .cabrow { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
/* Expand marker as in matter search: an outlined chevron in a square, filled when open, not ND's small triangle. */
.cabtree .cabopen { flex: none; width: 24px; height: 24px; min-width: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center;
    border: 1.5px solid rgba(87,41,219,0.5); border-radius: 6px; color: #5729DB; background: transparent; cursor: pointer; transition: background 0.12s, border-color 0.12s; }
.cabtree .cabopen svg { transition: transform 0.15s; }
.cabtree .cabopen:hover { background: rgba(87,41,219,0.10); border-color: #5729DB; }
.cabtree .cabopen[aria-expanded="true"] { background: #5729DB; border-color: #5729DB; color: #fff; }
.cabtree .cabopen[aria-expanded="true"] svg { transform: rotate(90deg); }
html[data-theme="dark"] .cabtree .cabopen { color: #b9a2ff; border-color: rgba(185,162,255,0.6); }
html[data-theme="dark"] .cabtree .cabopen:hover { background: rgba(185,162,255,0.14); border-color: #b9a2ff; }
html[data-theme="dark"] .cabtree .cabopen[aria-expanded="true"] { background: #7c5cf0; border-color: #7c5cf0; color: #fff; }
.cabtree .cabname { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; font-size: inherit; color: inherit; cursor: pointer; }
.cabtree .cabname input { margin: 0; }
.cabtree .cabname input[type="radio"] { accent-color: #5729DB; }
.cabtree .cabin { color: var(--muted); font-size: 90%; }
.cabtree .cabnote { color: var(--muted, #888); font-size: 90%; padding: 2px 0 4px 36px; }
.suggest { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px 0; list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.18); max-height: 280px; overflow-y: auto; }
.suggest li { padding: 5px 10px; cursor: pointer; }
.suggest li.on, .suggest li:hover { background: var(--chip); }
.suggest li.more { color: var(--muted); font-size: 12px; cursor: default; background: none; }
.suggest .k { font-family: ui-monospace, Consolas, monospace; font-size: 13px; margin-right: 8px; }
#secFilter .find-wrap { margin-bottom: 14px; }
.filters { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)) minmax(240px, 320px); grid-template-rows: auto 1fr; gap: 12px; align-items: start; }
.filters #typeBox { grid-column: 4; grid-row: 1 / span 2; }
.filters .checks { max-height: 230px; }
.filters .more { grid-column: 1 / span 3; }
.filters textarea { min-height: 84px; }
.filters .ends { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 1000px) { .filters { grid-template-columns: 1fr; } .filters #typeBox, .filters .more { grid-column: auto; grid-row: auto; } }
label .hint { margin: 0; }
textarea::placeholder { color: var(--muted); opacity: .55; }
/* The match count on the left, what to do with the matches on the right. */
.summary .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
button.reset { padding: 2px 10px; font-size: 12px; }
.empty-note { color: var(--muted); margin: 12px 0 4px; }
.csv-cols { padding: 0 20px 10px; }
.st-warn { color: var(--warn); }
dialog.dlg { width: min(960px, 94vw); max-height: 88vh; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); box-shadow: 0 16px 48px rgba(0,0,0,0.35); }
dialog.dlg[open] { display: flex; flex-direction: column; }
dialog.dlg::backdrop { background: rgba(0,0,30,0.55); }
.dlg .dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px 0; }
.dlg .dlg-head h2 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.dlg > .hint { margin: 6px 20px 8px; min-height: 1em; }
.dlg .dlg-body { flex: 1; min-height: 120px; overflow: auto; padding: 0 20px; border-top: 1px solid var(--border-subtle); }
.dlg .dlg-body th { position: sticky; top: 0; background: var(--panel); z-index: 1; }
.dlg .dlg-body h3 { margin: 16px 0 4px; font-size: 14px; }
/* The folder browser: one row per folder, a click goes into it. */
.browselist { list-style: none; margin: 8px 0; padding: 0; }
.browselist button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 6px; padding: 6px 8px; color: var(--text); font: inherit; cursor: pointer; }
.browselist button:hover, .browselist button:focus-visible { background: rgba(87,41,219,0.10); }
.browselist svg { flex: none; color: #F5A623; }
.browse-drives { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.browse-drives:empty { display: none; }
.browse-path { white-space: normal; overflow-wrap: anywhere; }
.dlg .dlg-foot { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--border-subtle); }
/* Help and information: an A4-shaped page (794 x 1123 px at 96 dpi) in a dialog, the sections one after another under a linked
   contents list (Anders, 2026-11-12: the three columns were "pretty overwhelming and unclear"). */
dialog.dlg.help-dlg { width: min(794px, calc(100vw - 32px)); height: min(1123px, calc(100vh - 32px)); max-height: none; }
.help-dlg .dlg-body { padding: 4px 32px 28px; font-size: 14px; line-height: 1.55; }
.help-toc { margin: 14px 0 6px; padding: 12px 16px; background: var(--chip); border-radius: 8px; }
.help-toc h3 { margin: 0 0 6px !important; }
.help-toc ol { margin: 0; padding-left: 20px; } .help-toc ul { margin: 2px 0 6px; padding-left: 18px; list-style: none; }
.help-toc li { margin: 2px 0; } .help-toc a { color: var(--accent); text-decoration: none; } .help-toc a:hover { text-decoration: underline; }
.about p { margin: 10px 0 6px; }
.about-cols { display: block; }
.about-cols > div { margin-top: 10px; }
.about h3.about-sub { font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--text); margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--border-subtle); scroll-margin-top: 8px; }
.about h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin: 8px 0 4px; scroll-margin-top: 8px; }
.about ul { margin: 0; padding-left: 20px; } .about li { margin: 4px 0; }
.help-pre { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: var(--chip); border-radius: 6px; padding: 10px 12px; margin: 8px 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.about li > ul { margin-top: 4px; }
.about ol.steps { margin: 0; padding-left: 22px; }
/* The "?" as the header's other round-ish buttons. */
.help-btn { font-weight: 700; font-size: 15px; padding: 3px 11px; }
/* The footer in the header's colours. */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; box-sizing: border-box; align-content: start; }      /* the steps keep their own height; the space goes below them */
.site-footer { background: linear-gradient(135deg, #003177, #5729DB); color: rgba(255,255,255,.85); font-size: 13px; padding: 6px 16px; margin-top: 8px;
               display: flex; align-items: center; gap: 10px; position: sticky; bottom: 0; z-index: 10; }      /* always in reach, as the header is */
.site-footer .footer-fill { flex: 1; }
.site-footer button { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
/* The theme switch and the help: one fixed size each, the language button's height, the glyph centred. ☀ and ☾ come from different
   fonts on Windows, so a box that followed the glyph shifted the footer at each switch (Anders, 2026-11-15). */
#themeToggle, #btnHelp { width: 32px; height: 29px; padding: 0; display: inline-flex; align-items: center; justify-content: center; line-height: 1; overflow: hidden; }
.site-footer .footer-copy { white-space: nowrap; margin-left: 6px; }
.site-footer .ssnd-lang-list { top: auto; bottom: calc(100% + 4px); }      /* opens upwards from the footer */      /* bottom right (Anders, 2026-11-12) */
section { scroll-margin-top: 64px; min-width: 0; }   /* min-width: a grid item may not grow to the table's width;
                                                       the table scrolls inside .tablewrap instead */   /* below the sticky header when scrolled to */
#secFilter.collapsed .summary { margin-bottom: 0; }
.lbl { font-size: 12px; color: var(--muted); display: block; margin-bottom: 4px; }
.checks { display: grid; gap: 2px; max-height: 150px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; background: var(--bg); }
.checks label { display: flex; gap: 6px; align-items: center; color: var(--text); font-size: 13px; }
.checks .n { color: var(--muted); margin-left: auto; }
a { color: var(--accent); }
@media (max-width: 640px) { select:not(#ssndLang) { min-width: 0; width: 100%; } .brand-nd { font-size: 20px; } .brand .wordmark { height: 18px; } .dc { display: none; } }

/* What used to be style="" attributes in ui.html, as classes, so the hosted page's CSP (style-src 'self') allows them.
   !important keeps the precedence an inline style had. */
.u-grow { flex: 1 !important; }
.u-m0b10 { margin: 0 0 10px !important; }
.u-m0x20b10 { margin: 0 20px 10px !important; }
.u-mt8 { margin-top: 8px !important; }
.u-mt10 { margin-top: 10px !important; }
.u-mt12 { margin-top: 12px !important; }
.u-mt14 { margin-top: 14px !important; }
.u-mb10 { margin-bottom: 10px !important; }
.u-mb12 { margin-bottom: 12px !important; }
.u-w24 { width: 24px !important; }
.u-w80 { width: 80px !important; }
.u-w90 { width: 90px !important; }
