*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%;font-family:Inter,system-ui,Segoe UI,Arial,sans-serif;background:#edf3f8;color:#102039}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.phone-shell{min-height:100vh;max-width:480px;margin:0 auto;background:#f5f8fc;position:relative;padding-bottom:94px;box-shadow:0 0 0 1px #dfe7f1}.app-header{padding:calc(18px + env(safe-area-inset-top)) 18px 16px;background:linear-gradient(135deg,#062b53,#0d5fc1);color:#fff;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-radius:0 0 24px 24px}.eyebrow{font-size:11px;opacity:.8;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.app-header h1{font-size:22px;line-height:1.1;margin:5px 0 4px}.app-header p{font-size:12px;margin:0;opacity:.78}.header-actions{display:flex;gap:8px}.header-actions button,.logout{border:0;background:#ffffff24;color:#fff;border-radius:12px;width:42px;height:42px;display:grid;place-items:center}.header-actions svg,.bottom-nav svg,.logout svg{width:19px;height:19px}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.app-content{padding:16px}.license-card{background:linear-gradient(135deg,#0b3970,#1769ff);color:#fff;border-radius:22px;padding:18px;min-height:180px;position:relative;overflow:hidden;box-shadow:0 16px 36px #124f9b3d;display:flex;justify-content:space-between;gap:14px}.license-card.tall{min-height:250px;align-items:flex-start}.license-card:after{content:"";position:absolute;width:190px;height:190px;border-radius:50%;background:#ffffff17;right:-80px;bottom:-80px}.license-card span,.license-card strong,.license-card small{display:block;position:relative;z-index:1}.license-card span{font-size:11px;opacity:.82}.license-card strong{font-size:24px;margin:8px 0}.license-card small{font-size:11px;opacity:.9}.license-photo{width:70px;height:86px;border-radius:14px;background:#e8eef7;color:#173c67;display:grid;place-items:center;font-size:24px;font-weight:900;position:relative;z-index:1}.license-photo.large{width:92px;height:116px}.qr-mark{position:absolute;right:18px;bottom:18px;width:58px;height:58px;background:repeating-linear-gradient(45deg,#fff 0,#fff 4px,#0b3668 4px,#0b3668 8px);border:5px solid #fff;border-radius:8px;z-index:1}.driver-license-draft{position:relative;overflow:hidden;border-radius:18px;padding:14px;background:linear-gradient(135deg,#f9fcff,#e8f2ff 42%,#fff);border:1px solid #cfdced;box-shadow:0 14px 34px #183d6729;min-height:255px}.driver-license-draft:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(120deg,rgba(16,105,255,.13),transparent 35%,rgba(18,134,79,.11));pointer-events:none}.license-watermark{position:absolute;right:-18px;bottom:14px;font-size:82px;font-weight:900;color:#1769ff14;letter-spacing:.04em}.license-topline,.license-main,.license-class-row,.license-security-row,.license-detail-strip{position:relative;z-index:1}.license-topline{display:flex;align-items:start;justify-content:space-between;gap:10px;border-bottom:1px solid rgba(31,74,123,.16);padding-bottom:10px}.license-topline span,.license-security-row span,.license-identity small,.license-data-grid span,.license-back-draft span,.license-detail-strip span,.license-back-grid span{display:block;font-size:9px;font-weight:900;color:#52657d;text-transform:uppercase}.license-topline strong{display:block;font-size:14px;color:#102039}.license-topline b{font-size:10px;text-align:right;color:#1769ff;max-width:118px}.license-main{display:grid;grid-template-columns:86px 1fr;gap:12px;margin-top:12px}.license-portrait{height:128px;border-radius:12px;background:linear-gradient(180deg,#dce7f5,#f8fbff);border:1px solid #c3d4e8;display:grid;place-items:end center;padding-bottom:8px;box-shadow:inset 0 -42px #0b397014}.license-portrait span{width:54px;height:54px;border-radius:50%;background:#173c67;color:#fff;display:grid;place-items:center;font-weight:900;font-size:20px}.license-portrait small{font-size:9px;color:#52657d;font-weight:900;text-transform:uppercase}.license-identity h3{margin:4px 0 6px;font-size:17px;line-height:1.05;color:#102039}.license-number{display:inline-flex;background:#102039;color:#fff;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:900;margin-bottom:9px}.license-data-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.license-data-grid div,.license-detail-strip div,.license-back-grid div{background:#ffffffb8;border:1px solid rgba(207,220,237,.9);border-radius:10px;padding:7px}.license-data-grid strong,.license-security-row strong,.license-detail-strip strong,.license-back-grid strong{display:block;font-size:10px;color:#102039;margin-top:2px;line-height:1.25}.license-detail-strip{display:grid;grid-template-columns:1fr;gap:7px;margin-top:10px}.license-class-row{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.license-class-row span{border-radius:999px;background:#1769ff;color:#fff;font-size:10px;font-weight:900;padding:6px 9px}.license-security-row{display:grid;grid-template-columns:1fr 1fr 1.2fr 52px;gap:7px;align-items:end;margin-top:10px}.license-security-row>div{min-height:48px;background:#ffffffb3;border:1px solid rgba(207,220,237,.92);border-radius:10px;padding:7px}.license-signature strong{font-family:Georgia,serif;font-style:italic;font-size:13px}.license-qr{width:52px;height:52px;padding:0!important;background:repeating-linear-gradient(90deg,#102039 0,#102039 4px,#fff 4px,#fff 8px)!important;border:5px solid #fff!important;box-shadow:0 0 0 1px #cfdced}.license-back-draft{margin-top:12px;background:#fff;border:1px solid #dfe7f1;border-radius:16px;padding:12px;box-shadow:0 6px 18px #233f690f}.license-back-draft strong{display:block;font-size:12px;margin-top:4px}.license-back-draft small{display:block;color:#6d7b90;font-size:10px;margin-top:10px}.license-back-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin-top:10px}.barcode-mark{height:42px;margin-top:10px;border-radius:8px;background:repeating-linear-gradient(90deg,#102039 0,#102039 3px,#fff 3px,#fff 6px,#102039 6px,#102039 9px,#fff 9px,#fff 15px);border:1px solid #dfe7f1}.metric-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:14px 0}.metric{background:#fff;border:1px solid #dfe7f1;border-radius:14px;padding:14px;min-height:80px}.metric span{font-size:11px;color:#6d7b90;font-weight:700}.metric strong{display:block;font-size:21px;margin-top:8px}.metric.good strong{color:#12864f}.metric.bad strong{color:#d33c47}.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:14px}.quick-grid button,.quick-grid a,.record-card button,.form-card button,.balance-card button,.section-title button,.sheet-head button{border:1px solid #d8e3f1;background:#fff;color:#1769ff;border-radius:13px;padding:12px;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:8px}.quick-grid svg,.record-card svg,.form-card svg,.balance-card svg,.section-title svg,.apk-link svg{width:18px;height:18px}.download-tile{grid-column:1/-1}.notice-list,.info-list,.record-card,.form-card,.balance-card{background:#fff;border:1px solid #dfe7f1;border-radius:16px;padding:14px;box-shadow:0 6px 18px #233f690f}.notice-list h3{margin:0 0 10px;font-size:13px}.notice-list div{display:flex;gap:9px;align-items:center;padding:10px 0;border-top:1px solid #edf1f6;font-size:12px}.notice-list svg{width:18px;height:18px;color:#1769ff}.section-title{display:flex;align-items:center;justify-content:space-between;margin:4px 0 12px}.section-title h2{font-size:20px;margin:0}.info-list{display:flex;flex-direction:column;gap:0;margin-top:12px}.info-list div{display:flex;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid #edf1f6;font-size:12px}.info-list div:last-child{border-bottom:0}.info-list span{color:#6d7b90}.info-list strong{text-align:right}.record-card{margin-bottom:12px;display:grid;grid-template-columns:1fr auto;gap:10px;align-items:start}.record-card strong,.record-card span,.record-card small{display:block}.record-card strong{font-size:14px}.record-card span{font-size:12px;color:#475874;margin-top:4px}.record-card small{font-size:11px;color:#76849a;margin-top:4px}.record-card button{grid-column:1/-1}.pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:900;height:max-content}.pill.good{background:#eaf8f1;color:#12864f}.pill.warn{background:#fff7e8;color:#976813}.pill.bad{background:#fff0f1;color:#d33c47}.form-card{display:grid;gap:10px;margin-top:14px}.form-card h3{margin:0;font-size:14px}.form-field{display:grid;gap:6px}.form-field span{font-size:11px;font-weight:900;color:#52657d;text-transform:uppercase}.form-card input,.form-card select{width:100%;border:1px solid #d7e1ec;border-radius:12px;padding:13px;background:#fff;font-size:13px}.form-card button,.balance-card button{background:#1769ff;color:#fff;border:0}.balance-card{margin-bottom:14px}.balance-card span{font-size:12px;color:#6d7b90}.balance-card strong{display:block;font-size:32px;margin:8px 0 12px;color:#d33c47}.balance-card button{width:100%}.bottom-nav{position:fixed;left:50%;bottom:0;transform:translate(-50%);width:min(480px,100%);background:#fff;border-top:1px solid #dfe7f1;padding:8px 8px calc(8px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,1fr);gap:4px;z-index:20}.bottom-nav button{border:0;background:transparent;color:#6e7d91;border-radius:12px;padding:8px 4px;display:grid;place-items:center;gap:4px;font-size:10px;font-weight:800}.bottom-nav button.active{background:#eef4ff;color:#1769ff}.logout{position:fixed;right:calc(50% - 222px);bottom:92px;width:auto;height:38px;padding:0 12px;display:flex;gap:7px;font-size:11px;background:#102039;z-index:19}.login-screen{min-height:100vh;background:linear-gradient(135deg,#062b53,#0d5fc1);display:grid;place-items:center;padding:22px}.login-card{width:min(390px,100%);background:#fff;border-radius:24px;padding:22px;box-shadow:0 20px 50px #00000047}.brand-badge{width:64px;height:64px;border-radius:18px;background:linear-gradient(140deg,#1871d4,#21b269);color:#fff;display:grid;place-items:center;font-weight:900;font-size:20px}.login-card h1{margin:18px 0 8px}.login-card p{color:#64738a;font-size:13px;line-height:1.5}.login-card label{display:block;margin:13px 0 6px;font-size:12px;font-weight:800}.login-card input{width:100%;border:1px solid #d7e1ec;border-radius:13px;padding:13px}.login-card button,.apk-link{margin-top:16px;border:0;background:#1769ff;color:#fff;border-radius:14px;padding:13px;width:100%;font-weight:900;display:flex;align-items:center;justify-content:center;gap:8px}.apk-link{margin-top:10px;background:#102039}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#06101e9e;z-index:30;display:flex;align-items:flex-end}.sheet{width:min(480px,100%);margin:0 auto;background:#fff;border-radius:22px 22px 0 0;padding:16px 16px calc(18px + env(safe-area-inset-bottom));max-height:86vh;overflow:auto}.sheet-head{display:flex;justify-content:space-between;align-items:center}.sheet-head h2{margin:0}.evidence-stage{height:240px;border-radius:18px;background:linear-gradient(150deg,#1c2c3b,#6f8190);position:relative;overflow:hidden;color:#fff;margin:14px 0}.evidence-stage>span{position:absolute;top:12px;left:12px;background:#0000007a;padding:6px 8px;border-radius:8px;font-size:11px}.road{position:absolute;inset:auto 0 0;height:55%;background:#2f3d49;clip-path:polygon(12% 0,88% 0,100% 100%,0 100%)}.vehicle-shape{position:absolute;width:142px;height:74px;background:#d8dde2;border-radius:30px 30px 12px 12px;bottom:46px;left:50%;transform:translate(-50%);display:grid;align-items:end;justify-items:center;padding-bottom:7px}.vehicle-shape b{background:#fff;color:#13203a;border:3px solid #ffd72e;padding:3px 8px;font-size:12px}.ai-box{position:absolute;left:50%;bottom:28px;transform:translate(-50%);border:2px solid #ff4d57;padding:116px 12px 8px;width:190px;height:135px;font-size:10px;color:#fff}.toast{position:fixed;left:50%;bottom:92px;transform:translate(-50%);background:#102039;color:#fff;border-radius:12px;padding:12px 16px;font-size:12px;z-index:40;width:max-content;max-width:90%;box-shadow:0 10px 30px #0000003d}@media(max-width:390px){.app-header h1{font-size:19px}.license-card strong{font-size:20px}.metric strong{font-size:18px}.logout{right:12px}}
