@font-face{font-family:Thmanyah Sans;src:url(/fonts/ts-Light.woff2)format("woff2");font-weight:300;font-display:block}@font-face{font-family:Thmanyah Sans;src:url(/fonts/ts-Regular.woff2)format("woff2");font-weight:400;font-display:block}@font-face{font-family:Thmanyah Sans;src:url(/fonts/ts-Medium.woff2)format("woff2");font-weight:500;font-display:block}@font-face{font-family:Thmanyah Sans;src:url(/fonts/ts-Bold.woff2)format("woff2");font-weight:700;font-display:block}@font-face{font-family:Thmanyah Sans;src:url(/fonts/ts-Black.woff2)format("woff2");font-weight:900;font-display:block}@font-face{font-family:Thmanyah Serif Display;src:url(/fonts/tsd-Bold.woff2)format("woff2");font-weight:700;font-display:block}@font-face{font-family:Thmanyah Serif Display;src:url(/fonts/tsd-Black.woff2)format("woff2");font-weight:900;font-display:block}:root{--navy:#292e76;--navy-d:#1c2059;--navy-l:#ecedf7;--ink:#12152e;--muted:#6b6e80;--line:#e6e5e0;--bg:#f6f6f3;--card:#fff;--gray:#cbcbca;--gold:#ffbd59;--gold-l:#fff4e0;--green:#1e7f55;--green-l:#e5f4ec;--red:#b83a2e;--red-l:#fbeae7;--amber:#9a6408;--amber-l:#fdf1dc;--blue:#2457a6;--blue-l:#e6eefa;--radius:14px;--shadow:0 1px 2px #12152e0d, 0 4px 16px #12152e0a;--sans:"Thmanyah Sans";--serif:"Thmanyah Serif Display"}*{box-sizing:border-box}html,body,#root{height:100%}body{background:var(--bg);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;margin:0;font-size:15px;line-height:1.6}button,input,select,textarea{font-family:var(--sans);color:inherit;font-size:15px}a{color:var(--navy);text-decoration:none}h1,h2,h3,h4{margin:0;line-height:1.3}.serif{font-family:var(--serif)}.num{font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate}.app{min-height:100%;display:flex}.sidebar{background:var(--navy-d);color:#fff;flex-direction:column;flex-shrink:0;width:248px;height:100vh;padding:18px 14px;display:flex;position:sticky;top:0}.sidebar .brand{align-items:center;gap:10px;padding:4px 8px 18px;display:flex}.sidebar .brand img{filter:brightness(0)invert();height:22px}.sidebar nav{flex-direction:column;flex:1;gap:2px;display:flex;overflow-y:auto}.sidebar .nav-sep{color:#ffffff73;padding:14px 10px 4px;font-size:12px}.sidebar a.nav{color:#ffffffc7;border-radius:10px;align-items:center;gap:10px;padding:9px 10px;font-weight:500;display:flex}.sidebar a.nav:hover{color:#fff;background:#ffffff12}.sidebar a.nav.active{color:var(--navy-d);background:#fff}.sidebar .side-foot{color:#fff9;border-top:1px solid #ffffff1f;padding-top:12px;font-size:13px}.main{flex-direction:column;flex:1;min-width:0;display:flex}.topbar{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:20;border-bottom:1px solid var(--line);background:#f6f6f3eb;align-items:center;gap:12px;height:62px;padding:0 24px;display:flex;position:sticky;top:0}.topbar .spacer{flex:1}.topbar .mobile-brand{display:none}.content{width:100%;max-width:1280px;margin:0 auto;padding:24px}.bottom-nav{display:none}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:18px;display:flex}.page-head h1{font-family:var(--serif);color:var(--navy-d);font-size:30px;font-weight:900}.page-head p{color:var(--muted);margin:4px 0 0}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.card-pad{padding:18px}.card-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;padding:14px 18px;display:flex}.card-head h3{font-size:16px;font-weight:700}.grid{gap:16px;display:grid}.g2{grid-template-columns:repeat(2,minmax(0,1fr))}.g3{grid-template-columns:repeat(3,minmax(0,1fr))}.g4{grid-template-columns:repeat(4,minmax(0,1fr))}.row{align-items:center;gap:10px;display:flex}.wrap{flex-wrap:wrap}.between{justify-content:space-between}.col{flex-direction:column;gap:10px;display:flex}.muted{color:var(--muted)}.small{font-size:13px}.xs{font-size:12px}.bold{font-weight:700}.mt{margin-top:16px}.mb{margin-bottom:16px}.right{text-align:left}.ellipsis{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.btn{background:var(--navy);color:#fff;cursor:pointer;white-space:nowrap;border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;gap:7px;height:40px;padding:0 16px;font-weight:700;transition:background .15s,transform 50ms;display:inline-flex}.btn:hover{background:var(--navy-d)}.btn:active{transform:translateY(1px)}.btn:disabled{opacity:.55;cursor:not-allowed}.btn.ghost{color:var(--navy);border-color:var(--line);background:0 0}.btn.ghost:hover{background:var(--navy-l)}.btn.light{background:var(--navy-l);color:var(--navy)}.btn.light:hover{background:#dfe1f2}.btn.danger{background:var(--red-l);color:var(--red)}.btn.success{background:var(--green)}.btn.gold{background:var(--gold);color:var(--ink)}.btn.sm{border-radius:8px;height:32px;padding:0 11px;font-size:13px}.btn.icon{width:40px;padding:0}.btn.icon.sm{width:32px}.btn.block{width:100%}.field{flex-direction:column;gap:5px;display:flex}.field label{color:var(--muted);font-size:13px;font-weight:500}.input,.select,.textarea{border:1px solid var(--line);background:#fff;border-radius:10px;outline:none;width:100%;height:42px;padding:0 12px;transition:border-color .15s,box-shadow .15s}.textarea{resize:vertical;height:auto;min-height:92px;padding:10px 12px;line-height:1.6}.input:focus,.select:focus,.textarea:focus{border-color:var(--navy);box-shadow:0 0 0 3px #292e761f}.input.ltr{text-align:right;direction:ltr}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.form-grid .full{grid-column:1/-1}.badge{white-space:nowrap;background:var(--navy-l);color:var(--navy);border-radius:999px;align-items:center;gap:5px;padding:2px 10px;font-size:12px;font-weight:700;display:inline-flex}.badge.green{background:var(--green-l);color:var(--green)}.badge.red{background:var(--red-l);color:var(--red)}.badge.amber{background:var(--amber-l);color:var(--amber)}.badge.blue{background:var(--blue-l);color:var(--blue)}.badge.gray{color:var(--muted);background:#efefec}.badge.gold{background:var(--gold-l);color:#7a4d00}.tabs{border-bottom:1px solid var(--line);scrollbar-width:none;gap:4px;margin-bottom:16px;display:flex;overflow-x:auto}.tabs button{cursor:pointer;color:var(--muted);white-space:nowrap;background:0 0;border:none;border-bottom:2px solid #0000;margin-bottom:-1px;padding:10px 14px;font-weight:700}.tabs button.active{color:var(--navy);border-bottom-color:var(--navy)}.pills{flex-wrap:wrap;gap:6px;display:flex}.pills button{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:999px;padding:5px 13px;font-size:13px;font-weight:500}.pills button.active{background:var(--navy);border-color:var(--navy);color:#fff}table.table{border-collapse:collapse;width:100%}.table th{text-align:right;color:var(--muted);border-bottom:1px solid var(--line);white-space:nowrap;background:#fafaf8;padding:10px 14px;font-size:12px;font-weight:700}.table td{border-bottom:1px solid var(--line);vertical-align:middle;padding:11px 14px}.table tr:last-child td{border-bottom:none}.table tr.click{cursor:pointer}.table tr.click:hover td{background:#fafaf8}.table-wrap{overflow-x:auto}.stat{padding:16px 18px}.stat .label{color:var(--muted);align-items:center;gap:6px;font-size:13px;display:flex}.stat .value{font-family:var(--serif);color:var(--navy-d);margin-top:4px;font-size:26px;font-weight:900}.stat .sub{color:var(--muted);font-size:12px}.progress{background:#eeeeea;border-radius:99px;height:8px;overflow:hidden}.progress>div{background:var(--navy);border-radius:99px;height:100%}.empty{text-align:center;color:var(--muted);padding:40px 18px}.empty svg{color:var(--gray);margin-bottom:8px}.empty h4{color:var(--ink);margin-bottom:4px;font-size:16px}.list-item{border-bottom:1px solid var(--line);align-items:center;gap:12px;padding:12px 18px;display:flex}.list-item:last-child{border-bottom:none}.list-item .ic{background:var(--navy-l);width:36px;height:36px;color:var(--navy);border-radius:10px;flex-shrink:0;place-items:center;display:grid}.list-item .ic.red{background:var(--red-l);color:var(--red)}.list-item .ic.amber{background:var(--amber-l);color:var(--amber)}.list-item .ic.green{background:var(--green-l);color:var(--green)}.list-item .ic.gold{background:var(--gold-l);color:#7a4d00}.list-item .grow{flex:1;min-width:0}.avatar{background:var(--navy-l);width:38px;height:38px;color:var(--navy);border-radius:50%;flex-shrink:0;place-items:center;font-weight:700;display:grid}.avatar.sm{width:30px;height:30px;font-size:13px}.modal-back{z-index:100;background:#12152e73;place-items:center;padding:16px;animation:.12s fade;display:grid;position:fixed;inset:0}.modal{background:#fff;border-radius:18px;flex-direction:column;width:100%;max-width:640px;max-height:90vh;display:flex;box-shadow:0 20px 60px #0003}.modal.wide{max-width:900px}.modal-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:16px 20px;display:flex}.modal-head h3{font-size:18px;font-weight:700}.modal-body{padding:20px;overflow-y:auto}.modal-foot{border-top:1px solid var(--line);justify-content:flex-start;gap:8px;padding:14px 20px;display:flex}@keyframes fade{0%{opacity:0}to{opacity:1}}.dropdown{z-index:50;width:360px;max-height:460px;position:absolute;top:calc(100% + 8px);left:0;overflow-y:auto}.rel{position:relative}.dot{background:var(--red);color:#fff;border-radius:99px;place-items:center;min-width:17px;height:17px;padding:0 4px;font-size:11px;font-weight:700;display:grid;position:absolute;top:4px;left:4px}.toast-wrap{z-index:200;flex-direction:column;align-items:center;gap:8px;display:flex;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}.toast{background:var(--ink);color:#fff;border-radius:12px;padding:10px 18px;font-weight:500;animation:.15s fade;box-shadow:0 8px 24px #0003}.toast.err{background:var(--red)}.spinner{border:3px solid var(--navy-l);border-top-color:var(--navy);border-radius:50%;width:22px;height:22px;animation:.7s linear infinite spin}.center{place-items:center;min-height:200px;display:grid}.fullcenter{place-items:center;min-height:100vh;display:grid}@keyframes spin{to{transform:rotate(360deg)}}.auth{grid-template-columns:1fr 1fr;min-height:100vh;display:grid}.auth-side{background:var(--navy-d);color:#fff;flex-direction:column;justify-content:space-between;padding:48px;display:flex;position:relative;overflow:hidden}.auth-side img{filter:brightness(0)invert();align-self:flex-start;height:26px}.auth-side h2{font-family:var(--serif);font-size:40px;font-weight:900;line-height:1.25}.auth-side .orbit{border:1px solid #ffffff14;border-radius:50%;width:640px;height:640px;position:absolute;bottom:-260px;left:-220px}.auth-side .orbit.o2{border-color:#ffffff1f;width:440px;height:440px;bottom:-160px;left:-120px}.auth-side .orbit.o3{border-color:#ffbd5959;width:240px;height:240px;bottom:-60px;left:-20px}.auth-form{place-items:center;padding:32px;display:grid}.auth-form .box{width:100%;max-width:420px}.auth-form h1{font-family:var(--serif);color:var(--navy-d);margin-bottom:6px;font-size:30px;font-weight:900}.doc-sheet{border:1px solid var(--line);background:#fff;border-radius:12px;padding:32px}.doc-sheet .doc-head{border-bottom:2px solid var(--navy);justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px;padding-bottom:16px;display:flex}.doc-sheet .doc-title{font-family:var(--serif);color:var(--navy-d);font-size:26px;font-weight:900}.items-table input{background:0 0;border:1px solid #0000;border-radius:8px;width:100%;height:36px;padding:0 8px}.items-table input:hover{border-color:var(--line)}.items-table input:focus{border-color:var(--navy);background:#fff;outline:none}.totals{width:380px;margin-inline-start:auto}.totals .row{border-bottom:1px dashed var(--line);justify-content:space-between;padding:6px 0}.totals .row.grand{color:var(--navy-d);border-bottom:none;font-size:18px;font-weight:900}.post{border-bottom:1px solid var(--line);padding:16px 18px}.post:last-child{border-bottom:none}.post .body{white-space:pre-wrap;margin:10px 0}.post img.pimg{border:1px solid var(--line);object-fit:cover;border-radius:12px;max-width:100%;max-height:420px}.post .actions{gap:6px;display:flex}.post .actions button{color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:8px;align-items:center;gap:5px;padding:5px 8px;font-weight:500;display:inline-flex}.post .actions button:hover{background:var(--bg)}.post .actions button.on{color:var(--red)}.comment{gap:8px;padding:6px 0;display:flex}.comment .bubble{background:var(--bg);border-radius:12px;flex:1;padding:7px 12px}.chat{grid-template-columns:300px 1fr;height:calc(100vh - 170px);min-height:460px;display:grid}.chat .threads{border-left:1px solid var(--line);overflow-y:auto}.chat .thread{border-bottom:1px solid var(--line);cursor:pointer;padding:12px 16px}.chat .thread.active{background:var(--navy-l)}.chat .msgs{flex-direction:column;display:flex}.chat .msg-list{flex-direction:column;flex:1;gap:8px;padding:16px;display:flex;overflow-y:auto}.chat .msg{background:var(--bg);white-space:pre-wrap;border-radius:14px;align-self:flex-end;max-width:72%;padding:8px 13px}.chat .msg.mine{background:var(--navy);color:#fff;align-self:flex-start}.chat .composer{border-top:1px solid var(--line);gap:8px;padding:12px;display:flex}.portal-head{background:var(--navy-d);color:#fff;padding:22px 0 70px}.portal-head img{filter:brightness(0)invert();height:20px}.portal-wrap{max-width:960px;margin:0 auto;padding:0 18px}@media (width<=900px){.sidebar{display:none}.topbar{padding:0 14px}.topbar .mobile-brand{display:flex}.topbar .mobile-brand img{height:18px}.content{padding:16px 14px 96px}.g4{grid-template-columns:repeat(2,minmax(0,1fr))}.g3,.g2,.form-grid{grid-template-columns:1fr}.page-head h1{font-size:24px}.bottom-nav{z-index:40;border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom));background:#fff;display:flex;position:fixed;bottom:0;left:0;right:0}.bottom-nav a{color:var(--muted);flex-direction:column;flex:1;align-items:center;gap:2px;padding:4px 0;font-size:11px;font-weight:500;display:flex}.bottom-nav a.active{color:var(--navy)}.auth{grid-template-columns:1fr}.auth-side{display:none}.dropdown{width:auto;position:fixed;top:62px;left:8px;right:8px}.chat{grid-template-columns:1fr;height:auto}.chat.has-active .threads,.chat:not(.has-active) .msgs{display:none}.chat .msg-list{height:calc(100vh - 260px)}.totals{width:100%}.doc-sheet{padding:18px}.hide-m{display:none!important}.modal{max-height:94vh}}@media (width>=901px){.show-m{display:none!important}}@media print{.sidebar,.topbar,.bottom-nav,.no-print{display:none!important}body{background:#fff}.content{max-width:none;padding:0}.doc-sheet{border:none;padding:0}.card{box-shadow:none}}input[type=range]{accent-color:var(--navy);width:100%}
