@charset "UTF-8";
:root{--navy:#0b213c;--navy2:#122e52;--blue:#155d88;--teal:#0e958e;--aqua:#3bc6c0;--light:#f4f7fb;--ink:#162b42;--muted:#6e8095;--line:#e3eaf2;--white:#fff;--warning:#c88412;--red:#cf4f57;--green:#17865e;--shadow:0 14px 45px rgba(22,50,84,.065)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{font-family:"Segoe UI",Roboto,"Noto Sans",Arial,sans-serif;background:var(--light);color:var(--ink);margin:0;font-size:14px;line-height:1.62;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}svg{max-width:100%}
.boot{min-height:85vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;color:var(--muted)}.spin{border:3px solid #d5e7ee;border-top-color:var(--teal);border-radius:50%;height:34px;width:34px;animation:turn .7s linear infinite}@keyframes turn{to{transform:rotate(360deg)}}
#toast{position:fixed;z-index:60;right:20px;bottom:18px;min-width:240px;max-width:min(430px,calc(100vw - 40px));pointer-events:none}.toast{padding:14px 18px;border-radius:12px;background:#123554;color:white;box-shadow:0 10px 40px #0a244650;animation:slide .2s ease-out;margin-top:8px;border-left:4px solid var(--aqua)}.toast.error{border-color:#f37b7b}.toast.success{border-color:#57d6af}@keyframes slide{from{transform:translateY(10px);opacity:0}to{transform:translateY(0);opacity:1}}
/* Authentication landing */
.auth-page{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(390px,.85fr);min-height:100vh;background:#fff}.auth-art{position:relative;overflow:hidden;background:radial-gradient(circle at 78% 30%,#175d83 0%,transparent 41%),linear-gradient(135deg,#0b1f3b,#103456 65%,#0c506b);padding:45px clamp(26px,5vw,90px);color:#fff;display:flex;flex-direction:column}.logo-auth{display:flex;gap:15px;align-items:center;font-size:14px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.logo-auth img{width:86px;height:52px;object-fit:contain;border-radius:7px;background:#0b213c}.auth-main-copy{position:relative;z-index:1;margin:auto 0;max-width:650px}.eyebrow{font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:850;color:#12a49b}.auth-art .eyebrow{color:#6be7df}.auth-art h1{font-size:clamp(42px,5vw,74px);line-height:1.20;letter-spacing:-.028em;margin:17px 0 20px}.auth-art h1 span{color:#66e0d3}.auth-art p{max-width:525px;color:#cadcea;font-size:17px;line-height:1.7}.auth-features{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:44px}.auth-feature{border:1px solid #ffffff28;padding:16px;border-radius:14px;background:#ffffff0d;backdrop-filter:blur(5px)}.auth-feature b{display:block;font-size:19px;color:#9af9ed}.auth-feature small{display:block;color:#d1e4ed;margin-top:6px}.auth-globe{position:absolute;width:720px;height:720px;border:1px solid #ffffff19;border-radius:50%;right:-285px;top:10%;box-shadow:0 0 0 76px #ffffff06,0 0 0 170px #ffffff06;pointer-events:none}.auth-footer{font-size:12px;color:#9eb3c7}.auth-side{display:flex;align-items:center;justify-content:center;padding:48px 24px}.auth-box{max-width:426px;width:100%}.auth-box h2{font-size:35px;letter-spacing:-.012em;margin:9px 0 5px}.auth-box>p{color:var(--muted);margin:0 0 30px}.auth-switch{display:flex;background:#eef4f8;border-radius:12px;padding:5px;margin:0 0 26px}.auth-switch button{flex:1;border:0;background:transparent;padding:12px;border-radius:9px;font-weight:750;color:#6f8495}.auth-switch button.active{background:#fff;color:var(--navy);box-shadow:0 2px 9px #193b5617}
/* Shared UI */
label{display:block;font-size:12px;color:#496277;font-weight:750;margin-bottom:7px}.field{margin:0 0 17px}input,select,textarea{width:100%;min-width:0;border:1px solid #dbe4ec;background:#fff;color:var(--ink);border-radius:10px;outline:none;padding:12px 13px;transition:border-color .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{border-color:#52bab5;box-shadow:0 0 0 3px #1bb0a31b}input[type=file]{padding:11px}input::placeholder{color:#9aabba}.field-hint{font-size:11px;color:#8798a9;margin-top:7px}.btn{border:1px solid transparent;background:#edf4f6;color:var(--ink);padding:11px 16px;border-radius:10px;font-weight:750;display:inline-flex;justify-content:center;align-items:center;gap:8px;text-align:center;white-space:normal}.btn:hover{filter:brightness(.96)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.primary{background:linear-gradient(110deg,#009c9d,#08759c);color:white;box-shadow:0 8px 20px #008d9930}.btn.dark{background:#12385b;color:white}.btn.outline{background:white;color:#21506b;border-color:#d3e0e9}.btn.danger{background:#fff0ef;color:#c04649;border-color:#f5d7d6}.btn.mini{font-size:11px;padding:7px 10px;border-radius:7px}.btn.full{width:100%}.inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.muted{color:var(--muted)}.small{font-size:12px}.tiny{font-size:11px}.num{font-variant-numeric:tabular-nums}.nowrap{white-space:nowrap}.nowrap .btn{white-space:nowrap}.section-top{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}.section-top h1{font-size:29px;letter-spacing:-.035em;margin:5px 0}.section-top p{color:var(--muted);margin:2px 0}.badge{display:inline-flex;align-items:center;font-size:11px;font-weight:850;padding:4px 10px;border-radius:100px;letter-spacing:.02em;background:#edf3f8;color:#426985;white-space:nowrap}.badge.green{background:#e7f7ee;color:#187f56}.badge.orange{background:#fff3df;color:#a86b14}.badge.red{background:#ffedee;color:#b74249}.badge.blue{background:#e9f3fc;color:#256d9d}.kbd{font:12px ui-monospace,Consolas,monospace;background:#eef4f7;border:1px solid #e2e9f0;padding:3px 6px;border-radius:5px}.empty-state{text-align:center;padding:42px 15px;background:#f8fafc;border-radius:13px;color:#8094a7;border:1px dashed #dbe5ed}.empty-state b{display:block;color:#425b73;font-size:15px;margin-bottom:8px}.notice{padding:14px 16px;border-radius:12px;background:#fff9ec;border:1px solid #f3dfaf;color:#805e23;font-size:12px;line-height:1.7}.notice.info{background:#ecf7fa;border-color:#d2edf0;color:#2f687d}.notice strong{color:inherit}.divider{height:1px;background:var(--line);margin:20px 0}
/* App shell */
.app-layout{display:flex;min-height:100vh}.sidebar{width:255px;flex-shrink:0;background:#0b233f;color:#c0d4e4;display:flex;flex-direction:column;position:fixed;top:0;left:0;bottom:0;z-index:32;box-shadow:12px 0 36px #11284214}.sb-brand{display:flex;align-items:center;gap:10px;padding:28px 24px 24px;border-bottom:1px solid #ffffff14}.sb-brand img{width:58px;height:37px;object-fit:contain}.sb-brand b{display:block;color:#fff;line-height:1.15;font-size:18px;letter-spacing:-.03em}.sb-brand b em{font-style:normal;color:#4cddca}.sb-brand small{font-size:9px;color:#86a7bf;letter-spacing:.1em}.sb-nav{padding:20px 13px;overflow-y:auto}.sb-group{font-size:10px;text-transform:uppercase;letter-spacing:.14em;font-weight:850;color:#6e91ae;margin:17px 14px 9px}.sb-nav button{display:flex;gap:12px;align-items:center;width:100%;border:0;border-radius:9px;background:none;color:#bdd0e1;padding:12px 15px;text-align:left;font-size:13px;font-weight:660;margin:3px 0}.sb-nav button:hover{background:#ffffff11;color:#fff}.sb-nav button.active{background:#0b5d74;color:#fff;box-shadow:inset 3px 0 0 #56e0cb}.sb-nav .ico{width:22px;text-align:center;font-size:17px}.sb-bottom{margin-top:auto;padding:20px;border-top:1px solid #ffffff1b}.sb-note{border:1px solid #ffffff16;background:#ffffff0a;border-radius:12px;padding:13px;color:#accedc;font-size:11px;line-height:1.5}.sb-bottom button{margin-top:14px;background:transparent;border:0;color:#dae7ef;font-weight:750;padding:8px 4px}.app-main{margin-left:255px;min-width:0;flex:1}.topbar{background:#fff;border-bottom:1px solid #e7edf3;height:77px;padding:0 36px;display:flex;align-items:center;justify-content:space-between;gap:14px;position:sticky;top:0;z-index:22}.topbar .breadcrumb{color:#7890a5;font-weight:750;font-size:12px}.topbar .breadcrumb b{color:#183955}.top-user{display:flex;align-items:center;gap:12px}.top-user .circle{width:37px;height:37px;border-radius:12px;background:#e1f5f2;color:#078b86;display:grid;place-items:center;font-size:15px;font-weight:900}.top-user strong{display:block;font-size:12px}.top-user small{display:block;color:#8596a6;font-size:10px}.top-date{font-size:11px;color:#718ba0;border-right:1px solid #e2e9ed;padding-right:20px}.main-content{padding:29px clamp(18px,3vw,43px) 60px;max-width:1650px;margin:auto}.top-menu{display:none;background:#e9f3f5;border:0;border-radius:8px;padding:9px 12px;font-size:20px}.scrim{display:none}.foot{color:#8ba0b1;font-size:11px;text-align:center;margin-top:30px}
/* cards, grids, tables */
.card{background:white;border:1px solid #e4eaf0;border-radius:16px;box-shadow:var(--shadow);padding:23px}.card h3{font-size:16px;margin:0 0 6px;letter-spacing:-.02em}.card .card-sub{color:var(--muted);font-size:12px;margin:0 0 16px}.card-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.card-header h3{margin:0}.grid{display:grid;gap:16px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.grid.halfwide{grid-template-columns:minmax(0,1.35fr) minmax(0,.9fr)}.stat-card{background:#fff;padding:23px;border:1px solid #e2eaf0;border-radius:15px;box-shadow:var(--shadow);position:relative;overflow:hidden}.stat-card:after{content:'';position:absolute;right:-24px;top:-28px;border-radius:50%;height:105px;width:105px;background:var(--glow,#eef9fc);opacity:.95}.stat-card .slabel{font-weight:750;font-size:12px;color:#7891a3}.stat-card .svalue{font-size:30px;font-weight:880;letter-spacing:-.018em;color:#12304e;line-height:1.35;margin-top:12px}.stat-card .sdesc{font-size:11px;color:#8fa0ae;margin-top:7px}.stat-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:11px;background:#ecf8f7;color:#17867f;font-size:18px}.table-wrap{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px;min-width:600px}th{text-transform:uppercase;letter-spacing:.07em;font-size:10px;color:#91a0af;font-weight:850;background:#fbfcfd}td,th{text-align:left;padding:13px 11px;border-bottom:1px solid #edf1f5;vertical-align:middle}td{color:#486176}td strong{color:#193956}tr:last-child td{border-bottom:0}td .btn{margin:2px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.form-grid .field{margin:0}.fullspan{grid-column:1/-1}.hero-app{background:linear-gradient(112deg,#0a294c,#0e5572);border-radius:19px;color:white;display:flex;justify-content:space-between;align-items:center;padding:30px 36px;overflow:hidden;position:relative;min-height:185px;margin-bottom:22px}.hero-app:after{content:'✈';position:absolute;right:35px;top:-70px;color:#ffffff15;font-size:200px;transform:rotate(-20deg)}.hero-app .eyebrow{color:#7fe9dc}.hero-app h2{font-size:27px;letter-spacing:-.012em;margin:8px 0}.hero-app p{color:#c2d7e5;margin:0;max-width:560px}.hero-app .btn{position:relative;z-index:2}
/* prediction */
.pred-result{padding-top:4px}.prob-view{display:flex;gap:30px;align-items:center;flex-wrap:wrap}.donut{width:164px;height:164px;flex:0 0 164px;border-radius:50%;background:conic-gradient(var(--tone,#2eaf98) calc(var(--pct,0)*1%),#edf2f5 0);display:grid;place-items:center}.donut-inner{display:grid;place-items:center;align-content:center;background:white;width:128px;height:128px;border-radius:50%;text-align:center}.donut-inner b{font-size:34px;letter-spacing:-.07em;color:#164361;line-height:1.1}.donut-inner span{font-size:10px;color:#93a2ac}.prob-details{flex:1;min-width:195px}.prob-details .risklabel{font-size:25px;font-weight:850;letter-spacing:-.012em;color:#194460;margin:8px 0}.mini-numbers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mini-number{border:1px solid #e9eef3;border-radius:12px;padding:14px}.mini-number b{font-size:22px;letter-spacing:-.03em;color:#194360;display:block}.mini-number small{color:#8398a8}.factorbar{display:flex;gap:12px;align-items:center;margin-bottom:14px;font-size:12px}.factorbar span{min-width:98px}.factorbar .track{height:9px;flex:1;background:#edf3f5;border-radius:999px;overflow:hidden}.factorbar .track i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#0c8b92,#6bcfc7)}.factorbar b{width:47px;text-align:right}
/* admin charts */
.bars{display:flex;gap:10px;align-items:end;height:170px;border-bottom:1px solid #dce7ec;padding:12px 2px 0}.barcol{flex:1;height:100%;display:flex;justify-content:end;align-items:center;flex-direction:column;gap:7px}.barcol .bar{background:linear-gradient(180deg,#41c8bc,#087e9c);width:min(45px,100%);border-radius:7px 7px 0 0;height:var(--height);min-height:4px}.barcol small{font-size:10px;color:#7895a4}.barcol b{font-size:11px;color:#315a72}.admin-blue{background:linear-gradient(130deg,#102c52,#145e7d)}
@media(max-width:1230px){.grid.four{grid-template-columns:repeat(2,1fr)}.grid.halfwide{grid-template-columns:1fr}.sidebar{width:215px}.app-main{margin-left:215px}.main-content{padding:25px}.topbar{padding:0 25px}}
@media(max-width:950px){.auth-page{grid-template-columns:1fr}.auth-art{min-height:295px;padding:30px 30px}.auth-main-copy{margin:26px 0 0}.auth-art h1{font-size:40px}.auth-art p{font-size:14px}.auth-features{display:none}.auth-footer{margin-top:15px}.auth-side{padding:35px 22px}.sidebar{transform:translateX(-100%);transition:transform .22s ease;width:255px}.sidebar.open{transform:none}.scrim.open{display:block;position:fixed;inset:0;background:#061b2c99;z-index:31}.app-main{margin-left:0}.top-menu{display:inline-flex}.topbar{height:67px}.grid.three{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.main-content{padding:17px 13px 40px}.top-date{display:none}.top-user{gap:6px}.top-user .circle{width:31px;height:31px}.topbar{padding:0 14px}.section-top{align-items:start;flex-direction:column;margin-bottom:17px}.section-top h1{font-size:24px}.card{padding:18px 14px;border-radius:13px}.grid.two,.grid.three,.grid.four,.grid.halfwide{grid-template-columns:1fr}.form-grid,.form-grid.three,.form-grid.four{grid-template-columns:1fr}.stat-card{padding:18px}.hero-app{padding:24px;align-items:start;gap:16px;flex-direction:column}.hero-app h2{font-size:22px}.prob-view{gap:16px}.donut{height:140px;width:140px;flex-basis:140px}.donut-inner{height:108px;width:108px}.mini-numbers{grid-template-columns:1fr 1fr}.auth-art h1{font-size:36px}.auth-side{padding:32px 20px}.auth-box h2{font-size:29px}}

.modal{border:0;border-radius:16px;padding:28px;width:min(440px,calc(100vw - 40px));box-shadow:0 28px 80px #051a36a8;color:var(--ink)}.modal::backdrop{background:#09223c99}.modal h2{margin:0 0 10px;font-size:23px}

/* Vietnamese typography and cross-platform fallback: no external font dependencies. */
html{font-synthesis:none;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body,button,input,select,textarea,option{font-family:"Segoe UI",Roboto,"Noto Sans",Arial,sans-serif}
h1,h2,h3,h4,h5,h6{line-height:1.26;overflow-wrap:break-word;font-kerning:normal}
.auth-art h1{line-height:1.20}
.auth-box h2,.section-top h1,.hero-app h2,.prob-details .risklabel{line-height:1.28}
.logo-auth,.sb-brand,.topbar,.badge{line-height:1.5}
button,input,textarea,select{line-height:1.5}
label,td,th,.card,.notice,.sb-nav button{overflow-wrap:break-word}
pre,code,.kbd{font-family:Consolas,"Noto Sans Mono","DejaVu Sans Mono",monospace}
@media(max-width:480px){.auth-art h1{font-size:clamp(30px,9vw,42px);line-height:1.24}.auth-box h2{line-height:1.3}}
