/* Author Tools components: the reference stylesheet.
   Source of truth: authortools-assets/design/reference/at.css. Each tool keeps a copy (src/at.css);
   when you change a component here, copy it to the tools that use it.
   Colours come from theme/v1/tokens.css (load it first). Type, spacing and radii are below. */
:root {
  --font-ui: Archivo, "Helvetica Neue", Helvetica, sans-serif;
  --font-display: Newsreader, Georgia, serif;
  --font-manuscript: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --space-4: 4px; --space-6: 6px; --space-8: 8px; --space-12: 12px; --space-16: 16px; --space-24: 24px; --space-36: 36px; --space-40: 40px;
  --radius-3: 3px; --radius-4: 4px; --radius-5: 5px; --radius-6: 6px; --radius-7: 7px; --radius-8: 8px; --radius-10: 10px; --radius-12: 12px; --radius-pill: 999px;
}
button, input, select, textarea { font-family: inherit; }

.at-root, .at-root * { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--text); font: 13px/1.55 var(--font-ui); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[data-theme="fall"] :focus-visible { outline-color: var(--accent-text); }
.at-sp { flex: 1; }

/* Button */
.at-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; flex-shrink: 0; white-space: nowrap; border: 1px solid transparent; border-radius: var(--radius-8); padding: 0 14px; font: 12.5px/1 var(--font-ui); color: var(--text); background: transparent; cursor: pointer; text-decoration: none; }
.at-btn:disabled { opacity: .4; cursor: default; }
.at-btn-primary { background: var(--accent-solid); color: var(--on-accent); font-weight: 600; padding: 0 16px; }
.at-btn-secondary { border-color: var(--border-strong); }
.at-btn-secondary:hover:not(:disabled), .at-btn-quiet:hover:not(:disabled), .at-btn-tool:hover:not(:disabled) { background: var(--panel-2); }
.at-btn-quiet { color: var(--text-muted); }
.at-btn-danger { border-color: var(--border-strong); color: var(--danger); }
.at-btn-danger:hover:not(:disabled) { border-color: var(--danger); }
.at-btn-tool { height: 26px; border-color: var(--border-strong); border-radius: var(--radius-6); padding: 0 10px; font-size: 12px; }
.at-btn-tool.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.at-btn-link { height: auto; padding: 0; border: 0; font-size: 12px; color: var(--accent-text); }
.at-btn-link:hover:not(:disabled) { text-decoration: underline; }
.at-btn .at-cost { opacity: .75; font-weight: 400; }

/* TopBar: 40px, wordmark or breadcrumb on the left, the same right end everywhere */
.at-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 40px; flex-shrink: 0; padding: 0 var(--space-16); background: var(--panel); border-bottom: 1px solid var(--border); font: 12.5px var(--font-ui); color: var(--text-faint); }
.at-wordmark { font: 15px/1.2 var(--font-display); color: var(--text); text-decoration: none; white-space: nowrap; }
.at-wordmark em { color: var(--text-dim); }
.at-crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; }
.at-crumbs a { color: var(--text-faint); text-decoration: none; white-space: nowrap; }
.at-crumbs a:hover { color: var(--text); }
.at-crumbs h1 { margin: 0; font: 17px/1.25 var(--font-display); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-right { display: flex; align-items: center; gap: var(--space-16); flex-shrink: 0; font-size: 12px; }
.at-right a, .at-right button.at-name { color: var(--text-faint); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 4px; }
.at-right a:hover, .at-right button.at-name:hover { color: var(--text); }
.at-right a.at-credits { color: var(--accent-text); font-weight: 600; }
.at-appearance { display: grid; place-items: center; width: 28px; height: 26px; border: 1px solid var(--border-strong); border-radius: var(--radius-6); background: none; color: var(--text-muted); cursor: pointer; }
.at-appearance:hover { background: var(--panel-2); color: var(--text); }

/* Badge (status), Tag (meta), DrivesMarker */
.at-badge { display: inline-block; flex-shrink: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-4); padding: 1px 6px; font: 700 9px/1.4 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.at-badge-queued, .at-badge-running, .at-badge-review, .at-badge-stale { border-color: var(--warn); color: var(--warn); }
.at-badge-running { animation: at-pulse 1.2s infinite; }
.at-badge-approved { border-color: var(--accent); color: var(--accent-text); }
.at-badge-failed { border-color: var(--danger); color: var(--danger); }
@keyframes at-pulse { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .at-badge-running { animation: none; } }
.at-tag { display: inline-block; flex-shrink: 0; border-radius: var(--radius-3); background: var(--card-sunk); padding: 1px 6px; font: 10px/1.5 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; }
.at-drives { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; border-radius: var(--radius-3); background: var(--accent-sunk); padding: 1px 7px; font: 600 10px/1.5 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); white-space: nowrap; }

/* Card label: the 7px accent square and a 9.5px uppercase label */
.at-label { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font: 700 9.5px/1.2 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.at-label::before { content: ""; width: 7px; height: 7px; background: var(--accent); flex-shrink: 0; }
.at-label-hint { margin: -6px 0 10px; font-size: 11.5px; line-height: 1.4; color: var(--text-faint); font-style: italic; }

/* StrengthMeter */
.at-meter { display: inline-flex; align-items: center; gap: var(--space-8); }
.at-meter-bar { display: flex; gap: 3px; }
.at-meter-bar i { width: 14px; height: 6px; border-radius: var(--radius-pill); background: var(--card-sunk); box-shadow: inset 0 0 0 1px var(--border-strong); }
.at-meter-bar i.on { background: var(--accent); box-shadow: none; }
.at-meter.full .at-meter-bar i.on { background: var(--ok); }
.at-meter span { font-size: 11.5px; color: var(--text-faint); white-space: nowrap; }

/* ItemCard */
.at-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-10); padding: 12px var(--space-16) 14px; }
.at-item.chosen { border-color: var(--accent); }
.at-item.attention { background: var(--attention-bg); border-color: var(--attention-line); }
.at-item-h { display: flex; align-items: baseline; gap: var(--space-8); flex-wrap: wrap; }
.at-item-t { font: 500 16px/1.3 var(--font-display); color: var(--text); }
.at-item-t .at-check { color: var(--accent-text); margin-right: 5px; font-family: var(--font-ui); font-size: 13px; }
.at-item-meta { font-size: 12px; color: var(--text-faint); }
.at-item-acts { margin-left: auto; display: flex; gap: 6px; align-self: center; }
.at-item-b { margin-top: 4px; font-size: 13px; line-height: 1.55; color: var(--text-2); }
.at-item-b p { margin: 4px 0; }
.at-item-b ul { margin: 4px 0; padding-left: 18px; }
.at-item-b li { margin: 2px 0; }
.at-item-f { margin-top: 10px; display: flex; align-items: center; gap: var(--space-8); }
.at-item-edit { display: flex; flex-direction: column; gap: var(--space-8); margin-top: var(--space-8); }
.at-item-edit .at-row { display: flex; gap: var(--space-8); justify-content: flex-end; }

/* Section: a stage on a book page, its own box with a header strip */
.at-sec { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-10); overflow: hidden; }
.at-sec + .at-sec { margin-top: var(--space-24); }
.at-sec-h { display: flex; align-items: center; gap: 12px; padding: 12px var(--space-16); background: var(--panel-2); border-bottom: 1px solid var(--border); }
.at-sec-h h2 { margin: 0; font: 21px/1.25 var(--font-display); color: var(--text); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.at-sec-h .at-ver { font-size: 11px; color: var(--text-faint); }
.at-sec-b { padding: var(--space-16); }
.at-sec.closed .at-sec-h { border-bottom: 0; }
.at-sec.closed .at-sec-h h2 { color: var(--text-dim); }
.at-sec.attention { background: var(--attention-bg); border-color: var(--attention-line); }
.at-sec.attention .at-sec-h { background: transparent; border-bottom-color: var(--attention-line); }
.at-needs { font: 700 9px/1.4 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.at-sec-lead { font-size: 14px; line-height: 1.55; margin: 0 0 var(--space-12); color: var(--text); }
.at-sec-note { font-style: italic; font-size: 12px; color: var(--text-muted); margin: 0 0 var(--space-12); }
.at-sec-f { display: flex; align-items: center; gap: var(--space-8); margin-top: var(--space-16); }
.at-stack { display: flex; flex-direction: column; gap: 10px; }
.at-sub { margin-top: var(--space-16); }

/* Field, inputs */
.at-field { display: block; }
.at-field > span { display: block; margin-bottom: 4px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.at-field .at-hint { display: block; margin-top: 4px; font-size: 10.5px; line-height: 1.4; color: var(--text-faint); text-transform: none; letter-spacing: 0; }
.at-input, .at-select, .at-ta { width: 100%; background: var(--card-sunk); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-7); padding: 0 8px; font: 12.5px var(--font-ui); }
.at-input, .at-select { height: 30px; }
.at-input:focus, .at-select:focus, .at-ta:focus { border-color: var(--accent); outline: none; }
.at-input::placeholder, .at-ta::placeholder { color: var(--text-fainter); }
.at-ta { resize: none; overflow: hidden; min-height: 30px; display: block; padding: 6px 8px; line-height: 1.5; font-size: 13px; }
.at-select { appearance: none; padding-right: 26px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 13px) 50%, calc(100% - 9px) 50%; background-size: 4px 4px; background-repeat: no-repeat; }

/* Chips: a radio row (filters) or a multi-pick (TagPicker) */
.at-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); }
.at-chip { height: 26px; flex-shrink: 0; white-space: nowrap; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: none; padding: 0 10px; font: 11.5px var(--font-ui); color: var(--text-muted); cursor: pointer; }
.at-chip:hover { background: var(--panel-2); color: var(--text); }
.at-chip.on { border-color: var(--accent); background: var(--accent-solid); color: var(--on-accent); }
.at-chip:disabled { cursor: default; }

/* Segmented */
.at-seg { display: inline-flex; border-radius: var(--radius-7); background: var(--seg-track); padding: 2px; }
.at-seg button { height: 22px; border: 0; border-radius: var(--radius-5); background: none; padding: 0 10px; font: 11.5px var(--font-ui); color: var(--text-dim); cursor: pointer; white-space: nowrap; }
.at-seg button:hover { color: var(--text); }
.at-seg button.on { background: var(--seg-active); color: var(--text); box-shadow: var(--seg-shadow); }

/* Toolbar: labelled clusters, 60px */
.at-toolbar { display: flex; align-items: stretch; height: 60px; background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-10); overflow-x: auto; }
.at-toolbar.flush { border-width: 0 0 1px; border-radius: 0; }
.at-cluster { display: flex; flex-direction: column; justify-content: center; padding: 0 var(--space-16); border-right: 1px solid var(--border); }
.at-cluster:last-child { border-right: 0; }
.at-cluster > span { margin-bottom: 6px; font: 700 9px/1.2 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.at-cluster > div { display: flex; align-items: center; gap: var(--space-8); height: 26px; }

/* StepLine */
.at-steps { display: flex; align-items: flex-start; list-style: none; margin: 0; padding: 0; }
.at-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; text-align: center; min-width: 0; }
.at-step::before { content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 2px; background: var(--border-strong); }
.at-step:first-child::before { display: none; }
.at-step.done::before, .at-step.current::before { background: var(--accent); }
.at-step b { position: relative; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 11.5px var(--font-ui); background: var(--panel); color: var(--text-muted); border: 2px solid var(--border-strong); }
.at-step.done b { background: var(--accent-solid); border-color: var(--accent-solid); color: var(--on-accent); }
.at-step.current b { border-color: var(--accent); color: var(--accent-text); }
.at-step span { font-size: 11.5px; color: var(--text-faint); padding: 0 4px; }
.at-step.current span { color: var(--text); }

/* Modal: a 0.8 scrim, a raised panel with a serif title */
.at-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .8); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 50; }
.at-modal.inline { position: relative; inset: auto; min-height: 100%; }
.at-sheet { background: var(--panel); border: 1px solid var(--border-strong); border-radius: var(--radius-12); width: min(560px, 100%); max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-pop); color: var(--text); }
.at-sheet-h { padding: var(--space-16) var(--space-24); display: flex; align-items: flex-start; gap: var(--space-16); border-bottom: 1px solid var(--border); }
.at-sheet-h h3 { margin: 0; flex: 1; font: 22px/1.25 var(--font-display); }
.at-sheet-h p { margin: 2px 0 0; font-size: 12px; color: var(--text-faint); }
.at-sheet-x { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: var(--radius-6); background: none; color: var(--text-dim); cursor: pointer; font-size: 16px; }
.at-sheet-x:hover { background: var(--panel-2); color: var(--text); }
.at-sheet-b { overflow-y: auto; padding: 20px var(--space-24); display: flex; flex-direction: column; gap: var(--space-12); }
.at-sheet-f { padding: 12px var(--space-24); border-top: 1px solid var(--border); background: var(--panel-2); display: flex; gap: var(--space-8); align-items: center; }
.at-sheet-f .at-note { margin-right: auto; color: var(--text-faint); font-size: 12px; }

/* EmptyState */
.at-empty { border: 1px dashed var(--border-strong); border-radius: var(--radius-10); padding: 32px 24px; text-align: center; color: var(--text-muted); }
.at-empty h2 { margin: 0 0 6px; color: var(--text); font: 20px/1.3 var(--font-display); }
.at-empty p { max-width: 460px; margin: 0 auto 14px; font-size: 12.5px; }
.at-empty.sm { padding: 14px var(--space-16); text-align: left; }
.at-empty.sm h2 { font-size: 16px; }
.at-empty.sm p { margin: 0 0 10px; }

/* Footer: 34px, the same strip every tool ends in */
.at-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); height: 34px; padding: 0 var(--space-16); background: var(--ground-sunk); font-size: 11px; color: var(--text-faint); }
.at-foot > div { display: flex; align-items: center; gap: var(--space-16); flex-shrink: 0; }
.at-foot > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-foot b { font: 400 14px var(--font-display); color: var(--text); white-space: nowrap; }
.at-foot b em { color: var(--text-dim); }
.at-foot a { color: var(--accent-text); text-decoration: none; white-space: nowrap; }
.at-foot a:hover { text-decoration: underline; }

/* Account menu under the member's name */
.at-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 200px; background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius-8); box-shadow: var(--shadow-pop); padding: 6px; display: flex; flex-direction: column; }
.at-menu a, .at-menu button { display: block; width: 100%; text-align: left; padding: 6px 8px; border: 0; background: none; border-radius: var(--radius-6); color: var(--text) !important; font-size: 12.5px; text-decoration: none; cursor: pointer; }
.at-menu a:hover, .at-menu button:hover { background: var(--panel-2); }
.at-menu-note { padding: 2px 8px 6px; font-size: 11px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; }

/* Buttons answer a press; a busy one spins. */
.at-btn:active:not(:disabled) { transform: translateY(1px); filter: brightness(.92); }
.at-btn.busy:disabled { opacity: .85; cursor: progress; }
.at-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: at-spin .7s linear infinite; flex: none; }
@keyframes at-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .at-spin { animation-duration: 2s; } }

/* CardLabel row, ItemCard and Section states */
.block-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.block-h .at-label { margin: 0; flex: 1; }
.block-h + .at-label-hint { margin-top: -6px; }
.at-item-hl { display: flex; align-items: baseline; gap: var(--space-8); flex-wrap: wrap; min-width: 0; flex: 1; }
.at-item.flagged { border-style: dashed; }
.at-item.pickable { cursor: pointer; transition: border-color .12s; }
.at-item.pickable:not(.chosen):hover { border-color: var(--border-strong); }
.at-item.pickable.chosen:hover { border-color: var(--accent-text); }
.at-sec.locked .at-sec-h h2 { color: var(--text-faint); }
.at-sec-h .acts { display: flex; gap: 8px; align-items: center; }
.at-sec-caret { flex: none; color: var(--text-faint); transform: rotate(90deg); transition: transform .15s ease, color .15s; }
.at-sec.closed .at-sec-caret { transform: rotate(0deg); }
.at-sec-h:hover .at-sec-caret { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .at-sec-caret { transition: none; } }

/* Toast: one line at the foot of the screen, gone after a few seconds */
.at-toast { position: fixed; left: 50%; bottom: 52px; transform: translateX(-50%); z-index: 60; max-width: min(560px, calc(100vw - 32px)); background: var(--raised); border: 1px solid var(--border-strong); border-radius: var(--radius-8); box-shadow: var(--shadow-pop); padding: 9px 14px; font-size: 12.5px; color: var(--text); }
.at-toast.err { border-color: var(--danger); }

/* Tabs (vertical) */
.vtabs { --vt-line: color-mix(in srgb, var(--accent) 45%, var(--border)); display: grid; grid-template-columns: 184px minmax(0, 1fr); margin-top: 6px; }
.vtabs-list { display: flex; flex-direction: column; padding: 2px 0; }
.vtabs-list [role="tab"] { position: relative; display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 6px 0 6px 14px; border: 0; background: none; font: 500 13px/1.3 var(--font-ui); color: var(--text-dim); text-align: left; cursor: pointer; }
.vtabs-list [role="tab"]::before { content: ''; position: absolute; left: 2px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: transparent; transition: background .15s; }
.vtabs-list [role="tab"]:hover { color: var(--text); }
.vtabs-list [role="tab"].on { color: var(--text); font-weight: 600; }
.vtabs-list [role="tab"].on::before { background: var(--accent); }
.vtabs-list [role="tab"]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px; }
.vt-l { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 2px 7px; min-width: 0; }
.vt-n { font-size: 11px; font-weight: 500; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.vt-dot { align-self: center; width: 6px; height: 6px; border-radius: 50%; background: var(--warn, #c0392b); box-shadow: 0 0 0 2px color-mix(in srgb, var(--warn, #c0392b) 20%, transparent); }
.vt-lead { flex: 1 0 14px; align-self: center; height: 0; border-top: 1.5px solid transparent; transition: border-color .15s; }
.vtabs-list [role="tab"].on .vt-lead { border-top-color: var(--vt-line); }
.vtabs-body { position: relative; min-width: 0; border-left: 1.5px solid var(--vt-line); padding: 4px 0 14px 22px; }
.vtabs-body::after { content: ''; position: absolute; left: -1.5px; bottom: 0; width: 14px; border-top: 1.5px solid var(--vt-line); }
.vtabs-pane > .block:first-child { margin-top: 0; }
/* Inside a tab the tab names the part: the block keeps its hint and its Edit, side by side. */
.vtabs-pane > .block { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 12px; }
.vtabs-pane > .block > * { flex: 0 0 100%; min-width: 0; order: 3; }
.vtabs-pane > .block > .block-h { flex: 0 0 auto; order: 2; margin: 0 0 10px auto; }
.vtabs-pane > .block > .block-h .at-label { display: none; }
.vtabs-pane > .block > .block-h:not(:has(button)) { display: none; }
.vtabs-pane > .block > .at-label-hint { flex: 1 1 200px; order: 1; margin: 4px 0 10px; }
@media (max-width: 640px) {
  .vtabs { grid-template-columns: minmax(0, 1fr); }
  .vtabs-list { flex-direction: row; overflow-x: auto; gap: 2px; padding: 0 0 2px; border-bottom: 1px solid var(--border); scrollbar-width: none; }
  .vtabs-list [role="tab"] { flex: none; padding: 8px 10px; min-height: 0; white-space: nowrap; }
  .vtabs-list [role="tab"]::before, .vt-lead { display: none; }
  .vtabs-list [role="tab"].on { box-shadow: inset 0 -2px var(--accent); }
  .vt-l { flex-wrap: nowrap; }
  .vtabs-body { border-left: 0; padding: 14px 0 0; }
  .vtabs-body::after { display: none; }
}
.vt-mark { color: var(--accent-text); font-size: 11px; font-weight: 700; }

/* Item card header: title, tags and meta wrap on the left; the actions keep the top right */
.at-item-h { flex-wrap: nowrap; align-items: flex-start; }
.at-item-hl { gap: 2px 8px; }
.at-item-acts { margin-left: 0; flex-shrink: 0; }

/* Phones and narrow windows */
@media (max-width: 960px) {
  .at-topbar { height: auto; min-height: 40px; flex-wrap: wrap; padding: 6px 12px; }
  .at-right { flex-wrap: wrap; gap: 10px; }
  .at-modal { padding: 0; }
  .at-sheet { width: 100% !important; height: 100%; max-height: 100%; border-radius: 0; border: 0; }
  .at-toolbar { height: auto; flex-wrap: wrap; }
  .at-cluster { padding: 8px var(--space-16); border-right: 0; }
}
@media (max-width: 640px) {
  .at-foot { height: auto; flex-wrap: wrap; row-gap: 6px; padding: 10px var(--space-16); }
  .at-foot > div { flex-wrap: wrap; row-gap: 4px; flex-shrink: 1; min-width: 0; }
  .at-foot > div > b { flex-basis: 100%; }
  .at-foot > span { white-space: normal; }
}

/* Slider with its value: inspectors */
.at-slider { display: grid; grid-template-columns: 78px minmax(0, 1fr) 46px; align-items: center; gap: 4px 10px; }
.at-slider > label { font-size: 12px; color: var(--text-muted); }
.at-slider > input[type="range"] { width: 100%; accent-color: var(--accent); min-width: 0; }
.at-slider > output { font-size: 11.5px; color: var(--text-faint); text-align: right; font-variant-numeric: tabular-nums; }
.at-slider > .at-hint { grid-column: 2 / -1; font-size: 10.5px; color: var(--text-faint); }
