:root { --red: #A3002A; --ink: #161616; --muted: #6b6b6b; --line: #e3dfd8; --paper: #F4F1EC; }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Roboto', system-ui, sans-serif; color: var(--ink); background: var(--paper); font-size: 16px; }
a { color: inherit; }
.top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 16px; background: var(--red); color: #fff; }
.brand { font-family: 'Unbounded', sans-serif; font-weight: 900; text-decoration: none; letter-spacing: .02em; }
.brand span { font-family: 'Roboto'; font-weight: 400; }
.top nav { display: flex; gap: 16px; align-items: center; }
.top nav a { text-decoration: none; }
.top form { margin: 0; }
main { max-width: 920px; margin: 0 auto; padding: 16px; }
h1 { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 24px; margin: 8px 0; }
h2 { font-size: 18px; margin: 18px 0 10px; display: inline-block; }
h3 { margin: 0 0 8px; } h3 small { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }
.muted { color: var(--muted); font-size: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 12px 0; }
.card.narrow { max-width: 380px; margin: 40px auto; }
label { display: block; font-size: 13px; color: var(--muted); margin: 8px 0; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; font: inherit; font-size: 16px; color: var(--ink); border: 1px solid #ccc; border-radius: 7px; background: #fff; }
label.check { display: flex; align-items: center; gap: 6px; padding-top: 22px; }
label.check input { width: auto; margin: 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 12px; }
.item-cols .grow { grid-column: span 2; }
button, .btn { display: inline-block; padding: 10px 16px; font: inherit; font-weight: 700; border: 0; border-radius: 7px; background: var(--red); color: #fff; cursor: pointer; text-decoration: none; }
button.ghost, .btn.ghost { background: #fff; color: var(--red); border: 1.5px solid var(--red); }
button.danger { background: #fff; color: #a00; border: 1px solid #e0b4b4; font-weight: 400; margin-top: 6px; }
button.link { background: none; padding: 0; font-weight: 400; color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.actions form { margin: 0; }
.flash { background: #fff7d6; border: 1px solid #ecd98a; padding: 10px 14px; border-radius: 8px; margin-bottom: 10px; }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.badge { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: #eee; white-space: nowrap; }
.badge.big { font-size: 14px; padding: 6px 12px; margin-top: 10px; }
.badge.review { background: #fff1cc; } .badge.approved { background: #d9f2df; }
.list .row, .card .row { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; text-decoration: none; }
.card .row { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0; margin: 0; }
.chk { padding: 6px 0 6px 22px; position: relative; font-size: 14px; }
.chk::before { position: absolute; left: 0; }
.chk.error::before { content: '✕'; color: #b00; } .chk.warn::before { content: '!'; color: #b8860b; font-weight: 700; left: 5px; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.day .item { border-top: 1px solid var(--line); padding: 8px 0; }
.day .item summary b { display: inline-block; min-width: 64px; color: var(--red); }
.day .item.inspection summary b::after { content: ' ◆'; font-size: 10px; }
.day .item.party summary { font-weight: 700; }
.day .item form { margin-top: 6px; }
.day .add { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; }
.day .add summary { color: var(--red); font-weight: 700; }
.tbc { font-size: 12px; background: #fff1cc; padding: 1px 6px; border-radius: 4px; }
.venue { display: grid; grid-template-columns: 120px 1fr; gap: 14px; }
.venue img, .venue .nophoto { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; background: #eee; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
form#vnew .venue { grid-template-columns: 1fr; }
@media (max-width: 560px) {
  .venue { grid-template-columns: 1fr; }
  .item-cols .grow { grid-column: auto; }
  h1 { font-size: 20px; }
}
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 8px 0 14px; }
.photos figure { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }
.photos img, .photos .nophoto { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; background: #eee; display: flex; align-items: center; justify-content: center; }
textarea.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.45; }
.help { margin: 4px 0 8px; } .help summary { color: var(--red); font-size: 14px; }
.help pre { background: var(--paper); padding: 10px; border-radius: 6px; font-size: 13px; overflow-x: auto; }
.day .item b { display: inline-block; min-width: 64px; color: var(--red); }
.kind { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; margin-left: 4px; }
.issued { border-color: #ecd98a; background: #fffbea; }
.issued .pw { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 22px; font-weight: 700; letter-spacing: .04em; margin: 6px 0; user-select: all; }
.top nav { flex-wrap: wrap; }
