.setup-shell{padding:32px 24px 48px;min-width:0;background:#fff;color:#173f4a}
.setup-shell *,.setup-completion *{box-sizing:border-box}
.setup-card{width:100%;max-width:720px;min-width:0;margin:0 auto}
.setup-header{margin-bottom:22px}
.setup-logo{display:block;width:min(100%,280px);height:auto;margin:0 auto 24px}
.setup-eyebrow{margin:0 0 14px;text-align:center;font-size:14px;font-weight:600;color:#46616a}
.setup-progress{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:0 0 24px;padding:0;list-style:none}
.setup-progress-item{display:flex;align-items:center;flex-direction:column;gap:5px;min-width:0;padding:8px 2px;color:#526d75;font-size:12px;text-align:center;border-bottom:2px solid #dce7eb}
.setup-progress-number{display:grid;place-items:center;inline-size:25px;block-size:25px;border:1px solid #b9cbd1;border-radius:50%;font-size:12px;font-weight:600;background:#fff}
.setup-progress-current{color:#173f4a;font-weight:700;border-color:#247d94}
.setup-progress-current .setup-progress-number{color:#fff;background:#247d94;border-color:#247d94}
.setup-progress-past .setup-progress-number{background:#eaf6f8;border-color:#91bdc8;color:#255b6a}
.setup-step-label{margin:0 0 4px;font-size:12px;color:#526d75}
.setup-header h1{margin:0;font-size:24px;line-height:1.5;font-weight:600}
.setup-lead{margin:0 0 20px;color:#46616a;font-size:15px}
.setup-help,.setup-footer-note{margin:8px 0 0;color:#526d75;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.setup-demo-reminder{margin:-8px 0 20px}
.setup-footer-note{margin-top:24px;text-align:center}
.setup-notice{padding:14px 16px;margin:16px 0;border:1px solid #b8d7df;border-radius:8px;background:#f1f8fa;color:#255b6a;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.setup-notice strong{font-weight:600}
.setup-notice p{margin:0}
.setup-notice p+p{margin-top:10px}
.setup-pin{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:24px 0 18px;font-size:13px;color:#46616a}
.setup-pin-value{display:block;font-variant-numeric:tabular-nums;font-size:32px;line-height:1.4;letter-spacing:.15em;font-weight:600;color:#173f4a}
.setup-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px;margin:18px 0}
.setup-wide{grid-column:1/-1;min-width:0}
.setup-field{min-width:0}
.setup-field label{display:block;margin:0 0 7px;font-size:13px;line-height:1.6;font-weight:600;color:#173f4a}
.setup-field input,.setup-field select{display:block;width:100%;min-width:0;min-height:48px;margin:0;padding:11px 12px;border:1px solid #b9cbd1;border-radius:8px;background:#fff;color:#173f4a;font:inherit;font-size:15px;line-height:1.6}
.setup-field input[type=time]{appearance:none;-webkit-appearance:none}
.setup-field input:disabled,.setup-field select:disabled{background:#f1f4f5;border-color:#c8d3d7;color:#526d75;opacity:1;cursor:not-allowed}
.setup-field [aria-invalid=true]{border-color:#aa3d34}
.setup-optional{display:inline-block;margin-left:8px;color:#526d75;font-size:11px;font-weight:400}
.setup-check-wrap{min-width:0}
.setup-check{display:flex;align-items:center;gap:10px;min-height:48px;margin:0;padding:10px 0;color:#173f4a;font-size:14px;font-weight:400;line-height:1.7;cursor:pointer}
.setup-check input,.setup-choice input{display:block;flex:0 0 20px;width:20px;min-width:20px;height:20px;min-height:20px;margin:0;padding:0;accent-color:#247d94;cursor:pointer}
.setup-check span,.setup-choice span{min-width:0;overflow-wrap:anywhere}
.setup-error{margin:7px 0 0;color:#a13129;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.setup-details{margin:22px 0;border:1px solid #dce7eb;border-radius:8px;background:#f8fbfc;overflow-wrap:anywhere}
.setup-details>summary{min-height:48px;padding:12px 16px;color:#255b6a;font-size:13px;font-weight:600;cursor:pointer}
.setup-details>.setup-review-grid{padding:0 16px 14px;margin:0}
.setup-details>.setup-help{padding:0 16px 14px;margin:0}
.setup-count{margin:0 0 20px}
.setup-count .setup-input-suffix{max-width:180px}
.setup-input-suffix{display:flex;align-items:center;gap:10px;min-width:0}
.setup-input-suffix input{flex:1;min-width:0}
.setup-input-suffix>span{flex:0 0 auto;color:#46616a;font-size:14px}
.setup-table-list{display:grid;gap:14px}
.setup-table-row{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:16px;min-width:0;margin:0;padding:12px 16px 16px;border:1px solid #dce7eb;border-radius:8px}
.setup-table-row legend{padding:0 6px;font-size:12px;font-weight:600;color:#526d75}
.setup-choice-group,.setup-days{min-width:0;margin:24px 0 0;padding:0;border:0}
.setup-choice-group>legend,.setup-days>legend{padding:0;margin:0 0 10px;font-size:14px;font-weight:600}
.setup-choice{display:flex;align-items:center;gap:12px;min-height:64px;margin:10px 0 0;padding:12px 14px;border:1px solid #b9cbd1;border-radius:8px;font-size:14px;line-height:1.6;cursor:pointer}
.setup-choice:has(input:checked){border-color:#247d94;background:#f1f8fa}
.setup-choice strong{display:block;font-size:14px;font-weight:600}
.setup-choice small{display:block;font-size:12px;font-weight:400;color:#526d75}
.setup-day-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.setup-day-grid .setup-check{justify-content:center;flex-wrap:wrap;gap:6px;min-height:64px;padding:8px 4px;border:1px solid #b9cbd1;border-radius:8px;font-size:13px}
.setup-day-grid .setup-check:has(input:checked){border-color:#247d94;background:#f1f8fa}
.setup-price-group{min-width:0;margin:22px 0;padding:12px 16px 16px;border:1px solid #dce7eb;border-radius:8px}
.setup-price-group legend{padding:0 6px;font-size:16px;font-weight:600}
.setup-price-group .setup-fields{margin:10px 0 0}
.setup-review-section{margin:22px 0}
.setup-review-section h3{margin:0 0 12px;font-size:15px;font-weight:600}
.setup-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px;margin:0}
.setup-review-item{min-width:0}
.setup-review-item dt{color:#526d75;font-size:12px}
.setup-review-item dd{margin:3px 0 0;color:#173f4a;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.setup-review-tables{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;list-style:none;padding:0;margin:12px 0}
.setup-review-tables li{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0;padding:10px 0;border-bottom:1px solid #e4edef;font-size:13px}
.setup-review-tables li span:first-child{min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}
.setup-review-tables li span:last-child{flex:0 0 auto;color:#526d75}
.setup-final-notice{margin-top:24px}
.setup-actions{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;margin-top:28px;padding-top:22px;border-top:1px solid #e4edef}
.setup-button{min-width:0;min-height:48px;padding:11px 18px;border:1px solid #b9cbd1;border-radius:8px;background:#fff;color:#255b6a;font:inherit;font-size:14px;font-weight:600;line-height:1.6;cursor:pointer;touch-action:manipulation;white-space:normal;overflow-wrap:anywhere}
.setup-button:hover{background:#f1f8fa}
.setup-primary{grid-column:2;background:#247d94;border-color:#247d94;color:#fff}
.setup-primary:hover{background:#1e667b;border-color:#1e667b}
.setup-primary:first-child{grid-column:1/-1}
.setup-cancel{grid-column:1/-1;justify-self:center;padding:10px 16px;border-color:transparent;background:transparent;color:#526d75;font-size:12px;font-weight:400}
.setup-shell :is(button,input,select,summary):focus-visible,.setup-completion :is(button,summary):focus-visible{outline:3px solid #247d94;outline-offset:3px}
.setup-completion{flex:0 0 auto;min-width:0;padding:0 24px;border-bottom:1px solid #dce7eb;background:#fff;color:#173f4a}
.setup-completion-details>summary{min-height:44px;padding:10px 0;color:#255b6a;font-size:12px;font-weight:600;cursor:pointer;overflow-wrap:anywhere}
.setup-completion-status{display:inline-block;margin-left:12px;font-size:11px;color:#526d75;font-weight:400}
.setup-completion-body{max-block-size:40dvh;overflow-y:auto;overscroll-behavior:contain;padding:0 8px 16px 0}
.setup-completion-body .setup-notice{margin-top:0}
.setup-completion-body .setup-review-section{margin:16px 0}
.setup-completion-body .setup-details{margin:16px 0}
.setup-completion-body>.setup-button{margin-top:12px}
@media(max-width:600px){
  .setup-shell{padding:24px 24px 36px}
  .setup-progress{gap:4px}
  .setup-progress-item{font-size:11px}
  .setup-fields{grid-template-columns:minmax(0,1fr);gap:16px}
  .setup-review-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  .setup-day-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .setup-review-tables{grid-template-columns:minmax(0,1fr)}
  .setup-completion{padding:0 16px}
}
@media(max-width:380px){
  .setup-progress{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 8px;margin-bottom:20px}
  .setup-progress-item{flex-direction:row;justify-content:center;gap:5px;padding:6px 0}
  .setup-progress-number{inline-size:21px;block-size:21px;font-size:11px;flex-shrink:0}
  .setup-table-row{grid-template-columns:minmax(0,1fr);gap:14px}
  .setup-actions{grid-template-columns:minmax(0,1fr)}
  .setup-primary{grid-column:1;grid-row:1}
  .setup-back{grid-row:2}
  .setup-completion-status{display:block;margin:2px 0 0 16px}
}
/* The setup map stays in the page flow. Only table gestures own touch movement. */
.setup-input-suffix select{flex:1;min-width:0}
.setup-button:disabled{opacity:.55;cursor:not-allowed;background:#f1f4f5;color:#526d75;border-color:#c8d3d7}
.setup-map-choice{min-width:0;margin:0 0 24px;padding:18px;border:1px solid #b8d7df;border-radius:12px;background:#f6fbfc}
.setup-map-choice h2,.setup-map-heading h2{margin:0;color:#173f4a;font-size:18px;font-weight:600;line-height:1.5}
.setup-map-choice>p{margin:8px 0 14px;color:#46616a;font-size:13px;line-height:1.8}
.setup-map-choice-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.setup-map-choice-actions .setup-primary{grid-column:auto}
.setup-map-choice>.setup-help{margin:10px 0 0;font-size:12px}
.setup-map-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.setup-map-count{flex-shrink:0;padding:5px 10px;border-radius:20px;background:#eaf6f8;color:#255b6a;font-size:12px;font-weight:600}
.setup-map-editor{min-width:0}
.setup-map-editor>.setup-lead{font-size:13px;line-height:1.8;margin-bottom:16px}
.setup-map-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.setup-map-toolbar .setup-button{flex:1 1 150px;padding-inline:12px;font-size:13px}
.setup-map-delete{color:#944139}
.setup-map-selection{min-width:0;margin:18px 0 0;padding:12px 16px 16px;border:1px solid #dce7eb;border-radius:10px;background:#f8fbfc}
.setup-map-selection>legend{padding:0 6px;font-size:13px;font-weight:600;color:#255b6a}
.setup-map-selection .setup-fields{margin:0 0 14px}
.setup-map-moves{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.setup-map-moves>span{font-size:12px;color:#526d75;margin-right:4px}
.setup-map-moves .setup-button{flex:1;min-width:54px;min-height:44px;padding:8px;font-size:12px}
.setup-map-notice{min-height:24px;margin:14px 0 10px;color:#255b6a;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.setup-map-board{position:relative;width:100%;max-width:600px;aspect-ratio:2/3;margin:0 auto;border:2px solid #b8cdd4;border-radius:12px;background-color:#f2f7f8;background-image:radial-gradient(#b6cbd1 1px,transparent 1px);background-size:3.333333% 2.222222%;touch-action:pan-y;isolation:isolate}
.setup-map-table{position:absolute;width:16.666667%;height:11.111111%;min-width:44px;min-height:44px;padding:0;margin:0;border:2px solid transparent;border-radius:12%;background:transparent;color:#263238;font:inherit;font-size:12px;line-height:1.3;text-align:center;appearance:none;-webkit-appearance:none}
button.setup-map-table{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
button.setup-map-table:active{cursor:grabbing}
button.setup-map-table:hover{background:#d7f1f966;border-color:#8fbfcd}
.setup-map-table.is-selected{z-index:1;border-color:#247d94;background:#d7f1f988;box-shadow:0 0 0 2px #fff,0 0 0 4px #247d9433}
.setup-map-table.is-invalid{border-color:#a13129;background:#ffe8e5;box-shadow:0 0 0 2px #fff,0 0 0 4px #a1312944}
.setup-map-table:focus-visible{z-index:2;outline:3px solid #247d94;outline-offset:2px}
.setup-map-felt{position:absolute;inset:16%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-width:0;padding:3px;border:5px solid #68757b;border-radius:16%;background:#fff;box-shadow:inset 0 0 0 1px #bac3c7,0 2px 3px #26323822;pointer-events:none}
.setup-map-name{display:block;width:100%;min-width:0;color:#263238;font-size:clamp(8px,1.7vw,12px);line-height:1.4;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.setup-map-mode{display:block;max-width:100%;color:#526d75;font-size:clamp(7px,1.3vw,10px);line-height:1.3;white-space:nowrap}
.setup-map-chair{position:absolute;border:1px solid #a9b6bb;border-radius:30%;background:#e1e5e7;pointer-events:none}
.setup-map-chair-north,.setup-map-chair-south{left:36%;width:28%;height:11%}
.setup-map-chair-north{top:1%}
.setup-map-chair-south{bottom:1%}
.setup-map-chair-east,.setup-map-chair-west{top:36%;width:11%;height:28%}
.setup-map-chair-east{right:1%}
.setup-map-chair-west{left:1%}
.setup-map-finish{display:flex;justify-content:flex-end;margin:16px 0 0}
.setup-map-finish .setup-button{min-width:180px}
.setup-map-preview{min-width:0;margin:18px 0 0}
.setup-map-preview figcaption{margin:0 0 10px;color:#255b6a;font-size:13px;font-weight:600}
.setup-map-board-preview{background-image:none}
.setup-map-board-preview .setup-map-table{min-width:0;min-height:0}
.setup-map-board-preview .setup-map-felt{gap:1px;padding:1px;border-width:3px}
.setup-map-board-preview .setup-map-name{font-size:8px}
.setup-map-board-preview .setup-map-mode{font-size:7px}
.setup-time-field{min-width:0;margin:0;padding:0;border:0}
.setup-time-field>legend{margin:0 0 8px;padding:0;color:#173f4a;font-size:14px;font-weight:600}
.setup-time-parts{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:10px}
.setup-time-parts .setup-field label{margin-bottom:4px;font-size:12px;font-weight:400;color:#526d75}
.setup-time-separator{display:flex;align-items:center;min-height:48px;color:#526d75;font-size:18px}
@media(max-width:600px){
  .setup-map-choice-actions{grid-template-columns:minmax(0,1fr)}
  .setup-map-heading h2{font-size:17px}
  .setup-map-selection{padding:12px}
  .setup-map-moves>span{flex-basis:100%;margin:0}
  .setup-map-felt{gap:1px;padding:1px;border-width:3px}
}
@media(max-width:380px){
  .setup-map-choice{padding:14px}
  .setup-map-toolbar .setup-button{flex-basis:100%}
  .setup-map-moves{gap:6px}
  .setup-map-moves .setup-button{min-width:44px;padding-inline:4px}
  .setup-map-finish .setup-button{width:100%;min-width:0}
  .setup-map-name{font-size:8px}
  .setup-map-mode{font-size:7px}
}

/* Hours remain an unreviewed draft in the setup, review, and completion views. */
.setup-hours-notice{min-width:0;margin:16px 0 24px;padding:14px 16px;border:1px solid #c8d3d7;border-radius:10px;background:#f5f8f9;color:#3d5660;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.setup-hours-notice>strong{display:block;color:#304b55;font-size:14px;font-weight:600}
.setup-hours-notice>p{margin:6px 0 0}
.setup-hours-notice .setup-hours-note{font-size:12px}
.setup-hours-hold{border-color:#d9b573;background:#fff8e9;color:#6b4b1d}
.setup-hours-hold>strong{color:#6b4b1d}
.setup-review-section>.setup-hours-notice{margin-bottom:0}
.setup-completion-hours{display:block;margin-top:3px;color:#526d75;font-size:11px;font-weight:500}

/* Fixtures use the same whole-object footprint as tables, with independent controls. */
.setup-map-fixture{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:column;width:16.666667%;height:11.111111%;min-width:44px;min-height:44px;padding:3px;margin:0;border:2px solid #a7bac4;border-radius:10%;background:#f8fcff;color:#31576b;font:inherit;text-align:center;appearance:none;-webkit-appearance:none}
button.setup-map-fixture{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
button.setup-map-fixture:active{cursor:grabbing}
button.setup-map-fixture:hover{border-color:#247d94;background:#e4f3f9}
.setup-map-fixture.is-selected{z-index:1;border-color:#247d94;background:#d7f1f9;box-shadow:0 0 0 2px #fff,0 0 0 4px #247d9433}
.setup-map-fixture.is-invalid{border-color:#a13129;background:#ffe8e5}
.setup-map-fixture:focus-visible{z-index:2;outline:3px solid #247d94;outline-offset:2px}
.setup-map-fixture-icon{display:block;width:54%;height:54%;flex-shrink:1;pointer-events:none}
.setup-map-fixture-name{display:block;width:100%;font-size:clamp(8px,1.7vw,12px);line-height:1.3;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;pointer-events:none}
.setup-map-fixture-kind{font-size:clamp(7px,1.3vw,10px);line-height:1.2;pointer-events:none}
.setup-map-board-preview .setup-map-fixture{min-width:0;min-height:0;padding:1px;border-width:1px}
.setup-map-board-preview .setup-map-fixture-name{font-size:8px}
.setup-map-board-preview .setup-map-fixture-kind{font-size:7px}

/* A measured viewport fits occupied bounds without rewriting the map coordinates.
   The stage clips unused canvas, while overflow stays in this local region. */
.setup-map-viewport{position:relative;width:100%;max-width:100%;min-width:0;height:min(64dvh,640px);overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain;touch-action:pan-x pan-y;border:2px solid #b8cdd4;border-radius:12px;background:#f2f7f8}
.setup-map-viewport:focus-visible{outline:3px solid #247d94;outline-offset:3px}
.setup-map-stage{position:relative;width:600px;height:900px;overflow:hidden}
.setup-map-stage>.setup-map-board{position:absolute;left:0;top:0;width:600px;height:900px;max-width:none;aspect-ratio:auto;margin:0;border:0;border-radius:0;transform-origin:0 0;touch-action:pan-x pan-y}
.setup-map-stage .setup-map-name,.setup-map-stage .setup-map-fixture-name{font-size:14px}
.setup-map-stage .setup-map-mode,.setup-map-stage .setup-map-fixture-kind{font-size:12px}
.setup-map-stage .setup-map-felt{gap:3px;padding:3px;border-width:5px}
.setup-map-stage .setup-map-fixture{padding:3px;border-width:2px}

/* Mobile overview has no inner pan; the surrounding setup form can still scroll.
   The original board and percentage positions remain unchanged for dragging. */
.setup-map-viewport[data-map-overview=true]{overflow:hidden;scrollbar-gutter:auto;overscroll-behavior:auto;touch-action:pan-y;min-height:0}
.setup-map-viewport[data-map-overview=true]>.setup-map-stage>.setup-map-board{touch-action:pan-y}

/* Match the POS drawing's visible span to the entrance, rather than its SVG box. */
.setup-map-fixture>.ucd-register-icon{flex:0 0 auto;width:49%;height:49%}
