:root{--blue:#1947b8;--navy:#182e6d;--ink:#1b2b47;--muted:#72809a;--border:#dae3f2;--bg:#eef2f9;--white:#fff;--yellow:#ffca16;--shadow:0 16px 42px rgba(26,48,87,.12)}
*{box-sizing:border-box}html{font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}body{margin:0;min-height:100vh;background:radial-gradient(ellipse 75% 35% at 90% -15%,#d8e6ff,transparent),#edf1f7}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}a{color:#2154bf;text-decoration:none}a:hover{text-decoration:underline}
.page-shell{max-width:1060px;margin:35px auto;background:#fff;border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}.public-shell{max-width:900px}.top-header{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:28px 32px;background:linear-gradient(110deg,#172a58 0%,#1d409b 60%,#2459dd 100%);color:#fff}.header-left{display:flex;gap:16px;align-items:center}.header-symbol{width:48px;height:48px;border:1px solid #8ba5e1;border-radius:13px;background:#ffffff18;display:flex;align-items:center;justify-content:center;font-size:25px;flex:none}.overline{font-weight:700;letter-spacing:2px;font-size:10px;color:#bdd0ff;margin-bottom:7px}.top-header h1{margin:0;font-size:24px;letter-spacing:-.5px;font-weight:750}.top-header p{margin:7px 0 0;font-size:13px;color:#d8e3ff}.head-actions{display:flex;gap:10px;flex-wrap:wrap}.btn{border:none;border-radius:9px;min-height:42px;padding:10px 17px;font-weight:700;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;text-decoration:none}.btn:hover{text-decoration:none;filter:brightness(.97)}.btn:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #a4bfff;outline-offset:2px}.btn-yellow{background:var(--yellow);color:#342700}.btn-white{background:#fff;color:#1a3378}.btn-primary{background:linear-gradient(90deg,#2144a1,#2462d1);color:#fff;box-shadow:0 7px 14px rgba(36,91,196,.17)}.btn-muted{background:#eef2fa;color:#405371}.btn-light{border:1px solid #d8e3f3;background:#fff;color:#36527d}.content-body{padding:25px 32px 28px}.info-strip{display:flex;align-items:center;gap:10px;font-size:12px;color:#64738e;background:#f3f7fd;border:1px solid #e5edf8;padding:11px 13px;border-radius:8px;margin:0 0 25px}.pulse{width:8px;height:8px;border-radius:50%;background:#28b28a}.required,.field b{color:#ed4f63}.today-pill{margin-left:auto;background:#e2ebff;border-radius:20px;padding:4px 9px;color:#2852b0;font-weight:700}.section-title{font-size:14px;font-weight:800;display:flex;align-items:center;gap:9px;margin:8px 0 19px}.section-number{width:27px;height:27px;border-radius:8px;background:#e8efff;color:#2454bd;display:flex;align-items:center;justify-content:center;font-size:12px}.section-two{border-top:1px solid #e9eef6;padding-top:22px;margin-top:27px}.form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:17px;row-gap:20px}.field{min-width:0;display:flex;flex-direction:column;gap:8px;font-weight:700;font-size:12.5px;color:#485875}.field>span small{font-size:11px;color:#9aa8be;font-weight:500}.field.full{grid-column:span 2}.field input,.field select,.captcha-input-group input{width:100%;height:43px;padding:0 13px;border-radius:8px;background:#fff;border:1px solid #cbd6e9;color:#23324c;font-size:13.5px;font-weight:500;outline:none;transition:border-color .15s,box-shadow .15s}.field input:focus,.field select:focus,.captcha-input-group input:focus{border-color:#4175e5;box-shadow:0 0 0 3px #4175e516}.field input::placeholder{color:#a4aec1;font-weight:400}.field input:disabled{background:#f3f6fc;color:#8b95a8}.field-hint{font-size:11px;color:#8592aa;font-weight:400;line-height:1.5;margin-top:0}.captcha-wrap{max-width:490px}.captcha-wrap>label{display:block;margin-bottom:8px}.captcha-input-group{display:flex;align-items:center;gap:10px}.captcha-input-group input{width:160px;flex:none;font-weight:700;text-transform:uppercase;letter-spacing:2px}.captcha-image{display:flex;border:1px solid #cbd6e9;border-radius:8px;overflow:hidden;background:#f5f8ff;height:60px;max-width:200px}.captcha-image img{width:200px;height:60px;object-fit:fill}.btn-refresh{height:44px;min-width:40px;border:1px solid #ccd6e9;border-radius:8px;background:#f8faff;font-size:25px;color:#345eae}.form-footer{display:flex;gap:18px;justify-content:space-between;align-items:center;border-top:1px solid #edf1f8;margin-top:28px;padding-top:23px}.form-footer p{margin:0;color:#8693a7;font-size:11px;line-height:1.6;max-width:390px}.lock-icon{color:#3a67c1;font-size:20px}.site-footer{display:flex;justify-content:space-between;gap:10px;align-items:center;background:#f7f9fd;border-top:1px solid #e6edf6;padding:18px 30px;color:#7e8da4;font-size:11.5px}.feedback{padding:11px 13px;border:1px solid #bfe5d3;background:#eefaf3;color:#16824d;border-radius:9px;margin-top:17px;font-size:13px}.feedback-error{border-color:#ffcbcf;background:#fff1f2;color:#bc3c4a}.modal-backdrop{position:fixed;z-index:50;inset:0;background:#0c1936a8;display:flex;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(3px)}[hidden]{display:none!important}.modal{width:min(100%,470px);max-height:94vh;overflow-y:auto;background:#fff;border-radius:17px;padding:29px;box-shadow:0 24px 65px #0004;text-align:center;position:relative}.modal-icon{width:56px;height:56px;border-radius:19px;margin:0 auto 18px;display:flex;align-items:center;justify-content:center;background:#fff0d3;color:#aa7000;font-size:27px;font-weight:800}.icon-blue{background:#e8efff;color:#3155ba}.modal h2{font-size:21px;margin:0 0 9px;color:#1e2f50}.modal>p{font-size:13.5px;color:#6b7890;line-height:1.7;margin:0 0 18px}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}.modal-actions .btn{flex:1}.success-token{margin-top:16px;border:1px dashed #a2bbed;border-radius:10px;background:#f4f7ff;padding:14px;text-align:left}.success-token>span{font-size:10px;font-weight:800;letter-spacing:.6px;color:#536a9a}.token-line{display:flex;gap:8px;align-items:center;margin:10px 0}.token-line code{word-break:break-all;flex:1;color:#263f87;font-weight:800}.btn-small{border:1px solid #b9caeb;border-radius:7px;background:white;padding:8px;white-space:nowrap;font-size:11px;font-weight:700;color:#214ba1}.success-token small,.modal-help{color:#77869d;font-size:11px;line-height:1.5}.modal #editUnlockBox{text-align:left}.modal #editUnlockBox .field{margin-bottom:10px}.modal-error{margin:12px 0!important;color:#c33b51!important;font-weight:600}.modal-x{position:absolute;right:15px;top:12px;background:none;border:0;font-size:25px;color:#8794a9}
/* Admin */
.admin-shell{max-width:1440px;margin:22px auto}.admin-header{padding:24px 30px}.admin-header h1{font-size:23px}.dashboard{padding:28px 27px 32px}.dashboard-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:21px}.dashboard-head h2{font-size:21px;margin:0 0 6px}.dashboard-head p{font-size:13px;color:#8591a4;margin:0}.filters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px;padding:18px;border:1px solid #dfE6f4;background:#f9fbff;border-radius:11px}.filters .field input,.filters .field select{font-size:12px;height:39px}.filter-buttons{grid-column:span 6;display:flex;justify-content:flex-end;gap:9px}.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:21px 0}.stat{border:1px solid #e2e9f5;background:#fff;padding:15px 17px;border-radius:11px;display:grid;gap:6px}.stat span{font-size:12px;color:#687995}.stat strong{font-size:28px;letter-spacing:-.5px;color:#203d86}.stat small{font-size:11px;color:#96a4b9}.table-shell{border:1px solid #e4eaf5;border-radius:11px;overflow:auto;max-width:100%;background:#fff}.records-table{width:100%;border-collapse:collapse;text-align:left;min-width:1090px;font-size:12px}.records-table thead{background:#f0f4fb}.records-table th{font-size:11px;color:#51617e;letter-spacing:.1px;padding:14px 10px;white-space:nowrap;font-weight:800}.records-table td{padding:12px 10px;border-top:1px solid #ebeff7;vertical-align:middle;color:#44536d}.records-table tbody tr:hover{background:#fafcff}.records-table .cell-strong{color:#24438a;font-weight:800}.records-table .small-muted{display:block;color:#97a3b6;font-size:11px;margin-top:4px;line-height:1.4}.records-table .empty-row{text-align:center;color:#8694a6;padding:40px}.status-tag{display:inline-flex;border-radius:20px;padding:5px 9px;font-size:10.5px;font-weight:800;white-space:nowrap}.status-pending{background:#fff2dd;color:#a26900}.status-created{background:#e9efff;color:#345cb7}.status-issued{background:#e5f7ed;color:#198053}.tiny-tag{display:inline-block;font-size:10px;color:#8899b5;background:#eff3f8;border-radius:5px;padding:4px 6px;margin:2px}.tiny-tag.yes{background:#e1f7ed;color:#17764a}.action-link{border:1px solid #b9c9eb;border-radius:7px;color:#2956ba;background:#f7faff;font-weight:800;font-size:11px;padding:7px 11px}.pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;color:#8190a6;font-size:12px;padding:18px 4px 0}.pagination>div{display:flex;align-items:center;gap:10px}.page-label{font-weight:800;color:#28498c}.login-pane{min-height:550px;display:grid;place-items:center;padding:45px 16px}.login-card{max-width:420px;width:100%;padding:32px;border:1px solid #e4eaf5;border-radius:15px;box-shadow:0 12px 30px #2037630b}.login-avatar{background:#edf3ff;border-radius:16px;font-size:24px;width:58px;height:58px;display:grid;place-items:center}.login-card h2{font-size:23px;margin:16px 0 7px}.login-card p{font-size:12.5px;color:#8591a6;line-height:1.7;margin:0 0 25px}.login-card .field{margin-bottom:17px}.btn-full{width:100%;margin-top:7px}.admin-modal{width:min(100%,570px);text-align:left}.admin-modal .modal-icon{margin:0 0 12px}.admin-modal h2{font-size:20px}.admin-modal>p{margin-bottom:10px}.admin-modal .field{margin-top:15px}.record-details{background:#f3f7ff;border:1px solid #e0e9f8;padding:12px 13px;border-radius:10px;font-size:12px;display:grid;gap:7px;word-break:break-word;color:#546683}.record-details strong{color:#223f7e}.quick-status{display:grid;gap:11px;background:#f9fbff;border:1px solid #e5ebf6;border-radius:9px;padding:13px;margin:19px 0 10px}.check-row{display:flex;align-items:center;gap:10px;font-size:13px;color:#4a5a74}.check-row input{height:17px;width:17px;accent-color:#225bc7}.admin-modal .field-hint{display:block}.admin-modal .modal-actions{margin-top:18px}.toast{position:fixed;bottom:20px;right:20px;z-index:100;padding:13px 19px;border-radius:9px;background:#163a86;color:white;box-shadow:0 5px 24px #0004;font-size:13px}
@media(max-width:800px){.page-shell,.admin-shell{margin:0;border-radius:0;min-height:100vh}.top-header{padding:20px;align-items:flex-start}.header-left{gap:10px}.header-symbol{width:36px;height:36px;font-size:20px}.top-header h1{font-size:19px}.top-header p{font-size:11px}.head-actions{gap:6px}.head-actions .btn{min-height:36px;padding:8px 10px;font-size:11px}.content-body{padding:20px}.form-footer{flex-direction:column;align-items:stretch}.form-footer .btn{width:100%}.filters{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-buttons{grid-column:span 2}.dashboard{padding:20px}.dashboard-head h2{font-size:18px}.site-footer{flex-wrap:wrap}}
@media(max-width:570px){.top-header{flex-direction:column;gap:16px}.head-actions{width:100%}.head-actions .btn{flex:1}.form-grid{grid-template-columns:1fr;gap:16px}.field.full{grid-column:auto}.today-pill{display:none}.captcha-input-group{flex-wrap:wrap}.captcha-input-group input{width:100%}.captcha-image{max-width:calc(100% - 54px)}.captcha-image img{max-width:100%}.content-body{padding:18px 15px}.section-two{margin-top:21px}.stats-row{gap:7px}.stat{padding:12px 9px}.stat strong{font-size:22px}.stat span{font-size:10px}.dashboard-head{align-items:flex-start;flex-direction:column}.filters{grid-template-columns:1fr}.filter-buttons{grid-column:auto}.pagination{align-items:flex-start;flex-direction:column}.modal{padding:22px 17px}.admin-header{padding:20px 16px}}
