*{box-sizing:border-box}body{margin:0;font-family:Inter,Microsoft YaHei,PingFang SC,Arial,sans-serif;color:#1f2933;background:#eef2f5}button,input,select,textarea{font:inherit}button{border:1px solid #c8d1d9;background:#fff;color:#24313d;border-radius:6px;padding:9px 12px;display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer}button:hover{border-color:#417a9f}button:disabled{opacity:.65;cursor:not-allowed}.primary{background:#176b87;border-color:#176b87;color:#fff}.app-shell{min-height:100vh;display:grid;grid-template-columns:220px 1fr}.app-shell.public-only{grid-template-columns:1fr}.side-nav{background:#18232d;color:#fff;padding:18px 14px;display:flex;flex-direction:column;gap:10px}.brand{font-size:18px;font-weight:700;margin:8px 8px 18px}.side-nav button{width:100%;justify-content:flex-start;background:transparent;color:#d9e2ea;border-color:transparent}.side-nav button.active,.side-nav button:hover{background:#263645;border-color:#3d5266;color:#fff}.content{min-width:0}.topbar{height:58px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #d9e0e6;font-size:14px}.topbar span:first-child{font-size:18px;font-weight:700}.workspace{max-width:1180px;margin:0 auto;padding:24px}.band{background:#dceee8;border:1px solid #bed8cf;border-radius:8px;padding:22px}.intro{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:center}h1,h2{margin:0}h1{font-size:28px;line-height:1.25}h2{font-size:18px;display:flex;align-items:center;gap:8px;margin-bottom:16px}p{line-height:1.7}.rule-grid{display:grid;grid-template-columns:1fr;gap:8px}.plain-notes{display:flex;flex-wrap:wrap;gap:10px 18px;color:#435160;font-size:14px}.rule-grid span,.notice{background:#ffffffa6;border:1px solid #c9ddd6;border-radius:6px;padding:10px 12px}.form-flow{margin-top:18px;display:grid;gap:16px}.panel{background:#fff;border:1px solid #d9e0e6;border-radius:8px;padding:18px}.notice{margin-bottom:12px;color:#34434f;background:#f3faf7}.consent-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.consent-meta span{background:#eef7f4;border:1px solid #c9ddd6;border-radius:6px;color:#244f45;padding:7px 10px;font-size:13px;font-weight:700}.consent-box{max-height:360px;overflow:auto;border:1px solid #d9e0e6;border-radius:8px;background:#fbfcfd;padding:14px 16px;margin-bottom:12px}.consent-box.large{max-height:calc(100vh - 330px);min-height:420px}.consent-section+.consent-section{margin-top:16px}.consent-section h3{margin:0 0 8px;font-size:15px;color:#1f5e78}.consent-section p{margin:0 0 8px;color:#34434f}.paper-form{display:grid;gap:14px}.form-row{display:flex;align-items:center;gap:14px;min-height:40px;flex-wrap:wrap}.form-row.wrap{align-items:flex-start}.form-row label{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.form-row input[type=radio]{width:18px;height:18px;min-height:18px}.row-label{font-weight:700}.inline-input{display:flex;align-items:center;gap:8px;max-width:260px}.short-input{max-width:180px}.medium-input{max-width:360px}.section-help{margin-top:-6px;color:#536575}.grid-2,.grid-3,.info-grid{display:grid;gap:14px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.field{display:grid;gap:6px;color:#435160;font-size:14px}.field span{font-weight:650}input,select,textarea{width:100%;min-height:38px;border:1px solid #c8d1d9;border-radius:6px;padding:8px 10px;background:#fff;color:#1f2933}textarea{min-height:76px;resize:vertical}.checkline{display:flex;align-items:center;gap:8px;margin:8px 0;line-height:1.5}.checkline input{width:18px;height:18px;min-height:18px;flex:0 0 auto}.checkline.compact{margin:0}.single-upload{min-height:52px;border:1px dashed #8aabbd;border-radius:8px;background:#f4fafc;color:#1f5e78;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;font-weight:700}.single-upload.disabled{opacity:.55;cursor:not-allowed}.single-upload input{display:none}.upload-summary,.submit-bar,.export-row,.filters,.token-row,.review-line,.detail-head{display:flex;align-items:center;gap:10px}.upload-summary{margin:12px 0;color:#435160}.upload-summary span{background:#f5f7f9;border:1px solid #d9e0e6;border-radius:6px;padding:7px 10px}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}.photo-table-wrap{overflow-x:auto;border:1px solid #1f2933;border-left:0;border-right:0;margin-top:12px}.photo-table{width:100%;min-width:980px;border-collapse:collapse;background:#fff}.photo-table th,.photo-table td{border-bottom:1px solid #d9e0e6;padding:10px 8px;vertical-align:middle;text-align:center}.photo-table th{font-weight:800;color:#111827;background:#f6f8fa}.photo-table td input,.photo-table td select{min-width:120px}.photo-table td button{width:34px;height:34px;padding:0;color:#8a2f24}.file-cell{min-width:190px;display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:8px;text-align:left}.file-cell img{width:52px;height:52px;object-fit:cover;border-radius:6px;border:1px solid #d9e0e6}.file-cell span{overflow-wrap:anywhere;color:#435160;font-size:13px}.age-band-table{min-width:820px}.age-band-table th:first-child,.age-band-table td:first-child{width:150px}.age-band-table th:nth-child(2),.age-band-table td:nth-child(2){width:180px}.age-band-cell{text-align:left}.age-band-cell strong,.age-band-cell span{display:block}.age-band-cell span{margin-top:4px;color:#657789;font-size:13px}.age-photo-list{display:grid;gap:10px}.age-photo-entry{display:grid;grid-template-columns:minmax(180px,1fr) 150px 38px;gap:10px;align-items:center}.file-cell.compact{min-width:0}.age-input{max-width:150px}.photo-item,.admin-photo{border:1px solid #d9e0e6;border-radius:8px;overflow:hidden;background:#fbfcfd}.photo-index{height:42px;padding:0 10px 0 12px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #d9e0e6;background:#fff;font-weight:700}.photo-index button{width:30px;height:30px;padding:0;color:#8a2f24}.photo-item img,.admin-photo img{width:100%;aspect-ratio:4 / 3;object-fit:cover;display:block;background:#e8edf1}.photo-fields,.photo-review{padding:12px;display:grid;gap:10px}.muted-line{color:#536575;font-size:13px}.review-decision{display:grid;grid-template-columns:1fr 1fr;gap:8px}.review-decision button{min-height:38px;font-weight:800}.decision-pass.active{color:#fff;background:#1e7a41;border-color:#1e7a41}.decision-fail.active{color:#fff;background:#a43a2d;border-color:#a43a2d}.submit-bar{position:sticky;bottom:0;background:#fff;border:1px solid #d9e0e6;border-radius:8px;padding:12px;justify-content:space-between;min-height:64px}.submit-bar span{white-space:pre-line;overflow-wrap:anywhere}.admin-layout{max-width:1440px;display:grid;grid-template-columns:420px minmax(0,1fr);gap:16px;align-items:start}.admin-list,.admin-detail{min-height:calc(100vh - 106px)}.filters{margin-top:12px;flex-wrap:wrap}.filters input{flex:1 1 150px}.filters select{flex:1 1 130px}.export-row{margin:12px 0}.admin-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.admin-stats span{background:#f6f8fa;border:1px solid #d9e0e6;border-radius:6px;padding:9px 10px;font-weight:700;color:#34434f}.message{min-height:22px;color:#8a4d16}.table-list{display:grid;gap:8px;max-height:calc(100vh - 330px);overflow:auto;padding-right:4px}.submission-row{display:grid;gap:6px;text-align:left;justify-content:stretch;align-items:start;padding:12px}.submission-row span{color:#536575;font-size:13px}.pill{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border-radius:999px;font-size:12px;border:1px solid #c8d1d9;background:#f6f8fa;color:#34434f;margin-right:4px}.pill.approved,.pill.paid{background:#e2f3e6;border-color:#a6d4b1;color:#1e6b39}.pill.rejected,.pill.failed{background:#fde9e7;border-color:#efb4ad;color:#9f2f22}.pill.needs_more{background:#fff2cc;border-color:#e3c76d;color:#765d10}.empty-state{min-height:240px;display:grid;place-items:center;color:#657789;border:1px dashed #c8d1d9;border-radius:8px}.detail-head{justify-content:space-between;margin-bottom:14px}.detail-head p{margin:6px 0 0;color:#536575}.info-grid{grid-template-columns:repeat(4,minmax(0,1fr));background:#f6f8fa;border:1px solid #d9e0e6;border-radius:8px;padding:12px;margin-bottom:12px}.info-grid span{min-width:0;overflow-wrap:anywhere}.review-line{margin-bottom:10px}.review-line select{width:150px}.admin-photos{margin-top:14px;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}@media(max-width:980px){.app-shell{grid-template-columns:1fr}.side-nav{position:sticky;top:0;z-index:10;flex-direction:row;align-items:center}.brand{margin:0 12px 0 0}.side-nav button{width:auto}.intro,.admin-layout,.grid-2,.grid-3,.info-grid{grid-template-columns:1fr}}@media(max-width:640px){.workspace{padding:14px}.topbar{padding:0 14px}.upload-summary,.submit-bar,.token-row,.review-line,.detail-head{align-items:stretch;flex-direction:column}.review-line select,.review-line button,.submit-bar button{width:100%}}
