/* Booking pages. Built on the site's own style.css (tokens, header, buttons). */
.book { padding-top: 1.5rem; padding-bottom: 3rem; max-width: 46rem; }
.book h1 { margin-top: .5rem; }
.lede-s { font-size: 1.1rem; }
.msg { padding: .75rem 1rem; border-radius: var(--radius); border: 2px solid; }
.msg.err { border-color: #b3261e; background: #fbe9e7; color: #5c0f0a; }
.msg.ok { border-color: #1e6b3a; background: #e6f4ea; color: #0f3d20; }
.msg.demo { border-color: var(--flame); background: var(--bg-2); color: var(--ink); }
/* Dark = the system's choice unless the accessibility panel's theme button
   set data-theme on <html> (style.css does the same for the tokens). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .msg.err { background: #3a1512; color: #ffd8d3; border-color: #ff8a80; }
  :root:not([data-theme="light"]) .msg.ok { background: #10301c; color: #cdeed7; border-color: #7fd49b; }
}
:root[data-theme="dark"] .msg.err { background: #3a1512; color: #ffd8d3; border-color: #ff8a80; }
:root[data-theme="dark"] .msg.ok { background: #10301c; color: #cdeed7; border-color: #7fd49b; }
.bookform label { display: block; font-weight: 600; margin-bottom: .25rem; }
.bookform small, .hint { font-weight: 400; color: var(--ink-2); }
.hint { display: block; margin-top: .25rem; font-size: .92rem; }
.bookform input:not([type=radio]):not([type=checkbox]), .bookform select, .bookform textarea {
  font: inherit; width: 100%; max-width: 28rem; padding: .55rem .65rem; border: 2px solid var(--line);
  border-radius: 8px; background: var(--bg); color: var(--ink);
}
.bookform textarea { max-width: 100%; }
.bookform.inline input { width: auto; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; margin: 0 0 1.25rem; }
legend { font-weight: 700; padding: 0 .4rem; }
.choices { list-style: none; padding: 0; margin: 0; }
.choices li + li { border-top: 1px solid var(--line); }
.choices label { display: flex; gap: .75rem; align-items: flex-start; padding: .6rem .25rem; font-weight: 400; cursor: pointer; }
.choices input { margin-top: .35rem; width: 1.2rem; height: 1.2rem; flex: none; }
.choices small { display: block; color: var(--ink-2); }
.choices .closed { color: var(--ink-2); cursor: not-allowed; }
.check label { display: flex; gap: .6rem; align-items: center; font-weight: 400; }
.check input { width: 1.2rem; height: 1.2rem; }
button.btn { font: inherit; cursor: pointer; border: 0; }
.btn-ghost { background: transparent; }
.card.done { padding: 1rem 1.25rem; margin-bottom: 1rem; }
.ref { font-size: 1.3rem; margin: 0 0 .5rem; }
.items { list-style: none; padding: 0; }
.items li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .75rem 0; border-top: 1px solid var(--line); }
.thread { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 1rem 0; background: var(--bg-2); }
.bubble { max-width: 85%; padding: .5rem .75rem; border-radius: 14px; margin: .5rem 0; white-space: pre-wrap; }
.bubble .who { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.bubble.in { margin-left: auto; background: var(--maroon); color: var(--bg); }
.bubble.in .who { color: inherit; opacity: .85; }
.bubble.out { background: var(--bg); border: 1px solid var(--line); }
.manifest { white-space: pre-wrap; font: inherit; background: var(--bg-2); padding: 1rem; border-radius: var(--radius); }
.admin-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.admin-nav form { margin: 0 0 0 auto; }
.linkish { font: inherit; background: none; border: 0; padding: 0; color: var(--maroon); text-decoration: underline; cursor: pointer; }
.linkish.danger { color: #b3261e; }
form.inline { display: inline; }
.book:has(.afeeder) { max-width: var(--wrap); }
.afeeder { margin-top: 2rem; }
.shifts { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-bottom: .5rem; }
.shifts label { font-weight: 400; }
.atable { width: 100%; }
.atable th small, .atable td small { color: var(--ink-2); }
.atable tr.detail td { background: var(--bg); padding-top: 0; }
.abook { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding: .3rem 0; border-bottom: 1px dashed var(--line); }
.st-run th { border-left: 4px solid #1e6b3a; }
.st-cancelled th { border-left: 4px solid #b3261e; }
.st-stood_down { color: var(--ink-2); }
.warn { color: #b3261e; font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .warn, :root:not([data-theme="light"]) .linkish.danger { color: #ff8a80; } }
:root[data-theme="dark"] .warn, :root[data-theme="dark"] .linkish.danger { color: #ff8a80; }
.cancelj { display: block; margin-top: .5rem; }
.cancelj input { font: inherit; padding: .2rem .4rem; }
.rota select { font: inherit; max-width: 8rem; }
.notices { list-style: none; padding: 0; }
.notices li { border-top: 1px solid var(--line); padding: .5rem 0; }
.notices pre { white-space: pre-wrap; margin: .25rem 0 0; font: inherit; color: var(--ink-2); }
.daynav { font-weight: 600; }
