/* VOLTRATENAN platform admin — charcoal theme */
*,*::before,*::after{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,sans-serif;
  background:#1A1A1A;
  color:#F5F5F5;
  min-height:100vh;
}
a{color:#818CF8;text-decoration:none}
a:hover{color:#A5B4FC}
.topbar{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:12px 20px;background:#212121;border-bottom:1px solid #333;
}
.topnav{display:flex;gap:4px;flex:1;justify-content:center}
.topnav a{
  padding:8px 14px;border-radius:8px;font-size:14px;font-weight:600;color:#A3A3A3;
}
.topnav a:hover,.topnav a.active{color:#F5F5F5;background:#2a2a2a}
.stat-card{text-align:center}
.stat-label{font-size:13px;color:#A3A3A3;margin-bottom:6px}
.stat-value{font-size:2rem;font-weight:800}
.actions-cell{white-space:normal;min-width:148px;vertical-align:top}
.actions-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:6px;align-items:stretch;
}
.actions-grid .btn,.actions-grid .inline-form{width:100%}
.actions-grid .inline-form{display:block;margin:0}
.actions-grid .btn{width:100%;justify-content:center;padding:6px 8px;font-size:12px}
.actions-grid-2col{grid-template-columns:1fr 1fr;min-width:160px}
.domain-cell{min-width:220px}
.domain-inline-form{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.domain-inline-form input{flex:1;min-width:140px;margin:0;padding:6px 8px;font-size:12px}
.inline-form{display:inline-block;margin:2px 0}
.information-card{max-width:900px}
.information-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.information-heading h2{margin-bottom:6px}
.information-heading p{margin:0}
.information-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.maint-permission-card{border-width:2px}
.maint-permission-card.is-on{border-color:rgba(34,197,94,.65);background:rgba(34,197,94,.06)}
.maint-permission-card.is-off{border-color:rgba(239,68,68,.45)}
.maint-permission-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.maint-permission-head h2{margin-bottom:6px}.maint-permission-head p{margin:0;max-width:760px}
.maint-permission-toggle{margin-top:16px}
.maint-permission-confirm{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:10px;max-width:620px;margin-top:12px}
.maint-permission-confirm input{margin:0}.maint-permission-note{font-size:11px;margin:10px 0 0}
.maint-step-list{display:grid;gap:14px;margin-top:16px}
.maint-guide-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.maint-guide-heading h2{margin:0}
.maint-step{display:grid;grid-template-columns:48px minmax(220px,1fr) auto 112px;align-items:center;gap:14px;padding:20px;border:1px solid #444;border-radius:14px;background:#262626;box-shadow:0 8px 22px rgba(0,0,0,.12)}
.maint-step-number{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:#6366f1;color:#fff;font-weight:800}
.maint-step-content{display:grid;gap:6px}.maint-step-content strong{font-size:15px}.maint-step-content span{display:block;color:#a3a3a3;font-size:12px;line-height:1.5}
.maint-inline-info{justify-self:start;width:auto;padding:0;border:0;background:transparent;color:#a5b4fc;font-size:11px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.maint-inline-info:hover{background:transparent;color:#c7d2fe}
.maint-step .maint-run-state{text-align:center;min-width:52px}.maint-step .maint-start-btn{width:112px;font-size:12px}.maint-step-hint{font-size:12px;margin:12px 0 0}
.maint-step-healthy{margin:14px 0 0}
.maint-switch-help-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.maint-switch-help-row .toggle-row{margin-right:0}
.maint-help-open{padding:6px 11px;font-size:12px}
.maint-help-overlay{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.72)}
.maint-help-overlay[hidden]{display:none}
.maint-help-dialog{position:relative;width:min(620px,100%);max-height:85vh;overflow:auto;padding:24px;border:1px solid #484848;border-radius:16px;background:#262626;box-shadow:0 24px 70px rgba(0,0,0,.55)}
.maint-help-dialog h2{padding-right:36px}.maint-help-dialog h3{margin:18px 0 8px;font-size:15px}.maint-help-dialog ul{margin:0;padding-left:20px;color:#d4d4d4;line-height:1.75;font-size:13px}.maint-help-dialog p{color:#d4d4d4;font-size:13px;line-height:1.65}
.maint-help-close{position:absolute;right:14px;top:12px;width:34px;height:34px;padding:0;border-radius:50%;background:#333;font-size:23px;line-height:1}
.maint-block-dialog{width:min(760px,100%)}
.maint-block-dialog table{font-size:13px}
.maint-check-scope-dialog{width:min(850px,100%)}
.maint-check-scope-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
.maint-check-scope-grid>div{padding:14px;border:1px solid #3d3d3d;border-radius:12px;background:#1d1d1d}
.maint-check-scope-grid h3{margin:0 0 8px;font-size:14px}.maint-check-scope-grid ul{margin:0;padding-left:18px;color:#d4d4d4;font-size:12px;line-height:1.7}
.maint-check-scope-note{margin:14px 0 0;padding:10px 12px;border-radius:10px;background:rgba(99,102,241,.12)}
.maint-history-dialog{width:min(920px,100%)}.maint-history-list{display:grid;gap:10px;margin-top:14px}.maint-history-item{border:1px solid #404040;border-radius:12px;background:#1d1d1d}.maint-history-item summary{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:12px;cursor:pointer}.maint-history-item summary .muted{margin-left:auto;font-size:11px}.maint-history-body{padding:0 14px 14px;border-top:1px solid #373737}.maint-history-body h3{font-size:13px;margin:14px 0 7px}.maint-history-body ul,.maint-history-body ol{margin:0;padding-left:20px;font-size:12px;line-height:1.7}.maint-history-body p{font-size:12px;word-break:break-all}
body.maint-dialog-open{overflow:hidden}
@media(max-width:720px){.maint-step{grid-template-columns:42px 1fr auto}.maint-step form{grid-column:2/-1}.maint-step .maint-start-btn{width:100%}.maint-permission-confirm{grid-template-columns:1fr}.maint-permission-head{flex-direction:column}.maint-check-scope-grid{grid-template-columns:1fr}}
.tenant-list-card{overflow-x:auto}
.tenant-list-table{table-layout:auto}
.tenant-list-table .domain-cell{min-width:180px}
.tenant-list-table .domain-inline-form input{min-width:105px}
.tenant-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.tenant-list-head h2{margin:0}
.tenant-list-table .tenant-user-tele-cell{min-width:96px;font-size:12px;line-height:1.45}
.tenant-delete-form{display:inline-flex;flex-wrap:wrap;gap:4px;align-items:center;margin:2px 0}
.tenant-delete-slug{width:76px;min-width:76px;margin:0;padding:5px 6px;font-size:11px;font-family:ui-monospace,monospace}
.tenant-users-filter{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:flex-end;margin-bottom:16px}
.tenant-users-filter label{display:block;font-size:12px;color:var(--muted,#888);margin-bottom:4px}
.tenant-users-filter select,.tenant-users-filter input{min-width:180px}
.tenant-users-filter-actions{display:flex;gap:8px;align-items:center;padding-bottom:2px}
.tenant-users-table-wrap{overflow-x:auto}
.tenant-users-table{min-width:920px;font-size:13px}
.tenant-users-table code{font-size:12px}
.tenant-agreement-btn{display:flex;width:100%;margin-top:6px;padding:5px 7px;font-size:10px;white-space:nowrap}
.danger-zone{border-color:rgba(239,68,68,.35)}
.danger-zone h2{color:#FCA5A5}
.log-view{
  margin:0;padding:16px;max-height:70vh;overflow:auto;
  font:12px/1.5 Consolas,monospace;color:#A3A3A3;background:#1A1A1A;
  white-space:pre-wrap;word-break:break-all;
}
.topbar .brand{display:flex;align-items:center;gap:10px;font-weight:800}
.topbar img{width:32px;height:32px;border-radius:8px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800}
.brand img{width:40px;height:40px;border-radius:10px;object-fit:contain;flex-shrink:0;display:block}
.wrap{max-width:1100px;margin:0 auto;padding:24px 16px 48px}
.card{
  background:#262626;border:1px solid #333;border-radius:14px;padding:20px;margin-bottom:16px;
}
h1,h2{margin:0 0 12px;font-size:1.35rem}
.muted{color:#A3A3A3;font-size:13px}
label{display:block;font-size:13px;color:#A3A3A3;margin:12px 0 6px}
input,select,textarea{
  width:100%;padding:10px 12px;border-radius:10px;border:1px solid #333;
  background:#1A1A1A;color:#F5F5F5;font:inherit;
}
button,.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:10px 16px;border-radius:10px;border:0;cursor:pointer;font-weight:700;
  background:#6366F1;color:#fff;font:inherit;
}
.btn:hover{background:#4F46E5}
.btn-secondary,.btn-ghost-secondary{background:#333;color:#F5F5F5;border:1px solid #444;padding:8px 14px;border-radius:8px;cursor:pointer;font-size:13px}
.btn-secondary:hover,.btn-ghost-secondary:hover{background:#404040}
.btn-danger{background:#EF4444}
.btn-ghost{background:#333;color:#F5F5F5}
table{width:100%;border-collapse:collapse;font-size:14px}
th,td{padding:10px 8px;border-bottom:1px solid #333;text-align:left}
.badge{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700}
.badge-active{background:rgba(34,197,94,.2);color:#4ADE80}
.badge-suspended{background:rgba(239,68,68,.2);color:#FCA5A5}
.badge-pending{background:rgba(245,158,11,.2);color:#FCD34D}
.alert{padding:12px;border-radius:10px;margin-bottom:12px;font-size:14px}
.alert-err{background:rgba(239,68,68,.15);color:#FCA5A5}
.alert-ok{background:rgba(34,197,94,.15);color:#86EFAC}
.alert-warn{background:rgba(245,158,11,.15);color:#FCD34D}
.creds-box{border-color:rgba(34,197,94,.45);background:rgba(34,197,94,.08)}
.creds-list{margin:16px 0 0;padding:0;display:grid;gap:12px}
.creds-list div{display:grid;gap:4px}
.creds-list dt{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#A3A3A3}
.creds-list dd{margin:0;font-size:14px;word-break:break-all}
.creds-list-compact{gap:8px;margin-top:8px}
.creds-pass{font-size:18px;font-weight:600;color:#86EFAC}
.reset-pass-form{margin-top:16px;padding-top:16px;border-top:1px solid #333}
.reset-creds-grid{margin-top:16px;padding-top:16px;border-top:1px solid #333}
.reset-creds-grid .reset-pass-form{margin-top:0;padding-top:0;border-top:none}
.reset-pass-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:8px}
.reset-pass-row input{flex:1;min-width:200px;margin:0}
.reset-pass-row input[readonly]{color:#737373;cursor:default}
.plan-field{margin-bottom:4px;grid-column:1/-1}
.plan-info-box{
  margin-top:10px;padding:12px 14px;border-radius:10px;
  background:#1A1A1A;border:1px solid #333;font-size:13px;line-height:1.5
}
.plan-feature-list{margin:10px 0 0;padding-left:18px;color:#D4D4D4}
.plan-feature-list li{margin:4px 0}
.plan-limit-note{margin:10px 0 0;font-size:12px}
.platform-notice{
  background:linear-gradient(180deg,rgba(245,158,11,.18),rgba(245,158,11,.08));
  border-bottom:1px solid rgba(245,158,11,.35);
  padding:12px 20px;color:#FDE68A;
}
.platform-notice-label{
  font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#FCD34D;margin-bottom:6px
}
.platform-notice-body{font-size:14px;line-height:1.55;color:#FEF3C7}
.platform-notice-meta{margin-top:8px;font-size:11px;color:#D6D3D1}
.platform-notice-actions{margin-top:10px}
.platform-notice-dismiss{
  appearance:none;border:1px solid rgba(245,158,11,.45);background:rgba(0,0,0,.25);
  color:#FDE68A;font-size:12px;font-weight:600;padding:6px 12px;border-radius:8px;cursor:pointer
}
.platform-notice-dismiss:hover{background:rgba(0,0,0,.4);border-color:rgba(245,158,11,.7)}
.maint-checklist-card{margin-top:20px}
.maint-checklist-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.maint-checklist-head h2{margin:0}
.maint-checklist-section{margin-top:18px;padding-top:16px;border-top:1px solid #2a2a2a}
.maint-checklist-section:first-of-type{margin-top:12px;padding-top:0;border-top:0}
.maint-checklist-section h3{margin:0 0 10px;font-size:14px;color:#E5E5E5}
.maint-checklist{margin:0;padding:0;list-style:none}
.maint-checklist li{margin:0 0 8px}
label.maint-check-item{
  display:flex;align-items:flex-start;gap:12px;cursor:pointer;margin:0;
  padding:12px 14px;border-radius:10px;background:#141414;border:1px solid #2a2a2a;
  width:100%;color:inherit;font-size:inherit
}
label.maint-check-item:hover{border-color:#404040}
label.maint-check-item input[type=checkbox]{
  width:18px;height:18px;min-width:18px;max-width:18px;flex:0 0 18px;
  margin:2px 0 0;padding:0;border-radius:4px;cursor:pointer;accent-color:#6366F1
}
.maint-check-text{flex:1;min-width:0;display:block;line-height:1.45}
.maint-check-text strong{display:block;font-size:13px;color:#F5F5F5;font-weight:600;margin-bottom:4px}
.maint-check-text small{display:block;font-size:12px;color:#A3A3A3}
label.maint-check-item:has(input:checked){border-color:rgba(34,197,94,.45);background:rgba(34,197,94,.06)}
label.maint-check-item:has(input:checked) .maint-check-text strong{color:#BBF7D0}
.maint-auto-card{margin-top:20px}
.maint-auto-card.maint-auto-ok{border-color:rgba(34,197,94,.35)}
.maint-auto-card.maint-auto-warn{border-color:rgba(245,158,11,.35)}
.maint-auto-card.maint-auto-fail{border-color:rgba(239,68,68,.4)}
.maint-auto-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.maint-auto-head h2{margin:0}
.maint-auto-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.maint-auto-actions form{margin:0}
.maint-auto-table{width:100%;border-collapse:collapse;margin-top:8px}
.maint-auto-table th,.maint-auto-table td{padding:10px 8px;text-align:left;border-bottom:1px solid #333;vertical-align:top}
.maint-auto-table th{font-size:12px;color:#A3A3A3;font-weight:600}
.maint-auto-table td:first-child{font-size:13px;color:#F5F5F5;min-width:160px}
.maint-auto-table td:last-child{width:90px;text-align:right}
.maint-auto-fix-log{
  margin:0 0 14px;padding:12px 14px;border-radius:10px;background:#141414;border:1px solid #333;font-size:13px
}
.maint-auto-fix-log ul{margin:8px 0 0;padding-left:18px;line-height:1.6}
.maint-auto-fix-log li.ok{color:#BBF7D0}
.maint-auto-fix-log li.fail{color:#FCA5A5}
.btn-sm{padding:6px 10px;font-size:12px}
.maint-restart-form{display:inline;margin:0}
.maint-server-ops-card input[type=text],.maint-server-ops-card textarea,.maint-server-ops-card select{margin-bottom:8px}
.maint-server-ops-card label{margin-top:10px}
.maint-vps-global{margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #333}
.maint-vps-global h3{font-size:14px;margin:0 0 8px}
.maint-vps-block{border:1px solid #333;border-radius:8px;padding:12px 14px 14px;margin:0 0 14px;background:rgba(255,255,255,.02)}
.maint-vps-block--draft{border-style:dashed;border-color:#444;background:rgba(255,255,255,.01)}
.maint-vps-block--draft .maint-vps-title{color:#9CA3AF}
.maint-vps-block--inactive{opacity:.88}
.maint-vps-block--active{border-color:#4F46E5;box-shadow:0 0 0 1px rgba(99,102,241,.25)}
.maint-vps-block legend{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:0 6px;font-weight:600;font-size:13px}
.maint-vps-enabled input:checked+span,.maint-vps-enabled:has(input:checked){color:#A5B4FC}
.maint-server-ops-card fieldset{border:none;margin:0;padding:0;min-width:0}
.maint-server-ops-card fieldset:disabled{opacity:1}
.maint-server-ops-card fieldset input,.maint-server-ops-card fieldset select,.maint-server-ops-card fieldset textarea{opacity:1;pointer-events:auto}
.maint-vps-collection{margin-top:14px;padding:16px;border:1px solid #444;border-radius:14px;background:#1c1c1c}
.maint-vps-collection>h3{margin:0 0 5px;font-size:16px}
.maint-vps-list{display:grid;gap:16px}
.maint-server-ops-card fieldset.maint-vps-block{margin:0;padding:16px 18px 18px;border:1px solid #484848;border-radius:12px;background:#272727;box-shadow:0 6px 16px rgba(0,0,0,.16)}
.maint-server-ops-card fieldset.maint-vps-block--draft{border-style:solid;border-color:#3d3d3d;background:#222}
.maint-server-ops-card fieldset.maint-vps-block--active{border-color:#4f46e5;box-shadow:0 0 0 1px rgba(99,102,241,.22),0 6px 16px rgba(0,0,0,.18)}
.maint-server-ops-card fieldset.maint-vps-block legend{padding:0 10px;color:#f5f5f5;font-size:14px;font-weight:800}
.tenant-domain-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:4px}
.tenant-domain-row input{margin-bottom:0}
@media(max-width:720px){.tenant-domain-row{grid-template-columns:1fr}}
.maint-vps-enabled{font-weight:400;font-size:12px;display:inline-flex;align-items:center;gap:6px;margin:0}
.maint-vps-enabled input{width:auto;margin:0}
.maint-vps-deploy-primary{font-weight:400;font-size:12px;display:inline-flex;align-items:center;gap:6px;margin:0}
.maint-vps-deploy-primary input{width:auto;margin:0}
.maint-vps-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px 12px;margin-top:8px}
.maint-vps-row{display:grid;grid-template-columns:2fr 80px 1fr 1.2fr;gap:10px 12px;margin-top:8px;align-items:end}
.maint-vps-row--deploy{margin-top:10px;padding-top:10px;border-top:1px dashed #333;grid-template-columns:minmax(220px,1fr) 2fr}
.maint-vps-role-checks{display:flex;flex-direction:column;gap:8px}
.maint-vps-role-label{font-size:12px;color:#aaa;display:block;margin-bottom:2px}
.maint-vps-role-cb{font-weight:400;font-size:12px;display:flex;align-items:flex-start;gap:8px;margin:0;cursor:pointer}
.maint-vps-role-cb input{width:auto;margin:3px 0 0;flex-shrink:0}
.maint-vps-path-fields .maint-vps-path-wa:not([hidden]){margin-top:10px}
.maint-vps-path-none{margin:8px 0 0}
.maint-vps-local-root{margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid #333}
.maint-vps-deploy-upload{font-weight:400;font-size:12px;display:inline-flex;align-items:center;gap:6px;margin:0}
.maint-vps-deploy-upload input{width:auto;margin:0}
@media (max-width:720px){.maint-vps-row{grid-template-columns:1fr 1fr}}
.maint-vps-col-port input{max-width:100%}
.maint-vps-advanced{margin-bottom:16px}
.maint-vps-advanced summary{cursor:pointer;font-size:12px;color:#aaa;margin-bottom:8px}
.maint-vps-advanced[open] summary{margin-bottom:12px}
.maint-vps-span2{grid-column:1/-1}
.maint-vps-cmds{margin-top:10px}
.maint-vps-cmds summary{cursor:pointer;font-size:12px;color:#aaa;margin-bottom:8px}
.maint-vps-restart{margin-top:10px;padding-top:10px;border-top:1px dashed #333}
.maint-server-ops-card .maint-vps-block input[type=checkbox]{width:auto}
.toggle-row{
  display:flex;align-items:flex-start;gap:12px;cursor:pointer;margin-top:8px
}
.toggle-row input{position:absolute;opacity:0;width:0;height:0}
.toggle-ui{
  flex-shrink:0;width:44px;height:24px;border-radius:999px;background:#444;position:relative;transition:.2s;margin-top:2px
}
.toggle-ui::after{
  content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:.2s
}
.toggle-row input:checked + .toggle-ui{background:#6366F1}
.toggle-row input:checked + .toggle-ui::after{transform:translateX(20px)}
.toggle-text{flex:1}
.toggle-row-inline{align-items:center;margin-top:0;gap:0}
.toggle-row-inline .toggle-ui{margin-top:0}
.toggle-row--go input + .toggle-ui{background:#525252}
.toggle-row--go input:checked + .toggle-ui{background:#22C55E}
.toggle-row--go input:checked + .toggle-ui::after{transform:translateX(20px)}
.toggle-cell-form{display:inline-flex;margin:0;padding:0}
.toggle-cell-form .toggle-row{margin:0}
.device-actions{display:flex;gap:10px;flex-wrap:wrap}
.health-details{margin:12px 0 0;padding-left:18px;font-size:12px;line-height:1.6;text-align:left}
.health-card.health-sehat{border-color:rgba(34,197,94,.35)}
.health-card.health-sedang{border-color:rgba(245,158,11,.35)}
.health-card.health-over{border-color:rgba(239,68,68,.4)}
.msg-global-panel table tfoot td{border-top:2px solid #444;padding-top:12px}
.msg-global-total td{background:rgba(99,102,241,.08)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.dashboard-stats-top,.dashboard-main-row{margin-top:16px}
.dashboard-main-row{align-items:start}
.dashboard-main-row .health-card{text-align:left}
.dashboard-main-row .health-details{text-align:left;margin:12px 0 0;padding-left:18px;font-size:13px;line-height:1.6}
@media (max-width:900px){.grid3{grid-template-columns:1fr}}
@media (max-width:720px){.grid2{grid-template-columns:1fr}}
.filter-row{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end}
.filter-actions{display:flex;gap:8px;padding-bottom:2px}
@media (max-width:720px){.filter-row{grid-template-columns:1fr}}
textarea{min-height:120px;resize:vertical}

.login-page{
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  padding:24px 16px;
  background:#1A1A1A;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99,102,241,.15), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(99,102,241,.08), transparent 50%);
}
.login-shell{width:100%;max-width:420px}
.login-card{
  background:#262626;border:1px solid #333;border-radius:20px;
  padding:32px 28px 28px;
  box-shadow:0 24px 48px rgba(0,0,0,.35);
}
.login-head{text-align:center;margin-bottom:24px}
.login-head img{
  width:64px;height:64px;border-radius:16px;object-fit:contain;
  display:block;margin:0 auto 14px;
  box-shadow:0 8px 24px rgba(99,102,241,.2);
}
.login-head h1{
  margin:0;font-size:1.5rem;font-weight:800;letter-spacing:-.02em;
}
.login-head .login-role{
  margin:6px 0 0;font-size:13px;color:#818CF8;font-weight:600;
}
.login-user-pill{
  display:inline-flex;align-items:center;gap:8px;margin:0 auto 18px;
  padding:8px 14px;border-radius:999px;font-size:13px;font-weight:800;
  background:rgba(34,197,94,.12);border:1px solid rgba(34,197,94,.35);color:#4ADE80;
}
.login-user-pill.is-off{
  background:rgba(239,68,68,.1);border-color:rgba(239,68,68,.35);color:#FCA5A5;
}
.login-user-pill-dot{
  width:8px;height:8px;border-radius:50%;background:currentColor;
  box-shadow:0 0 8px currentColor;
}
.login-card{display:flex;flex-direction:column;align-items:stretch}
.login-card .login-user-pill{align-self:center}
.login-server-off-banner{margin:-6px 0 16px;text-align:center;font-size:12px;line-height:1.5}
.login-card label:first-of-type{margin-top:0}
.login-card button[type=submit]{width:100%;padding:12px;margin-top:8px;font-size:15px}
.login-card .terms-notice{
  margin-top:20px;padding-top:16px;font-size:11px;line-height:1.55;
}
.login-lang-picker{
  display:flex;justify-content:center;margin:-8px 0 18px;
}
.login-lang-dropdown{position:relative;display:inline-flex;flex-direction:column;align-items:center}
.login-lang-trigger{
  display:flex;flex-direction:column;align-items:center;gap:6px;
  padding:4px 8px;border:none;background:transparent;cursor:pointer;
}
.login-lang-globe{
  display:inline-flex;align-items:center;justify-content:center;
  width:42px;height:42px;border-radius:50%;
  border:1px solid #333;background:#1A1A1A;color:#A5B4FC;
  transition:background .15s,border-color .15s,color .15s,box-shadow .15s;
}
.login-lang-pick{font-size:11px;color:#737373;letter-spacing:.02em;line-height:1.2}
.login-lang-trigger:hover .login-lang-globe,
.login-lang-dropdown.open .login-lang-globe{
  color:#F5F5F5;border-color:#6366F1;background:rgba(99,102,241,.15);
  box-shadow:0 0 0 3px rgba(99,102,241,.12);
}
.login-lang-menu{
  position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);
  min-width:190px;padding:6px;border-radius:12px;
  background:#1f1f28;border:1px solid rgba(255,255,255,.12);
  box-shadow:0 12px 40px rgba(0,0,0,.45);z-index:100;
}
.login-lang-option{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:10px 12px;border-radius:8px;
  font-size:13px;font-weight:600;color:#E5E5E5;
}
.login-lang-option:hover{background:rgba(99,102,241,.14);color:#A5B4FC}
.login-lang-option.active{color:#A5B4FC;background:rgba(99,102,241,.08)}
.login-lang-check{font-size:12px;font-weight:800;color:#818CF8}
.login-dev-hint{text-align:center;margin:-12px 0 16px;font-size:12px}
.captcha-wrap{display:flex;flex-direction:column;gap:10px;margin-bottom:4px}
.captcha-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.captcha-row img{
  display:block;border:2px solid rgba(99,102,241,.45);border-radius:10px;
  background:#1A1A1A;flex-shrink:0;
}
.captcha-wrap input[type=text]{margin:0}
.btn-captcha-refresh{
  flex-shrink:0;min-width:44px;height:44px;border-radius:10px;
  border:1px solid rgba(99,102,241,.45);background:rgba(99,102,241,.08);
  color:#A5B4FC;font-size:20px;cursor:pointer;
}
.btn-captcha-refresh:hover{background:rgba(99,102,241,.18);border-color:rgba(99,102,241,.7)}
.captcha-hint{font-size:11px;font-weight:600;color:#737373;margin:0;line-height:1.45}
.captcha-hint.ok{color:#86EFAC}
.captcha-hint.err{color:#FCA5A5}
.login-card button[type=submit]:disabled{opacity:.45;cursor:not-allowed}
.platform-captcha-row{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.platform-captcha-row img{border-radius:8px;border:1px solid var(--border,#333)}
.login-box{max-width:400px;margin:10vh auto}
.terms-wrap{max-width:780px}
.prose{font-size:15px;line-height:1.65}
.prose h2{font-size:1.15rem;margin-bottom:10px}
.prose p{margin:0 0 12px}
.terms-checklist{padding-left:1.25rem;margin:0}
.terms-checklist li{margin-bottom:14px}
.disclaimer-box{border-color:#444;background:#1f1f1f}
.accept-list{display:flex;flex-direction:column;gap:12px;margin-top:12px}
label.accept-row{
  display:flex;gap:10px;align-items:flex-start;cursor:pointer;
  margin:0;color:#F5F5F5;font-size:15px;line-height:1.5;
}
.accept-row input[type=checkbox]{
  width:18px;height:18px;min-width:18px;padding:0;margin-top:3px;flex-shrink:0;
  accent-color:#6366F1;cursor:pointer;
}
.accept-row span{flex:1;min-width:0}
.accept-row-single{margin-bottom:16px}
.terms-action-card{padding:18px 20px}
.terms-action-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.btn-terms-agree{
  padding:11px 22px;border:none;border-radius:10px;font-size:15px;font-weight:600;
  background:#818CF8;color:#fff;cursor:pointer;
}
.btn-terms-agree:hover{background:#6366F1}
.btn-terms-decline{padding:11px 18px;font-size:15px}
.terms-decline-note{margin:12px 0 0;font-size:12px}
.terms-footer{text-align:center;margin-top:8px}
.terms-notice{font-size:12px;line-height:1.5;margin-top:16px;padding-top:14px;border-top:1px solid #333;color:#A3A3A3}
.terms-notice a{color:#818CF8}
.filter-row{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end}
.filter-actions{display:flex;gap:8px;padding-bottom:2px}
@media (max-width:720px){.filter-row{grid-template-columns:1fr}}
textarea{min-height:120px;resize:vertical}
@media(max-width:640px){.grid2{grid-template-columns:1fr}}
.log-stats{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0 20px}
.log-stat{
  flex:1;min-width:120px;padding:14px 16px;border-radius:12px;
  background:#1A1A1A;border:1px solid #333;text-align:center;
}
.log-stat-num{display:block;font-size:1.75rem;font-weight:800;line-height:1.1}
.log-stat-label{display:block;font-size:12px;color:#A3A3A3;margin-top:4px}
.log-stat-ok{border-color:rgba(34,197,94,.35)}
.log-stat-ok .log-stat-num{color:#4ADE80}
.log-stat-warn{border-color:rgba(239,68,68,.35)}
.log-stat-warn .log-stat-num{color:#FCA5A5}
.log-all-clear{margin-bottom:16px}
.log-incident{border-left:4px solid #EF4444}
.log-incident-active{background:rgba(239,68,68,.04)}
.log-incident-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px}
.log-incident-title{font-size:1.1rem;margin:0 0 8px}
.log-incident-meta{margin-left:auto;font-size:12px}
.sec-alert{border-left-width:4px}
.sec-critical{border-left-color:#DC2626}
.sec-warning{border-left-color:#F59E0B}
.sec-info{border-left-color:#6366F1}
.badge-log-error{background:rgba(239,68,68,.2);color:#FCA5A5}
.badge-log-critical{background:rgba(220,38,38,.35);color:#FECACA}
.log-fix-box{
  margin:14px 0;padding:12px 14px;border-radius:10px;
  background:rgba(99,102,241,.08);border:1px solid rgba(99,102,241,.25);
}
.log-fix-label{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#818CF8;margin-bottom:8px}
.log-fix-steps{margin:0;padding-left:1.25rem;font-size:14px;line-height:1.55}
.log-fix-steps li{margin-bottom:6px}
.log-details{margin-top:12px;font-size:13px}
.log-details summary{cursor:pointer;color:#818CF8;user-select:none}
.log-message{
  display:block;margin-top:8px;padding:10px;border-radius:8px;
  background:#1A1A1A;font:12px/1.45 Consolas,monospace;word-break:break-all;
}
.log-resolved-section{margin:24px 0 16px;padding-top:8px;border-top:1px solid #333}
.log-resolved-heading{font-size:1.05rem;color:#4ADE80;margin-bottom:6px}
.log-resolved-list{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:8px}
.log-resolved-item{
  display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border-radius:10px;
  background:rgba(34,197,94,.08);border:1px solid rgba(34,197,94,.25);font-size:14px;
}
.log-resolved-check{
  flex-shrink:0;width:22px;height:22px;border-radius:50%;
  background:#22C55E;color:#052e16;font-weight:800;font-size:13px;
  display:flex;align-items:center;justify-content:center;
}
.log-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;align-items:center}
.deploy-cap-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:16px}
@media(max-width:720px){.deploy-cap-grid{grid-template-columns:1fr}}
.deploy-cap{padding:12px 14px;margin-bottom:0;display:flex;flex-direction:column;gap:4px;font-size:13px}
.deploy-cap-ok{border-color:rgba(34,197,94,.35)}
.deploy-cap-warn{border-color:rgba(245,158,11,.35)}
.deploy-auth-row{display:flex;flex-wrap:wrap;gap:16px;margin:8px 0 12px}
.deploy-auth-opt{display:flex;align-items:center;gap:8px;font-size:14px;cursor:pointer}
.deploy-form-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:16px}
.deploy-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 8px}
.deploy-select-all{display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer}
.deploy-folder-card{padding:0;overflow:hidden}
.deploy-folder-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #333;background:#1f1f1f}
.deploy-folder-name{font-size:14px;color:#818CF8}
.deploy-file-table{font-size:13px}
.deploy-file-table th{font-size:11px;text-transform:uppercase;letter-spacing:.03em;color:#A3A3A3}
.btn-deploy{background:linear-gradient(135deg,#6366F1,#8B5CF6);font-size:15px;padding:12px 20px}
.btn-deploy:hover{background:linear-gradient(135deg,#4F46E5,#7C3AED)}
.btn-deploy-inline{background:rgba(99,102,241,.25);color:#C7D2FE;border:1px solid rgba(99,102,241,.45)}
.btn-deploy-inline:hover{background:rgba(99,102,241,.4)}
.log-deploy-link{margin:12px 0 0}
.deploy-permission-card{border-left:4px solid #737373}
.deploy-permission-on{border-left-color:#22C55E;background:rgba(34,197,94,.06)}
.deploy-permission-off{border-left-color:#EF4444;background:rgba(239,68,68,.05)}
.deploy-permission-toggle{margin-top:8px}
.deploy-permission-banner{font-size:13px;margin-bottom:12px}
.deploy-password-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 18px}
.deploy-password-card h3{margin:0 0 8px;font-size:15px}
.deploy-password-card label{margin-top:10px}
.deploy-password-card input{width:100%;margin-top:4px}
@media(max-width:860px){.deploy-password-grid{grid-template-columns:1fr}}
.deploy-owner-notice{
  margin:10px 0 12px;padding:10px 12px;border-radius:10px;font-size:13px;
  background:rgba(245,158,11,.1);border:1px solid rgba(245,158,11,.35);color:#FCD34D;
}
.nav-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-left:4px;vertical-align:middle}
.nav-dot-on{background:#22C55E;box-shadow:0 0 6px rgba(34,197,94,.6)}
button.btn-deploy:disabled{opacity:.45;cursor:not-allowed}
.security-global-access{border-width:2px}
.security-global-access.is-allowed{border-color:rgba(34,197,94,.45)}
.security-global-access.is-blocked{border-color:rgba(239,68,68,.7);background:rgba(239,68,68,.06)}
.security-global-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.security-global-head h2{margin:0 0 12px}
