:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --white: #fff;
  --ink: #132748;
  --navy: #173766;
  --navy-dark: #10274c;
  --soft: #f1f5fa;
  --gold: #a87520;
  --line: #e3e6eb;
  --muted: #566173;
  --green: #226044;
  --green-bg: #e9f4ec;
  --danger: #9c3031;
  --danger-bg: #fff1ee;
  --radius: 19px;
  --body: "DM Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "DM Serif Text", "Georgia", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--body); }
#app { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
#screen { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .48; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #2d64a6; outline-offset: 3px; }
h1, h2, h3, h4, p, dl { margin: 0; }
h1, h2, h3, h4 { line-height: 1.17; }
h3 { font-size: 15px; }
h4 { font-size: 14px; }
small { font-size: 12px; }
img { display: block; max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.icon { flex: 0 0 auto; width: 19px; height: 19px; vertical-align: middle; }
.loading { color: var(--muted); padding: 3rem 1rem; text-align: center; }
.topbar { position: sticky; top: 0; z-index: 4; background: #fff; border-bottom: 1px solid #e9e7df; }
.topbar-inner { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.topbar .menu-toggle { width: 43px; height: 43px; flex: 0 0 auto; }
.menu-toggle .icon { width: 21px; height: 21px; }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: 11px; justify-self: start; }
.brand-mark { color: #b78629; display: grid; place-items: center; }
.brand-mark .icon { width: 38px; height: 38px; }
.brand-logo { display: grid; place-items: center; width: 54px; height: 52px; }
.brand-logo img { width: 100%; max-height: 50px; object-fit: contain; }
.brand-text { display: grid; line-height: 1.16; min-width: 0; }
.brand-text strong { color: var(--navy); font-size: 24px; letter-spacing: -.05em; }
.brand-text small { color: var(--muted); font-size: 11px; font-weight: 600; margin-top: 4px; overflow-wrap: anywhere; }
.top-tools { flex: 0 0 auto; }
.segmented { display: inline-flex; align-items: center; gap: 2px; background: #f0f2f5; padding: 3px; border-radius: 9px; }
.segmented button { border: 0; background: transparent; border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 700; padding: 7px 12px; }
.segmented button[aria-pressed=true] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px #1527431d; }
.languages { border: 1px solid #e7e9ec; }
.languages button { padding: 5px 9px; min-width: 34px; font-size: 12px; }
.event-hero { padding: 35px 0 24px; text-align: center; }
.event-hero h1, .home-copy h1, .calendar-card h1, .panel-hero h1, .login-card h1 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.045em;
  color: var(--ink);
  text-wrap: balance;
}
.event-hero h1 { font-size: clamp(33px, 5vw, 50px); }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px 24px; color: var(--muted); font-weight: 600; font-size: 14px; margin-top: 16px; }
.event-meta span { display: inline-flex; align-items: center; gap: 7px; }
.event-meta .icon { color: var(--gold); width: 17px; height: 17px; }
.hero-map { display: flex; justify-content: center; margin-top: 12px; }
.home-main { padding-block: clamp(32px, 6vw, 82px); }
.home-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(24px, 5vw, 64px); }
.home-copy h1 { font-size: clamp(40px, 5.4vw, 70px); margin-top: 13px; text-wrap: pretty; overflow-wrap: anywhere; }
.home-copy .event-meta { justify-content: flex-start; gap: 7px 14px; }
.event-description { margin-top: 18px; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.event-description:empty { display: none; }
.home-actions { margin-top: 19px; }
.home-actions .button { min-height: 45px; padding-inline: 14px; }
.home-actions + .subtle { margin-top: 8px; }
.home-transport, .calendar-transport { margin-top: 9px; color: var(--muted); font-size: 13px; white-space: pre-line; overflow-wrap: anywhere; }
.home-transport + .subtle { margin-top: 8px; }
.home-flyer { min-width: 0; }
.home-flyer:has(.poster.custom) { width: min(100%, 438px); justify-self: end; }
.poster { position: relative; display: block; width: 100%; overflow: hidden; aspect-ratio: 1.39; padding: 0; text-align: left; border: 0; border-radius: var(--radius); background: #273341; box-shadow: 0 7px 24px #1a2d441c; }
.poster img { width: 100%; height: 100%; object-fit: cover; object-position: center 51%; transition: transform .25s ease; }
.poster:hover img { transform: scale(1.025); }
.poster.custom { aspect-ratio: auto; background: #eeeae1; }
.poster.custom img { height: auto; max-height: 650px; object-fit: contain; }
.poster-overlay { position: absolute; inset: 30% 0 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; background: linear-gradient(180deg, transparent 5%, #0b1426aa 62%, #0a1324ee 100%); color: #fff; }
.poster-overlay span { color: #f9d88e; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.poster-overlay strong { margin-top: 5px; font: 500 clamp(26px, 3.4vw, 41px)/1.08 var(--serif); letter-spacing: -.04em; text-wrap: balance; }
.poster-expand { position: absolute; top: 13px; right: 13px; display: grid; place-items: center; width: 38px; height: 38px; background: #132747ba; color: #fff; border: 1px solid #ffffff66; border-radius: 10px; }
.poster-expand .icon { width: 18px; height: 18px; }
.form-heading h2, .confirmation h2, .closed-card h2, .section-head h2, .dialog h2 { font-size: 24px; letter-spacing: -.035em; }
.event-facts { display: grid; margin-top: 17px; border-top: 1px solid #e4e1d9; }
.event-facts div { display: grid; grid-template-columns: 20px minmax(76px, 1fr) auto; align-items: center; gap: 9px; padding: 11px 0; border-bottom: 1px solid #e4e1d9; font-size: 13px; }
.event-facts .icon { color: var(--gold); width: 17px; height: 17px; }
.event-facts dt { color: var(--muted); }
.event-facts dd { margin: 0; text-align: right; font-weight: 730; }
.gala-menu { margin-top: clamp(24px, 5vw, 52px); padding: clamp(18px, 4vw, 32px); }
.gala-menu h2 { font: 500 clamp(27px, 4vw, 37px)/1.15 var(--serif); letter-spacing: -.035em; margin-bottom: 12px; }
.gala-courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 22px; }
.gala-courses article { padding: 10px 0 6px; border-top: 1px solid var(--line); }
.gala-courses article:last-child { grid-column: 1 / -1; }
.gala-courses h3 { color: var(--navy); margin-bottom: 5px; }
.gala-courses p { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.panel { border: 1px solid #e4e6eb; border-radius: var(--radius); background: var(--white); box-shadow: 0 5px 20px #1d2a3f08; min-width: 0; }
.registration-main { max-width: 750px; padding-bottom: 48px; }
.registration { padding: 27px; }
.form-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding-bottom: 19px; }
.form-heading p { color: var(--muted); margin-top: 7px; font-size: 13px; }
.age-policy { margin-top: 9px; color: var(--navy); font-size: 13px; font-weight: 650; }
.badge { display: inline-flex; width: fit-content; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 99px; font-size: 12px; font-weight: 720; line-height: 1.3; white-space: nowrap; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.open { background: var(--green-bg); color: var(--green); }
.badge.inactive, .badge.muted { background: #eef0f3; color: #525f70; }
.badge.ended { background: var(--danger-bg); color: var(--danger); }
.badge.warn { background: #fbf1df; color: #79501a; }
.fields { display: grid; gap: 13px; min-width: 0; }
.fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.full { grid-column: 1 / -1; }
label { min-width: 0; display: grid; gap: 6px; }
label > span, .choice-group legend { color: var(--ink); font-size: 13px; font-weight: 670; }
label small { color: var(--muted); }
input:not([type=checkbox],[type=radio]), select, textarea {
  display: block; width: 100%; min-width: 0; border-radius: 8px; border: 1px solid #d7dde5;
  padding: 9px 11px; min-height: 40px; background: #fff; color: var(--ink); font-size: 14px;
}
input::placeholder, textarea::placeholder { color: #727e8c; }
textarea { resize: vertical; line-height: 1.45; }
input[type=file] { padding: 5px 8px; }
input[type=file]::file-selector-button { border: 0; background: var(--soft); color: var(--navy); padding: 6px 9px; border-radius: 5px; margin-right: 7px; font-weight: 650; cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--navy); width: 17px; height: 17px; margin: 0; flex: 0 0 auto; }
select { padding-right: 23px; }
.required-mark { color: #a64641; }
.count-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 15px; padding: 10px 12px; background: #f7f8fa; border: 1px solid #e8ecf1; border-radius: 10px; }
.count-row label { gap: 0; }
.count-row label strong { font-size: 14px; }
.count-row label small { font-size: 12px; }
.stepper { display: flex; align-items: center; flex: 0 0 auto; gap: 3px; }
.stepper button, .icon-button { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #dce2e9; border-radius: 8px; color: var(--navy); background: #fff; padding: 0; }
.stepper button:hover:enabled, .icon-button:hover:enabled { background: var(--soft); }
.stepper button .icon, .icon-button .icon { width: 17px; height: 17px; }
.stepper input { width: 43px !important; min-height: 35px !important; padding: 4px 2px !important; text-align: center; font-weight: 750; border-color: transparent !important; background: transparent !important; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.guest-list { padding: 14px 12px; background: #f7f8fa; border: 1px solid #e8ecf1; border-radius: 10px; margin-top: 10px; }
.guest-fields-row { min-width: 0; margin: 8px 0 0; padding: 8px 10px 10px; border: 1px solid #e0e6ed; border-radius: 8px; }
.guest-fields-row legend { padding: 0 4px; font-size: 13px; font-weight: 720; }
.guest-fields { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1.1fr) minmax(85px, .85fr); gap: 9px; }
.guest-fields:has([data-age-label][hidden]) { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.form-section-title { display: flex; align-items: center; gap: 7px; color: var(--navy); margin-bottom: 9px; }
.form-section-title .icon { width: 16px; height: 16px; }
.additional { margin-top: 17px; }
.additional > h3 { margin-bottom: 10px; }
.check-label { display: inline-flex; align-items: center; gap: 8px; }
.choice-group { padding: 6px 0 2px; border: 0; margin: 0; }
.choice-group legend { padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.total-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 13px; background: #edf3fb; border: 1px solid #e0eaf8; border-radius: 10px; margin-top: 16px; color: var(--navy); }
.total-strip strong { display: block; font-size: 14px; }
.total-strip small { color: var(--muted); display: block; margin-top: 1px; }
.total-strip output { text-align: right; font-weight: 800; font-size: clamp(19px, 2.4vw, 26px); letter-spacing: -.045em; white-space: nowrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 8px; padding: 8px 13px; min-height: 39px; font-size: 13px; line-height: 1.3; text-align: center; font-weight: 710; }
.button .icon { width: 16px; height: 16px; }
.button.primary { background: var(--navy); color: #fff; }
.button.primary:hover:enabled, a.button.primary:hover { background: var(--navy-dark); }
.button.secondary { color: var(--navy); background: #fff; border-color: #d9e0e9; }
.button.secondary:hover:enabled, a.button.secondary:hover { background: var(--soft); }
.button.ghost { color: var(--navy); background: transparent; }
.button.ghost:hover:enabled, a.button.ghost:hover { background: var(--soft); }
.button.danger-outline { color: var(--danger); background: #fff; border-color: #ecd6d3; }
.button.danger-outline:hover:enabled { background: var(--danger-bg); }
.button.danger { color: #fff; background: var(--danger); }
.button.danger:hover:enabled { background: #822728; }
.button.small { min-height: 32px; padding: 6px 9px; font-size: 12px; }
.button.submit { min-height: 44px; margin-top: 13px; width: 100%; font-size: 14px; }
.form-caption { display: flex; justify-content: center; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; text-align: center; margin-top: 10px; }
.form-caption .icon { width: 15px; height: 15px; }
.form-error { padding: 9px 11px; margin: 11px 0 0; background: var(--danger-bg); color: var(--danger); border-radius: 8px; font-size: 13px; }
.payment-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.payment-choice { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 8px 11px; border: 1px solid #dce2e9; border-radius: 8px; cursor: pointer; }
.payment-choice:hover, .payment-choice:has(input:checked) { background: var(--soft); border-color: #9db1cc; }
.booking-currencies { border: 0; margin: 16px 0 0; padding: 0; min-width: 0; }
.booking-currencies legend { padding: 0 0 7px; font-size: 13px; font-weight: 700; }
.payment-due { display: flex; justify-content: flex-start; align-items: center; gap: 7px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.confirmation .payment-due { justify-content: center; margin: 0 0 12px; }
.transfer-card { padding: 13px; border: 1px solid #dce4ef; border-radius: 10px; background: #f8fafc; text-align: left; margin-bottom: 14px; }
.transfer-card h3 { color: var(--navy); margin-bottom: 7px; }
.transfer-card .detail-grid { margin-bottom: 8px; }
.transfer-card .detail-grid dd { font-size: 13px; }
.bank-editor { padding: 8px 10px 11px; min-width: 0; margin: 7px 0 0; border: 1px solid var(--line); border-radius: 8px; }
.bank-editor legend { font-size: 13px; padding: 0 4px; font-weight: 700; }
.new-event-bank summary { font-size: 14px; font-weight: 700; cursor: pointer; }
.registration-actions { margin-top: 14px; justify-content: flex-end; }
.registration-actions .button { min-height: 43px; }
.registration .detail-grid { margin: 7px 0 15px; }
.guest-summary { display: grid; gap: 5px; list-style: none; margin: 7px 0 15px; padding: 0; }
.guest-summary li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px 12px; padding: 8px 10px; background: #f5f7fa; border-radius: 7px; overflow-wrap: anywhere; }
.guest-summary span { color: var(--muted); font-size: 13px; }
.calendar-main { display: grid; justify-items: center; padding-block: clamp(26px, 6vw, 64px); }
.calendar-card { width: min(100%, 500px); padding: 24px; text-align: center; }
.calendar-card h1 { font-size: clamp(32px, 6vw, 42px); margin: 11px 0; }
.calendar-card h2 { font-size: 18px; margin-bottom: 6px; }
.calendar-card p { color: var(--muted); }
.calendar-hint { margin-top: 16px; }
.calendar-options { display: grid; gap: 8px; margin: 10px 0; }
.calendar-options .button { min-height: 43px; justify-content: space-between; text-align: left; }
.site-footer { border-top: 1px solid #e8e5de; padding: 17px 0; background: #fbfaf7; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.footer-inner > span:first-child { display: flex; align-items: center; gap: 7px; white-space: pre-line; overflow-wrap: anywhere; }
.footer-inner .icon { width: 16px; height: 16px; color: var(--gold); }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 5px 11px; }
.large-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--soft); color: var(--navy); }
.large-icon .icon { width: 26px; height: 26px; }
.large-icon.good { background: var(--green-bg); color: var(--green); }
.confirmation, .closed-card { text-align: center; padding: 20px 0 14px; }
.confirmation h2, .closed-card h2 { margin: 13px 0 7px; }
.confirmation p, .closed-card p { color: var(--muted); }
.confirmation-data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 12px 5px; border-radius: 10px; background: #f5f7fa; margin: 19px 0; }
.confirmation-data dt { color: var(--muted); font-size: 12px; }
.confirmation-data dd { margin: 3px 0 0; font-weight: 750; }
.confirmation .actions { justify-content: center; }
.closed-card .button { margin-top: 13px; }
.code { display: inline-block; color: var(--navy); background: #eff3f9; border-radius: 5px; padding: 2px 6px; font: 650 12px/1.5 "IBM Plex Mono", ui-monospace, Menlo, monospace; letter-spacing: .035em; }
.code.large { font-size: 17px; }
.login-main { padding: 56px 0; display: grid; justify-items: center; }
.login-card { width: min(100%, 450px); padding: 28px; text-align: center; }
.login-card h1 { font-size: 35px; margin-top: 12px; }
.login-card p { color: var(--muted); margin-top: 7px; }
.login-card form { text-align: left; margin-top: 19px; }
.login-card .button { margin-top: 13px; width: 100%; }
.panel-main { padding: 30px 0 48px; }
.panel-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 21px; margin-bottom: 20px; }
.panel-hero h1 { font-size: clamp(30px, 5vw, 49px); margin: 5px 0 8px; }
.section-kicker { color: var(--gold); font-size: 12px; font-weight: 800; }
.panel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.panel-meta .badge { margin-left: 6px; }
.panel-meta .icon { color: var(--gold); }
.panel-controls { display: grid; gap: 7px; min-width: min(100%, 240px); }
.panel-controls > .actions { justify-content: end; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.panel-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 13px; border-bottom: 1px solid #e0e3e8; }
.panel-tabs button { display: inline-flex; gap: 7px; align-items: center; background: transparent; color: var(--muted); border: 0; border-bottom: 2px solid transparent; padding: 8px 10px; font-size: 13px; font-weight: 690; }
.panel-tabs button:hover { color: var(--navy); }
.panel-tabs button[aria-pressed=true] { color: var(--navy); border-bottom-color: var(--navy); }
.panel-tabs .icon { width: 16px; height: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat-card { display: flex; gap: 11px; align-items: center; padding: 13px; border: 1px solid #e1e5eb; background: #fff; border-radius: 11px; min-width: 0; }
.stat-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; background: var(--soft); color: var(--navy); border-radius: 9px; }
.stat-icon .icon { width: 18px; height: 18px; }
.stat-card small { display: block; color: var(--muted); font-weight: 630; }
.stat-card strong { display: block; font-size: clamp(17px, 3vw, 26px); line-height: 1.15; letter-spacing: -.035em; margin-top: 3px; overflow-wrap: anywhere; }
.treasury-stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.panel-content { padding: 19px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-head h2 { font-size: 22px; letter-spacing: -.025em; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 11px; }
.search { display: flex; align-items: center; gap: 7px; padding: 0 8px; border: 1px solid #dce1e8; border-radius: 8px; background: #fff; width: min(100%, 320px); }
.search .icon { color: var(--muted); width: 17px; height: 17px; }
.search input { border: 0 !important; padding: 6px 0 !important; min-height: 35px !important; }
.filter { display: flex; align-items: center; gap: 7px; }
.filter select { min-width: 122px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
th, td { padding: 9px 8px; border-bottom: 1px solid #e9ecf0; vertical-align: middle; }
th { color: var(--muted); background: #f6f7f9; font-size: 12px; font-weight: 720; white-space: nowrap; }
tbody tr:hover { background: #fafbfd; }
td small { display: block; color: var(--muted); overflow-wrap: anywhere; margin-top: 2px; }
td:first-child { min-width: 134px; }
td .button { white-space: nowrap; }
.empty { color: var(--muted); border: 1px dashed #dce1e7; padding: 20px 10px; border-radius: 9px; text-align: center; }
.editor { display: grid; gap: 13px; }
.editor .button { justify-self: start; }
.editor-section { border-top: 1px solid var(--line); padding-top: 13px; display: grid; gap: 9px; }
.editor-section h3 { font-size: 16px; }
.editor-actions { border-top: 1px solid var(--line); padding-top: 13px; }
.event-delete-row { display: flex; justify-content: flex-end; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.translation-note { display: flex; align-items: center; gap: 8px; color: var(--navy); padding: 8px 10px; background: var(--soft); border-radius: 8px; font-size: 13px; }
.translation-note .icon { width: 16px; height: 16px; }
.localized { min-width: 0; }
.localized details { margin-top: 4px; }
.localized summary { width: fit-content; cursor: pointer; color: var(--navy); font-size: 12px; font-weight: 650; }
.translation-fields { padding: 7px 0 3px; }
.subtle { color: var(--muted); font-size: 13px; }
.switch { margin-top: 4px; }
.media-editor { display: grid; grid-template-columns: minmax(75px, 118px) minmax(0, 1fr); align-items: center; gap: 12px; }
.media-editor input { max-width: 480px; }
.media-preview { display: grid; place-items: center; height: 92px; border: 1px solid #e0e5ea; border-radius: 9px; background: #f7f8fa; color: var(--muted); overflow: hidden; }
.media-preview img { max-height: 100%; max-width: 100%; object-fit: contain; }
.chosen-file { font-weight: 700; }
.field-builders { display: grid; gap: 10px; }
.field-editor { padding: 12px; border: 1px solid #e2e7ed; background: #f9fafb; border-radius: 10px; }
.field-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.field-type-row { margin-top: 10px; align-items: end; }
.field-type-row .check-label { min-height: 40px; }
.options-editor { display: grid; gap: 8px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 9px; }
.option-editor { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 7px; }
.mail-list, .plain-list { margin: 0; padding: 0; list-style: none; }
.mail-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid var(--line); }
.mail-list strong, .mail-list small { display: block; overflow-wrap: anywhere; }
.mail-list small { color: var(--muted); }
.plain-list { margin: 6px 0 11px; }
.plain-list li { padding: 4px 0; }
.treasury-note { margin-bottom: 10px; }
.closing-balance { border: 1px solid #e1e6ef; border-radius: 10px; padding: 12px; margin-bottom: 13px; }
.closing-balance .section-head { align-items: end; flex-wrap: wrap; margin-bottom: 6px; }
.closing-balance h3 { font-size: 17px; }
.closing-balance .subtle { margin-bottom: 8px; }
.balance-date { grid-template-columns: auto auto; align-items: center; }
.negative { color: var(--danger); }
.expense-memo { white-space: pre-line; overflow-wrap: anywhere; }
.payment-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; align-items: start; border: 1px solid #e2e7ed; background: #f8fafc; padding: 11px; border-radius: 9px; margin-bottom: 8px; }
.payment-row > .icon-button { margin-top: 25px; }
.payee { font-size: 16px; margin: 1px 0 3px; }
[data-pay-form] { margin-top: 10px; }
[data-pay-form] .total-strip { margin: 0; }
dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid #dce1e7; border-radius: 15px; background: #fff; color: var(--ink); box-shadow: 0 10px 54px #10213947; }
dialog.wide { width: min(740px, calc(100vw - 24px)); }
dialog::backdrop { background: #13254087; }
dialog.site-menu { position: fixed; inset: 0 auto 0 0; width: min(315px, calc(100vw - 34px)); height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; }
.site-menu[open] { animation: drawer-slide .18s ease-out; }
@keyframes drawer-slide { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.drawer-inner { min-height: 100%; padding: 19px 15px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 4px 14px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 21px; }
.drawer-nav { display: grid; gap: 4px; margin-block: 12px; }
.drawer-nav a { display: flex; align-items: center; gap: 10px; min-height: 45px; padding: 7px 10px; border-radius: 8px; font-weight: 690; }
.drawer-nav a:hover, .drawer-nav a[aria-current=page] { background: var(--soft); color: var(--navy); }
.dialog-inner { padding: 17px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding-bottom: 11px; border-bottom: 1px solid var(--line); margin-bottom: 11px; }
.dialog-head h2 { font-size: 23px; }
.dialog-head .icon-button { flex: 0 0 auto; }
.full-flyer { width: auto; height: auto; max-height: 72vh; margin: auto; object-fit: contain; border-radius: 8px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 8px; margin-bottom: 10px; }
.detail-grid > div { border: 1px solid #e8ebef; padding: 8px 9px; border-radius: 8px; min-width: 0; }
.detail-grid dt { color: var(--muted); font-size: 12px; }
.detail-grid dd { margin: 1px 0 0; overflow-wrap: anywhere; font-weight: 650; }
.mail-text { white-space: pre-wrap; overflow-wrap: anywhere; background: #f7f8fa; padding: 12px; border-radius: 8px; margin-bottom: 11px; }
.mail-credit { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; margin-top: 14px; padding-top: 9px; }
.toast { z-index: 5; position: fixed; right: 14px; bottom: 14px; max-width: min(415px, calc(100vw - 28px)); padding: 11px 14px; border-radius: 9px; background: var(--navy-dark); color: #fff; box-shadow: 0 6px 22px #14264738; font-weight: 650; }
@media (max-width: 930px) {
  .wrap { width: calc(100% - 36px); }
  .topbar-inner { gap: 10px; }
  .registration { padding: 18px; }
  .poster-overlay { padding: 17px; }
}
@media (max-width: 690px) {
  .wrap { width: calc(100% - 26px); }
  .topbar-inner { min-height: 61px; gap: 8px; padding-block: 6px; }
  .topbar-brand { gap: 8px; }
  .brand-mark .icon { width: 31px; height: 31px; }
  .brand-text strong { font-size: 21px; }
  .event-hero { padding: 26px 0 18px; }
  .event-hero h1 { font-size: clamp(34px, 8vw, 44px); }
  .event-meta { margin-top: 9px; gap: 5px 12px; font-size: 13px; }
  .event-meta .icon { width: 15px; height: 15px; }
  .home-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .home-flyer:has(.poster.custom) { justify-self: center; }
  .gala-courses { grid-template-columns: minmax(0, 1fr); }
  .home-main { padding-block: 24px; }
  .home-copy h1 { font-size: clamp(36px, 9vw, 52px); }
  .poster { aspect-ratio: 1.67; }
  .event-facts { margin-top: 8px; }
  .event-facts div { padding: 7px 0; }
  .registration { padding: 15px; }
  .registration-main { padding-bottom: 26px; }
  .form-heading { padding-bottom: 12px; gap: 6px; }
  .form-heading h2 { font-size: 22px; }
  .form-heading p { margin-top: 4px; }
  .panel-main { padding: 18px 0 24px; }
  .panel-hero { display: grid; gap: 9px; margin-bottom: 12px; }
  .panel-controls { min-width: 0; }
  .panel-controls > .actions { justify-content: flex-start; }
  .panel-content { padding: 11px; }
  .stat-grid { gap: 6px; }
  .stat-card { padding: 8px; gap: 5px; align-items: flex-start; }
  .stat-card .stat-icon { display: none; }
  .stat-card small { font-size: 11px; }
  .treasury-stats { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
  .login-main { padding: 24px 0; }
  .login-card { padding: 17px; }
  .panel-tabs button { padding: 6px 6px; font-size: 12px; gap: 4px; }
  .fields.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 410px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 5px; }
  .footer-meta { justify-content: flex-start; }
  .fields.two, .fields.three { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .guest-fields, .guest-fields:has([data-age-label][hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guest-fields > label:first-child { grid-column: 1 / -1; }
  .form-heading { flex-direction: column; }
  .brand { gap: 5px; }
  .languages button { padding-inline: 5px; min-width: 27px; }
  .brand-text small { font-size: 10px; }
  .panel-tabs .icon { display: none; }
  .mail-list li { grid-template-columns: auto minmax(0, 1fr); }
  .mail-list li .button { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

[data-guest-section]:empty { display: none; }

.mail-editor { min-height: 17rem; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: white; overflow-wrap: anywhere; }
.mail-tools { margin: 8px 0; }
.mail-html { white-space: normal; }
.mail-editor a, .mail-html a { color: #174995; text-decoration: underline; }
.mail-editor ul, .mail-editor ol, .mail-html ul, .mail-html ol { padding-inline-start: 1.6em; }

.mail-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.mail-workspace textarea { width: 100%; font-family: ui-monospace, monospace; }
.mail-live { min-width: 0; overflow-wrap: anywhere; }
.mail-live h3 { margin: 0 0 8px; }
.mail-live > strong { display: block; margin-bottom: 8px; }
.mail-live .mail-html { min-height: 12rem; }
@media (max-width: 760px) {
  .mail-workspace { grid-template-columns: minmax(0, 1fr); }
}
