body.pce{margin:0;min-height:100vh;overflow:hidden;cursor:auto;color:#e7eaf0;background:#07080c;font-family:'Montserrat',sans-serif;}
body.pce a,body.pce button,body.pce label,body.pce select,body.pce summary,body.pce [role=button]{cursor:pointer;}
body.pce input,body.pce textarea{cursor:text;}
body.pce button:disabled{cursor:not-allowed;}

.pce-boot{position:fixed;inset:0;z-index:100001;display:grid;place-items:center;background:#07080c;transition:opacity .35s ease;}
.pce-boot img{width:44px;height:44px;opacity:.9;animation:pceBoot 1.4s ease-in-out infinite;}
.pce-boot.out{opacity:0;pointer-events:none;}
@keyframes pceBoot{0%,100%{opacity:.45;}50%{opacity:.95;}}

body.pce #pc-admin{position:fixed;inset:0;z-index:1;display:flex;padding:0;background:#07080c;-webkit-backdrop-filter:none;backdrop-filter:none;}
body.pce #pc-admin:not(.pca-rp) .pca-box,
body.pce #pc-admin.pca-solo:not(.pca-rp) .pca-box,
body.pce #pc-admin:not(.pca-rp) .pca-box:has(#pca-panel[style*="none"]){width:100%;height:100%;max-height:none;border:0;border-radius:0;box-shadow:none;animation:none;background:#07080c;color:#e7eaf0;}

body.pce #pc-admin:not(.pca-rp) .pca-head{height:64px;padding:0 20px 0 18px;background:#0a0b10;border-bottom:1px solid rgba(255,255,255,.06);}
body.pce #pc-admin:not(.pca-rp) .pca-head h3{gap:12px;font-size:.98rem;}
body.pce #pc-admin:not(.pca-rp) .pca-head h3 .pca-badge{flex:0 0 36px;width:36px;height:36px;border-radius:10px;background:none;box-shadow:none;overflow:hidden;}
body.pce #pc-admin:not(.pca-rp) .pca-head h3 .pca-badge img{display:block;width:34px;height:34px;object-fit:contain;}
body.pce #pc-admin:not(.pca-rp) .pca-htxt{flex-direction:column-reverse;gap:1px;}
body.pce #pc-admin:not(.pca-rp) .pca-hsub{margin:0;font-size:.64rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:rgba(148,163,184,.6);}
body.pce #pc-admin:not(.pca-rp) #pca-title{font-size:.98rem;font-weight:800;color:#fff;}
body.pce #pc-admin:not(.pca-rp) .pca-head>div{gap:10px!important;}
body.pce #pc-admin:not(.pca-rp) .pca-user{height:36px;padding:0 14px 0 4px;gap:9px;color:#e7eaf0;background:rgba(255,255,255,.03);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07);}
body.pce #pc-admin:not(.pca-rp) .pca-user b{color:#fff;font-weight:700;}
body.pce .pce-who-av{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:.72rem;font-weight:800;color:#cbd5e1;background:rgba(255,255,255,.07);}
body.pce .pce-switch{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border-radius:999px;font-size:.74rem;font-weight:700;text-decoration:none;
  color:rgba(203,213,225,.85);background:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);transition:color .2s,background .2s;}
body.pce .pce-switch svg{width:15px;height:15px;}
body.pce .pce-switch:hover{color:#fff;background:rgba(255,255,255,.05);}
body.pce .pce-switch[hidden]{display:none;}
body.pce #pc-admin:not(.pca-rp) .pca-close{width:auto;height:36px;padding:0 16px 0 12px;gap:7px;border-radius:999px;font-size:.74rem;font-weight:700;font-family:inherit;
  display:inline-flex;align-items:center;color:#0a0b10;background:#e7eaf0;box-shadow:none;}
body.pce #pc-admin:not(.pca-rp) .pca-close svg{width:15px;height:15px;}
body.pce #pc-admin:not(.pca-rp) .pca-close:hover{color:#0a0b10;background:#fff;}

body.pce #pc-admin:not(.pca-rp) .pca-body{overflow:hidden;}
body.pce #pc-admin:not(.pca-rp) #pca-panel{grid-template-columns:272px minmax(0,1fr);background:none;}
body.pce #pc-admin:not(.pca-rp) .pca-tabs{background:#0a0b10;border-right:1px solid rgba(255,255,255,.06);padding:0 12px 12px;}
body.pce #pc-admin:not(.pca-rp) .pca-nav-search{background:#0a0b10;-webkit-backdrop-filter:none;backdrop-filter:none;}
body.pce #pc-admin:not(.pca-rp) .pca-nav-search input{background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.07);}
body.pce #pc-admin:not(.pca-rp) .pca-gs-open{background:rgba(255,255,255,.03);}
body.pce #pc-admin:not(.pca-rp) .pca-tabgrp{padding:16px 12px 6px;font-size:.62rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:rgba(148,163,184,.5);}
body.pce #pc-admin:not(.pca-rp) .pca-tab{color:rgba(203,213,225,.7);}
body.pce #pc-admin:not(.pca-rp) .pca-tab.active{color:#fff;background:rgba(255,255,255,.06);box-shadow:inset 2px 0 0 #3b82f6;}
body.pce #pc-admin:not(.pca-rp) .pca-tab.active svg{color:#93c5fd;}
body.pce #pc-admin:not(.pca-rp) #pca-logout{grid-column:1;background:#0a0b10;border-right:1px solid rgba(255,255,255,.06);}
body.pce #pc-admin:not(.pca-rp) .pca-crumb{padding:22px 40px 18px;background:#07080c;}
body.pce #pc-admin:not(.pca-rp) .pca-crumb-ic{color:#cbd5e1;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);}
body.pce #pc-admin:not(.pca-rp) .pca-crumb-txt b{font-size:1.15rem;}
body.pce #pc-admin:not(.pca-rp) .pca-pane{padding:26px 40px 56px;}
body.pce #pc-admin:not(.pca-rp) .pca-pane>*{max-width:1180px;}

body.pce #pc-admin:not(.pca-rp) .pca-box:has(#pca-panel[style*="none"]) .pca-body{display:grid;place-items:center;overflow:auto;padding:32px 20px;}
body.pce #pc-admin:not(.pca-rp) #pca-auth{width:min(440px,100%);padding:36px 32px 32px;border-radius:22px;background:#0c0d13;box-shadow:inset 0 0 0 1px rgba(255,255,255,.07),0 30px 80px -30px rgba(0,0,0,.9);}
body.pce #pc-admin:not(.pca-rp) .pca-auth-ic{width:56px;height:56px;border-radius:17px;color:#e7eaf0;background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px rgba(255,255,255,.09);}
body.pce #pc-admin:not(.pca-rp) .pca-auth-ic svg{width:24px;height:24px;}
body.pce #pc-admin:not(.pca-rp) .pca-auth-intro b{font-size:1.2rem;}
body.pce #pca-auth.pce-is-other>:not(#pce-other){display:none!important;}
body.pce .pce-other[hidden]{display:none;}
body.pce .pce-other-acts{display:flex;flex-direction:column;gap:10px;margin-top:22px;}
body.pce .pce-other-acts .pca-btn{width:100%;height:44px;text-decoration:none;}

.pce-home{display:flex;flex-direction:column;gap:22px;}
.pce-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;padding-bottom:4px;}
.pce-hero-tx small{display:block;margin-bottom:6px;font-size:.72rem;font-weight:700;color:rgba(148,163,184,.75);}
.pce-hero-tx h2{margin:0;font-size:1.7rem;font-weight:800;letter-spacing:-.02em;color:#fff;}
.pce-hero-tx p{margin:8px 0 0;max-width:560px;font-size:.86rem;font-weight:500;line-height:1.6;color:rgba(148,163,184,.85);}
.pce-states{display:flex;flex-wrap:wrap;gap:8px;}
.pce-state{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 13px;border-radius:999px;font-size:.72rem;font-weight:700;color:rgba(203,213,225,.85);background:rgba(255,255,255,.03);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07);}
.pce-state i{width:7px;height:7px;border-radius:50%;background:rgba(148,163,184,.5);}
.pce-state.ok i{background:#22c55e;}
.pce-state.warn i{background:#f59e0b;}
.pce-state.bad i{background:#ef4444;}
.pce-state.warn{color:#fde68a;}
.pce-state.bad{color:#fecaca;}

.pce-kpis{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;}
.pce-kpi{position:relative;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto auto;column-gap:12px;align-items:center;min-height:118px;padding:18px;border:none;border-radius:18px;text-align:left;
  font-family:inherit;color:#e7eaf0;background:#0c0d13;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);transition:background .2s,box-shadow .2s;}
.pce-kpi:hover{background:#101118;box-shadow:inset 0 0 0 1px rgba(255,255,255,.11);}
.pce-kpi:focus-visible{outline:2px solid #60a5fa;outline-offset:2px;}
.pce-kpi-ic{grid-row:1;grid-column:1;width:34px;height:34px;border-radius:11px;display:grid;place-items:center;color:#cbd5e1;background:rgba(255,255,255,.05);}
.pce-kpi-ic svg{width:17px;height:17px;}
.pce-kpi-v{grid-row:1;grid-column:2;justify-self:end;font-size:1.8rem;font-weight:800;letter-spacing:-.03em;line-height:1;color:#fff;font-variant-numeric:tabular-nums;}
.pce-kpi-l{grid-row:2;grid-column:1/3;margin-top:16px;font-size:.8rem;font-weight:700;color:#e7eaf0;}
.pce-kpi-h{grid-row:3;grid-column:1/3;margin-top:3px;font-size:.72rem;font-weight:500;color:rgba(148,163,184,.75);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pce-kpi.is-todo .pce-kpi-ic{color:#fcd34d;background:rgba(245,158,11,.1);}
.pce-kpi.is-todo::after{content:'';position:absolute;top:18px;right:18px;width:6px;height:6px;border-radius:50%;background:#f59e0b;transform:translate(10px,-10px);}
.pce-kpi.is-off .pce-kpi-v{color:rgba(148,163,184,.5);}

.pce-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.pce-card{padding:18px 18px 10px;border-radius:18px;background:#0c0d13;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);}
.pce-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;}
.pce-card h3{margin:0;font-size:.88rem;font-weight:800;color:#fff;}
.pce-link{height:28px;padding:0 12px;border:none;border-radius:999px;font-family:inherit;font-size:.7rem;font-weight:700;color:rgba(203,213,225,.8);background:rgba(255,255,255,.04);transition:color .2s,background .2s;}
.pce-link:hover{color:#fff;background:rgba(255,255,255,.08);}
.pce-list{display:flex;flex-direction:column;}
.pce-row{display:flex;align-items:center;gap:12px;width:100%;padding:11px 8px;margin:0 -8px;width:calc(100% + 16px);border:none;border-radius:12px;background:none;text-align:left;font-family:inherit;color:inherit;transition:background .18s;}
.pce-row+.pce-row{box-shadow:0 -1px 0 rgba(255,255,255,.04);}
button.pce-row:hover{background:rgba(255,255,255,.035);}
.pce-av{flex:none;width:34px;height:34px;border-radius:50%;object-fit:cover;}
#pc-admin .pce-av.pcmod-av-txt{font-size:.7rem;color:#cbd5e1;background:rgba(255,255,255,.07);}
.pce-row-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;}
.pce-row-tx b{font-size:.82rem;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pce-row-tx b em{margin-left:4px;font-style:normal;font-size:.66rem;font-weight:700;color:rgba(148,163,184,.8);}
.pce-row-tx small{font-size:.72rem;font-weight:500;color:rgba(148,163,184,.8);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pce-row-end{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:4px;}
.pce-row-end small{font-size:.68rem;font-weight:500;color:rgba(148,163,184,.65);}
.pce-chip{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:999px;font-size:.62rem;font-weight:800;letter-spacing:.04em;color:rgba(203,213,225,.85);background:rgba(255,255,255,.06);}
.pce-chip.ok{color:#86efac;background:rgba(34,197,94,.1);}
.pce-chip.warn{color:#fcd34d;background:rgba(245,158,11,.1);}
.pce-empty{padding:18px 0 14px;font-size:.78rem;font-weight:500;color:rgba(148,163,184,.75);}

.pce-quick-card{padding-bottom:18px;}
.pce-quick{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px;margin-top:6px;}
.pce-q{display:flex;align-items:flex-start;gap:12px;padding:13px;border:none;border-radius:14px;text-align:left;font-family:inherit;color:inherit;background:rgba(255,255,255,.025);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);transition:background .18s,box-shadow .18s;}
.pce-q:hover{background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);}
.pce-q-ic{flex:none;width:32px;height:32px;border-radius:10px;display:grid;place-items:center;color:#cbd5e1;background:rgba(255,255,255,.05);}
.pce-q-ic svg{width:16px;height:16px;}
.pce-q-tx{min-width:0;display:flex;flex-direction:column;gap:3px;}
.pce-q-tx b{font-size:.8rem;font-weight:700;color:#fff;}
.pce-q-tx small{font-size:.7rem;font-weight:500;line-height:1.45;color:rgba(148,163,184,.75);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}

@media (max-width:1100px){
  .pce-cols{grid-template-columns:minmax(0,1fr);}
}
@media (max-width:820px){
  body.pce #pc-admin:not(.pca-rp) .pca-head{height:58px;padding:0 12px;}
  body.pce #pc-admin:not(.pca-rp) .pca-hsub{display:none;}
  body.pce .pce-switch span{display:none;}
  body.pce .pce-switch{width:36px;padding:0;justify-content:center;}
  body.pce #pc-admin:not(.pca-rp) .pca-close span{display:none;}
  body.pce #pc-admin:not(.pca-rp) .pca-close{width:36px;padding:0;justify-content:center;}
  body.pce #pc-admin:not(.pca-rp) #pca-panel{grid-template-columns:minmax(0,1fr);}
  body.pce #pc-admin:not(.pca-rp) .pca-tabs{border-right:0;}
  body.pce #pc-admin:not(.pca-rp) #pca-logout{border-right:0;}
  body.pce #pc-admin:not(.pca-rp) .pca-crumb{padding:12px 16px;}
  body.pce #pc-admin:not(.pca-rp) .pca-pane{padding:18px 16px 40px;}
  body.pce #pc-admin:not(.pca-rp) #pca-auth{padding:28px 20px 24px;}
  .pce-hero-tx h2{font-size:1.4rem;}
  .pce-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .pce-kpi{min-height:108px;padding:15px;}
  .pce-kpi-v{font-size:1.5rem;}
}
@media (prefers-reduced-motion:reduce){
  .pce-boot img{animation:none;}
}
