:root { color-scheme: light; --paper: #f7f0e2; --card: #fffdf8; --ink: #17284f; --muted: #687184; --red: #b51e2b; --gold: #f2c94c; --line: rgba(23,40,79,.15); font-family: "Aptos", "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--paper); }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }
.prototype-warning { padding: 10px 16px; background: var(--gold); text-align: center; font-size: .76rem; font-weight: 800; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 17px max(22px, calc((100vw - 1080px) / 2)); background: var(--ink); color: var(--paper); }
.topbar a { text-decoration: none; }
.brand { font-weight: 900; letter-spacing: .06em; }
.brand small { display: block; margin-top: 3px; color: rgba(247,240,226,.65); font-size: .65rem; font-weight: 500; letter-spacing: 0; }
.nav { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .8rem; font-weight: 700; }
.nav a[aria-current="page"] { color: var(--gold); }
.nav a.public-site-link { padding: 7px 12px; border-radius: 999px; background: var(--gold); color: var(--ink); }
.nav a.public-site-link:hover { background: #ffe17d; }
.topbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.topbar .public-site-link { display: inline-flex; min-height: 38px; align-items: center; padding: 0 13px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .76rem; font-weight: 900; }
.topbar .public-site-link:hover { background: #ffe17d; }
main { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 46px 0 72px; }
.eyebrow { margin: 0 0 9px; color: var(--red); font-size: .68rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; }
h1 { font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; }
h1 em, h2 em { color: var(--red); font-weight: 500; }
.lede { max-width: 650px; margin: 13px 0 28px; color: var(--muted); line-height: 1.6; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card, .panel { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.card { display: flex; min-height: 190px; flex-direction: column; align-items: flex-start; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(23,40,79,.08); }
.card-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 50%; background: #f3e7d8; color: var(--red); font-size: 1.25rem; }
.card h2 { margin-bottom: 8px; font-size: 1.55rem; }
.card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.card-arrow { margin-top: auto; padding-top: 15px; color: var(--red); font-size: .8rem; font-weight: 900; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin: 28px 0 17px; }
.toolbar h2 { font-size: 1.5rem; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 24px 0; }
.stat { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); }
.stat span { display: block; color: var(--muted); font-size: .7rem; font-weight: 700; }
.stat strong { display: block; margin-top: 5px; font-family: Georgia, serif; font-size: 1.8rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: var(--card); }
.booking-contact-detail { color: var(--muted); font-size: .78rem; font-weight: 500; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.empty { padding: 28px; color: var(--muted); text-align: center; line-height: 1.55; }
.event-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 22px 0; }
.summary-item { padding: 14px 16px; border-left: 3px solid var(--gold); background: rgba(242,201,76,.15); }
.summary-item span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .67rem; font-weight: 800; text-transform: uppercase; }
.summary-item strong { font-size: .82rem; line-height: 1.4; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.copy-editor-groups { display: grid; gap: 18px; }
.copy-editor-group h2 { margin-bottom: 16px; font-size: 1.35rem; }
.copy-editor-actions { margin-top: 18px; }
.copy-editor-actions .feedback { margin: 12px 0 0; }
.field { display: grid; gap: 7px; color: var(--ink); font-size: .78rem; font-weight: 800; }
.field.full { grid-column: 1/-1; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font: inherit; font-weight: 500; }
.field textarea { min-height: 92px; resize: vertical; }
.help { color: var(--muted); font-size: .71rem; font-weight: 500; line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 18px; border: 0; border-radius: 99px; background: var(--red); color: white; font: inherit; font-size: .82rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.button.secondary { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.notice { margin-top: 18px; padding: 12px 14px; border-radius: 9px; background: #eef2e9; color: #42533c; font-size: .77rem; line-height: 1.5; }
.offline-backup { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.offline-backup h2 { margin-bottom: 7px; }
.offline-backup .panel-copy { max-width: 620px; margin: 0; }
.backup-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.offline-backup .feedback { flex-basis: 100%; }
.audio-preview { display: none; margin-top: 15px; padding: 14px; border-radius: 12px; background: #f5eee3; }
.audio-preview.visible { display: block; }
.audio-preview audio { width: 100%; margin-top: 8px; }
.back-link { display: inline-block; margin-bottom: 19px; color: var(--red); font-size: .8rem; font-weight: 800; text-decoration: none; }
.nav { max-width: 760px; }
.page-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 15px 25px; margin-bottom: 25px; }
.page-intro .lede { margin-bottom: 0; }
.section-stack { display: grid; gap: 18px; }
.two-col { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.three-col { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.panel h2 { margin-bottom: 10px; font-size: 1.55rem; }
.panel > p:last-child { margin-bottom: 0; }
.panel-copy { color: var(--muted); font-size: .86rem; line-height: 1.55; }
.pill { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border-radius: 99px; background: #edf1e9; color: #42533c; font-size: .66rem; font-weight: 900; }
.pill.draft { background: #f7eed7; color: #765713; }
.pill.closed { background: #f5e2e3; color: #8e1824; }
.toolbar .button { flex: 0 0 auto; }
.record-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.record-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.record-copy { display: grid; gap: 4px; }
.record-copy strong { font-size: .84rem; }
.record-copy span { color: var(--muted); font-size: .73rem; line-height: 1.45; }
.record-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.button.small { min-height: 34px; padding-inline: 12px; font-size: .72rem; }
.button.danger { border: 1px solid rgba(181,30,43,.23); background: transparent; color: var(--red); }
.form-help { margin: -3px 0 0; color: var(--muted); font-size: .71rem; font-weight: 500; line-height: 1.45; }
.field input[type="file"] { min-height: auto; padding: 8px; }
.field input[type="checkbox"] { width: 18px; min-height: 18px; }
.check-row { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: .78rem; font-weight: 700; }
.subtle { color: var(--muted); font-size: .74rem; line-height: 1.5; }
.login-shell { width: min(480px, calc(100% - 40px)); margin: 0 auto; padding-top: 52px; }
.login-shell .panel { margin-top: 24px; }
.access-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-title { margin: 28px 0 14px; font-family: Georgia,serif; font-size: 1.45rem; }
.action-stack { display: grid; justify-items: start; gap: 10px; margin-top: 18px; }
.feedback { min-height: 1.4em; margin: 12px 0 0; color: var(--red); font-size: .77rem; font-weight: 800; line-height: 1.5; }
.match-preview { margin-top: 17px; padding: 15px; border-left: 3px solid var(--gold); background: rgba(242,201,76,.15); color: var(--muted); font-size: .82rem; line-height: 1.5; }
.match-preview strong { display: block; margin-bottom: 4px; color: var(--ink); }
.inline-note { display: inline-block; margin-left: 6px; color: var(--muted); font-size: .68rem; font-weight: 500; }
.radio-player-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.radio-player-row audio { width: min(360px, 100%); }
.photo-admin-grid { margin-top: 18px; }
.photo-admin-card { display: grid; align-content: start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.photo-admin-preview { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: #eee7db; object-fit: cover; }
.photo-admin-card h3 { font-size: 1.12rem; }
.photo-admin-status { min-height: 1.4em; margin: -5px 0 0; overflow-wrap: anywhere; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.event-poster-upload { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #faf7ef; }
.event-poster-preview { display: block; width: min(100%, 360px); max-height: 480px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #eee7db; object-fit: contain; object-position: center; }
.event-poster-preview[hidden] { display: none; }
.gallery-admin-grid { margin-top: 16px; }
.gallery-admin-card { display: grid; align-content: start; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.gallery-admin-card img { display: block; width: 100%; aspect-ratio: 3 / 2; border-radius: 8px; background: #eee7db; object-fit: cover; }
.gallery-admin-card h3 { overflow-wrap: anywhere; font-size: 1rem; }
.gallery-admin-card p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.gallery-admin-card .pill { font-size: .62rem; }
.gallery-preview-empty { grid-column: 1 / -1; padding: 20px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: .8rem; line-height: 1.5; text-align: center; }
.festival-admin-panel { margin-top: 18px; }
.festival-admin-panel h2 { margin-bottom: 14px; }
.festival-admin-panel .toolbar h2 { margin-bottom: 0; }
.festival-admin-cover { display: block; width: min(100%, 440px); max-height: 330px; padding: 8px; border: 1px solid var(--line); border-radius: 11px; background: #eee7db; object-fit: contain; }
.festival-admin-cover[hidden] { display: none; }
.festival-admin-panel .section-title { margin-top: 30px; }
.festival-admin-panel .record-list { margin-top: 8px; }
.festival-admin-panel .record-copy .generated-link { overflow-wrap: anywhere; color: var(--red); }
.festival-admin-panel .table-wrap { margin-top: 16px; }
.file-picker { position: relative; overflow: hidden; width: 100%; text-align: center; }
.file-picker:focus-within { outline: 3px solid rgba(181,30,43,.25); outline-offset: 3px; }
.file-picker-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
[hidden] { display: none !important; }
.text-link { color: var(--red); font-size: .8rem; font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
@media (max-width: 650px) {
  .topbar { align-items: flex-start; flex-direction: column; padding: 15px 20px; }
  .nav { gap: 8px 13px; }
  main { padding-top: 34px; }
  .cards, .form-grid { grid-template-columns: 1fr; }
  .two-col, .three-col { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .stats, .event-summary { grid-template-columns: 1fr; }
  .stat { display: flex; align-items: center; justify-content: space-between; }
  .stat strong { margin-top: 0; }
  .toolbar { align-items: flex-start; flex-direction: column; }
}
