:root{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;color:#142038;background:#f5f7fb;font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}a{color:#1c6d6e}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif;letter-spacing:-.045em}h1{font-size:35px;line-height:1.2;margin-bottom:12px}h2{font-size:19px}.hidden{display:none!important}.dot{color:#27bca5}.muted{color:#7b889b}.micro{font-size:10px;letter-spacing:.16em;color:#23ad9a;font-weight:800;text-transform:uppercase}.logo{display:flex;align-items:center;gap:11px;color:inherit}.logo-mark{width:39px;height:39px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#24bda4;color:#fff;font-size:28px;font-weight:800}.logo strong{font-family:Manrope;font-size:20px;letter-spacing:-.06em}.logo small{font-size:9px;letter-spacing:.19em;display:block;color:#8492aa;font-weight:800}.logo.lg .logo-mark{width:45px;height:45px}.logo.lg strong{font-size:26px}.auth-layout{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr}.auth-brand{background:radial-gradient(ellipse at 82% 40%,#223f4a 0,#111d32 55%,#0b1426 100%);color:#fff;padding:47px clamp(35px,5.4vw,95px);display:flex;flex-direction:column}.auth-brand .logo{color:#fff}.auth-hero{margin:auto 0;max-width:650px}.auth-hero h1{font-size:clamp(35px,4.2vw,65px);line-height:1.13;letter-spacing:-.06em;margin:23px 0}.auth-hero h1 em{font-style:normal;color:#66e2ca}.auth-hero p{font-size:17px;line-height:1.75;color:#b2bed1;max-width:520px}.eyebrow{font-size:11px;letter-spacing:.16em;font-weight:800;color:#8beedb}.pulse{display:inline-block;width:8px;height:8px;background:#56dbbe;border-radius:50%;margin-right:8px;box-shadow:0 0 0 4px #29746655}.hero-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:55px}.hero-grid div{border-top:1px solid #395062;padding-top:15px}.hero-grid b{display:block;color:#67dec7;font-size:26px}.hero-grid span{color:#b1c0d0;font-size:12px}.auth-footer{color:#667d98;font-size:10px;letter-spacing:.2em;font-weight:800}.auth-panel{display:grid;place-items:center;padding:30px}.auth-card{width:min(100%,420px)}.auth-card h2{font-size:29px;margin:10px 0}.auth-card .muted{margin-bottom:26px}.auth-mobile-logo{display:none}.form-stack{display:flex;flex-direction:column;gap:10px}.form-stack label,.field label{font-size:12px;font-weight:800;color:#43516a}input,select,textarea{border:1px solid #dfe5ed;padding:12px 13px;background:#fff;border-radius:10px;width:100%;color:#16253e;outline:none}input:focus,textarea:focus,select:focus{border-color:#26b4a2;box-shadow:0 0 0 3px #26b4a225}textarea{min-height:93px;resize:vertical}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;border:1px solid #dae2eb;padding:10px 15px;background:white;color:#253750;font-weight:800;font-size:12px;white-space:nowrap}.btn:hover{filter:brightness(.97)}.btn.primary{color:white;background:#176c67;border-color:#176c67}.btn.primary:hover{background:#0d5c57}.btn.danger{color:#a63a43;border-color:#f4d2d6;background:#fff8f9}.btn.tiny{padding:6px 9px;font-size:11px}.btn.full{width:100%;padding:14px 18px;justify-content:space-between;margin-top:14px}.auth-switch{text-align:center;margin:22px 0;font-size:12px;color:#8090a5}.auth-switch button{border:0;color:#13796e;font-weight:800;background:none}.auth-note{background:#eef8f6;border-radius:10px;padding:14px 16px;color:#526d73;line-height:1.6;font-size:12px}.auth-note span{font-size:18px;color:#19ab94;margin-right:7px}.message{padding:13px 15px;margin:12px 0;border-radius:9px;color:#8a391f;background:#fff1ea;font-size:12px}.message.good{color:#126b54;background:#e7f9ee}.app-shell{display:flex;min-height:100vh}.sidebar{width:245px;position:fixed;inset:0 auto 0 0;background:#121d30;color:#d1dceb;padding:29px 17px 16px;display:flex;flex-direction:column;z-index:5}.sidebar-logo{padding:0 10px 25px}.sidebar .logo strong{color:white}.side-caption{font-size:9px;font-weight:800;letter-spacing:.17em;color:#7687a0;margin:18px 13px 9px}.sidebar nav{display:grid;gap:4px}.nav-item{border:0;display:flex;gap:12px;align-items:center;text-align:left;width:100%;padding:12px 13px;color:#a2b2c6;background:none;border-radius:8px;font-size:12px;font-weight:700}.nav-item span{font-size:19px;width:24px;text-align:center}.nav-item.active,.nav-item:hover{background:#243950;color:#fff}.nav-item.active:before{content:'';height:24px;width:3px;background:#51dcc2;position:absolute;left:12px;border-radius:5px}.nav-item i{font-size:10px;border-radius:12px;background:#e2a147;color:#101b2a;padding:1px 6px;font-style:normal;margin-left:auto}.side-spacer{flex:1}.side-tip{border:1px solid #304159;padding:15px;border-radius:12px;margin:20px 2px;color:#87e2cf;font-size:12px}.side-tip p{font-size:11px;line-height:1.55;color:#8799af;margin:8px 0 0}.side-profile{display:flex;align-items:center;gap:8px;border-top:1px solid #2c3c52;padding-top:16px}.avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#2b766e;color:#eafff7;font-weight:800}.side-profile strong{display:block;color:#e4f0f9;font-size:11px}.side-profile small{display:block;color:#8192aa;font-size:10px;margin-top:4px}.logout{margin-left:auto;background:none;border:0;color:#c1cdda;font-size:23px}.content{margin-left:245px;min-width:0;flex:1}.topbar{height:77px;background:#fff;border-bottom:1px solid #e7ecf3;display:flex;justify-content:space-between;align-items:center;padding:0 clamp(22px,3vw,55px)}.crumb{font-size:10px;font-weight:800;letter-spacing:.14em;color:#a0adbe}.crumb span{padding:0 10px;color:#cdd6df}.crumb b{color:#52627a}.header-right{display:flex;gap:18px;align-items:center}.connected{font-size:10px;font-weight:800;color:#909caf}.connected.ok{color:#0d987b}.main-inner{max-width:1450px;margin:auto;padding:36px clamp(20px,3vw,55px) 22px}.page-heading{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-bottom:29px}.page-heading h1{margin:8px 0}.page-heading .muted{font-size:13px;margin:0}.page-heading #page-actions{display:flex;gap:9px;align-items:center}.notice{background:#eff8f7;border:1px solid #d3ece6;color:#376b68;border-radius:12px;padding:16px 18px;font-size:12px;line-height:1.65;margin-bottom:24px;display:flex;gap:15px}.notice.warn{background:#fff9e9;border-color:#f4e3b6;color:#7b662f}.notice b{color:#244e4b}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:24px}.stat{background:#fff;border:1px solid #e7edf4;border-radius:14px;padding:22px 24px;min-height:131px}.stat-title{font-size:11px;color:#8795a8;font-weight:700}.stat-value{font-family:Manrope;font-size:36px;font-weight:800;letter-spacing:-.06em;margin:11px 0 2px}.stat-sub{font-size:10px;color:#8090a3}.stat-symbol{float:right;color:#27aa96;background:#eaf7f3;padding:8px;border-radius:9px;font-size:17px}.two-col{display:grid;grid-template-columns:1.1fr .9fr;gap:19px}.panel{background:white;border:1px solid #e4eaf1;border-radius:14px;padding:24px;margin-bottom:20px;box-shadow:0 5px 24px #14213804}.panel h2{margin:0 0 7px;font-size:17px}.panel-head{display:flex;justify-content:space-between;gap:15px;margin-bottom:22px;align-items:flex-start}.panel-head p{font-size:12px;color:#8b99a9;margin:0}.steps{display:grid;gap:16px}.step{display:flex;gap:15px;align-items:flex-start;padding:5px 0}.step-num{height:36px;min-width:36px;display:grid;place-items:center;background:#edf8f5;border-radius:10px;color:#17947f;font-weight:800}.step strong{font-size:13px}.step p{font-size:11px;color:#8190a3;margin:6px 0;line-height:1.6}.table-scroll{overflow-x:auto}.table{width:100%;border-collapse:collapse;font-size:12px;min-width:710px}.table th{background:#f9fbfd;color:#97a4b3;font-size:9px;letter-spacing:.08em;text-align:left;padding:13px 13px;white-space:nowrap}.table td{border-top:1px solid #edf0f4;padding:15px 13px;vertical-align:middle}.table td strong{font-size:12px}.table td small{display:block;color:#8997a8;font-size:10px;margin-top:5px}.tag{display:inline-block;background:#eff3f8;color:#698096;padding:6px 8px;border-radius:6px;font-size:10px;font-weight:800}.tag.good{background:#e5f8f0;color:#158b71}.tag.warn{background:#fff4db;color:#a2731b}.tag.bad{background:#fff1ee;color:#bf5e48}.tag.blue{background:#edf4ff;color:#437ebd}.mini-btn{border:1px solid #e2e8f0;border-radius:8px;background:white;color:#41556d;padding:7px 10px;font-size:10px;font-weight:800}.mini-btn:hover{background:#eef8f6;color:#16756d}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;gap:12px}.search{max-width:300px}.muted-small{font-size:11px;color:#9ca6b3}.empty{padding:40px 20px;text-align:center;color:#95a3b4;font-size:13px}.empty .empty-icon{font-size:28px;color:#5fc1ab;margin-bottom:13px}.settings-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.setting{padding:21px;background:#fff;border-radius:13px;border:1px solid #e5ecf3}.setting h3{font-size:16px;margin:7px 0}.setting p{font-size:12px;color:#7d8b9d;line-height:1.7}.code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#55617a;font-size:11px;word-break:break-word}.app-footer{margin-top:25px;color:#a0acbb;font-size:10px;text-align:center;padding:20px}.modal-layer{position:fixed;inset:0;background:#0a1728aa;display:grid;place-items:center;z-index:30;padding:17px}.modal-card{background:#fff;border-radius:17px;width:min(740px,100%);max-height:90vh;overflow:auto;box-shadow:0 30px 100px #08112055}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:23px 28px;border-bottom:1px solid #e9edf1}.modal-head h2{margin:8px 0 0}.icon-close{background:#f4f6f8;border:0;border-radius:8px;width:32px;height:32px;font-size:20px;color:#637085}.modal-content{padding:25px 28px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}.field .hint{font-size:10px;color:#94a0b1;line-height:1.5}.modal-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #edf1f5;padding:18px 28px}.checkbox-field{display:flex;gap:10px;align-items:start;background:#f4faf8;padding:12px;border-radius:8px;font-size:12px;line-height:1.5}.checkbox-field input{width:auto;margin-top:2px}.check-text{color:#5b7281}.actions-cell{display:flex;gap:5px;flex-wrap:wrap}.toast{background:#142338;color:#fff;padding:12px 17px;border-radius:11px;box-shadow:0 10px 30px #16253d33;margin:8px 0;font-size:12px;max-width:420px}.toast.error{background:#9e4237}#toasts{position:fixed;right:19px;bottom:18px;z-index:60}.tip-text{color:#7d8b9e;font-size:12px;line-height:1.65}.list-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px 0;border-top:1px solid #edf0f4}.list-row strong{font-size:12px}.list-row small{display:block;color:#96a3b4;font-size:10px;margin-top:5px}.flex-actions{display:flex;gap:7px;flex-wrap:wrap}.auth-card .form-stack input{margin-bottom:5px}
@media(max-width:1100px){.stat-grid{grid-template-columns:repeat(2,1fr)}.two-col{grid-template-columns:1fr}.hero-grid{margin-top:34px}.auth-brand{padding:35px}.sidebar{width:210px}.content{margin-left:210px}}
@media(max-width:800px){.auth-layout{grid-template-columns:1fr}.auth-brand{display:none}.auth-mobile-logo{display:flex;margin-bottom:35px;justify-content:center}.auth-panel{min-height:100vh;display:flex;flex-direction:column;justify-content:center}.sidebar{width:68px;padding:20px 7px}.sidebar-logo{padding:0 7px 18px}.sidebar-logo .logo-mark{width:38px;height:38px}.sidebar-logo>div{display:none}.side-caption,.sidebar .nav-item{font-size:0}.sidebar .nav-item{justify-content:center;padding:13px 5px}.sidebar .nav-item span{font-size:22px}.side-tip,.side-profile>div:not(.avatar),.logout{display:none}.sidebar .nav-item i{font-size:10px}.side-profile{justify-content:center}.content{margin-left:68px}.topbar{padding:0 18px}.page-heading{align-items:flex-start}.header-right .connected{display:none}.main-inner{padding:25px 19px}.settings-grid{grid-template-columns:1fr}}
@media(max-width:550px){.topbar{height:65px}.header-right .btn{padding:8px 10px;font-size:11px}.crumb{font-size:9px}.page-heading{flex-direction:column;margin-bottom:19px}.page-heading h1{font-size:27px}.stat-grid{gap:10px}.stat{padding:14px;min-height:109px}.stat-value{font-size:28px}.stat-sub{font-size:9px}.panel{padding:16px}.form-grid{grid-template-columns:1fr}.modal-head{padding:18px}.modal-content{padding:18px}.modal-foot{padding:16px}.page-heading #page-actions{width:100%;flex-wrap:wrap}}

/* 0.4: keep logout accessible on narrow screens; do not hide account control. */
@media(max-width:800px){.side-profile{flex-direction:column;gap:10px}.sidebar .logout{display:block;min-height:36px;min-width:36px}.sidebar{overflow-y:auto}}
:focus-visible{outline:3px solid #18aa98;outline-offset:3px}
