/* AWE — lean house style. Alpine palette: deep blue header on snow-white. */

:root {
  --ink: #1d2733;
  --deep: #0A162E;
  --deep-soft: #075169;
  --paper: #f5f7fa;
  --line: #d7dee8;
  --accent: #c47f17;
  --danger: #a4262c;
  --muted: #5a6a7a;
  --btn: #ECBC09;
  --btn-hover: #d1a600;
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-family: var(--font-stack);
  color: var(--ink);
  background: var(--paper);
}

/* header + nav */
.sitehead {
  background: var(--deep);
  color: #fff;
  padding: .7rem 1rem;
  display: flex;
  align-items: baseline;
  gap: .8rem;
}
.sitehead .logo {
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 0;
}
.sitehead .logo img { height: 34px; width: auto; }
.sitehead .fest { color: #cfd9e6; font-size: .95rem; }

.sitenav { background: var(--deep-soft); }
.navinner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem;
  padding: 0 .5rem;
}
.sitenav a {
  color: #fff;
  text-decoration: none;
  padding: .45rem .6rem;
  display: inline-block;
}
.sitenav a:hover { background: var(--deep); }
.sitenav .navright { margin-left: auto; }
.sitenav .badge {
  background: var(--danger);
  color: #fff;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1;
  padding: .15rem .4rem;
  margin-left: .3rem;
}
.nav-install {
  background: var(--btn);
  border: 0;
  color: var(--ink);
  padding: .35rem .7rem;
  border-radius: 4px;
  margin: .25rem .3rem;
  cursor: pointer;
}

.install-hint {
  background: #fff8e6;
  border-bottom: 1px solid #e8d9a0;
  padding: .6rem 1rem;
  font-size: .95rem;
}

/* layout */
main { max-width: 46rem; margin: 0 auto; padding: 1rem; }
h1 { font-size: 1.5rem; margin: .5rem 0 .8rem; }
h2 { font-size: 1.15rem; margin: 1.2rem 0 .5rem; }

.flash {
  max-width: 46rem;
  margin: .8rem auto 0;
  padding: .1rem 1rem;
  background: #eaf3ea;
  border: 1px solid #b8d8b8;
  border-radius: 4px;
}
.flash p { margin: .5rem 0; }
.flash.flash-warn { background: #fdecea; border-color: #e6a5a1; }
.flash.flash-warn p { color: #8a2b23; font-weight: 600; }

.muted { color: var(--muted); }
.warn { color: var(--danger); }

/* forms */
form.stack { display: flex; flex-direction: column; gap: .8rem; max-width: 24rem; }
form.stack label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; }
form.stack label .muted { font-weight: 400; }
input, select, textarea {
  font: inherit;
  padding: .45rem .55rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--deep-soft);
  outline-offset: 0;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
legend { font-size: .9rem; color: var(--muted); padding: 0 .3rem; }

button, .btn {
  font: inherit;
  background: var(--btn);
  color: var(--ink);
  border: 0;
  border-radius: 4px;
  padding: .5rem .9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  align-self: flex-start;
}
button:hover, .btn:hover { background: var(--btn-hover); }
button:disabled { opacity: .55; cursor: default; }
button.danger { background: var(--danger); color: #fff; padding: .25rem .6rem; font-size: .9rem; }

.toolbar { margin: 1rem 0; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.worksearch { position: relative; display: inline-block; }
.worksearch input { width: 20rem; max-width: 60vw; }

/* breadcrumb "back" button, used at the top of sub-pages */
.btn-back {
  font-size: .85rem;
  padding: .35rem .7rem;
  margin-bottom: .8rem;
}

/* page header: back button + title (+ optional stat) on one line */
.pagehead {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: .8rem;
}
.pagehead .btn-back { margin-bottom: 0; }
.pagehead h1 { margin: 0; }

/* admin dashboard: every action button the same width */
.admin-index .btn { min-width: 7.5rem; text-align: center; }

/* tenancy logo panel (logos are usually white-on-transparent: dark backdrop) */
.logopanel img {
  background: var(--deep);
  border-radius: 6px;
  padding: .6rem 1rem;
  max-width: 100%;
  max-height: 110px;
  display: block;
  margin-bottom: .8rem;
}
.logopanel .nologo-msg { display: none; }
.logopanel.nologo img { display: none; }
.logopanel.nologo .nologo-msg { display: block; }

/* tables */
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); }
th { background: var(--paper); font-size: .9rem; }
td form { margin: 0; }

form.stack label.check, label.check {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: .5rem;
  align-items: center;
  font-weight: 400;
}
label.check input[type="checkbox"] { width: auto; margin: 0; flex: none; }
/* checkbox people-picker (event duties, work artists) — replaces the fiddly
   native <select multiple>, which needs Cmd/Ctrl-click and confuses everyone */
fieldset.pickpeople {
  border: 1px solid var(--line); border-radius: 6px;
  padding: .5rem .8rem .7rem; margin: 0 0 .6rem; min-width: 0;
}
fieldset.pickpeople legend { padding: 0 .3rem; font-weight: 600; font-size: .85rem; }
.pickpeople-grid { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; }
form.row { display: flex; gap: .4rem; align-items: center; }
form.row input { max-width: 11rem; }
form.checkbar {
  display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center;
  margin: 1rem 0;
}
tr.inactive td { color: var(--muted); }
tr.inactive td a { color: var(--muted); }
tr.venueconflict td { background: #fdf3c4; }

/* event type pills */
.pill {
  display: inline-block;
  font-size: .75rem;
  padding: .1rem .5rem;
  border-radius: 999px;
  vertical-align: middle;
  color: #fff;
  background: var(--muted);
}
.pill.concert { background: var(--accent); }
.pill.rehearsal { background: var(--deep-soft); }
.pill.public { background: #3f7d5a; }
.pill.other { background: #6a4c93; }

/* single-letter event-type badge, fixed width so a column of them lines up */
.typebadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  vertical-align: middle;
  margin-right: .4rem;
  flex: none;
}
.typebadge.concert { background: var(--accent); }
.typebadge.rehearsal { background: var(--deep-soft); }
.typebadge.public { background: #3f7d5a; }
.typebadge.other { background: #6a4c93; }
.typebadge.travel { background: var(--muted); }

/* event admin page: compact form rows + collapsible sections */
form.stack.eventform { max-width: 42rem; }
.formrow { display: flex; gap: 1rem; flex-wrap: wrap; }
.formrow label { flex: 1 1 8rem; }
h2.tight { margin: 1.4rem 0 .4rem; }
h2.tight.inline { display: inline; margin: 0; }
h2 .hint, p.hint { color: var(--muted); font-weight: 400; font-size: .85rem; }
p.hint { margin: 0 0 .5rem; }
.toolbar { display: flex; flex-wrap: wrap; margin-top: .5rem; gap: .8rem 1.2rem; }
table.compact { margin-bottom: .5rem; }
table.compact th, table.compact td { padding: .3rem .5rem; }
td.heavy { background: #fdf3c4; font-weight: 600; }
.swatch { display: inline-block; width: .9rem; height: .9rem; border-radius: 3px;
          border: 1px solid var(--line); vertical-align: -1px; margin-right: .1rem; }
.swatch.heavy { background: #fdf3c4; }
.sticky-col {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  box-shadow: 2px 0 3px -1px rgba(0, 0, 0, .15);
}
thead .sticky-col { z-index: 2; }

details.attsection, details.dangerzone { margin-top: 1.4rem; }
details.attsection summary, details.dangerzone summary {
  cursor: pointer;
  list-style: none;
}
details.attsection summary::-webkit-details-marker,
details.dangerzone summary::-webkit-details-marker { display: none; }
details.attsection summary::before, details.dangerzone summary::before {
  content: '▸ ';
  color: var(--muted);
  font-size: .8em;
}
details.attsection[open] summary::before, details.dangerzone[open] summary::before {
  content: '▾ ';
}
details.dangerzone form { margin-top: .6rem; }

/* ideas & bugs */
.todolist { display: flex; flex-direction: column; gap: .5rem; margin: .6rem 0 1.5rem; }
.todoitem {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .6rem .8rem;
  max-width: 42rem;
}
.todoitem.done { opacity: .6; }
.todoitem.done .todobody { text-decoration: line-through; }
.todohead { display: flex; align-items: center; gap: .5rem; justify-content: space-between; }
.todobody { margin: .4rem 0; white-space: pre-wrap; }
.todobtns { display: flex; align-items: center; gap: .4rem; margin-top: .5rem; }
.todobtns form { margin: 0; display: flex; }
.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem; padding: 0;
  border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: var(--muted); cursor: pointer;
}
.iconbtn:hover { background: var(--paper); color: var(--ink); }
.iconbtn.on { background: var(--paper); color: var(--ink); border-color: var(--deep-soft); }
/* .iconbtn-danger, not .danger: avoid inheriting the global button.danger fill */
.iconbtn.iconbtn-danger { background: #fff; color: var(--muted); }
.iconbtn.iconbtn-danger:hover { background: var(--paper); color: var(--danger); border-color: var(--danger); }
.iconbtn .ico { width: 1.05rem; height: 1.05rem; display: block; }
.todoedit-form { margin-top: .6rem; }
.todoedit-form[hidden] { display: none; }   /* beats .stack's display:flex */
.linkbtn {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--deep-soft);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.linkbtn-danger { color: var(--danger); }
.kindpick { display: flex; gap: 1.2rem; }
.pill.bug { background: var(--danger); }
.pill.idea { background: var(--deep-soft); }

/* flights — who needs a lift, and when */
.flightfilter { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin: .2rem 0; }
.flightfilter .check { margin: 0; }
.flightlist { display: flex; flex-direction: column; gap: .6rem; margin: .6rem 0 1.5rem; }
.flightitem {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .6rem .8rem;
  max-width: 46rem;
}
.flighthead { display: flex; flex-wrap: wrap; gap: .4rem; align-items: baseline; }
.flightarr { margin: .3rem 0 0; font-size: .9rem; }
.flightedit-actions { display: flex; gap: .5rem; align-items: center; }
.flighthelpers { display: flex; flex-wrap: wrap; gap: .1rem 1rem; margin: .2rem 0; }
.flighthelpers legend { flex-basis: 100%; margin-bottom: .2rem; }
.formactions { display: flex; gap: .5rem; align-items: center; }
.flightbtns { display: flex; align-items: center; gap: .4rem; margin-top: .5rem; }
.flightbtns form { margin: 0; display: flex; }
form.stack.flightform { max-width: 44rem; }
.flightedit-form { margin-top: .6rem; }
.flightedit-form[hidden] { display: none; }   /* beats .stack's display:flex */

.flightsummary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .6rem .9rem;
  margin-bottom: 1rem;
}
.flightsummary ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.flightsummary li { margin-bottom: .2rem; }

/* add-travel page: people on the left, trip details on the right */
.travelform { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; max-width: 54rem; }
.travelform-people { flex: 0 0 14rem; margin: 0; }
.travelform-fields { flex: 1 1 26rem; display: flex; flex-direction: column; gap: .8rem; }
.travelform-fields label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; }
.travelform-actions { display: flex; gap: .8rem; align-items: center; }

/* programme editor — compact single-line rows, players collapsed by default */
.proglist { display: flex; flex-direction: column; gap: 3px; margin-bottom: .6rem; }
.progitem {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .3rem .3rem .3rem .6rem;
}
.progitem.break { background: var(--paper); border-style: dashed; }
.progitem[draggable="true"] { cursor: grab; }
.progitem.dragging { opacity: .45; }
.progrow { display: flex; align-items: center; gap: .5rem; min-height: 1.9rem; }
.prognum { color: var(--muted); font-size: .85rem; flex: none; width: 1.3rem; }
.progname { flex: 1 1 auto; min-width: 6rem; }
.progmin { flex: none; font-size: .85rem; white-space: nowrap; }
.durform { flex: none; display: flex; align-items: center; gap: .25rem; font-size: .85rem; }
.durform input { width: 3.4rem; padding: .1rem .3rem; font-size: .85rem; }
.progbtns { margin-left: 0; flex: none; }
.progbtns button { padding: .15rem .5rem; font-size: .78rem; }
.progplayers { margin: .1rem 0 .3rem 1.8rem; font-size: .85rem; }
.progplayers-empty { margin: 0 0 .3rem 1.8rem; font-size: .82rem; }
.playerform { display: inline; }
.playertoggle {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.playertoggle:hover { background: none; color: var(--deep-soft); }
.playertoggle.excused { font-style: italic; color: var(--muted); }

.attlist { list-style: none; padding: 0; margin-top: .6rem; columns: 2 16rem; }
.attlist li { margin-bottom: .25rem; }
.calltime { font-size: .8rem; color: var(--deep-soft); margin-left: .3rem; }

/* ---- schedule: venue grid ---- */
.conflictbox {
  background: #fdecea;
  border: 1px solid #e6a5a1;
  border-radius: 6px;
  padding: .6rem .9rem;
  margin-bottom: 1rem;
}
.conflictbox ul { margin: .4rem 0 0; padding-left: 1.2rem; }

/* Each day is its own bounded 2-axis scroller (spreadsheet-style): the time
   column and venue-header row are position:sticky WITHIN this box. They must
   share one real scrolling ancestor with a genuine max-height — CSS couples
   overflow-x/overflow-y (setting one to non-'visible' forces the other to
   'auto' too), so a horizontal-only scroll box would silently become this
   element's own sticky-positioning context anyway, just with no vertical
   room to actually stick in. Capping the height on purpose makes that
   coupling correct instead of an accidental trap. */
.daygrid {
  display: flex;
  gap: 6px;
  align-items: start;
  margin-bottom: 1.6rem;
  overflow: auto;
  max-height: 70vh;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}
/* time column stays put on the left while venues scroll past horizontally */
.timecol {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 3.2rem;
  flex: none;
  background: var(--paper);
}
.gridcorner {
  position: sticky;
  top: 0;
  height: 1.7rem;
  background: var(--paper);
}
/* origin for hour labels below the corner, matching .venuebody's own origin
   below .venuehead — .hourlabel's `top` is only meaningful measured from
   here, since absolutely-positioned children ignore .gridcorner's flow
   height and would otherwise start a header's-height too high */
.timebody { position: relative; height: var(--h); }
.hourlabel {
  position: absolute;
  right: .3rem;
  transform: translateY(-50%);
  font-size: .75rem;
  color: var(--muted);
}
.venuecol { flex: 1 1 0; min-width: 11rem; }
/* venue name stays put at the top while the day scrolls past vertically */
.venuehead {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: center;
  font-weight: 600;
  font-size: .9rem;
  padding: .2rem;
  height: 1.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.venuebody {
  position: relative;
  height: var(--h);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 4px 4px;
}
.hourline { position: absolute; left: 0; right: 0; border-top: 1px solid #edf1f6; }
.evblock {
  position: absolute;
  box-sizing: border-box;
  margin: 1px 2px;
  padding: .2rem .4rem;
  border-radius: 4px;
  font-size: .78rem;
  line-height: 1.25;
  color: #fff;
  background: var(--deep-soft);
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.evblock.concert { background: var(--accent); }
.evblock.public { background: #3f7d5a; }
.evblock.other { background: #6a4c93; }
.evblock.travel { background: var(--muted); border: 0; font-family: inherit; text-align: left; cursor: pointer; }
.evblock.conflict { outline: 3px solid var(--danger); outline-offset: -1px; }

/* ---- rehearsal scheduler: unscheduled tray + drag-to-place ---- */
.reh-tray {
  display: flex;
  align-items: center;
  gap: .8rem;
  border: 2px dashed var(--line);
  border-radius: 8px;
  padding: .7rem 1rem;
  margin: 1rem 0 1.4rem;
  background: #fff;
  /* stay pinned at the top of the viewport so the chip is always in reach:
     arm it, scroll down to any day, click a slot — no need to keep the far
     day and the chip on screen at the same time */
  position: sticky;
  top: 0;
  z-index: 30;
}
.reh-chip {
  cursor: grab;
  background: var(--deep-soft);
  color: #fff;
  padding: .4rem .8rem;
  border-radius: 6px;
  font-weight: 600;
  user-select: none;
  -webkit-user-drag: element;
}
.reh-chip:active { cursor: grabbing; }
.reh-chip.armed { outline: 3px solid var(--accent); outline-offset: 2px; }
.venuebody.dragover { outline: 2px dashed var(--accent); outline-offset: -2px; }
.drop-time-badge {
  position: fixed;
  z-index: 9999;
  /* .daygrid is an independently-scrolling (overflow:auto) container with
     sticky children of its own — some browsers composite that as its own
     layer and paint it above plain fixed-position siblings regardless of
     z-index. Forcing this onto its own layer too fixes the stacking order. */
  will-change: transform;
  pointer-events: none;
  background: var(--deep);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
body.reh-arming .venuebody { cursor: crosshair; }
body.reh-arming .venuebody:hover { background: #f3f7ff; }

/* ---- schedule: event + travel detail modals ---- */
#event-modal, #travel-modal {
  border: none;
  border-radius: 10px;
  padding: 1.1rem 1.3rem 1.3rem;
  max-width: 26rem;
  width: calc(100vw - 2.5rem);
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
#event-modal::backdrop, #travel-modal::backdrop { background: rgba(20,26,34,.55); }
#event-modal form, #travel-modal form { display: flex; justify-content: flex-end; margin: -.4rem -.6rem -.2rem 0; }
#event-modal .modal-close, #travel-modal .modal-close {
  background: none;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  padding: .2rem .5rem;
  align-self: auto;
}
#event-modal .modal-close:hover, #travel-modal .modal-close:hover { background: var(--paper); color: var(--ink); }
#event-modal h2, #travel-modal h2 { margin: .3rem 0 .2rem; font-size: 1.2rem; }
#event-modal h3, #travel-modal h3 { margin: .9rem 0 .2rem; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
#event-modal p, #travel-modal p { margin: .2rem 0; }
#event-modal .modal-actions, #travel-modal .modal-actions {
  margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end;
}
#event-modal .btn, #travel-modal .btn { margin-top: .9rem; }
.modalprog { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.modalprog-work { padding: .3rem 0; border-bottom: 1px solid var(--line); }
.modalprog-work:last-child { border-bottom: none; }
.modalprog-work .muted { font-size: .82rem; margin-top: .1rem; }
.modalprog-work .perf-me { color: var(--ink); font-weight: 700; }
.modalremaining { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.modalrem-item { padding: .3rem 0; border-bottom: 1px solid var(--line); }
.modalrem-item:last-child { border-bottom: none; }
.modalrem-item .muted { font-size: .82rem; margin-top: .1rem; }
.modalprog-break {
  padding: .25rem 0;
  color: var(--muted);
  font-style: italic;
  font-size: .85rem;
}
.modaldocs { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.modaldocs li { padding: .3rem 0; border-bottom: 1px solid var(--line); }
.modaldocs li:last-child { border-bottom: none; }

/* ---- schedule: person lanes ---- */
.lanescroll { overflow-x: auto; }
table.lanes td { vertical-align: top; }
table.lanes th { white-space: nowrap; }

.workslane { max-height: 75vh; overflow-y: auto; }
#works-table { width: auto; min-width: 100%; }
#works-table td, #works-table th { white-space: nowrap; }
#works-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}
#works-table thead .sticky-col { z-index: 3; }
.evchip {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: .35em;
  margin: .15rem 0;
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .75rem;
  color: #fff;
  background: var(--deep-soft);
  white-space: nowrap;
  text-decoration: none;
}
.evchip.concert { background: var(--accent); }
.evchip.public { background: #3f7d5a; }
.evchip.other { background: #6a4c93; }
.evchip.conflict { background: var(--danger); }
.evchip.flight { background: var(--muted); text-align: left; }
.evchip-name { opacity: .85; font-size: .92em; }
.evchip-time-end { opacity: .7; font-size: .92em; }

/* ---- home: my schedule, dates down the page ---- */
.myday { display: flex; gap: .75rem; align-items: baseline;
         padding: .35rem 0; border-top: 1px solid var(--line); }
.myday:first-child { border-top: 0; }
.myday-date { flex: 0 0 5.5rem; font-weight: 600; white-space: nowrap; }
.myday-events { flex: 1 1 auto; display: flex; flex-direction: column;
                align-items: flex-start; gap: .3rem; }
.myday-events .evchip { margin: 0; }

/* notifications */
details.reciplist {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .6rem .9rem;
  margin-bottom: 1rem;
}
details.reciplist summary { cursor: pointer; }
details.reciplist table { margin-top: .6rem; }

button.notify { background: var(--btn); color: var(--ink); }
button.notify.on { background: var(--deep-soft); color: #fff; }

/* account dropdown in the nav */
.usermenu { margin-left: auto; position: relative; }
.usermenu > summary {
  list-style: none; cursor: pointer; color: #fff;
  padding: .35rem .55rem; display: inline-flex; align-items: center;
}
.usermenu > summary::-webkit-details-marker { display: none; }
.usermenu > summary::marker { content: ''; }
.usermenu > summary:hover { background: var(--deep); }
.usermenu > summary svg { width: 22px; height: 22px; display: block; fill: currentColor; }
.usermenu-panel {
  position: absolute; right: .3rem; top: 100%; z-index: 50; min-width: 12rem;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18); padding: .35rem;
}
.usermenu-name {
  padding: .4rem .6rem; font-weight: 600;
  border-bottom: 1px solid var(--line); margin-bottom: .3rem;
}
.usermenu-panel a,
.usermenu-panel button {
  display: block; width: 100%; box-sizing: border-box; text-align: left;
  padding: .5rem .6rem; margin: 0; border: 0; border-radius: 4px;
  background: none; color: inherit; font: inherit;
  text-decoration: none; cursor: pointer;
}
.usermenu-panel a:hover,
.usermenu-panel button:hover { background: var(--paper); }
.usermenu-panel button.on { color: #fff; font-weight: 600; }
.usermenu-msg {
  display: block; padding: .3rem .6rem; font-size: .8rem; color: var(--muted);
}

/* click-to-sort tables */
table.sortable th { cursor: pointer; user-select: none; white-space: nowrap; }
table.sortable th:hover { color: var(--accent); }
.noticelist p { margin: .3rem 0 0; }
blockquote {
  background: #fff;
  border-left: 4px solid var(--deep-soft);
  margin: .8rem 0;
  padding: .6rem .9rem;
  white-space: pre-line;
}

/* card lists (festival picker, admin dashboard) */
.cardlist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.cardlist li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .7rem .9rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.cardlist form { display: flex; align-items: center; gap: .7rem; margin: 0; }
