:root {
  color-scheme: dark;
  --bg: #06111b;
  --panel: #0a1c2a;
  --panel-2: #0d2232;
  --panel-3: #102a3a;
  --line: #183b4f;
  --text: #f2f7fa;
  --muted: #8196a7;
  --cyan: #31d3df;
  --green: #42d89b;
  --yellow: #f5c45a;
  --red: #f36f85;
  --purple: #c989f5;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body.has-result-modal { overflow: hidden; }
body { font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 0; }
button, input { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  background: #071722;
  border-bottom: 2px solid var(--cyan);
}
.brand { color: #fff; text-decoration: none; font-size: 22px; font-weight: 800; }
.topbar h1 { margin: 0; font-size: 21px; font-weight: 650; }
.live-badge { padding: 5px 16px; border: 1px solid var(--green); border-radius: 6px; color: var(--green); font-size: 13px; }
.updated { color: var(--muted); font-size: 13px; }
.top-metrics { margin-left: auto; display: flex; align-items: center; gap: 38px; font-size: 14px; }
.top-metrics span { color: var(--muted); }
.top-metrics span b { color: var(--green); margin-right: 5px; font-size: 16px; }
.top-metrics strong { min-width: 220px; text-align: right; font-size: 18px; }

.screen-shell {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(360px, 3fr);
  gap: 16px;
  min-height: calc(100vh - 72px);
  padding: 14px 32px 32px;
}
.availability { min-width: 0; }
.section-heading { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.section-heading > div:first-child { display: flex; align-items: baseline; gap: 24px; }
h2, h3, p { margin: 0; }
.section-heading h2 { font-size: 27px; }
.section-heading p { color: var(--muted); font-size: 13px; }
.legend { display: flex; align-items: center; gap: 8px; }
.legend > span, .refresh-button { height: 30px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid var(--line); background: transparent; font-size: 12px; }
.legend .free { color: var(--green); border-color: var(--green); background: #10372f; }
.legend .selected { color: var(--cyan); border-color: var(--cyan); background: #0d4350; }
.legend .soon { color: var(--yellow); border-color: var(--yellow); background: #3b3220; }
.legend .busy { color: var(--muted); background: #172632; }
.legend .disabled { color: var(--red); border-color: var(--red); background: #3a2029; }
.refresh-button { color: var(--cyan); }

.floor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.floor-panel { min-width: 0; padding: 12px 14px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.floor-panel > header { height: 44px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.floor-panel > header > div { display: flex; align-items: center; gap: 16px; }
.floor-panel > header b { color: var(--cyan); font-size: 23px; }
.floor-panel-2 > header b { color: var(--purple); }
.floor-panel > header h3 { font-size: 17px; }
.floor-panel > header strong { margin-left: auto; color: var(--green); font-size: 14px; }
.area-list { display: grid; gap: 7px; padding-top: 10px; }
.area-card { min-width: 0; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 66px; padding: 8px 10px 8px 14px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 7px; background: var(--panel-2); }
.area-card h4 { margin: 0 0 4px; font-size: 15px; }
.area-card .area-meta { color: var(--muted); font-size: 11px; line-height: 1.5; }
.seat-grid { display: grid; grid-template-columns: repeat(10, minmax(30px, 1fr)); gap: 5px; }
.seat-button { min-width: 0; height: 27px; padding: 0 4px; border-radius: 5px; border: 1px solid #324758; color: #738899; background: #172632; font-size: 11px; font-weight: 650; }
.seat-button.is-free { color: #93f2ce; border-color: var(--green); background: #0e3b37; }
.seat-button.is-selected { color: #fff; border-color: var(--cyan); background: #0d4350; box-shadow: inset 0 0 0 1px var(--cyan); }
.seat-button.is-soon { color: #ffe29a; border-color: var(--yellow); background: #3b3220; }
.seat-button.is-disabled { color: #ffa3b3; border-color: var(--red); background: #3a2029; }
.seat-button:disabled { cursor: default; }
.room-grid { display: grid; grid-template-columns: repeat(4, minmax(84px, 1fr)); gap: 7px; }
.room-grid.is-single-room { width: 100%; grid-template-columns: minmax(0, 1fr); justify-self: start; }
.room-grid.is-single-room.is-seats-2 { max-width: 90px; }
.room-grid.is-single-room.is-seats-3 { width: calc((100% - 21px) / 4); }
.room-grid.is-single-room.is-seats-5 { width: calc(50% + 12px); }
.room-card { min-width: 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #122a39; }
.room-card.is-fully-free { border-color: #27896e; background: linear-gradient(90deg, rgba(47, 226, 164, .07), rgba(18, 42, 57, .96) 44%); }
.room-card header { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; }
.room-label { flex: 0 0 auto; }
.room-summary { min-width: 0; display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
.room-summary b { flex: 0 0 auto; color: var(--muted); }
.room-card.is-fully-free .room-summary b { color: var(--green); }
.room-seats { display: flex; gap: 4px; margin-top: 5px; }
.room-grid.is-single-room .room-seats { display: grid; }
.room-grid.is-single-room.is-seats-2 .room-seats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.room-grid.is-single-room.is-seats-3 .room-seats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.room-grid.is-single-room.is-seats-5 .room-seats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.room-seats .seat-button { flex: 1; }

.price-reference, .platform-activities { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel-2); }
.price-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.price-title h3 { font-size: 16px; }
.price-title span { color: var(--muted); font-size: 10px; }
.price-row { display: grid; grid-template-columns: 126px 90px 1fr; min-height: 25px; align-items: center; border-top: 1px solid #143246; font-size: 10px; }
.price-row:first-child { border-top: 0; }
.price-row b { color: var(--cyan); }
.price-row span:last-child { color: var(--muted); text-align: right; }
.price-row.is-morning { min-height: 29px; border-color: #5d4925; background: #30291c; }
.price-row.is-morning > span:first-child { padding-left: 5px; color: var(--yellow); font-weight: 700; }
.price-row.is-morning b { color: var(--yellow); }
.price-row.is-morning > span:last-child { padding-right: 5px; color: #e4cf9a; }
.new-member-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.new-member-offers > span { min-height: 36px; padding: 5px 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--yellow); border-radius: 5px; background: #30291c; }
.new-member-offers small, .new-member-offers b { display: block; }
.new-member-offers small { color: var(--yellow); font-size: 8px; }
.new-member-offers b { font-size: 11px; }
.activity-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.activity-group { min-width: 0; }
.activity-group > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; color: var(--cyan); font-size: 10px; }
.activity-group > header span { color: var(--muted); font-size: 8px; }
.activity-card-list { display: grid; gap: 3px; }
.activity-card { min-width: 0; min-height: 38px; padding: 5px 7px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; align-items: center; border: 1px solid #143246; border-radius: 5px; background: #081822; }
.activity-card > div { min-width: 0; }
.activity-card strong, .activity-card small { display: block; }
.activity-card > div strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.activity-card small { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.activity-card > span { text-align: right; }
.activity-card > span b { color: var(--green); font-size: 11px; }
.data-message { min-height: 22px; padding: 6px 4px 0; color: var(--yellow); font-size: 12px; }

.calculator { min-width: 0; padding: 20px 22px; border: 1px solid var(--line); border-top: 4px solid var(--cyan); border-radius: 8px; background: var(--panel); }
.calculator-heading { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.calculator-heading h2 { font-size: 22px; }
.calculator-heading p { margin-top: 3px; color: var(--muted); font-size: 11px; }
.calculator-heading-actions { display: flex; align-items: center; gap: 8px; }
.calculator-heading-actions > span { color: var(--cyan); font-size: 12px; font-weight: 650; }
.reset-button { min-width: 54px; height: 32px; padding: 0 11px; border: 1px solid #355264; border-radius: 6px; color: #b9c8d3; background: #102330; font-size: 11px; font-weight: 700; cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.reset-button:hover, .reset-button:focus-visible { border-color: var(--cyan); color: #fff; background: #0d4350; outline: none; }
.reset-button:active { transform: translateY(1px); }
.reset-button.is-confirmed { border-color: var(--green); color: var(--green); }
.selected-seat { margin-top: 14px; min-height: 78px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 7px; background: #0d2e3b; }
.selected-seat span, .selected-seat small { display: block; color: var(--muted); font-size: 10px; }
.selected-seat strong { display: block; margin: 4px 0; font-size: 16px; }
.selected-seat.has-seat { border-color: var(--cyan); }
.selected-seat.has-seat small { color: var(--green); }
.field-title { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 8px; }
.field-title h3 { font-size: 13px; }
.field-title span { color: var(--muted); font-size: 9px; }
.member-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.member-inputs label, .balance-field, .start-time-field { position: relative; display: block; }
.member-inputs label span { position: absolute; left: 12px; top: 6px; color: var(--muted); font-size: 9px; }
input { width: 100%; height: 50px; padding: 17px 12px 4px; border: 1px solid var(--line); border-radius: 6px; outline: 0; color: var(--text); background: var(--bg); font-size: 12px; }
input:focus { border-color: var(--cyan); }
.lookup-button, .calculate-button { width: 100%; height: 46px; margin-top: 10px; border-radius: 6px; font-weight: 700; }
.lookup-button { border: 1px solid var(--cyan); color: #fff; background: #0d4350; }
.calculate-button { border: 0; color: #041017; background: var(--cyan); }
.lookup-button:disabled, .calculate-button:disabled { cursor: wait; opacity: .55; }
.member-result { min-height: 68px; margin-top: 10px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel-2); }
.member-result strong, .member-result span { display: block; }
.member-result strong { font-size: 14px; }
.member-result span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.member-values { text-align: right; }
.member-values b { color: var(--cyan); font-size: 16px; }
.member-result.is-error { border-color: var(--red); }
.member-result.is-error strong { color: var(--red); }
.member-result.is-success { border-color: var(--green); }
.member-tier { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.member-tier button, .duration-buttons > button { height: 40px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--bg); font-size: 12px; }
.member-tier button.is-active, .duration-buttons > button.is-active { color: #fff; border-color: var(--cyan); background: #0d4350; }
.estimate-meta-row { display: grid; grid-template-columns: minmax(105px, .8fr) minmax(190px, 1.2fr); gap: 8px; margin-top: 8px; }
.balance-field span { position: absolute; left: 12px; top: 6px; color: var(--muted); font-size: 9px; }
.start-time-field > span:first-child { position: absolute; z-index: 1; left: 12px; top: 6px; color: var(--muted); font-size: 9px; }
.start-time-controls { display: grid; grid-template-columns: minmax(0, 1fr) 54px; gap: 5px; }
.start-time-controls button { min-width: 0; border: 1px solid var(--cyan); border-radius: 6px; color: var(--cyan); background: #0d4350; font-size: 11px; font-weight: 700; }
.start-time-field > small { display: block; margin-top: 3px; color: var(--green); font-size: 9px; line-height: 1.2; }
.duration-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.duration-buttons label { position: relative; }
.duration-buttons label span { position: absolute; left: 8px; top: 5px; color: var(--muted); font-size: 8px; }
.duration-buttons input { height: 40px; padding: 14px 8px 2px; }
.new-customer-toggle { min-height: 48px; margin-top: 9px; padding: 7px 12px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); cursor: pointer; }
.new-customer-toggle b, .new-customer-toggle small { display: block; }
.new-customer-toggle b { font-size: 12px; }
.new-customer-toggle small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.new-customer-toggle input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.new-customer-toggle i { width: 48px; height: 24px; position: relative; border: 1px solid var(--line); border-radius: 12px; background: #172632; }
.new-customer-toggle i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .15s ease; }
.new-customer-toggle input:checked + i { border-color: var(--cyan); background: #0d4350; }
.new-customer-toggle input:checked + i::after { background: var(--cyan); transform: translateX(24px); }
.recommendation-list { display: grid; gap: 8px; }
.recommendation-status { min-height: 18px; margin: -3px 0 6px; color: var(--green); font-size: 9px; }
.recommendation-card { min-height: 112px; padding: 10px 12px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel-2); }
.recommendation-card:first-child { border-color: var(--green); }
.recommendation-rank { width: 30px; height: 28px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--cyan); border-radius: 5px; color: var(--cyan); font-size: 12px; }
.recommendation-card:first-child .recommendation-rank { border-color: var(--green); color: var(--green); }
.locked-area { display: block; margin-bottom: 3px; color: var(--green); font-size: 9px; font-style: normal; font-weight: 700; }
.recommendation-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.recommendation-tags i { padding: 2px 5px; border: 1px solid var(--cyan); border-radius: 4px; color: var(--cyan); font-size: 8px; font-style: normal; font-weight: 700; }
.recommendation-card:first-child .recommendation-tags i { border-color: var(--green); color: var(--green); }
.recommendation-main strong { display: block; font-size: 12px; }
.recommendation-main span, .recommendation-main small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.3; }
.recommendation-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; margin-top: 6px; padding: 6px 8px; border-radius: 5px; background: #081822; }
.recommendation-metrics span { min-width: 0; margin: 0; }
.recommendation-metrics span small { margin: 0 0 2px; font-size: 8px; }
.recommendation-metrics span b { color: var(--text); font-size: 10px; font-weight: 650; }
.recommendation-timeline { line-height: 1.45 !important; }
.recommendation-price { color: var(--cyan); font-size: 15px; font-weight: 800; white-space: nowrap; }
.recommendation-card:first-child .recommendation-price { color: var(--green); }
.empty-result { padding: 24px 10px; text-align: center; color: var(--muted); font-size: 11px; border: 1px dashed var(--line); border-radius: 7px; }
.empty-result.is-error { color: #ffc1cc; border-color: var(--red); background: #2a1720; }
.calculator-note { margin-top: 10px; color: var(--muted); font-size: 8px; line-height: 1.5; }

.result-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 28px; }
.result-modal.is-open { display: flex; }
.result-modal-backdrop { position: absolute; inset: 0; background: rgba(1, 8, 13, .78); backdrop-filter: blur(5px); }
.result-dialog { position: relative; width: min(860px, calc(100vw - 56px)); max-height: min(880px, calc(100vh - 56px)); padding: 22px; overflow-y: auto; border: 1px solid #26627a; border-top: 4px solid var(--cyan); border-radius: 12px; outline: none; background: #091a27; box-shadow: 0 28px 90px rgba(0, 0, 0, .56); scrollbar-color: var(--cyan) var(--panel-2); scrollbar-width: thin; }
.result-dialog-header { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; gap: 16px; align-items: center; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.result-dialog-header span { color: var(--cyan); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.result-dialog-header h2 { margin-top: 3px; font-size: 24px; }
.result-seat-label { color: var(--green); font-size: 14px; }
.result-close-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--panel-2); font-size: 25px; line-height: 1; }
.result-close-button:hover, .result-close-button:focus-visible { border-color: var(--cyan); color: #fff; outline: 2px solid rgba(49, 211, 223, .3); outline-offset: 2px; }
.result-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--panel-2); font-size: 11px; }
.result-summary span, .result-summary small, .result-summary b { display: block; }
.result-summary small { color: var(--muted); font-size: 9px; }
.result-summary b { margin-top: 4px; overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.result-dialog .recommendation-status { margin: 0 0 8px; font-size: 10px; }
.result-dialog .recommendation-list { max-height: none; overflow: visible; }
.result-dialog .recommendation-card:nth-child(n + 2) { display: none; }
.result-dialog .recommendation-list.show-all .recommendation-card:nth-child(n + 2) { display: grid; }
.result-dialog .recommendation-card { min-height: 0; padding: 13px 14px; }
.result-dialog .recommendation-main strong { font-size: 14px; }
.result-dialog .recommendation-main span, .result-dialog .recommendation-main small { font-size: 10px; }
.result-dialog .recommendation-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 8px; }
.result-dialog .recommendation-price { font-size: 17px; }
.alternative-toggle { width: 100%; min-height: 44px; margin-top: 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--cyan); background: var(--panel-2); font-size: 12px; font-weight: 700; }
.alternative-toggle:hover, .alternative-toggle:focus-visible { border-color: var(--cyan); outline: 2px solid rgba(49, 211, 223, .25); outline-offset: 2px; }
.result-loading { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); }
.result-loading i { width: 34px; height: 34px; margin-bottom: 12px; border: 3px solid #1f4658; border-top-color: var(--cyan); border-radius: 50%; animation: result-spin .8s linear infinite; }
.result-loading strong { color: var(--text); font-size: 15px; }
.result-loading span { margin-top: 5px; font-size: 10px; }
.result-dialog-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.result-dialog-actions button { min-height: 46px; border-radius: 7px; font-weight: 750; }
.dialog-secondary-button { border: 1px solid var(--line); color: var(--text); background: var(--panel-2); }
.dialog-copy-button { border: 1px solid var(--cyan); color: #041017; background: var(--cyan); }
.dialog-copy-button:disabled { cursor: not-allowed; opacity: .45; }
.dialog-reset-button { border: 1px solid #8b4454; color: #ffafbd; background: #2a1720; }
.result-dialog-actions button:hover:not(:disabled), .result-dialog-actions button:focus-visible { outline: 2px solid rgba(49, 211, 223, .3); outline-offset: 2px; }
@keyframes result-spin { to { transform: rotate(360deg); } }

@media (max-width: 1500px) {
  .screen-shell { grid-template-columns: minmax(0, 7fr) minmax(360px, 3fr); padding-inline: 18px; }
  .area-card { grid-template-columns: 160px minmax(0, 1fr); }
  .seat-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .room-grid { grid-template-columns: repeat(3, minmax(78px, 1fr)); }
  .room-grid.is-single-room.is-seats-3 { width: calc((100% - 14px) / 3); }
  .section-heading > div:first-child p { display: none; }
  .top-metrics span { display: none; }
  .top-metrics strong { min-width: auto; }
  .top-metrics { margin-right: 8px; }
}

@media (min-width: 1181px) and (max-width: 2560px) and (max-height: 1200px) {
  html, body { height: 100%; overflow: hidden; }

  .topbar {
    height: 58px;
    gap: 18px;
    padding-inline: 24px;
  }
  .brand { font-size: 19px; }
  .topbar h1 { font-size: 18px; }
  .live-badge { padding: 4px 13px; }
  .top-metrics { gap: 28px; }
  .top-metrics strong { min-width: 190px; font-size: 16px; }

  .screen-shell {
    height: calc(100vh - 58px);
    min-height: 0;
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
    overflow: hidden;
  }
  .availability { min-height: 0; }
  .section-heading { min-height: 34px; margin-bottom: 5px; }
  .section-heading h2 { font-size: 23px; }
  .legend > span, .refresh-button { height: 27px; padding-inline: 11px; }

  .floor-grid { gap: 12px; }
  .floor-panel { padding: 8px 10px 10px; }
  .floor-panel > header { height: 36px; }
  .floor-panel > header > div { gap: 12px; }
  .floor-panel > header b { font-size: 20px; }
  .floor-panel > header h3 { font-size: 15px; }
  .area-list { gap: 4px; padding-top: 6px; }
  .area-card {
    min-height: 52px;
    gap: 7px;
    padding: 5px 7px 5px 10px;
  }
  .area-card h4 { margin-bottom: 2px; font-size: 13px; }
  .area-card .area-meta { font-size: 9px; line-height: 1.35; }
  .seat-grid { gap: 3px; }
  .seat-button { height: 23px; padding-inline: 2px; font-size: 9px; }
  .room-grid { grid-template-columns: repeat(4, minmax(58px, 1fr)); gap: 4px; }
  .room-grid.is-single-room.is-seats-2 { max-width: 78px; }
  .room-grid.is-single-room.is-seats-3 { width: calc((100% - 12px) / 4); }
  .room-grid.is-single-room.is-seats-5 { width: calc(50% + 7px); }
  .room-card { padding: 4px 5px; }
  .room-card header { font-size: 8px; }
  .room-seats { gap: 2px; margin-top: 3px; }
  .room-summary { gap: 4px; }

  .price-reference, .platform-activities { margin-top: 6px; padding: 7px 10px; }
  .platform-activities { margin-top: 4px; padding-bottom: 4px; }
  .price-title { margin-bottom: 4px; }
  .price-title h3 { font-size: 13px; }
  .price-row { grid-template-columns: 110px 78px 1fr; min-height: 20px; font-size: 9px; }
  .price-row.is-morning { min-height: 23px; }
  .new-member-offers { gap: 4px; margin-bottom: 5px; }
  .new-member-offers > span { min-height: 27px; padding: 3px 5px; }
  .activity-groups { gap: 5px; }
  .activity-card-list { gap: 2px; }
  .activity-card { min-height: 27px; padding: 3px 5px; }
  .activity-card > div strong { font-size: 8px; }
  .activity-card small { margin-top: 1px; font-size: 6px; }
  .activity-card > span b { font-size: 9px; }
  .data-message { min-height: 0; padding-top: 2px; font-size: 10px; }

  .calculator {
    height: 100%;
    min-height: 0;
    padding: 12px 16px;
    overflow: hidden;
  }
  .calculator-heading { padding-bottom: 8px; }
  .calculator-heading h2 { font-size: 19px; }
  .calculator-heading p { margin-top: 2px; font-size: 9px; }
  .calculator-heading-actions { gap: 6px; }
  .reset-button { min-width: 50px; height: 28px; padding-inline: 8px; font-size: 10px; }
  .selected-seat { min-height: 58px; margin-top: 8px; padding: 7px 10px; }
  .selected-seat strong { margin: 3px 0; font-size: 13px; }
  .field-title { margin: 8px 0 5px; }
  .field-title h3 { font-size: 11px; }
  .member-inputs { gap: 7px; }
  .member-inputs label span, .balance-field span, .start-time-field > span:first-child { top: 4px; }
  input { height: 40px; padding-top: 14px; }
  .lookup-button, .calculate-button { height: 36px; margin-top: 6px; }
  .member-result { min-height: 50px; margin-top: 6px; padding: 6px 9px; }
  .member-result strong { font-size: 11px; }
  .member-result span { margin-top: 2px; font-size: 8px; }
  .member-values b { font-size: 13px; }
  .member-tier button, .duration-buttons > button { height: 34px; }
  .estimate-meta-row { gap: 5px; margin-top: 5px; }
  .duration-buttons { gap: 5px; margin-top: 5px; }
  .duration-buttons input { height: 34px; padding-top: 12px; }
  .new-customer-toggle { min-height: 38px; margin-top: 6px; padding: 5px 9px; }
  .new-customer-toggle b { font-size: 11px; }
  .new-customer-toggle small { margin-top: 1px; font-size: 8px; }
  .new-customer-toggle i { width: 42px; height: 22px; }
  .new-customer-toggle i::after { width: 14px; height: 14px; }
  .new-customer-toggle input:checked + i::after { transform: translateX(20px); }
  .recommendation-list {
    max-height: 150px;
    gap: 5px;
    padding-right: 3px;
    overflow-y: auto;
    scrollbar-color: var(--cyan) var(--panel-2);
    scrollbar-width: thin;
  }
  .recommendation-card { min-height: 108px; padding: 7px 9px; }
  .recommendation-metrics { margin-top: 4px; padding: 4px 6px; }
  .empty-result { padding: 14px 8px; }
  .calculator-note { margin-top: 5px; font-size: 8px; }
  .result-dialog { width: min(820px, calc(100vw - 48px)); max-height: calc(100vh - 48px); padding: 17px 19px; }
  .result-dialog-header { padding-bottom: 10px; }
  .result-dialog-header h2 { font-size: 21px; }
  .result-summary { margin-block: 10px 7px; padding: 8px; }
  .result-dialog .recommendation-card { padding: 10px 12px; }
  .result-dialog-actions { margin-top: 10px; padding-top: 10px; }
}

@media (min-width: 1181px) and (max-width: 2560px) and (max-height: 820px) {
  .topbar { height: 48px; gap: 14px; padding-inline: 18px; }
  .brand { font-size: 17px; }
  .topbar h1 { font-size: 16px; }
  .live-badge { padding: 3px 10px; font-size: 11px; }
  .updated { font-size: 10px; }
  .top-metrics strong { font-size: 14px; }

  .screen-shell {
    height: calc(100vh - 48px);
    gap: 10px;
    padding: 5px 14px 6px;
  }
  .section-heading { min-height: 28px; margin-bottom: 3px; }
  .section-heading h2 { font-size: 20px; }
  .legend { gap: 5px; }
  .legend > span, .refresh-button { height: 24px; padding-inline: 8px; font-size: 10px; }
  .floor-grid { gap: 10px; }
  .floor-panel { padding: 6px 8px 8px; }
  .floor-panel > header { height: 30px; }
  .floor-panel > header b { font-size: 17px; }
  .floor-panel > header h3 { font-size: 13px; }
  .floor-panel > header strong { font-size: 11px; }
  .area-list { gap: 3px; padding-top: 4px; }
  .area-card {
    grid-template-columns: 154px minmax(0, 1fr);
    min-height: 44px;
    padding: 3px 5px 3px 8px;
  }
  .area-card h4 { font-size: 12px; }
  .area-card .area-meta { font-size: 8px; line-height: 1.2; }
  .seat-grid { gap: 2px; }
  .seat-button { height: 20px; font-size: 8px; }
  .room-grid { grid-template-columns: repeat(4, minmax(54px, 1fr)); gap: 3px; }
  .room-grid.is-single-room.is-seats-2 { max-width: 66px; }
  .room-grid.is-single-room.is-seats-3 { width: calc((100% - 9px) / 4); }
  .room-grid.is-single-room.is-seats-5 { width: calc(50% + 9px); }
  .room-card { padding: 3px 4px 4px; }
  .room-card header { gap: 3px; font-size: 7px; white-space: nowrap; }
  .room-seats { margin-top: 2px; }
  .room-summary { gap: 3px; }

  .price-reference, .platform-activities { margin-top: 4px; padding: 5px 8px; }
  .price-title { margin-bottom: 2px; }
  .price-title h3 { font-size: 12px; }
  .price-row { min-height: 17px; font-size: 8px; }
  .price-row.is-morning { min-height: 18px; }
  .new-member-offers { margin-bottom: 3px; }
  .new-member-offers > span { min-height: 22px; padding-block: 2px; }
  .new-member-offers small { font-size: 6px; }
  .new-member-offers b { font-size: 8px; }
  .activity-group > header { margin-bottom: 2px; font-size: 8px; }
  .activity-card { min-height: 22px; padding-block: 2px; }

  .calculator { padding: 9px 13px; }
  .calculator-heading { padding-bottom: 5px; }
  .calculator-heading h2 { font-size: 16px; }
  .reset-button { min-width: 46px; height: 26px; padding-inline: 7px; font-size: 9px; }
  .selected-seat { min-height: 50px; margin-top: 5px; padding: 5px 8px; }
  .selected-seat strong { font-size: 13px; }
  .field-title { margin: 5px 0 4px; }
  input { height: 35px; }
  .lookup-button, .calculate-button { height: 32px; margin-top: 4px; }
  .member-result { min-height: 44px; margin-top: 4px; padding: 4px 7px; }
  .member-tier button, .duration-buttons > button { height: 30px; }
  .estimate-meta-row { margin-top: 4px; }
  .duration-buttons { margin-top: 4px; }
  .duration-buttons input { height: 30px; }
  .new-customer-toggle { min-height: 34px; margin-top: 4px; padding-block: 3px; }
  .recommendation-list { max-height: 126px; }
  .recommendation-card { min-height: 102px; padding: 5px 7px; }
  .empty-result { padding: 10px 6px; }
  .calculator-note { margin-top: 3px; line-height: 1.25; }
}

@media (max-width: 1180px) {
  .topbar { padding-inline: 18px; }
  .top-metrics span { display: none; }
  .screen-shell { grid-template-columns: 1fr; }
  .calculator { max-width: none; }
  .result-summary { grid-template-columns: 1fr 1fr; }
  .result-dialog .recommendation-card { grid-template-columns: 34px minmax(0, 1fr); }
  .result-dialog .recommendation-price { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .result-loading i { animation: none; }
}
