/* The Clerk's Desk (admin.html): over ../style.css and learn/learn.css (night palette by prefers-color-scheme or the Day/Night button, learn/theme.js). */
/* Desk type (owner, 2026-10-24): AlephB's fonts, as on the Compromise site: Nunito (600-900) for headings, labels, menus and buttons,
   Nunito Sans (400-800) for the rest, charts and tooltips included; self-hosted in fonts/ (SIL OFL, fonts/OFL.txt). Only the five desk
   pages load admin.css, so the game, the handbook and leaderboard.html keep their 1912 type. !important beats style.css's font shorthands. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600 900; font-display: swap; src: url(fonts/nunito-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; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600 900; font-display: swap; src: url(fonts/nunito-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; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/nunito-sans-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; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/nunito-sans-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; }
body, body *:not(code, pre) { font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important; }
body :is(h1, h2, h3, .mast-title, .mast-sub, .label, .learn-menu, button, summary, th),
body :is(h1, h2, h3, .mast-title, .mast-sub, .label, .learn-menu, button, summary, th) * { font-family: "Nunito", ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important; }
.desk { max-width: 1600px; margin: 0 auto; padding: 12px 16px 32px; font-size: 17px; }
.desk .row { flex-wrap: wrap; gap: 8px 14px; margin: 10px 0; }
.desk form.row { border-bottom: 1px solid var(--rule); padding-bottom: 10px; }
#board-url { flex: 1; min-width: 240px; font-family: "Special Elite", monospace; font-size: 14px; }
#c-name { width: 220px; }
#c-penalty { width: 80px; }
.status { min-height: 1.4em; font-style: italic; margin: 6px 0; }
.status.bad { color: var(--rel); }
.label-row { margin-top: 16px; }
#seasons { overflow-x: auto; }
table.seasons, table.detail { border-collapse: collapse; width: 100%; font-size: 16px; text-align: left; margin: 4px 0 16px; }
.seasons th, .detail th { font: 700 11px "Cormorant Garamond", Georgia, serif; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding: 4px 10px 4px 0; }
.seasons td, .detail td { border-bottom: 1px solid var(--rule); padding: 5px 10px 5px 0; vertical-align: middle; }
.seasons tbody tr { cursor: pointer; }
.seasons tbody tr:hover, .seasons tr.selected { background: var(--shade); }
.seasons .acts { white-space: nowrap; }
.seasons .acts button { min-width: 40px; height: 38px; padding: 2px 4px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; vertical-align: middle; }
.seasons .acts .act-word { font-size: 10px; line-height: 1; }
.state-open { font-weight: 700; color: var(--rel); }
.state-closed { opacity: .7; }
.detail td:first-child { font-family: "Special Elite", monospace; }
.season-detail h2 { font: 700 22px/1.2 "Playfair Display", serif; margin: 20px 0 8px; border-top: 3px double var(--ink); padding-top: 10px; }
abbr { text-decoration: none; cursor: help; color: var(--rel); }
.gate-msg { min-height: 1.2em; color: var(--rel); margin: 0 0 10px; }
.shake { animation: shake .35s; }
@keyframes shake { 25% { translate: -8px 0 } 50% { translate: 8px 0 } 75% { translate: -4px 0 } }
/* QR for the projector: the code takes what the window height leaves (about 320 px go to the title, the link and
   Close, which stay in view on a 784 px tall window), 520 px at most; the dialog scrolls rather than clip its top */
.qr-dialog { max-width: min(760px, calc(100vw - 32px)); max-height: 90vh; overflow: auto; }
.qr-dialog h2 { font-size: 36px; }
.qr-code svg { display: block; width: min(calc(90vh - 320px), 520px, 100%); height: auto; margin: 0 auto; }
.qr-dialog .qr-link { font: 22px/1.3 "Special Elite", monospace; overflow-wrap: anywhere; text-align: center; }
/* phone width: a long pseudo wraps instead of widening the page; the action icons wrap under each other */
.detail td:first-child { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  table.seasons, table.detail { font-size: 15px; }
  .seasons th, .detail th, .seasons td, .detail td { padding-right: 4px; }
  .seasons th, .detail th { letter-spacing: 0; font-size: 10px; }
  .seasons .acts { white-space: normal; min-width: 92px; line-height: 44px; }
}
/* Monitoring (monitor.html): the period buttons, number columns, CSS bars in the --rel red (lighter at night) */
.days { display: inline-flex; gap: 6px; margin-left: 12px; }
.days button[aria-pressed="true"] { background: var(--shade); font-weight: 700; }
#stats { overflow-x: auto; }
.stats .num { text-align: right; font-variant-numeric: tabular-nums; }
.stats .bar-cell { width: 45%; }
.stats .bar { display: block; height: 10px; min-width: 2px; background: var(--rel); border-radius: 2px; }
@media (max-width: 600px) { .stats .bar-cell { width: 30%; } .days { margin-left: 0; } }
/* Charts (monitor.js, drawn by Plotly from figures.js): every colour a token, read at draw time. --c1..--c6 are the dataviz skill's categorical slots in its
   fixed order (blue, orange, aqua, yellow, magenta, violet), checked with its validator on --paper light (#f3ead7) and
   night (#131820): all pass; light contrast is a WARN, relieved by the legends with values and the Raw data tables. */
:root { --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100; --c5: #e87ba4; --c6: #6250d6; }
:root[data-mood="night"] { --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #9085e9; }
@media (prefers-color-scheme: dark) {
  :root:not([data-mood="day"]) { --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #9085e9; }
}
.c1 { background: var(--c1); } .c2 { background: var(--c2); } .c3 { background: var(--c3); } .c4 { background: var(--c4); } .c5 { background: var(--c5); } .c6 { background: var(--c6); }
.plot { width: 100%; margin: 4px 0 8px; }
.donut .plot { width: 180px; }
.label.sub { font-size: 11px; opacity: .8; margin-top: 6px; }
.donut-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.donut-legend { list-style: none; margin: 0; padding: 0; font-size: 16px; }
.donut-legend li > .key { width: 100%; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 3.2em; gap: 8px; align-items: baseline; }
.donut-legend i { width: 12px; height: 10px; border-radius: 2px; }
.donut-legend .num { text-align: right; font-variant-numeric: tabular-nums; }
.donuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 28px; }
/* Global's PAGES, devices and channels: three on one row from about 1000 px, stacked below */
.donuts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .donuts.three { grid-template-columns: minmax(0, 1fr); } }
/* FEATURE USE and GOOGLE ADS: two thirds and one third; monitor.js sets the class only when its box is 900 px or
   wider and draws each chart at its column's width (gap 28 px, PAIR_GAP) */
.side-pair { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0 28px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 13px "Special Elite", monospace; margin: 4px 0; }
.legend i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin-right: 5px; }
.stat-line { margin: 4px 0; font-variant-numeric: tabular-nums; }
.legend i.key-line { width: 16px; height: 3px; vertical-align: middle; }
/* Legend entries are toggles (monitor.js wireKeys): the text's look kept, a hidden series dimmed and struck through */
body button.key, body button.key * { font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important; }
button.key { background: none; color: inherit; border: 0; padding: 0; margin: 0; font: inherit; letter-spacing: 0; text-align: left; cursor: pointer; border-radius: 2px; }
button.key:focus-visible { outline: 2px solid var(--rel); outline-offset: 2px; }
button.key[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.numbers { margin: 0 0 16px; }
.numbers summary { cursor: pointer; font-size: 15px; }
.numbers .csv { display: block; margin: 6px 0; font-size: 12px; padding: 1px 8px; }
#stats > .label { margin-top: 14px; }
/* Pivot table (explore.html): filters on the left, the table on the right; stacked under 900 px; the table scrolls in its box */
.explore { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.explore aside { border: 1px solid var(--rule); border-radius: var(--r-panel); padding: 8px 10px; font-size: 16px; }
.explore fieldset { border: 0; border-top: 1px solid var(--rule); margin: 6px 0 0; padding: 6px 0 0; min-width: 0; }
.explore legend { font: 700 13px "Playfair Display", serif; letter-spacing: 1px; padding: 0; }
.explore label { display: flex; gap: 6px; align-items: baseline; line-height: 1.5; }
.explore .ord { margin-left: auto; font: 11px "Special Elite", monospace; color: var(--rel); }
.explore label { flex-wrap: wrap; }
.explore input[type="date"] { font-size: 14px; width: 140px; }
.days button { white-space: nowrap; }
#monitor .label-row { flex-wrap: wrap; gap: 6px; }
.explore details summary { cursor: pointer; }
.explore .values { max-height: 220px; overflow: auto; padding-left: 14px; font-size: 15px; }
.explore .values .n { margin-left: auto; font: 11px "Special Elite", monospace; opacity: .7; }
#pivot { overflow: auto; max-height: 75vh; border: 1px solid var(--rule); border-radius: var(--r-panel); }
#pivot table { margin: 0; }
#pivot th { position: sticky; top: 0; background: var(--paper); white-space: nowrap; }
#pivot th button { all: unset; cursor: pointer; }
#pivot th button:focus-visible { outline: 2px solid var(--rel); }
#pivot td, #pivot th { padding-left: 8px; }
#pivot tfoot td { font-weight: 700; border-top: 1px solid var(--ink); position: sticky; bottom: 0; background: var(--paper); }
@media (max-width: 900px) { .explore { grid-template-columns: minmax(0, 1fr); } }
/* Users per day breakdown and the countries' N (monitor.js): a select beside the label; one --cN line per value over
   the total in a neutral ink line; the date x series raw table scrolls in its own box */
#stats .label-row { align-items: center; margin-top: 14px; }
.pick { font: 13px "Special Elite", monospace; display: inline-flex; gap: 6px; align-items: center; }
.pick select { font: 14px "Special Elite", monospace; padding: 2px 4px; background: var(--card); color: var(--ink); border: 1px solid var(--ink); border-radius: var(--r-box); max-width: 60vw; }
.legend i.total { background: var(--ink); opacity: .5; }
.wide { overflow-x: auto; }
.wide td:first-child { white-space: nowrap; }
/* Pivot table dropdowns (explore.js msHtml, 2026-10-24): a <details class="ms"> whose <summary> is the button and whose
   panel floats under it, as wide as the side panel (so it never leaves a 390 px screen), scrolling inside */
.explore .ms { position: relative; margin: 4px 0; }
.explore .ms > summary { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 32px; padding: 4px 26px 4px 8px;
  border: 1px solid var(--ink); border-radius: var(--r-box); background: var(--card); position: relative; }
.explore .ms > summary::-webkit-details-marker { display: none; }
.explore .ms > summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border: solid var(--ink); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.explore .ms[open] > summary::after { margin-top: -1px; transform: rotate(225deg); }
.explore .ms > summary:focus-visible { outline: 2px solid var(--rel); outline-offset: 1px; }
.explore .ms-panel { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 2px); max-height: min(300px, 60vh); overflow: auto;
  background: var(--card); border: 1px solid var(--ink); border-radius: var(--r-panel); box-shadow: 0 3px 8px rgba(0, 0, 0, .22); padding: 6px 8px; font-size: 15px; }
.explore .ms-panel label { padding: 1px 0; }
.explore .ms-panel label[hidden] { display: none; }
.explore .ms-panel input:focus-visible, .explore .ms-panel button:focus-visible { outline: 2px solid var(--rel); outline-offset: 1px; }
.explore .ms-panel .n { margin-left: auto; font: 11px "Special Elite", monospace; opacity: .7; }
.explore .ms-panel button { display: block; width: 100%; text-align: left; border: 0; padding: 3px 4px; letter-spacing: 0; }
.explore .ms-panel button:hover { background: var(--shade); }
.explore .ms-search { width: 100%; box-sizing: border-box; margin-bottom: 4px; font-size: 14px; }
.explore .chip { display: inline-block; border: 1px solid var(--rule); border-radius: var(--r-box); padding: 0 6px; font-size: 14px; background: var(--paper); }
.explore .chip b { font: 11px "Special Elite", monospace; color: var(--rel); }
.explore .ms-name { font-weight: 600; }
.explore .ms-count { margin-left: auto; font: 12px "Special Elite", monospace; opacity: .75; }
.explore #filter-add .ms > summary { border-style: dashed; }
.explore .ms-hint { font-size: 13px; margin: 2px 0 0; }
/* end Pivot table dropdowns */
/* Feedback page (inbox.html): one card per message, newest first, reading width */
#inbox { max-width: 900px; margin: 0 auto; }
#inbox .label-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
#inbox .days { margin-left: 0; flex-wrap: wrap; }
.fb-note { font-size: 14px; margin: 4px 0 12px; }
.fb-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-panel); padding: 10px 14px; margin: 0 0 14px; }
.fb-head { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; font-size: 14px; }
.fb-date { font-weight: 700; }
.fb-status { border: 1px solid var(--rule); border-radius: var(--r-box); padding: 0 6px; font-size: 13px; }
.fb-status.todo { color: var(--rel); border-color: var(--rel); font-weight: 700; }
.fb-where { opacity: .8; overflow-wrap: anywhere; }
.fb-msg { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; }
.fb-meta { font-size: 13px; margin: 2px 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.fb-label { display: block; font-size: 14px; font-weight: 700; margin: 10px 0 4px; overflow-wrap: anywhere; }
.fb-draft { display: block; width: 100%; box-sizing: border-box; min-height: 9em; resize: vertical; font-size: 16px; line-height: 1.45; }
/* the rendered email (inbox.js mdHtml: inline styles; code keeps its own light chip in both editions) */
.fb-preview { background: var(--paper); border: 1px dashed var(--rule); border-radius: var(--r-box); padding: 10px 12px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.fb-preview :last-child { margin-bottom: 0 !important; }
.fb-preview:empty::before { content: "Nothing to show yet."; opacity: .6; font-style: italic; }
.fb-rewrite { display: flex; gap: 8px; margin: 8px 0; }
.fb-instr { flex: 1; min-width: 0; font-size: 15px; }
.fb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.fb-say { min-height: 1.2em; font-size: 14px; font-style: italic; margin: 6px 0 0; }
.fb-say.bad { color: var(--rel); }
.fb-sent summary { cursor: pointer; font-size: 14px; }
/* the desk's menu row: the current page in the red, bold, with a light underline (the handbook keeps learn.css's plain look) */
.learn-menu .current { color: var(--rel); font-weight: 700; text-decoration: underline 1px color-mix(in srgb, var(--rel) 45%, transparent); text-underline-offset: 4px; }
