@font-face{font-family:Arial;src:local('Arial')}*{box-sizing:border-box}html{color-scheme:light}body{margin:0;color:#22343d;background:#f4f6f8;font-family:Arial,'Malgun Gothic','Apple SD Gothic Neo',sans-serif;font-size:14px;line-height:1.55}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8ed9d1;outline-offset:3px}a{color:#16786f}button{color:inherit}input,select,textarea{width:100%;border:1px solid #d8e0e6;border-radius:7px;background:#fff;color:#263a44;padding:10px 12px;min-height:42px}input:focus,select:focus,textarea:focus{border-color:#238e84;outline:2px solid #d5eeea;outline-offset:0}textarea{resize:vertical;min-height:88px}input[type=file]{padding:7px;background:#f7fafb;font-size:12px}input[type=checkbox]{width:auto;min-height:0}h1,h2,h3,p{margin:0}h1{font-size:28px;letter-spacing:-1.1px;line-height:1.3}h2{font-size:20px;letter-spacing:-.6px}h3{font-size:16px}small{font-size:12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}.app-shell{display:flex;min-height:100vh}.sidebar{width:246px;flex:0 0 246px;background:#fff;border-right:1px solid #e2e8ec;display:flex;flex-direction:column;padding:30px 20px 20px;position:fixed;inset:0 auto 0 0;z-index:12}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#123a46;font-size:26px;font-weight:800;letter-spacing:1px;line-height:1.1}.brand-mark{width:42px;height:46px;background:#143d47;color:#fff;border-radius:10px;display:grid;place-items:center;font-size:28px;font-weight:700;letter-spacing:-1px}.brand small{display:block;font-size:10px;letter-spacing:.2px;color:#7c8c94;font-weight:500;margin-top:6px}.workspace-label{margin-top:38px;padding:17px 12px;background:#f5f8f9;border-radius:8px;border:1px solid #eaf0f2}.tiny-label{font-size:9px;font-weight:700;letter-spacing:1.5px;color:#8d9aa1;display:block}.workspace-label strong{display:block;font-size:14px;margin-top:5px;word-break:keep-all}.sidebar-meta{font-size:11px;color:#7d8e96;display:block;margin-top:5px}.sidebar-section-head{display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:12px;margin:28px 2px 12px}.count-dot{border-radius:20px;font-size:10px;padding:1px 7px;background:#eaf0f3;color:#7f8c94}.unit-search input{font-size:12px;padding:9px 12px;min-height:36px;background:#f8fafb;border-color:#e5eaee}.sidebar-button{width:100%;border:1px dashed #cbd9df;border-radius:7px;background:#fff;padding:8px 10px;font-size:12px;color:#2e6c70;margin:10px 0 12px}.sidebar-button span{font-size:18px;margin-right:5px;line-height:1}.unit-list{overflow:auto;flex:1;min-height:60px;margin:0 -5px;padding:0 5px}.unit-item{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;border:0;background:transparent;border-radius:7px;padding:12px 11px;text-align:left;margin-bottom:5px}.unit-item:hover{background:#f3f8f8}.unit-item.active{background:#eaf4f2;color:#156d65}.unit-item strong{display:block;font-size:13px}.unit-item small{font-size:10px;color:#8c9ca4;display:block;margin-top:3px}.unit-item.active small{color:#68958f}.unit-item .unit-symbol{width:28px;height:30px;border:1px solid #dce6e9;border-radius:5px;display:grid;place-items:center;color:#9baab1;font-size:13px;background:#fff;margin-right:7px;flex-shrink:0}.unit-item-left{display:flex;align-items:center}.unit-badge{font-size:10px;color:#678489;background:#eef2f4;border-radius:4px;padding:2px 6px}.unit-item.active .unit-badge{background:#d8ebe7;color:#2a786f}.sidebar-empty{font-size:11px;color:#9ba8af;padding:18px 8px;text-align:center}.sidebar-bottom{padding:17px 7px 0;border-top:1px solid #eaf0f2;margin-top:15px}.storage-pill{font-size:11px;display:flex;align-items:center;gap:7px;color:#65818b}.status-dot{width:6px;height:6px;border-radius:100%;background:#35a992;display:inline-block;flex-shrink:0}.sidebar-bottom p{font-size:10px;color:#94a1a8;margin-top:10px;line-height:1.8}.sidebar-bottom .text-button{font-size:10px;margin-top:10px}.main{min-width:0;flex:1;margin-left:246px}.topbar{height:70px;background:#fff;border-bottom:1px solid #e5eaee;padding:0 34px;display:flex;align-items:center;justify-content:space-between;gap:16px}.breadcrumb{display:flex;gap:11px;align-items:center;font-size:12px;color:#8b9aa4}.breadcrumb strong{font-weight:500;color:#405660}.crumb-sep{font-size:14px;color:#c5ced4}.topbar-right{display:flex;gap:16px;align-items:center}.sync-state{display:flex;gap:6px;align-items:center;font-size:10px;color:#81929a;white-space:nowrap}.sync-state.error{color:#b3674c}.sync-state.error .status-dot{background:#ce9066}.presence{display:flex;align-items:center;gap:5px;font-size:10px;color:#6f8b93}.presence-member{height:25px;width:25px;display:grid;place-items:center;border-radius:50%;background:#edf3f3;border:2px solid #fff;color:#357b77;font-size:10px;outline:1px solid #e0e9eb;margin-left:-6px}.content-wrap{padding:34px;max-width:1760px;margin:auto}.page-heading{display:flex;gap:20px;justify-content:space-between;align-items:center;margin-bottom:20px}.eyebrow{font-size:9px;letter-spacing:1.5px;font-weight:700;color:#5c8d91;margin-bottom:8px}.page-heading p{font-size:12px;color:#82939d;margin-top:8px}.page-actions{display:flex;gap:8px;flex-wrap:wrap}.button{border:1px solid #d6e0e6;border-radius:7px;padding:8px 13px;min-height:35px;background:#fff;color:#526874;display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1.4;font-size:11px;font-weight:600;text-decoration:none;white-space:nowrap}.button:hover{border-color:#9eafb8;background:#fafcfc}.button.primary{background:#197b72;border-color:#197b72;color:#fff}.button.primary:hover{background:#156a63;border-color:#156a63}.button.small{font-size:10px;padding:6px 10px;min-height:30px}.button.danger{color:#ae614e;border-color:#e7c7be}.button.full{width:100%;min-height:45px;margin-top:8px;font-size:13px}.text-button{border:0;background:none;color:#668b91;padding:0;font-size:11px}.text-button:hover{text-decoration:underline}.icon-button{border:0;border-radius:6px;width:30px;height:30px;background:#f3f6f8;font-size:20px;line-height:1;color:#798c97}.local-storage-note{display:flex;align-items:center;gap:8px;font-size:10px;color:#84979e;margin-bottom:24px}.note-dot{height:5px;width:5px;background:#9ac6bc;border-radius:50%;flex-shrink:0}.local-storage-note.connected{color:#307a70}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:26px}.stat{background:#fff;border:1px solid #e2e8ec;border-radius:9px;padding:18px 22px;position:relative;overflow:hidden}.stat-label{font-size:11px;color:#8b9aa4}.stat-value{font-size:27px;font-weight:700;color:#254752;letter-spacing:-.7px;margin-top:8px;line-height:1}.stat-value small{font-size:11px;letter-spacing:0;font-weight:400;margin-left:5px;color:#91a1a9}.stat-foot{font-size:9px;color:#9ba9b0;margin-top:9px}.stat.accent{border-left:3px solid #3c9f91}.stat.accent .stat-value{color:#278877}.stat.warning .stat-value{color:#b38c53}.tabs-row{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dfe7eb;margin-bottom:23px;gap:14px}.tabs{display:flex;gap:24px;overflow:auto}.tab{border:0;background:transparent;padding:14px 2px 13px;font-size:12px;color:#87979f;white-space:nowrap;position:relative}.tab.active{color:#216b67;font-weight:700}.tab.active:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:3px;background:#288e81;border-radius:3px 3px 0 0}.tabs-row>.button{margin-bottom:7px}.panel{background:#fff;border:1px solid #e1e7eb;border-radius:9px;overflow:hidden;margin-bottom:20px}.panel-head{padding:20px 23px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e8edf0}.panel-head h2{font-size:14px;letter-spacing:-.25px}.panel-head h2 span{font-size:11px;font-weight:400;color:#9aa8af;margin-left:9px}.panel-head p{font-size:10px;color:#90a0a8;margin-top:5px}.panel-actions{display:flex;gap:12px;align-items:center}.doc-tag{font-size:9px;letter-spacing:1px;color:#91a0a8}.unit-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:5px 24px 19px;column-gap:24px}.meta-item{padding-top:16px}.meta-item dt{font-size:10px;color:#97a5ac;margin-bottom:4px}.meta-item dd{font-size:12px;color:#516772;margin:0;min-height:18px;white-space:pre-wrap;word-break:break-word}.meta-item.full{grid-column:1/-1}.section-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 21px;border-bottom:1px solid #e8edf0}.filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.filters select{font-size:10px;padding:6px 25px 6px 9px;min-height:30px;width:auto;max-width:170px;background:#fdfefe}.filters input{font-size:10px;padding:6px 10px;min-height:30px;width:180px}.filtered-count{font-size:10px;color:#94a0a8;white-space:nowrap}.table-wrap{overflow:auto}.defect-table{border-collapse:collapse;width:100%;font-size:11px;min-width:810px}.defect-table thead{background:#f8fafb;color:#8a9ca5;font-size:10px;text-align:left;font-weight:500}.defect-table th{font-weight:500;padding:11px 17px;border-bottom:1px solid #e7edf0;white-space:nowrap}.defect-table td{padding:17px;border-bottom:1px solid #edf1f3;vertical-align:middle}.defect-table tr:last-child td{border-bottom:0}.defect-table tbody tr:hover{background:#fbfdfd}.seq{font-size:10px;color:#90a1aa;font-variant-numeric:tabular-nums}.room-tag{font-size:10px;color:#577780;background:#f0f5f6;border:1px solid #e0e9ec;border-radius:4px;padding:3px 6px;white-space:nowrap}.defect-type{font-weight:600;color:#354f5a;line-height:1.5}.defect-detail{font-size:10px;color:#90a0a8;margin-top:4px;max-width:260px;white-space:pre-wrap;word-break:break-word}.standard-cell{font-size:10px;color:#7a929b;max-width:180px}.photo-count{display:inline-flex;gap:4px;align-items:center;font-size:10px;color:#80969f}.photo-count strong{font-weight:500;color:#458a80}.status-badge{display:inline-block;font-size:9px;padding:3px 8px;border-radius:20px;white-space:nowrap;font-weight:500;background:#edf3f5;color:#658592}.status-badge.working{background:#fff4e1;color:#a48751}.status-badge.closed{background:#e7f4ed;color:#398872}.status-badge.recheck{background:#fceee9;color:#b77e63}.status-badge.new{background:#ecf1f7;color:#6a809d}.row-actions{white-space:nowrap}.row-actions button{font-size:10px;border:0;background:none;color:#719294;padding:3px 5px}.row-actions button:hover{color:#176f67;text-decoration:underline}.table-foot{padding:13px 21px;border-top:1px solid #eaf0f2;display:flex;justify-content:space-between;font-size:9px;color:#9daab1;background:#fcfdfd}.empty-block{padding:55px 22px;text-align:center}.empty-graphic{height:52px;width:46px;border:1px solid #ccdcdF;border-radius:5px;background:#f7fafb;position:relative;margin:0 auto 18px}.empty-graphic:after{content:'';position:absolute;left:10px;top:16px;width:23px;height:18px;border-top:2px solid #c8dadb;border-bottom:2px solid #c8dadb}.empty-block h3{font-size:15px;color:#5d7882}.empty-block p{font-size:11px;color:#94a3ab;margin:8px 0 18px;line-height:1.8}.overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px}.overview-unit{border:1px solid #e0e8ec;border-radius:9px;background:#fff;padding:23px;text-align:left;transition:border-color .15s}.overview-unit:hover{border-color:#70aea5}.overview-unit h3{font-size:18px;color:#335966}.overview-unit p{font-size:10px;color:#93a2aa;margin:5px 0 20px}.overview-unit-bottom{display:flex;justify-content:space-between;font-size:10px;color:#7f949e}.overview-title{font-size:14px;color:#4d6d78;margin-bottom:13px}.board-toolbar{background:#fff;border:1px solid #e1e7eb;border-radius:8px;margin-bottom:18px;padding:14px 18px;display:flex;justify-content:space-between;gap:10px;align-items:center}.board-card{background:#fff;border:1px solid #dfe7eb;border-radius:9px;overflow:hidden;margin-bottom:22px;break-inside:avoid}.board-head{padding:18px 23px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;border-bottom:1px solid #e7edef}.board-title{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.board-title .seq{font-size:12px;padding-right:4px}.board-title h3{font-size:14px}.board-caption{font-size:11px;color:#889da5;margin-top:7px;white-space:pre-wrap}.board-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}.board-stage{padding:18px 22px}.board-stage+ .board-stage{border-left:1px solid #e7edef}.stage-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:11px;color:#62808b}.stage-label strong{font-size:11px;font-weight:600}.stage-label .button{font-size:9px;min-height:26px;padding:4px 8px}.photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.photo-grid.single{grid-template-columns:1fr}.photo-frame{position:relative;border:1px solid #e1e8eb;border-radius:5px;overflow:hidden;background:#edf2f3;min-width:0}.photo-frame img{display:block;width:100%;height:210px;object-fit:contain;background:#eef3f4}.photo-overlay{position:absolute;bottom:10px;right:10px;border:1px solid rgba(255,255,255,.75);background:rgba(20,47,52,.9);color:#fff;width:155px;font-size:8px;line-height:1.55;box-shadow:0 2px 7px #0002}.photo-overlay-title{font-size:9px;text-align:center;padding:3px 5px;border-bottom:1px solid #c2d0d34d;font-weight:600;letter-spacing:.5px}.photo-overlay-row{display:flex;border-bottom:1px solid #c2d0d333}.photo-overlay-row:last-child{border:0}.photo-overlay-row span:first-child{width:37px;text-align:center;border-right:1px solid #c2d0d333;padding:2px 1px;flex-shrink:0;color:#d0dddd}.photo-overlay-row span:last-child{padding:2px 4px;word-break:break-word}.photo-open{position:absolute;inset:0;border:0;background:none;width:100%;z-index:1}.photo-footer{padding:5px 8px;font-size:8px;background:#fff;display:flex;justify-content:space-between;gap:5px;color:#90a1a9}.photo-empty{border:1px dashed #d6e1e5;background:#f9fbfc;border-radius:5px;min-height:212px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;text-align:center;color:#95a8b0;font-size:10px}.photo-empty strong{font-size:11px;font-weight:500;color:#6e8c96}.dropzone{transition:background .15s,border-color .15s}.dropzone.dragover{background:#e6f5f0;border:1px dashed #4caa98}.board-foot{padding:12px 22px;background:#fbfdfd;border-top:1px solid #e7edef;font-size:10px;color:#8aa0a8;display:flex;align-items:flex-start;gap:15px;justify-content:space-between}.board-foot .repair-note{white-space:pre-wrap;flex:1}.criterion-link{font-size:10px;color:#5e8d8d;text-decoration:none}.criterion-link:hover{text-decoration:underline}.criteria-intro{padding:19px 23px;background:#f4faf8;border:1px solid #dbece6;border-radius:8px;font-size:11px;color:#69867f;margin-bottom:20px}.criteria-intro h2{font-size:14px;color:#407669;margin-bottom:6px}.criteria-intro p{line-height:1.8}.criteria-intro a{font-size:10px;margin-top:7px;display:inline-block}.criteria-table{width:100%;border-collapse:collapse;font-size:11px}.criteria-table th{text-align:left;background:#f7fafb;color:#91a1aa;font-size:10px;font-weight:500;padding:11px 18px;white-space:nowrap}.criteria-table td{padding:15px 18px;border-top:1px solid #ebf0f2}.criteria-table .article{font-size:10px;color:#8399a3;white-space:nowrap}.criteria-table a{text-decoration:none;font-size:10px;white-space:nowrap}.criteria-note{font-size:9px;color:#91a1aa;margin-top:4px}.sheets-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;font-size:11px;color:#76919b}.sheets-banner p{max-width:680px}.sheets-host{height:640px;min-height:450px;border:1px solid #dce7eb;border-radius:9px;background:#fff;overflow:hidden}.sheets-loading{padding:70px;text-align:center;color:#8d9fa8;font-size:12px}.workspace-footer{font-size:9px;color:#a2afb6;margin-top:28px;display:flex;justify-content:space-between;gap:20px;padding-bottom:10px}.welcome{position:fixed;inset:0;background:#eef3f4;z-index:30;display:flex;align-items:center;justify-content:center;padding:40px;overflow:auto}.welcome-card{width:970px;max-width:100%;display:grid;grid-template-columns:1fr 1fr;background:#fff;border-radius:15px;overflow:hidden;box-shadow:0 15px 80px #18323d12;border:1px solid #e0e8ec}.welcome-copy{padding:48px 45px;color:#fff;background:#163e48;position:relative}.welcome-copy:before{content:'';position:absolute;right:0;bottom:0;width:160px;height:250px;border:1px solid #2e5760;border-right:0;border-bottom:0;border-radius:50px 0 0 0;opacity:.55;pointer-events:none}.brand.light{color:#fff;font-size:26px}.brand.light .brand-mark{background:#3b7276}.brand.light small{color:#8bb1b7}.welcome-eyebrow{font-size:8px;letter-spacing:2px;color:#82b3b4;margin-top:65px}.welcome-copy h1{margin-top:14px;font-size:32px;letter-spacing:-1.5px;line-height:1.55;font-weight:600}.welcome-copy p{margin-top:20px;color:#9dbbc1;font-size:12px;line-height:1.95}.welcome-steps{list-style:none;margin:38px 0 0;padding:0;font-size:11px;color:#c7dce0}.welcome-steps li{display:flex;align-items:center;gap:13px;margin-top:14px}.welcome-steps span{font-size:9px;color:#73a2a6;font-variant-numeric:tabular-nums}.welcome-footnote{font-size:9px;color:#70979f;margin-top:45px}.welcome-form-wrap{padding:58px 45px 40px;display:flex;flex-direction:column;justify-content:center}.welcome-form-wrap h2{font-size:23px;color:#284f5b;letter-spacing:-.8px}.welcome-form-wrap>p{font-size:11px;line-height:1.8;color:#9aa8b0;margin-top:10px;margin-bottom:30px}.field{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:600;color:#637e88;margin-bottom:17px}.field input,.field textarea,.field select{font-size:12px;font-weight:400}.field small{font-weight:400;color:#98a9b1;font-size:9px;line-height:1.7}.field .required{color:#a56b59}.field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.field-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}.privacy-note{border-top:1px solid #e8edf0;margin-top:30px;padding-top:23px;font-size:10px;color:#79929a}.privacy-note strong{font-weight:500}.privacy-note p{font-size:9px;line-height:1.8;color:#a2afb6;margin-top:7px}.form-error{font-size:11px;color:#b26d56;margin-top:14px;white-space:pre-wrap;min-height:15px}.modal{border:1px solid #dce6ea;border-radius:12px;padding:0;width:640px;max-width:calc(100vw - 30px);max-height:calc(100dvh - 40px);color:#334e59;box-shadow:0 20px 100px #18363f33;overflow:auto}.modal::backdrop{background:#18363f66;backdrop-filter:blur(2px)}.modal.wide{width:940px}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 26px 21px;border-bottom:1px solid #e8edf0}.modal-head .eyebrow{font-size:8px;margin-bottom:5px}.modal-head h2{font-size:20px}.modal-body{padding:23px 26px}.modal-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:17px;border-top:1px solid #e8edf0;margin-top:12px}.modal-footer-right{display:flex;gap:9px;align-items:center}.form-section-title{font-size:11px;font-weight:600;color:#587c83;margin:3px 0 17px;padding-bottom:10px;border-bottom:1px solid #ebf0f2}.form-help{font-size:10px;color:#9ba8af;line-height:1.8;margin-bottom:17px}.candidate-note{font-size:9px;color:#7b9c91;margin-top:-9px;margin-bottom:17px}.existing-photos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:20px}.existing-photo{position:relative;background:#f3f7f8;border:1px solid #e1e9ed;border-radius:5px;padding:4px}.existing-photo img{display:block;width:100%;height:90px;object-fit:contain}.existing-photo small{display:block;font-size:8px;color:#8a9ea7;padding:3px 3px 0}.existing-photo .photo-delete{position:absolute;top:3px;right:3px;background:#fff;border:1px solid #dce5e9;min-height:20px;border-radius:4px;font-size:8px;padding:1px 4px;color:#a97968}.image-view img{width:100%;max-height:65vh;object-fit:contain;background:#edf2f3;border-radius:6px}.image-view p{font-size:11px;color:#8b9fa7;margin-top:12px}.modal-note{background:#f4f9f8;border:1px solid #dcece7;border-radius:7px;padding:13px 15px;font-size:10px;line-height:1.85;color:#718f87;margin-bottom:17px}.invite-result{display:flex;gap:8px;align-items:center}.invite-result input{font-size:11px}.toasts{position:fixed;right:25px;bottom:25px;z-index:100;display:flex;flex-direction:column;gap:9px;max-width:420px}.toast{border:1px solid #d9e7e3;border-radius:8px;background:#fff;box-shadow:0 8px 35px #25434a16;padding:14px 18px;font-size:12px;line-height:1.65;animation:toast-in .18s ease;color:#426e62}.toast.error{color:#a36550;border-color:#ecd5c9}.toast.warning{color:#997d50;border-color:#e8dcc3}.toast:before{content:'';width:4px;height:16px;background:#5ca58d;display:inline-block;vertical-align:middle;margin-right:11px;border-radius:2px}.toast.error:before{background:#c78d71}.toast.warning:before{background:#c6ad74}.noscript{position:fixed;inset:0;background:#fff;display:grid;place-items:center;z-index:200}.print-only{display:none}.offline-banner{background:#fff6e7;border:1px solid #ecdcc5;padding:11px 16px;border-radius:6px;margin-bottom:17px;font-size:11px;color:#a58a59}@keyframes toast-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}@media(min-width:1450px){.content-wrap{padding:40px 45px}.topbar{padding:0 45px}.photo-frame img{height:260px}}@media(max-width:1100px){.sidebar{width:215px;flex-basis:215px;padding:24px 15px}.main{margin-left:215px}.content-wrap{padding:26px 23px}.topbar{padding:0 23px}.page-heading{align-items:flex-start}.page-actions{max-width:235px;justify-content:flex-end}.stats{gap:10px}.stat{padding:16px}.overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.board-stage{padding:15px}.photo-overlay{width:125px;font-size:7px;right:7px;bottom:7px}.photo-overlay-title{font-size:8px}.photo-frame img{height:190px}.presence{display:none}}@media(max-width:800px){.sidebar{position:static;width:190px;flex-basis:190px;padding:23px 13px;min-height:100vh}.main{margin-left:0}.brand{font-size:23px;gap:8px}.brand-mark{width:34px;height:38px;font-size:24px}.brand small{font-size:8px}.topbar{height:58px;padding:0 18px}.topbar-right{gap:9px}.sync-state{font-size:9px}.content-wrap{padding:22px 18px}.page-heading{display:block}.page-actions{max-width:none;justify-content:flex-start;margin-top:16px}h1{font-size:24px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:18px}.tab{font-size:11px}.tabs{gap:17px}.tabs-row>.button{font-size:10px;padding:7px 10px}.unit-meta{grid-template-columns:repeat(2,minmax(0,1fr));padding-left:19px;padding-right:19px}.panel-head{padding:17px 19px}.board-columns{grid-template-columns:1fr}.board-stage+.board-stage{border-left:0;border-top:1px solid #e7edef}.photo-frame img{height:260px}.photo-overlay{width:155px;font-size:8px}.photo-overlay-title{font-size:9px}.workspace-footer{flex-direction:column;gap:7px}.welcome{padding:24px}.welcome-copy{padding:35px 30px}.welcome-copy h1{font-size:27px}.welcome-form-wrap{padding:38px 30px}.welcome-eyebrow{margin-top:45px}.welcome-steps{margin-top:28px}.welcome-footnote{margin-top:30px}}@media(max-width:600px){.app-shell{display:block}.sidebar{min-height:0;width:auto;position:static;padding:15px 17px;border-right:0;border-bottom:1px solid #e2e8ec;display:block}.brand{font-size:22px;display:inline-flex}.brand-mark{width:33px;height:35px;font-size:22px}.brand small{font-size:8px;margin-top:4px}.workspace-label{display:inline-block;float:right;max-width:52%;background:none;border:0;padding:0;margin:0;text-align:right}.workspace-label .tiny-label{font-size:7px}.workspace-label strong{font-size:11px;margin-top:3px}.sidebar-meta{font-size:8px;margin-top:3px}.sidebar-section-head{margin:20px 0 8px;font-size:10px}.unit-search{display:none}.sidebar-button{width:auto;position:absolute;right:17px;margin-top:-35px;font-size:10px;min-height:27px;padding:4px 8px;border-style:solid}.unit-list{display:flex;gap:6px;margin:0;padding:0;overflow:auto;min-height:0;max-height:66px}.unit-item{width:auto;min-width:130px;padding:9px 10px;flex-shrink:0;border:1px solid #e5ecef;margin-bottom:0}.unit-item strong{font-size:11px}.unit-item small{font-size:8px}.unit-item .unit-symbol{display:none}.unit-badge{font-size:8px}.sidebar-empty{text-align:left;padding:6px 0;font-size:10px}.sidebar-bottom{display:none}.topbar{padding:0 17px;height:49px}.breadcrumb{font-size:10px;gap:7px}.sync-state{font-size:8px}.topbar-right>.button{font-size:9px;padding:5px 7px;min-height:26px}.content-wrap{padding:24px 17px}.eyebrow{font-size:8px;margin-bottom:7px}h1{font-size:23px}.page-heading p{font-size:10px;line-height:1.8}.page-actions{gap:6px;margin-top:14px}.page-actions .button{font-size:9px;min-height:30px;padding:6px 10px}.local-storage-note{font-size:8px;line-height:1.8;margin-bottom:18px;align-items:flex-start}.note-dot{margin-top:6px}.stat{padding:13px 16px;border-radius:7px}.stat-label{font-size:9px}.stat-value{font-size:24px;margin-top:7px}.stat-foot{font-size:8px;margin-top:7px}.stat-value small{font-size:9px}.tabs{gap:17px}.tabs-row{display:block;position:relative;padding-bottom:0}.tabs-row>.button{position:absolute;right:0;top:-56px;display:none}.tab{font-size:11px;padding:12px 1px}.panel-head{padding:16px;align-items:flex-start}.panel-head h2{font-size:13px}.panel-head h2 span{display:block;font-size:9px;margin:4px 0 0}.panel-head p{font-size:9px}.panel-actions{gap:9px;flex-shrink:0}.panel-actions button{font-size:9px}.unit-meta{padding:0 16px 16px;gap:0 14px}.meta-item{padding-top:14px}.meta-item dt{font-size:9px}.meta-item dd{font-size:11px}.section-toolbar{padding:12px 14px;display:block}.filters{gap:6px}.filters select{font-size:9px;min-height:29px;padding:5px 8px;max-width:120px}.filters input{font-size:9px;width:130px}.filtered-count{font-size:8px;margin-top:7px;display:block}.defect-table th,.defect-table td{padding-left:13px;padding-right:13px}.defect-table{font-size:10px;min-width:760px}.table-foot{padding:12px 14px;line-height:1.8;gap:10px;font-size:8px}.table-foot>.button{font-size:9px;min-height:28px}.overview-grid{grid-template-columns:1fr;gap:10px}.overview-unit{padding:19px}.empty-block{padding:38px 17px}.empty-block h3{font-size:14px}.empty-block p{font-size:10px}.board-toolbar{padding:12px 14px}.board-head{padding:15px}.board-title{gap:7px}.board-title h3{font-size:12px}.board-caption{font-size:10px}.board-head .button{font-size:9px;padding:4px 7px;min-height:27px}.board-stage{padding:15px}.photo-grid{gap:8px}.photo-frame img{height:195px}.photo-overlay{width:124px;font-size:7px;bottom:7px;right:7px}.photo-overlay-title{font-size:8px}.photo-overlay-row span:first-child{width:32px}.photo-grid.single .photo-frame img{height:280px}.photo-grid.single .photo-overlay{width:155px;font-size:8px}.photo-grid.single .photo-overlay-title{font-size:9px}.board-foot{padding:12px 15px;font-size:9px;display:block}.board-foot .criterion-link{display:block;margin-top:7px}.criteria-intro{padding:16px;font-size:10px}.criteria-intro h2{font-size:12px}.criteria-table td,.criteria-table th{padding:12px 13px}.criteria-table{font-size:10px;min-width:540px}.sheets-banner{font-size:9px;display:block;line-height:1.8}.sheets-banner .button{margin-top:10px;font-size:9px}.sheets-host{height:580px}.welcome{position:static;min-height:100vh;padding:16px}.welcome-card{display:block;border-radius:11px}.welcome-copy{padding:28px}.welcome-copy h1{font-size:26px;line-height:1.5}.welcome-copy p{font-size:10px;margin-top:12px}.welcome-eyebrow{margin-top:26px;font-size:7px}.welcome-steps{display:none}.welcome-footnote{margin-top:22px;font-size:8px}.welcome-form-wrap{padding:29px 28px}.welcome-form-wrap h2{font-size:21px}.welcome-form-wrap>p{font-size:10px;margin-bottom:22px}.privacy-note{margin-top:23px;padding-top:19px}.field-row.three{grid-template-columns:1fr 1fr}.field-row{gap:13px}.field{font-size:10px;margin-bottom:15px}.field input,.field select,.field textarea{font-size:11px}.modal-head{padding:20px}.modal-head h2{font-size:18px}.modal-body{padding:20px}.modal-footer{align-items:flex-start}.modal-footer .button{font-size:10px}.existing-photos{grid-template-columns:repeat(3,minmax(0,1fr))}.toasts{left:17px;right:17px;bottom:17px;max-width:none}.toast{font-size:11px;padding:12px 15px}.workspace-footer{font-size:8px}}
@media print{@page{size:A4;margin:12mm}body{background:#fff;font-size:10px;color:#172f38}.sidebar,.topbar,.page-actions,.local-storage-note,.stats,.tabs-row,.workspace-footer,.section-toolbar,.panel-actions,.row-actions,.table-foot,.board-toolbar,.board-head .button,.stage-label .button,.welcome,.modal,.toasts,.sheets-banner,.sheets-host,.photo-open,.no-print{display:none!important}.main{margin:0}.content-wrap{padding:0;max-width:none}.page-heading{margin-bottom:18px;display:block}.page-heading .eyebrow{font-size:8px}h1{font-size:22px}.page-heading p{font-size:10px}.panel{border:1px solid #b8c9d0;border-radius:0;margin-bottom:14px}.panel-head{padding:12px 14px}.unit-meta{padding:0 14px 12px;grid-template-columns:repeat(3,minmax(0,1fr))}.meta-item{padding-top:10px}.meta-item dt{font-size:8px}.meta-item dd{font-size:10px}.table-wrap{overflow:visible}.defect-table{min-width:0;font-size:9px;table-layout:fixed}.defect-table th,.defect-table td{padding:8px 7px;word-break:break-word}.defect-detail{font-size:8px;max-width:none}.room-tag{font-size:8px;border:0;background:none;padding:0}.standard-cell{font-size:8px}.status-badge{font-size:8px;padding:0;background:none!important;color:#264a54!important}.photo-count{font-size:8px}.defect-table th:last-child,.defect-table td:last-child{display:none}.print-only{display:block}.print-cover{break-after:page}.print-board-title{font-size:17px;margin-bottom:12px}.board-card{break-inside:avoid;break-after:page;border:1px solid #aebfc7;border-radius:0;margin-bottom:0}.board-card:last-child{break-after:auto}.board-head{padding:12px 15px}.board-title h3{font-size:12px}.board-caption{font-size:9px}.board-columns{display:grid;grid-template-columns:1fr 1fr}.board-stage{padding:12px}.board-stage+.board-stage{border-left:1px solid #c8d4da;border-top:0}.photo-grid{grid-template-columns:1fr;gap:10px}.photo-frame{border-radius:0}.photo-frame img,.photo-grid.single .photo-frame img{height:235px}.photo-overlay,.photo-grid.single .photo-overlay{width:135px;font-size:7px;print-color-adjust:exact;-webkit-print-color-adjust:exact}.photo-overlay-title,.photo-grid.single .photo-overlay-title{font-size:8px}.photo-footer{font-size:7px}.photo-empty{min-height:235px;font-size:8px}.stage-label{font-size:9px}.stage-label strong{font-size:10px}.board-foot{font-size:8px;padding:10px 14px}.criterion-link{font-size:8px}.criteria-intro{background:none;border:1px solid #c8d8d6;font-size:10px}.criteria-table{font-size:9px;min-width:0}.criteria-table td,.criteria-table th{padding:8px}.photo-overlay{background:#173840!important}.panel-head h2{font-size:12px}}

/* Official criteria loading and source distinction */
.criteria-load-state{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 15px;border:1px solid #dfe9eb;border-radius:7px;background:#f8fbfc;color:#75909a;font-size:10px;line-height:1.8;margin-bottom:16px}.criteria-load-state.error{background:#fff9ed;border-color:#eadfc9;color:#9a815c}.criteria-load-state strong{font-weight:600}.criteria-load-state .button{flex-shrink:0}.criteria-load-notice .criteria-load-state{margin-top:-9px}.criteria-documents{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:17px 0 13px}.criteria-document{padding:15px 16px;background:#fff;border:1px solid #deebe6;border-radius:7px}.criteria-document strong{display:block;font-size:12px;color:#3d6b62;line-height:1.65;margin-top:8px}.criteria-document p{font-size:9px;color:#829c94;margin-top:6px}.criteria-intro .criteria-document a{font-size:9px}.criterion-kind{display:inline-block;font-size:8px;line-height:1.5;font-weight:500;padding:3px 7px;border-radius:4px;background:#e7f1ed;color:#508b75;white-space:nowrap}.criterion-kind.checklist{background:#eaf0f7;color:#6a85a3}.criterion-reference{display:block;font-size:9px;color:#89a0a8;margin-top:5px;white-space:normal}.criteria-disclaimer{font-size:9px!important;line-height:1.9!important;color:#7b948d}.candidate-note{line-height:1.9;margin-top:-8px}.criteria-table .article{min-width:130px;white-space:normal}.criteria-table td:nth-child(2){min-width:150px}.criteria-document .criterion-kind.article{font-size:8px;color:#508b75}.criteria-load-state[role=status]{word-break:keep-all}@media(max-width:800px){.criteria-documents{grid-template-columns:1fr}.criteria-document{padding:13px 14px}.criteria-document strong{font-size:11px}.criteria-load-state{font-size:9px;gap:10px;align-items:flex-start}.criteria-load-state .button{font-size:9px;padding:5px 8px}.criteria-table .article{min-width:120px}.criteria-load-notice .criteria-load-state{margin-top:-6px}}@media(max-width:600px){.criteria-load-state{display:block}.criteria-load-state .button{margin-top:8px}.criteria-document p,.criteria-disclaimer{font-size:8px!important}.criterion-reference{font-size:8px}}@media print{.criteria-load-notice,.criteria-load-state{display:none!important}.criteria-documents{grid-template-columns:1fr 1fr}.criteria-document{border-radius:0;break-inside:avoid}.criterion-kind{background:none!important;font-size:8px}.criteria-table .article{min-width:0}}

/* HAJA 2: one screen, one room, continuous capture */
:root{--ink:#213c36;--muted:#6d7f79;--line:#dfe6e1;--accent:#246d59;--soft:#edf4ef;--surface:#fff}
body{background:#f4f6f3;color:var(--ink)}
.sidebar{width:224px;flex-basis:224px;padding:25px 18px;background:#fbfcfa;border-right-color:var(--line)}
.main{margin-left:224px}.brand{color:var(--ink);font-size:25px}.brand-mark{background:var(--ink);height:39px;width:37px;border-radius:10px;font-size:25px}.brand small{font-size:10px;color:var(--muted)}
.workspace-label{margin-top:28px;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:4px 0 19px}.workspace-label strong{font-size:14px}.sidebar-meta{font-size:11px;line-height:1.7}.sidebar-section-head{margin-top:23px;font-size:12px}.unit-search input{min-height:40px;font-size:12px;background:#fff;border-color:var(--line)}.unit-list{margin-top:12px}.unit-item{min-height:58px;padding:11px 10px}.unit-item strong{font-size:13px}.unit-item small{font-size:11px}.unit-item .unit-symbol{display:none}.unit-item.active{background:#e8f0e8;color:var(--accent)}.sidebar-bottom p{font-size:11px;color:#849089;line-height:1.8}.storage-pill{font-size:10px;color:#75847b}
.topbar{position:sticky;top:0;z-index:20;height:62px;padding:0 30px;background:#ffffffed;backdrop-filter:blur(12px);border-bottom-color:var(--line)}.topbar-right{gap:15px}.breadcrumb{font-size:12px}.sync-state{font-size:11px;color:#697d73}.presence{font-size:11px}.content-wrap{padding:27px 30px;max-width:1560px}.page-heading{margin-bottom:15px;align-items:flex-start}.page-heading h1{font-size:28px;letter-spacing:-1px;color:#223e33}.page-heading p{font-size:12px;color:var(--muted);margin-top:7px;line-height:1.7}.page-heading .eyebrow{font-size:10px;letter-spacing:.1px;color:#7a8d80;margin-bottom:7px}.page-actions{display:none}.workspace-footer{font-size:10px;color:#8b9890;margin-top:22px}.button{font-size:12px;min-height:38px;padding:9px 14px;border-color:var(--line);border-radius:8px}.button.primary{background:var(--accent);border-color:var(--accent)}.button.primary:hover{background:#1d5a49;border-color:#1d5a49}.text-button{font-size:12px}.button.small{font-size:11px;min-height:32px}.field{font-size:12px;color:#526b5f;gap:7px}.field input,.field select,.field textarea{font-size:14px;min-height:44px}.field small{font-size:11px}.form-help{font-size:12px;color:var(--muted)}.form-error{font-size:12px;color:#a64231;line-height:1.7}.form-error:empty{margin:0;min-height:0}.field textarea{min-height:86px}
.toolbar-menu{position:relative;flex-shrink:0}.toolbar-menu>summary{cursor:pointer;list-style:none;font-size:12px;font-weight:600;padding:8px 31px 8px 13px;border:1px solid var(--line);border-radius:8px;min-height:36px;background:#fff;color:#476355;position:relative;user-select:none}.toolbar-menu>summary::-webkit-details-marker{display:none}.toolbar-menu>summary:after{content:'';position:absolute;width:6px;height:6px;border-bottom:1.5px solid;border-right:1.5px solid;right:14px;top:13px;transform:rotate(45deg)}.toolbar-menu[open]>summary{background:var(--soft);border-color:#9db5a4}.toolbar-menu[open]>summary:after{top:16px;transform:rotate(225deg)}.toolbar-menu-panel{position:absolute;right:0;top:calc(100% + 9px);width:286px;max-height:calc(100dvh - 90px);overflow:auto;padding:10px;background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:0 15px 55px #16332a24;z-index:50}.toolbar-menu-panel>button{width:100%;display:block;text-align:left;background:none;border:0;border-radius:6px;padding:9px 11px;font-size:12px;color:#3d574b;min-height:35px}.toolbar-menu-panel>button:hover{background:var(--soft)}.toolbar-menu-panel>button:disabled{cursor:default;color:#b0bab2}.menu-heading{font-size:10px;font-weight:700;letter-spacing:.4px;color:#87958b;padding:7px 11px 6px}.menu-heading:not(:first-child){border-top:1px solid #eaf0e9;margin-top:7px;padding-top:13px}.toolbar-menu .local-storage-note{font-size:10px;color:#7c8d80;line-height:1.7;background:#f4f7f2;border-radius:7px;padding:11px;margin:8px 1px 1px;align-items:flex-start;flex-wrap:wrap}.toolbar-menu .local-storage-note>span:nth-child(2){flex:1;min-width:160px}.toolbar-menu .note-dot{margin-top:6px}
#stats{display:block;margin:0 0 10px}.compact-stats{display:flex;gap:20px;align-items:center;flex-wrap:wrap;padding:0 0 7px;color:#829088;font-size:12px}.compact-stat{display:inline-flex;gap:6px;align-items:baseline}.compact-stat strong{font-size:17px;font-weight:650;color:#315744;letter-spacing:-.4px}.compact-stat small{font-size:11px}.tabs-row{margin-bottom:22px;border-bottom-color:var(--line)}.tabs{gap:27px}.tab{font-size:13px;padding:14px 1px 13px;color:#7d8d81}.tab.active{color:#246d59}.tab.active:after{background:#246d59;height:2px}.keyboard-hint{font-size:11px;color:#98a197;white-space:nowrap}
.inspection-layout{display:grid;grid-template-columns:minmax(350px,450px) minmax(0,1fr);gap:24px;align-items:start}.quick-panel{background:#fff;border:1px solid #dce5dc;border-radius:15px;overflow:hidden;box-shadow:0 4px 20px #183d2510}.quick-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:21px 24px 18px;border-bottom:1px solid #ebefea;background:#fcfdfb}.quick-head h2{font-size:19px;letter-spacing:-.6px;line-height:1.4}.quick-head p{font-size:12px;color:#829183;margin-top:5px;line-height:1.6}.quick-head .text-button{font-size:11px;white-space:nowrap;flex-shrink:0}.quick-form{padding:22px 24px 21px}.quick-form .field{font-size:12px;margin-bottom:19px;color:#586f60}.quick-form input,.quick-form select,.quick-form textarea{border-radius:8px;border-color:#d8e1d7;background:#fff}.quick-form input:focus,.quick-form select:focus,.quick-form textarea:focus{border-color:#5a9173;outline:2px solid #e6f1e5}.quick-form input[name=type]{min-height:51px;font-size:16px;font-weight:500;letter-spacing:-.3px}.quick-form select[name=room]{font-size:15px;font-weight:600;min-height:45px;color:#345844;background:#f6f9f4}.quick-form .candidate-note,#quick-template-note{font-size:11px;color:#78917d;line-height:1.7;margin-top:-8px;margin-bottom:16px}.quick-photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:2px 0 18px}.quick-photo{display:flex;flex-direction:column;gap:9px;border:1px dashed #bfcfbc;border-radius:10px;background:#f8faf6;padding:16px 13px;color:#5c785e;font-size:12px;min-width:0}.quick-photo strong{font-size:12px;font-weight:600}.quick-photo small{font-size:10px;color:#94a28e;line-height:1.6}.quick-photo input[type=file]{font-size:10px;min-height:34px;border:0;padding:0;background:transparent;max-width:100%;color:#859581}.quick-photo input::file-selector-button{font-family:inherit;color:#3f6a44;font-size:11px;font-weight:600;padding:7px 10px;border:1px solid #cbd9c5;background:#fff;border-radius:6px;margin-right:7px;cursor:pointer}.quick-photo input::file-selector-button:hover{background:#e7f0e2}.quick-photo.dragover{border-color:#387248;background:#eaf4e7}.quick-options{border-top:1px solid #e7ede4;border-bottom:1px solid #e7ede4;margin:6px 0 19px;padding:0}.quick-options>summary{font-size:12px;font-weight:500;color:#788c75;padding:13px 1px;cursor:pointer}.quick-options[open]>summary{margin-bottom:10px}.quick-options .field{margin-bottom:14px}.quick-options .field-row{gap:12px}.quick-options .candidate-note{font-size:10px;color:#94a08e}.quick-save{display:flex;align-items:center;gap:12px;margin-top:19px}.quick-save>.button.primary,.quick-save>button[type=submit]{min-height:47px;flex:1;font-size:14px;border-radius:9px;font-weight:600;letter-spacing:-.1px}.quick-save small,.quick-save>span{font-size:10px;color:#8c9d87}.quick-form .existing-photos{margin:0 0 15px}.quick-form .existing-photo img{height:65px}.quick-form .existing-photo small{font-size:9px}#quick-file-note{font-size:11px;color:#637f61;line-height:1.65;margin-top:-9px;margin-bottom:12px}#quick-file-note:empty{display:none}
.inspection-feed{min-width:0;padding:1px 0}.feed-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px;padding:6px 2px}.feed-head h2{font-size:15px;letter-spacing:-.3px}.feed-head p,.feed-head small,.feed-head>span{font-size:11px;color:#89978a}.feed-head input{min-height:35px;font-size:11px;width:165px}.inspection-feed .filters{margin-bottom:12px}.inspection-feed .filters input{width:100%;background:#fff;min-height:36px;font-size:12px}.inspection-record{display:flex;align-items:center;justify-content:space-between;gap:15px;width:100%;text-align:left;padding:18px;border:1px solid #e0e6dd;border-radius:11px;background:#fff;margin-bottom:10px;color:#3f5746;transition:background .15s,border-color .15s,box-shadow .15s}.inspection-record:hover{background:#fcfdf9;border-color:#a1b49b;box-shadow:0 3px 9px #33522007}.inspection-record.active{border-color:#729e6b;background:#f3f8f0;box-shadow:inset 3px 0 #608953}.record-main{min-width:0;flex:1}.record-main strong{font-size:14px;font-weight:600;display:block;color:#314c36;line-height:1.55;overflow-wrap:anywhere}.record-main p{font-size:12px;line-height:1.6;color:#88947f;margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere}.record-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#8f9b87;font-size:11px;margin-top:8px}.record-meta .seq{font-size:10px;color:#a0aa96}.record-meta .room-tag{background:#f2f6ee;border-color:#e0e8d8;color:#6b835f;font-size:10px}.record-photos{display:flex;gap:5px;align-items:center;flex-shrink:0;color:#91a081;font-size:11px}.record-photos img{width:49px;height:49px;object-fit:cover;border:1px solid #e2e8db;border-radius:7px}.inspection-record .status-badge{font-size:10px}.inspection-empty{padding:55px 25px;border:1px dashed #d6dfcd;border-radius:12px;text-align:center;color:#99a58d;background:#f8faf5;font-size:12px;line-height:1.9}.inspection-empty h3{font-size:14px;color:#718368;margin-bottom:9px}.inspection-empty strong{display:block;font-weight:500;color:#718368;margin-bottom:8px}.inspection-empty p{font-size:12px;line-height:1.8}.inspection-feed>p{font-size:11px;color:#9aa78e;margin:12px 2px}.record-view-switch{display:flex;align-items:center;gap:3px;padding:4px;background:#e9eee4;border-radius:9px;width:max-content;margin-bottom:17px}.record-view-switch button{border:0;background:transparent;padding:8px 16px;min-height:34px;border-radius:6px;color:#7c8b6e;font-size:12px}.record-view-switch button.active,.record-view-switch button[aria-pressed=true]{background:#fff;color:#3a663b;box-shadow:0 1px 4px #19340c14}
.panel{border-color:var(--line);border-radius:12px}.panel-head h2{font-size:15px}.panel-head p{font-size:11px}.unit-meta dt{font-size:11px}.unit-meta dd{font-size:13px}.overview-title{font-size:16px}.overview-unit h3{font-size:20px}.overview-unit p,.overview-unit-bottom{font-size:12px}.empty-block h3{font-size:20px;color:#415f44}.empty-block p{font-size:13px;color:#899a80;line-height:1.9}.empty-block .button{font-size:13px;min-height:43px}.modal{border-color:var(--line);border-radius:15px}.modal-head .eyebrow{font-size:9px;letter-spacing:.3px}.modal-head h2{font-size:22px}.modal-body{padding:23px 26px}.preset-fields{display:grid;grid-template-columns:1fr;gap:13px}.preset-section{padding:17px 18px;border:1px solid #e1e9da;border-radius:10px;background:#fcfdfb;margin-bottom:14px}.preset-section h3,.preset-section>summary{font-size:13px;color:#57734d;margin-bottom:10px}.preset-section>p,.preset-help{font-size:11px;line-height:1.8;color:#8e9d80;margin:6px 0 13px}.preset-section .field:last-child{margin-bottom:0}.preset-section textarea{font-family:Consolas,'Malgun Gothic',monospace;font-size:12px;line-height:1.85;min-height:112px;white-space:pre;overflow:auto}.preset-section input{font-size:13px}.preset-section code,.preset-help code{font-size:11px;color:#628252;background:#f0f5ea;padding:2px 4px;border-radius:3px}.preset-preview{background:#eef5e7;border:1px solid #cbdcc0;border-radius:8px;padding:12px 14px;font-size:12px;color:#567c42;margin-top:14px}.preset-preview:empty{display:none}.preset-fields .form-help{font-size:11px}.welcome-copy{background:#234434}.welcome-copy:before{border-color:#57774c}.welcome-copy h1{font-size:33px;line-height:1.6}.welcome-copy p{font-size:13px;color:#b2c4a6}.welcome-eyebrow{color:#95b485;margin-top:51px}.welcome-steps{font-size:12px;color:#d2dfc6;margin-top:29px}.welcome-footnote{font-size:10px;color:#95ac86}.brand.light .brand-mark{background:#54734b}.welcome-form-wrap>p{font-size:12px}.welcome-form-wrap .field input{font-size:14px}.privacy-note{font-size:11px}.privacy-note p{font-size:10px}.status-badge.closed{background:#e9f3e3;color:#578640}.toast{font-size:12px;max-width:460px}
@media(min-width:1450px){.content-wrap{padding:32px 40px}.topbar{padding:0 40px}.inspection-layout{grid-template-columns:minmax(380px,470px) minmax(0,1fr);gap:32px}.quick-panel{position:sticky;top:82px}}
@media(max-width:1150px){.sidebar{width:198px;flex-basis:198px;padding:22px 14px}.main{margin-left:198px}.content-wrap{padding:24px}.topbar{padding:0 24px}.inspection-layout{grid-template-columns:minmax(320px,400px) minmax(0,1fr);gap:18px}.quick-head,.quick-form{padding-left:20px;padding-right:20px}.record-photos img{width:37px;height:42px}.presence{display:none}.inspection-record{padding:15px 13px;gap:9px}}
@media(max-width:930px){.inspection-layout{grid-template-columns:minmax(0,1fr);max-width:640px;margin:auto}.quick-panel{position:static}.inspection-feed{margin-top:5px}.content-wrap{padding:23px}.compact-stats{gap:15px}.keyboard-hint{font-size:10px}.toolbar-menu-panel{width:270px}.tabs{gap:22px}.topbar{padding:0 23px}.page-heading{display:block}.quick-photo-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}}
@media(max-width:800px){.sidebar{position:fixed;inset:0 auto 0 0;width:190px;min-height:100vh}.main{margin-left:190px}.topbar{height:58px}.topbar-right{gap:10px}.breadcrumb{font-size:11px}.sync-state{font-size:10px}.content-wrap{padding:21px 20px}.tabs{gap:19px}.tab{font-size:12px}.keyboard-hint{display:none}.compact-stat strong{font-size:16px}.toolbar-menu>summary{font-size:11px}.quick-form .field input,.quick-form .field select,.quick-form .field textarea{font-size:14px}.quick-form input[name=type]{font-size:16px}.record-photos img{width:49px;height:49px}}
@media(max-width:600px){.sidebar{position:static;width:auto;min-height:0;padding:14px 17px 11px;display:block}.main{margin-left:0}.brand{font-size:22px;gap:9px}.brand-mark{height:34px;width:32px;font-size:22px}.brand small{font-size:8px}.workspace-label{max-width:55%;border:0;margin:0;padding:0;display:inline-block;float:right;text-align:right}.workspace-label strong{font-size:11px}.sidebar-meta{font-size:9px}.workspace-label .tiny-label{font-size:8px}.sidebar-section-head{display:none}.unit-search{display:block;clear:both;padding-top:12px}.unit-search input{height:34px;min-height:34px;font-size:12px;background:#fff}.unit-list{margin-top:9px;min-height:0;max-height:60px;display:flex;gap:6px;padding:0}.unit-item{min-height:48px;min-width:123px;width:auto;flex-shrink:0;padding:8px 10px}.unit-item strong{font-size:11px}.unit-item small{font-size:9px;margin-top:1px}.sidebar-bottom{display:none}.topbar{position:sticky;top:0;padding:0 16px;height:51px}.breadcrumb{font-size:10px;gap:6px}.sync-state{font-size:9px}.topbar-right{gap:10px}.toolbar-menu>summary{padding:7px 27px 7px 10px;min-height:32px;font-size:11px}.toolbar-menu>summary:after{top:11px;right:12px}.toolbar-menu-panel{right:0;width:min(290px,calc(100vw - 32px));max-height:calc(100dvh - 75px)}.toolbar-menu-panel>button{font-size:13px;padding:10px 11px}.content-wrap{padding:21px 16px}.page-heading{margin-bottom:12px}.page-heading .eyebrow{font-size:9px;margin-bottom:6px}.page-heading h1{font-size:25px}.page-heading p{font-size:11px;line-height:1.7;margin-top:5px}.compact-stats{gap:12px;font-size:11px;padding-bottom:3px}.compact-stat strong{font-size:15px}.compact-stat small{font-size:10px}.tabs-row{display:flex;margin-bottom:17px}.tabs{gap:23px}.tab{font-size:12px;padding:12px 1px}.inspection-layout{gap:18px}.quick-head{padding:17px 18px 15px}.quick-head h2{font-size:18px}.quick-head p{font-size:11px}.quick-form{padding:18px}.quick-form .field{font-size:12px;margin-bottom:17px}.quick-form input[name=type]{font-size:16px;min-height:48px}.quick-form .field-row{grid-template-columns:1fr;gap:0}.quick-photo-grid{gap:10px}.quick-photo{padding:13px 10px}.quick-photo strong{font-size:11px}.quick-photo input::file-selector-button{font-size:11px;padding:7px 9px}.quick-options>summary{font-size:12px;padding:12px 1px}.quick-save{margin-top:15px}.quick-save>.button.primary{min-height:46px;font-size:14px}.quick-save small{display:none}.feed-head{padding:3px 1px;margin-bottom:12px}.feed-head h2{font-size:14px}.inspection-record{padding:15px 13px}.record-main strong{font-size:13px}.record-main p{font-size:11px}.record-meta{font-size:10px;gap:6px}.record-photos img{width:40px;height:45px}.inspection-empty{padding:34px 20px}.record-view-switch button{font-size:12px}.overview-grid{gap:10px}.overview-unit{padding:19px}.overview-unit h3{font-size:18px}.overview-unit p{font-size:11px}.empty-block{padding:36px 20px}.empty-block h3{font-size:18px}.empty-block p{font-size:12px}.empty-block .button{font-size:12px}.modal{max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px);border-radius:13px}.modal-body{padding:18px}.modal-head{padding:18px}.modal-head h2{font-size:19px}.modal-footer{gap:10px;align-items:center}.modal-footer .button{font-size:12px;min-height:38px}.modal-footer .form-help{display:none}.preset-section{padding:13px}.preset-section textarea{font-size:11px}.field input,.field select,.field textarea{font-size:13px}.welcome{background:#f4f6f1;padding:14px}.welcome-copy{padding:27px}.welcome-copy h1{font-size:28px}.welcome-copy p{font-size:12px}.welcome-eyebrow{margin-top:29px}.welcome-footnote{font-size:9px;margin-top:21px}.welcome-form-wrap{padding:28px}.welcome-form-wrap>p{font-size:11px}.workspace-footer{font-size:9px;line-height:1.7}.panel-head h2{font-size:14px}.unit-meta dt{font-size:10px}.unit-meta dd{font-size:12px}}
@media print{.main{margin:0!important}.topbar,.toolbar-menu,.inspection-layout,.compact-stats,.keyboard-hint,.record-view-switch{display:none!important}.content-wrap{padding:0}.page-heading h1{font-size:22px}.page-heading p{font-size:10px}.page-heading .eyebrow{font-size:8px}.panel{border-radius:0}.unit-meta dt{font-size:8px}.unit-meta dd{font-size:10px}.panel-head h2{font-size:12px}}

/* Record hierarchy and compact actions */
.inspection-record{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:14px;row-gap:4px}.inspection-record .record-main{grid-column:1;display:flex;align-items:center;gap:9px;min-width:0}.inspection-record .record-main strong{flex:1;display:block;min-width:0}.inspection-record .record-main .seq{flex-shrink:0}.inspection-record>.defect-detail{grid-column:1;margin:0;max-width:none;font-size:12px;line-height:1.65;color:#86927e}.inspection-record>.record-meta{grid-column:1;margin-top:5px}.inspection-record>.record-photos{grid-column:2;grid-row:1/span 3}.inspection-record.selected{border-color:#729e6b;background:#f3f8f0;box-shadow:inset 3px 0 #608953}.quick-save{flex-wrap:wrap}.quick-save>.button.primary{flex:1 1 170px}.quick-save>.text-button{font-size:11px}.quick-form>.record-photos{margin:-1px 0 15px}.quick-photo>span{font-size:10px;line-height:1.7;color:#8b9a80}.preset-help.error{color:#a64231}.quick-panel.inspection-empty{padding:50px 28px;text-align:center;background:#fff;border-style:solid}.quick-panel.inspection-empty h2{font-size:25px;color:#34553c;margin:3px 0 13px}.quick-panel.inspection-empty p{font-size:13px;line-height:1.95;color:#819476}.quick-panel.inspection-empty .button.primary{display:flex;width:max-content;margin:24px auto 17px;min-height:45px;font-size:13px}.quick-panel.inspection-empty>.text-button{display:block;margin:auto;font-size:12px}.compact-stats .preset-help{margin:0;font-size:10px;color:#929d87}
@media(max-width:1150px){.inspection-record>.record-photos img:not(:last-child){display:none}.inspection-record .record-main{gap:6px}}
@media(max-width:930px){.inspection-record>.record-photos img:not(:last-child){display:block}}
@media(max-width:600px){.quick-save>span{display:none}.inspection-record>.record-photos img:not(:last-child){display:none}.inspection-record>.defect-detail{font-size:11px}.inspection-record .record-main{flex-wrap:wrap;gap:5px}.record-main .status-badge{font-size:9px}.inspection-record .record-main strong{font-size:13px;min-width:90px}.compact-stats .preset-help{display:none}.quick-panel.inspection-empty{padding:35px 19px}.quick-panel.inspection-empty h2{font-size:22px}}

.tabs{overflow-x:auto;overflow-y:hidden}.quick-head{padding-top:18px;padding-bottom:15px}.quick-form{padding-top:18px;padding-bottom:18px}.quick-form .field{margin-bottom:14px}.quick-photo{padding-top:12px;padding-bottom:12px}.quick-photo-grid{margin-bottom:14px}.quick-options{margin-bottom:12px}.quick-save{margin-top:12px}.quick-form #quick-template-note{margin-bottom:12px}

/* Browser-only draft state is deliberately separate from D1 sync status. */
.draft-state{font-size:11px;color:#4f756b;margin:-10px 0 18px;line-height:1.6}.draft-state.error{color:#a04436}.sheet-draft-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0;font-size:12px}@media print{.draft-state,.sheet-draft-controls{display:none!important}}

/* Sticker-first field work and site/password login */
.sticker-entry{min-width:0;margin:0 0 18px;padding:14px;border:1px solid #cbded1;border-radius:10px;background:#f3f8f1}.sticker-entry legend{padding:0 5px;font-size:13px;font-weight:700;color:var(--accent)}.sticker-entry legend span{font-size:10px;font-weight:400;color:var(--muted);margin-left:7px}.sticker-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start}.sticker-input-row input{min-width:0;font-size:17px;font-weight:700;color:var(--ink);letter-spacing:.5px;min-height:43px}.sticker-input-row .button{min-height:43px;background:#fff;font-size:11px;padding:8px 11px}.sticker-count{font-size:11px;color:#3d6c4b;line-height:1.7;margin-top:8px}.sticker-warning{margin:8px 0 0;padding:9px 11px;border:1px solid #e8d5a5;border-radius:6px;background:#fff8e7;color:#8c6425;font-size:11px;line-height:1.7;overflow-wrap:anywhere}.sticker-entry small{display:block;font-size:10px;font-weight:400;color:#748777;line-height:1.7;margin-top:6px}.sticker-states{margin:10px 0 18px;min-width:0}.sticker-states>span{display:block;font-size:11px;color:var(--muted);margin-bottom:8px}.sticker-states>div{display:flex;flex-wrap:wrap;gap:6px}.sticker-state-button{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:7px;padding:6px 9px;background:#fff;font-size:11px}.sticker-state-button:hover{border-color:#6b9d7d;background:#f5f9f4}.sticker-state-button strong{font-size:11px;font-variant-numeric:tabular-nums}.board-card>.sticker-states{padding:8px 22px;margin:0;border-top:1px solid var(--line)}.inspection-record .seq,.board-title .seq{color:#2d7651;font-size:12px;font-weight:700;max-width:100%;overflow-wrap:anywhere}.record-main{flex-wrap:wrap}.inspection-record .record-main strong{overflow-wrap:anywhere}
.login-site-picker{position:relative}.login-site-options{position:absolute;top:calc(100% + 5px);left:0;right:0;margin:0;padding:5px;list-style:none;background:#fff;border:1px solid #cbdacf;border-radius:9px;box-shadow:0 12px 30px #203c3025;z-index:45;max-height:230px;overflow:auto}.login-site-option{padding:12px 11px;border-radius:6px;display:flex;gap:12px;align-items:center;justify-content:space-between;cursor:pointer;color:var(--ink);min-height:44px}.login-site-option.active,.login-site-option:hover{background:#eaf3e9}.login-site-name{font-size:13px;overflow-wrap:anywhere}.login-site-id{color:#8a9991;font-size:10px;font-family:monospace}.login-search-status{font-size:11px;color:var(--muted);line-height:1.7;margin:7px 0 12px}.login-site-selected{font-size:11px;color:#2e6c4e;background:#edf5eb;border-radius:6px;padding:7px 10px;margin-bottom:14px;overflow-wrap:anywhere}.field-optional{font-size:10px;font-weight:400;color:#8a988f}.login-role-help{font-size:11px;line-height:1.75;color:#7a8b7f;margin-top:-8px;margin-bottom:14px}.login-create-disclosure{margin-top:20px;padding-top:17px;border-top:1px solid var(--line)}.login-create-disclosure>summary{font-size:12px;font-weight:600;color:#41674f;cursor:pointer;padding:6px 0}.login-create-form{padding-top:15px}.password-management-form{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}.password-management-form h3{font-size:14px;margin-bottom:10px}.password-flags{font-size:11px;padding:10px 12px;border-radius:7px;background:#f0f6ef;color:#496c54;line-height:1.8}.welcome-form-wrap{min-width:0}.login-form .field,.login-create-form .field{margin-bottom:14px}.welcome-card{overflow:visible}.welcome-copy{border-radius:15px 0 0 15px}.welcome-form-wrap{border-radius:0 15px 15px 0;background:#fff}
@media(max-width:600px){.welcome-copy{border-radius:11px 11px 0 0}.welcome-form-wrap{border-radius:0 0 11px 11px}.sticker-entry{padding:12px}.sticker-input-row input{font-size:16px}.sticker-input-row .button{padding:8px;font-size:11px}.sticker-states>div{gap:5px}.sticker-state-button{padding:7px}.board-card>.sticker-states{padding:9px 15px}.login-site-options{max-height:200px}.login-site-search,.login-form input,.login-create-form input{font-size:16px!important}}
@media print{.sticker-states>span{font-size:8px}.sticker-state-button{border:0;padding:0 8px 0 0;font-size:8px;cursor:default}.sticker-state-button strong{font-size:8px}.board-card>.sticker-states{padding:7px 14px}.login-create-disclosure{display:none!important}}

@media print{.photo-empty .button,.photo-empty>span{display:none!important}}

/* Original downloads are separate from always-available D1 previews. */
.original-links{display:flex;flex-wrap:wrap;gap:8px 14px;margin:8px 0;font-size:11px;color:#718368}
.original-download{position:relative;z-index:5;pointer-events:auto;padding:2px 5px;white-space:nowrap}
.photo-footer .original-download{font-size:9px;background:#fff;border:1px solid #d6e0d0;border-radius:4px}
.local-storage-note{flex-wrap:wrap}.local-storage-note>span:nth-child(2){min-width:0;overflow-wrap:anywhere}
@media print{.original-links,.original-download{display:none!important}}

/* Photo board default: actual image lower-right quarter in both dimensions (1/16 area). */
.photo-viewport{--photo-height:210px;display:flex;align-items:center;justify-content:center;height:var(--photo-height);width:100%;background:#eef3f4}
.photo-grid.single .photo-viewport{--photo-height:280px}
.photo-visual{position:relative;width:min(100%,calc(var(--photo-height)*var(--photo-ratio,1.333333)));aspect-ratio:var(--photo-ratio,1.333333);container-type:size;overflow:hidden;flex:none;line-height:0}
.photo-frame .photo-visual>img,.photo-grid.single .photo-frame .photo-visual>img{display:block;width:100%;height:100%;min-height:0;max-height:none;object-fit:contain;background:transparent}
.photo-frame .photo-visual>.photo-overlay{inset:75% 0 0 75%;width:25%;height:25%;box-sizing:border-box;display:grid;grid-template-rows:repeat(7,minmax(0,1fr));font-size:8px;font-size:min(2cqw,2cqh,14px);line-height:1.12;overflow:hidden;border:1px solid rgba(255,255,255,.75);box-shadow:0 1px 4px #0002}
.photo-frame .photo-visual .photo-overlay-title,.photo-grid.single .photo-frame .photo-visual .photo-overlay-title{font-size:inherit;line-height:inherit;padding:0 min(1cqw,1cqh);display:block;align-content:center;min-height:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;letter-spacing:0}
.photo-frame .photo-visual .photo-overlay-row{display:flex;align-items:stretch;min-height:0;overflow:hidden}
.photo-frame .photo-visual .photo-overlay-row span:first-child{width:25%;padding:0;display:flex;align-items:center;justify-content:center;min-width:0}
.photo-frame .photo-visual .photo-overlay-row span:last-child{flex:1;min-width:0;align-content:center;padding:0 min(1cqw,1cqh);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.image-view .photo-viewport.photo-viewport-large{--photo-height:min(65vh,720px)}
@media(max-width:1100px){.photo-viewport{--photo-height:190px}}
@media(max-width:800px){.photo-viewport{--photo-height:260px}}
@media(max-width:600px){.photo-viewport{--photo-height:195px}}
@media print{.photo-viewport,.photo-grid.single .photo-viewport{--photo-height:235px}.photo-frame .photo-visual>.photo-overlay{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

/* Authenticated, workspace-specific source checklist. */
.site-checklist-panel{background:#f1f7f5;border:1px solid #c7dcd5;border-radius:10px;padding:12px;margin:8px 0 16px}.site-checklist-panel summary{font-weight:700;cursor:pointer;color:#123a46}.site-checklist-panel select{width:100%;max-width:100%;font-size:12px}.checklist-instruction{font-size:12px;line-height:1.65;overflow-wrap:anywhere}.checklist-instruction small{color:#566e76}@media print{.site-checklist-panel{display:none}}

.type-structure{border:1px solid #d3dfdd;border-radius:10px;padding:14px;margin:12px 0}.type-structure ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 24px;margin:12px 0;padding-left:24px;font-size:12px;line-height:1.5}.type-floorplan img{display:block;max-width:100%;height:auto;margin:12px auto}.type-floorplan small{display:block;color:#637b81;font-size:11px}.type-floorplan{font-size:12px}@media(max-width:560px){.type-structure ol{grid-template-columns:1fr}}

/* Source-confirmed four-row photo board. Originals remain immutable. */
.photo-frame .photo-visual>.photo-overlay[data-template="four-row"]{display:grid;grid-template-rows:repeat(4,minmax(0,1fr));gap:0;background:#fff!important;color:#000;border:1px solid #000;border-radius:0;box-shadow:none;padding:0;font-family:Arial,"Malgun Gothic",sans-serif;font-size:min(2.8cqw,4cqh);font-weight:400;line-height:1.1}
.photo-frame .photo-visual>.photo-overlay[data-template="four-row"] .photo-overlay-row{display:grid;grid-template-columns:26% minmax(0,1fr);min-height:0;margin:0;padding:0;border-bottom:1px solid #000;gap:0;background:#fff;color:#000}
.photo-frame .photo-visual>.photo-overlay[data-template="four-row"] .photo-overlay-row:last-child{border-bottom:0}
.photo-frame .photo-visual>.photo-overlay[data-template="four-row"] .photo-overlay-row>span{display:flex;align-items:center;justify-content:center;text-align:center;min-width:0;width:auto;flex:none;overflow:hidden;padding:0 2px;color:#000;white-space:normal;word-break:keep-all;font-weight:400;font-size:inherit;line-height:1.1;background:#fff}
.photo-frame .photo-visual>.photo-overlay[data-template="four-row"] .photo-overlay-row>span:first-child{border-right:1px solid #000;padding:0}
.photo-frame .photo-visual>.photo-overlay[data-template="four-row"] .photo-overlay-row>span.long-board-value{font-size:min(2cqw,3cqh);word-break:break-word}

/* Unit photo delivery never sends mail without a separate configured transport. */
.share-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.share-actions a.button{text-decoration:none}.share-mail{border-top:1px solid #dce5e8;margin-top:20px;padding-top:12px}.share-notice{padding:12px 14px;border-radius:8px;background:#fff6e8;color:#72552a;font-size:13px;line-height:1.65}.share-mail h3{margin:6px 0 16px}.share-mail textarea{resize:vertical}.tabs-row>.button{white-space:nowrap;font-size:12px}@media(max-width:720px){.tabs-row{flex-wrap:wrap}.tabs-row>.button{margin-left:auto}.share-actions .button{flex:1 1 auto}}

/* Camera and gallery remain distinct native file sources. */
.photo-picker{position:relative;display:flex;flex-direction:column;gap:10px;min-width:0;padding:16px;border:1px solid #b9cdbc;border-radius:12px;background:#f7faf5;color:#345844;margin-bottom:14px}.photo-picker>strong{font-size:14px;line-height:1.5}.photo-picker-help{font-size:12px;line-height:1.6;margin:0;color:#637963}.photo-camera{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:68px;padding:15px 12px;border:1px solid #315c3f;border-radius:10px;background:#315c3f;color:#fff;font-family:inherit;font-size:18px;font-weight:700;line-height:1.4;cursor:pointer;touch-action:manipulation}.photo-camera:hover{background:#254e33}.photo-camera svg{flex-shrink:0}.photo-gallery{position:relative;display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 8px;border:1px solid #a8bea7;border-radius:8px;background:#fff;color:#36583a;font-size:14px;font-weight:600;cursor:pointer;overflow:hidden}.photo-gallery input[type=file],.quick-form .photo-gallery input[type=file]{position:absolute;inset:0;width:100%;height:100%;min-height:48px;padding:0;margin:0;opacity:0;cursor:pointer}.photo-camera-input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}.photo-camera:focus-visible,.photo-gallery:focus-within,.photo-selection button:focus-visible{outline:3px solid #1d7354;outline-offset:3px}.photo-selection{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 8px;min-width:0}.photo-selection p{margin:0;font-size:12px;line-height:1.6}.photo-selection .text-button{min-height:44px;padding:8px 2px;font-size:12px}.photo-picker-error{margin:0;color:#a32f23;font-size:13px;line-height:1.5}.photo-picker-error:empty{display:none}.quick-photo-grid>.photo-picker{margin-bottom:0}.photo-camera:disabled{opacity:.6;cursor:wait}.photo-download-help{font-size:11px;line-height:1.6;color:#677c68;margin:0}.photo-download-help button{display:block;min-height:44px;font-size:12px}.board-download-panel{margin:14px 0;padding:14px 16px;border:1px solid #b7c9b5;border-radius:10px;background:#f4f8ef;color:#36553b}.board-download-panel>summary{min-height:44px;cursor:pointer;font-size:14px;font-weight:700;line-height:1.6;padding:10px 0}.board-download-panel>p{font-size:12px;line-height:1.7;margin:8px 0}.board-download-item{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 0;border-top:1px solid #dce5d6;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.board-download-item img{width:72px;height:72px;object-fit:cover;border-radius:6px}.board-download-item .button,.board-download-item button{min-height:44px;white-space:normal}.board-download-panel :focus-visible{outline:3px solid #1d7354;outline-offset:3px}@media(max-width:600px){.quick-photo-grid{grid-template-columns:1fr}.photo-picker{padding:14px}.photo-camera{min-height:68px}.photo-gallery{min-height:48px}.board-download-panel{padding:10px 12px}.board-download-item{gap:8px}.board-download-item button{flex:1 1 auto}}

/* Phone layout: constrain the content, not the document. Keep print/photo-board geometry intact. */
@media screen and (max-width:600px) {
  .app-shell,.main,.content-wrap,.tab-content,.inspection-layout,.quick-panel,
  .quick-form,.inspection-feed,.panel,.board-card,.board-stage,.welcome-card,
  .welcome-form-wrap,.field,.preset-fields,.site-checklist-panel {
    min-width:0;
    max-width:100%;
  }
  .content-wrap { padding:20px 12px max(24px,env(safe-area-inset-bottom)); }
  .sidebar {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:10px;
    padding:14px max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left));
  }
  .brand { min-width:0; }
  .brand-mark { flex-shrink:0; }
  .workspace-label { float:none;max-width:none;min-width:0;align-self:center; }
  .workspace-label strong,.sidebar-meta,.unit-item strong,.unit-item small { overflow-wrap:anywhere; }
  .unit-search,.unit-list { grid-column:1/-1;min-width:0;width:100%; }
  .unit-search { padding-top:0; }
  .unit-search input { height:auto; }
  .unit-list {
    margin:0;
    max-width:100%;
    max-height:96px;
    overflow:auto;
    overscroll-behavior-inline:contain;
    padding:3px 2px;
  }
  .unit-item { max-width:260px;min-height:48px;margin-bottom:0; }
  .unit-item-left { min-width:0; }
  .unit-item-left>span:last-child { min-width:0; }
  .topbar { height:auto;min-height:60px;flex-wrap:wrap;gap:6px 10px;padding:6px 12px; }
  .breadcrumb { flex:1 1 120px;min-width:0;flex-wrap:wrap;font-size:12px; }
  .breadcrumb strong { overflow-wrap:anywhere; }
  .topbar-right { min-width:0;max-width:100%;flex-wrap:wrap;justify-content:flex-end;gap:8px; }
  .sync-state { min-width:0;white-space:normal;font-size:11px;overflow-wrap:anywhere; }
  .toolbar-menu>summary { display:flex;align-items:center;padding-right:30px; }
  .toolbar-menu>summary:after { top:17px; }
  .toolbar-menu[open]>summary:after { top:20px; }
  .toolbar-menu-panel {
    width:min(300px,calc(100vw - 24px));
    max-height:calc(100vh - 140px);
    max-height:calc(100dvh - 140px - env(safe-area-inset-bottom));
    overscroll-behavior:contain;
  }

  /* iOS zoom prevention also covers filters, preset textareas and file inputs. */
  input,select,textarea { min-width:0;max-width:100%;font-size:16px!important; }
  input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not(.photo-camera-input),
  select,textarea { min-height:44px; }
  .button,.button.small,.board-head .button,.stage-label .button,
  .record-view-switch button,.text-button,.row-actions button,
  .toolbar-menu>summary,.toolbar-menu-panel>button,.sticker-state-button,
  .quick-options>summary,.login-create-disclosure>summary,.site-checklist-panel>summary {
    min-height:44px;
    min-width:44px;
    max-width:100%;
    font-size:13px;
  }
  .button,.text-button,.toolbar-menu-panel>button,.sticker-state-button {
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .text-button { padding:8px 4px; }
  .icon-button { width:44px;height:44px;flex:0 0 44px; }
  .existing-photo .photo-delete { min-width:44px;min-height:44px;font-size:12px; }
  .photo-camera { min-height:68px; }
  .photo-gallery { min-height:48px; }
  .photo-footer .original-download { display:inline-flex;align-items:center;min-height:44px;font-size:12px; }
  .original-download { white-space:normal;overflow-wrap:anywhere; }

  .tabs-row { min-width:0;flex-wrap:wrap;gap:8px; }
  .tabs { flex:1 1 100%;min-width:0;max-width:100%;gap:16px;overflow-x:auto;overscroll-behavior-inline:contain; }
  .tab { flex:0 0 auto;min-width:44px;min-height:44px;padding:12px 6px;font-size:13px; }
  .tabs-row>.button { max-width:100%;white-space:normal; }
  .record-view-switch { max-width:100%;flex-wrap:wrap; }
  .field-row,.field-row.three,.quick-form .field-row,.quick-photo-grid,
  .photo-grid,.photo-grid.single,.board-columns,.overview-grid,.criteria-documents,.unit-meta {
    grid-template-columns:minmax(0,1fr);
  }
  .quick-head,.quick-form { padding:16px; }
  .quick-head,.feed-head,.board-head,.board-toolbar,.panel-head,.section-toolbar,
  .table-foot,.stage-label,.photo-footer,.panel-actions { flex-wrap:wrap; }
  .quick-head>div,.feed-head>div,.board-head>div,.panel-head>div,
  .board-title,.board-caption,.board-foot,.record-main,.record-meta,
  .photo-selection,.board-download-item,.sheet-draft-controls { min-width:0;max-width:100%;overflow-wrap:anywhere; }
  .quick-head .text-button { white-space:normal; }
  .filters { width:100%;min-width:0; }
  .filters select,.filters input,.inspection-feed .filters input { width:100%;max-width:100%;min-height:44px; }
  .filtered-count { white-space:normal; }
  .quick-save { align-items:stretch;gap:8px; }
  .quick-save>.button.primary { flex-basis:100%; }
  .quick-save>span,.quick-save small { display:block;white-space:normal;font-size:12px; }
  .quick-panel.inspection-empty .button.primary { width:100%; }
  .quick-form>.record-photos { flex-wrap:wrap;max-width:100%; }
  .inspection-record { grid-template-columns:minmax(0,1fr);gap:8px; }
  .inspection-record>.record-photos { grid-column:1;grid-row:auto;flex-wrap:wrap; }
  .inspection-record>.record-photos img:not(:last-child) { display:block; }
  .record-photos img { flex-shrink:0;width:52px;height:52px; }
  .existing-photos { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .existing-photo { min-width:0; }
  .existing-photo small { overflow-wrap:anywhere;font-size:11px; }
  .table-wrap { min-width:0;max-width:100%;overflow:auto;overscroll-behavior-inline:contain; }
  .sheets-host { min-width:0;max-width:100%; }
  .sheets-loading { padding:32px 16px;overflow-wrap:anywhere; }
  .board-stage+.board-stage { border-left:0;border-top:1px solid #e7edef; }

  .field,.quick-form .field { font-size:13px; }
  .field small,.field-optional,.form-help,.preset-help,.quick-form .candidate-note,
  .quick-form #quick-template-note,.draft-state,.modal-note,.checklist-instruction,
  .sticker-entry small,.sticker-entry legend span,.sticker-count,.sticker-warning,
  .photo-picker-help,.photo-selection p,.photo-download-help,.login-role-help,
  .login-search-status,.privacy-note p,.panel-head p,.page-heading p,.board-caption {
    font-size:12px;
    line-height:1.7;
    overflow-wrap:anywhere;
  }
  .compact-stats .preset-help { display:block;font-size:12px; }
  .inspection-record>.defect-detail,.record-meta,.photo-footer,.board-foot { font-size:12px; }
  .stage-label strong,.sticker-states>span { font-size:13px; }
  .sticker-input-row { grid-template-columns:minmax(0,1fr); }
  .sticker-input-row .button { min-height:44px;font-size:13px; }
  .sticker-entry legend { max-width:100%;overflow-wrap:anywhere; }
  .room-tag { max-width:100%;white-space:normal;overflow-wrap:anywhere; }

  /* The header stays reachable while the entire form, including its footer, scrolls. */
  .modal,.modal.wide {
    width:calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right));
    max-width:calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right));
    max-height:calc(100vh - 16px);
    max-height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    margin:auto;
    overflow:hidden;
  }
  .modal[open] { display:flex;flex-direction:column; }
  .modal-head { flex:0 0 auto;gap:12px;padding:12px 16px; }
  .modal-head>div { min-width:0;overflow-wrap:anywhere; }
  .modal-body {
    min-height:0;
    min-width:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    padding:16px 16px max(16px,env(safe-area-inset-bottom));
    scroll-padding-block:16px;
  }
  .modal-body form { min-width:0; }
  .modal-footer { flex-wrap:wrap;align-items:stretch;gap:12px; }
  .modal-footer .form-help { display:block;flex:1 1 100%;margin:0; }
  .modal-footer-right { flex:1 1 100%;min-width:0;max-width:100%;flex-wrap:wrap;gap:8px; }
  .modal-footer .button { min-height:44px;max-width:100%;font-size:13px;white-space:normal; }
  .modal-footer-right>.button { flex:1 1 120px; }
  .image-view p,.modal-note,.share-notice { overflow-wrap:anywhere; }
  .welcome { min-height:100dvh;padding-bottom:max(16px,env(safe-area-inset-bottom)); }
  .welcome-copy,.welcome-form-wrap { padding:24px 20px; }
  .toasts { left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));max-width:calc(100vw - 24px); }
  .toast { min-width:0;max-width:100%;overflow-wrap:anywhere; }
}


/* Saved defect-title suggestions: touch-friendly, inline, no forced focus. */
.title-suggestions{margin:-8px 0 16px;border:1px solid #b8cbb5;border-radius:9px;background:#fff;overflow:hidden;min-width:0}
.title-suggestions>p{margin:0;padding:9px 12px;background:#f1f6ed;color:#60745b;font-size:11px;line-height:1.5}
.title-suggestions [role=option]{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:46px;padding:10px 12px;border:0;border-top:1px solid #e7eee2;background:#fff;text-align:left;color:#304e35;font:inherit;font-size:14px;line-height:1.5;touch-action:manipulation}
.title-suggestions [role=option]>span{min-width:0;overflow-wrap:anywhere;white-space:normal}.title-suggestions [role=option]>small{flex-shrink:0;font-size:10px;color:#819178}
.title-suggestions [role=option]:hover,.title-suggestions [aria-selected=true]{background:#eaf3e4;color:#24482a}
.title-suggestions [role=option]:focus-visible{outline:2px solid #476c42;outline-offset:-2px}

/* Exports are needed once per unit, so they sit quietly after the records. */
.unit-finish{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:28px 0 8px;padding:18px 0 0;border-top:1px solid #e3e9e1}
.unit-finish h2{font-size:14px;letter-spacing:-.2px;color:#3b5443}.unit-finish p{margin-top:4px;font-size:12px;color:#6f7f72}
.unit-finish-actions{display:flex;gap:8px;flex:0 1 420px;min-width:0}.unit-finish-actions>.button{flex:1 1 0;min-width:0;min-height:44px;padding:10px 12px;font-size:13px;white-space:normal;word-break:keep-all}.unit-finish-actions>.button[hidden]{display:none}
@media screen and (max-width:600px){.unit-finish{display:block}.unit-finish-actions{margin-top:12px}}
.toolbar-menu-panel>button.menu-danger{color:#b3261e}.toolbar-menu-panel>button.menu-danger[hidden]{display:none}.menu-danger-heading{color:#b3261e}
/* Captured-photo preview: natural aspect ratio; several photos scroll sideways, each removable. */
.photo-preview{display:flex;align-items:flex-start;gap:8px;min-width:0;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}.photo-preview:empty{display:none}
.photo-preview figure{position:relative;flex:0 0 100%;margin:0;scroll-snap-align:start}.photo-preview figure:not(:only-child){flex-basis:84%}
.photo-preview img{display:block;width:100%;height:auto;border-radius:8px;border:1px solid #c9d8c6;background:#fff}
.photo-preview figcaption{margin-top:5px;font-size:12px;color:#5f705f}
.photo-remove{position:absolute;top:6px;right:6px;width:44px;height:44px;border:0;border-radius:50%;background:#1d2b23cc;color:#fff;font-size:24px;line-height:1;cursor:pointer;touch-action:manipulation}
.photo-remove:focus-visible{outline:2px solid #fff;outline-offset:-4px}
@media screen and (max-width:600px){.content-wrap{overflow-x:clip}#quick-form .photo-preview{width:100vw;margin-inline:calc(50% - 50vw);padding-inline:0}#quick-form .photo-preview img{border-radius:0;border-inline:0}#quick-form .photo-preview figcaption{padding-inline:16px}}
/* Two-step checklist: surface first, then that surface's items. */
.surface-choice{display:flex;gap:6px;margin:0 0 12px}.surface-button{flex:1 1 0;min-height:44px;border:1px solid #cddacb;border-radius:9px;background:#fff;color:#3f5a46;font:inherit;font-size:14px;font-weight:600;cursor:pointer;touch-action:manipulation}
.surface-button.active{background:#24533f;border-color:#24533f;color:#fff}.surface-button:focus-visible{outline:2px solid #24533f;outline-offset:2px}
/* Optional fields stay collapsed and clearly skippable. */
.quick-options>summary>span{margin-left:6px;font-weight:400;color:#8a9886}
/* Count chips filter the record list. */
.compact-stats>.compact-stat{border:1px solid transparent;border-radius:999px;background:transparent;padding:6px 12px;min-height:36px;font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}
.compact-stats>.compact-stat.active{background:#eaf3e6;border-color:#bcd1b6;color:#2c4b33}
.compact-stats>.compact-stat:focus-visible{outline:2px solid #476c42;outline-offset:1px}
.record-main .record-room{color:#5f7a62;font-weight:500;margin-right:2px}
/* Keyboard hints are for physical keyboards only. */
@media (hover:none),(pointer:coarse){.keyboard-hint{display:none!important}}
/* Single-column layout: the save action stays reachable at the bottom of the screen. */
@media (max-width:930px){.quick-panel{overflow:clip}#quick-form .quick-save{position:sticky;bottom:0;z-index:6;margin-inline:-18px;padding:10px 18px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e3eae0;box-shadow:0 -6px 14px #183d2512;flex-wrap:wrap}#quick-form .quick-save .keyboard-hint{display:none}}

/* 작성 중 자료 확인 (saved-defect edit while drafting) */
.quick-discard-question{margin:0 0 10px;font-size:16px;line-height:1.6;color:#1b2a24}
.quick-discard-question strong{display:block;margin-bottom:2px}

/* 전송 내역: 번호 충돌 시 서버 기록과 나란히 확인 */
.queue-compare{margin:12px 0 8px;padding:12px;border:1px solid #e3d9c8;border-radius:12px;background:#fbf8f2}
.queue-compare-title{margin:0 0 4px;font-weight:700}
.queue-compare img{display:block;max-width:100%;max-height:260px;border-radius:10px;margin-top:8px}
