.chm {
  --chm-paper: #fffdf7;
  --chm-ink: #142339;
  --chm-free: #d4e3d9;
  --chm-selected: #7a2b39;
  --chm-disabled: #d4d1ca;
  --chm-limited: #e3bb7c;
  min-width: 0;
  color: var(--chm-ink);
}
.chm *, .chm *::before, .chm *::after { box-sizing: border-box; }
.chm-overview-panel {
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 8px 10px 0;
  background: var(--chm-paper);
  border: 1px solid #ded9cb;
  border-radius: 12px;
}
.chm-overview {
  display: block;
  width: 100%;
  max-width: 755px;
  height: auto;
  font-family: inherit;
}
.chm .chm-map-zoom {
  display: block;
  width: auto;
  min-height: 44px;
  margin: 0 0 6px auto;
  padding: 7px 13px;
  border: 1px solid #c7c3b7;
  border-radius: 7px;
  background: var(--chm-paper);
  color: var(--chm-ink);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}
.chm .chm-map-zoom[hidden] { display: none; }
.chm-overview-panel.chm-zoomed {
  display: block;
  place-items: start;
  overflow: auto;
  max-height: min(70vh, 720px);
  padding: 0;
}
.chm-zoomed .chm-overview {
  width: 2450px;
  max-width: none;
}
.chm-mini-seat { outline: none; cursor: pointer; }
.chm-mini-seat[aria-disabled=true] { cursor: default; }
.chm-mini-hit { fill: transparent; pointer-events: all; }
.chm-mini-seat use, .chm-mini-number { pointer-events: none; }
.chm-mini-number {
  fill: #172d21;
  font: 700 4.3px/1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.chm-mini-seat[aria-pressed=true] .chm-mini-number { fill: #fffdf7; }
.chm-mini-seat:focus-visible .chm-mini-hit {
  fill: #fff1bf;
  stroke: var(--chm-ink);
  stroke-width: 1;
}
.chm-stage path { fill: var(--chm-ink); }
.chm-stage text {
  fill: #fffdf7;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 2px;
}
.chm-aisle path { fill: none; stroke: #b5afa2; stroke-width: .7; stroke-dasharray: 2.5 3; }
.chm-aisle text { fill: #5b605e; font-size: 6px; font-weight: 650; letter-spacing: 1px; }
.chm-mini-row { cursor: pointer; outline: none; }
.chm-mini-row-bg { fill: transparent; }
.chm-mini-row[aria-pressed=true] .chm-mini-row-bg,
.chm-mini-row.chm-current-row .chm-mini-row-bg { fill: #f3e4df; stroke: var(--chm-selected); stroke-width: .7; }
.chm-mini-row:focus-visible .chm-mini-row-bg { stroke: var(--chm-ink); stroke-width: 1.8; }
.chm-mini-label { fill: #535b60; font-size: 7px; font-weight: 600; }
.chm-mini-row[aria-pressed=true] .chm-mini-label,
.chm-mini-row.chm-current-row .chm-mini-label { fill: var(--chm-selected); font-weight: 800; }
.chm-place { stroke-width: .58; stroke-linejoin: round; }
.chm-place.chm-free { fill: #8eaf9c; stroke: #476d59; }
.chm-place.chm-unavailable { fill: var(--chm-disabled); stroke: #969590; }
.chm-place.chm-limited { fill: var(--chm-limited); stroke: #8b622a; }
.chm-place.chm-selected, .chm-place.chm-employee { fill: var(--chm-selected); stroke: #641b28; }
.chm-place.chm-guest { fill: #365a83; stroke: #203b5c; }
.chm-mini-pillar { fill: #686e78; }
.chm-mini-tech { fill: #e4e1d8; }
.chm-mini-tech-text { fill: #545b61; font-size: 5px; font-weight: 750; letter-spacing: .7px; }
.chm-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 18px 0 10px; }
.chm .chm-row-heading { margin: 0; font: inherit; font-size: 1rem; font-weight: 700; color: var(--chm-ink); }
.chm-controls { display: inline-flex; align-items: center; gap: 4px; }
.chm .chm-row-arrow, .chm .chm-row-select {
  appearance: auto;
  min-width: 0;
  width: auto;
  min-height: 34px;
  height: auto;
  margin: 0;
  border: 1px solid #c7c3b7;
  border-radius: 7px;
  background: var(--chm-paper);
  color: var(--chm-ink);
  font: inherit;
  font-size: .87rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: none;
}
.chm .chm-row-arrow { width: 34px; padding: 2px; font-size: 1.25rem; line-height: 1; }
.chm .chm-row-select { padding: 4px 6px; }
.chm .chm-row-arrow:disabled { color: #97958c; cursor: default; opacity: .7; }
.chm-detail {
  display: flex; flex-wrap: wrap; align-items: center; gap: 3px 4px;
  padding: 12px clamp(4px, 1vw, 12px) 10px;
  border-block: 1px solid #dfd5c6;
}
.chm .chm-seat {
  position: relative; display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 49px; height: 49px; min-width: 0; min-height: 44px;
  padding: 0; margin: 0; border: 0; border-radius: 6px;
  appearance: none; background: transparent; color: var(--chair-text,#122d22);
  font: 700 14px/1 system-ui,sans-serif; font-variant-numeric: tabular-nums;
  cursor: pointer; opacity: 1; box-shadow: none;
}
.chm-seat svg { width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.chm-seat-number {
  position: absolute; top: 38.5%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none; line-height: 1; letter-spacing: -.035em;
}
.chm-seat svg, .chm-seat-number { transition: translate 120ms ease-out; }
.chm .chm-seat:disabled { cursor: default; opacity: 1; }
.chm-free {
  --chair-back: #a3c1ab; --chair-seat: #bdd1bc; --chair-edge: #668a75;
  --chair-line: #446853; --chair-piping: #e2eedb;
}
.chm-unavailable {
  --chair-back: #d4d2cc; --chair-seat: #e4e1da; --chair-edge: #b4b1a9;
  --chair-line: #96948c; --chair-piping: #eeede7; --chair-text: #484944;
  --chair-frame: #8b877f; --chair-arm: #cbc6bd; --chair-glint: #e5e2db;
}
.chm-selected, .chm-employee {
  --chair-back: #83324a; --chair-seat: #a25567; --chair-edge: #61233b;
  --chair-line: #592136; --chair-piping: #bf8594; --chair-text: #fff9ef;
}
.chm-guest {
  --chair-back: #365a83; --chair-seat: #426990; --chair-edge: #263e5b;
  --chair-line: #203b5c; --chair-piping: #a9c3de; --chair-text: #fff;
}
.chm-limited {
  --chair-back: #e6bd7d; --chair-seat: #f1d29d; --chair-edge: #bc9558;
  --chair-line: #96723f; --chair-piping: #ffedc4; --chair-text: #513310;
}
.chm-seat[aria-pressed=true]::after {
  content: ''; position: absolute; top: 3px; right: 1px; width: 13px; height: 13px;
  background: #642239 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m3.2 7.4 2.4 2.3 5-5.4' stroke='white' fill='none' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  border: 1.5px solid var(--chm-paper); border-radius: 100%; pointer-events: none;
}
.chm-swatch { background: var(--chair-back); border: 1px solid var(--chair-line); }
.chm-obstacle {
  padding: 7px;
  color: #596166;
  border-inline: 1px solid #c4c1b8;
  font-size: .7rem;
  line-height: 1.25;
  text-align: center;
}
.chm .chm-legend { display: flex; flex-wrap: wrap; gap: 7px 16px; padding: 0; margin: 16px 0 0; list-style: none; }
.chm .chm-legend li { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; color: #46515b; font-size: .78rem; line-height: 1.35; }
.chm-swatch { width: 11px; height: 11px; flex-shrink: 0; border-radius: 3px 3px 2px 2px; }
.chm button:focus-visible, .chm select:focus-visible { outline: 2px solid var(--chm-ink); outline-offset: 2px; }
@media (hover: hover) {
  .chm-mini-row:not([aria-pressed=true]):not(.chm-current-row):hover .chm-mini-row-bg { fill: #eeeae0; }
  .chm-mini-seat[aria-disabled=false]:hover .chm-mini-hit { fill: #e3ead3; stroke: #446853; stroke-width: .65; }
  .chm .chm-seat:not(:disabled):hover svg, .chm .chm-seat:not(:disabled):hover .chm-seat-number { translate: 0 -2px; }
}
@media (max-width: 520px) {
  .chm-overview-panel { padding: 4px 0 0; }
  .chm-heading { margin-top: 12px; }
  .chm-detail { gap: 2px; padding-inline: 0; }
  .chm .chm-seat { width: 44px; height: 45px; font-size: 13px; }
  .chm-seat[aria-pressed=true]::after { width: 11px; height: 11px; }
  .chm .chm-legend { gap: 6px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .chm-seat svg, .chm-seat-number { transition: none; }
}
