:root {
  color-scheme: light;
  --paper: #f5f0e6;
  --cream: #fffcf5;
  --ink: #282b25;
  --header-green: #26352b;
  --brand-violet: #776186;
  --muted: #675d69;
  --line: #e5d9cb;
  --purple: #6d3b7d;
  --green: #366546;
  --wine: #8e4655;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
.shell { width: min(100% - 72px, 1480px); margin-inline: auto; }
.map-header { background: var(--header-green); border-bottom: 1px solid #ffffff25; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 88px; padding-inline: 6.1%; }
.brand-logo { display: block; width: 68px; height: 68px; object-fit: contain; border-radius: 3px; }
.back-link { display: inline-flex; align-items: center; gap: 9px; color: var(--paper); font-size: 12px; letter-spacing: .04em; text-decoration: none; }
.back-link:hover, .footer a:hover { color: #e4c5e7; }
.intro { padding-block: 29px 24px; }
.eyebrow { font-size: .7rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 750; margin: 0; }
.intro .eyebrow { color: var(--brand-violet); display: flex; gap: 9px; align-items: center; }
.intro .eyebrow span { width: 20px; height: 1px; background: #a37a9e; }
h1, h2, p { margin: 0; }
h1 { font: 400 clamp(3rem, 6vw, 5.1rem)/.98 var(--serif); letter-spacing: -.055em; margin-block: 9px 12px; }
h1 em { color: var(--brand-violet); font-weight: 400; }
.intro > p:last-child { color: var(--muted); }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 280px); gap: 16px; align-items: start; }
.map-card, .details { border: 1px solid var(--line); border-radius: 17px; background: var(--cream); box-shadow: 0 8px 25px #563d2210; }
.map-card { min-width: 0; overflow: hidden; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.filter { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.filter legend { float: left; padding: 8px 11px 8px 0; font-size: .8rem; font-weight: 750; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chips label { cursor: pointer; position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: grid; place-items: center; min-width: 32px; height: 32px; padding-inline: 8px; background: #f4ede4; border: 1px solid transparent; border-radius: 7px; font-size: .77rem; font-weight: 700; }
.chips input:checked + span { color: #fff; background: #65446b; }
.chips input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }
.map-stage { position: relative; background: #f2eadb; }
.map-scroll { overflow: auto; overscroll-behavior-inline: contain; scrollbar-color: #c9b69c #f3ebdf; }
#plan { width: var(--plan-width, 100%); min-width: var(--plan-min, 0px); display: block; }
.map-tools { position: absolute; bottom: 12px; right: 12px; display: flex; background: var(--cream); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 3px 10px #4d37241a; overflow: hidden; }
.map-tools button { display: grid; place-items: center; width: 35px; height: 35px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 1.1rem; }
.map-tools button + button { border-left: 1px solid var(--line); }
.map-tools button:hover { background: #f0e5f0; }
.map-tools button:disabled { opacity: .35; cursor: default; }
.map-tools button:focus-visible { outline-offset: -3px; }
.legend { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.legend-items { display: flex; flex-wrap: wrap; gap: 5px 17px; }
.legend-items span { display: inline-flex; gap: 6px; align-items: center; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.free { background: #59845d; box-shadow: 0 0 0 3px #dfeadd; }
.dot.occupied { background: #9f5663; box-shadow: 0 0 0 3px #f1dce1; }
.dot.unknown { background: #746b75; }
.window-key { background: #43898a; width: 14px; height: 4px; border-radius: 2px; }
.mobile-hint { display: none; }
@supports selector(:has(*)) {
  .map-card:has(.map-stage.fitted) .mobile-hint { visibility: hidden; }
}
.sidebar { display: grid; gap: 14px; }
.availability { border-radius: 17px; padding: 20px; color: #fff8ef; background: radial-gradient(ellipse at 95% 0%, #76537d, #4b314f 70%); box-shadow: 0 8px 22px #36223d21; }
.signal { display: flex; align-items: center; gap: 8px; color: #f4e4f3; }
.signal i { width: 7px; height: 7px; border-radius: 50%; background: #d9bc86; box-shadow: 0 0 0 4px #f7ca822a; }
.signal[data-live="true"] i { background: #a5d6a1; box-shadow: 0 0 0 4px #a5d6a130; }
.tally { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.tally > span:first-child { font: 400 3.55rem/1 var(--serif); }
.tally strong, .tally small { display: block; }
.tally small { color: #e8d8e5; font-size: .77rem; }
.details { padding: 19px; min-height: 175px; }
.details .eyebrow { color: #76527e; margin-bottom: 7px; }
.details h2 { font: 500 1.67rem/1.13 var(--serif); margin: 0 0 8px; letter-spacing: -.03em; }
.details p:not(.eyebrow) { font-size: .86rem; color: var(--muted); }
.detail-top { display: flex; justify-content: space-between; gap: 4px; align-items: flex-start; }
.detail-top button { border: 0; border-radius: 50%; color: #614765; background: #f2e9f0; width: 30px; height: 30px; cursor: pointer; font-size: 18px; }
.status { display: inline-flex; align-items: center; gap: 7px; border-radius: 99px; margin: 5px 0 10px; padding: 4px 9px; font-size: .75rem; font-weight: 750; background: #eee8ee; }
.status.free { background: #e5eddf; color: #30583c; }
.status.occupied { background: #f4e4e5; color: #793340; }
.bill { margin-top: 11px; border-top: 1px solid var(--line); padding-top: 9px; }
.footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 20px 6.1%; color: #e9e2d5; background: var(--header-green); letter-spacing: .1em; font-size: 9px; }
.footer a { text-decoration: none; white-space: nowrap; }
.table { cursor: pointer; outline: none; transition: opacity .2s; --accent: #6d626c; --rim: #b3a7b1; --cloth: #e9ded5; }
.table.free { --accent: #346444; --rim: #80a965; --cloth: #fff2d7; }
.table.occupied { --accent: #874a55; --rim: #ae6b74; --cloth: #e9ccc1; }
.table.dimmed { opacity: .3; }
.table.selected, .table:focus-visible, .table:hover { opacity: 1; }
.table .lift { transition: transform .2s ease; }
.table:is(:hover, :focus-visible, .selected) .lift { transform: translateY(-3px); }
.table .cloth { fill: var(--cloth); stroke: var(--rim); stroke-width: 1.3; }
.table.free .halo { fill: #92bd66; opacity: .40; }
.table.free.matching .halo { opacity: .77; }
.table:is(.selected, :focus-visible) .halo { fill: #9c68b6; opacity: .76; }
.halo { opacity: 0; }
.number { fill: var(--accent); }
.number-text { fill: #fffdf3; font: 750 11px var(--sans); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.tooltip { position: absolute; z-index: 2; pointer-events: none; width: max-content; max-width: min(235px, 95%); background: #3a2b3e; color: #fff8ef; box-shadow: 0 5px 18px #291a3138; border-radius: 9px; padding: 8px 11px; font-size: .78rem; }
.tooltip strong, .tooltip span { display: block; }
.tooltip span { color: #eadbe7; }
@media (max-width: 930px) {
  .shell { width: calc(100% - 36px); }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  .shell { width: calc(100% - 24px); }
  .intro { padding-block: 22px 18px; }
  .toolbar { flex-wrap: wrap; padding: 9px 11px; gap: 5px 14px; }
  .filter legend { padding-right: 6px; }
  #plan { min-width: var(--plan-min, 720px); }
  .legend { padding: 9px 11px; }
  .mobile-hint { display: block; text-align: right; }
  .sidebar { grid-template-columns: 1fr; gap: 9px; }
  .details { min-height: 0; }
}
@media (max-width: 650px) {
  .map-header { height: 72px; padding-inline: 7%; }
  .brand-logo { width: 55px; height: 55px; }
  .back-link { font-size: 10px; }
  .footer { padding: 17px 7%; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { transition: none !important; }
}
