:root{font-family:Inter,PingFang SC,Microsoft YaHei,Noto Sans CJK SC,Arial,sans-serif;color:#253044;background:#f4f6f8;font-synthesis:none;text-rendering:optimizeLegibility;--ink: #202b3c;--muted: #7d8797;--line: #e7ebf0;--surface: #ffffff;--primary: #52b9e8;--primary-soft: #dff3fc;--navy: #24364f;--danger: #dd3d49;--success: #2f9e78}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;min-height:100vh;background:#f4f6f8}button,input{font:inherit}button{-webkit-tap-highlight-color:transparent}.app-shell{min-height:100vh}.topbar{position:sticky;top:0;z-index:20;height:70px;background:#fffffff5;border-bottom:1px solid #e8ecf1;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.topbar-inner{width:min(1180px,calc(100% - 40px));height:100%;margin:0 auto;display:flex;align-items:center;justify-content:space-between}.brand{display:inline-flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none}.brand-mark{width:42px;height:42px;display:grid;place-items:center;color:#fff;border-radius:12px;background:#52b9e8;box-shadow:0 7px 18px #3ca1cf33}.brand>span:last-child{display:grid;gap:1px}.brand strong{font-size:17px;letter-spacing:.06em}.brand small{color:#8a93a2;font-size:12px}.server-state{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 12px;border-radius:18px;color:#657083;background:#f5f7f9;font-size:13px}.server-state .state-dot{width:7px;height:7px;border-radius:50%;background:#aeb6c2}.server-state.online .state-dot{background:#2fb385;box-shadow:0 0 0 4px #2fb3851f}.server-state.offline{color:#a74750;background:#fff2f3}.server-state.offline .state-dot{background:#df525c}.server-state button{padding:0;color:#9c3540;background:none;border:0;text-decoration:underline;cursor:pointer}.page-container{width:min(1180px,calc(100% - 40px));margin:0 auto;padding:54px 0 72px}.page-intro{margin:0 0 28px}.eyebrow{display:inline-flex;align-items:center;gap:6px;margin-bottom:12px;color:#3b9fca;font-size:13px;font-weight:650;letter-spacing:.06em}.page-intro h1{margin:0;color:#202b3c;font-size:clamp(30px,4vw,42px);line-height:1.22;letter-spacing:-.03em}.page-intro p{max-width:760px;margin:13px 0 0;color:#7b8492;font-size:16px;line-height:1.8}.workflow-card{margin-top:20px;padding:34px 38px 38px;background:var(--surface);border:1px solid #e9edf2;border-radius:16px;box-shadow:0 8px 28px #2030480e;scroll-margin-top:88px}.section-heading{position:relative;display:grid;grid-template-columns:42px 1fr;align-items:start;gap:12px;margin-bottom:28px;padding-left:17px}.section-heading.compact{margin-bottom:24px}.required-mark{position:absolute;left:0;top:-2px;color:var(--danger);font-size:22px;font-weight:700}.section-number{width:42px;height:29px;display:grid;place-items:center;margin-top:1px;border-radius:8px;color:#477a93;background:#e6f5fc;font-size:12px;font-weight:750;letter-spacing:.06em}.section-heading h2{margin:0;color:#222e40;font-size:21px;line-height:1.45}.section-heading p{margin:9px 0 0;color:#778190;font-size:15px;line-height:1.75}.upload-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,.8fr);gap:24px;margin-left:69px}.upload-stage{position:relative;min-height:370px;overflow:hidden;display:grid;place-items:center;background:#f7f9fb;border:1px dashed #cdd7e1;border-radius:12px;transition:border-color .2s ease,background-color .2s ease,box-shadow .2s ease}.upload-stage.dragging{background:#edf8fd;border-color:#55b8e4;box-shadow:0 0 0 4px #52b9e81f}.upload-stage.filled{background:#edf0f3;border-style:solid;border-color:#dce2e8}.upload-stage>img{width:100%;height:100%;max-height:510px;object-fit:contain}.upload-empty{display:grid;justify-items:center;gap:9px;color:#8a94a2;text-align:center}.upload-empty .upload-icon{width:66px;height:66px;display:grid;place-items:center;margin-bottom:4px;color:#58b7e2;background:#e4f5fc;border-radius:18px}.upload-empty strong{color:#465366;font-size:17px}.upload-empty span:last-child{font-size:13px}.remove-image{position:absolute;top:12px;right:12px;width:34px;height:34px;display:grid;place-items:center;padding:0;color:#fff;background:#1a2534b8;border:0;border-radius:50%;cursor:pointer;transition:background-color .2s ease,transform .2s ease}.remove-image:hover{background:#c83a45;transform:scale(1.04)}.upload-guide{padding:23px 22px;background:#f8fafb;border:1px solid #e8edf1;border-radius:12px}.guide-title{display:flex;align-items:center;gap:8px;color:#334156}.upload-guide ul{display:grid;gap:16px;margin:22px 0;padding:0;list-style:none}.upload-guide li{display:grid;grid-template-columns:18px 1fr;align-items:start;gap:8px;color:#6f7988;font-size:13px;line-height:1.65}.upload-guide li svg{margin-top:3px;color:#49ae81}.file-rule{display:flex;align-items:center;gap:10px;padding:15px;color:#687588;background:#fff;border:1px solid #e8edf2;border-radius:9px;font-size:12px;line-height:1.55}.file-rule svg{flex:0 0 auto;color:#55acd3}.upload-actions{display:flex;align-items:center;gap:15px;margin:18px 0 0 69px}.secondary-button,.primary-button{height:46px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 19px;border:0;border-radius:9px;font-weight:650;cursor:pointer;transition:transform .18s ease,background-color .18s ease,box-shadow .18s ease}.secondary-button{min-width:148px;color:#fff;background:#a5dbf4}.secondary-button:hover{background:#86cfee;transform:translateY(-1px)}.primary-button{margin-left:auto;min-width:190px;color:#fff;background:#263a55;box-shadow:0 8px 18px #263a5529}.primary-button:hover:not(:disabled){background:#1e3049;transform:translateY(-1px)}.primary-button:disabled{color:#a8b0bb;background:#e9edf1;box-shadow:none;cursor:not-allowed}.upload-setting{color:#969eaa;font-size:13px}.selected-file{min-width:0;display:grid;gap:3px;color:#4d5b6e;font-size:13px}.selected-file span{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selected-file small{color:#9aa2ad}.spinning{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-banner{display:flex;align-items:center;gap:10px;margin:18px 0 0 69px;padding:13px 15px;color:#a23d46;background:#fff3f4;border:1px solid #f2d7da;border-radius:9px;font-size:13px}.error-banner span{flex:1}.error-banner button{display:grid;place-items:center;padding:0;color:inherit;background:none;border:0;cursor:pointer}.empty-result,.result-loading{min-height:260px;display:grid;justify-items:center;align-content:center;gap:10px;margin-left:69px;color:#8c96a4;background:#fafbfc;border:1px dashed #dce2e8;border-radius:12px;text-align:center}.empty-result>span,.loading-mark{width:72px;height:72px;display:grid;place-items:center;margin-bottom:4px;color:#76bddc;background:#eaf7fc;border-radius:20px}.empty-result strong,.result-loading strong{color:#526074;font-size:16px}.empty-result p,.result-loading>span:not(.loading-mark){margin:0;color:#9aa2ad;font-size:13px}.loading-track{width:min(310px,75%);height:5px;overflow:hidden;margin-top:11px;background:#e7edf1;border-radius:4px}.loading-track span{display:block;width:40%;height:100%;background:#5ab8e2;border-radius:inherit;animation:loading 1.35s ease-in-out infinite}@keyframes loading{0%{transform:translate(-100%)}to{transform:translate(350%)}}.result-content{margin-left:69px}.result-summary{display:flex;align-items:center;gap:13px;padding:17px 19px;border:1px solid #e6ebef;border-left-width:4px;border-radius:11px}.result-summary.detected{background:#fff8f8;border-left-color:#df4e58}.result-summary.clear{background:#f5fbf8;border-left-color:#35a77e}.result-state-icon{width:43px;height:43px;display:grid;flex:0 0 auto;place-items:center;border-radius:50%}.detected .result-state-icon{color:#d9424d;background:#fde8ea}.clear .result-state-icon{color:#26936d;background:#dff4eb}.result-summary>div:nth-child(2){display:grid;min-width:180px;gap:3px}.result-summary small{color:#8c95a2;font-size:11px}.result-summary strong{color:#2f3b4d;font-size:15px}.summary-metrics{display:grid;grid-template-columns:repeat(4,minmax(100px,1fr));gap:8px;margin-left:auto}.summary-metrics>div{min-width:105px;display:grid;gap:5px;padding-left:18px;border-left:1px solid #e5e9ed}.summary-metrics strong{font-size:16px}.comparison-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}.image-panel{overflow:hidden;margin:0;border:1px solid #e3e8ed;border-radius:12px;background:#fff}.panel-heading{min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 13px;border-bottom:1px solid #e8ecf0}.panel-heading>div:first-child{display:flex;align-items:center;gap:9px}.panel-heading>span{color:#98a0aa;font-size:12px}.panel-index{width:25px;height:25px;display:grid;place-items:center;color:#4786a2;background:#e4f4fb;border-radius:7px;font-size:11px;font-weight:800}.panel-heading strong{color:#3c485b;font-size:14px}.view-switch{display:flex;padding:3px;background:#f2f5f7;border-radius:7px}.view-switch button{height:28px;padding:0 10px;color:#87919e;background:transparent;border:0;border-radius:5px;font-size:11px;cursor:pointer}.view-switch button.active{color:#3d4b5e;background:#fff;box-shadow:0 1px 4px #1c2b3e17}.result-image-wrap{position:relative;height:390px;display:grid;place-items:center;overflow:hidden;background:#edf0f3}.result-image-wrap img{width:100%;height:100%;object-fit:contain}.result-output{background:#172132}.legend{position:absolute;right:10px;bottom:10px;display:flex;gap:10px;padding:8px 10px;color:#eef4f8;background:#141c2ac7;border-radius:7px;font-size:10px;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}.legend span{display:inline-flex;align-items:center;gap:5px}.legend i{width:8px;height:8px;border-radius:2px}.detail-card{margin-top:18px;overflow:hidden;border:1px solid #e4e8ed;border-radius:12px}.detail-heading{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 16px;background:#fafbfc;border-bottom:1px solid #e8ecf0}.detail-heading>div{display:grid;gap:4px}.detail-heading strong{color:#384559;font-size:14px}.detail-heading span{color:#969faa;font-size:11px}.detail-heading button{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;color:#477b95;background:#e6f5fb;border:0;border-radius:7px;font-size:12px;cursor:pointer}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px}th,td{padding:13px 16px;text-align:left;border-bottom:1px solid #edf0f3;white-space:nowrap}th{color:#8993a1;background:#fcfcfd;font-weight:550}td{color:#667286}tbody tr:last-child td{border-bottom:0}.class-pill{display:inline-flex;padding:4px 8px;color:#b23d47;background:#fcebed;border-radius:5px}.coordinate{color:#8b94a1;font-family:Cascadia Code,Consolas,monospace}.no-detections{display:flex;align-items:center;gap:8px;padding:20px 16px;color:#5f876f;font-size:13px}.result-footnote{display:flex;align-items:center;gap:8px;margin-top:14px;color:#9aa2ad;font-size:11px}footer{padding:24px 20px 36px;color:#a4abb5;text-align:center;font-size:12px}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}@media(max-width:960px){.upload-layout{grid-template-columns:1fr}.upload-guide{display:none}.summary-metrics{grid-template-columns:repeat(2,1fr)}.comparison-grid{grid-template-columns:1fr}.result-image-wrap{height:min(62vw,470px)}}@media(max-width:720px){.topbar{height:62px}.topbar-inner,.page-container{width:min(100% - 24px,1180px)}.brand small,.server-state svg,.server-state>span:not(.state-dot){display:none}.server-state{width:34px;padding:0;justify-content:center}.server-state button{display:none}.page-container{padding-top:34px}.page-intro p{font-size:14px}.workflow-card{padding:25px 17px 27px;border-radius:13px}.section-heading{grid-template-columns:36px 1fr;gap:9px;padding-left:12px}.section-number{width:36px}.section-heading h2{font-size:18px}.section-heading p{font-size:13px}.upload-layout,.upload-actions,.error-banner,.empty-result,.result-loading,.result-content{margin-left:0}.upload-stage{min-height:270px}.upload-actions{flex-wrap:wrap}.secondary-button{width:100%}.upload-setting,.selected-file{flex:1}.primary-button{width:100%;margin-left:0}.result-summary{align-items:flex-start;flex-wrap:wrap}.summary-metrics{width:100%;margin:7px 0 0}.summary-metrics>div{padding-left:11px}.detail-heading{align-items:flex-start;flex-direction:column}}
