@font-face{font-family:LocalUI;src:local('Segoe UI')}*{box-sizing:border-box} :root{font-family:LocalUI,Arial,sans-serif;color:#2d334d;background:#f3f4fa;font-synthesis:none;--green:#5b5fc7;--line:#e1e4f0;--muted:#80869c}body{margin:0;overflow:hidden}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #aca8c7;outline-offset:3px}button{transition:background .16s,box-shadow .16s}button:disabled{opacity:.45;cursor:default}.hidden{display:none!important}.topbar{height:72px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid var(--line);position:relative;z-index:15}.brand{display:flex;align-items:center;gap:10px}.brand strong{font-size:25px;letter-spacing:-1px;font-weight:650}.brand-dot{color:#554e84}.brand-icon{width:31px;height:31px;color:var(--green)}.brand-icon svg{width:31px;height:31px}.brand-caption{font-size:12px;color:var(--muted);margin-left:15px;padding-left:22px;border-left:1px solid var(--line)}svg.icon{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;display:block}.top-actions,.work-actions{display:flex;align-items:center;gap:10px}.local-state{font-size:12px;color:#80869c;display:flex;align-items:center;gap:7px;margin-right:15px}.local-state i{width:6px;height:6px;background:#7d79a2;border-radius:100%}.button{border:1px solid transparent;border-radius:7px;padding:10px 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;font-size:13px;font-weight:550;min-height:39px}.primary{background:var(--green);color:white;box-shadow:0 2px 3px #1b173b10}.primary:hover{background:#484ca8}.secondary{border-color:#dbdae6;background:white;color:#43405c}.secondary:hover{background:#f2f2f8}.plain{background:transparent;color:var(--muted);border:0}.icon-button{display:inline-flex;justify-content:center;align-items:center;width:34px;height:34px;border:0;background:transparent;border-radius:6px;color:#5d5981}.icon-button:hover{background:#e7e7f2;color:#484ca8}.menu-wrap{position:relative}.menu{position:absolute;right:0;top:44px;width:275px;border:1px solid var(--line);box-shadow:0 12px 35px #24223a20;background:#fff;border-radius:10px;padding:6px;z-index:50}.menu button{width:100%;text-align:left;padding:12px;border:0;background:transparent;color:#353349;font-size:13px;border-radius:5px}.menu button:hover{background:#eeeef6}#workspace{height:calc(100dvh - 72px);position:relative;overflow:hidden}.context-bar{position:absolute;top:0;left:0;right:0;height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;z-index:4;pointer-events:none}.context-bar>*{pointer-events:auto}.breadcrumb{display:flex;align-items:center;gap:12px;font-size:13px;color:#504d6e;min-width:0}.breadcrumb>span:first-child{color:#8c8aad}.breadcrumb #planTitle{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.separator{color:#adabc4}#sheetLabel{color:#7e7ba3;white-space:nowrap}.tag{border:1px solid #d1d0df;color:#7c7ba3;border-radius:4px;font-size:9px;font-weight:650;letter-spacing:1px;padding:3px 5px}.count{font-size:10px;background:#e8e8f3;border-radius:4px;min-width:19px;padding:2px 5px;color:#64628d}#viewport{position:absolute;inset:0;touch-action:none;outline:none;cursor:grab;background:radial-gradient(#d1d1df 0.7px,transparent .7px);background-size:18px 18px}#viewport:active{cursor:grabbing}#viewport.placing{cursor:crosshair}#scene{position:absolute;transform-origin:0 0;background:white;box-shadow:0 8px 35px #2d2c450c,0 0 0 1px #d9d9e4;user-select:none}#planImage{display:block;width:100%;height:100%;pointer-events:none}#marks{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.marker{cursor:pointer;outline:none}.marker:hover .marker-body,.marker:focus .marker-body{stroke:#292b67;stroke-width:4}.marker line{stroke-linecap:round}.view-tools{position:absolute;bottom:25px;left:28px;background:#fff;border:1px solid #d7d7e3;border-radius:9px;box-shadow:0 3px 12px #2d2c4508;display:flex;align-items:center;padding:4px;z-index:4}.view-tools #zoomLabel{font-size:11px;min-width:47px;text-align:center;font-variant-numeric:tabular-nums;color:#58557a}.tool-divider{width:1px;height:20px;background:var(--line);margin:0 5px}.view-hint{position:absolute;bottom:38px;left:250px;color:#8281a7;font-size:11px;pointer-events:none}.placement-hint{position:absolute;bottom:25px;left:50%;transform:translateX(-50%);padding:13px 14px;background:#fff;box-shadow:0 6px 24px #2d2c4515;border:1px solid #d8d7e3;border-radius:10px;display:flex;gap:13px;align-items:center;z-index:6}.step-pill{background:#ebebf4;color:var(--green);width:32px;height:32px;display:grid;place-items:center;border-radius:50%;font-size:13px;font-weight:600}.placement-hint strong{display:block;font-size:13px;font-weight:600;margin-bottom:4px}.placement-hint div>span{display:block;color:var(--muted);font-size:11px;white-space:nowrap}.side-panel{position:absolute;right:20px;top:84px;bottom:22px;width:355px;background:#fff;border:1px solid #d8d7ea;border-radius:12px;box-shadow:0 9px 34px #2d2c4512;z-index:8;display:flex;flex-direction:column;overflow:hidden}.panel-head{padding:20px 20px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e7e7f2;flex:none}.eyebrow{font-size:9px;letter-spacing:1.8px;color:#7f7da4;font-weight:600;margin-bottom:6px}.panel-head h2{font-size:18px;font-weight:600;margin:0;letter-spacing:-.4px}.panel-body{padding:20px;overflow:auto;flex:1;min-height:0}.field{display:block;margin-bottom:18px}.field>span,.field-label{display:block;font-size:12px;font-weight:600;color:#575478;margin-bottom:8px}.field input,.field textarea,.field select{display:block;width:100%;padding:10px 11px;border:1px solid #d8d7e4;border-radius:6px;background:#fcfcfe;color:#353349;font-size:13px}.field textarea{min-height:100px;resize:vertical;line-height:1.6}.field input::placeholder,.field textarea::placeholder{color:#9493b4}.photo-actions{display:flex;gap:8px}.photo-actions .button{flex:1;font-size:12px}.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:10px 0 18px}.photo-tile{height:80px;position:relative}.photo-tile img{width:100%;height:100%;object-fit:cover;border-radius:5px;cursor:zoom-in}.remove-photo{position:absolute;right:3px;top:3px;width:20px;height:20px;background:#fffdf5e8;border:0;border-radius:50%;font-size:14px;line-height:1;color:#4d4a6a}.empty-photos{border:1px dashed #d1d1df;background:#f6f6fa;border-radius:7px;padding:20px 10px;text-align:center;font-size:11px;color:#8785ab;margin:10px 0 20px}.audio-row{display:flex;gap:9px;align-items:center;margin-bottom:8px}.audio-row .button{width:100%}.audio-row .recording{color:#a14d3f;border-color:#e9c3bb;background:#fff4f0}.audio-item{display:flex;align-items:center;gap:5px;margin:10px 0}.audio-item audio{width:100%;height:34px}.microcopy{font-size:11px;line-height:1.6;color:#8483a8;margin:7px 0 18px}.panel-footer{padding:15px 20px;border-top:1px solid #e0e0ee;background:#fbfbfd;flex:none}.panel-footer .primary{width:100%}.footer-meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:10px;color:#8381a8}.delete-link{font-size:11px;color:#a2776b;background:transparent;border:0;padding:3px 0}.defect-row{width:100%;text-align:left;background:#fff;border:1px solid #dcdcec;border-radius:8px;padding:13px;display:flex;gap:12px;margin-bottom:10px;color:#39374f}.defect-row:hover{background:#f2f2f9;border-color:#b9b8cf}.defect-badge{flex:none;width:29px;height:29px;border-radius:50%;background:#e8e8f3;color:var(--green);display:grid;place-items:center;font-size:11px;font-weight:600}.defect-row strong{font-size:13px;font-weight:550;display:block;overflow-wrap:anywhere}.defect-row p{font-size:11px;line-height:1.6;color:#7977a1;margin:5px 0 0}.list-empty{text-align:center;color:#8584a9;padding:55px 12px;font-size:13px;line-height:1.8}.list-empty .big-icon{display:flex;justify-content:center;color:#9c9bb9;margin-bottom:20px}.list-empty svg{width:36px;height:36px}.toast{position:absolute;left:50%;bottom:90px;transform:translateX(-50%);border-radius:8px;background:#312e46;color:#fff;padding:12px 18px;font-size:12px;box-shadow:0 5px 20px #23203d20;z-index:80;max-width:80%;text-align:center;line-height:1.5}.loading{position:absolute;inset:0;z-index:10;background:#f3f4fae8;display:flex;justify-content:center;align-items:center;gap:12px;color:#4f4e70;font-size:14px}.spinner{border:2px solid #d2d1e4;border-top-color:var(--green);border-radius:50%;width:20px;height:20px;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}dialog{border:1px solid #d3d3e2;border-radius:12px;padding:20px;max-width:640px;width:90vw;color:#36344b;box-shadow:0 15px 60px #142b3030}dialog::backdrop{background:#1f1c3088;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.dialog-head h2{font-size:18px;margin:0}#cameraVideo{width:100%;background:#1e1c29;border-radius:7px;max-height:55vh}#cameraMessage{font-size:12px;color:#6c6b98}#cameraDialog>.button{width:100%}#photoDialog{max-width:95vw;width:auto;background:#fff;padding:6px}#fullPhoto{display:block;max-width:90vw;max-height:85vh;object-fit:contain}.photo-close{position:absolute;right:10px;top:10px;background:#fff;box-shadow:0 1px 8px #1233}.panel-open .view-hint{display:none}.panel-open .context-bar{padding-right:28px}@media(max-width:1000px){.brand-caption,.local-state{display:none}.breadcrumb #planTitle{max-width:200px}.side-panel{width:330px}.view-hint{display:none}.topbar{padding:0 18px}.context-bar{padding:0 18px}.tag{display:none}}@media(max-width:640px){.topbar{height:60px;padding:0 12px}.brand strong{font-size:22px}.top-actions{gap:3px}.top-actions .button{font-size:11px;padding:8px}#workspace{height:calc(100dvh - 60px)}.context-bar{height:106px;flex-wrap:wrap;align-content:center;gap:12px;padding:10px 12px}.breadcrumb{width:100%;font-size:11px}.work-actions{width:100%;justify-content:flex-end}.work-actions .button{min-height:34px;font-size:12px;padding:7px 11px}.side-panel{top:114px;right:8px;bottom:8px;width:min(355px,calc(100% - 16px))}.view-tools{left:12px;bottom:16px}.placement-hint{bottom:75px;width:calc(100% - 24px);gap:8px}.placement-hint div>span{font-size:10px;white-space:normal}.placement-hint strong{font-size:12px}.placement-hint .icon-button{margin-left:auto}.view-hint{display:none}.toast{bottom:140px}.panel-head{padding:15px 18px}.panel-body{padding:16px 18px}}

/* Keep iOS gestures on the plan, and prevent focus zoom in the defect form. */
#viewport{overscroll-behavior:contain;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
button{touch-action:manipulation}
@media(pointer:coarse){.field input,.field textarea,.field select{font-size:16px}.view-tools .icon-button{width:44px;height:44px}}

/* A lightweight project list is the initial screen. */
.project-picker .side-panel{left:50%;right:auto;transform:translateX(-50%);width:min(680px,calc(100% - 32px));top:84px;bottom:24px}.project-picker .view-tools,.project-picker .view-hint{display:none}.project-picker .panel-head h2{font-size:22px}.project-picker .defect-row{padding:18px}.project-picker .microcopy{font-size:13px;margin-top:0}@media(max-width:640px){.project-picker .side-panel{top:114px;bottom:8px;width:calc(100% - 16px)}.project-picker .defect-row{padding:14px}}

/* Classification stays inside the existing card width. */
.capture-filters{position:absolute;top:76px;left:28px;z-index:6;display:flex;align-items:center;gap:8px;max-width:calc(100% - 56px);padding:6px 9px;background:#fffffff2;border:1px solid #e1e4f0;border-radius:9px;font-size:11px;box-shadow:0 3px 14px #454a8710}
.capture-filters select{min-width:0;max-width:260px;border:0;background:transparent;color:#454a77;padding:5px;font-size:12px}.category-legend{display:flex;gap:5px}
.side-panel{top:132px}.work-actions #addBtn{white-space:normal;line-height:1.2;min-width:0}.work-actions #addBtn>span:last-child{max-width:185px}.point-card .field{margin-bottom:12px}.point-card .field>span{margin-bottom:6px}.classification-row{display:grid;grid-template-columns:1fr}.category-field{margin:0 0 13px}.category-buttons{display:flex;gap:5px}.category-buttons button{flex:1;min-width:0;border:1px solid #dfe2ef;border-radius:7px;background:#f8f9fc;padding:7px 3px;color:#555d7b;display:flex;align-items:center;flex-direction:column;gap:3px}.category-buttons b{font-size:14px;color:var(--category)}.category-buttons span{font-size:10px;line-height:1.2}.category-buttons button[aria-pressed=true]{border-color:var(--category);box-shadow:inset 0 0 0 1px var(--category);background:#fff}.category-description{font-size:10px;color:#7e8499;min-height:13px;margin-top:5px}.point-details{border-top:1px solid #e6e8f2;padding-top:10px;margin:12px 0}.point-details summary{font-size:12px;color:#6267b6;cursor:pointer;margin-bottom:12px}.point-details textarea{min-height:78px}.media-feedback{font-size:11px;color:#8b5662;line-height:1.5}.media-feedback button{margin:8px 0;font-size:11px;white-space:normal}.photo-label{position:absolute;bottom:0;left:0;right:0;padding:4px;background:#292c58d9;color:white;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:0 0 5px 5px;pointer-events:none}#fullPhotoCaption{font-size:13px;padding:10px 8px;color:#484e77;overflow-wrap:anywhere}#photoCount{font-weight:400;color:#8988ac}
@media(max-width:640px){.capture-filters{top:108px;left:12px;right:12px;max-width:none;gap:5px}.capture-filters>label{display:none}.capture-filters select{flex:1;max-width:none;font-size:13px}.side-panel{top:157px}.work-actions{gap:6px}.work-actions #addBtn{flex:1;max-width:240px;font-size:11px}.work-actions #addBtn>span:last-child{max-width:165px}.work-actions #listBtn{padding:7px 8px}.category-buttons button{min-height:46px}.project-picker .side-panel{top:114px}}

/* Category filters and reduced markers at overview scales. */
.category-legend button{border:1px solid transparent;padding:0;width:27px;height:27px;border-radius:50%;background:var(--category);color:var(--category-ink,white);display:grid;place-items:center;font-size:12px;font-weight:650;flex:none}.category-legend.is-filtered button[aria-pressed=false]{background:#e3e5ec;color:#777e90}.category-legend button[aria-pressed=true]{outline:2px solid #4f5682;outline-offset:2px}.category-legend{gap:8px}.category-buttons [data-category=B] b{color:#786211}.marker-muted:hover .marker-body,.marker-muted:focus .marker-body,.marker-compact:hover .marker-body,.marker-compact:focus .marker-body{stroke-width:1}
.work-actions>.button{height:42px;min-height:42px;line-height:1.2}.work-actions #addBtn{white-space:nowrap;max-width:none}.work-actions #addBtn>span:last-child{max-width:none}
#sheetSelect{flex:none;max-width:160px;min-height:36px;border:1px solid #d8daea;border-radius:6px;background:white;color:#555b83;padding:5px 8px;font-size:13px}.plan-loading #viewport{pointer-events:none}.breadcrumb #planTitle{min-width:0}@media(pointer:coarse){#sheetSelect{font-size:16px;min-height:44px}}@media(max-width:640px){#sheetSelect{max-width:155px}.breadcrumb{gap:7px}}
@media(max-width:640px){.work-actions>.button{height:46px;min-height:46px}.work-actions #addBtn{white-space:normal;max-width:240px}.work-actions #addBtn>span:last-child{max-width:165px}.category-legend{gap:6px}.category-legend button{width:30px;height:30px}}

@media(max-width:640px){.has-sheets .context-bar{height:132px}.has-sheets .capture-filters{top:134px}.has-sheets .side-panel{top:183px}}

.offline-status{position:fixed;left:0;right:0;bottom:0;z-index:18;background:#eeedf9;color:#48446f;padding:7px 16px;text-align:center;font-size:12px;pointer-events:none}.offline-status.has-error{background:#fff0df;color:#80521d}.menu{max-height:calc(100dvh - 100px);overflow:auto}.source-controls{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 16px}.source-controls select{max-width:100%;padding:8px;border:1px solid #dbdae6;border-radius:6px}
.offline-status:not([hidden]) + #workspace{height:calc(100dvh - 72px - var(--offline-footer,44px))}
.project-entry{margin-bottom:14px}.project-entry .defect-row{margin-bottom:0}.project-delete{display:block;margin-left:auto;padding:9px 6px;color:#a43b36;font-size:12px;min-height:36px}
.menu{width:min(340px,calc(100vw - 24px));padding:8px}
.menu button{min-height:44px;line-height:1.4;font-weight:550}
.menu [hidden]{display:none!important}
.menu-hint{display:block;margin-top:3px;font-size:11px;line-height:1.45;font-weight:400;color:#74758c}
.menu-group{border-top:1px solid var(--line);margin-top:6px;padding-top:6px}
.menu-group summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:12px;font-size:13px;font-weight:600;border-radius:5px;cursor:pointer;list-style:none}
.menu-group summary::-webkit-details-marker{display:none}
.menu-group summary::after{content:'›';font-size:20px;line-height:1;color:#7977a1;transition:transform .16s}
.menu-group[open] summary::after{transform:rotate(90deg)}
.menu-group summary:hover{background:#eeeef6}
.menu-group summary:focus-visible{outline:3px solid #aca8c7;outline-offset:-3px}
.menu-group[open] summary{color:var(--green)}
.menu #loginSyncBtn{background:#fff0df;color:#80521d}
.menu #loginSyncBtn .menu-hint{color:inherit}
@media(max-width:640px){.offline-status:not([hidden]) + #workspace{height:calc(100dvh - 60px - var(--offline-footer,44px))}}
