/* In the Loop (Booker High): styles taken from the front-end design canvas.
   Fonts are served from this app (public/fonts), not from Google, so staff
   page views are not shared with a third party. */

@font-face { font-family: "Bebas Neue"; font-weight: 400; font-display: swap; src: url("/fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-display: swap; src: url("/fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-display: swap; src: url("/fonts/lato-latin-700-normal.woff2") format("woff2"); }

:root {
	--plum: #4C2C4E; --plum-dark: #3A2060; --plum-tint: #F3EDF4;
	--gold: #C5B358; --gold-tint: #F1E6B4;
	--rust: #8E5448; --rust-tint: #FBF3F1;
	--ink: #2B2B30; --muted: #5A5D68; --line: #DAD5DB; --line-soft: #E6DFE7;
	--field: #8A8590; --page: #F7F4F7;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Lato, system-ui, sans-serif; color: var(--ink); background: var(--page); }
/* Keep the footer at the bottom of the window on short pages. */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
body > .top, body > .foot { flex: 0 0 auto; }
a { color: var(--plum); }
a:hover { color: var(--rust); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* ---- Header ---- */
.top { background: var(--plum); }
/* Every page uses the same width (the review queue's), so edges never shift. */
.top-in { max-width: 1440px; margin: 0 auto; padding: 12px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .logo { width: 44px; height: 44px; flex: 0 0 auto; }
/* "IN THE LOOP" in gold, with the school underneath. */
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 32px; color: var(--gold); letter-spacing: 1px; }
.brand-text small { font-family: Lato, system-ui, sans-serif; font-size: 13px; color: #fff; margin-top: 3px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 14px; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); color: #fff; }
.who { color: #fff; font-size: 14px; }
.who .signout { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; padding: 10px 0; }
.who .signout:hover { color: var(--gold); }
.card.narrow { max-width: 640px; }
.actions.start { justify-content: flex-start; }

/* ---- Footer ---- */
.foot { border-top: 1px solid var(--line); background: #fff; }
.foot-in { max-width: 1440px; margin: 0 auto; padding: 16px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 13px; color: var(--muted); }

/* ---- Page ---- */
main { max-width: 1440px; margin: 0 auto; padding: 40px 32px 64px; display: flex; flex-direction: column; gap: 32px; }
.intro { display: flex; flex-direction: column; gap: 8px; }
h1 { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 56px; line-height: 1; color: var(--plum); margin: 0; }
.lead { margin: 0; font-size: 18px; max-width: 720px; line-height: 1.5; }
.cols { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.cols > form, .cols > .wide { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.cols > aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 960px) { .cols > aside { position: sticky; top: 16px; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.card.dark { background: var(--plum); border-color: var(--plum); color: #fff; gap: 14px; }
.card.dark .h2 { color: var(--gold); }
.h2 { font-family: "Bebas Neue", sans-serif; font-size: 30px; letter-spacing: .5px; color: var(--plum); margin: 0; font-weight: 400; }
.lbl { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.hint.flat, .flat { margin: 0; }
.hint.sub { display: block; margin: 2px 0 0; }
.card.tight { gap: 16px; }
.inp { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--field); border-radius: 6px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.inp:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--plum); }
textarea.inp { resize: vertical; }
.inp.short { max-width: 240px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.row > div { flex: 1 1 200px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row > .end { flex: 0 0 auto; align-self: flex-end; }

/* Chips: a radio or checkbox styled as a pill. */
.chips { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 6px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--field); border-radius: 22px; font-size: 15px; background: #fff; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip:has(input:checked) { background: var(--plum); color: #fff; border-color: var(--plum); }
.chip:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Channels: a checkbox card. */
.chans { display: flex; flex-wrap: wrap; gap: 12px; }
.chan { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 8px; flex: 1 1 280px; min-width: 0; cursor: pointer; }
.chan input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--plum); flex: none; }
.chan:has(input:checked) { border-color: var(--plum); background: var(--plum-tint); }

/* Category-specific details: only the chosen category's block shows.
   Works without JavaScript in current browsers. */
.details { display: none; }
form:has(#cat-fund:checked) .details-fund,
form:has(#cat-ath:checked) .details-ath,
form:has(#cat-vpa:checked) .details-vpa,
form:has(#cat-parent:checked) .details-parent,
form:has(#cat-acad:checked) .details-acad,
form:has(#cat-club:checked) .details-club,
form:has(#cat-other:checked) .details-other { display: flex; }
form:has(input[name="category"]:checked) .details-none { display: none; }
.details-none { display: block; }

/* When: times for the whole event, per showing, or none. */
.times-choice { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.times-choice legend { padding: 0; margin-bottom: 6px; }
form .tm-panel { display: none; }
form:has(#tm-same:checked) .tm-same,
form:has(#tm-varies:checked) .tm-varies { display: flex; }
.showing .sh-x[hidden] { display: none; }
.showings { display: flex; flex-direction: column; gap: 10px; }
.showing { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) 48px; gap: 10px; align-items: end; }
.showing label { display: block; min-width: 0; }
.showing .lbl { margin-bottom: 4px; }
.showing .sh-x { padding: 0; width: 48px; justify-content: center; font-size: 22px; }
@media (max-width: 560px) {
	.showing { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 48px; }
	.showing .sh-day { grid-column: 1 / -1; }
	.showing + .showing { border-top: 1px solid var(--line); padding-top: 10px; }
}

.btn { min-height: 48px; padding: 0 24px; border-radius: 6px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.btn1 { background: var(--plum); color: #fff; border: 2px solid var(--plum); }
.btn1:hover { background: var(--plum-dark); color: #fff; }
.btn2 { background: #fff; color: var(--plum); border: 2px solid var(--plum); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* Messages */
.alert { border: 2px solid var(--rust); border-radius: 8px; padding: 14px 16px; background: var(--rust-tint); font-size: 15px; line-height: 1.45; }
.alert strong { color: var(--rust); }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.notice { border: 2px solid var(--plum); border-radius: 8px; padding: 14px 16px; background: var(--plum-tint); font-size: 15px; }

/* "Ready for review?" checklist */
.meter-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
progress { width: 100%; height: 10px; appearance: none; border: 0; border-radius: 5px; background: var(--line-soft); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--line-soft); border-radius: 5px; }
progress::-webkit-progress-value { background: var(--plum); border-radius: 5px; }
progress::-moz-progress-bar { background: var(--plum); border-radius: 5px; }
.check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.check li { display: flex; gap: 10px; align-items: center; }
.check .mark { width: 20px; height: 20px; flex: none; }
.check .todo { width: 16px; height: 16px; margin: 0 2px; border: 2px solid var(--rust); border-radius: 50%; flex: none; }
.check .need { color: var(--rust); }
.check li[data-done="true"] .todo, .check li[data-done="true"] .need { display: none; }
.check li[data-done="false"] .mark { display: none; }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.45; }

/* Tables and badges */
.table-wrap { overflow-x: auto; }
table.q { width: 100%; border-collapse: collapse; min-width: 640px; }
table.q th { text-align: left; font-size: 13px; color: var(--muted); padding: 12px 14px; border-bottom: 2px solid var(--line); font-weight: 700; }
table.q td { padding: 14px; border-bottom: 1px solid var(--line-soft); font-size: 15px; vertical-align: top; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 13px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.b-draft { background: #fff; color: var(--ink); border: 1px dashed #838692; }
.b-submitted { background: var(--gold-tint); color: #3B2A3D; border-color: var(--gold); }
.b-needs_info, .b-rejected { background: var(--rust); color: #fff; }
.b-reviewed, .b-approved { background: var(--plum); color: #fff; }
.b-scheduled { background: #fff; color: var(--plum); border-color: var(--plum); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; background: #ECE8EE; font-size: 12px; font-weight: 700; color: #3B2A3D; margin: 0 4px 4px 0; }
.empty { text-align: center; padding: 32px; color: var(--muted); }

/* ---- Review queue ---- */
.intro-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
a.chip { text-decoration: none; color: var(--ink); }
a.chip[aria-current="page"] { background: var(--plum); color: #fff; border-color: var(--plum); }
.tiles { display: flex; flex-wrap: wrap; gap: 16px; }
.tile { flex: 1 1 160px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; color: var(--ink); text-decoration: none; }
.tile b { display: block; font-family: "Bebas Neue", sans-serif; font-size: 44px; font-weight: 400; color: var(--plum); line-height: 1; }
.tile:hover, .tile[aria-current="true"] { border-color: var(--plum); background: var(--plum-tint); color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.filters > div { flex: 0 1 200px; }
.filters > .grow { flex: 1 1 260px; }
.card.flush { padding: 8px 8px 4px; gap: 0; }
.cols > .wide { flex: 999 1 620px; min-width: 0; }
table.q tr.sel td { background: var(--plum-tint); }
table.q tr.clickable { cursor: pointer; }
table.q tr.clickable:hover td { background: #FAF7FA; }
table.q tr.clickable.sel:hover td { background: var(--plum-tint); }
a.strong { font-weight: 700; text-decoration: none; }
/* Give the details panel real width: list about 3/5, details about 2/5,
   and stack them on narrower screens. The panel scrolls with the page. */
.review-cols > .wide { flex: 3 1 560px; }
.review-cols > aside { flex: 2 1 420px; position: static; }
.review-cols .h2 { line-height: 1.1; }
.review-cols .actions { gap: 10px; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.facts { margin: 0; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 12px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.msgs { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.prewrap { white-space: pre-wrap; line-height: 1.5; }
.thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.thread li { border-radius: 8px; padding: 10px 12px; border: 1px solid var(--line, #ddd); background: #fff; }
.thread li.from-reviewer { border-left: 4px solid var(--rust); background: var(--rust-tint); }
.thread li.from-submitter { border-left: 4px solid var(--plum); background: var(--plum-tint); }
.thread-meta { font-size: 14px; margin-bottom: 4px; }
.thread p { font-size: 15px; }
.answer-card { border-color: var(--rust); }
.field-error { color: var(--rust); font-weight: 700; font-size: 14px; }
.convo { margin-top: 8px; max-width: 520px; }
.convo summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--plum); }
.convo .thread { margin-top: 8px; }
.answer-link { margin-top: 6px; }
.code-once { display: inline-block; font-size: 20px; font-weight: 700; letter-spacing: 1px; padding: 2px 8px; background: #fff; border: 1px solid var(--plum); border-radius: 4px; user-select: all; }
/* Staff code box with an eye inside it (press and hold to peek) */
.reveal-box { position: relative; }
.reveal-box .inp { width: 100%; padding-right: 48px; }
.reveal-box .inp::-ms-reveal { display: none; } /* use our eye, not Edge's */
.reveal-eye { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.reveal-eye[hidden] { display: none; }
.reveal-eye:hover { color: var(--plum); background: var(--plum-tint); }
.reveal-eye.on { color: #fff; background: var(--plum); }
.show-code summary { cursor: pointer; font-weight: 700; color: var(--plum); }
.show-code code { margin-top: 8px; }
.tag.answered { margin-top: 4px; border-color: var(--plum); color: var(--plum); font-weight: 700; }
.reviewer-note { color: var(--rust); max-width: 420px; }
.btn-quiet { background: #fff; color: var(--rust); border: 2px solid var(--rust); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.k { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 13px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.k-vpa { background: #4C2C4E; color: #fff; }
.k-ath { background: #8E5448; color: #fff; }
.k-fund { background: #F1E6B4; color: #3B2A3D; border-color: #C5B358; }
.k-parent { background: #D3E5F0; color: #173B52; border-color: #4F7FA0; }
.k-acad { background: #D8EBDD; color: #1E4A2B; border-color: #4D8A5E; }
.k-club { background: #DDD0E2; color: #3B2A3D; border-color: #4C2C4E; }
.k-other { background: #fff; color: #2B2B30; border: 1px dashed #838692; }

/* ---- Flyers ---- */
.flyer-box { border: 2px dashed var(--field); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.flyer-head { display: flex; align-items: center; gap: 12px; }
.file-input { font: inherit; font-size: 15px; max-width: 100%; }
.file-input::file-selector-button { font: inherit; font-weight: 700; min-height: 44px; padding: 0 18px; margin-right: 12px; border-radius: 6px; border: 2px solid var(--plum); background: #fff; color: var(--plum); cursor: pointer; }
.flyer-current { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 15px; }
.flyer-preview { display: flex; flex-direction: column; gap: 8px; }
.flyer-links { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; font-size: 15px; }
.flyer-links a { font-weight: 700; }
.flyer-thumb { display: block; max-width: 100%; max-height: 320px; border: 1px solid var(--line); border-radius: 6px; background: var(--page); }

/* ---- Calendar ---- */
.month-nav { display: flex; align-items: center; gap: 8px; }
.btn.icon { padding: 0 16px; justify-content: center; }
.month-name { font-family: "Bebas Neue", sans-serif; font-size: 32px; font-weight: 400; color: var(--plum); letter-spacing: .5px; min-width: 190px; text-align: center; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.lbl.flat { margin: 0; }
a.cat-chip { border-width: 1px; }
a.cat-chip[aria-current="page"] { outline: 3px solid var(--gold); outline-offset: 2px; }
a.chip.k-vpa, a.chip.k-ath { color: #fff; }
.cal-cols > .wide { flex: 3 1 640px; }
.cal-cols > aside { flex: 1 1 300px; position: static; }
.cal-card { padding: 0; overflow: hidden; }
.cal-grid { min-width: 700px; }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dow { padding: 10px 8px; font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 2px solid var(--line); }
/* Month weeks: the numbers, then the multi-day bars, then each day's own events.
   Day lines are drawn as a background so bars can cross them. */
.cal-week { align-content: start; min-height: 112px; border-bottom: 1px solid var(--line-soft);
	background: repeating-linear-gradient(to right, transparent 0 calc(100% / 7 - 1px), var(--line-soft) calc(100% / 7 - 1px) calc(100% / 7)); }
.cal-week .n { justify-self: start; margin: 8px 8px 4px; font-size: 14px; font-weight: 700; color: var(--ink); }
.cal-week .n.mute { color: var(--muted); font-weight: 400; }
.cal-week .n.today { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 4px 4px 2px; border-radius: 14px; background: var(--plum); color: #fff; }
.gc-1 { grid-column-start: 1; } .gc-2 { grid-column-start: 2; } .gc-3 { grid-column-start: 3; } .gc-4 { grid-column-start: 4; } .gc-5 { grid-column-start: 5; } .gc-6 { grid-column-start: 6; } .gc-7 { grid-column-start: 7; } 
.gs-1 { grid-column-end: span 1; } .gs-2 { grid-column-end: span 2; } .gs-3 { grid-column-end: span 3; } .gs-4 { grid-column-end: span 4; } .gs-5 { grid-column-end: span 5; } .gs-6 { grid-column-end: span 6; } .gs-7 { grid-column-end: span 7; } 
.gr-1 { grid-row-start: 1; } .gr-2 { grid-row-start: 2; } .gr-3 { grid-row-start: 3; } .gr-4 { grid-row-start: 4; } .gr-5 { grid-row-start: 5; } .gr-6 { grid-row-start: 6; } .gr-7 { grid-row-start: 7; } .gr-8 { grid-row-start: 8; } .gr-9 { grid-row-start: 9; } .gr-10 { grid-row-start: 10; } .gr-11 { grid-row-start: 11; } .gr-12 { grid-row-start: 12; } .gr-13 { grid-row-start: 13; } .gr-14 { grid-row-start: 14; } .gr-15 { grid-row-start: 15; } .gr-16 { grid-row-start: 16; } 
.cell-evs { display: flex; flex-direction: column; gap: 4px; padding: 2px 8px 8px; min-width: 0; }
.ev { display: block; font-size: 12px; font-weight: 700; line-height: 1.25; padding: 4px 6px; border-radius: 4px; text-decoration: none; overflow-wrap: anywhere; }
.ev:hover { filter: brightness(1.08); text-decoration: underline; }
.ev.k-vpa, .ev.k-ath { color: #fff; }
.ev.k-vpa:hover, .ev.k-ath:hover { color: #fff; }
.ev.pending { outline: 2px dashed var(--muted); outline-offset: -2px; }
.ev[aria-current="true"] { box-shadow: 0 0 0 3px var(--gold); }
.evt { display: block; font-weight: 400; }
.evc { display: block; font-size: 11px; font-weight: 400; margin-top: 2px; }
.evd { display: block; font-size: 11px; font-weight: 400; opacity: .85; }
.showing-list { margin: 4px 0 0; padding-left: 18px; }
.cal-key { margin: 0; padding: 10px 14px; }
.upcoming { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.upcoming li { padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; }
.upcoming li:last-child { border-bottom: 0; padding-bottom: 0; }
.up-date { font-size: 13px; font-weight: 700; color: var(--muted); }
.need-text { color: var(--rust); }

/* ---- Print list ---- */
.summary { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; font-size: 15px; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.post { border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.post.soft { background: var(--page); }
.post p { margin: 0; font-size: 16px; line-height: 1.5; white-space: pre-wrap; }
.when { font-size: 13px; font-weight: 700; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.narrow-col { max-width: 520px; }
.weblist { border: 1px solid var(--line); border-radius: 8px; }
.webrow { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 16px; border-bottom: 1px solid var(--line-soft); }
.webrow:last-child { border-bottom: 0; }
.webrow > div:last-child { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.webdate { flex: 0 0 90px; font-weight: 700; color: var(--plum); }
.webdesc { font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.script { margin: 0; font-size: 18px; line-height: 1.7; max-width: 760px; background: var(--page); border-radius: 8px; padding: 24px; }
.email-body { max-width: 680px; display: flex; flex-direction: column; gap: 18px; line-height: 1.6; }
.email-h { font-weight: 700; color: var(--plum); font-size: 18px; }
.email-body ul { margin: 8px 0 0; padding-left: 22px; }
/* ---- Marquee image maker ---- */
.mq-maker { display: flex; flex-direction: column; gap: 14px; }
.mq-stage { display: flex; flex-direction: column; gap: 6px; }
.mq-canvas { display: block; width: 100%; height: auto; aspect-ratio: 3453 / 1392; border-radius: 6px; background: #15121A; box-shadow: 0 0 0 1px var(--line); }
.mq-status:empty { display: none; }
/* No page zooming, text selection, long-press menu or tap highlight on the
   preview, so touches only move and resize the text and photo. */
.mq-drag { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.mq-frame { -webkit-user-select: none; user-select: none; }
.mq-drag.dragging { cursor: grabbing; }
.mq-drag:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.mq-frame { position: relative; }
.mq-sel { position: absolute; pointer-events: none; border: 2px dashed rgba(255, 255, 255, 0.9); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35); border-radius: 4px; visibility: hidden; }
.mq-frame:hover .mq-sel, .mq-drag:focus-visible + .mq-sel, .mq-drag.dragging + .mq-sel { visibility: visible; }
.mq-help { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.mq-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 24px; }
.mq-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
/* Size and Position sit at the bottom of each column, so they line up side by side. */
.mq-col > .mq-size { margin-top: auto; }
.mq-col .lbl, .mq-swatch .lbl { margin-bottom: 0; }
.mq-title.caps { text-transform: uppercase; }
.lbl .hint { font-weight: 400; margin-left: 6px; }
.mq-size { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.mq-size output { color: var(--ink); font-weight: 700; }
.mq-size .mq-range { width: 100%; min-height: 36px; }
.mq-place { display: flex; align-items: center; gap: 10px; }
.mq-spots { display: grid; grid-template-columns: repeat(3, 36px); grid-template-rows: repeat(3, 26px); gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--plum-tint); }
.mq-spot { display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; padding: 0; }
.mq-spot span { width: 12px; height: 5px; border-radius: 2px; background: var(--line); }
.mq-spot:hover span { background: var(--muted); }
.mq-spot[aria-pressed="true"] { border-color: var(--plum); }
.mq-spot[aria-pressed="true"] span { background: var(--plum); }
.mq-spot:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.mq-style { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; }
.mq-style .chips { margin: 0; }
.mq-swatch { display: flex; flex-direction: column; gap: 6px; }
.inp.color { width: 88px; height: 48px; padding: 4px; cursor: pointer; }
.mq-maker[data-bg="color"] .mq-photo { display: none; }
.mq-maker[data-mode="upload"] .mq-design-only,
.mq-maker[data-mode="upload"] .mq-style,
.mq-maker[data-mode="upload"] .mq-photo { display: none; }
.mq-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; }
.mq-bottom > .mq-actions { margin-left: auto; }
.mq-maker:not([data-mode="upload"]) .mq-upload { display: none; }
.mq-upload, .mq-design-only { display: flex; flex-direction: column; gap: 14px; }
.mq-upload { gap: 6px; }
.mq-upload-check { font-size: 14px; font-weight: 700; }
.mq-upload-check.ok { color: #2E6B3A; }
.mq-upload-check.bad { color: var(--rust); }
.mq-photo-fit { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.mq-photo-fit output { font-weight: 400; color: var(--muted); margin-left: 6px; }
.mq-photo-fit .actions { margin: 0; }
.mq-range { width: 100%; min-height: 44px; accent-color: var(--plum); }
.mq-photo { display: flex; flex-direction: column; gap: 6px; }
.mq-photo-opts { display: flex; flex-wrap: wrap; gap: 0 20px; }
.mq-actions { margin: 0; }
.mq-dialog { width: min(1400px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 0; border: 0; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); }
.mq-dialog::backdrop { background: rgba(20, 14, 24, 0.6); }
.mq-dialog-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; background: #fff; z-index: 2; }
.mq-dialog-head .h2 { margin: 0; }
.mq-dialog-actions { margin: 0; }
.mq-dialog form { padding: 16px 20px 20px; }
.mq-maker:has(> .mq-side) { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 20px 28px; align-items: start; }
/* --mq-head is the pop-up header's height (set by marquee.js), so the
   preview stops just below it. */
.mq-side { position: sticky; top: calc(var(--mq-head, 76px) + 16px); display: flex; flex-direction: column; gap: 12px; }
.mq-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 860px) {
	.mq-maker:has(> .mq-side) { grid-template-columns: minmax(0, 1fr); }
	.mq-side { top: var(--mq-head, 64px); background: #fff; z-index: 1; padding: 8px 0; box-shadow: 0 8px 8px -8px rgba(0, 0, 0, 0.25); }
	/* On phones, the preview stays at the top of the screen while the
	   controls below it scroll, so changes are always in view. */
	.mq-dialog-head { padding: 10px 14px; gap: 6px 12px; }
	.mq-dialog-head .h2 { font-size: 22px; }
	.mq-dialog-actions { flex-wrap: nowrap; gap: 8px; }
	.mq-long { display: none; }
	.mq-maker:has(.mq-drag):not(:has(> .mq-side)) > .mq-stage { position: sticky; top: 0; z-index: 3; background: #fff; padding: 8px 0; box-shadow: 0 8px 8px -8px rgba(0, 0, 0, 0.25); }
}
.mq-controls { border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; }
.mq-controls > summary { cursor: pointer; font-weight: 700; color: var(--plum); min-height: 44px; display: flex; align-items: center; }
.mq-controls[open] > summary { border-bottom: 1px solid var(--line-soft); margin-bottom: 14px; }
.mq-controls > summary::before, .mq-details > summary::before { content: "\25B8"; display: inline-block; width: 1.2em; }
.mq-controls[open] > summary::before, .mq-details[open] > summary::before { content: "\25BE"; }
.mq-controls > summary::-webkit-details-marker, .mq-details > summary::-webkit-details-marker { display: none; }
.mq-controls-body { display: flex; flex-direction: column; gap: 14px; padding-bottom: 14px; }
.mq-item { display: flex; flex-direction: column; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.mq-item:last-child { border-bottom: 0; }
.mq-item-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.mq-print-preview { max-width: 760px; }
@media print { .mq-actions, .mq-status, .mq-dialog { display: none !important; } .mq-canvas { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }
.mq-details > summary { cursor: pointer; font-weight: 700; color: var(--plum); min-height: 44px; display: flex; align-items: center; }
.mq-details[open] > summary { margin-bottom: 12px; }
ul.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.print-only { display: none; }

@media print {
	body { background: #fff; }
	.top, .skip, .no-print, .notice, .alert { display: none !important; }
	main { padding: 0; gap: 16px; max-width: none; }
	.print-only { display: block; }
	.card { border: 0; padding: 0; }
	.post, .weblist, .webrow { break-inside: avoid; }
	a { color: inherit; text-decoration: none; }
}

/* ---- Staff page ---- */
.staff-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.staff-row:last-child { border-bottom: 0; }
.staff-row .who-col { flex: 1 1 220px; min-width: 0; }
.staff-row .cats { flex: 2 1 320px; }
.staff-row .chip { min-height: 36px; font-size: 14px; padding: 0 12px; }
.inline-check { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.inline-check input { width: 20px; height: 20px; accent-color: var(--plum); }

@media (max-width: 600px) {
	.top-in, main { padding-left: 16px; padding-right: 16px; }
	h1 { font-size: 44px; }
	.card { padding: 20px; }
}

/* ---- Feedback button and pop-up ---- */
.fb-btn { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 22px; background: var(--plum); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.fb-btn:hover, .fb-btn:focus-visible { background: var(--plum-dark); color: #fff; }
.fb-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: 12px; padding: 24px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.fb-dialog::backdrop { background: rgba(30, 20, 32, .5); }
.fb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.fb-x { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.fb-thanks { display: flex; flex-direction: column; gap: 16px; }
.fb-thanks[hidden], [data-feedback-body][hidden] { display: none; }
.fb-dialog .chips legend { margin-bottom: 6px; }
.fb-shot img { max-width: 100%; max-height: 320px; border: 1px solid var(--line); border-radius: 6px; }
.fb-new { background: var(--rust-tint); color: var(--rust); border-color: var(--rust); }
.fb-in_progress { background: var(--gold-tint); color: #3B2A3D; border-color: var(--gold); }
.fb-done { background: var(--plum-tint); color: var(--plum); border-color: var(--plum); }
.fb-item form.row { align-items: flex-end; }
.fb-item form.row > div { flex: 0 1 220px; }
@media print { .fb-btn, .fb-dialog { display: none !important; } }

/* ---- Public calendar opt-in ---- */
.public-opt { margin-top: 12px; flex-basis: 100%; }
.public-box { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; border: 1px dashed var(--line); border-radius: 8px; padding: 12px 14px; }
.public-box.on { border: 2px solid var(--plum); background: var(--plum-tint); }

/* ---- Cancelled, postponed and withdrawn (v0.13) ---- */
.b-withdrawn { background: #ECE8EE; color: var(--muted); }
.b-cancelled { background: #A3322A; color: #fff; }
.b-postponed, .b-rescheduled { background: var(--gold-tint); color: #5C4A00; border-color: var(--gold); }
.change-note { color: var(--rust); font-weight: 700; }
.change-box { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.change-box strong { color: var(--ink); }
.change-link { border-top: 1px solid var(--line-soft); padding-top: 14px; }
.small-link { font-size: 14px; font-weight: 700; }
.ev .evx { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ev.cancelled { opacity: .8; }
.ev.cancelled .evn { text-decoration: line-through; }
.ev.moved { background: #fff; color: var(--muted); border: 1px dashed var(--muted); font-weight: 400; }
.choice-row { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--line); border-radius: 8px; padding: 12px 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--plum); background: var(--plum-tint); }
.choice input { margin-top: 4px; accent-color: var(--plum); }
.choice small { display: block; color: var(--muted); font-size: 13px; }
.row3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.change-form:has(#ch-cancel:checked) .postpone-only { display: none; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }
.notices { border: 2px solid #A3322A; }
.notice-card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.notice-card.urgent { border: 2px solid #A3322A; background: var(--rust-tint); }
.notice-head { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.notice-head .when { color: var(--muted); font-size: 14px; }
.urgent-text strong { color: #A3322A; }
.notice-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.notice-list li { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.notice-list li.done { opacity: .75; }
.notice-ch { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.notice-ch .hint { margin: 0; }
.notice-list .actions form { margin: 0; }
.notice-skip { margin: 0; }

/* A multi-day event: one bar across its days. */
.ev.bar { align-self: start; margin: 2px 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.ev.bar .evx, .ev.bar .evt, .ev.bar .evc { display: inline; }
.ev.bar .evx { margin-right: 6px; }
.ev.bar .evc { margin-left: 8px; font-size: 11px; font-weight: 400; }
.ev.bar.from-before { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.ev.bar.to-after { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }

/* Events whose day has passed: greyed out. */
.ev.past { filter: grayscale(1); opacity: .5; }
.ev.past:hover { opacity: .8; }

/* "Still being tested" bar under the header (TESTING_NOTICE in src/brand.ts). */
.testing-notice { background: #F1E6B4; color: #3B2A3D; border-bottom: 2px solid #C5B358; padding: 10px 16px; text-align: center; font-size: 15px; }
