:root{font-family:Inter,Arial,Helvetica,sans-serif;color-scheme:light;--page:#f1f4f9;--surface:#fff;--surface2:#f7f9fd;--line:#e2e8f0;--ink:#0f172a;--text:#334155;--muted:#64748b;--sidebar:#0f172a;--blue:#1566f0;--blue-soft:#eaf2ff;--shadow:0 6px 20px rgba(15,23,42,.04)}
:root[data-theme=dark]{color-scheme:dark;--page:#090e1b;--surface:#111a2c;--surface2:#172238;--line:#273550;--ink:#f3f6ff;--text:#d5def2;--muted:#95a6c4;--sidebar:#080e1c;--blue:#6a96ff;--blue-soft:#203154;--shadow:none}
*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%;width:100%}body{background:var(--page);color:var(--ink);font-size:15px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}svg{flex:none}h1,h2,p{margin-top:0}h1{font-size:30px;letter-spacing:-.04em}h2{font-size:18px;letter-spacing:-.025em}p{color:var(--muted)}
.shell{display:flex;min-height:100vh}.sidebar{background:var(--sidebar);color:#cbd5e1;width:264px;min-height:100vh;position:sticky;top:0;display:flex;flex-direction:column;flex:none;padding:16px 12px}.brand{height:58px;display:flex;align-items:center;gap:9px;width:100%;padding:0 8px;color:#fff;background:none;border:0;text-align:left;font-weight:750;font-size:20px;white-space:nowrap}.brand em{font-style:normal;color:#b8c8fa}.brand b{font-size:20px;font-weight:400;margin-left:auto;color:#8da0c4}.logo-mark{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#4388ff,#0871ed);color:#fff;border-radius:10px;font-size:29px;line-height:1;font-weight:800;flex:none}.side-section{font-size:11px;letter-spacing:.12em;font-weight:750;color:#8da0c4;padding:32px 16px 12px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.sidebar nav button{height:48px;width:100%;display:flex;align-items:center;gap:15px;border:0;border-radius:10px;color:#cbd5e1;background:transparent;padding:0 15px;font-size:16px;text-align:left;position:relative}.sidebar nav button:hover{background:#1b2a48;color:white}.sidebar nav button.active{background:#20305e;color:#fff}.sidebar nav button.active:before{content:"";position:absolute;left:-12px;top:10px;bottom:10px;width:4px;border-radius:0 4px 4px 0;background:#4975ff}.side-footer{margin-top:auto;background:rgba(255,255,255,.06);border-radius:12px;padding:10px;display:flex;align-items:center;gap:10px;min-width:0}.avatar{background:#dce9ff;color:#1b57cb;border-radius:50%;height:38px;width:38px;display:flex;align-items:center;justify-content:center;font-weight:750;flex:none}.side-footer div{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}.side-footer strong,.side-footer small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.side-footer strong{color:white}.side-footer small{font-size:11px;color:#93a4c2}.side-footer button{background:none;border:0;color:#cbd5e1;padding:5px}.collapsed .sidebar{width:76px}.collapsed .sidebar .brand span:not(.logo-mark),.collapsed .sidebar .brand b,.collapsed .sidebar .side-section,.collapsed .sidebar nav span,.collapsed .sidebar .side-footer div,.collapsed .sidebar .side-footer button{display:none}.collapsed .sidebar nav button{justify-content:center;padding:0}.collapsed .sidebar .brand{justify-content:center;padding:0}.collapsed .sidebar .side-footer{justify-content:center}
.main{flex:1;min-width:0}.topbar{height:78px;background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px}.topbar>div:first-child{display:flex;gap:11px;align-items:center}.topbar span{color:var(--muted)}.topbar b{color:#9aacbe;font-weight:400}.topbar strong{font-weight:700}.top-tools{display:flex;align-items:center;gap:10px}.top-tools button,.locale{height:42px;min-width:42px;border-radius:24px;border:1px solid var(--line);background:var(--surface);color:var(--ink);display:flex;align-items:center;justify-content:center;padding:0 12px}.locale{gap:8px;white-space:nowrap}.locale b{font-size:13px;font-weight:700;color:var(--ink)}.content{padding:32px 34px 52px;max-width:1800px;margin:auto}.eyebrow{display:block;color:#326af3;font-size:11px;letter-spacing:.12em;font-weight:800;margin-bottom:9px}.page-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:0 0 25px}.page-heading h1{margin:0 0 8px}.page-heading p{font-size:16px;margin:0}.button{height:42px;border:1px solid transparent;border-radius:10px;padding:0 16px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}.button.primary{background:#1566f0;color:#fff}.button.primary:hover{background:#0754d3}.button.secondary{background:var(--surface);border-color:var(--line);color:var(--ink)}.button.subtle{background:var(--blue-soft);color:var(--blue)}.button.small{height:33px;padding:0 10px;font-size:13px}.button.full{width:100%}.panel{background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:24px;min-width:0}.panel-heading{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:22px}.panel-heading h2{margin:0 0 5px}.panel-heading p{font-size:13px;margin:0}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:20px}.stat-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;min-height:126px;padding:21px;display:flex;gap:16px;align-items:flex-start;box-shadow:var(--shadow)}.stat-card>div{display:flex;flex-direction:column;gap:4px;min-width:0}.stat-card span:not(.stat-icon){color:var(--text);font-weight:650;white-space:nowrap}.stat-card strong{font-size:29px;letter-spacing:-.04em;line-height:1.1}.stat-card small{color:var(--muted);white-space:nowrap}.stat-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:13px;flex:none}.stat-icon.blue{background:#eaf2ff;color:#4771ff}.stat-icon.green{background:#e7f8ef;color:#079b68}.stat-icon.violet{background:#f2eafe;color:#8756e9}.stat-icon.amber{background:#fff3e2;color:#e69318}.dashboard-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:20px;margin-bottom:20px}.status-chart{display:flex;align-items:center;justify-content:center;gap:50px;padding:12px 0 14px}.donut{width:185px;height:185px;border-radius:50%;background:conic-gradient(#4a6df4 0 var(--active),#8a5cf6 var(--active) var(--trial),#f59e0b var(--trial) var(--suspended),#cbd5e1 var(--suspended) 100%);display:grid;place-items:center;flex:none}.donut>div{width:130px;height:130px;border-radius:50%;background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:center}.donut strong{font-size:33px}.donut span{font-size:13px;color:var(--muted)}.legend{min-width:220px}.legend>div{display:flex;align-items:center;gap:9px;padding:8px 0;color:var(--text)}.legend strong{margin-left:auto;color:var(--ink)}.legend-dot{width:10px;height:10px;border-radius:50%;display:inline-block;flex:none}.legend-dot.active{background:#4a6df4}.legend-dot.trial{background:#8a5cf6}.legend-dot.suspended{background:#f59e0b}.legend-dot.canceled,.legend-dot.neutral{background:#cbd5e1}.usage-rows>div{display:flex;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}.usage-rows>div:last-child{border:0}.usage-rows span{color:var(--muted)}.usage-rows strong{font-size:16px;text-align:right}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px}th{text-align:left;color:var(--muted);font-size:12px;font-weight:750;padding:14px 12px;background:var(--surface2);white-space:nowrap}td{padding:16px 12px;border-bottom:1px solid var(--line);color:var(--text);white-space:nowrap}td:first-child strong{display:block;color:var(--ink)}td small{display:block;color:var(--muted);margin-top:3px}.badge{font-size:12px;border-radius:20px;padding:5px 10px;display:inline-flex;font-weight:700;white-space:nowrap}.badge-active{background:#e7f8ef;color:#137448}.badge-trial{background:#f0eaff;color:#7445bf}.badge-suspended{background:#fff1e2;color:#a96409}.badge-canceled{background:#eff2f5;color:#64748b}.filters{display:flex;align-items:center;gap:12px;margin-bottom:20px}.search-box{height:42px;border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;gap:9px;padding:0 12px;min-width:200px;flex:1;color:var(--muted)}.search-box input{border:0;background:none;outline:0;min-width:0;flex:1;color:var(--ink)}.search-box button{border:0;background:none;color:var(--blue);font-weight:700}.filters select,.field input,.field select,.field textarea{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:10px;min-height:42px;padding:9px 12px;outline:0}.filters select:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:#5c87ff;box-shadow:0 0 0 3px rgba(74,109,244,.12)}.icon-button{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text)}.pagination{display:flex;justify-content:space-between;align-items:center;padding:18px 4px 0;color:var(--muted);font-size:13px}.pagination>div{display:flex;align-items:center;gap:12px}.pagination button{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:7px 10px;color:var(--ink)}.empty{text-align:center;padding:35px;color:var(--muted)}.notice{padding:11px 13px;border-radius:9px;margin:10px 0 17px;font-size:13px}.notice-error{background:#fff0f2;color:#a21b31}.notice-success{background:#e7f8ef;color:#12613d}
.modal-backdrop{position:fixed;inset:0;background:rgba(8,16,32,.65);z-index:10;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:5vh 15px}.modal{background:var(--surface);color:var(--ink);border-radius:18px;width:min(780px,100%);padding:28px;box-shadow:0 25px 80px rgba(0,0,0,.27)}.modal .panel-heading h2{font-size:25px}.close{border:0;background:var(--surface2);border-radius:8px;color:var(--text);font-size:25px;width:34px;height:34px;line-height:1}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 20px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field>span,.field-title{font-weight:650;font-size:13px;color:var(--text)}.field input,.field select,.field textarea{width:100%}.field textarea{resize:vertical}.field small{font-size:11px;color:var(--muted)}.form-wide{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid var(--line);padding-top:17px}.detail-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:20px}.detail-summary>div{background:var(--surface2);padding:13px;border-radius:10px;display:flex;flex-direction:column;gap:5px}.detail-summary span{color:var(--muted);font-size:12px}.detail-summary strong{font-size:18px}.subtle-info{color:var(--muted);font-size:13px}.plan-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.plan-mini{border:1px solid var(--line);background:var(--surface);padding:18px;border-radius:15px;display:flex;flex-direction:column;gap:7px}.plan-mini span{font-size:13px;color:var(--muted)}.plan-mini strong{font-size:24px}.plan-mini small{color:var(--muted)}.plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:10px}.check{display:flex;align-items:center;gap:8px;color:var(--text);font-size:13px}.check input{accent-color:#1566f0;width:16px;height:16px}.tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);margin-bottom:20px}.tabs button{border:0;background:none;color:var(--muted);padding:12px 20px;position:relative;font-weight:650}.tabs button.active{color:var(--blue)}.tabs button.active:after{content:"";position:absolute;bottom:-1px;left:0;right:0;background:#4b70ff;height:3px;border-radius:3px}.settings-panel{max-width:900px}.switch-row{display:flex;align-items:center;justify-content:space-between;padding:15px;background:var(--surface2);border-radius:10px;gap:15px}.switch-row span{display:flex;flex-direction:column;gap:5px}.switch-row small{color:var(--muted)}.switch-row input{width:20px;height:20px;accent-color:#1566f0}.settings-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,.8fr);gap:20px;align-items:start}.test-panel form{display:flex;flex-direction:column;gap:17px}
.map-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,.65fr);gap:20px;align-items:start}.world-map{width:100%;position:relative;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#f1f5fb}.world-map svg{display:block;width:100%;height:auto}.country{fill:#e0e8f5;stroke:#fff;stroke-width:.7;transition:fill .2s}.country.has-clients{fill:#5072ec;cursor:pointer}.country.has-clients:hover{fill:#2454e1}.map-tooltip{position:absolute;right:12px;top:12px;background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:9px 13px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:3px;font-size:12px}.map-tooltip span{color:var(--muted)}.map-legend{display:flex;gap:8px;align-items:center;margin-top:13px;color:var(--muted);font-size:12px}.map-legend .neutral{margin-left:15px}.map-count{color:var(--blue);background:var(--blue-soft);padding:7px 10px;border-radius:20px;font-size:12px;font-weight:700}.country-row{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid var(--line)}.country-row:last-child{border:0}.country-flag{font-size:23px}.country-row div{display:flex;flex-direction:column;gap:3px;flex:1}.country-row small{color:var(--muted)}.country-row b{color:var(--blue)}
.login-page{display:grid;grid-template-columns:1.12fr .88fr;min-height:100vh;background:var(--surface)}.login-art{background:radial-gradient(circle at 30% 25%,#315fbd 0%,transparent 37%),radial-gradient(circle at 85% 80%,#364790 0%,transparent 35%),linear-gradient(140deg,#0f1c3d,#141d40 55%,#10152d);color:#fff;padding:48px;position:relative;overflow:hidden}.login-art:after{content:"";position:absolute;width:500px;height:500px;border:1px solid rgba(255,255,255,.09);border-radius:50%;right:-120px;top:100px;box-shadow:0 0 0 80px rgba(255,255,255,.025),0 0 0 160px rgba(255,255,255,.015)}.login-art-content{position:relative;z-index:1;max-width:620px;height:100%;min-height:620px;display:flex;flex-direction:column;align-items:flex-start}.login-art-mark{display:flex;align-items:center;gap:11px;font-size:21px;font-weight:750}.login-pill{display:flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.06);padding:8px 13px;border-radius:20px;margin-top:auto;font-size:13px}.login-art h1{font-size:clamp(36px,4vw,61px);line-height:1.08;letter-spacing:-.05em;margin:25px 0 20px}.login-art p{color:#bdc9e7;font-size:19px;line-height:1.55;max-width:500px}.login-art-foot{margin-top:auto;color:#8ca4de;font-size:11px;font-weight:750;letter-spacing:.16em}.login-art-foot span{padding:0 10px}.login-side{display:flex;align-items:center;justify-content:center;padding:30px;background:var(--page)}.login-card{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:42px;width:min(470px,100%);box-shadow:0 18px 55px rgba(15,23,42,.07)}.login-card h2{font-size:28px;margin:0 0 10px}.login-card>p{margin:0 0 30px}.login-card .field{margin-bottom:17px}.login-card input{height:50px}.login-card .button{height:51px;margin-top:4px}.login-lock{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:23px;color:var(--muted);font-size:12px}.login-mobile-brand{display:none}.loading-screen{height:100vh;display:flex;align-items:center;justify-content:center;gap:15px;color:var(--muted)}
@media(max-width:1100px){.stat-grid,.plan-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid,.map-layout{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.sidebar{width:76px}.sidebar .brand span:not(.logo-mark),.sidebar .brand b,.sidebar .side-section,.sidebar nav span,.sidebar .side-footer div,.sidebar .side-footer button{display:none}.sidebar nav button,.sidebar .brand,.sidebar .side-footer{justify-content:center;padding:0}}
.secret-box{display:flex;align-items:center;justify-content:space-between;gap:14px;background:var(--surface2);border:1px solid var(--line);border-radius:10px;padding:10px 13px;margin-bottom:20px}.secret-box code{overflow-wrap:anywhere;font-size:16px}
@media(max-width:700px){.sidebar{position:fixed;bottom:0;top:auto;left:0;right:0;height:64px;min-height:0;width:100%;z-index:4;padding:4px 5px}.sidebar .brand,.sidebar .side-footer{display:none}.sidebar nav{flex-direction:row;justify-content:space-around;height:100%}.sidebar nav button{width:20%;height:100%;flex-direction:column;gap:3px;padding:5px 0;font-size:10px}.sidebar nav span{display:block}.sidebar nav button.active:before{left:20%;right:20%;top:auto;bottom:0;width:auto;height:3px}.sidebar nav svg{width:20px;height:20px}.topbar{height:62px;padding:0 16px}.content{padding:24px 16px 90px}.topbar>div:first-child{gap:6px;font-size:13px}.top-tools{gap:4px}.top-tools button{min-width:35px;height:35px}.locale{height:35px;padding:0 8px}.page-heading{align-items:start}.page-heading .button{font-size:12px;padding:0 9px}.page-heading h1{font-size:25px}.page-heading p{font-size:13px}.stat-grid{gap:10px}.stat-card{padding:15px;min-height:110px;gap:9px}.stat-icon{height:34px;width:34px}.stat-icon svg{width:18px}.stat-card strong{font-size:22px}.stat-card span:not(.stat-icon),.stat-card small{font-size:11px;white-space:normal}.panel{padding:17px}.status-chart{gap:20px}.donut{width:130px;height:130px}.donut>div{width:94px;height:94px}.donut strong{font-size:25px}.legend{min-width:130px;font-size:12px}.filters{flex-wrap:wrap}.filters .search-box{flex-basis:100%}.plan-grid,.plan-summary{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-wide{grid-column:1}.modal{padding:18px}.detail-summary{grid-template-columns:1fr 1fr}.login-page{display:block}.login-art{display:none}.login-side{min-height:100vh;padding:20px}.login-card{padding:27px}.login-mobile-brand{display:flex;align-items:center;gap:8px;font-weight:750;font-size:19px;margin-bottom:36px}}
/* Reuse the customer's login artwork and glass treatment on the separate admin domain. */
.login-page{display:flex;align-items:center;justify-content:flex-end;min-height:100dvh;background:#0b1226 url('/karnox-bg.webp') center 30%/cover no-repeat;padding:24px clamp(24px,8vw,150px)}
.login-art{display:none}
.login-side{width:min(100%,560px);min-height:auto;background:none;padding:0}
.login-card{width:100%;background:rgba(14,22,48,.5);border:1px solid rgba(255,255,255,.28);-webkit-backdrop-filter:blur(24px) saturate(150%);backdrop-filter:blur(24px) saturate(150%);box-shadow:0 30px 80px rgba(6,12,32,.45),inset 0 1px 0 rgba(255,255,255,.2);border-radius:28px;color:#fff;text-align:center}
.login-mobile-brand{display:flex;align-items:center;justify-content:center;gap:11px;font-size:23px;font-weight:750;margin-bottom:27px}
.login-card h2{color:#fff}.login-card>p,.login-lock{color:rgba(255,255,255,.76)}
.login-card .field{text-align:left}.login-card .field>span{color:rgba(255,255,255,.9)}
.login-card .field input{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.26);color:#fff;border-radius:14px;padding:0 16px}
.login-card .field input::placeholder{color:rgba(255,255,255,.63)}
.login-card .field input:focus{border-color:rgba(255,255,255,.75);box-shadow:0 0 0 3px rgba(124,148,255,.4)}
.login-card .button.primary{border-radius:14px}
.login-card .notice-error{text-align:left}
@media(max-width:700px){.login-page{padding:18px;background-image:url('/karnox-bg-small.webp')}.login-side{min-height:auto}.login-card{padding:28px 23px}.login-mobile-brand{margin-bottom:24px}}
