/* Falcon portal: same design system as index.html (Manrope, #2547f4, 16px cards, 12px buttons) */
body[data-active]{--bg:#f6f7fb;--ink:#101828;--mut:#5b6577;--line:#e2e6ef;--ac:#2547f4;--ac-d:#1a37c9;--ac-soft:#eef1ff;--ok:#16a34a;--r:16px;--px:clamp(20px,4vw,56px);font-family:"Manrope","Segoe UI",system-ui,-apple-system,Arial,sans-serif;background:var(--bg);color:var(--ink);font-size:15px;line-height:1.65;-webkit-font-smoothing:antialiased;margin:0}
body[data-active] *{box-sizing:border-box}
body[data-active] a{color:inherit;text-decoration:none}
body[data-active] h1,body[data-active] h2,body[data-active] h3{line-height:1.15;letter-spacing:-.025em;font-weight:800}
body[data-active] .wrap{max-width:1360px;margin:0 auto;padding:0 var(--px)}
body[data-active] .ph{position:sticky;top:0;z-index:30;background:rgba(246,247,251,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
body[data-active] .pn{display:flex;align-items:center;gap:20px;height:72px}
body[data-active] .logo{font-weight:800;font-size:1.4rem;letter-spacing:-.03em}
body[data-active] .logo b{color:var(--ac)}
body[data-active] .tag{background:var(--ac-soft);color:var(--ac);font-weight:800;font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;padding:5px 10px;border-radius:99px}
body[data-active] .pnav{display:flex;gap:4px;margin-left:14px}
body[data-active] .pnav a{padding:9px 14px;border-radius:10px;font-weight:700;font-size:.92rem;color:var(--mut)}
body[data-active] .pnav a:hover{color:var(--ink)}
body[data-active] .pnav a.on{background:var(--ac-soft);color:var(--ac)}
body[data-active] .nav-r{margin-left:auto;display:flex;align-items:center;gap:10px}
body[data-active] .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 22px;border-radius:12px;font:700 .92rem "Manrope","Segoe UI",sans-serif;border:1px solid var(--line);background:#fff;color:var(--ink);cursor:pointer;transition:background .15s,border-color .15s;white-space:nowrap;box-shadow:none}
body[data-active] .btn:hover{border-color:var(--ink);transform:none}
body[data-active] .btn.p,body[data-active] .btn-primary{background:var(--ac);border-color:var(--ac);color:#fff}
body[data-active] .btn.p:hover,body[data-active] .btn-primary:hover{background:var(--ac-d);border-color:var(--ac-d)}
body[data-active] .btn-sm{height:36px;padding:0 14px;font-size:.85rem;border-radius:10px}
body[data-active] .btn-danger{background:#dc3545;border-color:#dc3545;color:#fff}
body[data-active] .btn-success{background:var(--ok);border-color:var(--ok);color:#fff}
body[data-active] .btn[disabled]{opacity:.45;cursor:not-allowed}
body[data-active] .menu{display:none;height:42px;padding:0 16px;border:1px solid var(--line);background:#fff;border-radius:10px;font:600 .9rem "Manrope",sans-serif;cursor:pointer}
body[data-active] .user-chip{display:flex;align-items:center;gap:10px;font-weight:700;font-size:.9rem}
body[data-active] .avatar{width:36px;height:36px;border-radius:50%;background:var(--ac);color:#fff;display:grid;place-items:center;font-weight:800}
body[data-active] .credit-chip{display:inline-flex;gap:5px;margin:0;padding:7px 14px;border:1px solid #d9e0ff;background:var(--ac-soft);color:var(--ac);border-radius:99px;font-size:.85rem;font-weight:800}
body[data-active] .pg{padding-top:48px;padding-bottom:80px}
body[data-active] .page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:28px}
body[data-active] .page-head h2{font-size:clamp(1.8rem,3vw,2.4rem);margin:0 0 6px}
body[data-active] .page-head p{color:var(--mut);font-size:1.02rem;margin:0}
body[data-active] .actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
body[data-active] .grid{display:grid;gap:20px}
body[data-active] .grid-2{grid-template-columns:1fr 1fr}
body[data-active] .grid-4{grid-template-columns:repeat(4,1fr)}
body[data-active] .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
body[data-active] .field{display:flex;flex-direction:column;gap:7px}
body[data-active] .card{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:28px 32px;box-shadow:none}
body[data-active] .card h3{font-size:1.2rem;margin:0 0 4px}
body[data-active] .card-sub,body[data-active] .help{color:var(--mut);font-size:.93rem}
body[data-active] .stat-label{font-size:.85rem;color:var(--mut);font-weight:700;text-transform:none;letter-spacing:0}
body[data-active] .stat-value{font-size:2.3rem;font-weight:800;letter-spacing:-.03em;line-height:1.2;margin:6px 0 2px;color:var(--ink)}
body[data-active] .stat-note{color:var(--mut);font-size:.88rem}
body[data-active] label{font-weight:700;font-size:.9rem}
body[data-active] input,body[data-active] select,body[data-active] textarea{width:100%;height:48px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:#fff;font:600 .95rem "Manrope","Segoe UI",sans-serif;color:var(--ink)}
body[data-active] textarea{height:auto;padding:12px 14px}
body[data-active] input[type=checkbox]{width:auto;height:auto;margin-right:6px}
body[data-active] input:focus,body[data-active] select:focus,body[data-active] textarea:focus{outline:0;border-color:var(--ac);box-shadow:0 0 0 3px #2547f426}
body[data-active] .table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}
body[data-active] table{width:100%;border-collapse:collapse}
body[data-active] th{background:var(--bg);font-size:.76rem;letter-spacing:.06em;text-transform:uppercase;color:var(--mut);font-weight:800;padding:12px 16px;text-align:left;white-space:nowrap}
body[data-active] td{padding:14px 16px;border-top:1px solid var(--line);font-size:.92rem}
body[data-active] .badge{display:inline-block;padding:4px 11px;border-radius:99px;font-size:.78rem;font-weight:800;background:var(--ac-soft);color:var(--ac)}
body[data-active] .badge-success{background:#e4f7ed;color:#148653}
body[data-active] .badge-warning{background:#fff3dc;color:#a76500}
body[data-active] .badge-danger{background:#fde8ea;color:#c42b3b}
body[data-active] .notice{background:var(--ac-soft);border:1px solid #d9e0ff;border-radius:12px;padding:14px 16px;font-size:.92rem;color:#2b3957}
body[data-active] .alert{padding:13px 16px;border-radius:12px;font-weight:600;font-size:.92rem;margin-bottom:16px}
body[data-active] .alert-error{background:#fde8ea;border:1px solid #f6c5cb;color:#a11d2c}
body[data-active] .alert-ok{background:#e4f7ed;border:1px solid #bfe8d2;color:#11693f}
body[data-active] .alert-warn{background:#fff8e6;border:1px solid #f5dfa2;color:#8a5a00}
body[data-active] .command-box{position:relative;background:var(--ink);border-radius:14px;padding:22px;color:#c8d7eb}
body[data-active] .command-box code{display:block;padding-right:70px;font:500 13px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;white-space:normal}
body[data-active] .command-box .copy{position:absolute;top:12px;right:12px;background:transparent;color:#fff;border-color:#2b3957}
body[data-active] .empty{color:var(--mut);text-align:center;padding:34px}
body[data-active] .chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
body[data-active] .chip{border:1px solid #d9e0ff;background:var(--ac-soft);color:var(--ac);border-radius:99px;padding:6px 14px;font:800 .82rem "Manrope",sans-serif;cursor:pointer}
body[data-active] .chip:hover{background:var(--ac);color:#fff}
body[data-active] .need{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
body[data-active] .need>div{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:28px 32px}
body[data-active] .need h3{font-size:1.1rem;margin:14px 0 6px}
body[data-active] .need p{color:var(--mut);font-size:.95rem;margin:0}
body[data-active] .num{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--ac);color:#fff;font-weight:800}
body[data-active] .auth2{display:grid;grid-template-columns:1.1fr .9fr;gap:72px;align-items:center;min-height:calc(100vh - 140px);padding-top:40px;padding-bottom:40px}
body[data-active] .auth2 h1{font-size:clamp(2rem,3.6vw,3rem);margin:0 0 18px;max-width:14em}
body[data-active] .lead{color:var(--mut);font-size:1.1rem;max-width:31em;margin:0 0 32px}
body[data-active] .sum{list-style:none;margin:0;padding:10px 32px;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 24px 56px rgba(16,24,40,.09)}
body[data-active] .sum li{display:flex;align-items:center;gap:20px;padding:20px 0}
body[data-active] .sum li+li{border-top:1px solid var(--line)}
body[data-active] .sum .ic{flex:none;width:48px;height:48px;border-radius:14px;background:var(--ac-soft);color:var(--ac);display:grid;place-items:center}
body[data-active] .sum svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body[data-active] .sum span{display:block;color:var(--mut);font-size:.88rem;line-height:1.3}
body[data-active] .sum strong{display:block;font-size:1.05rem;font-weight:700}
body[data-active] .auth-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:40px;box-shadow:0 24px 56px rgba(16,24,40,.09)}
body[data-active] .auth-card h2{font-size:1.6rem;margin:0 0 6px}
body[data-active] .auth-card .sub{color:var(--mut);margin:0 0 24px}
body[data-active] .auth-footer{text-align:center;color:var(--mut);margin-top:20px;font-size:.92rem}
body[data-active] .auth-footer a{color:var(--ac);font-weight:700}
body[data-active] .pf{background:var(--ink);color:#aab4c8;text-align:center;font-size:.9rem;padding:20px 0}
body[data-active] .pf a:hover{color:#fff}
@media(max-width:1000px){body[data-active] .auth2{grid-template-columns:1fr;gap:36px;min-height:0}body[data-active] .grid-4,body[data-active] .need{grid-template-columns:1fr 1fr}body[data-active] .menu{display:block}body[data-active] .pnav{display:none;position:absolute;left:0;right:0;top:72px;background:var(--bg);border-bottom:1px solid var(--line);padding:8px var(--px) 16px;flex-direction:column;margin:0}body[data-active] .pnav.open{display:flex}}
@media(max-width:700px){body[data-active] .grid-2,body[data-active] .grid-4,body[data-active] .need,body[data-active] .form-grid{grid-template-columns:1fr}body[data-active] #topName{display:none}body[data-active] .card,body[data-active] .auth-card{padding:22px}}

[hidden]{display:none!important}
body[data-active] .stats{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
body[data-active] .sc{display:flex;align-items:center;gap:18px;background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:24px 26px}
body[data-active] .sc.hot{border-color:var(--ac);background:var(--ac-soft)}
body[data-active] .sc .ic{flex:none;width:52px;height:52px;border-radius:14px;background:var(--ac-soft);color:var(--ac);display:grid;place-items:center}
body[data-active] .sc.hot .ic{background:#fff}
body[data-active] .sc svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body[data-active] .sc span{display:block;color:var(--mut);font-size:.88rem;font-weight:700;line-height:1.3}
body[data-active] .sc strong{display:block;font-size:1.9rem;font-weight:800;letter-spacing:-.03em;line-height:1.25}
body[data-active] .cbal{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;background:var(--ink);color:#fff;border-radius:24px;padding:34px 40px;margin-bottom:20px}
body[data-active] .cbal span{display:block;color:#aab4c8;font-weight:700;font-size:.9rem}
body[data-active] .cbal strong{font-size:3rem;font-weight:800;letter-spacing:-.04em;line-height:1.1}
body[data-active] .cbal small{color:#aab4c8;margin-left:8px;font-size:1rem}
body[data-active] .rates{display:flex;gap:10px;flex-wrap:wrap}
body[data-active] .rates b{border:1px solid #2b3957;border-radius:99px;padding:8px 16px;font-size:.88rem}
body[data-active] .ins{grid-template-columns:1.05fr .95fr;align-items:start}
body[data-active] .ins .card{position:relative}
body[data-active] .ch{display:flex;gap:14px;align-items:flex-start;margin-bottom:18px}
body[data-active] .ch h3{margin:0}
body[data-active] .ch .card-sub{margin:2px 0 0}
body[data-active] .pw{display:flex;gap:10px}
body[data-active] .term{background:var(--ink);border-radius:14px;overflow:hidden}
body[data-active] .tbar{display:flex;align-items:center;gap:6px;padding:10px 14px;border-bottom:1px solid #263246}
body[data-active] .tbar i{width:8px;height:8px;border-radius:50%;background:#6b788c}
body[data-active] .tbar span{color:#8998ad;font-size:.8rem;margin:0 auto 0 8px}
body[data-active] .tbar .btn{background:transparent;color:#fff;border-color:#2b3957;height:30px}
body[data-active] .term code{display:block;padding:18px;min-height:130px;color:#c8d7eb;font:500 13px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;white-space:normal}
body[data-active] .lockbox{position:absolute;inset:0;background:rgba(246,247,251,.95);border-radius:var(--r);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:30px;z-index:2}
body[data-active] .lockbox strong{font-size:1.2rem}
body[data-active] .lockbox span{color:var(--mut);max-width:22em}
@media(max-width:1000px){body[data-active] .stats{grid-template-columns:1fr 1fr}body[data-active] .ins{grid-template-columns:1fr}}
@media(max-width:700px){body[data-active] .stats{grid-template-columns:1fr}body[data-active] .cbal{padding:26px}}
