/* The platform shell, branding, navigation and step components come from Compare. */
.sk-dr-auth{justify-content:safe center}
.sk-dr-auth .auth-card{height:auto;flex-shrink:0}
.sk-dr-auth .auth-password-field{display:grid;gap:8px}
.sk-dr-auth .auth-error{margin:0;color:#a52538;font-size:13px}
.sk-dr-auth .auth-modes{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:20px}
.sk-dr-auth .auth-modes button{padding:4px 0;border:0;background:transparent;color:#166b6e;font-size:13px}
.sk-dr-auth .auth-modes button:hover{text-decoration:underline}
@media(max-width:620px){.sk-dr-auth{justify-content:flex-start}}
body{font-family:ui-sans-serif,system-ui,"Microsoft JhengHei",sans-serif}
.project-sidebar .case-item{width:100%;padding:10px 20px 10px 34px}
.project-sidebar .case-item.selected{font-weight:650}
.sheet{margin-inline:auto}.review-foot{background:white}.table-scroll td small{display:block}
.project-sidebar .list-tabs{justify-content:space-between}.case-list{gap:0}
.workspace-note{margin:12px 16px;color:#61708a;font-size:12px}
header .account{color:#61708a}.account .avatar{color:#345c9d}
.tool svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.page-title{margin-bottom:14px}.tabs{margin-bottom:14px}.panel-title{margin-bottom:10px}.steps{margin-bottom:14px;padding:5px}
.panel{padding:19px}.review-card{padding:0;overflow:hidden}.review-head,.review-foot{padding:13px 17px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px}
.review-head{border-bottom:1px solid var(--line)}.review-head h2{margin:0}.review-head select{width:auto;max-width:100%;padding:7px}
.workgrid{display:grid;grid-template-columns:minmax(0,1fr) 200px}.drawing-wrap{min-width:0;background:#f4f6f9;display:flex;flex-direction:column}
.drawing-tools{display:flex;align-items:center;gap:5px;padding:7px 10px;flex-wrap:wrap}.drawing-tools button,.filters button{padding:5px 9px;font-size:12px}
.viewport{overflow:auto;position:relative;padding:10px;max-height:65vh}.sheet{position:relative;width:100%;line-height:0;box-shadow:0 1px 6px #23355022;background:white}.sheet>img{width:100%;height:auto;display:block}
.mark{position:absolute;transform:translate(-50%,-50%);width:3.1%;aspect-ratio:1;height:auto;min-width:12px;max-width:55px;border:2px solid var(--marker);background:color-mix(in srgb,var(--marker) 12%,transparent);border-radius:5px;padding:0}
.mark.pending{border-style:dashed}.mark:hover,.mark:focus{outline:2px solid var(--marker);background:color-mix(in srgb,var(--marker) 20%,transparent)}
.itemlist{border-left:1px solid var(--line);padding:12px;min-width:0}.itemlist h3{margin:0 0 9px}
.item-row{width:100%;display:flex;text-align:left;align-items:center;gap:7px;margin:6px 0;padding:8px;border:1px solid transparent}.item-row.on,.filters .on,.drawing-tools .on{background:#eef4ff;border-color:#b4c7ff;color:#2458c1}
.item-row span{min-width:0;overflow-wrap:anywhere}.item-row small{display:block;font-weight:400;color:var(--muted)}.item-row b{margin-left:auto;font-variant-numeric:tabular-nums}.item-row img,.thumb{width:40px;height:30px;object-fit:contain;background:white}
.counts{display:flex;gap:24px;align-items:center;flex-wrap:wrap}.counts small{display:block;color:#61708a;font-size:11px}.counts b{font-size:20px;font-variant-numeric:tabular-nums}.review-foot{border-top:1px solid var(--line)}
.filters{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.gridfiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.record{padding:10px;border:1px solid var(--line);border-radius:8px;display:flex;gap:8px;align-items:center}.record strong{overflow-wrap:anywhere;flex:1}
.legendrow{display:grid;grid-template-columns:55px 1fr auto;gap:10px;align-items:center;margin:8px 0}.legendrow small{display:block;color:#61708a}
#modal{border:1px solid var(--line);border-radius:12px;width:min(620px,94vw);padding:22px;max-height:90dvh;overflow:auto;color:#19315b}#modal::backdrop{background:#15264566}#modal h2{margin:0 0 16px}#modal .actions{margin:14px 0 0;justify-content:flex-end}
#modal img.preview{display:block;max-width:100%;max-height:65vh;margin:auto}#modal iframe{width:100%;height:62vh;border:0}.crop-image{width:100%;touch-action:none;cursor:crosshair;display:block}.cropbox{position:relative}.crop-selection{position:absolute;border:2px solid #285fcd;background:#285fcd22;pointer-events:none}
#feedback{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);border-radius:8px;background:#19315b;color:white;padding:10px 18px;z-index:15;display:none}#feedback.show{display:block}
td input{min-width:65px}td .qty{width:78px}td,th{padding:10px}.version{margin:10px 0}.version>summary{cursor:pointer;padding:10px;background:#f5f8ff}.version time{color:#526881}
.notes{white-space:pre-wrap}.workgrid .help{margin:8px 0}.matrix td,.matrix th{text-align:center}.matrix td:first-child,.matrix th:first-child{text-align:left}.matrix button{padding:3px 12px}
.progress{position:fixed;inset:0;background:#e9eff8aa;z-index:20;display:grid;place-items:center}.progress strong{background:white;border:1px solid var(--line);border-radius:12px;padding:20px 36px}.upload input{max-width:100%}
@media(max-width:1250px){.workgrid{grid-template-columns:minmax(0,1fr) 155px}.itemlist{padding:7px}.item-row{gap:4px;padding:5px}.item-row img{width:26px}}
@media(max-width:920px){.workgrid{display:flex;flex-direction:column}.itemlist{border:0;border-top:1px solid var(--line);display:flex;gap:5px;flex-wrap:wrap}.itemlist h3{width:100%}.item-row{width:auto}.item-row b{padding-left:6px}.itemlist .help{width:100%}}
@media(max-width:700px){.layout{height:auto;min-height:100vh;display:block;overflow:visible}.project-tools{flex-direction:row;padding:8px 14px}.layout>.project-sidebar{margin:0 12px;border-radius:10px;max-height:180px}.project-sidebar .list-search,.project-sidebar .list-overview{display:none}.list-tabs{min-height:32px;height:32px}.project-list{overflow:auto;display:block}.project-item{max-width:none}.layout main{height:auto;overflow:visible;padding:15px}.project-tools .tool{width:35px;height:35px}.steps{display:flex;overflow-x:auto}.step{min-width:64px}.account .avatar{display:none}}


.layout.inspection-list-closed>.project-sidebar{display:none}
@media(min-width:701px){.layout.inspection-list-closed{grid-template-columns:64px minmax(0,1fr)}}
.inspect-heading{display:flex;gap:16px;align-items:center}
.inspect-sidebar-toggle{padding:6px 10px;font-size:12px}
.inspection .workgrid{grid-template-columns:minmax(0,1fr) 240px}
.inspection .drawing-tools{justify-content:space-between;padding:8px 14px;border-bottom:1px solid var(--line)}
.inspection .drawing-tools strong,.scale-tools{font-size:12px}
.inspection .viewport{height:clamp(320px,calc(100dvh - 408px),840px);max-height:none}
.inspection .sheet{margin:0}.inspect-items{padding:15px;border-left:1px solid var(--line)}
.inspect-items h3{margin:0 0 3px}.inspect-items>small{display:block;color:#566579;margin-bottom:12px}
.inspect-row{display:grid;gap:3px;width:100%;text-align:left;padding:8px 10px;margin:3px 0;border:1px solid transparent;background:white;font-size:13px}
.inspect-name{display:flex;align-items:center;gap:7px;font-weight:600;line-height:1.3;margin-bottom:2px}
.inspect-metric{display:flex;align-items:baseline;justify-content:space-between;gap:8px;line-height:1.35;font-size:12px;color:#465568}
.inspect-metric strong{font-variant-numeric:tabular-nums;font-weight:600}
.inspect-metric.needs-check{color:#855308}
.inspect-row.selected,.inspect-stage .on{background:#eaf2ff;border-color:#7899c1;color:#173d67}
.inspect-row img{width:24px;height:22px;object-fit:contain}
.tree-dot,.tree-key{border:2px solid var(--tree);background:var(--tree-bg);border-radius:100%}
.tree-dot{position:absolute;transform:translate(-50%,-50%);width:1.4%;min-width:10px;aspect-ratio:1;height:auto;padding:0;box-shadow:0 0 0 1px #ffffffe8}
.tree-hit,.tree-confirmed{--tree:#08755c;--tree-bg:#70dfaa55}.tree-miss{--tree:#bc3443;--tree-bg:#fba6a457;border-style:dashed}
.tree-undecided,.tree-wrong{--tree:#925806;--tree-bg:#ffc34b77;border-radius:2px}
.tree-extra,.tree-duplicate{--tree:#823fa3;--tree-bg:#c69bda66;border-radius:2px}
.inspect-key,.inspect-key span,.inspect-stage{display:flex;align-items:center;gap:8px}.inspect-key{flex-wrap:wrap;font-size:13px}.tree-key{width:13px;height:13px;display:inline-block}
@media(max-width:920px){.inspect-items{border:0;border-top:1px solid var(--line)}.inspect-row{display:inline-grid;vertical-align:top;min-width:135px;width:auto;max-width:190px;margin-right:5px}.inspection .viewport{height:45vh}}
