:root {
    --bg: #f4f5f7;
    --surface: #ffffff;
    --text: #1d2330;
    --muted: #5d6677;
    --border: #d5d9e0;
    --accent: #2b5fad;
    --accent-text: #ffffff;
    --danger: #b3261e;
    --warning-bg: #fff4d6;
    --warning-border: #e3b341;
    --error-bg: #fde8e7;
    --menu-bg: #24324a;
    --menu-text: #f2f4f8;
    --focus: #7aa7ff;
    --button-bg: #4169e1;      /* royal blue */
    --button-hover: #2f55c8;
    --button-text: #ffffff;
    --check: #0075ff;          /* the browser's own colour of a ticked check box */
    --check-disabled: color-mix(in srgb, var(--check) 50%, var(--surface)); /* disabled: half strength, a pale blue */
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14171d;
        --surface: #1d222b;
        --text: #e6e9ef;
        --muted: #a0a8b8;
        --border: #363d4a;
        --accent: #6f9ce6;
        --accent-text: #0f1420;
        --danger: #ef7a72;
        --warning-bg: #3a3118;
        --warning-border: #8a6d1f;
        --error-bg: #3b1f1d;
        --menu-bg: #0e1218;
        --menu-text: #e6e9ef;
        --check: #99c8ff;
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); }
h1 { font-size: 1.25rem; margin: 0; }
h2 { font-size: 1.1rem; margin: 0 0 12px; }

.page { padding: 16px; max-width: 1200px; margin: 0 auto; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.narrow { max-width: 560px; margin: 32px auto; }
.muted { color: var(--muted); }
.preformatted { white-space: pre-line; }

/* ---------------------------------------------------------------- menu bar */
.menubar { display: flex; align-items: stretch; gap: 8px; background: var(--menu-bg); color: var(--menu-text); padding: 0 16px; flex-wrap: wrap; }
.menubar .brand { color: var(--menu-text); font-weight: 700; text-decoration: none; padding: 10px 8px 10px 0; letter-spacing: .05em; }
.menus { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
.menu { position: relative; }
.menu-title { background: none; border: 0; color: inherit; font: inherit; padding: 10px 12px; cursor: pointer; }
a.menu-title { display: inline-block; text-decoration: none; }
.menu-title:hover, .menu.open .menu-title, .menu:focus-within .menu-title { background: rgba(255, 255, 255, .12); }
.menu-items { display: none; position: absolute; z-index: 20; left: 0; top: 100%; min-width: 240px; list-style: none; margin: 0; padding: 4px 0;
    background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 0 0 6px 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.menu:hover .menu-items, .menu.open .menu-items, .menu:focus-within .menu-items { display: block; }
.menu-items form { margin: 0; }
.menu-link { display: block; width: 100%; text-align: left; padding: 6px 14px; color: var(--text); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.menu-link:hover, .menu-link:focus { background: var(--bg); }
.separator { border-top: 1px solid var(--border); margin: 4px 0; }
.menu-empty { padding: 6px 14px; color: var(--muted); }

/* ---------------------------------------------------------------- messages */
.msgbox { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 6px; padding: 10px 14px; margin-bottom: 12px; }
.msgbox.warning { background: var(--warning-bg); border-color: var(--warning-border); }
.error { background: var(--error-bg); border: 1px solid var(--danger); color: var(--text); border-radius: 6px; padding: 8px 12px; margin-bottom: 12px; }

/* ---------------------------------------------------------------- forms */
input, select, textarea, button, .button {
    font: inherit; color: var(--text); background: var(--surface);
    border: 1px solid var(--border); border-radius: 5px; padding: 5px 8px; min-height: 32px;
}
input[type=checkbox] { min-height: 0; width: 16px; height: 16px; padding: 0; }
/* Disabled check boxes: pale blue (half the colour of an enabled one) instead of the browser's grey */
input[type=checkbox]:disabled {
    appearance: none; -webkit-appearance: none; box-sizing: border-box; margin: 3px 3px 3px 4px;
    border: 1.5px solid var(--check-disabled); border-radius: 3px; background: var(--surface);
    vertical-align: -3px; opacity: 1; cursor: default;
}
input[type=checkbox]:disabled:checked {
    background: var(--check-disabled) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
textarea { width: 100%; resize: vertical; }
input[readonly], textarea[readonly], select:disabled { background: var(--bg); color: var(--muted); }
input.tagged { color: var(--text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
button, .button { cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
    background: var(--button-bg); color: var(--button-text); border-color: var(--button-bg); }
button:hover:not(:disabled), .button:hover { background: var(--button-hover); border-color: var(--button-hover); }
button:disabled { opacity: .5; cursor: default; }
button.primary { font-weight: 600; }
button.danger { box-shadow: inset 0 0 0 2px var(--danger); }
button.link { border: 0; background: none; color: var(--accent); padding: 0; min-height: 0; text-decoration: underline; }
/* Link-style and menu buttons keep their own look on hover (not the royal blue button hover). */
button.link:hover:not(:disabled) { background: none; border: 0; color: var(--accent); text-decoration-thickness: 2px; }
button.menu-title:hover:not(:disabled) { background: rgba(255, 255, 255, .12); border-color: transparent; }
button.menu-link:hover:not(:disabled) { background: var(--bg); border-color: transparent; }

.buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.buttons.stacked { flex-direction: column; align-items: flex-start; }
.buttons.footer { border-top: 1px solid var(--border); padding-top: 12px; }

.window-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.window-header .buttons { margin-top: 0; }

.grid { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 10px; align-items: center; border: 0; margin: 0; padding: 0; min-width: 0; }
.grid > label { text-align: right; color: var(--muted); }
.grid-exact { grid-template-columns: max-content minmax(0, 1fr) auto; }
.exact-heading { font-size: 12px; color: var(--muted); }
.control { display: flex; gap: 6px; align-items: center; min-width: 0; }
.control > input:not([type=checkbox]), .control > select, .control > textarea { flex: 1; min-width: 0; }
.control > input.short { flex: 0 1 8em; }
.check { display: inline-flex; gap: 6px; align-items: center; }
.age { white-space: nowrap; color: var(--muted); }

.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

/* ---------------------------------------------------------------- Ark Contact */
/* Columns that wrap as the window allows (name/address, phone/notes, club/book, custom): wide screens show them
   side by side so there is little or no scrolling. Each grid keeps its rows packed at the top (no stretching to
   the tallest column) and its fields no wider than they need to be. */
.page:has(#ark-contact) { max-width: 1800px; }
.contact-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 28px; }
.contact-layout > section { min-width: 0; }
.contact-main { flex: 1 1 280px; max-width: 460px; align-content: start; row-gap: 6px; }
.contact-side { flex: 1 1 250px; max-width: 400px; display: flex; flex-direction: column; gap: 10px; }
.contact-side .grid { row-gap: 6px; }
.contact-side .buttons.stacked { flex-direction: row; margin-top: 0; } /* Sessions / Sections / Payments on one line */
.contact-custom { flex: 1 1 270px; max-width: 720px; }
.contact-custom .grid { row-gap: 6px; align-content: start; grid-template-columns: fit-content(9em) minmax(0, 1fr); } /* long labels wrap, leaving room for the box */
.picture img { max-width: 130px; max-height: 130px; border-radius: 6px; border: 1px solid var(--border); }
.checks { display: flex; flex-wrap: wrap; gap: 16px; }
.custom { border: 1px solid var(--border); border-radius: 6px; padding: 10px; }
.custom-columns { display: flex; flex-wrap: wrap; gap: 16px; }
.custom-columns > .grid { flex: 1 1 220px; }

/* ---------------------------------------------------------------- Contact Session */
.session-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.session-list { max-height: 60vh; overflow-y: auto; }
table.list tr.selected { background: var(--bg); box-shadow: inset 3px 0 0 var(--accent); }
table.list .center { text-align: center; }
button.small { min-height: 0; padding: 2px 8px; font-size: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- Sections (One Year Record) */
.sections-top { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 12px; }
.sections-top label { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.sections-top .sections-nav { margin: 0; align-items: center; }
.award-line .award-inline { margin-left: 12px; }
.sections-grid { border-collapse: collapse; }
.sections-grid th, .sections-grid td { padding: 2px 3px; text-align: center; border-bottom: 1px solid var(--border); }
.sections-grid thead th { font-size: 12px; color: var(--muted); font-weight: 600; }
.sections-grid tbody th { text-align: right; font-weight: normal; padding-right: 10px; white-space: nowrap; }
.sections-grid .choose-col { padding-left: 28px; font-size: 12px; color: var(--muted); text-align: left; white-space: nowrap; border-bottom: 0; } /* row lines end at the last numbered column */
.sections-grid tr.gap-before > * { padding-top: 18px; } /* a skipped unit display order */
/* drop-downs never widen the check-box columns (.combo-fit adds no width to the table); ark.js widens .section-combos
   across the rest of the row, so they run across and wrap onto as many lines as needed */
.combo-fit { width: 0; min-width: 100%; }
.section-combos { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-start; }
.section-combo { min-width: 9em; }
/* the grid with, to its right, one column holding the group-award Inventory Chosen panel, the awards and the buttons;
   the column drops below the grid when the screen is too narrow for both */
.sections-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 32px; }
.sections-body > .table-wrap { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.sections-side { flex: 1 1 22em; max-width: 40em; min-width: 0; display: grid; gap: 14px; align-content: start; }
.sections-side > .group-choices { justify-self: start; }
.sections-side .sections-awards { margin-top: 0; }
.sections-side .buttons.footer { margin-top: 0; }
/* the grade and User Notes together, kept a little in from the right edge */
.window-header .header-tools { display: flex; align-items: center; gap: 12px; margin-right: 24px; }
.header-tools .notes-button { padding: 3px 10px; min-height: 0; font-size: 13px; }
.group-choices { display: flex; flex-direction: column; gap: 6px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }
.group-choices h2 { font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 2px; }
.sections-awards { display: grid; gap: 8px; margin-top: 14px; }
.award-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.award-label { min-width: 9em; color: var(--muted); }
.choose-list { width: 100%; min-height: 10em; margin-bottom: 8px; }

/* ---------------------------------------------------------------- Check-in */
.option-lists { display: grid; gap: 12px; align-content: start; }
.check-list { border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; display: grid; gap: 4px; max-height: 16em; overflow-y: auto; }
.check-list legend { color: var(--muted); padding: 0 4px; }
.checkin-date { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ci-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; font-size: 12px; }
.ci-grid { columns: 22rem; column-gap: 24px; }
.ci-grid .ci-row { gap: 7px; }
.page:has(.ci-grid) { max-width: none; } /* the check-in grid uses the whole window: a 4th column when there is room */
.ci-grid input[type=checkbox].ci-cell { margin: 0; } /* the browser's own margins made rows too wide for three columns */
/* The name has its own width (the columns stretch to fill the page, so their width does not size it). */
.ci-grid .ci-name { flex: 0 0 9rem; }
.ci-heading, .ci-heading-row th { font-weight: 600; text-align: center; padding: 6px 4px 2px; break-after: avoid; }
.ci-row { display: flex; align-items: center; gap: 5px; padding: 2px 0; break-inside: avoid; border-bottom: 1px solid var(--border); }
.ci-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-name .link { text-align: left; }
/* one character (the color's first letter), fixed width so the boxes line up when it is blank */
.ci-color { flex: 0 0 1.2em; width: 1.2em; overflow: hidden; white-space: nowrap; text-align: center; color: var(--muted); }
.ci-editor .ci-color { flex: 0 1 auto; width: auto; }
.ci-grid-wrap { position: relative; }
.ci-col-heads { position: relative; height: 1.4em; }
.ci-col-heads span { position: absolute; top: 0; transform: translateX(-50%); font-size: 12px; font-weight: 700; line-height: 1.4em; }
/* sized to the field's digits (inline width); no spin arrows, so more columns fit */
.ci-number { min-height: 26px; padding: 2px 4px; text-align: right; -moz-appearance: textfield; appearance: textfield; }
.ci-number::-webkit-inner-spin-button, .ci-number::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* Shares Spent: one 0-9999 field per name, so narrow columns and more of them */
.shares-grid { columns: 13rem; column-gap: 20px; }
.shares-grid .ci-name { flex: 1 1 auto; }
.shares-grid .ci-number { flex: 0 0 4.5em; width: 4.5em; }
.ci-list { max-height: 55vh; overflow-y: auto; }
.ci-list td:first-child { min-width: 14rem; }
.ci-names { columns: 14rem; column-gap: 20px; max-height: 55vh; overflow-y: auto; }
.ci-name-choice { display: block; padding: 3px 4px; text-align: left; break-inside: avoid; }
.ci-name-choice.selected { font-weight: 700; }
.ci-editor { margin-top: 14px; padding: 10px; border: 1px solid var(--border); border-radius: 6px; }
.ci-editor .ci-row { flex-wrap: wrap; gap: 10px 16px; border: 0; }
.ci-editor .ci-name { flex: 0 1 auto; }
.ci-cell-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.ci-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ---------------------------------------------------------------- lists */
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
table.list th { color: var(--muted); font-weight: 600; position: sticky; top: 0; background: var(--surface); }
table.list tbody tr:hover { background: var(--bg); }
tr.row-pick { cursor: pointer; } /* clicking anywhere on the row picks it (ark.js pickWholeRow) */

/* ---------------------------------------------------------------- dialogs */
.dialog { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); max-width: min(520px, calc(100vw - 32px)); padding: 18px; }
.dialog.wide { max-width: min(760px, calc(100vw - 32px)); width: 100%; }
.dialog::backdrop { background: rgba(0, 0, 0, .45); }
.dialog-message { white-space: pre-line; margin-top: 0; }
.dialog-buttons { display: flex; gap: 8px; justify-content: flex-end; }
.dialog .table-wrap { max-height: 50vh; overflow-y: auto; margin-top: 12px; }

/* ---------------------------------------------------------------- login */
.login { display: grid; justify-items: center; gap: 16px; padding-top: 32px; }
.login-logo { max-width: 180px; height: auto; }
.login-card { width: min(380px, 100%); display: grid; gap: 12px; }
.login-card label { display: grid; gap: 4px; color: var(--muted); }

@media (max-width: 760px) {
    .contact-layout, .session-layout { grid-template-columns: 1fr; }
    .grid, .grid-exact { grid-template-columns: 1fr; }
    .grid > label { text-align: left; }
    .grid-exact > span:empty { display: none; }
}

/* setup windows */
.narrow-wide { max-width: 820px; }
.link-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto minmax(0, 1.4fr); gap: 16px; align-items: start; }
.link-list { max-height: 60vh; overflow-y: auto; }
.link-list caption { text-align: left; padding: 0 0 4px; }
.link-buttons { align-self: center; }
.calendar-weeks td { padding: 3px 8px; }
.calendar-weeks .cal-desc { width: 100%; }
.reg-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; }
.reg-list { display: grid; gap: 4px; }
.reg-list select { width: 100%; }
/* Button Menu users (no menu bar): a slim strip with User Notes above every screen */
.page-tools { display: flex; justify-content: flex-end; margin: -8px 0 8px; }
.page-tools .button { padding: 3px 10px; min-height: 0; font-size: 13px; }

/* Help > User Notes: a small dialog (Xojo UserNotesWin was 400 x 300) placed with left/top and dragged by its
   title; no dimming, so the screen the notes are about stays readable */
.notes-dialog { position: fixed; margin: 0; inset: auto; width: min(400px, calc(100vw - 16px)); padding: 0;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .28); resize: both; overflow: auto; min-width: 260px; min-height: 220px; }
.notes-dialog::backdrop { background: transparent; }
.notes-dialog .notes-title { cursor: move; user-select: none; touch-action: none; padding: 8px 12px; font-weight: 600;
    background: var(--menu-bg); color: var(--menu-text); border-radius: 8px 8px 0 0; }
.notes-dialog .notes-title .muted { color: inherit; opacity: .7; font-weight: normal; font-size: 12px; }
.notes-dialog textarea { display: block; width: calc(100% - 24px); margin: 12px 12px 0; min-height: 180px; }
.notes-dialog .notes-status { margin: 4px 12px 0; min-height: 1.2em; font-size: 12px; }
.notes-dialog .dialog-buttons { padding: 8px 12px 12px; }

/* Window Security: Window List | Add / Remove buttons | Windows allowed, side by side as in the Xojo window */
.ws-lists { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; margin-top: 12px; }
.ws-lists[hidden] { display: none; } /* an unrestricted user has no lists */
.ws-lists > .buttons.stacked { margin-top: 0; align-items: stretch; }
@media (max-width: 760px) {
    .ws-lists { grid-template-columns: 1fr; }
    .ws-lists > .buttons.stacked { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 760px) {
    .link-layout, .reg-layout { grid-template-columns: minmax(0, 1fr); }
}

/* Mailing labels (Contact Mailing Label) */
.label-sheets { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; overflow-x: auto; }
.label-page { position: relative; background: #fff; color: #000; box-shadow: 0 0 0 1px #ccc; flex: none; }
.label { position: absolute; overflow: hidden; white-space: pre-line; line-height: 1.2; padding: 0.05in 0.1in; box-sizing: border-box; font-family: Arial, sans-serif; }
@media print {
    .no-print, header, nav, .menu-bar, .messages { display: none !important; }
    body, main { margin: 0 !important; padding: 0 !important; background: #fff !important; }
    .label-sheets { gap: 0; }
    .label-page { box-shadow: none; page-break-after: always; break-after: page; }
    @page { size: letter; margin: 0; }
}

/* Images, Button Menu */
.image-preview { max-width: 100%; max-height: 420px; border: 1px solid var(--border, #ccc); }
.image-add { margin-top: 16px; }
/* column-first: each column fills top to bottom before the next starts; Main Menu / Logout to the right */
/* fixed-width columns (--menu-button), so Main Menu / Logout can be the same size as the menu buttons */
.button-menu-wrap { --menu-button: 220px; display: flex; align-items: flex-start; gap: 8px 24px; flex-wrap: wrap; }
.button-menu { flex: 0 1 auto; columns: var(--menu-columns, 1); column-gap: 8px; max-width: 100%;
    width: calc(var(--menu-columns, 1) * var(--menu-button) + (var(--menu-columns, 1) - 1) * 8px); }
.button-menu .button, .button-menu .button-menu-item, .button-menu-side .button, .button-menu-side button {
    display: block; width: 100%; text-align: center; margin: 0 0 8px; break-inside: avoid; }
.button-menu form { break-inside: avoid; } /* File > Exit signs out */
/* Main Menu / Logout: a column to the right, level with the bottom row(s) of buttons */
.button-menu-side { display: block; margin: 0; align-self: flex-end; width: var(--menu-button); max-width: 100%; }
.button-menu-side form { margin: 0; }
@media (max-width: 760px) { /* narrow window: as many full-size columns as fit, Main Menu / Logout below */
    .button-menu { width: 100%; columns: var(--menu-button); }
}
/* Process Registration: registered values (Styles.RegChangeStyle) */
.reg-change { background: #ffff80 !important; color: #000; }
form.inline { display: inline; }

/* Registration portal */
.reg-fields textarea { width: 100%; }
.totals { margin-top: 12px; max-width: 360px; }
.num { text-align: right; }

/* Reports */
.report-menus { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 24px; margin-top: 12px; }
.report-menu h2 { font-size: 1rem; margin: 0 0 4px; border-bottom: 1px solid var(--border, #ccc); }
.report-list { list-style: none; margin: 0; padding: 0; }
.report-list li { margin: 2px 0; }
button.link { background: none; border: 0; padding: 2px 0; color: var(--link, #0645ad); cursor: pointer; text-align: left; font: inherit; }
button.link:hover { text-decoration: underline; }
.check-list { display: flex; flex-direction: column; gap: 2px; max-height: 14em; overflow-y: auto; border: 1px solid var(--border, #ccc); padding: 4px 8px; }
.report-options select[size] { min-width: 16em; }
/* Options windows: the drop-downs (Gender, Grade, Book...) are short, and the labels stay beside them on a narrow window */
.options-grid > select, .options-grid > .control > select:not([size]) { flex: 0 1 15em; width: 15em; max-width: 100%; min-width: 0; justify-self: start; }
@media (max-width: 760px) {
    .grid.options-grid { grid-template-columns: max-content minmax(0, 1fr); }
    .grid.options-grid > label { text-align: right; }
}
.report-frame { width: 100%; height: 80vh; border: 1px solid var(--border, #ccc); margin-top: 12px; background: #fff; }
textarea.code { font-family: Consolas, "Courier New", monospace; font-size: .85rem; width: 100%; white-space: pre; }

/* Report options: date lists with an "add a date" calendar button (AddDateButtonMTT) */
/* a radio group that wraps keeps its heading beside the first row of buttons */
.report-options > .radio-label, .report-options > .radio-label + .control { align-self: start; }
.report-options input[type=radio] { min-height: 0; width: 16px; height: 16px; padding: 0; margin: 0; }
.report-options .checks { flex-direction: column; align-items: flex-start; row-gap: 6px; } /* radio buttons one under the other */
/* List Options: two columns of prompts (through Group Type, then the rest); one column on a narrow window */
.narrow-wide:has(.report-columns) { max-width: 1000px; }
.report-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 8px 32px; align-items: start; }
.report-options .control > select[data-date-list] { flex: 0 0 auto; width: auto; } /* sized to a date, so arrow and button stay close */
.report-options .date-add { padding: 4px 8px; flex: 0 0 auto; }
.report-options .control { position: relative; }
.report-options .date-picker { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; min-height: 0; }
.report-options .date-picker.shown { position: static; width: auto; height: auto; opacity: 1; pointer-events: auto; border: 1px solid var(--border); padding: 5px 8px; min-height: 32px; }
