/* Bianca's admin: the same palette as the guest site, denser. */
body.admin { background: #f3efe7; font-size: 15px; }
.a-head { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: .7rem clamp(16px, 3vw, 32px); background: var(--paper); border-bottom: 1px solid var(--line); }
.a-head .brand-mark { height: 22px; }
.a-head .brand-word { font-size: 1.15rem; }
.a-nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; flex: 1; font-size: .92rem; }
.a-nav a { color: var(--ink); text-decoration: none; }
.a-nav a:hover { color: var(--rust); }
.a-nav form { margin-left: auto; }
.live-dot { font-size: .75rem; color: var(--muted); display: inline-flex; align-items: center; gap: .35rem; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #bbb; }
.live-dot.on { color: var(--good); }
.live-dot.on::before { background: #3ca35a; box-shadow: 0 0 0 3px rgba(60, 163, 90, .2); }
.a-main { max-width: 1280px; margin: 0 auto; padding: 1.5rem clamp(16px, 3vw, 32px) 4rem; }
.a-main h1 { font-size: 2rem; }
.a-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.a-top h1, .a-top h2 { margin: 0; }
.a-top > div { display: flex; gap: .6rem; flex-wrap: wrap; }
.a-retreat-head { max-width: 1280px; margin: 0 auto; padding: 1.4rem clamp(16px, 3vw, 32px) .6rem; display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; align-items: flex-end; }
.a-retreat-head h1 { margin: 0; font-size: 2rem; }
.a-tabs { position: static; padding: 0 clamp(16px, 3vw, 32px); max-width: 1280px; margin: 0 auto; background: transparent; }
.a-tabs .tab-out { margin-left: auto; }
.a-tabs .tab-out::after { content: " \2197"; }
.stats { display: flex; gap: .6rem; flex-wrap: wrap; }
.stats > div { background: var(--paper); border-radius: 10px; padding: .55rem .9rem; min-width: 6.5rem; box-shadow: var(--shadow); }
.stats strong { display: block; font: 500 1.3rem var(--serif); color: var(--green); font-variant-numeric: tabular-nums; }
.stats span { font-size: .78rem; color: var(--muted); }
.stats .bad strong { color: var(--bad); }
.stats .good strong { color: var(--good); }
.stats-wide { margin-bottom: 1.5rem; }
.stats-wide > div { flex: 1; min-width: 9rem; }
.a-grid { display: grid; gap: 1.8rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .a-grid { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); } }
.a-grid > section { min-width: 0; overflow-x: auto; }
@media (max-width: 760px) {
  table.data { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .a-head { gap: .6rem 1rem; }
  .a-nav { gap: .5rem 1rem; font-size: .88rem; }
  .a-nav form { margin-left: 0; }
  .stats > div { min-width: 0; flex: 1 1 40%; }
}
table.data { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 1.6rem; font-size: .92rem; }
table.data th { text-align: left; font-weight: 500; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #f7f2ea; padding: .6rem .8rem; }
table.data td { padding: .6rem .8rem; border-top: 1px solid var(--line); vertical-align: top; }
table.data tr.past td { opacity: .55; }
table.data tr.overdue td { background: #fbefea; }
table.data tfoot td { font-weight: 600; background: #f7f2ea; }
table.compact { box-shadow: none; margin: 0; }
table.compact td { padding: .4rem .3rem; }
table.sched tr.slot-ritual td:first-child { border-left: 3px solid var(--gold); }
table.sched tr.slot-elective td:first-child { border-left: 3px solid var(--green-2); }
table.sched tr.slot-extra td:first-child { border-left: 3px solid var(--rust); }
td progress.bar { width: 5.5rem; margin-right: .4rem; }
table.data .num, table.data th.num { text-align: right; white-space: nowrap; }
.pill-sm { font-size: .7rem; padding: .1em .6em; }
.pill-late { background: #f8e1da; color: var(--bad); }
table.sched { table-layout: fixed; }
table.sched col.c-time { width: 8rem; }
table.sched col.c-kind { width: 6.5rem; }
table.sched col.c-places { width: 12.5rem; }
table.sched col.c-edit { width: 3.5rem; }
.sticky { position: sticky; top: 1rem; align-self: start; }
.room-meta { color: var(--muted); font-size: .92rem; margin-top: -.3rem; }
.room-meta strong { color: var(--ink); font-weight: 600; }
li.occupant { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; padding: .35rem 0; border-top: 1px solid var(--line); }
li.occupant:first-child { border-top: 0; }
button.unplace { border: 0; background: transparent; color: var(--muted); font-size: 1.1rem; line-height: 1; padding: .1rem .35rem; border-radius: 6px; cursor: pointer; }
button.unplace:hover { background: #f8e1da; color: var(--bad); }
.unplaced-name { min-width: 11rem; }
.feed { background: var(--paper); border-radius: 12px; padding: 1rem 1.2rem; box-shadow: var(--shadow); align-self: start; }
.feed h2 { font-size: 1.4rem; }
.feed ul { list-style: none; padding: 0; margin: 0; }
.feed li { padding: .55rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.feed li:first-child { border-top: 0; }
.feed li.feed-booking { border-left: 3px solid var(--good); padding-left: .5rem; }
.feed li.feed-payment { border-left: 3px solid var(--gold); padding-left: .5rem; }
.feed li.feed-choice { border-left: 3px solid var(--green-2); padding-left: .5rem; }
.feed li.feed-waitlist { border-left: 3px solid var(--rust); padding-left: .5rem; }
.filters { display: flex; gap: .3rem; flex-wrap: wrap; }
.filters a { padding: .35rem .85rem; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: .88rem; background: var(--paper); }
.filters a[aria-current="page"] { background: var(--green); color: #fff; }
ul.plain { list-style: none; padding: 0; margin: 0 0 1rem; }
ul.plain li { padding: .2rem 0; }
.room-type { margin-bottom: 2.2rem; }
.room-board { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 1rem; }
.room-box { background: var(--paper); border-radius: 10px; padding: .8rem 1rem; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.room-box.room-full { border-top-color: var(--green-2); }
.room-box.room-empty { border-top-color: var(--line); }
.room-box h4 { font-family: var(--sans); font-size: .95rem; font-weight: 600; display: flex; justify-content: space-between; }
.unplaced { background: #f6ead0; border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; }
.inline-form { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: .4rem 0; }
.inline-form select { font: inherit; padding: .35rem .5rem; border-radius: 8px; border: 1px solid #d5cab7; }
details.edit { margin: 1rem 0; }
details.edit summary { cursor: pointer; color: var(--green-2); }
.grid-form { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); align-items: end; }
.grid-form .wide { grid-column: 1 / -1; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.thumb { width: 90px; height: 50px; object-fit: cover; border-radius: 6px; }
details.mail { background: var(--paper); border-radius: 10px; padding: .6rem 1rem; margin-bottom: .5rem; box-shadow: var(--shadow); }
details.mail summary { cursor: pointer; }
details.mail pre { white-space: pre-wrap; font: .92rem/1.5 var(--sans); background: #f7f2ea; padding: 1rem; border-radius: 8px; }
.room-head { display: flex; gap: 1.2rem; align-items: center; margin-bottom: .8rem; }
.room-head h2 { margin-bottom: .2rem; }
.room-thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; flex: none; }
