:root{font-family:"PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;color:#1c3448;background:#f3f6fa;font-synthesis:none;--blue:#2d6ed3;--muted:#8293a1;--line:#e5ebf1}*{box-sizing:border-box}html{background:#eaf0f5}body{margin:0;min-width:320px;max-width:480px;min-height:100vh;min-height:100dvh;margin-left:auto;margin-right:auto;background:#f3f6fa}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}.hidden{display:none!important}.performance-sprite{position:absolute;width:0;height:0;overflow:hidden}.performance-topbar{height:57px;padding:env(safe-area-inset-top) 13px 0;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #edf1f5;position:sticky;top:0;z-index:20}.performance-topbar h1{font-size:17px;letter-spacing:1px;margin:0;font-weight:600}.performance-top-icon{width:44px;height:44px;display:flex;align-items:center;justify-content:center;color:#456171;border-radius:12px}.performance-top-icon:active{background:#edf3f8}.performance-top-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.performance-main{padding-bottom:calc(30px + env(safe-area-inset-bottom))}.performance-hero{height:236px;padding:25px 22px;position:relative;overflow:hidden;background:linear-gradient(135deg,#2759c4,#3986df);color:#fff;border-radius:0 0 26px 26px}.performance-hero:after{content:"";position:absolute;width:220px;height:220px;border:1px solid rgba(255,255,255,.09);border-radius:50%;right:-105px;top:-85px;box-shadow:0 0 0 35px rgba(255,255,255,.025),0 0 0 70px rgba(255,255,255,.018)}.performance-hero>p{position:relative;z-index:1;font-size:9px;letter-spacing:2px;color:#c5dcf8;margin:0 0 9px}.performance-hero h2{position:relative;z-index:1;font-size:25px;letter-spacing:1px;margin:0 0 7px}.performance-hero>span{position:relative;z-index:1;font-size:11px;color:#d4e6f9}.performance-stats{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-around;margin-top:25px}.performance-stats div{text-align:center;flex:1}.performance-stats strong,.performance-stats span{display:block}.performance-stats strong{font-size:25px;margin-bottom:5px}.performance-stats span{font-size:10px;color:#d0e2f7}.performance-stats>i{width:1px;height:29px;background:rgba(255,255,255,.22)}.performance-filter{position:relative;z-index:2;margin:-28px 13px 22px;background:#fff;border:1px solid rgba(225,234,241,.9);border-radius:17px;padding:18px;box-shadow:0 6px 20px rgba(31,68,108,.07)}.filter-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.filter-title strong{font-size:14px}.filter-title button{border:0;background:none;color:#7e91a0;font-size:12px;min-height:30px}.date-fields{display:grid;grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr);align-items:end;gap:6px}.date-fields>label{min-width:0;font-size:10px;color:#8495a2}.date-fields>span{text-align:center;color:#a1adb5;font-size:11px;padding-bottom:17px}.date-fields input{display:block;width:100%;min-width:0;height:43px;margin-top:7px;padding:8px 9px;border:1px solid #e0e7ed;border-radius:9px;background:#f8fafc;color:#324c5d;font-size:12px;outline:0}.date-fields input:focus{border-color:var(--blue);background:#fff;box-shadow:0 0 0 3px rgba(45,110,211,.08)}.query-button{width:100%;height:44px;margin-top:13px;border:0;border-radius:10px;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;gap:7px;font-size:14px;font-weight:600}.query-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.records-section{padding:0 13px}.records-heading{display:flex;align-items:center;justify-content:space-between;margin:0 3px 13px}.records-heading h2{font-size:16px;margin:0}.records-heading span{font-size:11px;color:var(--muted)}.record-card{background:#fff;border:1px solid #e5ebf0;border-radius:15px;padding:17px;margin-bottom:12px;box-shadow:0 3px 12px rgba(35,65,90,.035)}.record-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding-bottom:13px;border-bottom:1px solid #edf1f4}.record-person{display:flex;align-items:center;gap:10px;min-width:0}.record-avatar{width:39px;height:39px;border-radius:11px;background:#eaf1fb;color:#326bbb;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:600;flex-shrink:0}.record-person h3{font-size:15px;margin:0 0 5px;word-break:break-all}.record-person span{font-size:10px;color:#8b9aa5}.print-status{font-size:10px;padding:5px 8px;border-radius:12px;white-space:nowrap}.printed{background:#e9f6ef;color:#378264}.unprinted{background:#fff4df;color:#a0711f}.record-details{padding:13px 0 11px;display:grid;gap:10px}.record-detail{display:grid;grid-template-columns:62px minmax(0,1fr);gap:8px;font-size:12px;line-height:1.55}.record-detail>span{color:#91a0aa}.record-detail>strong{font-weight:400;color:#3e5665;word-break:break-all}.record-detail .id-number{font-family:Consolas,monospace;letter-spacing:.3px}.category-tag{display:inline-block;background:#edf3fa;color:#4e718f;border-radius:5px;padding:2px 7px;font-size:10px}.record-time{display:flex;align-items:center;justify-content:space-between;background:#f8fafc;border-radius:8px;padding:8px 10px;font-size:10px;color:#8b9ba6}.record-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:12px;padding-top:11px;border-top:1px solid #edf1f4}.record-actions button{min-width:82px;height:37px;border-radius:8px;display:flex;align-items:center;justify-content:center;gap:5px;font-size:12px}.record-actions svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}.edit-action{border:1px solid #d8e4ef;background:#f5f9fd;color:#3971a9}.delete-action{border:1px solid #f0dede;background:#fff8f8;color:#b85b5b}.records-loading,.records-empty{text-align:center;padding:55px 15px;color:#8a9aa6;font-size:12px}.records-empty svg{width:40px;height:40px;fill:none;stroke:#afbbc3;stroke-width:1.4;display:block;margin:0 auto 13px}.records-empty strong{display:block;color:#647a89;font-size:14px;margin-bottom:7px}.records-empty p{margin:0;font-size:11px}.performance-pagination{display:flex;align-items:center;justify-content:space-between;padding:8px 1px 10px}.performance-pagination button{height:39px;border:1px solid #dfe7ed;background:#fff;color:#567080;border-radius:9px;padding:0 12px;display:flex;align-items:center;gap:3px;font-size:12px}.performance-pagination button:disabled{opacity:.4}.performance-pagination svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}.performance-pagination span{font-size:11px;color:#8a9aa5}dialog{border:0;padding:0;color:#1c3448}dialog::backdrop{background:rgba(17,36,52,.45);backdrop-filter:blur(2px)}.sheet-dialog{width:100%;max-width:480px;max-height:90vh;max-height:90dvh;margin:auto auto 0;background:#fff;border-radius:22px 22px 0 0;overflow:auto}.sheet-dialog form{padding:10px 21px calc(20px + env(safe-area-inset-bottom))}.sheet-handle{width:38px;height:4px;border-radius:3px;background:#dce4e9;margin:0 auto 19px}.sheet-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:20px}.sheet-heading h2{font-size:19px;margin:0 0 6px}.sheet-heading p{font-size:11px;color:var(--muted);margin:0}.sheet-close{width:38px;height:38px;border:0;border-radius:50%;background:#f2f5f7;color:#718794;display:flex;align-items:center;justify-content:center}.sheet-close svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8}.edit-field{margin-bottom:15px}.edit-field label{display:block;font-size:12px;font-weight:600;margin-bottom:7px}.edit-field b{color:#c45151}.edit-field input,.edit-field select{width:100%;height:47px;border:1px solid #dfe7ec;border-radius:10px;background:#f8fafc;padding:10px 12px;font-size:16px;outline:0}.edit-field input:focus,.edit-field select:focus{border-color:var(--blue);background:#fff;box-shadow:0 0 0 3px rgba(45,110,211,.08)}.sheet-save{width:100%;height:48px;border:0;border-radius:11px;background:var(--blue);color:#fff;font-size:15px;font-weight:600;margin-top:5px}.sheet-save:disabled{opacity:.6}.delete-dialog{width:calc(100% - 44px);max-width:380px;border-radius:17px;padding:26px 23px 21px;text-align:center}.delete-icon{width:48px;height:48px;margin:0 auto 15px;border-radius:50%;background:#fff0ef;color:#bd5a54;display:flex;align-items:center;justify-content:center}.delete-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7}.delete-dialog h2{font-size:18px;margin:0 0 10px}.delete-dialog p{font-size:12px;color:#7b8e9a;line-height:1.7;margin:0 0 22px;word-break:break-all}.delete-dialog>div:last-child{display:flex;gap:10px}.delete-dialog button{flex:1;height:43px;border-radius:9px;font-size:13px}.delete-dialog button:first-child{border:1px solid #dfe6eb;background:#fff;color:#5e7582}.delete-dialog button:last-child{border:0;background:#bd5454;color:#fff}.performance-toast{position:fixed;z-index:50;left:50%;bottom:calc(25px + env(safe-area-inset-bottom));transform:translate(-50%,15px);max-width:calc(100vw - 34px);width:max-content;padding:12px 18px;border-radius:10px;background:#233c48;color:#fff;font-size:13px;text-align:center;box-shadow:0 7px 25px rgba(0,0,0,.17);opacity:0;pointer-events:none;transition:.25s}.performance-toast.show{opacity:1;transform:translate(-50%,0)}.performance-toast.error{background:#a9443e}@media(min-width:481px){body{border-left:1px solid #dfe7ed;border-right:1px solid #dfe7ed;box-shadow:0 0 35px rgba(25,60,90,.06)}.sheet-dialog{left:50%;transform:translateX(-50%)}}@media(max-width:350px){.performance-filter{padding:15px}.record-card{padding:15px}.record-actions button{min-width:74px}.performance-hero{padding-left:19px;padding-right:19px}.date-fields input{font-size:11px;padding-left:6px;padding-right:6px}}

.optional-label{font-size:10px;font-weight:400;color:#96a5ae;margin-left:5px}

.record-primary{display:block;position:relative;min-height:43px;padding-right:132px}.record-primary-field>span{display:block;color:#91a0aa;font-size:12px;margin-bottom:8px}.record-primary-field>strong{font-weight:400;color:#3e5665;word-break:break-all}.photo-column{position:absolute;right:0;top:-10px;transform:none;width:120px;height:120px;text-align:right}.photo-column>span{display:none}.photo-column .no-photo{display:block;font-size:11px;color:#9aa7af;font-weight:400;white-space:nowrap;padding-top:52px}.record-thumbnail{display:block;position:relative;width:120px;height:120px;border:1px solid #dfe7ed;border-radius:10px;overflow:hidden;background:#edf2f5;box-shadow:none;box-sizing:border-box}.record-thumbnail:after{display:none}.record-thumbnail img{display:block;width:100%;height:100%;object-fit:cover}

.photo-edit-input{display:none}.edit-photo-frame{height:150px;border:1px dashed #bdccce;border-radius:11px;background:#f6f9f9;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#94a3a7;font-size:12px}.edit-photo-frame img{width:100%;height:100%;object-fit:contain;background:#edf2f2}.edit-photo-buttons{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}.edit-photo-buttons label,.edit-photo-buttons button{min-height:38px;padding:0;border:0;background:none;font-size:12px;color:var(--blue);cursor:pointer}.edit-photo-buttons button{color:#b45757}

.record-locked{font-size:11px;color:#8b9a94;padding:8px 0}.record-actions:has(.record-locked){justify-content:center;background:#f8faf9;border-radius:8px}

.category-field{border:0;padding:0;margin:0;min-inline-size:0}.category-field>legend{padding:0;font-size:12px;font-weight:600;margin-bottom:8px}.category-options{display:grid;gap:8px}.category-option{position:relative;display:block;cursor:pointer}.category-option input{appearance:none;position:absolute;left:12px;top:14px;width:16px;height:16px;margin:0;border:1px solid #b9c8d2;border-radius:2px;background:#fff}.category-option input:checked{border-color:var(--blue);background:var(--blue)}.category-option input:checked:after{content:"";position:absolute;left:4px;top:4px;width:6px;height:3px;border-left:1.8px solid #fff;border-bottom:1.8px solid #fff;transform:rotate(-45deg)}.category-option span{display:flex;align-items:flex-start;min-height:44px;padding:11px 12px 11px 37px;border:1px solid #dfe7ed;border-radius:9px;background:#f8fafc;color:#42586a;font-size:13px;line-height:1.55}.category-option span b{font-weight:600;color:var(--blue);margin-right:3px}.category-option input:checked+span{border-color:var(--blue);background:#edf4fc;color:var(--blue)}
