/* Cloud2Roof web pages: the account page (/) and the administration (/admin).
   Proposal D, "Points to plan": ConstrIQ cobalt and cool greys; a deep cobalt rail carries the brand;
   drawings in cobalt line work with title blocks; square corners, circles only for markers; crop marks
   only for a place: the current page, the selected month, today. One family, Barlow, in three widths
   (narrow cuts for labels and column heads), and IBM Plex Mono for what is typed or copied exactly.
   No style is written into the pages themselves: their policy allows only this file. */

/* ================================================================ lettering: served from this folder */
/* latin-ext */
@font-face {
  font-family: 'Lettering';
  font-stretch: 88% 200%;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(barlow-400i-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lettering';
  font-stretch: 88% 200%;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(barlow-400i-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lettering';
  font-stretch: 88% 200%;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(barlow-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lettering';
  font-stretch: 88% 200%;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(barlow-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lettering';
  font-stretch: 88% 200%;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(barlow-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lettering';
  font-stretch: 88% 200%;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(barlow-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lettering';
  font-stretch: 88% 200%;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(barlow-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lettering';
  font-stretch: 88% 200%;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(barlow-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lettering';
  font-stretch: 88% 200%;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(barlow-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lettering';
  font-stretch: 88% 200%;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(barlow-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lettering';
  font-stretch: 50% 79.9%;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(barlowcondensed-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lettering';
  font-stretch: 50% 79.9%;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(barlowcondensed-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lettering';
  font-stretch: 50% 79.9%;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(barlowcondensed-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lettering';
  font-stretch: 50% 79.9%;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(barlowcondensed-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lettering';
  font-stretch: 80% 87.9%;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(barlowsemicondensed-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lettering';
  font-stretch: 80% 87.9%;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(barlowsemicondensed-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lettering';
  font-stretch: 80% 87.9%;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(barlowsemicondensed-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lettering';
  font-stretch: 80% 87.9%;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(barlowsemicondensed-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lettering';
  font-stretch: 80% 87.9%;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(barlowsemicondensed-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lettering';
  font-stretch: 80% 87.9%;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(barlowsemicondensed-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(ibmplexmono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(ibmplexmono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(ibmplexmono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(ibmplexmono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ================================================================ tokens */
:root {
  --ground: #F3F5F9; --panel: #FFFFFF;
  --rail: #0A2559; --rail-ink: #C9D6EE; --rail-line: #1C3A73; --rail-hover: #12306A;
  --ink: #0E1A2B; --muted: #4F5D70; --rule: #DDE3EC; --edge: #7F8C9E;
  --cobalt: #004AB0; --cobalt-press: #003A8F; --link: #004AB0; --focus: #004AB0; --wash: #EDF2F9;
  --data: #004AB0; --bar: #6E93D3;
  --ok: #17784A; --ok-bg: #E3F3EA; --warn: #9A5B00; --warn-bg: #FDF1DC; --bad: #B42318; --bad-bg: #FDECEA;
  --scrim: rgb(14 26 43 / .5);
  --d-jobs: #004AB0; --d-kept: #7FA3E0; --d-records: #21918C; --d-downloads: #C98A00; --d-system: #6B7686; --d-free: #E4E9F0;
  --pt-ground: #A7B0BC; --target: #D92D20; --viewer: #EEF2F7;
  --dw-line: #004AB0; --dw-ink: #0E1A2B; --dw-muted: #4F5D70; --dw-rule: #B9C6D8; --dw-hatch: #C5D0DF;
  --dw-fill: rgb(238 242 247 / .5); --bp-fill: rgb(10 37 89 / .32);
  --font-ui: "Lettering", "Helvetica Neue", Arial, sans-serif;
  --font-draw: "Lettering", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ground: #0B111A; --panel: #121A26;
    --rail: #061633; --rail-ink: #B4C3DE; --rail-line: #142B55; --rail-hover: #0D2350;
    --ink: #E6ECF4; --muted: #9AA8BA; --rule: #243042; --edge: #5F6F86;
    --cobalt-press: #1A5FC7; --link: #6FA2FF; --focus: #6FA2FF; --wash: #14223A;
    --data: #6FA2FF; --bar: #4A6FAE;
    --ok: #5CC48A; --ok-bg: #12301F; --warn: #E7B04B; --warn-bg: #3A2C10; --bad: #FF8A80; --bad-bg: #3B1715;
    --scrim: rgb(2 6 12 / .62);
    --d-jobs: #3D7BE0; --d-kept: #9CB9EC; --d-records: #3BB3AD; --d-downloads: #E3B341; --d-system: #7B8696; --d-free: #1D2735; --pt-ground: #5A6575; --target: #FF6B5E; --viewer: #0E1520;
    --dw-line: #8FB5FF; --dw-ink: #E6ECF4; --dw-muted: #9AA8BA; --dw-rule: #33425A; --dw-hatch: #2A3850;
    --dw-fill: rgb(14 21 32 / .5); --bp-fill: rgb(6 22 51 / .32);
    color-scheme: dark; }
}
:root[data-theme="dark"] { --ground: #0B111A; --panel: #121A26;
    --rail: #061633; --rail-ink: #B4C3DE; --rail-line: #142B55; --rail-hover: #0D2350;
    --ink: #E6ECF4; --muted: #9AA8BA; --rule: #243042; --edge: #5F6F86;
    --cobalt-press: #1A5FC7; --link: #6FA2FF; --focus: #6FA2FF; --wash: #14223A;
    --data: #6FA2FF; --bar: #4A6FAE;
    --ok: #5CC48A; --ok-bg: #12301F; --warn: #E7B04B; --warn-bg: #3A2C10; --bad: #FF8A80; --bad-bg: #3B1715;
    --scrim: rgb(2 6 12 / .62);
    --d-jobs: #3D7BE0; --d-kept: #9CB9EC; --d-records: #3BB3AD; --d-downloads: #E3B341; --d-system: #7B8696; --d-free: #1D2735; --pt-ground: #5A6575; --target: #FF6B5E; --viewer: #0E1520;
    --dw-line: #8FB5FF; --dw-ink: #E6ECF4; --dw-muted: #9AA8BA; --dw-rule: #33425A; --dw-hatch: #2A3850;
    --dw-fill: rgb(14 21 32 / .5); --bp-fill: rgb(6 22 51 / .32);
    color-scheme: dark; }

/* ================================================================ base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--ground); color: var(--ink); font: 14px/1.5 var(--font-ui); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-draw); font-weight: 600; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: 2px; }
code, kbd, .exact { font-family: var(--font-mono); font-stretch: 100%; font-weight: 400; letter-spacing: 0; }
.exact { font-size: .92em; }
input.exact { font-size: 14px; }
b, strong { font-weight: 700; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.num, th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ================================================================ controls: drawn, not rounded */
button, a.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 6px 14px; border: 1.5px solid var(--edge); border-radius: 0;
  background: var(--panel); color: var(--ink); font: 600 14px/1.2 var(--font-draw); font-stretch: 94%;
  text-decoration: none; cursor: pointer;
}
button:hover, a.button:hover { border-color: var(--ink); }
button.primary, a.button.primary { background: var(--cobalt); border-color: var(--cobalt); color: #FFFFFF; }
button.primary:hover, a.button.primary:hover { background: var(--cobalt-press); border-color: var(--cobalt-press); }
button:disabled, button:disabled:hover { border-style: dashed; border-color: var(--edge); background: transparent; color: var(--muted); cursor: not-allowed; }
button.small { min-height: 28px; padding: 2px 9px; font-size: 12.5px; }
button.link { min-height: 0; padding: 0; border: 0; background: none; color: var(--link); font-weight: 600; text-decoration: underline; }
button.danger { color: var(--bad); }
input, select {
  min-height: 40px; padding: 8px 10px; border: 1.5px solid var(--edge); border-radius: 0;
  background: var(--panel); color: var(--ink); font: 400 14px/1.3 var(--font-ui); font-stretch: 100%; min-width: 0;
}
input[readonly] { background: var(--ground); }
input:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
input[autocomplete="username"], input[type="email"] { font-family: var(--font-mono); }
input[type="file"] { min-height: 0; padding: 4px 0; border: 0; background: none; font-size: 13px; }
input[type="file"]::file-selector-button { margin-right: 10px; padding: 4px 10px; border: 1.5px solid var(--edge); border-radius: 0;
  background: var(--panel); color: var(--ink); font: 600 12.5px var(--font-draw); cursor: pointer; }
label.check { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; font-size: 14px; color: var(--ink); }
label.check input { min-height: 0; width: 16px; height: 16px; margin: 2px 0 0; accent-color: #004AB0; }
.field, .fields label, dialog label, .si-form label { font-family: var(--font-draw); font-stretch: 82%; font-weight: 600; font-size: 12.5px; color: var(--muted); }
.field { display: grid; gap: 5px; }
.field input, .field select { width: 100%; }
.stack { display: grid; gap: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hint { color: var(--muted); font-size: 12.5px; max-width: 90ch; }
.error { color: var(--bad); font-weight: 700; font-size: 13.5px; min-height: 1.4em; display: flex; gap: 9px; align-items: baseline; }
.error:not(:empty)::before { content: ""; flex: none; width: 8px; height: 8px; background: currentColor; transform: translateY(-1px) rotate(45deg) scale(.85); }
.done { display: flex; gap: 9px; align-items: baseline; font-size: 13.5px; color: var(--ink); max-width: 52ch; }
.done::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); transform: translateY(-1px); }
.notice { border-left: 3px solid var(--cobalt); background: var(--wash); padding: 10px 14px; margin: 0 0 16px; max-width: 110ch; }
.notice.bad { border-left-color: var(--bad); background: var(--bad-bg); color: var(--ink); font-weight: 600; }
/* Problems view: how many are new, and marking them reviewed (they stay in the log) */
.reviewbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px;
  border-left: 3px solid var(--bad); background: var(--wash); padding: 10px 14px; margin: 0 0 16px; }
.reviewbar p { margin: 0; }
.reviewbar label.check { margin-top: 0; align-items: center; }
.foot { color: var(--muted); font-size: 12.5px; margin-top: 16px; max-width: 100ch; }
.empty { color: var(--muted); padding: 22px; text-align: center; }
.more { display: flex; margin: 12px auto 0; }
.loading::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px;
  border: 2px solid var(--rule); border-top-color: var(--cobalt); border-radius: 50%; animation: turn .8s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loading::before { animation-duration: 2.4s; } }

/* crop marks: the current page, the selected month, today */
.crop { position: relative; }
.crop::after, .rail .tabs button[aria-selected="true"]::after, .tile[aria-pressed="true"]::after, .day.today::after {
  content: ""; position: absolute; inset: -4px; pointer-events: none; --c: var(--cobalt); --a: 8px;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--a) 1.5px no-repeat, linear-gradient(var(--c), var(--c)) left top / 1.5px var(--a) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--a) 1.5px no-repeat, linear-gradient(var(--c), var(--c)) right top / 1.5px var(--a) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--a) 1.5px no-repeat, linear-gradient(var(--c), var(--c)) left bottom / 1.5px var(--a) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--a) 1.5px no-repeat, linear-gradient(var(--c), var(--c)) right bottom / 1.5px var(--a) no-repeat;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .crop::after, :root:not([data-theme="light"]) .tile[aria-pressed="true"]::after, :root:not([data-theme="light"]) .day.today::after { --c: #8FB5FF; }
}
:root[data-theme="dark"] .crop::after, :root[data-theme="dark"] .tile[aria-pressed="true"]::after, :root[data-theme="dark"] .day.today::after { --c: #8FB5FF; }

/* the colour theme: Auto, Light or Dark, joined, the chosen one filled */
.themes { display: inline-flex; }
.themes button { min-height: 28px; padding: 2px 10px; font-size: 12.5px; }
.themes button + button { margin-left: -1.5px; }
.themes button[aria-pressed="true"] { position: relative; z-index: 1; background: var(--cobalt); border-color: var(--cobalt); color: #FFFFFF; }
.rail .themes button, .band .themes button { background: transparent; border-color: var(--rail-line); color: var(--rail-ink); }
.rail .themes button:hover, .band .themes button:hover { border-color: var(--rail-ink); color: #FFFFFF; }
.rail .themes button[aria-pressed="true"], .band .themes button[aria-pressed="true"] { background: var(--rail-hover); border-color: var(--rail-ink); color: #FFFFFF; }
.rail .themes { margin-bottom: 14px; }
.bandside { display: flex; align-items: center; gap: 22px; }
.si-foot { margin-top: 26px; }

/* ================================================================ the brand */
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { display: block; font-family: var(--font-draw); font-size: 15px; font-weight: 700; color: #FFFFFF; line-height: 1.2; }
.brand span { display: block; font-size: 12px; color: var(--rail-ink); line-height: 1.2; }
.rail, .band, .hero { --focus: #BFD4FF; }

/* ================================================================ tables: drawing schedules */
.tablewrap { overflow-x: auto; background: var(--panel); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
thead th { position: sticky; top: 0; z-index: 1; background: var(--panel); border-bottom: 1.5px solid var(--ink);
  font-family: var(--font-draw); font-stretch: 82%; font-weight: 600; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
tbody tr:hover { background: var(--wash); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
th[scope="row"] { font-weight: 700; }
td.time, td.ip { white-space: nowrap; font-variant-numeric: tabular-nums; }
td.user, td.ip { font-family: var(--font-mono); font-size: 12.5px; white-space: nowrap; }
td.details { min-width: 220px; }
.secondary, .sec { display: block; color: var(--muted); font-size: 12px; font-family: var(--font-ui); font-stretch: 100%; white-space: normal; }
.sec.exact { font-family: var(--font-mono); font-size: 11.5px; }
tr.free td, tr.removed td { color: var(--muted); }
td.num.billed { font-weight: 700; }
tr.free td.num.billed { font-weight: 400; }
td.sha { white-space: nowrap; }
td.sha code { margin-right: 8px; font-size: 12.5px; }
td.sha button.small { min-height: 24px; padding: 1px 8px; font-size: 12px; }
td select { min-height: 30px; padding: 2px 8px; font-size: 13px; }
/* state by shape and word: dot done, diamond problem, triangle slow */
.pill { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; font-family: var(--font-draw); font-stretch: 85%;
  font-weight: 700; font-size: 12.5px; color: var(--muted); white-space: nowrap; vertical-align: 0; }
.pill.ok { color: var(--ok); }
.pill.ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.bad { color: var(--bad); }
.pill.bad::before { content: ""; width: 8px; height: 8px; background: currentColor; transform: rotate(45deg) scale(.85); }
.pill.warn { color: var(--warn); }
.pill.warn::before { content: ""; width: 10px; height: 9px; background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.chip { min-height: 0; padding: 0; border: 0; background: none; color: var(--link); font: 600 12.5px var(--font-ui);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
td.details .chip { margin-top: 4px; }
td.details .chip + .chip { margin-left: 14px; }
/* row actions are quiet: words in the link colour, a frame only on hover and focus */
.buttons { display: flex; flex-wrap: wrap; gap: 2px 4px; margin-left: -6px; align-items: center; }
.buttons button { min-height: 26px; padding: 2px 6px; border-color: transparent; background: none; color: var(--link); font-size: 12.5px; }
.buttons button:hover { border-color: currentColor; }
.buttons button.danger { color: var(--bad); }
.buttons .secondary { padding-left: 6px; }

/* ================================================================ panels, readouts, dialogs */
.panel { background: var(--panel); border: 1px solid var(--rule); padding: 18px 20px; margin-bottom: 18px; }
.panel h2 { font-size: 17px; margin-bottom: 12px; }
.subhead { font-size: 19px; margin: 28px 0 12px; }
.panelhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; }
.panelhead h2 { margin: 0; }
.panelhead p { color: var(--muted); font-variant-numeric: tabular-nums; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 18px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; font-size: 13.5px; }
.facts dt { color: var(--muted); font-family: var(--font-draw); font-stretch: 85%; font-weight: 600; }
.facts dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.facts dd.exact { font-size: 12.5px; }
/* one readout strip: the summary before the table */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: var(--panel);
  border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); margin-bottom: 18px; }
.card { padding: 11px 14px 12px; box-shadow: inset -1px 0 var(--rule), inset 0 -1px var(--rule); min-width: 0; }
.card .label { display: flex; align-items: center; gap: 6px; font-family: var(--font-draw); font-stretch: 82%; font-weight: 600; font-size: 12.5px; color: var(--muted); }
.card .value { font-size: 24px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.card .note { display: block; font-size: 12px; color: var(--muted); }
.card .value { display: block; }
.card .label, .card .note { line-height: 1.5; }
.card.bad .value, .card.bad .label { color: var(--bad); }
.card.bad .label::before { content: ""; width: 8px; height: 8px; background: currentColor; transform: rotate(45deg) scale(.85); }
.card.warn .value, .card.warn .label { color: var(--warn); }
.card.warn .label::before { content: ""; width: 10px; height: 9px; background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 22px 24px; border: 1.5px solid var(--dw-line);
  border-radius: 0; background: var(--panel); color: var(--ink); }
dialog::backdrop { background: var(--scrim); }
dialog h2 { font-size: 21px; margin-bottom: 8px; }
dialog p { color: var(--muted); margin-bottom: 14px; }
dialog label { display: grid; gap: 5px; margin-bottom: 12px; }
dialog input { width: 100%; font-family: var(--font-mono); font-size: 13px; }
dialog .actions { margin-top: 6px; }
dialog.wide { width: min(1120px, calc(100vw - 32px)); }

/* ================================================================ the account page */
.band { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 28px; background: var(--rail); color: var(--rail-ink); }
.who { display: flex; align-items: center; gap: 14px; }
.band .who span { color: #FFFFFF; }
.band a, .band button.link { color: var(--rail-ink); font-weight: 600; }
body:has(#gate:not([hidden])) .band { display: none; }
.account main { max-width: 1180px; margin: 0 auto; padding: 32px 28px 56px; }
.account main:has(#gate:not([hidden])) { max-width: none; padding: 0; }
.account main:has(#gate:not([hidden])) .signnote { margin: 0; max-width: none; }
.page-title { font-size: 27px; margin-bottom: 16px; }
.subtitle { font-size: 21px; margin: 34px 0 14px; }
.signin { display: grid; gap: 14px; align-content: start; }
.si-form h1 { font-size: 30px; }
.si-form form { display: grid; gap: 6px; max-width: 380px; }
.si-form form input { width: 100%; }
.si-form form button.primary { margin-top: 14px; min-height: 44px; }
.si-form .error { margin-top: 4px; }
.si-form .hint { max-width: 44ch; }
.si-links a { font-weight: 600; }
.dltable th[scope="row"] .sec { font-weight: 400; }
.dltable tr.mine th[scope="row"] { color: var(--cobalt); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dltable tr.mine th[scope="row"] { color: var(--link); }
}
:root[data-theme="dark"] .dltable tr.mine th[scope="row"] { color: var(--link); }
.acct .tablewrap { margin-bottom: 18px; }
.dltable td.act { width: 1%; white-space: nowrap; }
.dltable td.act .button { width: 100%; min-width: 8.5em; }
.steps { list-style: none; counter-reset: step; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; max-width: 90ch; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--dw-line);
  border-radius: 50%; color: var(--dw-line); font: 700 12px var(--font-draw); }
.addr { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.addr .field { flex: 1 1 320px; }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; align-items: start; }
.acct-grid .panel { margin: 0; display: grid; gap: 12px; }
.acct-grid .panel h2 { margin: 0; }
.acct-grid .facts { margin: 0; }

/* ================================================================ the administration */
.admin .shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(to right, var(--rail) 224px, transparent 224px); }  /* the rail's colour all the way down */
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 26px; padding: 20px 14px 16px;
  background: var(--rail); color: var(--rail-ink); }
.rail .brand { padding: 0 6px; }
.rail .tabs { display: grid; gap: 4px; }
.rail .tabs button { position: relative; justify-content: flex-start; gap: 11px; min-height: 38px; padding: 8px 12px; border: 0;
  background: none; color: var(--rail-ink); font-size: 14.5px; font-stretch: 100%; text-align: left; }
.rail .tabs button:hover { background: var(--rail-hover); color: #FFFFFF; }
.rail .tabs button[aria-selected="true"] { background: var(--rail-hover); color: #FFFFFF; }
.rail .tabs button[aria-selected="true"]::after { --c: var(--rail-ink); inset: 0; }
.pt { width: 7px; height: 7px; border: 1.5px solid currentColor; border-radius: 50%; flex: none; }
[aria-selected="true"] > .pt { background: currentColor; }
.rail-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rail-line); }
.rail .who { justify-content: space-between; gap: 10px; }
.rail .who span { color: #FFFFFF; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.rail button.link { color: var(--rail-ink); font-size: 13px; }
.admin main { padding: 28px 32px 56px; min-width: 0; max-width: 1480px; }
.main-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; }
.main-head .page-title { margin: 0; }
.main-head .lead { color: var(--muted); }
.main-head .actions { margin-left: auto; align-self: center; }
.gatebox { max-width: 480px; margin: 10vh auto 0; padding: 28px; background: var(--panel); border: 1.5px solid var(--dw-line); }
.gatebox h1 { font-size: 26px; margin-bottom: 8px; }
.gatebox p { color: var(--muted); margin-bottom: 18px; }
/* filters and forms as a title block: each field one cell */
.toolbar, .fields:not(.stack) { display: flex; flex-wrap: wrap; align-items: stretch; background: var(--panel); border: 1.5px solid var(--dw-line); }
.toolbar { margin-bottom: 18px; }
.toolbar > label, .toolbar > .yearnav, .fields:not(.stack) > label { display: grid; gap: 3px; align-content: start; min-width: 150px;
  padding: 8px 12px 6px; box-shadow: inset -1px 0 var(--rule), inset 0 -1px var(--rule);
  font-family: var(--font-draw); font-stretch: 82%; font-weight: 600; font-size: 12.5px; color: var(--muted); }
.toolbar > label input, .toolbar > label select, .fields:not(.stack) > label input, .fields:not(.stack) > label select {
  min-height: 30px; padding: 2px 0; border: 0; background: transparent; width: 100%; }
.toolbar > label:focus-within, .fields:not(.stack) > label:focus-within { outline: 2px solid var(--focus); outline-offset: -2px; }
.toolbar > label input:focus-visible, .toolbar > label select:focus-visible,
.fields:not(.stack) > label input:focus-visible, .fields:not(.stack) > label select:focus-visible { outline: none; }
.toolbar .grow, .fields .grow { flex: 1 1 220px; }
.toolbar > .actions { margin-left: auto; padding: 8px 12px; }
.toolbar.plain { background: none; border: 0; }
.toolbar.plain > .actions { margin-left: 0; padding: 0; }
.yearnav { display: flex !important; align-items: center; gap: 8px; }
.yearnav span { min-width: 4ch; text-align: center; color: var(--ink); font-size: 15px; font-stretch: 100%; font-weight: 700; font-variant-numeric: tabular-nums; }
.yearnav button { min-height: 30px; min-width: 32px; padding: 0 8px; }
.panel form, form.panel { display: grid; gap: 12px; }
.upload { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.upload .fields { flex: 1 1 560px; }
.upload progress { -webkit-appearance: none; appearance: none; flex: 1 1 180px; height: 6px; border: 0; background: var(--rule); }
.upload progress::-webkit-progress-bar { background: var(--rule); }
.upload progress::-webkit-progress-value { background: var(--cobalt); }
.upload progress::-moz-progress-bar { background: var(--cobalt); }
/* Billing: months as bars, the month as a calendar */
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); background: var(--panel); margin-bottom: 18px;
  border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.tile { --level: 0; position: relative; display: grid; align-content: end; gap: 1px; min-height: 128px; padding: 10px 10px 11px;
  border: 0; box-shadow: inset -1px 0 var(--rule); background: none; color: var(--ink); text-align: left; font-stretch: 100%; }
.tile::before { content: ""; display: block; height: calc(var(--level) * 58px + 2px); margin-bottom: 8px; background: var(--bar); }
.tile:hover { background: var(--wash); border: 0; }
.tile[aria-pressed="true"]::before { background: var(--data); }
.tile .name { font-family: var(--font-draw); font-stretch: 82%; font-weight: 600; font-size: 12.5px; color: var(--muted); }
.tile .value { font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile .note { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.tile:disabled { opacity: .45; cursor: default; background: none; border: 0; }
.monthview { background: var(--panel); border: 1px solid var(--rule); padding: 18px 20px; }
.monthhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.monthhead h2 { font-size: 21px; }
.monthhead p { color: var(--muted); font-variant-numeric: tabular-nums; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 16px 0 18px; }
.calendar .weekday { font-family: var(--font-draw); font-stretch: 82%; font-weight: 600; font-size: 12px; color: var(--muted); padding-left: 2px; }
.day { position: relative; min-height: 74px; padding: 6px 8px 8px; border: 1px dashed var(--rule); font-size: 12px; min-width: 0; }
.day .dots { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 4px 0 3px; min-height: 18px; }
.day .bd { display: block; border-radius: 50%; background: var(--data); }
.day .fr { display: block; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--edge); }
.day.blank { border-color: transparent; }
.day .number { color: var(--muted); font-variant-numeric: tabular-nums; }
.day .area { display: block; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.day .count { display: block; color: var(--muted); }
.day.today .number { color: var(--cobalt); font-weight: 700; }
.monthview .tablewrap { margin-top: 4px; }
/* Server */
.diskbar { position: relative; display: flex; height: 28px; background: var(--d-free); border: 1px solid var(--rule); }
.diskbar .part { height: 100%; min-width: 2px; }
.diskbar .part + .part { box-shadow: inset 1px 0 0 var(--panel); }
.part.jobs, .swatch.jobs { background: var(--d-jobs); }
.part.kept, .swatch.kept { background: var(--d-kept); }
.part.records, .swatch.records { background: var(--d-records); }
.part.downloads, .swatch.downloads { background: var(--d-downloads); }
.part.system, .swatch.system { background: var(--d-system); }
.part.free, .swatch.free { background: var(--d-free); }
.diskbar .keepline { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px dashed var(--bad); }
.legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 6px 22px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 13px; }
.legend li { display: flex; align-items: center; gap: 9px; }
.legend b { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.swatch { flex: none; width: 12px; height: 12px; border: 1px solid var(--rule); }
.swatch.keep { width: 6px; border: 0; border-left: 2px dashed var(--bad); background: none; }
.spreadhead { width: 34%; }
td.spreadcell { vertical-align: middle; }
/* conversion times as dot plots on one time axis: a dot for the usual time, a ring for the slowest */
.spread { position: relative; height: 14px; }
.spread::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--rule); }
.spread span { position: absolute; left: 0; top: 6px; height: 1.5px; }
.spread .slowest { background: color-mix(in srgb, var(--d-jobs) 45%, transparent); }
.spread .usual { background: transparent; }
.spread span::after { content: ""; position: absolute; right: -5px; top: -4.5px; width: 10px; height: 10px; border-radius: 50%; }
.spread .usual::after { background: var(--d-jobs); z-index: 1; }
.spread .slowest::after { border: 1.5px solid var(--d-jobs); background: var(--panel); }
.panel .tablewrap { border-top-width: 1px; border-bottom-width: 1px; }
/* the job window */
.facts.tbfacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0; margin: 0 0 16px;
  background: var(--panel); border: 1.5px solid var(--dw-line); }
.tbfacts > div { padding: 6px 10px 8px; min-width: 0; box-shadow: inset -1px 0 var(--dw-rule), inset 0 -1px var(--dw-rule); }
.tbfacts dt { font-stretch: 78%; font-size: 11.5px; line-height: 1.3; }
.tbfacts dd { font-size: 13.5px; }
.tbfacts .exactcell dd { font-family: var(--font-mono); font-size: 12.5px; }
#logTitle { font-size: 22px; }
#logMessage { color: var(--bad); font-weight: 600; }
pre.log { max-height: 40vh; overflow: auto; margin: 0 0 8px; padding: 10px 12px; background: var(--ground); border: 1px solid var(--rule);
  font: 12px/1.6 var(--font-mono); white-space: pre; }
.model, .diagnosis { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--rule); background: var(--panel); }
.modelhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.modelhead h3, .diagnosis h3 { font-size: 17px; }
.model .buttons { margin-left: 0; gap: 6px; }
.model .buttons button { min-height: 30px; padding: 3px 10px; border-color: var(--edge); color: var(--ink); font-size: 13px; }
.model .buttons button:hover { border-color: var(--ink); }
.model .buttons button[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #FFFFFF; }
.verdict { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
#modelCanvas { --viewer-bg: #EEF2F7; display: block; width: 100%; height: min(58vh, 480px); background: var(--viewer-bg);
  border: 1px solid var(--rule); touch-action: none; cursor: grab; }
#modelCanvas:active { cursor: grabbing; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #modelCanvas { --viewer-bg: #0E1520; }
}
:root[data-theme="dark"] #modelCanvas { --viewer-bg: #0E1520; }
.model .facts { margin: 10px 0 0; }
.model .hint, .diagnosis .hint { margin-top: 8px; }
.diagnosis { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 18px; align-items: start; }
.diagnosis img { width: 100%; height: auto; background: #FFFFFF; border: 1px solid var(--rule); }
.diagnosis.pending { grid-template-columns: 1fr; }
.diagnosis.pending .hint { display: none; }

/* ================================================================ narrow screens */
@media (max-width: 1100px) {
  .months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile { min-height: 112px; box-shadow: inset -1px 0 var(--rule), inset 0 -1px var(--rule); }
}
@media (max-width: 900px) {
  .admin .shell { grid-template-columns: 1fr; background: none; }
  .rail { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 16px; }
  .rail .tabs { order: 3; width: 100%; display: flex; overflow-x: auto; gap: 2px; }
  .rail .tabs button { flex: none; padding: 6px 10px; }
  .rail-foot { margin: 0 0 0 auto; padding: 0; border: 0; display: flex; align-items: center; gap: 16px; }
  .rail .themes { margin: 0; }
  .admin main { padding: 20px 16px 40px; }
  .diagnosis { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .band { padding: 12px 16px; flex-wrap: wrap; }
  .account main { padding: 22px 16px 40px; }
  .months { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .day { min-height: 46px; padding: 4px 4px 12px; }
  .day .count { display: none; }
  .day .area { font-size: 11px; }
  .toolbar > label, .fields:not(.stack) > label { flex: 1 1 140px; }
  .toolbar > .actions { width: 100%; margin-left: 0; }
  dialog { padding: 18px 16px; }
}

/* ================================================================ the sign-in picture (hero.js), from proposal D */
.hl { display: inline-grid; gap: 3px; }
.hl-dots { display: flex; gap: 4px; }
.hl-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.hl-ticks { position: relative; height: 15px; font-size: 11px; color: var(--muted); }
.hl-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.hl-ticks span:first-child { transform: none; }
.hl-ticks span:last-child { transform: translateX(-70%); }
.si { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); min-height: 580px; }
.si-form { background: var(--panel); padding: 56px 48px; display: grid; align-content: center; gap: 18px; }
.si-form form { display: grid; gap: 8px; max-width: 380px; }
.si-form label { font-size: 13px; color: var(--muted); margin-top: 6px; }
.si-links { display: grid; gap: 8px; font-size: 13px; }
.si-intro { color: var(--muted); max-width: 40ch; }
@media (max-width: 900px) {
  .si { grid-template-columns: 1fr; }
  .si-form { padding: 32px 24px; }
}
.hero, .blueprint { --dw-line: #BFD4FF; --dw-ink: #EAF0FA; --dw-muted: #9FB3D6; --dw-rule: #2C4A80; --dw-hatch: #23407A; --dw-fill: var(--bp-fill); }
svg.plan { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.plan text { font-family: var(--font-draw); fill: var(--dw-muted); font-stretch: 80%; font-weight: 600; font-size: 10.5px; }
.plan .frame { fill: none; stroke: var(--dw-muted); stroke-width: 1; }
.plan .tick { stroke: var(--dw-muted); stroke-width: 1; }
.plan .cross { stroke: var(--dw-muted); stroke-width: .9; fill: none; opacity: .75; }
.plan text.coord { font-size: 10.5px; font-stretch: 78%; }
.plan .ctx { stroke: var(--dw-muted); stroke-width: .9; }
.plan .hatch { stroke: var(--dw-hatch); stroke-width: 1.3; }
.plan .tree { fill: none; stroke: var(--dw-muted); stroke-width: .9; }
.plan .treedot { fill: var(--dw-muted); }
.plan .kerb { fill: none; stroke: var(--dw-muted); stroke-width: .9; stroke-dasharray: 10 6; }
.plan .roof { fill: var(--dw-fill); stroke: none; }
.plan .eave { fill: none; stroke: var(--dw-line); stroke-width: 2.2; stroke-linejoin: miter; }
.plan .ridge { stroke: var(--dw-line); stroke-width: 2.2; stroke-linecap: square; }
.plan .hip { fill: none; stroke: var(--dw-line); stroke-width: 1.4; stroke-linejoin: miter; }
.plan .hip.thin { stroke-width: .8; }
.plan .slope { stroke: var(--dw-line); stroke-width: 1.1; fill: none; }
.plan .head { fill: var(--dw-line); }
.plan text.pitch { fill: var(--dw-line); font-weight: 700; font-stretch: 90%; }
.plan .dim { stroke: var(--dw-ink); stroke-width: .8; fill: none; }
.plan .dim.ext { opacity: .6; }
.plan text.dimt { fill: var(--dw-ink); font-stretch: 85%; font-weight: 600; }
.plan text.spot { fill: var(--dw-ink); font-stretch: 85%; font-weight: 600; }
.plan .spotmark { fill: var(--dw-ink); }
.plan .nfill { fill: var(--dw-line); }
.plan .nline { fill: none; stroke: var(--dw-line); stroke-width: 1.2; stroke-linejoin: round; }
.plan text.n { fill: var(--dw-line); font-size: 13px; font-weight: 700; font-stretch: 100%; }
.plan .bar-f { fill: var(--dw-line); stroke: var(--dw-line); stroke-width: 1; }
.plan .bar-o { fill: none; stroke: var(--dw-line); stroke-width: 1; }
.plan.mini .eave, .plan.mini .ridge { stroke-width: 1.3; }
.plan.mini .hip { stroke-width: .8; }
.hero .plan text { font-size: 11.5px; }
.hero .plan text.coord { font-size: 11px; }
:root { --dw-bg: var(--viewer); }  /* what a drawing's labels stand on */
.hero { --dw-bg: var(--rail); }
.plan .cover { stroke: var(--dw-line); stroke-width: .6; opacity: .42; }
.plan .gutter { fill: none; stroke: var(--dw-line); stroke-width: .9; }
.plan .pipe { fill: var(--dw-bg); stroke: var(--dw-line); stroke-width: 1; }
.plan .pno circle { fill: var(--dw-bg); stroke: var(--dw-line); stroke-width: 1.1; }
.plan .pno text { fill: var(--dw-line); font-weight: 700; font-stretch: 100%; }
.tb { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--dw-rule); border: 1.5px solid var(--dw-line); font-family: var(--font-draw); }
.tb > div { background: var(--panel); padding: 6px 10px 8px; min-width: 0; }
.tb .k { display: block; font-stretch: 78%; font-weight: 600; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.tb .v { display: block; font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; color: var(--ink); }
.tb .big .v { font-stretch: 118%; font-weight: 600; font-size: 15px; }
.tb .s2 { grid-column: span 2; }
.tb .all { grid-column: 1 / -1; }
.tb code { font-family: var(--font-mono); font-size: 12px; font-stretch: 100%; }
@media (max-width: 760px) {
  .tb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.si { grid-template-columns: minmax(0, 1.62fr) minmax(320px, 1fr); min-height: 680px; }
.hero { position: relative; background: var(--rail); min-height: 680px; overflow: hidden; color: var(--rail-ink); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .brand { position: absolute; top: 22px; left: 24px; z-index: 2; }
.hero-ctl { position: absolute; top: 18px; right: 20px; z-index: 2; display: flex; align-items: center; gap: 10px; font-size: 12px;
  background: rgb(6 22 51 / .78); border: 1px solid #2C4A80; border-radius: 10px; padding: 6px 12px 6px 6px; }
.hero-ctl button { min-height: 32px; min-width: 92px; padding: 4px 12px; border-radius: 7px; border: 1px solid #5A7DB8; background: #004AB0; color: #fff; cursor: pointer; font-size: 12.5px; font-weight: 700; }
.hero-ctl button:hover { background: #1A5FC7; }
.hero-ctl input[type="range"] { width: 150px; accent-color: #8FB5FF; margin: 0; }
.hero-ctl span { color: #C9D6EE; }
.hero-cap { position: absolute; z-index: 2; right: 20px; width: 252px; top: 156px; display: grid; gap: 8px; font-size: 12px; color: var(--rail-ink); }
.hero-cap b { color: #fff; }
.hero-cap .hl-ticks { color: var(--rail-ink); }
.hero-tb { position: absolute; z-index: 2; right: 20px; bottom: 20px; width: 252px; }
.hero-tb .tb > div { background: rgb(6 22 51 / .86); }
.hero-tb .tb .k { color: #9FB3D6; }
.hero-tb .tb .v { color: #EAF0FA; font-size: 12.5px; }
.hero-tb .tb .big .v { font-size: 14px; }
@media (max-width: 900px) {
  .si { grid-template-columns: 1fr; }
  .hero { min-height: 620px; }
}
@media (max-width: 640px) {
  .hero { min-height: 560px; }
  .hero-ctl { top: 68px; left: 16px; right: 16px; justify-content: space-between; }
  .hero-ctl input[type="range"] { flex: 1; width: auto; }
  .hero-tb { display: none; }
  .hero-cap { left: 16px; right: 16px; width: auto; top: auto; bottom: 16px; }
}
.hero-ctl { border-color: #2C4A80; }
.hero-ctl button { font-family: var(--font-draw); font-stretch: 94%; font-weight: 600; border-color: #004AB0; }
.hero-ctl button { background-color: transparent; border-color: #8FB5FF; }
.hero-ctl button:hover { background-color: rgb(143 181 255 / .14); }
.plan .target { stroke: var(--target); stroke-width: 2.5; stroke-linecap: round; fill: none; }
.si > .hero { grid-column: 1; grid-row: 1; }
.si > .si-form { grid-column: 2; grid-row: 1; }
@media (max-width: 900px) {
  .si > .hero, .si > .si-form { grid-column: auto; grid-row: auto; }
  .hero { min-height: 520px; }
}
.hero { container: hero / inline-size; }
@container hero (width < 640px) {
  .hero-ctl { top: 68px; left: 16px; right: 16px; justify-content: space-between; }
  .hero-ctl input[type="range"] { flex: 1; width: auto; }
  .hero-tb { display: none; }
  .hero-cap { left: 16px; right: 16px; width: auto; top: auto; bottom: 16px; }
}
@container hero (width >= 640px) {
  .hero-ctl { top: 18px; left: auto; right: 20px; justify-content: flex-start; }
  .hero-ctl input[type="range"] { flex: none; width: 150px; }
  .hero-tb { display: block; }
  .hero-cap { left: auto; right: 20px; width: 252px; top: 156px; bottom: auto; }
}
@container hero (width < 640px) {
  .hero-ctl { gap: 10px; }
  .hero-ctl input[type="range"] { min-width: 0; width: 0; flex: 1 1 auto; }
}
.plan text.coord { font-variant-numeric: tabular-nums; }

/* the picture stays the same rail blue in both themes; the form beside it follows the theme */
.si { min-height: 100vh; }
.si-form { align-content: center; }
.hero { min-height: 100vh; }
@media (max-width: 900px) { .si { min-height: 0; } .hero { min-height: 520px; } }

/* ================================================================ D's admin details: pictures, days, state, the job window */
td.thumb { width: 1%; padding: 6px 4px 6px 10px; vertical-align: middle; }
canvas.pc { display: block; width: 44px; height: 44px; background: var(--viewer); }
canvas.pc.sm { width: 34px; height: 34px; }
canvas.pc.none { background: repeating-linear-gradient(135deg, transparent 0 5px, var(--rule) 5px 6px); }
tr.day th { padding: 14px 12px 6px; background: var(--ground); border-bottom: 1px solid var(--rule); font-family: var(--font-draw);
  font-stretch: 85%; font-weight: 600; font-size: 12.5px; color: var(--muted); text-align: left; }
tbody tr.day:hover { background: none; }
.ev { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 600; }
.st { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--edge); transform: translateY(-1px); }
.st.ok { background: var(--ok); border-color: var(--ok); }
.st.bad { background: var(--bad); border-color: var(--bad); border-radius: 0; transform: translateY(-1px) rotate(45deg) scale(.85); }
.idlink { font-family: var(--font-mono); font-weight: 400; font-size: 12.5px; }
/* joined choices: the chosen one filled */
.seg { display: inline-flex; }
.seg button + button { margin-left: -1.5px; }
.seg button[aria-pressed="true"] { position: relative; z-index: 1; background: var(--cobalt); border-color: var(--cobalt); color: #FFFFFF; }
/* an on/off setting looks like a checkbox */
button.toggle { gap: 7px; }
button.toggle::before { content: ""; display: grid; place-items: center; width: 13px; height: 13px; border: 1.5px solid var(--edge);
  background: var(--panel); color: #FFFFFF; font: 700 10px/1 var(--font-ui); flex: none; }
button.toggle[aria-pressed="true"]::before { content: "\2713"; background: #004AB0; border-color: #004AB0; }
.model .buttons button.toggle[aria-pressed="true"] { background: var(--panel); border-color: var(--edge); color: var(--ink); }
.model .buttons .seg button[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #FFFFFF; }
/* the job window */
dialog.jobwin { width: min(1240px, calc(100vw - 24px)); padding: 22px 26px 24px; }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.dlg-head h2 { display: flex; align-items: center; gap: 12px; font-size: 26px; margin: 0; }
.dlg-head h2 .st { width: 11px; height: 11px; transform: none; }
.dlg-head h2 .st.bad { transform: rotate(45deg) scale(.85); }
.dlg-sub { color: var(--muted); margin: 4px 0 0 !important; font-size: 13.5px; }
.closex { min-height: 40px; width: 40px; padding: 0; }
.closex svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
#logMessage { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--bad); background: var(--bad-bg); color: var(--ink); font-weight: 600; }
#logMessage code { margin-right: 6px; color: var(--bad); }
.views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 16px; }
@media (max-width: 900px) { .views { grid-template-columns: minmax(0, 1fr); } .views .diagnosis { grid-column: auto; } }
.view { min-width: 0; display: grid; gap: 10px; align-content: start; }
.views .model { margin: 0; padding: 0; border: 0; background: none; }
.view-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 32px; }
.view-head h3 { font-size: 17px; }
.view .buttons { margin-left: 0; gap: 6px; }
.topbox { position: relative; height: min(58vh, 480px); background: var(--viewer); border: 1px solid var(--rule); }
.topbox canvas, .topbox svg.plan { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.topbox img { width: 100%; height: 100%; object-fit: contain; background: #FFFFFF; }
.topbox:not(.planmode) .planonly { display: none; }
#modelCanvas { height: min(58vh, 480px); }
.turnrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.turn .small { width: 34px; min-height: 30px; padding: 0; }
.turn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.views .diagnosis { display: grid; grid-template-columns: 1fr; gap: 8px; align-content: start; margin: 0; }
.views:has(#logModel:not([hidden])) .diagnosis { grid-column: 1 / -1; }  /* beside the view when there is no model */
.muted { color: var(--muted); }
.tag { display: inline-block; margin-left: 8px; padding: 0 6px; border: 1px solid var(--edge); font: 600 11.5px/1.5 var(--font-draw);
  font-stretch: 85%; color: var(--muted); }
.logtitle { font-size: 17px; margin: 4px 0 8px; }
.plan .pno.small text { font-size: 8.5px; }

/* ================================================================ the page's own lists and month picker (controls.js) */
select.drawn, input.drawn { display: none !important; }
.pick { justify-content: space-between; gap: 10px; width: 100%; min-height: 40px; padding: 8px 10px; border: 1.5px solid var(--edge);
  background: var(--panel); color: var(--ink); font: 400 14px/1.3 var(--font-ui); font-stretch: 100%; text-align: left; }
.pick::after { content: ""; flex: none; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); }
.pick[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.pick-month::after { width: 12px; height: 11px; border: 1.5px solid currentColor; border-top-width: 3px; transform: none; }
.pick-month[aria-expanded="true"]::after { transform: none; }
.pick-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick:disabled { border-style: dashed; color: var(--muted); }
/* in a title-block cell the drawn control is borderless, as the fields there */
.toolbar > label .pick, .fields:not(.stack) > label .pick { min-height: 30px; padding: 2px 0; border: 0; background: transparent; }
.toolbar > label .pick:focus-visible, .fields:not(.stack) > label .pick:focus-visible { outline: none; }
td .pick { width: auto; min-width: 10em; min-height: 30px; padding: 2px 8px; font-size: 13px; }
.picklist, .monthpick { position: fixed; z-index: 1000; background: var(--panel); color: var(--ink); border: 1.5px solid var(--dw-line);
  box-shadow: 0 10px 28px rgb(14 26 43 / .18); }
.picklist { max-height: min(60vh, 380px); overflow-y: auto; margin: 0; padding: 4px 0; list-style: none; font-size: 14px; }
.picklist [role="option"] { padding: 7px 16px 7px 11px; border-left: 3px solid transparent; white-space: nowrap; cursor: pointer; }
.picklist .active { background: var(--wash); }
.picklist [aria-selected="true"] { border-left-color: var(--link); color: var(--link); font-weight: 600; }
.picklist [aria-disabled="true"] { color: var(--muted); cursor: default; }
.monthpick { width: 264px; padding: 10px; display: grid; gap: 8px; }
.yearrow { display: flex; align-items: center; justify-content: space-between; }
.yearrow .year { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.yearrow button { min-width: 32px; }
.mgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.mgrid button { min-height: 34px; padding: 0; font-size: 13px; font-stretch: 100%; }
.mgrid button.now:not([aria-pressed="true"]) { border-color: var(--link); color: var(--link); }
.mgrid button[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #FFFFFF; }
.mfoot { display: flex; justify-content: flex-end; }
.mfoot button.link { font-size: 13px; }
/* readouts that filter the table */
button.card { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; width: auto; min-height: 0; padding: 11px 14px 12px; border: 0; border-radius: 0; background: none;
  color: var(--ink); font: inherit; font-stretch: 100%; text-align: left; cursor: pointer; }
button.card:hover { background: var(--wash); border: 0; }
button.card[aria-pressed="true"] { background: var(--wash); box-shadow: inset 0 3px var(--link), inset -1px 0 var(--rule), inset 0 -1px var(--rule); }
button.card:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
dialog.jobwin::backdrop { cursor: pointer; }
