/* Salle de contrôle : la maquette 3D occupe tout l'espace sous la barre du haut ; le reste flotte dans une matière iOS
   (fond flouté de la barre de navigation, coins de 14 à 18 px, listes groupées, couleurs système). */
.content.cr-host { padding: 0; max-width: none; gap: 0; }
.cr { position: relative; height: calc(100dvh - var(--top-h)); min-height: 480px; overflow: hidden; }
@media (max-width: 899px) { .cr { height: calc(100dvh - var(--top-h) - env(safe-area-inset-top) - var(--tab-h) - env(safe-area-inset-bottom)); } }
.cr-stage { position: absolute; inset: 0; }
.cr-stage canvas { display: block; width: 100% !important; height: 100% !important; touch-action: none; cursor: grab; }
.cr-stage canvas:active { cursor: grabbing; }
/* [GPT 2026-10-27] A single layer chooser and a persistent record/history inspector replace stacked filter sheets. */
.mx-controls{display:flex;align-items:center;gap:8px}.mx-controls>label{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:4px 10px}.mx-controls select{border:0;background:transparent;color:var(--text);font:600 13px system-ui;padding:8px 4px;max-width:200px}.mx-controls .cr-btn{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px;color:var(--text)}.map-explorer{position:absolute;right:12px;top:78px;bottom:12px;width:340px;background:var(--surface);border:1px solid var(--line);border-radius:18px;z-index:8;display:flex;flex-direction:column;box-shadow:0 8px 40px #0002;overflow:hidden}.map-explorer[hidden]{display:none}.map-explorer>header{padding:16px 14px 10px;display:flex;align-items:center;justify-content:space-between;gap:12px}.map-explorer>header strong{font-size:15px}.mx-status{display:block;font-size:11px;color:var(--muted);margin-top:4px}.mx-search{display:flex;align-items:center;gap:8px;margin:0 14px 10px;padding:9px 12px;border-radius:10px;background:var(--bg)}.mx-search input{width:100%;min-width:0;background:transparent;border:0;padding:0;min-height:24px;font-size:13px;color:var(--text)}.mx-content{overflow:auto;padding:0 14px 18px;flex:1;min-height:0}.mx-record{display:flex;align-items:center;gap:10px;padding:13px 0;border:0;border-bottom:1px solid var(--line);width:100%;text-align:left;color:var(--text);background:transparent}.mx-record .grow{min-width:0}.mx-record strong{display:block;font-size:13px;overflow-wrap:anywhere}.mx-record small{display:block;font-size:11px;color:var(--muted);margin-top:5px;line-height:1.4}.mx-record .itile{background:var(--bg);color:var(--accent);width:30px;height:30px}.mx-record-title{padding:16px 0}.mx-record-title h3{margin:5px 0 10px;font-size:22px}.mx-condition{border-radius:20px;background:var(--bg);padding:6px 10px;font-size:11px}.mx-record-actions{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.mx-content h4{font-size:12px;color:var(--muted);margin:22px 0 10px}.mx-note,.mx-empty{font-size:12px;line-height:1.55;color:var(--muted)}.mx-amount{font-size:26px;font-weight:600;margin:12px 0}.mx-issues a{display:block;padding:10px 0;border-bottom:1px solid var(--line);color:var(--text);text-decoration:none}.mx-issues strong,.mx-issues small{display:block;font-size:12px}.mx-issues small{color:var(--muted);margin-top:4px}.mx-timeline{list-style:none;padding:0;margin:0}.mx-timeline li{border-left:2px solid var(--line);padding:0 0 18px 14px;margin-left:3px;display:flex;flex-direction:column;gap:5px}.mx-timeline strong{font-size:12px;overflow-wrap:anywhere}.mx-timeline span{font-size:12px}.mx-timeline small{font-size:10px;color:var(--muted)}.mx-order-lines>div{padding:8px 0;font-size:12px;border-bottom:1px solid var(--line)}.mx-order-lines small{display:block;color:var(--muted)}.mx-loading{padding:20px 0;color:var(--muted);font-size:13px}.cr.has-explorer .cr-stage{right:366px}.cr.has-explorer .cr-top{right:366px}.cr.has-explorer .cr-legend{display:none}.cr-compact-tools{left:12px;top:12px;right:auto!important;bottom:auto!important;max-width:calc(100% - 24px);flex-wrap:wrap}.cr-compact-tools>.btn{border-radius:12px;background:var(--surface);border:1px solid var(--line);color:var(--text);padding:10px 12px;min-height:40px}.cr-compact-tools~.cr-top{top:76px}.sl-page{position:relative}.sl-page>.map-explorer{position:fixed;top:120px;bottom:22px;right:24px;width:340px}.sl-page.has-explorer .sl-workspace{margin-right:355px}@media(max-width:950px){.cr-compact-tools .mx-controls .cr-btn span{display:none}.cr.has-explorer .cr-card.cr-small{display:none}.sl-page.has-explorer .sl-workspace{margin-right:0}}@media(max-width:650px){.map-explorer{top:auto;left:8px;right:8px;bottom:8px;width:auto;max-height:58%;border-radius:18px}.cr.has-explorer .cr-stage{right:0;bottom:45%}.cr.has-explorer .cr-top{right:12px}.cr.has-explorer .cr-top .cr-card{display:none}.mx-controls select{max-width:145px}.cr-compact-tools{gap:5px}.cr-compact-tools>.btn{font-size:11px;padding:8px}.sl-page>.map-explorer{top:auto;left:12px;right:12px;bottom:70px;width:auto;max-height:65vh}}

/* La matière commune des panneaux flottants */
.cr-mat { background: var(--material); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 0 0 .5px var(--material-line), 0 8px 28px -12px rgba(0,0,0,.28); }
.btn.cr-btn { background: var(--material); color: var(--accent-text); font-weight: 600; }

/* Étiquettes au-dessus des bâtiments (créées par world.js) */
.cr-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cr-label { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--text);
  background: var(--material); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); box-shadow: 0 0 0 .5px var(--material-line), 0 4px 12px -6px rgba(0,0,0,.3); will-change: transform; }
.cr-label b { font-weight: 600; } .cr-label span { color: var(--muted); font-variant-numeric: tabular-nums; }
.cr-label.shop { font-size: 13px; } .cr-label.shop span { color: var(--text); }
.cr-label.dept { background: color-mix(in srgb, var(--ink) 82%, transparent); color: var(--on-ink); box-shadow: none; }
.cr-label.stand, .cr-label.depot { font-size: 11px; }
.cr-label i { width: 8px; height: 8px; border-radius: 50%; } .cr-label i.warn { background: var(--red); } .cr-label i.soon { background: var(--orange); }

/* Widgets du haut */
.cr-top { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 3; display: flex; gap: 10px; align-items: stretch; pointer-events: none; flex-wrap: wrap; }
.cr-top > * { pointer-events: auto; }
.cr-card { padding: 10px 14px; border-radius: 16px; min-width: 120px; animation: rise .5s var(--out) both; }
.cr-card .cr-l { font-size: 13px; color: var(--muted); letter-spacing: 0; }
.cr-card .cr-v { font-family: var(--rounded); font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.cr-card.cr-main .cr-v { font-size: 28px; }
.cr-card .cr-s { font-size: 12px; color: var(--muted); letter-spacing: 0; }
.cr-card.warn .cr-v { color: var(--red); }
.cr-legend { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 16px; align-content: center; margin-left: auto; max-width: 520px; }
.cr-legend button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 12px; font-size: 13px; font-weight: 500; letter-spacing: 0; transition: background .15s; }
.cr-legend button:active { background: var(--pressed); }
@media (hover: hover) { .cr-legend button:hover { background: var(--hover); } }
.cr-legend i { width: 8px; height: 8px; border-radius: 50%; }

/* Fil en direct */
.cr-feed-wrap { position: absolute; left: 12px; bottom: 12px; z-index: 3; width: min(340px, calc(100% - 24px)); max-height: 46%; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; }
.cr-feed-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); position: relative; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2s var(--out) infinite; }
@keyframes ping { 70%, 100% { transform: scale(2.4); opacity: 0; } }
.cr-feed { overflow: auto; padding: 0 6px 6px; display: flex; flex-direction: column; }
.fi2 { position: relative; display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 10px; font-size: 15px; letter-spacing: -.01em; }
.fi2:not(:last-child)::after { content: ""; position: absolute; left: 48px; right: 8px; bottom: 0; height: .5px; background: var(--line); }
.fi2 .itile { width: 28px; height: 28px; border-radius: 7px; } .fi2 .itile svg.i { width: 16px; height: 16px; }
.fi2.new { animation: feed-in .7s var(--spring) both; background: var(--accent-soft); }
@keyframes feed-in { from { opacity: 0; transform: translateX(-20px) scale(.96); } }

/* Outils et aide */
.cr-tools { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: flex; gap: 8px; }
.cr-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; letter-spacing: 0; color: var(--text);
  transition: opacity .6s, transform .6s var(--out); pointer-events: none; white-space: nowrap; }
.cr-hint.gone { opacity: 0; transform: translate(-50%, 12px); }

/* Feuille de détail : en-tête, gros chiffre, listes groupées */
.cr-panel { position: absolute; top: 12px; right: 12px; bottom: 64px; z-index: 5; width: min(380px, calc(100% - 24px)); overflow: auto; padding: 14px; border-radius: 18px; display: flex; flex-direction: column; gap: 14px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); transform: translateX(30px); opacity: 0; transition: transform .45s var(--spring), opacity .25s; overscroll-behavior: contain; }
.cr-panel.open { transform: none; opacity: 1; }
.cr-panel > * { flex-shrink: 0; }
.crp-h { display: flex; align-items: flex-start; gap: 10px; padding: 0 2px; }
.crp-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 8px; flex: none; }
.crp-t { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.crp-x { width: 30px; height: 30px; border-radius: 50%; background: var(--fill); color: var(--muted); display: grid; place-items: center; flex: none; }
.crp-hero { padding: 0 4px; }
.crp-big { font-family: var(--rounded); font-weight: 700; font-size: 34px; letter-spacing: -.02em; line-height: 1.1; }
.crp-sec { display: flex; flex-direction: column; }
.crp-sec .section-title { margin: 0 14px 6px; }
.crp-list > .item.crp-row { min-height: 40px; padding: 9px 14px; font-size: 15px; letter-spacing: -.01em; gap: 10px; }
.crp-list > .item.crp-row .itile { width: 26px; height: 26px; border-radius: 7px; } .crp-list > .item.crp-row .itile svg.i { width: 15px; height: 15px; }
.crp-list > .item:has(> .itile:first-child), .crp-list > .item:has(> .av:first-child), .crp-list > .item:has(> .gdot:first-child) { --sep-left: 50px; }
.crp-v { color: var(--muted); text-align: right; max-width: 60%; }
.crp-row.good .crp-v { color: var(--green); } .crp-row.warn .crp-v { color: var(--orange); } .crp-row.bad .crp-v { color: var(--red); }
.crp-state { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; letter-spacing: 0; flex: none; }
.crp-state i { width: 7px; height: 7px; border-radius: 50%; }
.crp-imp { padding: 10px 14px; font-size: 15px; }
.crp-imp .grow { display: flex; flex-direction: column; gap: 2px; }

@media (max-width: 760px) {
  .cr-top { top: 8px; left: 8px; right: 8px; gap: 6px; }
  .cr-card { padding: 8px 12px; min-width: 0; } .cr-card.cr-small { display: none; } .cr-card.cr-main .cr-v { font-size: 22px; }
  .cr-legend { display: none; }
  .cr-feed-wrap { left: 8px; right: 8px; width: auto; bottom: 8px; max-height: 30%; }
  .cr-feed-wrap .fi2:nth-child(n+4) { display: none; }
  .cr-tools { top: 8px; right: 8px; bottom: auto; }
  .cr-panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 72%; border-radius: 16px 16px 0 0; transform: translateY(40px); padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .cr-panel.open { transform: none; }
  .cr-hint { bottom: auto; top: 70px; white-space: normal; text-align: center; width: calc(100% - 32px); justify-content: center; }
}
.cr-loading { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--bg); color: var(--muted); font-size: 15px; transition: opacity .6s var(--out); }
.cr-loading.gone { opacity: 0; pointer-events: none; }
.cr-spin { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--fill-2); border-top-color: var(--accent); animation: spin .9s linear infinite; }

/* [GPT 2026-10-25] Supervision: real businesses and exceptions without a WebGL loading screen or floating panels. */
.sup-room { max-width: 1280px; margin: 0 auto; width: 100%; }
.sup-updated { display:flex; align-items:center; gap:5px; justify-content:flex-end; font-size:12px; }
.sup-summary { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:18px 20px;gap:16px; }
.sup-summary > div { display:flex;flex-direction:column;gap:4px;min-width:0; }
.sup-summary strong { font-size:28px;font-family:var(--rounded);letter-spacing:-.03em; }
.sup-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start; }
.sup-business { padding:0;overflow:hidden;min-width:0; }
.sup-business-head { display:flex;align-items:center;gap:10px;width:100%;padding:18px 16px;text-align:left;min-height:80px; }
.sup-business-head .grow { min-width:0;display:flex;flex-direction:column;gap:3px; }
.sup-business-head h2 { overflow-wrap:anywhere; }
.sup-state { font-size:12px;text-align:right;max-width:80px;flex:none; }
.sup-metrics { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0 16px;gap:14px 12px; }
.sup-metric { display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:3px;min-height:52px;min-width:0; }
.sup-metric strong { font-size:23px;font-family:var(--rounded);overflow-wrap:anywhere; }
.sup-trend { height:30px;display:flex;align-items:end;gap:5px;padding:0 16px;margin-top:14px; }
.sup-trend span { background:var(--fill-2);border-radius:3px 3px 0 0;flex:1; }
.sup-business-foot { display:flex;justify-content:space-between;gap:8px;padding:6px 16px; }
.sup-business-foot button { display:flex;align-items:center;gap:5px;min-height:44px;font-size:12px;color:var(--muted); }
.sup-next { min-height:48px;padding:10px 16px;display:flex;align-items:center;gap:8px;width:100%;text-align:left;background:var(--fill);font-size:13px;color:var(--text); }
.sup-business button:focus-visible { outline:2px solid var(--accent);outline-offset:-3px; }
@media(min-width:1350px){.sup-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:680px){.sup-grid{grid-template-columns:1fr;}.sup-summary{padding:14px;gap:12px;}.sup-summary strong{font-size:23px;}.sup-summary .small{font-size:12px;}}
/* [GPT 2026-10-25] Consistent card heights and labeled, data-backed seven-day sales sparklines. */
.sup-grid { align-items:stretch; }
.sup-business { display:flex;flex-direction:column; }
.sup-business-head { flex:none; }
.sup-trend-wrap { display:flex;align-items:center;gap:10px;margin:10px 16px 0;height:28px; }
.sup-trend-wrap > .small { flex:none;font-size:11px; }
.sup-trend { flex:1;padding:0;margin:0;height:24px; }
.sup-trend span { background:var(--shop); }
.sup-business-foot { margin-top:auto; }
/* [GPT 2026-10-25] Four daily metrics use two phone/tablet columns; currency cannot collide with counts. */
@media(max-width:480px){
  .sup-summary{grid-template-columns:repeat(2,minmax(0,1fr));}
  .sup-summary strong{overflow-wrap:anywhere;}
}
@media(min-width:1100px){.sup-summary{grid-template-columns:repeat(4,minmax(0,1fr));}}
/* [GPT 2026-10-25] Twenty-four touchable hours and a read-only timeline fit phones and portrait tablets. */
.activity-page { gap:16px; }
.activity-replay { display:flex; flex-direction:column; gap:16px; padding:16px; }
.activity-chart {padding:16px;}
.activity-replay input[type=range] { width:100%; min-height:44px; accent-color:var(--accent); }
.activity-replay select { min-height:44px; margin-left:6px; }
.activity-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.activity-facts .kpi .l { white-space:normal; min-height:2.5em; }
.activity-hours { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:6px; width:100%; }
.activity-hour { position:relative; isolation:isolate; min-height:76px; min-width:44px; padding:7px 4px; display:flex; flex-direction:column; align-items:center; justify-content:space-between; border:0; border-radius:8px; background:var(--surface-2); color:var(--text); overflow:hidden; }
.activity-hour i { position:absolute; bottom:0; width:100%; background:var(--accent); z-index:-1; }
.activity-hour.selected { outline:2px solid var(--accent); outline-offset:1px; }
.activity-hour .muted { color:var(--text); }
.activity-time { width:46px; flex:none; font-size:13px; }
@media(max-width:720px) { .activity-hours {grid-template-columns:repeat(6,minmax(0,1fr));} .activity-facts {gap:8px;} .activity-facts .kpi {padding:12px 10px;} .activity-replay .row {flex-wrap:wrap;gap:8px;} }
/* [GPT 2026-10-25] One create task per card; relationship nodes are ordinary keyboard-accessible buttons. */
.setup-page {display:flex;flex-direction:column;gap:18px;}
.setup-create-grid {display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.setup-create-card {display:flex;align-items:center;gap:12px;min-height:100px;padding:20px;text-align:left;background:var(--surface);color:var(--text);border:0;border-radius:16px;}
.setup-create-card strong {flex:1;}
/* [GPT 2026-10-26] Creation is grouped by purpose; Home has one shop/3D destination and a compact daily replay. */
.setup-page{max-width:1100px;margin:auto}.setup-intro h2{margin:4px 0 10px;font-size:24px}.setup-intro p{font-size:14px;line-height:1.5}.setup-create-card{min-height:88px;padding:18px}.setup-create-card .grow{display:flex;flex-direction:column;gap:6px;min-width:0}.setup-create-card .small{font-size:12px;line-height:1.4}.sup-destinations{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sup-destination{display:flex;align-items:center;gap:14px;padding:20px;min-width:0}.sup-destination .grow{display:flex;flex-direction:column;gap:6px;min-width:0}.sup-destination .small{font-size:12px}.sup-room .sup-business{padding-bottom:2px}.sup-room .sup-summary strong{font-size:26px}
@media(max-width:600px){.sup-destinations{grid-template-columns:1fr}.sup-destination{padding:16px}.sup-room .sup-summary strong{font-size:22px}}
.setup-targets {display:flex;flex-direction:column;width:100%;}
.setup-targets .item {min-height:44px;width:100%;}
.connection-map {display:grid;grid-template-columns:1fr .9fr 1fr;gap:20px;align-items:start;position:relative;}
.connection-map.no-incoming {grid-template-columns:.9fr 1.2fr;max-width:760px;margin:auto;width:100%;}
.connection-column {display:flex;flex-direction:column;gap:10px;min-width:0;}
.connection-node {display:flex;align-items:center;gap:10px;min-height:80px;padding:12px;background:var(--surface);color:var(--text);border:0;border-radius:16px;text-align:left;min-width:0;position:relative;}
.connection-node .grow {display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere;}
.connection-column:first-child .connection-node:after {content:'';position:absolute;left:100%;width:20px;height:1px;background:var(--line);}
.connection-column:last-child .connection-node:before {content:'';position:absolute;right:100%;width:20px;height:1px;background:var(--line);}
.connection-focus {display:flex;flex-direction:column;gap:14px;align-items:center;text-align:center;padding:24px 16px;margin-top:36px;border:2px solid var(--accent);border-radius:24px;background:var(--surface);min-width:0;}
.connection-focus h2 {margin:0;font-size:22px;overflow-wrap:anywhere;}
.connection-focus .btn {white-space:normal;}
@media(max-width:600px){.setup-create-grid{grid-template-columns:1fr;} .setup-create-card{min-height:76px;padding:16px;} .connection-map,.connection-map.no-incoming{grid-template-columns:1fr;} .connection-focus{margin-top:0;grid-row:1;} .connection-column .connection-node:before,.connection-column .connection-node:after{display:none;} }

/* [GPT 2026-10-25] Shared find/quick action targets and readable signed registers use existing surface tokens. */
.desk-global {flex:none;width:44px;min-width:44px;min-height:44px;padding:8px;}
.desk-camera {width:100%;max-height:320px;object-fit:cover;border-radius:12px;background:var(--surface-2);}
.desk-qr {width:240px;max-width:100%;margin:auto;}
.desk-qr svg {width:100%;height:auto;}
.desk-code {font-size:32px;font-variant-numeric:tabular-nums;text-align:center;letter-spacing:3px;}
.desk-register {width:100%;min-width:740px;border-collapse:collapse;font-size:14px;}
.desk-register th {position:sticky;top:0;background:var(--surface-2);text-align:left;font-weight:600;}
.desk-register th,.desk-register td {padding:12px;border-bottom:1px solid var(--line);vertical-align:top;}
.desk-register tr:nth-child(even) {background:var(--surface-2);}
.desk-register .btn {text-align:left;white-space:normal;}
@media(max-width:640px){.app-top .top-row{gap:2px;}.desk-global{width:40px;min-width:40px;}.desk-register{font-size:13px;}}

/* [GPT 2026-10-26] Measured floor plan, source drawer and touch-friendly fallback fit the existing five-space shell. */
.sl-page{display:flex;flex-direction:column;gap:12px}.sl-planbar,.sl-editbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.sl-planbar select{flex:1;min-width:180px;max-width:440px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font:inherit}.sl-meta{padding:0 2px}.sl-editbar .small{flex:1;min-width:160px}.sl-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}.sl-workspace.has-selection{grid-template-columns:minmax(0,1fr) 300px}.sl-stage{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:20px;min-height:360px;height:clamp(360px,58vh,680px);overflow:hidden;display:flex;align-items:center;justify-content:center;padding:28px}.sl-floor{position:relative;width:100%;max-height:100%;border:3px solid #8998ae;border-radius:3px;background-color:var(--surface);background-image:linear-gradient(#9aaac018 1px,transparent 1px),linear-gradient(90deg,#9aaac018 1px,transparent 1px);background-size:24px 24px}.sl-node{position:absolute;transform:translate(-50%,-50%);background:color-mix(in srgb,var(--node-color) 20%,var(--surface));border:2px solid var(--node-color);color:var(--text);border-radius:5px;display:flex;align-items:center;justify-content:center;font:inherit;cursor:pointer;min-height:10px;min-width:10px;padding:1px;overflow:visible;z-index:2}.sl-node span{font-size:12px;font-weight:650;line-height:1.15;max-width:130px;text-align:center;pointer-events:none;overflow-wrap:anywhere;text-shadow:0 1px var(--surface)}.sl-node.selected{outline:3px solid var(--accent);outline-offset:3px;z-index:4}.sl-zone{background:color-mix(in srgb,var(--node-color) 9%,var(--surface));border-style:dashed;z-index:1}.sl-wall span{background:var(--surface);padding:2px}.editing .sl-node{touch-action:none;cursor:grab}.sl-badge{position:absolute;right:-9px;top:-9px;min-width:20px;height:20px;padding:2px 5px;border-radius:20px;background:var(--orange);color:white;font-size:11px}.sl-scale{position:absolute;bottom:7px;left:50%;transform:translateX(-50%)}.sl-panel{overflow:hidden;max-height:680px;overflow-y:auto}.sl-panel .item{white-space:normal;gap:12px;font-size:14px}.sl-panel .col{gap:8px}.sl-unmapped summary{cursor:pointer;padding:14px 2px;font-weight:600}.sl-unmapped .list{max-height:360px;overflow-y:auto}.sl-empty{text-align:center;padding:50px 24px}.sl-empty>svg{width:46px;height:46px;color:var(--accent)}.sl-empty p{max-width:420px;margin:12px auto 22px}.sl-stage>canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none}.sl-world-labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}.sl-world-label{position:absolute;transform:translate(-50%,-100%);pointer-events:auto;background:var(--surface);border:1px solid;border-radius:9px;padding:5px 9px;color:var(--text);font:600 12px system-ui;box-shadow:0 4px 14px #0002;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sl-world-label[hidden]{display:none}@media(max-width:1000px){.sl-workspace.has-selection{grid-template-columns:minmax(0,1fr)}.sl-panel{max-height:none}.sl-stage{height:440px}}@media(max-width:550px){.sl-stage{height:360px;min-height:300px;padding:20px}.sl-node span{font-size:10px}.sl-planbar select{max-width:none}.sl-world-label{font-size:10px;max-width:110px}}
/* [GPT 2026-10-26] Small equipment keeps a short external label instead of wrapping into one-character columns. */
.sl-small span{position:absolute;left:50%;top:-22px;transform:translateX(-50%);white-space:nowrap;max-width:112px;min-width:28px;overflow:hidden;text-overflow:ellipsis;background:var(--surface);padding:2px 4px;border:1px solid var(--line);border-radius:5px;line-height:1.2;font-size:10px;z-index:5}
/* [GPT 2026-10-26] Sentria's operational floor shows money and occupancy directly without exposing payment actions to operators. */
.tf-page{display:flex;flex-direction:column;gap:14px}.tf-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:18px;gap:14px}.tf-summary>div{display:flex;flex-direction:column;gap:6px}.tf-summary strong{font-size:22px;letter-spacing:-.5px}.tf-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}.tf-workspace.selected{grid-template-columns:minmax(0,1fr) 290px}.tf-floor{position:relative;border:1px solid var(--line);background:var(--surface);border-radius:20px;background-image:radial-gradient(var(--line) .8px,transparent .8px);background-size:18px 18px;min-height:460px}.tf-table{position:absolute;transform:translate(-50%,-50%);width:114px;min-height:96px;border:1.5px solid var(--line);border-radius:18px;background:var(--surface);color:var(--text);display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;padding:9px 5px;font:inherit;box-shadow:0 5px 12px #00000006;cursor:pointer}.tf-table strong{font-size:17px}.tf-table-value{font-size:14px;font-weight:650}.tf-table.occupied{background:color-mix(in srgb,var(--blue) 8%,var(--surface));border-color:var(--blue)}.tf-table.bill{background:color-mix(in srgb,var(--orange) 12%,var(--surface));border-color:var(--orange)}.tf-table.chosen{outline:3px solid var(--accent);outline-offset:4px}.tf-table.joined{border-style:dashed}.tf-joined{display:flex;align-items:center;gap:3px;font-size:10px}.tf-joined svg{width:12px;height:12px}.arranging .tf-table{touch-action:none;cursor:grab}.tf-panel{overflow:hidden}.tf-panel .item{font-size:14px;gap:12px}.tf-panel .col{gap:8px}.tf-panel .item.col{align-items:flex-start}@media(max-width:1050px){.tf-workspace.selected{grid-template-columns:minmax(0,1fr)}.tf-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.tf-summary strong{font-size:20px}}@media(max-width:600px){.tf-table{width:92px;min-height:94px;border-radius:15px}.tf-table strong{font-size:15px}.tf-table-value{font-size:12px}.tf-summary{padding:14px;gap:14px}.tf-summary .small{font-size:11px}}
/* [GPT 2026-10-26] Room context comes from the same explicitly provisional/measured plan as the 3D scene. */
.tf-context{position:absolute;transform:translate(-50%,-50%);border:1px solid var(--line);background:color-mix(in srgb,var(--muted) 7%,var(--surface));border-radius:7px;pointer-events:none;display:flex;align-items:center;justify-content:center;z-index:0;overflow:hidden}.tf-context span{font-size:10px;color:var(--muted);text-align:center;padding:2px}.tf-table{z-index:1}.tf-panel .tf-lines .section-title{margin:14px 14px 4px}
/* [GPT 2026-10-26] Dense service labels fit linked table spacing; shared-bill badges do not enlarge every table. */
.tf-context span{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tf-joined{position:absolute;right:-5px;top:-9px;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:1px 4px;white-space:nowrap}.tf-summary{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:600px){.tf-table{min-height:70px;gap:2px;padding:5px 4px}.tf-table strong{font-size:14px}.tf-table .small{font-size:10px}.tf-summary{gap:8px;padding:12px}.tf-summary strong{font-size:17px}.tf-summary .small{font-size:10px;line-height:1.2}.tf-joined{font-size:9px!important}.tf-table-value{font-size:12px}}@media(max-width:420px){.tf-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.tf-table{width:clamp(62px,17vw,92px)}}@media(max-width:420px){.tf-joined{font-size:0!important;padding:2px}.tf-table-value{font-size:10px}}
/* [GPT 2026-10-26] Supplied plans retain curved footprints, angled furniture and one concise source/scale note. */
.sl-reference{display:flex;flex-direction:column;gap:4px}.sl-traced{border:0;background:none}.sl-footprint{position:absolute;inset:0;background:color-mix(in srgb,var(--muted) 9%,var(--surface));pointer-events:none}.sl-node span{transform:rotate(var(--node-angle,0deg))}.sl-architectural:not(.selected) span{display:none}.sl-wall{min-height:2px;min-width:2px;border-width:1px}.tf-traced{background:none;min-width:760px}.tf-workspace:has(.tf-traced){overflow-x:auto}.tf-traced .tf-context{border-radius:0}.tf-wall span{display:none}.tf-wall{background:var(--line);border:0}.tf-traced .tf-table{width:76px;min-height:66px;font-size:11px}.tf-traced .tf-table .small{font-size:9px}.tf-traced .tf-table-value{font-size:11px}
@media(max-width:600px){.sl-action>span,.tf-action>span{display:none}.sl-action,.tf-action{width:44px;height:44px;padding:10px}.sl-reference{padding:12px}.sl-node.sl-small span{transform:translateX(-50%) rotate(var(--node-angle,0deg))}}

/* [GPT 2026-10-26] Clear physical QR entry points and short print-review steps, using existing surface/color tokens. */
.qr-workspace{max-width:1100px}.qr-start{padding:24px;display:flex;align-items:center;gap:24px;background:linear-gradient(120deg,var(--surface),color-mix(in srgb,var(--accent) 8%,var(--surface)))}.qr-start h2{margin:0 0 8px}.qr-start p{margin:0;max-width:650px}.qr-start-actions{display:flex;flex-direction:column;gap:8px;flex-shrink:0}.qr-steps{display:flex;gap:20px;padding:0 8px;color:var(--muted);font-size:13px}.qr-status-tabs,.qr-presets{display:flex;gap:8px;flex-wrap:wrap}.qr-print-review{text-align:center;padding:20px}.qr-preview-symbol{display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);border-radius:20px;width:96px;height:96px;margin:auto}.qr-preview-symbol svg{width:64px;height:64px}.cr-freshness{font-size:11px}.fi2{text-align:left;width:100%}.qr-workspace .block,.cr-panel .block{display:block}
@media(max-width:640px){.qr-start{padding:18px;display:block}.qr-start-actions{margin-top:18px}.qr-steps{gap:8px;font-size:11px;justify-content:space-between}.cr-tools{left:8px;right:8px;justify-content:flex-end;flex-wrap:wrap}.cr-tools .btn{font-size:11px;padding:6px 8px}.cr-feed-wrap{max-height:28%;bottom:62px}.cr-hint{display:none}}

.qr-purpose-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.qr-purpose-grid>button{display:flex;flex-direction:column;text-align:left;gap:12px;align-items:flex-start;min-height:170px}.qr-status-tabs .on{background:var(--accent);color:white}

.cr-map-note{padding:8px 12px;border-radius:12px;max-width:180px;color:var(--muted);font-size:11px;align-self:flex-start}.cr-feed-h .btn{margin-left:auto}
/* [GPT 2026-10-26] Author display:flex overrode the browser's hidden rule, leaving an invisible detail panel intercepting shop taps. */
.cr-panel[hidden]{display:none}

/* [GPT 2026-10-26] The physical model owns the canvas. Activity and digital departments open on demand instead of covering the shops. */
.cr-physical .cr-feed-wrap{display:none;bottom:72px;max-height:42%}
.cr-physical.cr-show-feed .cr-feed-wrap{display:flex}
.cr-physical .cr-map-note{max-width:170px}
.cr-physical .cr-top{gap:8px}
.cr-physical .cr-card{min-width:105px;padding:8px 12px}
.cr-physical .cr-legend{max-width:490px}
.cr-physical .cr-tools{left:12px;justify-content:center;flex-wrap:wrap}
.cr-physical .cr-hint{bottom:64px}
.cr-label.cr-site{pointer-events:auto;cursor:pointer;border:0;font-weight:650;padding:7px 13px}
.cr-label.cr-object{pointer-events:auto;font-size:11px;padding:3px 7px}
.cr-label[hidden]{display:none}
@media(max-width:760px){.cr-physical .cr-top{right:8px}.cr-physical .cr-card{padding:7px 9px;min-width:0}.cr-physical .cr-map-note{max-width:150px;font-size:10px}.cr-physical .cr-tools{top:auto;bottom:8px;left:8px;right:8px;gap:5px}.cr-physical .cr-tools .btn{min-height:36px;font-size:11px;padding:6px 8px}.cr-physical .cr-feed-wrap{bottom:96px;max-height:35%}.cr-physical .cr-panel{bottom:0}.cr-physical .cr-legend{display:none}}
.setup-page{margin:0 auto;width:100%}

/* [GPT 2026-10-27] Compact layer controls and anchored readable values preserve the shop plan. */
.map-layers{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.cr-value,.sl-value-label{white-space:pre-line!important;text-align:left;max-width:240px;font-size:11px!important;line-height:1.4;border:1px solid var(--line);box-shadow:0 4px 18px #0002}.cr-value{padding:7px 10px!important}.sl-planbar{flex-wrap:wrap}

/* [GPT 2026-10-27] Keep the room and its selected table together on a portrait tablet. */
.tf-party-overview{display:flex;flex-direction:column;gap:7px;padding:16px}.tf-running{font-size:30px;letter-spacing:-.8px}.tf-party-actions{display:flex;flex-wrap:wrap;gap:8px}.tf-party-actions .primary{flex:1 1 220px}.tf-panel .tf-lines{max-height:240px;overflow:auto}@media(min-width:600px) and (max-width:1050px){.tf-workspace.selected .tf-panel{grid-row:1}.tf-party-overview{padding:14px}.tf-panel .tf-lines{display:none}.tf-party-actions{padding-top:0}.tf-floor{overflow:visible}}

.map-layers button[hidden]{display:none!important}

/* [GPT 2026-10-27] Respect collision culling instead of CSS overriding the hidden property. */
.sl-world-label[hidden]{display:none!important}

/* [GPT 2026-10-27] Keep compact tools above the single scene note at all supported widths. */
.cr-physical>.cr-top{top:72px;left:12px;right:auto;max-width:calc(100% - 24px);pointer-events:none}.cr-physical>.cr-top .cr-map-note{pointer-events:auto;font-size:12px;padding:10px 14px}.cr-physical>.cr-top .cr-map-note .small{display:block;margin-top:4px}.cr.has-explorer>.cr-top{right:366px}.map-explorer .mx-content .btn{white-space:normal}.cr-compact-tools .btn{font-size:12px}@media(max-width:650px){.cr-physical>.cr-top{top:105px}.cr-compact-tools>.btn:not(.icon){font-size:0;gap:0}.cr-compact-tools>.btn:not(.icon) .i{width:18px;height:18px}.cr.has-explorer>.cr-top{display:none}}

/* [GPT 2026-10-27] A selected linked record stays visibly anchored to its real mapped node. */
.cr-label.cr-value{pointer-events:auto}.cr-label.cr-selected{background:var(--accent);color:var(--on-accent,#fff);border:2px solid #fff;box-shadow:0 3px 16px #0004;font-weight:650;max-width:210px}
/* [GPT 2026-10-27] Phone tools fit one row; Home is already in the bottom navigation. */
@media(max-width:650px){.cr-compact-tools>.btn:last-child{display:none}.cr-compact-tools .mx-controls{gap:4px}.cr-compact-tools .mx-controls>label{padding:2px 6px;gap:4px}.cr-compact-tools .mx-controls select{max-width:125px;font-size:12px}.cr-compact-tools .mx-controls .cr-btn{padding:8px;min-height:36px}.cr-compact-tools>.btn{padding:6px;min-height:36px}}
.sl-panel .col.pad{display:flex;flex-direction:column;align-items:stretch}.sl-panel .col.pad .btn{width:100%;font-size:15px;justify-content:center;white-space:normal} /* [GPT 2026-10-29] panel buttons stack inside the narrow side panel */
/* [GPT 2026-11-10] Show a labelled layer chooser and keep the map clear below the shared toolbar. */
.cr { height: calc(100dvh - var(--app-bar-h, var(--top-h))); }
.mx-controls .mx-layer-picker { gap: 8px; min-height: 49px; padding: 5px 9px; border-radius: 13px; }
.mx-layer-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: var(--accent-text); background: var(--accent-soft); }
.mx-layer-name { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.mx-layer-name .small { line-height: 1; font-size: 11px; }
.mx-layer-name select { min-height: 26px; max-width: 170px; padding: 0 2px 0 0; font: 650 14px/1.15 var(--font); }
.mx-layer-arrow { display: flex; align-items: center; color: var(--accent-text); pointer-events: none; }
.mx-controls .cr-btn { min-height: 49px; }
.mx-layer-picker:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 899px) { .cr { height: calc(100dvh - var(--app-bar-h, var(--top-h)) - var(--tab-h) - env(safe-area-inset-bottom)); } }
@media (max-width: 460px) { .mx-layer-name select { max-width: 112px; font-size: 13px; } .mx-layer-icon { display: none; } }
.desk-issue-meta { display: block; margin-top: 4px; }
.desk-issue-status { flex: none; border-radius: 999px; padding: 4px 9px; background: var(--fill); color: var(--text); }
.desk-issue-status[data-status=review] { background: var(--orange-soft); }
.desk-issue-status[data-status=done] { background: var(--green-soft); }
