/* Shared typography, palette, grid, cards, buttons, forms and table styles come
   from Boster's design guide. Only page-specific interactive layouts live here.
   Scope every rule to this page so the Magento header/footer remain independent. */
[data-spatial] { scroll-margin-top: 2rem; }
[data-spatial] .spatial-icon { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; margin-right: 1rem; }
[data-spatial] .spatial-market-icon { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; margin-right: 1rem; }
[data-spatial] .spatial-check-icon { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; margin-right: 1rem; }
[data-spatial] .form-status:empty { display: none; }
[data-spatial] .form-status { margin-top: 1rem; }
[data-spatial] .panel-card a img { width: 20px; height: 20px; margin-left: .5rem; }
[data-spatial] .market-note > img { margin-right: 1rem; }
[data-spatial] .best-icon { display: inline-block; margin-right: .5rem; }
[data-spatial] .best-icon img { width: 40px; height: 40px; object-fit: contain; }
[data-spatial] .best-header h3 { display: flex; align-items: center; margin-top: 1rem; }
[data-spatial] .board-stats img { width: 24px; height: 24px; vertical-align: middle; }
[data-spatial] .calc-tabs, [data-spatial] .board-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .75rem; margin-bottom: 1.5rem; }
[data-spatial] .calc-tabs button, [data-spatial] .board-tabs button { white-space: normal; padding: 1rem; }
[data-spatial] .board-tabs small { display: block; margin-top: .5rem; }
[data-spatial] .quantity-card { display: grid; grid-template-columns: 1fr auto; gap: 1rem; }
[data-spatial] .quantity-card output { font-weight: bold; }
[data-spatial] input[type="range"] { grid-column: 1 / -1; width: 100%; height: 28px; padding: 0; border: 0; accent-color: #ea8d28; cursor: pointer; }
[data-spatial] .bars { height: 250px; display: flex; align-items: end; gap: 6px; padding-bottom: 30px; margin-top: 2rem; }
[data-spatial] .bar { flex: 1; min-width: 0; padding: 0; position: relative; border: 0; border-radius: 3px 3px 0 0; background: #c4c4c4; cursor: pointer; }
[data-spatial] .bar.active, [data-spatial] .bar:hover { background: #ea8d28; }
[data-spatial] .bar span { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); padding-top: .5rem; font-size: 12px; }
[data-spatial] .board-wrap { position: relative; }
[data-spatial] .board-main { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 2rem; }
[data-spatial] .batch-info { border-right: 1px solid #eee; padding-right: 2rem; min-width: 0; }
[data-spatial] .batch-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
[data-spatial] .batch-top b { color: #ea8d28; }
[data-spatial] .batch-top .badge { white-space: normal; }
[data-spatial] .batch-info h3 { margin-bottom: 1rem; }
[data-spatial] .seats { display: flex; flex-wrap: wrap; gap: 6px; margin: 1rem 0; }
[data-spatial] .seat { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: #ea8d28; }
[data-spatial] .seat img { width: 18px; height: 18px; }
[data-spatial] .seat.empty { background: white; border: 1px dashed #ea8d28; color: #ea8d28; }
[data-spatial] .progress { height: 10px; margin: 1rem 0; }
[data-spatial] .progress > span { display: block; background: #ea8d28; }
[data-spatial] .pooled-price strong { display: block; color: #ea8d28; font-size: 22px; margin-bottom: .5rem; }
[data-spatial] .closing { margin-top: 1rem; color: #ea8d28; }
[data-spatial] .reserve-form { display: grid; gap: 1rem; }
[data-spatial] .email-quantity { display: grid; grid-template-columns: minmax(0,1fr) 116px; gap: .75rem; }
[data-spatial] .stepper { display: flex; align-items: center; border: 1px solid #c2c2c2; }
[data-spatial] .stepper button { width: 32px; min-height: 38px; flex-shrink: 0; padding: 0; border: 0; background: white; color: #ea8d28; }
[data-spatial] .stepper input { min-width: 0; padding: 0; text-align: center; border: 0 !important; appearance: textfield; }
[data-spatial] .stepper input::-webkit-inner-spin-button { appearance: none; }
[data-spatial] .reservation-actions { display: flex; gap: .75rem; }
[data-spatial] .reservation-actions button { flex: 1; min-width: 0; padding: .5rem; }
[data-spatial] .targets-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
[data-spatial] .targets-head input { max-width: 480px; }
[data-spatial] .targets-body { max-height: 180px; overflow-y: auto; }
[data-spatial] .target-group > b { display: block; margin-bottom: .75rem; }
[data-spatial] .target-chip { font-weight: normal; white-space: normal; }
[data-spatial] .board-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #c4c4c4; background: white; color: #ea8d28; padding: 0; font-size: 28px; line-height: 1; }
[data-spatial] .board-nav.prev { left: -19px; }
[data-spatial] .board-nav.next { right: -19px; }
[data-spatial] .dots { display: flex; justify-content: center; gap: 10px; margin-top: 1rem; }
[data-spatial] .dots button { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: #c4c4c4; }
[data-spatial] .dots button.active { background: #ea8d28; }
[data-spatial] .marker-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
[data-spatial] .marker-controls > div { display: flex; flex-wrap: wrap; gap: .5rem; }
[data-spatial] .marker-controls button { padding: .5rem .75rem; white-space: normal; }
[data-spatial] .marker-controls input { flex: 1 1 260px; }
[data-spatial] .table { min-width: 640px; }
[data-spatial] .spatial-pagination { gap: .5rem; }
[data-spatial] .spatial-pagination button { padding: .5rem 1rem; }
[data-spatial] summary { cursor: pointer; }
[data-spatial] button:focus-visible, [data-spatial] a:focus-visible, [data-spatial] summary:focus-visible { outline: 2px solid #004c95; outline-offset: 3px; }
@media (max-width: 991px) {
  [data-spatial] .calc-tabs, [data-spatial] .board-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  [data-spatial] .board-main { grid-template-columns: minmax(0,1fr); }
  [data-spatial] .batch-info { padding-right: 0; padding-bottom: 1rem; border-right: 0; border-bottom: 1px solid #eee; }
  [data-spatial] .board-nav.prev { left: -10px; }
  [data-spatial] .board-nav.next { right: -10px; }
  [data-spatial] .targets-head { flex-direction: column; align-items: stretch; }
  [data-spatial] .targets-head input { max-width: none; }
}
@media (max-width: 575px) {
  [data-spatial] .batch-top { align-items: start; flex-direction: column; }
  [data-spatial] .bars { gap: 4px; }
  [data-spatial] .bar span { font-size: 10px; }
  [data-spatial] .calc-tabs button, [data-spatial] .board-tabs button { padding: .75rem .5rem; }
}

/* Review refinements from Spitial Biology修改.docx. Shared Boster typography,
   colors and components remain the base; these selectors stay page-scoped. */
[data-spatial] .spatial-best-card { justify-content: flex-start; overflow: hidden; border-color: #ea8d28 !important; border-radius: 16px; }
[data-spatial] .spatial-best-header h3 { display: flex; align-items: center; gap: 16px; margin-top: 20px; margin-bottom: 0; }
[data-spatial] .spatial-best-header .best-icon { display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px; flex-shrink: 0; margin: 0; border-radius: 50%; background: white; }
[data-spatial] .spatial-value-badge { background: white; color: #ea8d28; border-radius: 999px; padding: 9px 14px; font-size: 14px; font-weight: normal; }
[data-spatial] .spatial-best-body > div { border-color: #f6c58d !important; }
[data-spatial] .spatial-best-body > div:first-child { border-top: 0 !important; }
[data-spatial] .spatial-best-body b { color: #ea8d28; font-size: 20px; font-weight: normal; }
[data-spatial] .spatial-best-body strong { font-size: 30px !important; line-height: 1.25; }
[data-spatial] .spatial-best-body .savings { display: inline-block; white-space: normal; text-align: left; background: #fff0ea; color: #e44444; font-size: 14px; font-weight: normal; line-height: 1.5; border-radius: 999px; padding: 9px 13px; margin-top: 12px; }
[data-spatial] .spatial-best-body p { display: flex; align-items: flex-start; gap: 10px; }
[data-spatial] .spatial-market-note { background: #e5edcf; color: #688d13; border-radius: 14px; }
[data-spatial] .spatial-market-note p { margin: 0; }
[data-spatial] .calc-tabs button, [data-spatial] .board-tabs button, [data-spatial] #marker-filters button, [data-spatial] #marker-pages button { background-image: none; box-shadow: none; border-width: 1px; }
[data-spatial] .calc-tabs button, [data-spatial] .board-tabs button { border-radius: 999px; }
[data-spatial] .calc-tabs button:not(.active), [data-spatial] .board-tabs button:not(.active) { border-color: #c4c4c4; background: white; color: #434343; }
[data-spatial] .calc-tabs button.active, [data-spatial] .board-tabs button.active, [data-spatial] #marker-filters button.active, [data-spatial] #marker-pages button.active { background: #ea8d28; border-color: #ea8d28; color: white; }
[data-spatial] #marker-filters button, [data-spatial] #marker-pages button { border-radius: 6px; }
[data-spatial] #marker-filters button { font-weight: normal; }
[data-spatial] #marker-filters button.active { font-weight: bold; }
[data-spatial] #calc-range, [data-spatial] #calc-range:focus, [data-spatial] #calc-range:active { appearance: none; -webkit-appearance: none; background: transparent; border: 0; outline: none; box-shadow: none; border-radius: 0; }
[data-spatial] #calc-range::-webkit-slider-runnable-track { height: 6px; border: 0; border-radius: 0; background: linear-gradient(to right, #ea8d28 0 var(--progress,0%), #c4c4c4 var(--progress,0%) 100%); }
[data-spatial] #calc-range::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border: 0; border-radius: 50%; background: #ea8d28; box-shadow: none; }
[data-spatial] #calc-range::-moz-range-track { height: 6px; border: 0; border-radius: 0; background: #c4c4c4; }
[data-spatial] #calc-range::-moz-range-progress { height: 6px; background: #ea8d28; }
[data-spatial] #calc-range::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #ea8d28; }
[data-spatial] #calc-range:focus-visible::-webkit-slider-thumb { outline: 2px solid #004c95; outline-offset: 3px; }
[data-spatial] #calc-range:focus-visible::-moz-range-thumb { outline: 2px solid #004c95; outline-offset: 3px; }
[data-spatial] .batch-tag { border: 1px solid #ea8d28; border-radius: 999px; color: #ea8d28 !important; font-size: 16px; font-weight: bold; line-height: 1.3; }
[data-spatial] .seats { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 6px; }
[data-spatial] .seat { width: 100%; height: auto; aspect-ratio: 1; max-width: 52px; }
[data-spatial] .seat img { width: 24px; height: 24px; }
@keyframes spatial-orange-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(234,141,40,.55); } 55% { box-shadow: 0 0 0 7px rgba(234,141,40,0); } }
[data-spatial] .batch-tag.hot, [data-spatial] .seat.last { animation: spatial-orange-pulse 1.8s ease-in-out infinite; }
[data-spatial] .spatial-step { display: flex; flex-direction: column; position: relative; }
[data-spatial] .spatial-step-number { display: flex; align-items: center; justify-content: center; align-self: center; flex-shrink: 0; position: relative; z-index: 1; width: 44px; height: 44px; margin-bottom: 24px; border-radius: 50%; background: #ea8d28; color: white; font-family: "Muli",sans-serif; font-size: 22px; line-height: 1; font-weight: bold; }
[data-spatial] .spatial-step-card { justify-content: flex-start; flex: 1; border: 0; border-radius: 10px; box-shadow: 0 4px 18px rgba(0,0,0,.07); background: white; }
[data-spatial] .spatial-step-icon { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin: 6px auto 20px; border-radius: 50%; background: #fbe8d4; }
[data-spatial] .spatial-step-icon .spatial-icon { margin: 0; }
[data-spatial] .spatial-step-card h3 { display: flex; align-items: center; justify-content: center; min-height: 2.5em; line-height: 1.25; margin-top: 0; }
[data-spatial] .spatial-tech-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
[data-spatial] .spatial-tech-stat { display: flex; align-items: flex-start; gap: 16px; min-width: 0; padding: 24px 18px; border: 1px solid #c4c4c4; border-radius: 16px; background: white; }
[data-spatial] .spatial-tech-stat .spatial-market-icon { margin: 0; }
[data-spatial] .spatial-tech-stat strong { display: block; margin-bottom: 6px; font-size: 32px !important; line-height: 1.2; }
[data-spatial] .spatial-tech-stat p { margin-bottom: 0; font-size: 14px; line-height: 1.5; }
[data-spatial] .spatial-tech-visual { display: flex; }
[data-spatial] .spatial-tech-visual img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; border-radius: 16px; }
[data-spatial].cta-section h2 { font-family: "Muli",sans-serif; font-weight: normal; text-transform: none; }
@media (min-width: 992px) {
  [data-spatial] .spatial-step:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: calc(50% + 36px); width: calc(100% - 72px); height: 1px; background: #c4c4c4; }
}
@media (max-width: 1199px) and (min-width: 992px) {
  [data-spatial] .spatial-tech-stat { padding: 18px 12px; gap: 10px; }
  [data-spatial] .spatial-tech-stat .spatial-market-icon { width: 40px; height: 40px; }
}
@media (max-width: 991px) {
  [data-spatial] .spatial-tech-visual img { height: auto; min-height: 0; max-height: 560px; }
}
@media (max-width: 575px) {
  [data-spatial] .seats { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
  [data-spatial] .spatial-tech-stats { grid-template-columns: minmax(0,1fr); }
  [data-spatial] .spatial-best-body strong { font-size: 26px !important; }
}
@media (prefers-reduced-motion: reduce) {
  [data-spatial] .batch-tag.hot, [data-spatial] .seat.last { animation: none; }
}
