:root{font-family:Microsoft YaHei,system-ui,sans-serif;color:#182f4c;background:#f1f3f7;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,.file-button{min-height:44px;border:1px solid #e0e6ef;border-radius:8px;background:#fff;color:#253e5d;padding:10px 14px;cursor:pointer}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #84b1ff}.primary{background:#1c60e8!important;border-color:#1c60e8!important;color:#fff!important}.wide{width:100%;min-height:48px}.shell{height:100dvh;display:flex;flex-direction:column;max-width:560px;margin:auto;background:#f1f3f7;overflow:hidden}.login-head{background:#112b4b;color:#fff;padding:60px 24px 32px}.brand{font-size:17px}.login-head h1{font-size:24px;margin:14px 0 6px;font-weight:500}.login-head p{font-size:12px;color:#c4d5e9}.login-head small{display:inline-block;background:#284c6e;padding:4px 8px;border-radius:4px}.login-body{flex:1;padding:24px;overflow:auto}.login-footer{text-align:center;color:#8492a6;font-size:11px;padding:20px 0 calc(20px + env(safe-area-inset-bottom))}label{display:block;font-weight:600;font-size:12px;margin:0 0 16px}input:not([type=file]),select{width:100%;height:48px;border:1px solid #dce4ee;border-radius:8px;padding:0 14px;background:#fff;color:#203a5a;margin-top:8px;min-width:0}.password{display:flex;position:relative}.password input{padding-right:64px}.eye{position:absolute;right:2px;bottom:2px;border:0;background:transparent;color:#6d809b}header{min-height:58px;padding:0 12px;background:#112b4b;color:#fff;display:flex;align-items:center;gap:8px}header strong{font-size:17px;font-weight:500;flex:1}.back,.header-action{background:transparent;border:0;color:#fff}.back{font-size:28px;padding:0 8px}.environment{background:#e8eff9;color:#68809d;padding:6px 16px;font-size:11px;display:flex;justify-content:space-between}.body{flex:1;min-height:0;overflow-y:auto;padding:16px}.body>*+*{margin-top:14px}.body input{margin-top:0}.body label input{margin-top:8px}.greeting{display:flex;justify-content:space-between}.connected,.success{color:#118557}.connected{font-size:12px}.card{background:#fff;border-radius:12px;padding:16px;overflow-wrap:anywhere}.card small,.meta,.muted{font-size:12px;color:#73859a}.part{position:relative}.part .code{font-size:21px;color:#142e50;overflow-wrap:anywhere;padding-right:60px}.part .meta{margin-top:5px}.part .row{margin-top:10px}.row{display:flex;align-items:center;justify-content:space-between;gap:8px}.row small{color:#73859a}.badge{float:right;background:#fff1dc;color:#ae6a0b;padding:3px 6px;border-radius:4px;font-size:11px}.badge.good{background:#e4f5eb;color:#138758}.shortcuts{display:flex;gap:10px}.shortcuts button{flex:1;text-align:left;color:#1c60e8}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.stats b{display:block;font-size:22px;font-weight:500}.stats div:nth-child(2) b{color:#138758}.stats div:nth-child(3) b{color:#b36d11}.stats p,.track{grid-column:1/-1}.stats p{font-size:12px;margin:8px 0 0;color:#73859a}.stats p span{float:right;color:#1c60e8}.track{height:5px;border-radius:5px;background:#e2e9f3}.track i{display:block;background:#1c60e8;height:100%;border-radius:5px}.tip{background:#e8eff8;color:#7188a4;padding:10px;font-size:12px}.text-button{border:0;background:transparent;color:#1c60e8}.empty{min-height:150px;display:grid;place-items:center;color:#7589a3}.image-grid,.photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.image-grid img,.photo img{width:100%;height:140px;object-fit:cover;border-radius:8px}.photo{background:#fff;border-radius:8px;padding:6px;min-width:0}.photo small{display:block}.photo div{display:flex}.photo button{flex:1;padding:5px 2px;font-size:12px}.camera-empty{height:220px;background:#e8eef6;border:1px dashed #afc2db;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px}.camera-empty span{font-size:40px;color:#1c60e8}.camera-empty small{color:#8091a6}.buttons{display:flex;gap:10px}.file-button{flex:1;text-align:center;font-weight:500;font-size:14px;margin:0;display:grid;place-items:center}.file-button input{position:absolute;width:1px;height:1px;opacity:0}.fixed{background:#fff;padding:12px 16px calc(12px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:4px}nav{display:flex;background:#fff;padding:4px 0 calc(4px + env(safe-area-inset-bottom));border-top:1px solid #e5eaf1}nav button{flex:1;border:0;color:#385a83;font-size:20px;padding:3px}nav small{display:block;font-size:10px}.error{color:#bd3038;background:#fff0f0;padding:10px;border-radius:6px}.hint{color:#8f650d;background:#fff7df;padding:10px;border-radius:6px}.body h3{font-size:16px;font-weight:500}.record-with-image{display:flex;align-items:center;gap:12px}.record-summary{flex:1;min-width:0}.record-summary .code{font-size:24px;line-height:1.4;overflow-wrap:anywhere}.existing-thumb{flex:0 0 80px;width:80px;min-height:80px;padding:0;border:0;background:transparent;display:flex;flex-direction:column;gap:6px;align-items:center;white-space:normal;color:#1764e8;font-size:12px}.existing-thumb img,.empty-thumb div{width:80px;height:80px;object-fit:cover;border-radius:8px;background:#e8edf4}.empty-thumb div{display:grid;place-items:center;font-size:25px;color:#617187}.empty-thumb span{font-size:12px;color:#617187}.viewer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;background:#122b49bb;display:grid;place-items:center;padding:16px}.viewer{width:min(390px,100%);height:min(680px,calc(100dvh - 48px));padding:16px;border-radius:12px;background:#122b49;color:#fff;display:flex;flex-direction:column;gap:16px}.viewer-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}.viewer-stage img{max-width:100%;max-height:100%;object-fit:contain}.scope-record{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:10px}.scope-record img{width:48px;height:48px;object-fit:cover;border-radius:6px;background:#e8edf4;flex:none}.scope-record>div{min-width:0;overflow-wrap:anywhere}html,body,#app{height:100%;overflow:hidden}.shell{height:100vh;height:100dvh}header,.environment,.fixed,nav{flex-shrink:0}.body,.login-body{overscroll-behavior:contain}.upload-error{margin:0;font-size:12px;max-height:24vh;overflow:auto}.shell{position:fixed;top:0;left:50%;transform:translate(-50%);width:100%;height:var(--visible-height,100vh)}
