:root{font-family:Inter,-apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN','Yu Gothic',sans-serif;color:#213a43;background:#f3f6f7;font-size:13px;--teal:#087c80;--border:#e2e9eb}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;background:white;color:#36515a;border:1px solid #dbe4e6;border-radius:7px;padding:10px 13px}button:hover{background:#eaf4f3}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--teal);color:white;border-color:var(--teal)}.primary:hover{background:#096367}input,select,textarea{width:100%;border:1px solid #dbe4e6;background:#fff;border-radius:6px;padding:10px;color:#29464e}label{display:block;font-size:12px;color:#637a81;margin:14px 0}label input,label select,label textarea{margin-top:7px}h1,h2,h3,p{margin-top:0}h1{font-size:18px;margin:5px 0 0}h1 span{font-size:11px;color:#8a9ca1;font-weight:400;margin-left:12px}h2{font-size:24px;letter-spacing:-.6px;margin-bottom:9px}h3{font-size:13px;margin:0}.muted{color:#819197;font-size:12px;line-height:1.8}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:700;color:#7c969c}.rail{position:fixed;inset:0 auto 0 0;width:96px;background:#12343c;color:#c2d3d6;display:flex;flex-direction:column;align-items:center}.brand{font-family:Georgia;font-size:32px;display:flex;align-items:center;gap:5px;margin:27px 0 35px;color:#fff}.brand span{font-family:sans-serif;font-size:7px;letter-spacing:1px;line-height:1.7}.nav{border:0;background:none;color:#88a6ae;width:78px;margin:5px 0;font-size:23px;padding:15px 4px}.nav small{display:block;font-size:10px;margin-top:9px}.nav.active{background:#254953;color:#e5f8f5}.rail-bottom{margin-top:auto;font-size:9px;line-height:2.4;letter-spacing:1px;padding-bottom:22px}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#55bb9e;margin-right:6px}.app{margin-left:96px}header{height:89px;background:#fff;border-bottom:1px solid var(--border);padding:21px 32px;display:flex;align-items:center;justify-content:space-between}.header-right{display:flex;gap:20px;align-items:center}.badge{font-size:10px;color:#7c8d92;padding:7px 10px;border:1px solid var(--border);border-radius:4px}.avatar{display:grid;place-items:center;background:#e6efee;border-radius:50%;width:34px;height:34px}.topline{display:flex;justify-content:space-between;align-items:center;padding:27px 30px 18px;gap:20px}.topline p{margin-bottom:9px}.actions{display:flex;gap:8px}.workspace{display:grid;grid-template-columns:270px minmax(340px,1fr) 280px;height:calc(100vh - 275px);min-height:560px;margin:0 28px;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:white}.panel{padding:20px 17px;overflow:auto}.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.left{border-right:1px solid var(--border);display:flex;flex-direction:column}.left label{margin-top:0}.divider{height:1px;background:var(--border);margin:15px 0 22px;flex-shrink:0}.counter{background:#edf4f3;padding:3px 7px;border-radius:5px;color:var(--teal);font-size:10px}.text{padding:0;border:0;font-size:10px;color:var(--teal)}.filters{display:flex;gap:5px;margin:9px 0}.filters select{width:53%}.filters input{width:47%;font-size:10px;padding:6px}.records{overflow:auto;flex:1}.record{padding:15px 9px;border-bottom:1px solid var(--border);cursor:pointer;border-radius:5px}.record:hover,.record.active{background:#f0f7f6}.record h4{font-size:12px;margin:10px 0 7px}.record p{font-size:10px;color:#819499;margin:0}.tag{font-size:9px;padding:3px 6px;background:#fdf0e2;color:#b87b2e;border-radius:4px}.tag.done{background:#e8f4ef;color:#3c8f74}.tag.high{background:#fbe9e6;color:#bd5e53}.left-footer{font-size:9px;color:#96a5aa;padding-top:18px}.viewer{position:relative;background:#edf3f4;overflow:hidden}.viewer-top{position:absolute;z-index:2;left:17px;right:17px;top:16px;display:flex;justify-content:space-between;align-items:center}.viewer-top b{font-size:9px;letter-spacing:1.4px}.viewer-top small{display:block;font-size:10px;color:#84979c;margin-top:5px}.viewer-top button{font-size:10px;padding:7px 10px;background:#ffffffcc}#canvas{height:100%;width:100%}#canvas canvas{display:block}.tools{position:absolute;top:85px;left:50%;transform:translateX(-50%);display:flex;gap:3px;padding:4px;border:1px solid #dce6e8;background:#fffffff2;box-shadow:0 3px 12px #243c4710;border-radius:8px;white-space:nowrap}.tools button{border:0;font-size:11px;padding:8px 10px;background:none}.tools .selected{background:#dcefed;color:#087c80}.viewer-bottom{position:absolute;bottom:0;left:0;right:0;border-top:1px solid #dce5e7;background:#f6f9fae8;padding:13px;display:flex;justify-content:space-between;font-size:9px;color:#789096;gap:10px}.right{border-left:1px solid var(--border)}.empty{color:#8d9fa4;line-height:2;text-align:center;padding:36px 8px;font-size:12px}.overview{padding:20px 4px}.overview .big{font-family:Georgia;font-size:44px;color:#22716e;margin:0}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.stat{padding:15px 10px;background:#f5f8f8;border-radius:7px}.stat b{display:block;font-size:22px;margin-bottom:5px}.stat span{font-size:10px;color:#809399}.info-note{font-size:11px;line-height:1.9;color:#84969c;background:#f5f8f8;padding:13px;border-radius:7px;white-space:pre-wrap}.detail-title{font-size:18px;line-height:1.6;margin:18px 0}.detail-list{display:grid;grid-template-columns:65px 1fr;gap:14px;font-size:11px;margin:20px 0}.detail-list dt{color:#8b9ba0}.detail-list dd{margin:0}.photos{display:flex;gap:8px;flex-wrap:wrap}.photos img{width:100%;border-radius:6px;object-fit:cover}.photos figure{margin:0;width:95px}.photos figure img{height:75px}.photos figure button{font-size:10px;padding:3px;width:100%}.right .photos img{max-height:220px}.detail-actions{display:flex;gap:6px;margin-top:20px}.danger{color:#b05a52}footer{padding:18px 30px;font-size:9px;letter-spacing:1.2px;color:#7f959b;display:flex;gap:22px}footer span:last-child{margin-left:auto}#loading{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#fffef0;padding:15px;border-radius:7px;font-size:12px;max-width:85%;line-height:1.7}#measure-box{position:absolute;bottom:55px;left:20px;right:20px;background:#fffffff0;padding:16px;border:1px solid #d3e3e3;border-radius:8px}#measure-result{font-size:20px;color:#087c80}#measure-note{font-size:10px;color:#7c9198;margin:8px 0}#measure-box button{font-size:10px;padding:7px}dialog{border:1px solid var(--border);border-radius:12px;width:570px;max-width:95vw;max-height:90vh;padding:25px;color:#29454e;box-shadow:0 25px 90px #18323f30}dialog::backdrop{background:#13343b70;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.dialog-heading h2{font-size:20px}.dialog-heading .close{border:0;font-size:23px;padding:0 5px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#173f46;color:white;padding:13px 22px;border-radius:8px;z-index:20;display:none;max-width:85vw;white-space:pre-wrap}.measurement{padding:12px 0;border-bottom:1px solid var(--border);font-size:11px}.measurement b{color:#087c80}.measurement button{float:right;font-size:9px;padding:3px}.sr{color:#6c858d;font-size:11px;line-height:1.8}@media(max-width:1200px){.workspace{grid-template-columns:235px minmax(300px,1fr) 235px;margin:0 16px}.topline{padding:22px 18px}.actions button{font-size:11px;padding:9px}.rail{width:75px}.app{margin-left:75px}.brand{font-size:25px}.brand span{font-size:6px}}@media(max-width:950px){.workspace{grid-template-columns:220px 1fr;height:auto;min-height:620px}.viewer{min-height:620px}.right{grid-column:1/-1;border-top:1px solid var(--border)}.topline{align-items:flex-start;flex-direction:column}.header-right .badge{display:none}footer span{display:none}}@media(max-width:600px){.rail{width:55px}.app{margin-left:55px}.brand span{display:none}.nav{width:47px}.nav small{font-size:8px}.workspace{display:flex;flex-direction:column;margin:0 8px}.left{max-height:380px}.viewer{min-height:480px}.topline h2{font-size:21px}.actions{flex-wrap:wrap}header{padding:18px}.viewer-bottom{font-size:8px}.tools button{padding:7px}.grid2{grid-template-columns:1fr}}

/* Viewer layout switches retain the current camera and model. */
.view-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.view-actions button[aria-pressed="true"]{background:#dcefed;color:#087c80;border-color:#bfdcd7}.viewer-top{gap:10px;align-items:flex-start}.viewer-top>span{min-width:80px}.tools{max-width:calc(100% - 20px);overflow-x:auto}.tools button{flex-shrink:0}#canvas canvas:focus-visible{outline:2px solid #087c80;outline-offset:-3px}.workspace.hide-left>.left,.workspace.hide-right>.right{display:none}.workspace.hide-left{grid-template-columns:minmax(340px,1fr) 280px}.workspace.hide-right{grid-template-columns:270px minmax(340px,1fr)}.workspace.hide-left.hide-right{grid-template-columns:minmax(0,1fr)}
body.focus-3d{overflow:hidden}body.focus-3d .rail,body.focus-3d header,body.focus-3d .topline,body.focus-3d footer{display:none}body.focus-3d .app{margin:0}body.focus-3d .workspace{position:fixed;inset:0;margin:0;height:100dvh;min-height:0;border:0;border-radius:0;grid-template-columns:1fr}body.focus-3d .workspace>.panel{display:none}body.focus-3d .viewer{min-height:0;height:100%}body.focus-3d #toggle-left,body.focus-3d #toggle-right{display:none}body.focus-3d .tools{top:65px}
@media(max-width:1200px){.workspace.hide-left{grid-template-columns:minmax(300px,1fr) 235px}.workspace.hide-right{grid-template-columns:235px minmax(300px,1fr)}}
@media(max-width:950px){.workspace.hide-left{grid-template-columns:minmax(0,1fr)}.workspace.hide-right{grid-template-columns:220px minmax(0,1fr)}.workspace.hide-left.hide-right{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.viewer-top{left:10px;right:10px}.viewer-top>span{display:none}.view-actions{width:100%;justify-content:center}.tools{top:65px}.viewer-bottom{flex-wrap:wrap}}

.view-actions #quality{width:auto;max-width:165px;font-size:10px;padding:6px;background:#ffffffdd}.photo-heading{margin:22px 0 12px}.photo-open{padding:0;overflow:hidden;width:100%;text-align:left}.photo-open img{display:block;width:100%;max-height:220px;object-fit:contain}.photo-open span{display:block;font-size:10px;padding:8px;color:#087c80}#photo-dialog{width:1100px;max-width:96vw}#full-photo{display:block;max-width:100%;max-height:74vh;object-fit:contain;margin:10px auto 18px}#download-photo{color:#087c80;font-size:12px}body.focus-3d.show-pin-detail .workspace>.right{display:block;position:absolute;right:14px;top:115px;bottom:52px;width:300px;z-index:5;background:#fffffff5;border:1px solid #dce6e8;border-radius:9px;box-shadow:0 10px 35px #18323f20}body.focus-3d.show-pin-detail .right .panel-heading{position:sticky;top:-20px;background:white;padding:12px 0;z-index:1}@media(max-width:600px){.view-actions{gap:3px}.view-actions button{padding:6px}.view-actions #quality{max-width:130px}body.focus-3d.show-pin-detail .workspace>.right{width:min(300px,90vw)}}

.wide-dialog{width:1000px}.button-link{display:inline-block;padding:10px 13px;border:1px solid #dbe4e6;border-radius:7px;text-decoration:none;color:#087c80}#vessel-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-top:20px}.vessel-card{border:1px solid #dbe4e6;border-radius:8px;padding:15px}.vessel-card>img{width:100%;height:140px;object-fit:cover;border-radius:5px}.vessel-card h3{margin-top:12px}.vessel-card p,.history-row p,.audit-row p{font-size:11px;color:#789096;line-height:1.8}.vessel-placeholder{height:100px;display:grid;place-items:center;background:#e8f2f1;color:#83aaa7;letter-spacing:3px}.report-select{width:15px;height:15px;margin-right:7px;padding:0;vertical-align:middle}.history-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid #e2e9eb;padding:15px 0}.history-row>div{flex:1}.history-row .report-select{flex-shrink:0}.audit-row{padding:15px 0;border-bottom:1px solid #e2e9eb}.header-right{gap:12px}.actions{flex-wrap:wrap}.topline{flex-wrap:wrap}#selection-count{font-size:9px;margin:3px 0 7px}.history-row button{flex-shrink:0}

/* Field-friendly controls, visible focus, readable secondary text. */
button,input,select{min-height:44px}button:disabled{cursor:not-allowed}.text{min-width:44px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible,a:focus-visible{outline:3px solid #005fcc;outline-offset:3px}.muted,.info-note,.record p,.viewer-bottom,.viewer-top small,.sr,.left-footer{color:#506970}.tag{color:#805019}.tag.done{color:#22654f}.tag.high{color:#963d34}.compact-label{margin:0 0 5px}.tools button,.viewer-top button,#measure-box button{min-height:44px}.tools{top:125px}.viewer-top{flex-wrap:wrap}.view-actions{max-width:100%}.view-actions select{width:auto;max-width:155px}.filters select{width:50%;min-width:0}.filters input{min-width:0}#filter-summary{font-size:11px;color:#36565d;margin:10px 0}#measure-context{font-size:11px;color:#36565d;line-height:1.6}#load-state{position:absolute;top:45%;left:10%;right:10%;padding:20px;background:white;border:1px solid #b45136;border-radius:8px;z-index:3}#retry-model{position:absolute;top:62%;left:25%;z-index:4}.measurement{display:flow-root}.measurement button{float:none;margin:4px;padding:7px}.report-select{min-height:24px;width:24px;height:24px}#measure-box>div{display:flex;gap:5px;flex-wrap:wrap}.tools{z-index:2}body.focus-3d .tools{top:125px}.viewer-bottom{flex-wrap:wrap}#save-status{letter-spacing:0;font-size:11px}.record.active{box-shadow:inset 3px 0 #087c80}.dialog-heading .close{min-width:44px;min-height:44px}
@media(max-width:600px){.viewer{min-height:650px}.tools,body.focus-3d .tools{top:165px}.view-actions{justify-content:flex-start}.view-actions select{max-width:145px}.viewer-bottom{font-size:10px}#measure-box{left:8px;right:8px;bottom:82px;padding:10px}#measure-result{font-size:18px}.panel{padding:16px}body.focus-3d.show-pin-detail .workspace>.right{top:220px}.header-right{gap:4px}.avatar{display:none}}

#report-frame{width:100%;height:72vh;border:1px solid #e2e9eb;border-radius:6px;background:white}
/* Keep tool rows below the wrapping view controls at every viewport width. */
#canvas{position:absolute;inset:0}.viewer-top{position:relative;left:auto;right:auto;top:auto;padding:16px 17px 0}.tools,body.focus-3d .tools{position:relative;top:auto;left:auto;transform:none;width:max-content;max-width:calc(100% - 20px);margin:12px auto 0}.viewer-top>span{flex-shrink:0}.view-actions{flex:1}.viewer-top small{max-width:160px;overflow-wrap:anywhere}
@media(max-width:600px){.viewer-top{padding:12px 10px 0}.view-actions{justify-content:center}.tools{margin-top:10px}.left{max-height:560px}.records{min-height:90px}}
.left .records{min-height:150px;flex:1 0 150px}

#source-panel[hidden]{display:none}#source-panel{position:absolute;left:16px;bottom:53px;width:285px;max-width:calc(100% - 32px);max-height:55%;overflow:auto;z-index:4;padding:13px;background:#fffffff5;border:1px solid #d9e5e7;border-radius:9px;box-shadow:0 5px 25px #18323f18}.source-heading{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:11px}.source-heading button{font-size:9px;padding:5px}.source-caption{font-size:10px;color:#728b94;line-height:1.7;margin:8px 0;overflow-wrap:anywhere}.source-image{position:relative;display:block;width:100%;padding:0;border:0;border-radius:3px;background:#e7eded;overflow:hidden}.source-image img{width:100%;height:auto;display:block}.source-cross{position:absolute;width:16px;height:16px;transform:translate(-50%,-50%);border:2px solid #ff3d32;border-radius:50%;box-shadow:0 0 0 2px #fff;pointer-events:none}.source-cross:before,.source-cross:after{content:'';position:absolute;background:#ff3d32;left:50%;top:50%;transform:translate(-50%,-50%)}.source-cross:before{width:22px;height:2px}.source-cross:after{height:22px;width:2px}.source-switch{display:flex;align-items:center;gap:8px}.source-switch input{width:16px;margin:0}#record-source-preview .source-image{max-width:250px}#source-full{max-width:700px;margin:0 auto}.source-large{max-height:none}#source-dialog{width:850px}#toggle-source{white-space:nowrap}@media(max-width:600px){#source-panel{max-height:40%;width:210px}}

.viewer:has(#measure-box:not([hidden])) #source-panel{bottom:220px;max-height:calc(100% - 360px)}

.model-manage-row{display:flex;align-items:center;gap:8px;padding:14px 0;border-bottom:1px solid #e2e9eb}.model-manage-row>div{flex:1;min-width:0}.model-manage-row b{overflow-wrap:anywhere}.model-manage-row p{font-size:11px;color:#789096;line-height:1.7;margin:7px 0 0}.model-manage-row button{flex-shrink:0}#delete-target{font-size:16px;font-weight:600;overflow-wrap:anywhere}#delete-confirm{background:#b9584f;color:white;border-color:#b9584f}#delete-impact{white-space:pre-wrap}#catalog-add{margin-bottom:15px}

.folder-catalog{width:1180px}.catalog-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:22px;min-height:450px}.folder-sidebar{border-right:1px solid #e2e9eb;padding-right:14px;max-height:67vh;overflow:auto}.folder-sidebar-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;font-size:12px}.folder-sidebar-heading button{padding:6px 10px}.folder-sidebar ul{list-style:none;padding:0 0 0 13px;margin:0}.folder-sidebar ul.folder-roots{padding-left:0;margin-top:12px}.folder-node{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;text-align:left;padding:9px 7px;border:0;background:none;font-size:11px;margin:3px 0}.folder-node span{overflow-wrap:anywhere;min-width:0}.folder-node small{font-size:9px;color:#8b9fa4;flex-shrink:0}.folder-node.folder-active{background:#e3f1ee;font-weight:600}.folder-teal{color:#087c80}.folder-blue{color:#347cb6}.folder-orange{color:#b77b28}.folder-purple{color:#8064ae}.folder-gray{color:#798b90}.catalog-main{min-width:0}.catalog-actions{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.catalog-actions #catalog-add{margin:0}.catalog-actions button{font-size:11px}.folder-breadcrumb{font-size:11px;line-height:2;margin-bottom:12px}.folder-breadcrumb button{border:0;background:none;color:#087c80;padding:2px 4px}.child-folder{margin:0 6px 6px 0;padding:9px 11px;background:#f5f8f8}.child-folder small{font-size:9px;color:#8a9ba1}.folder-path-label{font-size:10px!important;color:#087c80!important;overflow-wrap:anywhere}.card-buttons{display:flex;flex-wrap:wrap;gap:5px}.card-buttons button{font-size:11px;padding:8px}.folder-catalog #vessel-cards{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.folder-catalog .source-switch{font-size:10px}.folder-catalog .source-switch input{width:14px}.folder-catalog #catalog-count{margin-bottom:0}@media(max-width:700px){.catalog-layout{grid-template-columns:1fr}.folder-sidebar{border-right:0;border-bottom:1px solid #e2e9eb;padding:0 0 12px;max-height:220px}.folder-catalog #vessel-cards{grid-template-columns:1fr}}

[hidden]{display:none!important}.login-page{min-height:100dvh;display:grid;place-items:center;background:linear-gradient(135deg,#12343c,#285960);padding:25px}.login-card{width:430px;max-width:100%;background:white;padding:36px;border-radius:14px;box-shadow:0 20px 70px #05212640}.login-card h1{font-size:23px;margin:20px 0 15px}.login-card button{width:100%}.portal-links{display:flex;gap:20px;margin:25px 0}.portal-links a{color:#087c80;font-size:11px}#login-error{color:#b9584f;line-height:1.8;margin-top:15px}.tenant-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}#account-name{font-size:10px;width:auto;min-width:34px;padding:8px;border-radius:6px}.header-right{flex-wrap:wrap}.header-right button{font-size:10px}@media(max-width:700px){.tenant-grid{grid-template-columns:1fr}.header-right{max-width:60%}header{height:auto;min-height:89px}}

.view-help{position:relative;flex:none}
.view-help summary{cursor:pointer;color:var(--teal,#087f91)}
.view-help[open] div{position:absolute;bottom:calc(100% + 8px);right:0;z-index:5;width:max-content;max-width:min(320px,80vw);padding:10px 12px;border:1px solid #b7cbd0;border-radius:8px;background:#fff;color:#24404a;line-height:1.6;box-shadow:0 4px 14px #18364024}

.orbit-anchor{position:absolute;pointer-events:none;transform:translate(-50%,-50%);width:13px;height:13px;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #184c58,0 1px 4px #0008;background:#14788988}

.customers-dialog{width:min(1160px,96vw)}.customer-controls,.customer-card-head{display:flex;flex-wrap:wrap;align-items:end;gap:10px}.customer-controls label:first-child{flex:1 1 240px}.customer-controls label,.customer-card-head label{margin:0}.customer-controls{margin-top:15px}.customer-card{border:1px solid #dbe5e8;border-radius:10px;padding:14px;margin:12px 0}.customer-card-head{align-items:center}.customer-card-head>div:first-child{flex:1 1 230px;min-width:0}.customer-card-head h3{font-size:17px}.customer-card-head p{margin:4px 0;color:#506970;overflow-wrap:anywhere}.customer-table-wrap{overflow:auto;margin-top:12px}.customer-table-wrap table{width:100%;min-width:440px;border-collapse:collapse;text-align:left}.customer-table-wrap caption{text-align:left;font-weight:700;padding:5px 0}.customer-table-wrap th,.customer-table-wrap td{padding:7px 9px;border-bottom:1px solid #dbe5e8}.customer-table-wrap th{background:#edf5f5}.customer-table-wrap td{overflow-wrap:anywhere}
.customer-access{display:block;margin-top:4px;color:#506970}.assignment-check{display:flex;align-items:center;gap:8px}.assignment-check input{width:20px;min-height:20px;margin:0}#assignment-error{color:#963d34}
