.ad-root {
  --ad-accent: #6840e8;
  --ad-ink: #211a32;
  --ad-muted: #656071;
  --ad-line: #e7e6ec;
  --ad-bg: #f7f7fa;
  --ad-card: #fff;
  --ad-radius: 19px;
  min-height: 100vh;
  background: var(--ad-bg);
  color: var(--ad-ink);
  font-family: var(--body-font, 'Onest', 'Inter', Arial, sans-serif);
  font-size: 14px;
}
.ad-root *, .ad-root *::before, .ad-root *::after { box-sizing: border-box; }
.ad-root h1, .ad-root h2, .ad-root h3, .ad-root p { margin: 0; }
.ad-root a { color: inherit; text-decoration: none; }
.ad-root [hidden] { display: none !important; }
.ad-root button, .ad-root input, .ad-root select, .ad-root textarea { font: inherit; }
.ad-root button { cursor: pointer; }
.ad-root button:disabled { cursor: default; opacity: .6; }
.ad-root button:focus-visible, .ad-root a:focus-visible, .ad-root input:focus-visible, .ad-root select:focus-visible, .ad-root textarea:focus-visible {
  outline: 2px solid var(--ad-accent);
  outline-offset: 2px;
}
.ad-wrap { width: min(1340px, calc(100% - 96px)); margin-inline: auto; }
.ad-top { min-height: 69px; border-bottom: 1px solid var(--ad-line); background: var(--ad-card); }
.ad-top-inner { min-height: inherit; display: flex; align-items: center; gap: 20px; }
.ad-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 800; letter-spacing: -.065em; }
.ad-brand svg { color: var(--ad-accent); flex: none; }
.ad-top-label { color: var(--ad-muted); border-left: 1px solid var(--ad-line); padding-left: 20px; line-height: 24px; font-size: 12px; }
.ad-profile { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.ad-profile strong, .ad-profile small { display: block; white-space: nowrap; }
.ad-profile strong { font-size: 12px; max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
.ad-profile small { margin-top: 2px; font-size: 11px; color: var(--ad-muted); }
.ad-avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: none; color: #5b38c4; background: #efeaff; border-radius: 50%; font-weight: 750; font-size: 12px; }
.ad-icon-btn { width: 35px; height: 35px; padding: 0; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 9px; color: var(--ad-muted); background: transparent; flex: none; }
.ad-icon-btn:hover { color: var(--ad-accent); background: #f2edfe; }
.ad-outline-icon { border-color: var(--ad-line); background: #fff; width: 42px; height: 42px; }
.ad-main { padding: 43px 0 54px; }
.ad-heading, .ad-context, .ad-heading-actions { display: flex; align-items: center; }
.ad-heading { justify-content: space-between; gap: 24px; align-items: flex-end; }
.ad-context, .ad-heading-actions { flex-wrap: wrap; gap: 8px; }
.ad-heading-actions { padding-bottom: 2px; flex: none; }
.ad-event-select { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: #fff; border: 1px solid var(--ad-line); border-radius: 8px; color: var(--ad-muted); font-size: 11px; }
.ad-event-select select { appearance: none; border: none; background: transparent; color: var(--ad-ink); padding: 0 16px 0 0; font-size: 12px; font-weight: 650; max-width: 190px; cursor: pointer; }
.ad-event-select svg { position: absolute; right: 8px; color: var(--ad-ink); pointer-events: none; }
.ad-live { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 660; color: var(--ad-muted); border-radius: 999px; padding: 6px 9px; background: #eeedf2; }
.ad-live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ad-live.is-live { color: #176e56; background: #e6f5ee; }
.ad-draft { border-radius: 999px; padding: 6px 9px; font-size: 11px; font-weight: 660; color: #7d4b18; background: #fcf1df; }
.ad-event-title { font-size: clamp(30px, 4vw, 55px); line-height: 1.01; letter-spacing: -.067em; font-weight: 790; padding-top: 13px; overflow-wrap: anywhere; }
.ad-heading p { margin-top: 10px; color: var(--ad-muted); }
.ad-btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; padding: 8px 13px; border-radius: 9px; line-height: 1.2; color: var(--ad-ink); background: transparent; font-size: 13px !important; font-weight: 660 !important; text-align: center; }
.ad-btn svg { flex: none; }
.ad-root .ad-primary { color: #fff; background: var(--ad-accent); }
.ad-primary:hover { background: #552bcf; }
.ad-root .ad-secondary { color: var(--ad-ink); background: #fff; border-color: var(--ad-line); }
.ad-secondary:hover, .ad-secondary[aria-pressed="true"] { color: var(--ad-accent); background: #f6f2ff; border-color: #d9cbfe; }
.ad-tabs { margin-top: 25px; margin-bottom: 18px; display: flex; align-items: stretch; gap: 16px; border-bottom: 1px solid var(--ad-line); overflow-x: auto; }
.ad-tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 47px; white-space: nowrap; padding: 0 11px; border: 0; border-bottom: 2px solid transparent; color: var(--ad-muted); background: none; font-weight: 650 !important; }
.ad-tab.is-current, .ad-tab:hover { color: var(--ad-accent); }
.ad-tab.is-current { border-bottom-color: var(--ad-accent); }
.ad-card { border: 1px solid var(--ad-line); border-radius: var(--ad-radius); background: var(--ad-card); min-width: 0; box-shadow: 0 1px 2px #26164704; }
.ad-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.ad-stats-with-sales { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ad-stat { padding: 16px 18px; }
.ad-stat > span { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--ad-muted); font-size: 12px; font-weight: 590; }
.ad-stat > span svg { flex: none; }
.ad-stat strong { font-size: 30px; line-height: 1.05; font-weight: 760; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.ad-dot { width: 8px; height: 8px; display: inline-block; flex: none; border-radius: 50%; background: #a6a0b0; }
.ad-dot.status-free { background: #c0b5d7; }
.ad-dot.status-reserved { background: #edaa49; }
.ad-dot.status-received { background: #53a0e9; }
.ad-dot.status-transferred { background: #ab73e3; }
.ad-dot.status-paid { background: #46ad83; }
.ad-dot.status-occupied { background: #635b73; }
.ad-dot.status-paused { background: #bf8450; }
.ad-dot.status-withdrawn { background: #9c5267; }
.ad-main-grid, .ad-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 315px; align-items: start; gap: 16px; }
.ad-card-head { padding: 17px 19px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ad-card-head h2, .ad-side-top h2 { font-size: 17px; font-weight: 750; letter-spacing: -.04em; }
.ad-card-head p, .ad-section-head p { color: var(--ad-muted); font-size: 12px; line-height: 1.55; margin-top: 3px; }
.ad-arena { margin: 0 13px; min-height: 360px; height: clamp(425px, 46vw, 680px); border: 1px solid #ebeaf0; border-radius: 13px; }
.ad-editor-grid .ad-arena { margin-bottom: 13px; }
.ad-arena[data-arena-mode="admin"] .arena-seat[data-status="free"][data-selected="false"] { fill: #c0b5d7; }
.ad-map-footer { padding: 13px 19px 16px; }
.ad-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; color: var(--ad-muted); font-size: 11px; }
.ad-legend span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.ad-sale-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 8px; padding: 0 13px 12px; }
.ad-sale-picker .ad-btn { min-height: 39px; }
.ad-form.ad-sale-actions { gap: 8px; }
.ad-sale-review { display: none; }
.ad-side { min-height: 330px; }
.ad-side-top { min-height: 56px; padding: 12px 16px; border-bottom: 1px solid var(--ad-line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ad-side-body { padding: 16px; }
.ad-seat-empty { padding: 42px 21px 35px; display: grid; justify-items: center; text-align: center; }
.ad-seat-empty > span, .ad-empty > span { width: 51px; height: 51px; display: grid; place-items: center; border-radius: 14px; background: #f0ebfb; color: #6a43d5; margin-bottom: 16px; }
.ad-seat-empty h3 { font-size: 14px; font-weight: 700; }
.ad-seat-empty p, .ad-empty p { margin-top: 7px; color: var(--ad-muted); font-size: 13px; max-width: 290px; line-height: 1.5; }
.ad-booked-summary { border-radius: 11px; background: #f7f5fc; padding: 12px; margin-bottom: 14px; }
.ad-booked-summary h3 { font-size: 15px; margin-bottom: 4px; font-weight: 750; overflow-wrap: anywhere; }
.ad-booked-summary > div { color: var(--ad-muted); font-size: 12px; }
.ad-manage-seat { width: 100%; }
.ad-state-pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; background: #fff; padding: 4px 7px; font-size: 11px; font-weight: 650; color: var(--ad-muted); margin-bottom: 8px; }
.ad-panel-note { color: var(--ad-muted); font-size: 13px; line-height: 1.5; }
.ad-buyer-readonly { margin-bottom: 8px !important; overflow-wrap: anywhere; }
.ad-history-trigger { width: 100%; margin-top: 12px; }
.ad-history-trigger[aria-expanded="true"] { color: var(--ad-accent); background: #f6f2ff; border-color: #d9cbfe; }
[data-seat-history] { margin-top: 10px; padding: 10px 12px; background: #f7f5fc; border-radius: 9px; color: var(--ad-muted); font-size: 12px; }
.ad-history-list { display: grid; gap: 9px; max-height: 285px; overflow: auto; list-style: none; padding: 0; margin: 0; }
.ad-history-list li { display: grid; gap: 3px; }
.ad-history-list li + li { border-top: 1px solid var(--ad-line); padding-top: 8px; }
.ad-history-list strong { color: var(--ad-ink); font-size: 12px; }
.ad-history-list small { font-size: 11px; overflow-wrap: anywhere; }
.ad-booking-count { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 8px; color: var(--ad-accent); font-weight: 700; }
.ad-booking-count strong { color: var(--ad-ink); font-size: 17px; }
.ad-selected-seats { max-height: 160px; overflow: auto; margin-bottom: 15px; border-block: 1px solid var(--ad-line); }
.ad-selected-seats > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 34px; padding-left: 2px; font-size: 12px; }
.ad-selected-seats > div + div { border-top: 1px solid var(--ad-line); }
.ad-selected-seats > div .ad-dot { margin-inline-end: 6px; }
.ad-selected-seats .ad-selected-more { color: var(--ad-muted); }
.ad-selected-seats .ad-icon-btn { width: 27px; height: 27px; }
.ad-form { display: grid; align-items: start; gap: 12px; }
.ad-field { display: grid; align-content: start; min-width: 0; gap: 5px; }
.ad-field > span { color: var(--ad-ink); font-weight: 690; font-size: 12px; line-height: 1.25; }
.ad-field input, .ad-field textarea, .ad-field select { display: block; width: 100%; min-width: 0; min-height: 39px; padding: 8px 10px; color: var(--ad-ink); border: 1px solid var(--ad-line); border-radius: 8px; background: #fff; font-size: 13px; }
.ad-field input[readonly] { background: #f4f3f7; }
.ad-field input[type="color"] { padding: 4px; min-height: 43px; cursor: pointer; }
.ad-field textarea { resize: vertical; }
.ad-field ::placeholder { color: #7f778b; }
.ad-field small { color: var(--ad-muted); font-size: 11px; line-height: 1.3; }
.ad-form-error { padding: 10px 12px; border-radius: 8px; color: #a32639; background: #fff0f2; line-height: 1.4; font-size: 12px; }
.ad-form-error [data-action="reload-seat"], .ad-form-error [data-action="reload-selection"] { display: block; color: inherit; }
.ad-text-button { border: none; padding: 0; background: transparent; color: var(--ad-accent); font-size: 12px !important; text-align: start; font-weight: 700 !important; min-height: 24px; }
.ad-text-button:hover { text-decoration: underline; }
.ad-side .ad-text-button { justify-self: center; }
.ad-danger { color: #a32639; }
.ad-form-cols, .ad-colors, .ad-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ad-colors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ad-settings-grid { grid-template-columns: minmax(0, 1fr) minmax(270px, .62fr); align-items: start; gap: 16px; }
.ad-settings { padding: 20px; }
.ad-section-head { margin-bottom: 15px; }
.ad-section-head h2, .ad-dialog h2 { font-size: 21px; font-weight: 760; letter-spacing: -.047em; }
.ad-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 15px; }
.ad-editor-head .ad-section-head { margin-bottom: 0; }
.ad-editor-head .ad-text-button { margin-bottom: 5px; }
.ad-editor-save { display: grid; justify-items: end; align-items: center; gap: 8px; }
.ad-editor-panels { display: grid; gap: 12px; }
.ad-editor-panels .ad-section-head h2 { font-size: 17px; }
.ad-editor-panels .ad-section-head:last-child { margin-bottom: 0; }
.ad-layout-warning { margin-bottom: 12px; }
.ad-layout-warning button { margin-left: 4px; }
.ad-check { display: flex; align-items: flex-start; gap: 7px; min-height: 22px; font-size: 13px; color: var(--ad-ink); }
.ad-check input { width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--ad-accent); }
.ad-settings-actions { border-top: 1px solid var(--ad-line); margin-top: 5px; padding-top: 12px; }
.ad-poster-pick input { min-height: unset; }
.ad-brand-preview { overflow: hidden; border-radius: 14px; border: 1px solid var(--ad-line); background: var(--preview-background); color: var(--preview-foreground); }
.ad-preview-image { width: 100%; aspect-ratio: 2.1; background: linear-gradient(133deg, var(--preview-accent), #211838 85%); overflow: hidden; }
.ad-preview-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-preview-body { display: grid; justify-items: start; gap: 10px; padding: 18px; }
.ad-preview-body small { font-size: 9px; letter-spacing: .08em; font-weight: 740; }
.ad-preview-body strong { font-size: clamp(21px, 2.6vw, 29px); line-height: 1.05; font-weight: 790; letter-spacing: -.05em; overflow-wrap: anywhere; }
.ad-preview-body > span { font-size: 12px; }
.ad-preview-body i { display: flex; align-items: center; gap: 6px; font-size: 11px; font-style: normal; font-weight: 650; color: #fff; background: var(--preview-accent); padding: 7px 9px; border-radius: 7px; }
.ad-members-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ad-people-table { overflow-x: auto; }
.ad-people-table table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.ad-people-table th, .ad-people-table td { border-bottom: 1px solid var(--ad-line); padding: 10px; }
.ad-people-table th { color: var(--ad-muted); font-size: 12px; font-weight: 650; }
.ad-people-table td { font-size: 13px; }
.ad-people-table td small { display: block; color: var(--ad-muted); margin-top: 3px; }
.ad-people-table tr:last-child td { border-bottom: 0; }
.ad-people-table td:last-child { text-align: right; }
.ad-person, .ad-person-status { display: flex; align-items: center; gap: 8px; }
.ad-booking-filters { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 230px); gap: 12px; margin-bottom: 16px; }
.ad-booking-more { margin-top: 12px; }
.ad-empty { display: grid; justify-items: center; text-align: center; padding: 51px 19px; }
.ad-empty > svg { color: var(--ad-accent); margin-bottom: 14px; }
.ad-empty h2 { font-size: 23px; }
.ad-empty .ad-btn { margin-top: 16px; }
.ad-dialog { width: min(440px, calc(100vw - 28px)); max-height: calc(100vh - 30px); padding: 21px; color: var(--ad-ink); border: 1px solid var(--ad-line); border-radius: 17px; box-shadow: 0 22px 92px #20123745; }
.ad-dialog::backdrop { background: #241b3b61; backdrop-filter: blur(2px); }
.ad-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ad-toast { position: fixed; z-index: 5; inset: auto 22px 22px auto; max-width: min(420px, calc(100vw - 44px)); display: flex; align-items: flex-start; gap: 8px; padding: 13px 15px; border-radius: 11px; color: #fff; background: #241831; box-shadow: 0 8px 35px #21153a28; line-height: 1.4; }
.ad-toast svg { flex: none; }
.ad-toast.is-error { background: #8f2439; }
.ad-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ad-loading { min-height: 80vh; display: grid; place-items: center; color: var(--ad-muted); }
.ad-login { display: grid; grid-template-columns: minmax(400px, .9fr) minmax(400px, 1.1fr); min-height: 100vh; background: #fff; }
.ad-login-art { display: grid; position: relative; grid-template-rows: auto 1fr; align-items: center; overflow: hidden; min-height: 100vh; padding: clamp(28px, 5vw, 82px); background: #211439; color: #f9f8ff; isolation: isolate; }
.ad-login-brand { display: flex; align-items: center; gap: 7px; font-size: 21px; font-weight: 750; letter-spacing: -.05em; }
.ad-login-brand svg { color: #a891f7; }
.ad-login-art-type { display: grid; gap: 11px; z-index: 1; }
.ad-login-art-type strong { font-size: clamp(39px, 6.2vw, 100px); line-height: .92; letter-spacing: -.083em; font-weight: 760; }
.ad-login-art-type strong span { color: #ab8cff; }
.ad-login-shapes { position: absolute; top: 56%; left: 18%; width: 90%; aspect-ratio: 1; transform: rotate(-35deg); z-index: -1; }
.ad-login-shapes i { display: block; position: absolute; inset: 0; border-radius: 32%; border: 1px solid #b99bff69; background: #6334c994; box-shadow: inset 0 0 60px #c1aaff35; }
.ad-login-shapes i:nth-child(2) { transform: translate(13%, 12%); background: #743af286; }
.ad-login-shapes i:nth-child(3) { transform: translate(26%, 24%); background: #9b72f574; }
.ad-login-side { display: grid; place-items: center; padding: 40px clamp(22px, 6vw, 85px); }
.ad-login-content { width: min(100%, 420px); }
.ad-root .ad-back { display: inline-block; margin-bottom: 23px; color: var(--ad-accent); font-size: 13px; font-weight: 670; }
.ad-back:hover { text-decoration: underline; }
.ad-login h1 { font-size: clamp(30px, 3.9vw, 47px); line-height: 1.08; letter-spacing: -.068em; font-weight: 770; }
.ad-login p { margin-top: 10px; margin-bottom: 25px; line-height: 1.45; color: var(--ad-muted); }
.ad-login .ad-field input { min-height: 47px; }
.ad-login .ad-form { gap: 14px; }
.ad-login-submit { display: flex; justify-content: space-between; margin-top: 3px; min-height: 47px; }
@media (max-width: 1050px) {
  .ad-wrap { width: min(1340px, calc(100% - 48px)); }
  .ad-main-grid, .ad-editor-grid { grid-template-columns: minmax(0, 1fr) 275px; }
  .ad-main { padding-top: 34px; }
  .ad-arena { height: 470px; }
  .ad-stats-with-sales { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 790px) {
  .ad-wrap { width: calc(100% - 30px); }
  .ad-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  .ad-heading-actions { flex: auto; }
  .ad-tabs { margin-top: 13px; }
  .ad-main-grid, .ad-editor-grid, .ad-settings-grid { grid-template-columns: 1fr; }
  .ad-side { min-height: 220px; }
  .ad-seat-empty { padding-block: 26px; }
  .ad-editor-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .ad-sale-review { display: inline-flex; margin-top: 12px; }
  .ad-login { grid-template-columns: 1fr; }
  .ad-login-art { min-height: 0; padding: 24px; }
  .ad-login-art-type { display: none; }
  .ad-login-side { align-items: start; }
}
@media (max-width: 520px) {
  .ad-top { min-height: 58px; }
  .ad-top-inner { gap: 7px; }
  .ad-top-label { display: none; }
  .ad-profile strong { max-width: 115px; }
  .ad-profile small { font-size: 9px; }
  .ad-avatar { width: 30px; height: 30px; }
  .ad-main { padding-top: 22px; }
  .ad-tabs { gap: 0; }
  .ad-tab { font-size: 12px !important; padding-inline: 8px; }
  .ad-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ad-stat { padding: 12px; border-radius: 12px; }
  .ad-stat strong { font-size: 25px; }
  .ad-card-head { align-items: flex-start; padding: 13px; }
  .ad-card-head h2 { font-size: 15px; }
  .ad-card-head p { font-size: 11px; }
  .ad-map-edit { max-width: 113px; padding-inline: 7px; font-size: 11px !important; }
  .ad-map-edit svg { width: 13px; }
  .ad-arena { margin-inline: 8px; min-height: 300px; height: min(88vw, 450px); }
  .ad-map-footer { padding-inline: 13px; }
  .ad-sale-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 8px; }
  .ad-editor-head { align-items: flex-start; flex-direction: column; }
  .ad-editor-save { justify-items: start; }
  .ad-editor-panels { grid-template-columns: 1fr; }
  .ad-members-head { display: grid; justify-items: start; gap: 0; }
  .ad-members-head .ad-btn { margin-bottom: 12px; }
  .ad-booking-filters { grid-template-columns: minmax(0, 1fr); }
  .ad-login-side { padding-inline: 24px; }
}
