@font-face {
  font-family: "Golos Text";
  src: url("../fonts/GolosText-Variable.caa4693f600e.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111111;
  --ink-soft: #3c3c3c;
  --muted: #686868;
  --line: #d9d9d6;
  --line-strong: #b8b8b4;
  --paper: #f3f3f0;
  --surface: #ffffff;
  --surface-subtle: #e9e9e5;
  --action: #145cff;
  --action-dark: #0045d8;
  --danger: #b42318;
  --success: #147a4a;
  --warning: #8a5300;
  --radius: 12px;
  --sidebar: 224px;
  --focus: 0 0 0 3px rgba(20, 92, 255, .25);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); scroll-behavior: smooth; }
h1, h2, h3, .metric-strip strong, .finance-total strong { font-family: "Golos Text", "Avenir Next", sans-serif; }
body { margin: 0; min-width: 320px; overflow-x: hidden; }
body, button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { border-radius: 8px; }
button, a, input, select, textarea, summary { outline: none; }
:focus-visible { box-shadow: var(--focus); }
::selection { background: var(--action); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border: 3px solid var(--paper); border-radius: 8px; }

.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: 8px; font-weight: 700; line-height: 1; cursor: pointer; white-space: nowrap; transition: background .15s ease-out, border-color .15s ease-out, transform .15s ease-out; }
.button:active { transform: translateY(1px); }
.button--primary { background: var(--action); color: #fff; }
.button--primary:hover { background: var(--action-dark); }
.button--secondary { border-color: var(--ink); background: var(--surface); color: var(--ink); }
.button--secondary:hover, .button--quiet:hover { background: var(--surface-subtle); }
.button--quiet { border-color: var(--line); background: transparent; color: var(--ink); }
.button--danger { border-color: #e5b6b1; background: #fff7f6; color: var(--danger); }
.button--danger:hover { background: #fce8e6; }
.button--wide { width: 100%; }
.text-link { color: var(--action-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.link-button { padding: 0; border: 0; background: none; color: #a9a9a9; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.quiet-copy { color: var(--muted); line-height: 1.6; }

/* Public booking */
.public-body { background: #f7f7f4; }
.public-header { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 16px clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--line); background: rgba(247,247,244,.94); }
.brand img { display: block; height: auto; }
.brand--public img { width: 230px; }
.public-contact { display: flex; gap: 28px; color: var(--muted); font-size: 14px; }
.public-contact a { color: var(--ink); font-weight: 700; }
.booking-layout { display: grid; grid-template-columns: minmax(320px, .85fr) minmax(560px, 1.15fr); min-height: calc(100dvh - 178px); }
.booking-intro { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(44px, 7vw, 112px) clamp(24px, 6vw, 88px); background: var(--ink); color: #fff; }
.studio-location { margin: 0 0 24px; color: #bdbdbd; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.booking-intro h1 { max-width: 700px; margin: 0; font-size: clamp(44px, 6vw, 82px); line-height: .98; letter-spacing: -.035em; }
.booking-intro .intro-copy > p:last-child { max-width: 570px; margin: 32px 0 0; color: #d3d3d3; font-size: 18px; line-height: 1.55; }
.booking-intro .intro-copy strong { color: #fff; }
.booking-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 72px 0 0; background: #404040; border: 1px solid #404040; }
.booking-facts div { padding: 22px; background: var(--ink); }
.booking-facts dt { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.booking-facts dd { margin: 4px 0 0; color: #a9a9a9; font-size: 13px; }
.booking-form-panel { padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 88px); background: var(--surface); }
.form-heading { margin-bottom: 42px; }
.step-indicator { color: var(--action-dark); font-size: 13px; font-weight: 800; }
.form-heading h2 { margin: 8px 0; font-size: clamp(32px, 4vw, 50px); letter-spacing: -.03em; }
.form-heading p { margin: 0; color: var(--muted); }
.booking-form { max-width: 780px; }
.form-section { margin: 0 0 40px; padding: 0; border: 0; }
.form-section legend { width: 100%; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 800; }
.field-grid { display: grid; gap: 18px; }
.field-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: grid; gap: 8px; min-width: 0; }
.comment-field { margin-top: 24px; }
.field label, form > div > label { font-size: 13px; font-weight: 700; }
.field-control, .stack-form input, .stack-form select, .stack-form textarea, .filter-bar input, .filter-bar select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
textarea.field-control, .stack-form textarea { min-height: 100px; resize: vertical; }
.field-control:hover { border-color: var(--ink-soft); }
.field-control:focus { border-color: var(--action); box-shadow: var(--focus); }
.field-error { color: var(--danger); font-weight: 600; }
.field--error .field-control { border-color: var(--danger); }
.form-error { margin-bottom: 20px; padding: 14px 16px; border: 1px solid #e5b6b1; border-radius: 8px; background: #fff7f6; color: #7a1f16; line-height: 1.5; }
.form-error ul { margin: 0; padding-left: 20px; }
.availability { margin: 18px 0; min-height: 66px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--paper); }
.availability p { margin: 8px; color: var(--muted); }
.slot-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.slot { min-height: 44px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.slot:hover { border-color: var(--action); color: var(--action-dark); }
.slot[disabled] { background: transparent; color: #aaa; cursor: not-allowed; text-decoration: line-through; }
.slot.is-selected { border-color: var(--action); background: var(--action); color: #fff; }
.slot strong, .slot span { display: block; }
.slot strong { font-size: 14px; }
.slot span { margin-top: 2px; font-size: 10px; opacity: .72; text-decoration: none; }
.availability-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 12px; }
.availability-heading span { color: var(--muted); }
.selection-summary { display: grid; grid-template-columns: 1.4fr 1fr .7fr; margin-top: 18px; border: 1px solid var(--ink); background: var(--surface); transform-origin: 50% 0; }
.selection-summary[hidden] { display: none; }
.selection-summary > div { min-height: 82px; padding: 14px 16px; border-right: 1px solid var(--line-strong); }
.selection-summary > div:nth-child(3) { border-right: 0; }
.selection-summary span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.selection-summary strong { display: block; font-family: "Golos Text", sans-serif; font-size: 15px; }
.selection-summary > p { grid-column: 1 / -1; margin: 0; padding: 11px 16px; border-top: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.selection-summary.is-updating { animation: summary-settle .28s ease-out; }
@keyframes summary-settle { from { opacity: .55; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.consents { display: grid; gap: 12px; margin: 28px 0; }
.consents label { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); line-height: 1.4; }
.consents input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--action); }
.booking-submit { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.booking-submit div { display: grid; gap: 4px; }
.booking-submit span { color: var(--muted); font-size: 13px; }
.booking-submit strong { font-size: 18px; }
.booking-submit > div { max-width: 460px; }
.public-footer { display: flex; justify-content: space-between; padding: 24px clamp(20px, 5vw, 72px); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.confirmation-shell { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); max-width: 1240px; min-height: calc(100dvh - 205px); margin: 0 auto; padding: clamp(40px, 7vw, 96px) 24px; }
.confirmation-main { padding-right: clamp(30px, 7vw, 100px); }
.confirmation-main h1 { max-width: 760px; margin: 18px 0 44px; font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: -.035em; }
.status-line { display: inline-flex; padding: 8px 11px; border-radius: 999px; background: var(--surface-subtle); font-size: 13px; font-weight: 800; }
.deadline-block { padding: 28px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.deadline-block span { color: #bdbdbd; }
.deadline-block strong { display: block; margin: 5px 0; font-size: 48px; font-variant-numeric: tabular-nums; }
.deadline-block p { margin: 8px 0 0; color: #d5d5d5; line-height: 1.5; }
.deadline-block--success { background: var(--success); }
.booking-summary { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 34px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.booking-summary div { display: grid; gap: 6px; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.booking-summary span { color: var(--muted); font-size: 13px; }
.confirmation-aside { padding: 32px; border-left: 1px solid var(--line); }
.confirmation-aside h2 { margin: 0 0 10px; }
.amount { display: block; font-size: clamp(38px, 5vw, 60px); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.confirmation-aside > p { color: var(--muted); line-height: 1.6; }
.compact-list { margin: 36px 0 0; }
.compact-list div { display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.compact-list dt { color: var(--muted); }
.compact-list dd { margin: 0; font-weight: 700; text-align: right; }

/* Application shell */
.app-body { background: var(--paper); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar); display: flex; flex-direction: column; padding: 28px 20px 20px; background: var(--ink); color: #fff; }
.sidebar-close, .sidebar-backdrop { display: none; }
.brand--sidebar { display: flex; align-items: center; gap: 13px; margin-bottom: 48px; }
.brand-mark { display: grid; width: 46px; height: 52px; place-items: center; background: #fff; color: var(--ink); font-size: 38px; font-weight: 900; line-height: 1; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 19px; letter-spacing: .12em; }
.brand-copy small { color: #999; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.primary-nav { display: grid; gap: 5px; }
.primary-nav a { min-height: 42px; padding: 12px 14px; border-radius: 8px; color: #a9a9a9; font-weight: 650; }
.primary-nav a:hover { background: #252525; color: #fff; }
.primary-nav a[aria-current="page"] { background: #fff; color: var(--ink); }
.sidebar-footer { display: grid; gap: 7px; margin-top: auto; padding: 16px 10px 4px; border-top: 1px solid #333; }
.user-name { overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; }
.mobile-bar, .bottom-nav { display: none; }
.app-main { min-height: 100dvh; margin-left: var(--sidebar); padding: 46px clamp(24px, 4vw, 64px) 70px; }
.messages { display: grid; gap: 8px; margin-bottom: 18px; }
.message { padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.message--success { border-color: #94c9ad; color: #0e5e39; }
.message--error { border-color: #e5b6b1; color: var(--danger); }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.page-header h1 { margin: 0; font-size: clamp(34px, 4vw, 56px); line-height: 1; letter-spacing: -.035em; }
.date-line { margin: 0 0 9px; color: var(--muted); font-size: 13px; font-weight: 700; }
.header-subtitle { margin: 12px 0 0; color: var(--muted); }
.header-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 30px; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); background: var(--surface); }
.metric-strip div { display: grid; gap: 6px; min-height: 112px; padding: 20px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.metric-strip strong { align-self: end; font-size: 32px; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.metric-strip span { color: var(--muted); font-size: 13px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr); gap: 24px; align-items: start; }
.surface-section, .detail-block, .form-surface, .settings-section { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.surface-section { overflow: hidden; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font-size: 18px; }
.section-heading a { color: var(--action-dark); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.timeline-row { display: grid; grid-template-columns: 54px 8px minmax(180px, 1fr) auto auto; align-items: center; gap: 14px; min-height: 78px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.timeline-row:last-child { border-bottom: 0; }
.timeline-row:hover { background: #f8f8f5; }
.timeline-row time { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.timeline-row > div { display: grid; gap: 4px; }
.timeline-row > div span { color: var(--muted); font-size: 13px; }
.timeline-row > b { font-variant-numeric: tabular-nums; }
.hall-dot { width: 8px; height: 38px; border-radius: 4px; background: #111; }
.hall-dot--maliy { background: #767676; }
.hall-dot--light { background: var(--action); }
.status-badge { display: inline-flex; width: fit-content; align-items: center; min-height: 28px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-subtle); color: var(--ink-soft); font-size: 12px; font-weight: 800; white-space: nowrap; }
.status-badge--pending { border-color: #d9bd82; background: #fff8e8; color: var(--warning); }
.status-badge--payment_received { border-color: #a9c2ff; background: #f0f4ff; color: #1849a9; }
.status-badge--confirmed, .status-badge--completed { border-color: #a2ceb6; background: #edf8f2; color: var(--success); }
.status-badge--cancelled, .status-badge--expired { border-color: #e5b6b1; background: #fff7f6; color: var(--danger); }
.status-badge--large { padding: 9px 13px; font-size: 13px; }
.pending-list { display: grid; }
.pending-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.pending-row:last-child { border-bottom: 0; }
.pending-row:hover { background: #f8f8f5; }
.pending-row > div { display: grid; gap: 4px; }
.pending-row span { color: var(--muted); font-size: 12px; }
.pending-row time { color: var(--danger); font-size: 12px; font-weight: 800; }
.pending-panel .quiet-copy { padding: 20px; }
.empty-state { padding: 44px 24px; text-align: center; }
.empty-state h3 { margin: 0 0 7px; }
.empty-state p { margin: 0 0 14px; color: var(--muted); }
.empty-state a { color: var(--action-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* Calendar */
.week-board { display: grid; grid-template-columns: repeat(7, minmax(180px, 1fr)); overflow-x: auto; border: 1px solid var(--line-strong); background: var(--surface); }
.day-column { min-width: 180px; border-right: 1px solid var(--line-strong); }
.day-column:last-child { border-right: 0; }
.day-column > header { display: flex; align-items: baseline; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line-strong); }
.day-column > header span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.day-column > header strong { font-size: 28px; }
.day-column--today > header { background: var(--ink); color: #fff; }
.day-column--today > header span { color: #bbb; }
.hall-band { min-height: 160px; padding: 13px; border-bottom: 1px solid var(--line); }
.hall-band:last-child { border-bottom: 0; }
.hall-band h2 { margin: 0 0 11px; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.day-bookings { display: grid; gap: 7px; }
.calendar-booking { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--ink); border-radius: 6px; background: var(--paper); }
.calendar-booking:hover { background: var(--surface-subtle); }
.calendar-booking time { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.calendar-booking strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-booking span { color: var(--muted); font-size: 11px; }
.calendar-booking--pending { border-color: #c48a15; }
.calendar-booking--payment_received { border-color: var(--action); }
.calendar-booking--confirmed { border-color: var(--success); }
.free-label { color: #9a9a96; font-size: 12px; }

/* Tables and forms */
.filter-bar { display: flex; align-items: end; gap: 12px; margin-bottom: 18px; }
.filter-bar label { display: grid; gap: 6px; min-width: 220px; }
.filter-bar label span { color: var(--muted); font-size: 12px; font-weight: 700; }
.filter-search { flex: 1; }
.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { padding: 12px 16px; border-bottom: 1px solid var(--line-strong); color: var(--muted); font-size: 11px; letter-spacing: .04em; text-align: left; }
.data-table td { padding: 15px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #f8f8f5; }
.data-table a { display: grid; gap: 4px; }
.data-table td span { color: var(--muted); font-size: 12px; }
.data-table .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.form-surface { max-width: 940px; padding: clamp(22px, 4vw, 40px); }
.form-surface > h2 { margin-top: 0; }
.stack-form { display: grid; gap: 20px; }
.stack-form > div { display: grid; gap: 7px; }
.stack-form label { font-size: 13px; font-weight: 700; }
.stack-form .errorlist { margin: 0; padding-left: 20px; color: var(--danger); }
.form-actions { display: flex !important; flex-direction: row; justify-content: flex-end; gap: 10px !important; padding-top: 22px; border-top: 1px solid var(--line); }

/* Detail */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); gap: 24px; align-items: start; }
.detail-main, .detail-aside { display: grid; gap: 20px; }
.detail-block { padding: 24px; }
.detail-block .section-heading { margin: -24px -24px 20px; }
.booking-call-sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0; overflow: hidden; }
.booking-call-sheet > div { display: grid; gap: 5px; min-height: 132px; padding: 22px; border-right: 1px solid var(--line); }
.booking-call-sheet > div:last-child { border-right: 0; }
.booking-call-sheet span { color: var(--muted); font-size: 12px; }
.booking-call-sheet strong { align-self: end; font-size: 20px; }
.booking-call-sheet small { color: var(--muted); line-height: 1.4; }
.estimate-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.estimate-row > div { display: grid; gap: 4px; }
.estimate-row span { color: var(--muted); }
.estimate-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 22px; }
.estimate-total strong { font-size: 34px; font-variant-numeric: tabular-nums; }
.event-list { display: grid; }
.event-list > div { display: grid; grid-template-columns: 100px 1fr auto; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.event-list time, .event-list span { color: var(--muted); font-size: 12px; }
.payment-panel { padding: 26px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.payment-panel > span { color: #aaa; font-size: 12px; }
.payment-panel h2 { margin: 7px 0; }
.payment-panel .amount { margin: 26px 0 8px; }
.deadline-note { color: #c9c9c9; font-size: 13px; }
.action-details { margin-top: 24px; padding-top: 18px; border-top: 1px solid #3b3b3b; }
.action-details summary { cursor: pointer; font-weight: 700; }
.compact-form { margin-top: 16px; }
.compact-form input, .compact-form select { background: #fff; color: var(--ink); }
.compact-form label { color: #c8c8c8; }
.action-stack { display: grid; gap: 8px; margin-top: 18px; }
.compact-list-block h2 { margin-top: 0; }
.payment-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.payment-row > div { display: grid; gap: 3px; }
.payment-row span, .payment-row time { color: var(--muted); font-size: 12px; }

/* Settings and finance */
.settings-section { margin-bottom: 24px; padding: 24px; }
.settings-section > .section-heading { margin: -24px -24px 20px; }
.settings-section > h2 { margin-top: 0; }
.hall-settings { display: grid; }
.hall-settings article { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.hall-settings article:last-child { border-bottom: 0; }
.hall-settings h3 { margin: 4px 0; font-size: 22px; }
.hall-settings p { margin: 0; color: var(--muted); }
.hall-number { color: var(--muted); font-size: 12px; }
.hall-settings dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; background: var(--line); }
.hall-settings dl div { display: grid; gap: 7px; padding: 14px; background: var(--paper); }
.hall-settings dt { color: var(--muted); font-size: 12px; }
.hall-settings dd { margin: 0; font-weight: 800; }
.rule-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.rule-list > div { display: grid; gap: 7px; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rule-list span { color: var(--muted); }
.finance-total { margin-bottom: 24px; padding: 28px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.finance-total span { color: #aaa; }
.finance-total strong { display: block; margin: 8px 0; font-size: clamp(40px, 6vw, 72px); font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.finance-total p { margin: 0; color: #bbb; }

/* Login */
.login-body { background: var(--paper); }
.login-shell { display: grid; grid-template-columns: 1.2fr .8fr; min-height: 100dvh; }
.login-brand { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(38px, 7vw, 100px); background: var(--ink); color: #fff; }
.login-brand img { filter: invert(1); }
.login-brand p { max-width: 600px; margin: 0; color: #bbb; font-size: clamp(28px, 4vw, 52px); line-height: 1.08; letter-spacing: -.025em; }
.login-panel { display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: clamp(30px, 6vw, 84px); background: var(--surface); }
.login-panel h1 { margin: 0 0 10px; font-size: 42px; letter-spacing: -.03em; }
.login-panel p { margin: 0; color: var(--muted); }
.login-panel .stack-form { max-width: 430px; }

@media (max-width: 1100px) {
  .booking-layout { grid-template-columns: 1fr; }
  .booking-intro { min-height: 600px; }
  .booking-facts { margin-top: 54px; }
  .dashboard-grid, .detail-grid { grid-template-columns: 1fr; }
  .confirmation-shell { grid-template-columns: 1fr; }
  .confirmation-main { padding-right: 0; }
  .confirmation-aside { margin-top: 36px; border-top: 1px solid var(--line); border-left: 0; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  :root { --sidebar: 0px; }
  .public-header { min-height: 84px; }
  .brand--public img { width: 176px; }
  .public-contact span { display: none; }
  .sidebar { visibility: hidden; width: 250px; transform: translateX(-100%); transition: transform .2s ease-out, visibility 0s linear .2s; }
  .sidebar.is-open { visibility: visible; transform: translateX(0); transition-delay: 0s; }
  .sidebar-close { display: inline-flex; align-self: flex-end; margin: -8px -4px 18px 0; padding: 8px 4px; border: 0; background: transparent; color: #fff; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 29; border: 0; border-radius: 0; background: rgba(17, 17, 17, .54); cursor: pointer; }
  .menu-open .sidebar-backdrop { display: block; }
  .menu-open { overflow: hidden; }
  .mobile-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 9px 16px; border-bottom: 1px solid var(--line); background: rgba(243,243,240,.96); backdrop-filter: blur(12px); }
  .mobile-bar a, .menu-button { border: 0; background: none; color: var(--action-dark); font-size: 13px; font-weight: 800; }
  .menu-button { padding: 8px 0; cursor: pointer; }
  .app-main { margin-left: 0; padding: 28px 16px 94px; }
  .bottom-nav { position: fixed; inset: auto 0 0; z-index: 19; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px 5px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }
  .bottom-nav a { padding: 9px 4px; color: var(--muted); font-size: 11px; font-weight: 750; text-align: center; }
  .page-header { align-items: flex-start; }
  .page-header h1 { font-size: 38px; }
  .page-header--calendar { display: grid; }
  .booking-call-sheet { grid-template-columns: 1fr; }
  .booking-call-sheet > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .booking-call-sheet > div:last-child { border-bottom: 0; }
  .hall-settings article { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { min-height: 330px; }
}

@media (max-width: 580px) {
  .public-header { padding: 12px 16px; }
  .public-contact { display: none; }
  .booking-intro { min-height: 520px; padding: 48px 22px 28px; }
  .booking-intro h1 { font-size: 48px; }
  .booking-intro .intro-copy > p:last-child { font-size: 16px; }
  .booking-facts div { padding: 15px 11px; }
  .booking-facts dt { font-size: 24px; }
  .booking-form-panel { padding: 38px 20px 52px; }
  .field-grid--two, .field-grid--three { grid-template-columns: 1fr; }
  .selection-summary { grid-template-columns: 1fr 1fr; }
  .selection-summary > div { min-height: 76px; }
  .selection-summary > div:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .selection-summary > div:nth-child(2) { border-right: 1px solid var(--line-strong); }
  .slot-grid { grid-template-columns: repeat(3, 1fr); }
  .booking-submit { align-items: stretch; flex-direction: column; }
  .public-footer { flex-direction: column; gap: 6px; }
  .confirmation-main h1 { font-size: 46px; }
  .confirmation-shell { padding: 38px 18px 60px; }
  .booking-summary { grid-template-columns: 1fr; }
  .confirmation-aside { padding: 28px 0 0; }
  .page-header { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
  .page-header > * { min-width: 0; }
  .page-header h1 { max-width: 100%; font-size: 34px; line-height: 1.08; overflow-wrap: break-word; }
  .page-header > .button { width: 100%; }
  .surface-section, .pending-row > div { min-width: 0; }
  .pending-row strong, .empty-state { overflow-wrap: anywhere; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric-strip div { min-height: 96px; padding: 15px; }
  .metric-strip strong { font-size: 25px; }
  .timeline-row { grid-template-columns: 48px 6px 1fr; }
  .timeline-row .status-badge, .timeline-row > b { display: none; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .filter-bar label { min-width: 0; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .rule-list, .hall-settings dl { grid-template-columns: 1fr; }
  .event-list > div { grid-template-columns: 82px 1fr; }
  .event-list > div span { grid-column: 2; }
  .login-brand { min-height: 260px; padding: 34px 24px; }
  .login-brand p { font-size: 28px; }
  .login-panel { padding: 42px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.error-page { min-height: 70vh; display: grid; place-content: center; justify-items: start; padding: 32px; }
.error-page > p:first-child { margin: 0; color: var(--action); font-size: 14px; font-weight: 700; letter-spacing: .12em; }
.error-page h1 { margin: 8px 0 24px; font-size: clamp(38px, 7vw, 86px); letter-spacing: -.05em; }
.archive-section { margin-top: 28px; }
.finance-total--archive { margin: 16px 0; background: var(--surface-alt); color: var(--ink); }
