:root {
  color-scheme:light;
  --paper:#fbf8f2; --card:#fffdf8; --ink:#252522; --muted:#68665e; --line:#dcd6cb; --soft-line:#e9e3da;
  --rail:#292825; --rust:#ae4428; --deep-rust:#913a24; --peach:#f6e9df; --wash:#f4f0e8;
  --available:#c8e4bd; --tracking:#f6d88c; --sold:#f0b3a4; --gift:#d7c9e7; --unknown:#e1e0d8;
  --sans:Inter,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;
  --num:Inter,Arial,"Noto Sans CJK SC",sans-serif;
  --mono:"IBM Plex Mono","Liberation Mono",Consolas,monospace;
  --rail-width:clamp(70px,6.25vw,96px);
}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.5 var(--sans);-webkit-font-smoothing:antialiased}
button,input,textarea,select,summary{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0}
button,select,summary{touch-action:manipulation}
button,input,textarea,select,a,summary{-webkit-tap-highlight-color:transparent}
button:disabled{opacity:.4;cursor:default}
:focus-visible{outline:2px solid var(--rust);outline-offset:3px}
a{color:inherit;text-decoration:none}
h1,h2,h3,p,dl,dd{margin:0}
[hidden]{display:none!important}
svg{width:18px;height:18px;flex:none}
i[data-icon]{display:inline-flex;align-items:center;justify-content:center;font-style:normal}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.rail{position:fixed;inset:0 auto 0 0;z-index:6;width:var(--rail-width);display:flex;flex-direction:column;align-items:stretch;background:var(--rail);color:#faf7f0}
.brand,.main-nav button,.rail-info{display:flex;justify-content:center;align-items:center}
.brand{flex-direction:column;gap:2px;padding:19px 0 0;font-size:clamp(17px,1.25vw,20px);letter-spacing:.07em;font-weight:690}
.brand img{width:clamp(31px,2.8vw,43px);height:auto}
.brand::after{content:"";height:1px;width:34px;background:#5a5750;margin:21px 0 23px}
.main-nav{display:grid;gap:3px}
.main-nav button{position:relative;flex-direction:column;gap:5px;color:#dfddd5;min-height:76px;font-size:14px;font-weight:560;letter-spacing:.04em}
.main-nav svg{width:21px;height:21px}
.main-nav button:hover,.rail-info:hover{background:#373632;color:white}
.main-nav button[aria-current=page]{color:#fffaf5;background:var(--rust)}
.rail-info{margin:auto 0 15px;height:42px;color:#c5c0b5}
main{margin-left:var(--rail-width);padding:0 clamp(12px,1.3vw,26px) 14px}
.page-head{min-height:115px;padding:16px 10px 18px;display:flex;align-items:flex-start;justify-content:space-between;gap:15px}
.crumb{display:flex;align-items:center;gap:11px;font-size:clamp(13px,1vw,16px);font-weight:630;line-height:1.3}
.crumb>span:first-of-type{color:#8b857c;font-weight:400}
.crumb>span:last-child{font-weight:510}
h1{margin-top:5px;font-size:clamp(30px,3.13vw,49px);font-weight:760;line-height:1.22;letter-spacing:-.045em}
.page-meta{display:grid;justify-items:end;gap:8px;color:#6c685f;white-space:nowrap;font-size:12px;font-variant-numeric:tabular-nums}
.page-meta>div{display:flex;align-items:center;gap:15px}
.edition{border-left:1px solid #c9c2b7;padding-left:15px}
.edition b{font:550 12px var(--mono);margin-left:4px;color:#413d35}
.sync{display:inline-flex;align-items:center;gap:5px;padding:1px 0;font-size:11px;color:var(--muted)}
.sync svg{width:13px;height:13px}.sync:hover,.sync.offline{color:var(--rust)}
.syncing svg{animation:turn .8s linear infinite}@keyframes turn{to{transform:rotate(360deg)}}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) clamp(265px,21.65vw,358px);gap:clamp(12px,1vw,18px);align-items:start;max-width:2100px;margin:auto}
.work-column,.side-column{min-width:0}.side-column{display:grid;align-content:start;gap:13px}
.map-card,.ledger-card,.detail,.metrics{background:var(--card);border:1px solid var(--line);border-radius:9px}
.map-card{min-width:0}.detail{outline:none;scroll-margin-top:12px}
.card-title,.ledger-head{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:46px;padding:10px 18px;border-bottom:1px solid var(--line)}
.card-title h2,.ledger-head h2{font-size:clamp(15px,1.27vw,19px);font-weight:670;line-height:1.35;letter-spacing:.025em}
.card-title small{font:500 11px var(--mono);color:#787268}
.map-header{display:flex;align-items:center;gap:clamp(8px,1.2vw,20px);padding:13px 15px 10px;min-height:62px}
.floor-switch{display:flex;flex:none;border:1px solid #cfc7bb;border-radius:7px}
.floor-switch button{display:flex;align-items:baseline;justify-content:center;gap:6px;min-height:37px;padding:7px clamp(9px,1.28vw,22px);font-size:13px;white-space:nowrap;border-radius:6px;font-weight:560}
.floor-switch strong{font:700 14px var(--num)}.floor-switch button[aria-pressed=true]{background:var(--rust);color:white;box-shadow:0 0 0 1px var(--rust)}
.floor-switch button[aria-pressed=false]:hover{background:var(--wash)}
.tools{display:flex;align-items:center;gap:9px;flex:1;min-width:0}
.work-column>.tools{margin-bottom:10px}
.search-wrap{position:relative;display:flex;align-items:center;flex:1 1 auto;min-width:0;max-width:365px;height:38px;padding:0 10px 0 13px;gap:9px;color:#67645c;border:1px solid #cfc9bf;background:var(--card);border-radius:7px}
.search-wrap:focus-within{border-color:var(--rust);box-shadow:0 0 0 2px #ad482314}
.search-wrap input{min-width:0;width:100%;height:100%;padding:0;border:0;background:none;font-size:13px;outline:none}
.search-wrap input:focus-visible{outline:0}.search-wrap input::placeholder{color:#817a71}
.search-wrap svg{width:16px;height:16px}.search-wrap kbd{font:11px var(--mono);border:1px solid var(--soft-line);border-radius:3px;padding:0 4px;color:#8a847b}
.filter-panel{position:relative;margin-left:auto}
.filter-toggle{position:relative;display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;cursor:pointer;color:#6a655c;min-height:35px;padding:5px 9px;font-size:12px;border:1px solid transparent;border-radius:5px;list-style:none}
.filter-toggle::-webkit-details-marker,.record-more summary::-webkit-details-marker{display:none}
.filter-toggle svg{width:16px;height:16px}.filter-toggle b{font-size:10px;border-radius:7px;min-width:16px;text-align:center;background:var(--peach);color:var(--deep-rust)}
.filter-panel[open] .filter-toggle,.filter-toggle:hover{background:var(--wash);border-color:var(--line)}
.filter-body,.suggestions{position:absolute;z-index:8;top:calc(100% + 6px);background:var(--card);border:1px solid #cfc7bb;border-radius:7px;box-shadow:0 5px 19px #30271824}
.filter-body{display:grid;gap:9px;right:0;width:210px;padding:13px}
.select-wrap{display:flex;align-items:center;gap:10px;position:relative;font-size:12px;color:var(--muted)}
.select-wrap select{min-width:0;flex:1;padding:7px 22px 7px 9px;appearance:none;border:1px solid var(--line);border-radius:4px;background:#fffdf8;color:var(--ink)}
.select-wrap i{position:absolute;right:7px;pointer-events:none}.select-wrap svg{width:12px;height:12px}
.clear-filter{justify-self:end;color:var(--rust);font-size:12px;padding:1px 0}
.suggestions{left:0;width:min(320px,max(100%,250px));max-height:340px;overflow:auto}
.suggestions button{width:100%;display:flex;align-items:center;gap:9px;text-align:left;padding:9px 12px}
.suggestions button+button{border-top:1px solid var(--soft-line)}.suggestions button:hover,.suggestions button[aria-selected=true]{background:var(--wash)}
.suggestions strong,.table-id{font:650 14px var(--mono)}.suggestions button>span:not(.badge){font-size:11px;color:var(--muted)}.suggestions .badge{margin-left:auto}.suggestions p{padding:14px;font-size:13px}
.icon-button,.locate-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:5px;color:#6a655d;flex:none}
.icon-button:hover,.locate-icon:hover{background:var(--wash);color:var(--rust)}
.icon-button svg,.locate-icon svg{width:16px;height:16px}
.expand{margin-left:-8px}.locate-icon{width:26px;height:24px}
.stage{position:relative;isolation:isolate;overflow:hidden;height:clamp(350px,calc(100dvh - 237px),1140px);background-color:#fbf9f3}
#floor-plan{display:block;width:100%;height:100%;touch-action:none;user-select:none;cursor:grab;overflow:hidden}
.dragging #floor-plan,.dragging .slot{cursor:grabbing}
.site-paper{fill:#f3f1ea}
.blueprint path,.slot polygon,.bay-division{vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.perimeter{fill:none;stroke:#3e4945;stroke-width:1.75}
[data-layer=ISLAND]{fill:#fdfcf7;stroke:none;fill-rule:nonzero}
[data-layer=PARK_BANK]{fill:#f5f5ef;stroke:#acb2a6;stroke-width:.78}
[data-layer=BANK_MARK]{fill:none;stroke:#b9beb2;stroke-width:.68}
[data-layer=LANE_EDGE]{fill:none;stroke:#939b8e;stroke-width:.88}
[data-layer=LANE_CENTER]{fill:none;stroke:#999d8e;stroke-width:.84;stroke-dasharray:var(--lane-on,4px) var(--lane-off,3px)}
[data-layer=LANE_TURN]{fill:none;stroke:#a3a496;stroke-width:.76;stroke-dasharray:var(--lane-on,4px) var(--lane-off,3px)}
[data-layer=ARROW]{fill:none;stroke:#798173;stroke-width:.96}
[data-layer=BUILDING_AREA]{fill:#e1e4dc;stroke:none}
[data-layer=BUILDING]{fill:#e1e4dc;stroke:#53605a;stroke-width:1.45}
[data-layer=WALL]{fill:none;stroke:#53605a;stroke-width:1.35}
[data-layer=PARTITION]{fill:none;stroke:#859086;stroke-width:.92}
[data-layer=CORE]{fill:#dce2da;stroke:none;fill-rule:evenodd}
[data-layer=CORE_WALL]{fill:#53605a;stroke:none;fill-rule:evenodd}
[data-layer=LIFT_CAR]{fill:none;stroke:#697a70}
[data-layer=STAIR_MARK],[data-layer=LIFT_MARK]{fill:none;stroke:#89968a;stroke-width:.7}
[data-layer=COLUMN]{fill:#758276}
[data-layer=RAMP_ISLAND]{fill:#e1e4dc;stroke:#657268;stroke-width:1.15}
.landmark{font:600 var(--landmark-size,8px) var(--sans);fill:#59675b;paint-order:stroke;stroke:#e4e7df;stroke-width:2.5;vector-effect:non-scaling-stroke;stroke-linejoin:round;letter-spacing:.02em}
.overview .landmark{visibility:hidden}
.bay-division{fill:none;stroke:var(--edge);stroke-width:.85;stroke-dasharray:3 2;pointer-events:none}
.slot .bay-kind{font-family:var(--sans);fill:#536752;font-weight:500}
.photo .bay-division,.overlay .bay-division{display:none}
.overlay .site-paper,.overlay .landmark{display:none}
.overlay .blueprint [data-layer]{fill:none;stroke:#14758a;stroke-width:1.25}
.overlay .blueprint :is([data-layer=BUILDING_AREA],[data-layer=ISLAND],[data-layer=CORE]){fill:none;stroke:none}
.overlay .blueprint [data-layer=CORE_WALL]{fill:#14758a;fill-opacity:.48;stroke:none;fill-rule:evenodd}
.overlay .blueprint [data-layer=LANE_TURN],.overlay .blueprint [data-layer=LANE_CENTER],.overlay .blueprint [data-layer=ARROW]{stroke:#9c4921}
.overlay .blueprint [data-layer=PARTITION],.overlay .blueprint [data-layer=STAIR_MARK],.overlay .blueprint [data-layer=LIFT_MARK]{stroke-width:.8}
.overlay .blueprint .perimeter{stroke:#145366}
.drawing-files{display:grid;gap:6px}.drawing-files span{display:flex;align-items:center;gap:12px}.drawing-files a{color:var(--rust);text-decoration:underline;text-underline-offset:2px}
.slot{cursor:pointer;outline:0}
.available{--dot:var(--available);--edge:#91a188}.tracking{--dot:var(--tracking);--edge:#bc9c56}.sold{--dot:var(--sold);--edge:#ba8f80}.gift{--dot:var(--gift);--edge:#a095ad}.unknown{--dot:var(--unknown);--edge:#99988c}
.slot polygon{fill:var(--dot);stroke:var(--edge);stroke-width:.9;stroke-linejoin:round}
.slot text{pointer-events:none;fill:#363b31;font-family:var(--mono);font-weight:600}
.slot.unknown text{fill:#65655b}.overview .slot text{visibility:hidden}
.slot.chosen polygon,.slot:focus-visible polygon,.slot:hover polygon{stroke:var(--rust);stroke-width:2;vector-effect:non-scaling-stroke}
.slot.chosen text{fill:#672b1d}.slot.muted{opacity:.19;pointer-events:none}
.photo .slot polygon{fill:transparent;stroke:transparent}.photo .slot text{display:none}
.photo .slot.chosen polygon,.photo .slot:focus-visible polygon,.photo .slot:hover polygon{fill:#c0572a16;stroke:#b94121;stroke-width:2}
.overlay .slot polygon{fill:transparent;stroke:#49774c;stroke-width:.8}
.overlay .slot text{display:none}
.overlay .slot.chosen polygon,.overlay .slot:hover polygon{stroke:var(--rust);stroke-width:2.2;fill:#c0572a1c}

.selection-flag .leader{fill:none;stroke:var(--rust);stroke-width:1.65}
.selection-flag .pin-dot{fill:var(--rust);stroke:white;stroke-width:1.1}
.selection-flag rect{fill:var(--rust);stroke:#fffaf1;stroke-width:1}
.selection-flag text{fill:white;font:630 13px var(--num);font-variant-numeric:tabular-nums;white-space:pre}
.map-view,.map-operations{position:absolute;display:flex;align-items:center;background:#fffcf5f5;border:1px solid #d3cdbf;border-radius:6px;box-shadow:0 1px 4px #312a1910;overflow:hidden}
.map-view{top:10px;left:13px;padding:2px;gap:1px}
.map-view button{display:flex;align-items:center;gap:4px;padding:3px 7px;min-height:23px;font-size:11px;color:#6c675d;border-radius:3px}
.map-view button[aria-pressed=true]{background:#ece5d9;color:#4b4239;font-weight:610}
.map-view svg{width:12px;height:12px}
.map-operations{bottom:12px;right:13px;color:#514e47;padding:2px}
.map-operations button{width:28px;height:27px;display:flex;align-items:center;justify-content:center;border-radius:3px}
.map-operations button:not(:disabled):hover{background:#eee9de}.map-operations svg{width:15px;height:15px}
.map-operations output{padding:0 3px;min-width:25px;text-align:center;font:560 10px var(--mono)}
.map-operations button:last-child{border-left:1px solid var(--line);border-radius:0}
.map-instructions{position:absolute;bottom:12px;left:13px;display:flex;align-items:center;gap:5px;padding:3px 5px;border-radius:3px;color:#716c61;background:#fbf8f1e0;pointer-events:none;font-size:10px}
.map-instructions svg{width:12px;height:12px}.touch-hint{display:none}
.map-tip{position:absolute;z-index:3;pointer-events:none;min-width:183px;max-width:calc(100% - 14px);border:1px solid #b9ab99;background:#fffdf8;box-shadow:0 5px 19px #30271825;border-radius:6px;padding:10px 12px;color:var(--ink)}
.tip-head,.tip-price{display:flex;justify-content:space-between;align-items:center;gap:13px}.tip-head{margin-bottom:5px}
.tip-head strong{font:700 18px var(--num)}.tip-price>span,.tip-sub{font-size:11px;color:var(--muted)}.tip-price>b{font:650 16px var(--num);color:var(--rust)}.tip-sub{margin-top:4px}
.map-foot{min-height:44px;padding:8px 15px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--soft-line)}
.legend{display:flex;align-items:center;flex-wrap:wrap;gap:clamp(5px,1vw,17px)}
.legend button{display:flex;align-items:center;gap:6px;white-space:nowrap;padding:3px 1px;border-radius:2px;color:#55534b;font-size:12px}
.legend button[aria-pressed=true]{color:var(--deep-rust);box-shadow:inset 0 -1px var(--rust)}
.status-dot{display:inline-block;width:17px;height:12px;border-radius:3px;background:var(--dot);flex:none}
.map-coverage{display:inline-flex;align-items:center;justify-content:center;gap:3px;white-space:nowrap;font-size:11px;color:#777164;padding:3px 0}.map-coverage svg{width:12px;height:12px}.map-coverage:hover{color:var(--rust)}
.detail-body{padding:16px clamp(14px,1.2vw,21px) 17px}
.identity{display:flex;align-items:center;justify-content:space-between;gap:10px}
.identity>strong{font:740 clamp(39px,3.82vw,61px)/1.1 var(--num);letter-spacing:-.045em}
.badge{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;padding:2px 9px;border-radius:6px;font-size:12px;line-height:1.65;font-weight:600;background:var(--dot);color:#3b4438}
.badge b{width:6px;height:6px;border-radius:100%;background:currentColor}
.badge.available{background:#deeed5;color:#385236}.badge.tracking{background:#faeac3;color:#715521}.badge.sold{background:#f6ded6;color:#824a39}.badge.gift{background:#e9e1f2;color:#645174}.badge.unknown{background:#eceae3;color:#68695f}
.identity-sub{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0 clamp(14px,1.45vw,22px);color:var(--muted);font-size:12px}.identity-sub b{font-weight:400;color:#a39b8e}
.price-panel{padding:13px 16px 15px;background:var(--peach);border-radius:7px;color:var(--rust)}
.price-panel>div{font-size:13px;font-weight:580}.price-panel>strong{display:block;margin-top:3px;font:680 clamp(30px,3.05vw,48px)/1.12 var(--num);letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.price-panel>strong small{font-size:.65em;margin-right:3px}.price-panel .no-price{font:600 24px var(--sans)}
.details-list{font-size:clamp(12px,1.02vw,16px)}
.details-list>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:5px 0}
.details-list dt{flex:none;color:#625e56}.details-list dd{text-align:right;font-weight:530;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.price-list,.basic-list,.sales-list{padding:9px 0}.basic-list,.sales-list{border-top:1px solid var(--soft-line)}.price-panel+.basic-list{margin-top:12px}
.record-more{color:var(--muted);font-size:11px}
.record-more summary{display:flex;align-items:center;gap:4px;width:fit-content;padding:3px 0;cursor:pointer;list-style:none}.record-more svg{width:11px;height:11px}.record-more[open] summary svg{transform:rotate(180deg)}
.record-more[open] .details-list{margin:6px 0;padding:5px 9px;border:1px solid var(--soft-line);border-radius:4px;background:var(--wash);font-size:11px}
.detail-actions{display:grid;gap:7px;margin-top:15px}
.primary,.secondary{min-height:38px;display:inline-flex;justify-content:center;align-items:center;gap:8px;border-radius:6px;padding:8px 14px;font-size:14px;font-weight:580}
.primary{color:#fffcf3;background:var(--rust);border:1px solid var(--rust)}.primary:hover{background:var(--deep-rust)}.primary svg,.secondary svg{width:16px;height:16px}
.secondary{border:1px solid var(--line);background:var(--card)}.secondary:hover{background:var(--wash)}
.where-label,.reference-note,.empty-detail{color:var(--muted);font-size:12px}.where-label{display:flex;justify-content:center;align-items:center;gap:5px}.where-label svg{width:13px;height:13px}
.reference-note,.empty-detail{padding:22px 0}.reference-note h3{color:var(--ink);font-size:16px;margin:5px 0}.empty-detail{text-align:center}.empty-detail>*{margin:5px}
.counts{padding:9px 17px 14px}.metric{display:flex;width:100%;align-items:center;justify-content:space-between;padding:6px 0;text-align:left;color:var(--ink);border-radius:3px}
.metric span{display:inline-flex;align-items:center;gap:12px;font-size:14px}.metric strong{font:550 16px var(--num);font-variant-numeric:tabular-nums}
.metric:not(.total):hover,.metric[aria-pressed=true]{background:var(--wash);color:var(--deep-rust)}
.metric.total{border-top:1px solid var(--line);border-radius:0;margin-top:9px;padding:9px 0 0}.metric.total strong{font:710 30px/1.15 var(--num);letter-spacing:-.03em}
.map-expanded{overflow:hidden}.map-expanded #map-section{display:flex;flex-direction:column;position:fixed;inset:8px;z-index:20;box-shadow:0 0 0 25px #292620bd}
.map-expanded .stage{flex:1;height:auto;min-height:0}.map-expanded .search-wrap{max-width:420px}
.ledger-head{justify-content:flex-start}.ledger-head>span,.ledger-head>label{color:var(--muted);font-size:12px}.ledger-head>label{display:flex;align-items:center;gap:4px;margin-left:auto}
input[type=checkbox]{accent-color:var(--rust)}.table-scroll{overflow:auto;max-height:min(73dvh,920px);min-height:220px}
table{border-collapse:separate;border-spacing:0;width:100%;text-align:left;white-space:nowrap;font-size:12px}
th{position:sticky;top:0;background:#f1ede4;font-weight:570;color:#635e54;z-index:1}
th,td{padding:10px 12px;border-bottom:1px solid var(--soft-line);line-height:1.4}
td:first-child,th:first-child{padding-left:17px}td:last-child{width:15px;padding:4px 7px;color:#7b7468}td:last-child svg{width:12px;height:12px}
.money-col{text-align:right;font-variant-numeric:tabular-nums}tbody tr[data-id]{cursor:pointer}tbody tr[data-id]:hover{background:var(--wash)}tbody tr.active{background:#f6e9df}
.table-id{padding:3px 0}.table-warning{display:inline-flex;margin-left:5px;vertical-align:middle;color:#9c6223}.table-warning svg{width:12px;height:12px}
.mono{font-family:var(--mono)}.muted-text{color:#958c7d}.table-empty{padding:35px!important;text-align:center}.table-empty svg{vertical-align:middle;margin-right:7px}
.pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 14px;color:var(--muted);font-size:12px}.pagination>div{display:flex;align-items:center;gap:9px}
dialog{border:1px solid #d1c6b8;padding:22px;border-radius:10px;background:var(--card);color:var(--ink);width:min(440px,calc(100% - 24px));max-height:90dvh;overflow:auto;box-shadow:0 16px 60px #30271e36}
dialog::backdrop{background:#2b261f78}dialog h2{font-size:22px;letter-spacing:-.03em}
.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:15px}.dialog-head .crumb{font:570 12px var(--mono);margin-bottom:3px}
#edit-form>label,.field-pair>label{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:12px;font-weight:550;margin:10px 0}
#edit-form select,#edit-form input,#edit-form textarea{min-width:0;border:1px solid #d1c9bc;border-radius:5px;background:#fffefa;padding:8px 9px;font-size:14px;color:var(--ink)}
#edit-form textarea{resize:vertical}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field-pair>label{margin:4px 0}
.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.warning,.load-error,.edit-error{background:#fff1d7;color:#835520;border-radius:5px;padding:8px 10px;font-size:12px}.warning{display:flex;gap:5px;margin-bottom:8px}.warning svg{width:14px;height:14px}.load-error{margin:0 0 10px}
.edit-error button{display:block;text-decoration:underline;padding:5px 0}
.info-list dt{font-weight:650;margin:13px 0 4px}.info-list dd{font-size:13px;line-height:1.7;color:var(--muted)}
.toast{position:fixed;z-index:30;bottom:20px;left:50%;transform:translateX(-50%);background:var(--rail);color:white;border-radius:6px;padding:9px 16px;font-size:13px;max-width:90%}
@media(min-width:1190px){.floor-switch button{min-width:clamp(106px,9.5vw,147px);min-height:39px;font-size:15px}.floor-switch strong{font-size:16px}.price-panel>div{font-size:15px}.map-header{padding-block:15px 10px}.selection-flag text{font-size:15px}}
@media(min-width:1700px){main{padding-inline:max(24px,calc((100vw - var(--rail-width) - 2050px)/2))}.page-head{padding-block:22px}.detail-body{padding:20px}.counts{padding:12px 20px 16px}}
@media(max-width:1160px){:root{--rail-width:64px}.workspace{grid-template-columns:minmax(0,1fr) 253px;gap:10px}.page-head{min-height:91px}.map-header{gap:8px;padding:11px 10px;min-height:55px}.floor-switch button{padding:7px 10px}.search-wrap{padding:0 8px;gap:5px}.filter-toggle{padding:5px}.expand{margin-left:0}.stage{height:clamp(350px,calc(100dvh - 201px),960px)}.map-foot{padding:8px 10px}.legend{gap:7px}.legend button{gap:4px;font-size:11px}.legend .status-dot{width:13px;height:10px}.card-title{padding:10px 14px}.map-coverage{font-size:10px}.counts{padding:7px 14px 11px}}
@media(max-width:940px) and (min-width:861px){.floor-switch button span{display:none}.filter-toggle span{display:none}.workspace{grid-template-columns:minmax(0,1fr) 230px}.map-foot{flex-wrap:wrap}.map-coverage{margin-left:auto}}
@media(max-width:860px){.workspace{grid-template-columns:1fr}.side-column{grid-template-columns:1.25fr 1fr;align-items:start}.stage{height:clamp(390px,65dvh,760px)}.search-wrap{max-width:none}.main-nav button{min-height:67px}.card-title h2{font-size:16px}.price-panel>strong{font-size:32px}}
@media(max-width:650px){:root{--rail-width:0px}.rail{position:relative;inset:auto;width:100%;height:49px;flex-direction:row;align-items:center;padding:0 12px;gap:19px}.brand{flex-direction:row;gap:3px;letter-spacing:.01em;padding:0;font-size:17px}.brand img{width:28px}.brand::after{display:none}.main-nav{align-self:stretch;display:flex;gap:2px}.main-nav button{flex-direction:row;min-height:0;padding:0 12px;font-size:12px;gap:5px}.main-nav svg{width:15px;height:15px}.rail-info{width:30px;height:32px;margin:0 0 0 auto}.rail-info svg{width:16px;height:16px}main{padding:0 10px 13px}.page-head{min-height:81px;padding:12px 2px 11px;align-items:center}.crumb{font-size:11px;gap:6px}h1{margin-top:4px;font-size:27px}.page-meta{gap:4px;font-size:10px}.page-meta>div{gap:6px}.page-meta time{display:none}.edition{border:0;padding:0}.edition b,.sync{font-size:10px}.workspace{gap:11px}.side-column{grid-template-columns:1fr;gap:10px}.map-header{display:grid;grid-template-columns:auto 1fr auto;gap:7px;padding:9px 10px;min-height:52px}.floor-switch button{min-height:31px;padding:5px 9px;gap:4px}.floor-switch button span{display:none}.search-wrap{height:32px}.search-wrap input{font-size:12px}.search-wrap kbd,.filter-toggle span{display:none}.tools{gap:4px}.floor-switch strong{font-size:13px}.filter-toggle{padding:3px;min-height:32px;width:27px}.filter-toggle b{position:absolute;top:-3px;right:-3px}.expand{width:24px;height:30px}.stage{height:clamp(340px,53dvh,550px)}.map-view{left:8px;top:8px}.map-view button{font-size:10px}.map-operations{right:8px;bottom:8px}.map-instructions{left:6px;bottom:8px;font-size:9px}.map-foot{align-items:center;flex-wrap:wrap;padding:7px 9px;gap:4px 10px}.map-coverage{margin-left:auto}.legend{gap:7px}.legend button{font-size:10px}.legend .status-dot{width:11px;height:9px}.card-title{min-height:40px}.detail-body{padding:14px}.identity>strong{font-size:38px}.identity-sub{margin-bottom:13px}.details-list{font-size:13px}.metric span{font-size:13px}.table-scroll{max-height:57dvh}.suggestions{width:clamp(208px,60vw,295px);left:auto;right:-26px}.map-expanded #map-section{inset:2px}}
@media(max-width:370px){.rail{gap:9px}.main-nav button{padding:0 10px}.map-header{gap:4px;padding:8px 6px}.floor-switch button{padding:5px 7px}.map-instructions .pointer-hint,.map-instructions .touch-hint{max-width:119px}.search-wrap input::placeholder{font-size:10px}}
@media(pointer:coarse){.pointer-hint{display:none}.touch-hint{display:inline}.map-operations button{min-width:31px;height:32px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;scroll-behavior:auto!important}}

[data-layer=BUILDING],[data-layer=WALL],.perimeter{stroke-width:var(--face-ink,1.35px)}
[data-layer=PARTITION]{stroke-width:var(--partition-ink,.92px)}
[data-layer=DOOR_JAMB],[data-layer=DOOR_LEAF],[data-layer=DOOR_SWING]{fill:none}
[data-layer=DOOR_JAMB]{stroke:#455e54;stroke-width:var(--partition-ink,1px)}
[data-layer=DOOR_LEAF]{stroke:#326e62;stroke-width:var(--partition-ink,1px)}
[data-layer=DOOR_SWING]{stroke:#759687;stroke-width:.68px}
.overlay .blueprint [data-layer=DOOR_LEAF],.overlay .blueprint [data-layer=DOOR_JAMB]{stroke:#a12955;stroke-width:1.2px}
.overlay .blueprint [data-layer=DOOR_SWING]{stroke:#a12955;stroke-width:.8px}
.entry-mark{cursor:pointer;outline:none}
.entry-ring{fill:#fffdf6;fill-opacity:.88;stroke:#315b50;stroke-width:1.5}
.entry-dot{fill:#3b7164;pointer-events:none}
.door-detail .entry-ring{fill:transparent;stroke:#62877c;stroke-width:1;stroke-dasharray:2 3}
.door-detail .entry-dot,.photo .entry-mark:not(.active){display:none}
.entry-mark.active .entry-ring,.entry-mark:focus-visible .entry-ring,.entry-mark:hover .entry-ring{stroke:#9b4427;stroke-width:2.2}
.door-detail .entry-mark.active .entry-ring{r:17px;stroke-dasharray:3 4}
.estimate-outline polygon{fill:#f4ca6522;stroke:#955e16;stroke-width:2;stroke-dasharray:6 4;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.entry-picker{position:absolute;z-index:5;right:13px;top:10px;max-width:calc(100% - 16px)}
.entry-picker summary,.source-review{background:#fffdf6f7;border:1px solid #c8ccbd;border-radius:5px}
.entry-picker summary{display:flex;align-items:center;justify-content:center;gap:5px;width:fit-content;margin-left:auto;list-style:none;padding:5px 9px;min-height:30px;font-size:11px;font-weight:600;color:#345649;cursor:pointer}
.entry-picker summary::-webkit-details-marker{display:none}
.entry-picker summary svg,.entry-title>svg{width:15px;height:15px}
.entry-picker[open] summary{background:#eaf0e9}
.entry-menu{min-width:195px;max-height:min(380px,36vh);overflow:auto;background:#fffdf7;border:1px solid #cecbbf;border-radius:7px;box-shadow:0 6px 18px #25291a20;padding:4px 10px;margin-top:5px}
.entry-group{padding:7px 0}.entry-group+.entry-group{border-top:1px solid var(--soft-line)}
.entry-group h3,.record-entries h4,.entry-detail h4{font-size:12px;font-weight:650}
.entry-group button,.record-entries button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:4px 2px;color:#416656;font-size:12px;text-align:left}
.entry-group button:hover,.record-entries button:hover,.entry-near button:hover{background:#eaf0e6}
.entry-group button svg,.record-entries button svg,.entry-near button svg{width:13px;height:13px;flex:none}
.source-review{position:absolute;top:48px;left:13px;display:flex;align-items:center;gap:8px;padding:4px 7px;font-size:11px;color:#69583c}
.source-review label{display:flex;align-items:center;gap:4px;cursor:pointer}
.source-review button{color:#85572b;text-decoration:underline}.source-review input{accent-color:#846432}
.record-entries{padding:8px 0 10px;border-top:1px solid var(--soft-line)}
.record-entries h4,.entry-title{display:flex;align-items:center;gap:6px;color:#3d6657}
.record-entries h4 svg{width:14px;height:14px}
.entry-title h3{font-size:clamp(18px,1.4vw,25px);letter-spacing:-.025em}
.entry-title>svg{width:21px;height:21px}.entry-detail>h4{margin:12px 0 3px}
.entry-detail p{font-size:12px;line-height:1.65;color:#63675d}
.entry-near,.entry-stats{border-top:1px solid var(--soft-line);margin-top:14px;padding-top:12px}
.entry-near>div{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.entry-near button{display:inline-flex;align-items:center;gap:4px;padding:3px 6px;border:1px solid #cbd5c8;border-radius:4px;color:#335b4b;font:600 12px var(--num)}
.entry-stats>div{display:flex;justify-content:space-between;gap:8px;margin-bottom:5px;font-size:12px}
.entry-stats dt{color:var(--muted)}.entry-stats dd{font-weight:600}
.entry-source{margin:11px 0}.entry-detail .secondary svg{width:14px;height:14px}
@media(max-width:650px){.entry-picker{top:8px;right:8px}.entry-picker summary{font-size:10px;padding:4px 6px;min-height:29px}.source-review{left:8px;top:42px}}
/* Structural pens are in the registered drawing coordinate system. */
.stage:not(.overlay) .blueprint :is(.perimeter,[data-layer=BUILDING],[data-layer=WALL],[data-layer=PARTITION]){vector-effect:none;stroke-linecap:butt;stroke-linejoin:round}
.stage:not(.overlay) .perimeter{stroke-width:var(--pen-SITE)}
.stage:not(.overlay) [data-layer=BUILDING]{stroke-width:var(--pen-BUILDING)}
.stage:not(.overlay) [data-layer=WALL]{stroke-width:var(--pen-WALL)}
.stage:not(.overlay) [data-layer=PARTITION]{stroke-width:var(--pen-PARTITION);stroke:#798479}
.stage:not(.overlay) .blueprint :is([data-layer=LIFT_MARK],[data-layer=LIFT_CAR],[data-layer=STAIR_MARK]){stroke-linecap:butt;stroke-linejoin:miter}
.stage:not(.overlay) [data-layer=LIFT_CAR]{stroke-width:var(--cabin-ink,.8px)}
.stage:not(.overlay) :is([data-layer=LIFT_MARK],[data-layer=STAIR_MARK]){stroke-width:var(--detail-ink,.6px)}
.stage:not(.overlay) [data-layer=LANE_EDGE]{stroke:#8c978c;stroke-width:var(--kerb-ink,.85px)}
.stage:not(.overlay) :is([data-layer=LANE_CENTER],[data-layer=LANE_TURN]){stroke:#8a9283;stroke-width:var(--traffic-ink,.72px);stroke-linecap:butt}
.stage:not(.overlay) [data-layer=ARROW]{stroke-width:var(--arrow-ink,.88px);stroke-linecap:butt;stroke-linejoin:miter}
.facility-name{display:none;fill:#405947;font:600 var(--facility-size) var(--sans);paint-order:stroke;stroke:#d8dfd4;stroke-width:2.5px;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.facility-detail:not(.overlay):not(.photo) .facility-name{display:inline}
.active-entry{position:absolute;left:12px;bottom:12px;display:flex;align-items:center;gap:5px;max-width:calc(100% - 95px);padding:5px 8px;border:1px solid #bcc9bd;border-radius:5px;background:#fffdf5f5;color:#345b4c;font-size:11px}
.active-entry svg{width:13px;height:13px;flex:none}
.inspecting-entry .map-instructions{display:none}
@media(max-width:650px){.active-entry{left:8px;bottom:8px;font-size:10px;max-width:calc(100% - 150px)}.active-entry span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
.stage:not(.overlay) .blueprint :is(.perimeter,[data-layer=BUILDING],[data-layer=WALL],[data-layer=PARTITION]){stroke-linejoin:miter;stroke-miterlimit:3}
.stage:not(.overlay) .blueprint [data-layer=DOOR_LEAF]{vector-effect:none;stroke-width:.44;stroke-linecap:butt}
.stage:not(.overlay) .blueprint [data-layer=DOOR_SWING]{vector-effect:none;stroke-width:.20}
.stage:not(.overlay) .blueprint [data-layer=DOOR_JAMB]{vector-effect:none;stroke-width:.50;stroke-linecap:butt}

/* The plotted parking stripes belong to the bank; adjoining hit polygons share them. */
.slot:not(.chosen):not(:hover):not(:focus-visible) polygon{stroke:none}
.bay-paint{fill:none;stroke:#829082;stroke-width:var(--stripe-ink,.75px);stroke-linecap:butt;stroke-linejoin:miter;vector-effect:non-scaling-stroke}
.overlay .bay-paint{stroke:#49774c;stroke-width:.85}
.photo .bay-paint{display:none}

.stage:not(.photo):not(.overlay) .slot:is(.chosen,:hover,:focus-visible) polygon{stroke-width:calc(var(--stripe-ink,.75px) + 3px)}

.blueprint [data-layer=PHOTO_ZONE]{display:none}
.show-photo-zone .blueprint [data-layer=PHOTO_ZONE]{display:inline;fill:url(#photo-zone-hatch);fill-rule:evenodd;stroke:none}
.zone-toggle{margin-left:auto;display:inline-flex;align-items:center;gap:4px;white-space:nowrap;color:#626856;font-size:11px;cursor:pointer}
.zone-toggle input{margin:0;accent-color:#566d54}
.zone-toggle[hidden]{display:none}
.info-list a{color:var(--rust);text-underline-offset:2px}
@media(max-width:650px){.zone-toggle{font-size:10px}}

.position-review-link{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;line-height:1.6;text-decoration:underline;text-underline-offset:3px}
.position-review-link svg{width:14px;height:14px}.position-review-link:hover{color:var(--ink)}
