/* V1 presentation layer. All SVG world coordinates and business states are preserved. */
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;color-scheme:light}
.shell{--muted:#686b78;--line:color-mix(in srgb,var(--ink),transparent 90%);--radius:20px;background:var(--bg);font-family:inherit}
.shell .icon{width:20px;height:20px;stroke-width:1.7}
.shell .main{min-width:0}.shell .page{max-width:none}
.shell .btn,.shell .icon-btn,.shell .text-btn,.shell .duration,.shell .zone-tab,.shell .view-switch button,.shell .fit-btn{min-height:44px;min-width:44px;border-radius:12px}
.shell input:not([type=checkbox]):not([type=color]),.shell select{min-height:44px;font-size:15px}
.shell .btn.primary{box-shadow:none}.shell .panel{border:1px solid var(--line);border-radius:20px;box-shadow:0 2px 8px #20232b04}
.shell .topbar{background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important}
.shell.view-desk .topbar{display:none}
.shell.view-desk .page{padding-top:20px}
.shell.view-desk .page-heading{margin-bottom:6px;gap:20px;min-height:60px;flex-wrap:nowrap}
.shell.view-desk .page-heading .eyebrow,.shell.view-desk .page-heading p{display:none}
.shell.view-desk .page-heading h1{font-size:28px;font-weight:650;letter-spacing:-.8px;line-height:1.25;overflow-wrap:anywhere}
.shell.view-desk .heading-actions{margin:0;width:auto;flex-shrink:0}
.shell .shop-clock{border:0;background:none;box-shadow:none;backdrop-filter:none;flex:0 0 auto;min-width:140px;margin-left:auto;margin-right:16px;padding:0;text-align:right}
.shell .shop-clock>span{font-size:11px;color:var(--muted)}
.shell .shop-clock .clock-digits{font-size:26px;font-weight:550;letter-spacing:-.6px;font-variant-numeric:tabular-nums}
.shell .server-status{font-size:11px;margin:4px 0 8px;color:var(--muted)}
.service-summary{display:flex;align-items:center;gap:4px;margin-bottom:12px;min-width:0}
.summary-item{display:flex;gap:8px;align-items:baseline;padding:7px 16px 7px 10px;min-height:44px;border-radius:10px;white-space:nowrap}
.summary-item strong{font-size:23px;font-weight:600;letter-spacing:-.6px;font-variant-numeric:tabular-nums}.summary-item span{font-size:12px;color:var(--muted)}
.summary-item:hover,.summary-item.selected{background:var(--purple-soft)}.summary-soon strong{color:#9b620b}.summary-reset{margin-left:auto;color:var(--muted);font-size:12px}
.shell.view-desk .workspace-grid{grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
.shell.view-desk .workspace-grid>.right-column{display:none}
.shell.view-desk.detail-open .workspace-grid{grid-template-columns:minmax(0,1fr) 344px}
.shell.view-desk.detail-open .workspace-grid>.right-column{display:block;min-width:0}
.shell .detail-panel{padding:18px;max-height:calc(100dvh - 172px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.shell .close-detail{display:flex;float:right;margin:-8px -6px 0 6px}
.shell .detail-header{padding-bottom:12px;border:0;min-height:36px}.shell .detail-header h2{font-size:13px;color:var(--muted)}
.shell .seat-identity{padding:8px 0 12px;margin:0;gap:12px;border:0}.shell .big-seat{width:46px;height:46px;font-size:16px;border-radius:12px}
.shell .seat-identity h3{font-size:24px}.shell .seat-identity p{font-size:12px;margin-top:2px}.shell .seat-identity h3>span{font-size:12px}
.shell .timer-card{margin:4px 0 12px;padding:14px;border-radius:16px;background:color-mix(in srgb,var(--purple),var(--surface) 95%);border:0}
.shell .timer-card strong{font-size:36px;line-height:1.2;font-variant-numeric:tabular-nums;color:var(--ink);letter-spacing:-1px;margin:5px 0}
.shell .timer-card.overdue{background:#fff0f0}.shell .timer-card.overdue strong{color:#b33442}.shell .timer-card.stopped{background:#f0f1f4}
.shell .timer-card>span{font-size:11px;color:var(--muted)}
.shell .seat-operation-row{gap:8px;margin:10px 0}.shell .control-block{margin-top:12px}.shell .renewal-block{padding-top:0}
.shell .duration-options{gap:6px;margin:8px 0}.shell .duration{font-size:13px;padding:6px}
.shell .custom-duration{margin:8px 0}.shell .price-line{margin:12px 0}.shell .secondary-actions{margin-top:8px;gap:8px}
.session-disclosure,.note-disclosure{border:0;margin:8px 0;font-size:12px;color:var(--muted)}
.session-disclosure summary,.note-disclosure summary{min-height:44px;display:flex;align-items:center;cursor:pointer;gap:8px;font-weight:500}
.session-disclosure summary::before,.note-disclosure summary::before{content:'›';font-size:20px;transform:rotate(0)}
.session-disclosure[open] summary::before,.note-disclosure[open] summary::before{transform:rotate(90deg)}
.shell .session-info{margin:0 0 8px;padding:0;border:0}.shell .note-block{margin:0;padding:0;border:0}
.shell .field-hint{font-size:11px;line-height:1.6}.shell .renewal-block .field-hint{margin:8px 0}
.shell #reminder-panel{display:none}.shell .alert-strip{margin-bottom:10px;border:0;border-left:3px solid #b83947;border-radius:12px;background:#fff0f1;padding:10px 14px;box-shadow:none}
.shell .alert-strip>div{min-width:0}.shell .alert-strip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:60vw;font-size:12px}
.shell .alert-strip strong{font-size:13px}.shell .alert-strip .text-btn{flex-shrink:0}
.shell .panel-heading{padding:10px 16px;min-height:62px;gap:10px}.shell .floor-filters{padding:5px 16px 10px;border-bottom:0;gap:8px}
.shell .floor-panel{overflow:hidden}.shell .search-box{border:0;background:color-mix(in srgb,var(--ink),var(--surface) 96%);max-width:180px}
.shell .zone-tabs{flex:1}.shell .zone-tab{padding:6px 12px}.shell .map-scroll{background:var(--surface)}
.shell .zone-shape>rect{fill:#f7f8fab3;stroke:#c9ccd3;stroke-dasharray:5 5}.shell .zone-name{fill:#545968;font-weight:600}
.shell .wall-line{stroke:#858b98}.shell .seat-main{fill:#fefefe;stroke:#aab1bd;stroke-width:1.4}
.shell .seat-number{fill:#454b58;font-size:19px;font-weight:600}.shell .seat-label{fill:#656c79;font-size:11px}
.shell .seat-shape.active .seat-main{fill:#eaf4f0;stroke:#77a996}.shell .seat-shape.active .seat-back{fill:#77a996}
.shell .seat-shape.active .seat-number{font-size:14px;fill:#3c6656}.shell .seat-shape .countdown-label{font-size:17px;font-weight:700;letter-spacing:-.5px;fill:#214c3c;font-variant-numeric:tabular-nums}
.shell .seat-substatus{font-size:8px;fill:#466452}.shell .seat-shape.reserved .seat-main{fill:#fff5dc;stroke:#c59435}.shell .seat-shape.reserved .seat-label{fill:#875b11}
.shell .seat-shape.repair .seat-main{fill:#e9ebef;stroke:#9299a6;stroke-dasharray:3 2}.shell .seat-shape.repair .seat-label{fill:#565d6c}
.shell .seat-shape.needs-cleaning .seat-main{fill:#eef0fa;stroke:#7384b2;stroke-dasharray:5 2}.shell .seat-shape.needs-cleaning .seat-label{fill:#4a5b87}
.shell .seat-shape.is-soon .seat-main{fill:#fff1cf;stroke:#b87716;stroke-width:2.5;stroke-dasharray:5 2}.shell .seat-shape.is-soon .countdown-label,.shell .seat-shape.is-soon .seat-substatus{fill:#875300}
.shell .seat-shape.is-overdue .seat-main{fill:#ffe6e8;stroke:#bb3448;stroke-width:3;stroke-dasharray:none}.shell .seat-shape.is-overdue .countdown-label,.shell .seat-shape.is-overdue .seat-substatus{fill:#a12135}
.shell .seat-shape.is-paused:not(.is-overdue) .seat-main{fill:#edf0f4;stroke:#8994a4;stroke-dasharray:3 2}.shell .seat-shape.is-paused .countdown-label{fill:#505c6e}
.shell .seat-shape.is-selected .seat-main{stroke:var(--purple);stroke-width:3}.shell .seat-shape:focus-visible{outline:0}.shell .seat-shape:focus-visible .seat-main{stroke:var(--purple);stroke-width:4}
.shell .status-dot.active{background:#77a996}.shell .status-dot.free{background:#fff;border:1px solid #9ba5b3}.shell .status-dot.reserved{background:#e0b254}.shell .status-dot.repair{background:#8994a4}
.shell .map-bottom{padding:6px 14px;gap:8px}.shell .legend{gap:4px;flex-wrap:wrap}.legend-filter{min-height:36px;display:flex;align-items:center;gap:5px;padding:4px 6px;border-radius:8px;font-size:11px;color:var(--muted)}.legend-filter[aria-pressed=true]{background:var(--purple-soft);color:var(--purple)}
.shell .map-hint{font-size:11px}.shell .page-footer{padding:10px 0;font-size:11px}.shell .page-footer>span:last-child{display:none}
.shell:not(.map-fullscreen) .sidebar{width:192px;left:0;top:0;bottom:0;border:0;border-right:1px solid var(--line);border-radius:0;padding:26px 14px 0;background:color-mix(in srgb,var(--surface),var(--bg) 45%);box-shadow:none;backdrop-filter:none}
.shell:not(.map-fullscreen) .main{margin-left:192px}.shell .brand.store-brand{padding:0 4px 30px;gap:8px}.shell .brand-symbol{flex-shrink:0}
.shell .brand strong{font-size:16px;letter-spacing:0;overflow-wrap:anywhere}.shell .brand small{font-size:10px;margin-top:4px}
.shell .nav-label{font-size:10px;padding:0 10px 12px;letter-spacing:0}
.shell .sidebar .nav-item{font-size:14px;min-height:48px;margin:0 0 5px;padding:10px 12px;gap:12px;border-radius:12px;box-shadow:none}
.shell .sidebar .nav-item .icon{width:20px;height:20px;padding:0;background:none;color:inherit;border-radius:0}
.shell .nav-item.active{background:var(--purple-soft);color:var(--purple);box-shadow:none}.shell .nav-indicator{display:none}.shell .nav-item:disabled{opacity:.45;cursor:not-allowed}
.shell .sidebar-bottom{padding-top:24px}.shell .local-card{background:none;border:0;padding:8px 6px;margin:0}.shell .local-card p{display:none}.shell .local-title{font-size:11px}.shell .backup-link{min-height:44px;gap:10px}
.shell .store-user{padding:12px 4px}.shell .help-link{margin:4px 0}.shell .sidebar-collapsed .local-card{display:none}
.shell:not(.map-fullscreen).sidebar-collapsed .sidebar{width:80px;padding:20px 6px 0}.shell:not(.map-fullscreen).sidebar-collapsed .main{margin-left:80px}
.shell.sidebar-collapsed .sidebar .nav-item{display:flex;flex-direction:column;gap:3px;padding:7px 4px;min-height:60px;font-size:11px}
.shell.sidebar-collapsed .sidebar .nav-item>span{display:block;font-size:11px}.shell.sidebar-collapsed .brand>span:last-child{display:none}.shell.sidebar-collapsed .sidebar nav{margin-top:0}
.shell .sidebar-toggle{min-width:32px;min-height:44px;border-radius:10px;right:-16px;box-shadow:0 2px 8px #0001}.shell .sidebar-toggle .icon{width:16px}
.shell .modal-overlay{backdrop-filter:none;background:#1b24384a}.shell .modal{border-radius:22px;box-shadow:0 18px 60px #1822312a;animation:ui-panel-in .16s ease-out}.shell .modal-heading,.shell .modal-footer{background:var(--surface)}
@keyframes ui-panel-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1366px){
 .shell.view-desk .page-heading h1{font-size:24px}
 .shell.view-desk.detail-open .workspace-grid{grid-template-columns:minmax(0,1fr)}
 .shell.view-desk.detail-open .workspace-grid>.right-column{position:fixed;inset:0;z-index:90;padding:12px;background:#1b24383d;overflow:auto}
 .shell.view-desk.detail-open #seat-detail{width:min(400px,100%);min-height:0;max-height:calc(100dvh - 24px);margin-left:auto;position:relative;padding:18px;box-shadow:0 20px 60px #18223130;animation:ui-panel-in .16s ease-out}
}
@media(max-width:1100px){
 .shell:not(.map-fullscreen) .sidebar{width:80px;padding:20px 6px 0}.shell:not(.map-fullscreen) .main{margin-left:80px}
 .shell .sidebar .nav-item{flex-direction:column;gap:3px;padding:7px 4px;min-height:60px;font-size:11px}.shell .sidebar .nav-item>span{display:block!important;font-size:11px}
 .shell .brand>span:last-child,.shell .sidebar .nav-label,.shell .local-card,.shell .store-user{display:none}.shell .brand.store-brand{justify-content:center;padding:0 0 18px}
 .shell .page{padding:14px 16px 0}.shell .sidebar-toggle{display:none}
}
@media(max-width:600px){
 .shell{display:block;padding-bottom:76px}.shell:not(.map-fullscreen) .main,.shell:not(.map-fullscreen).sidebar-collapsed .main{margin-left:0}
 .shell:not(.map-fullscreen) .sidebar,.shell:not(.map-fullscreen).sidebar-collapsed .sidebar{position:fixed;inset:auto 0 0;width:100%;height:auto;padding:6px 8px max(6px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface);z-index:70}
 .shell .sidebar .brand,.shell .sidebar-bottom{display:none}.shell .sidebar nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));width:100%;gap:2px}
 .shell .sidebar .nav-item,.shell.sidebar-collapsed .sidebar .nav-item{width:100%;margin:0;padding:5px 2px;min-height:50px;font-size:10px;gap:2px}
 .shell .page,.shell.view-desk .page{padding:12px 12px 0}.shell.view-desk .page-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
 .shell.view-desk .page-heading h1{font-size:22px}.shell .shop-clock{margin:0;min-width:0}.shell .shop-clock .clock-digits{font-size:20px}
 .shell.view-desk .heading-actions{grid-column:1/-1;width:100%;justify-content:flex-end}.shell.view-desk .heading-actions .btn{width:100%}
 .service-summary{gap:0;margin-bottom:8px;flex-wrap:wrap}.summary-item{padding:6px 8px;gap:5px}.summary-item strong{font-size:21px}.summary-item span{font-size:11px}.summary-reset{font-size:11px;padding:5px;min-width:0!important}
 .shell .panel-heading{padding:8px 12px;gap:6px}.shell .panel-title h2{font-size:13px}.shell .count-badge{font-size:10px}.shell .floor-filters{padding:4px 10px 8px}.shell .search-box{max-width:none;width:100%}
 .shell .zone-tabs{flex-wrap:nowrap;overflow:auto;width:100%;flex-basis:100%;scrollbar-width:none}.shell .zone-tab{white-space:nowrap}
 .shell .map-hint{display:none}.shell.view-desk .map-scroll:not(.editing){height:max(300px,calc(100dvh - 395px))!important}.shell.view-desk .map-scroll:not(.editing) .floor-map{height:calc(max(300px,calc(100dvh - 395px)) * var(--map-zoom,1))!important}
 .shell.view-desk.detail-open .workspace-grid>.right-column{padding:8px}.shell.view-desk.detail-open #seat-detail{width:100%;max-height:calc(100dvh - 16px);padding:16px;border-radius:20px}
 .shell .modal{max-height:calc(100dvh - 24px);margin:0;width:100%}.shell .modal-overlay{padding:12px}
 .shell .settings-grid{grid-template-columns:minmax(0,1fr)}.shell .settings-panel{padding:18px}.shell .package-row{flex-wrap:wrap}.shell .settings-actions{flex-wrap:wrap}
 .shell.map-fullscreen{padding-bottom:0}.shell.map-fullscreen .map-scroll:not(.editing){height:100%!important}.shell.map-fullscreen .map-scroll:not(.editing) .floor-map{height:calc(var(--map-viewport-height,80dvh) * var(--map-zoom,1))!important}
}
@media(prefers-reduced-motion:reduce){.shell *,#modal-root *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(prefers-reduced-transparency:reduce){.shell .sidebar{background:var(--surface)}.shell .modal-overlay{background:#333a48c9}}
.server-setup{max-width:680px;margin:6dvh auto;padding:36px;background:#fefefe;border:1px solid #e4e6ed;box-shadow:0 8px 30px #18243208;font-family:inherit;color:#252936}
.server-setup h1{font-size:28px;letter-spacing:-.8px}.server-setup p{font-size:14px;color:#646a77}.setup-brand{font-size:20px;font-weight:650;margin-bottom:30px}.setup-brand span{font-size:12px;color:#6b7080;font-weight:400;margin-left:10px}
.setup-steps,.setup-guide ol{list-style:none;display:flex;gap:24px;padding:0;margin:24px 0}.setup-steps li,.setup-guide li{display:flex;align-items:center;gap:8px;font-size:13px;color:#686e7b}.setup-steps b,.setup-guide b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#eff0f5;font-weight:500}
.server-setup #fresh-store{background:#6852b6;color:#fff;border:0;width:100%;margin:8px 0 16px;min-height:48px}.legacy-options{margin-top:12px;border-top:1px solid #e5e7ed;padding-top:8px}.legacy-options summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:#626879;font-size:13px}
.server-setup #confirm-shop{margin-right:8px}.server-setup #setup-error:empty{display:none}
.setup-guide{padding:18px 20px;margin:12px 0;background:var(--surface);border:1px solid var(--line);border-radius:18px}.setup-guide ol{margin:0 0 14px;gap:24px}.setup-guide li.current{color:var(--purple);font-weight:600}.setup-guide li.current b{background:var(--purple);color:var(--accent-ink)}.setup-guide li.complete b{background:#e6f2eb;color:#397456}
.setup-guide form label{font-size:13px;margin-bottom:8px}.setup-guide form>div{display:flex;gap:10px}.setup-guide input{flex:1;min-width:0}.setup-next{display:flex;align-items:center;justify-content:space-between;gap:12px}.setup-next p,.setup-next>span{font-size:13px;color:var(--muted)}.setup-next>div{display:flex;gap:8px}
@media(max-width:600px){.server-setup{margin:16px;padding:24px}.server-setup h1{font-size:24px}.setup-steps,.setup-guide ol{gap:10px;justify-content:space-between}.setup-steps li,.setup-guide li{font-size:11px;gap:5px}.setup-guide{padding:16px}.setup-guide form>div,.setup-next{flex-direction:column;align-items:stretch}.setup-next>div{flex-wrap:wrap}}
/* The overview belongs to the store header, leaving vertical space for the map. */
.shell.view-desk .page-heading{gap:16px;min-height:54px}.shell.view-desk .page-heading>div:first-child{min-width:0;max-width:32%}
.shell.view-desk .service-summary{margin:0;gap:0;flex-shrink:0}.shell.view-desk .summary-item{padding:6px 10px;gap:6px}.shell.view-desk .summary-item strong{font-size:22px}.shell.view-desk .summary-reset{display:none}
.shell .alert-strip{padding:2px 12px;min-height:46px;margin-bottom:10px}.shell .panel-heading{min-height:54px;padding:5px 14px}.shell .floor-filters{padding:2px 14px 8px}
.shell .seat-shape.active .seat-number{font-size:12px}.shell .seat-shape .countdown-label{font-size:14.5px;letter-spacing:-.65px}
.shell .seat-status-symbol{color:#456957;pointer-events:none}.shell .is-overdue .seat-status-symbol{color:#a12135}.shell .is-soon .seat-status-symbol{color:#875300}.shell .repair .seat-status-symbol,.shell .is-paused .seat-status-symbol{color:#596674}
.shell .status-badge.active,.shell .big-seat.active{background:#eaf4f0;color:#326b51;border-color:#a8cdbd}.shell .detail-panel:has(.timer-card.overdue) .status-badge,.shell .detail-panel:has(.timer-card.overdue) .big-seat{background:#ffe6e8;color:#a12135;border-color:#d6919c}
.shell .detail-panel:has(.timer-card.stopped) .status-badge{background:#edf0f4;color:#505c6e}.shell .timer-card>div{color:var(--muted)}.shell .acknowledge-btn{border-color:#e6b4bd;background:#fff5f6;color:#9b3243;margin-bottom:6px}
.shell .seat-main{transition:fill .16s ease,stroke .16s ease}
.shell .legend-filter{min-height:44px}.cleaning-dot{display:inline-block;width:9px;height:9px;border:1.5px dashed #7384b2;background:#eef0fa;border-radius:2px;margin-right:4px}
.shell .sidebar-bottom>#access-logout{width:100%;margin:0 0 10px;padding:6px 2px;min-height:44px;font-size:11px;white-space:nowrap}
@media(max-width:1100px){.shell.view-desk .page-heading{gap:8px}.shell.view-desk .page-heading h1{font-size:22px}.shell.view-desk .summary-item{padding:5px 6px;gap:4px}.shell.view-desk .summary-item span{font-size:11px}.shell .shop-clock{min-width:110px;margin-right:4px}.shell .shop-clock .clock-digits{font-size:23px}}
@media(max-width:800px) and (min-width:601px){.shell.view-desk .page-heading{flex-wrap:wrap}.shell.view-desk .page-heading>div:first-child{max-width:48%}.shell.view-desk .service-summary{order:4;width:100%}.shell.view-desk .shop-clock{margin-left:auto}.shell.view-desk .page-heading h1{font-size:20px}}
@media(max-width:600px){
 .shell.view-desk .page-heading{grid-template-columns:minmax(0,1fr) auto;gap:8px}.shell.view-desk .page-heading>div:first-child{max-width:none}.shell.view-desk .page-heading h1{font-size:22px}
 .shell.view-desk .shop-clock{grid-column:2;grid-row:1;min-width:0}.shell.view-desk .heading-actions{grid-row:3}.shell.view-desk .service-summary{grid-column:1/-1;grid-row:2;justify-content:space-between}.shell.view-desk .summary-item{padding:4px 6px}.shell.view-desk .summary-item span{font-size:12px}
 .shell.view-desk .map-scroll:not(.editing){height:var(--map-viewport-height,300px)!important}.shell.view-desk .map-scroll:not(.editing) .floor-map{height:calc(var(--map-viewport-height,300px) * var(--map-zoom,1))!important}
 .shell.view-desk .floor-filters{padding:2px 10px 8px}.shell .legend{column-gap:8px;row-gap:0}
}
