.admin-log{font-family:ui-monospace,monospace;font-size:12px;background:#0f172a;color:#d1fae5;border-radius:16px;padding:14px;overflow:auto}

/* Widget Registry v2 */
.registry-form{display:grid;gap:0}
.registry-form textarea{min-height:0}
.registry-supports{display:grid;gap:10px;padding:14px;border:1px solid var(--line);border-radius:18px;background:#f8fafc}
.registry-supports>b{font-weight:800;color:#111827}
.registry-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 12px}
.registry-check-grid .check-row{min-height:0}
@media(max-width:980px){.registry-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.registry-check-grid{grid-template-columns:1fr}}


/* Widget Registry v2.1: реальная загрузка файлов виджетов */
.registry-upload-card{display:grid;gap:12px;padding:16px;border:1px solid #e7e3f6;border-radius:20px;background:#f8f7ff}
.registry-upload-card h3{margin:0 0 4px}.registry-upload-card p{margin:0;line-height:1.45}
.registry-upload-current{display:grid;gap:8px;padding:12px;border:1px solid #e5e7eb;border-radius:16px;background:#fff}
.registry-upload-current span{font-size:12px;font-weight:800;color:#667085;text-transform:uppercase;letter-spacing:.04em}
.registry-upload-current code{display:block;word-break:break-all;white-space:normal}
.registry-technical-details{border:1px solid #e5e7eb;border-radius:18px;background:#fff;padding:14px 16px}
.registry-technical-details summary{cursor:pointer;font-weight:800;color:#101828}
.registry-table-actions{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:760px){.registry-table-actions{display:grid}.registry-table-actions .button{width:100%}}

/* 374: Super Admin readable module shell.
   Loaded after the global light theme, scoped to Super Admin only. */
@supports selector(:has(*)) {
  .main:has(.service-admin-shell-v374){
    --sa-bg:#070A12;
    --sa-panel:rgba(15,23,42,.84);
    --sa-panel-2:rgba(18,25,43,.78);
    --sa-panel-3:rgba(27,35,56,.86);
    --sa-line:rgba(226,232,240,.16);
    --sa-line-strong:rgba(226,232,240,.24);
    --sa-text:#F8FAFC;
    --sa-muted:#CBD5E1;
    --sa-soft:#94A3B8;
    --sa-purple:#7C3AED;
    --sa-green:#5AD14F;
    --sa-green-soft:#BBF7D0;
    --sa-warn:#F59E0B;
    --sa-danger:#EF4444;
    background:
      radial-gradient(circle at 18% 0%, rgba(124,58,237,.30) 0, rgba(124,58,237,0) 34%),
      radial-gradient(circle at 96% 10%, rgba(90,209,79,.16) 0, rgba(90,209,79,0) 28%),
      linear-gradient(135deg,#070A12 0%,#111827 58%,#160B2F 100%)!important;
    color:var(--sa-text)!important;
  }
}

.service-admin-shell-v374{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0 clamp(14px,2vw,28px) 34px!important;
}
.service-admin-shell-v374,
.service-admin-shell-v374 .service-admin-content-v331b{
  color:var(--sa-text,#F8FAFC)!important;
}
.service-admin-shell-v374 .service-admin-page-head-v331a{
  margin:0 0 18px!important;
  background:linear-gradient(135deg,rgba(15,23,42,.96),rgba(32,24,67,.90))!important;
  border:1px solid var(--sa-line,rgba(226,232,240,.16))!important;
  box-shadow:0 24px 70px rgba(2,6,23,.30)!important;
  color:var(--sa-text,#F8FAFC)!important;
}
.service-admin-shell-v374 .service-admin-page-head-v331a h1,
.service-admin-shell-v374 .service-admin-page-head-v331a h2,
.service-admin-shell-v374 .service-admin-page-head-v331a p{
  color:var(--sa-text,#F8FAFC)!important;
}

/* Base module surfaces */
.service-admin-shell-v374 :where(.card,section.card,div.card,.mini-card,.notice,.highlight-box,.info-box,.table-wrap,.page-head.compact,.widgets-panel-sidebar,.widgets-panel-workspace,.widgets-panel-item,.widget-empty-state,.widget-auto-tech-state,.widget-card,.widget-variant-card,.widget-version-card,.widget-accordion,.access-group-card-v262a,.check-row,.inline-form,.short-link-row,.staff-access-card){
  background:linear-gradient(180deg,var(--sa-panel,rgba(15,23,42,.84)),var(--sa-panel-2,rgba(18,25,43,.78)))!important;
  border:1px solid var(--sa-line,rgba(226,232,240,.16))!important;
  box-shadow:none!important;
  color:var(--sa-text,#F8FAFC)!important;
}
.service-admin-shell-v374 :where(.card,section.card,div.card,.mini-card,.notice,.highlight-box,.info-box,.table-wrap,.page-head.compact,.widgets-panel-sidebar,.widgets-panel-workspace,.widgets-panel-item,.widget-empty-state,.widget-auto-tech-state,.widget-card,.widget-variant-card,.widget-version-card,.widget-accordion,.access-group-card-v262a,.check-row){
  border-radius:18px!important;
}
.service-admin-shell-v374 :where(.card,.mini-card,.notice,.highlight-box,.info-box,.table-wrap,.page-head.compact,.widgets-panel,.widget-accordion,.access-group-card-v262a) :where(h1,h2,h3,h4,h5,b,strong,label,span,p,li,td,th,div,summary){
  color:var(--sa-text,#F8FAFC)!important;
}
.service-admin-shell-v374 :where(.muted,.help,.hint,small,.mini,.text-muted),
.service-admin-shell-v374 :where(.card,.mini-card,.notice,.highlight-box,.info-box,.table-wrap,.page-head.compact,.widgets-panel,.widget-accordion,.access-group-card-v262a) :where(.muted,.help,.hint,small,.mini){
  color:var(--sa-muted,#CBD5E1)!important;
}
.service-admin-shell-v374 a{
  color:#C4B5FD!important;
}
.service-admin-shell-v374 a:hover{
  color:#FFFFFF!important;
}

/* Accordions */
.service-admin-shell-v374 .service-admin-accordion-v331c{
  overflow:hidden!important;
  margin:0 0 18px!important;
  background:rgba(15,23,42,.78)!important;
  border:1px solid var(--sa-line,rgba(226,232,240,.16))!important;
  border-radius:22px!important;
  box-shadow:0 18px 48px rgba(2,6,23,.24)!important;
}
.service-admin-shell-v374 .service-admin-accordion-v331c + .service-admin-accordion-v331c{
  margin-top:18px!important;
}
.service-admin-shell-v374 .service-admin-accordion-v331c > summary{
  min-height:62px!important;
  padding:16px 18px!important;
  background:linear-gradient(135deg,rgba(20,28,47,.98),rgba(49,28,88,.86))!important;
  border-bottom:1px solid rgba(226,232,240,.10)!important;
  color:#fff!important;
}
.service-admin-shell-v374 .service-admin-accordion-title-v331c{
  color:#fff!important;
}
.service-admin-shell-v374 .service-admin-accordion-body-v331c{
  padding:16px!important;
  background:rgba(7,10,18,.44)!important;
}
.service-admin-shell-v374 .service-admin-accordion-body-v331c > .card{
  margin:0!important;
}

/* Forms */
.service-admin-shell-v374 label{
  color:#E8ECF7!important;
  font-weight:800!important;
}
.service-admin-shell-v374 :where(input,select,textarea){
  color:var(--sa-text,#F8FAFC)!important;
  background:rgba(7,10,18,.72)!important;
  border:1px solid rgba(226,232,240,.22)!important;
  box-shadow:none!important;
  color-scheme:dark;
}
.service-admin-shell-v374 :where(input,select,textarea):focus{
  border-color:rgba(90,209,79,.62)!important;
  box-shadow:0 0 0 4px rgba(90,209,79,.14)!important;
}
.service-admin-shell-v374 input::placeholder,
.service-admin-shell-v374 textarea::placeholder{
  color:rgba(203,213,225,.70)!important;
}
.service-admin-shell-v374 select option{
  background:#101522!important;
  color:#fff!important;
}
.service-admin-shell-v374 :where(input[type="checkbox"],input[type="radio"]){
  width:auto!important;
  min-height:auto!important;
  accent-color:var(--sa-green,#5AD14F)!important;
}
.service-admin-shell-v374 .check-row{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-height:42px!important;
  padding:10px 12px!important;
}

/* Tables */
.service-admin-shell-v374 :where(table,.table){
  width:100%!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  background:rgba(7,10,18,.55)!important;
  color:var(--sa-text,#F8FAFC)!important;
}
.service-admin-shell-v374 :where(table,.table) thead th{
  background:rgba(226,232,240,.09)!important;
  color:#DDE5F7!important;
  border-bottom:1px solid rgba(226,232,240,.14)!important;
}
.service-admin-shell-v374 :where(table,.table) tbody td{
  background:rgba(15,23,42,.46)!important;
  color:#F8FAFC!important;
  border-bottom:1px solid rgba(226,232,240,.09)!important;
}
.service-admin-shell-v374 :where(table,.table) tbody tr:nth-child(even) td{
  background:rgba(30,41,59,.50)!important;
}
.service-admin-shell-v374 :where(td,th){
  white-space:normal!important;
  word-break:break-word!important;
  overflow-wrap:anywhere!important;
}

/* Badges, notices and buttons */
.service-admin-shell-v374 :where(.badge,.pill,.status-badge,.tag,.label,.chip){
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:26px!important;
  padding:4px 10px!important;
  border-radius:999px!important;
  background:rgba(124,58,237,.24)!important;
  border:1px solid rgba(196,181,253,.30)!important;
  color:#fff!important;
  font-weight:850!important;
  line-height:1.2!important;
}
.service-admin-shell-v374 :where(.badge.ok,.badge.active,.badge.success,.pill.ok,.pill.active,.pill.success,.status-badge.ok,.status-badge.active,.status-badge.success){
  background:rgba(34,197,94,.18)!important;
  border-color:rgba(34,197,94,.34)!important;
  color:var(--sa-green-soft,#BBF7D0)!important;
}
.service-admin-shell-v374 :where(.badge.warning,.badge.warn,.badge.pending,.badge.wait,.pill.warning,.pill.warn,.status-badge.warning,.status-badge.warn){
  background:rgba(245,158,11,.18)!important;
  border-color:rgba(245,158,11,.36)!important;
  color:#FDE68A!important;
}
.service-admin-shell-v374 :where(.badge.danger,.badge.error,.pill.danger,.pill.error,.status-badge.danger,.status-badge.error){
  background:rgba(239,68,68,.18)!important;
  border-color:rgba(239,68,68,.38)!important;
  color:#FECACA!important;
}
.service-admin-shell-v374 :where(.notice.info){
  background:rgba(59,130,246,.14)!important;
  border-color:rgba(96,165,250,.30)!important;
}
.service-admin-shell-v374 :where(.notice.warning){
  background:rgba(245,158,11,.14)!important;
  border-color:rgba(245,158,11,.34)!important;
}
.service-admin-shell-v374 :where(.notice.success){
  background:rgba(34,197,94,.14)!important;
  border-color:rgba(34,197,94,.32)!important;
}
.service-admin-shell-v374 :where(button,.button,input[type="submit"]){
  color:#fff!important;
}
.service-admin-shell-v374 :where(button.ghost,.button.ghost,a.ghost,.ghost){
  background:rgba(255,255,255,.07)!important;
  border:1px solid rgba(226,232,240,.18)!important;
  color:#F8FAFC!important;
  box-shadow:none!important;
}
.service-admin-shell-v374 :where(button.ghost,.button.ghost,a.ghost,.ghost):hover{
  background:rgba(124,58,237,.24)!important;
  border-color:rgba(196,181,253,.38)!important;
}
.service-admin-shell-v374 :where(button.danger,.button.danger,.danger){
  background:#dc2626!important;
  border-color:#dc2626!important;
  color:#fff!important;
}
.service-admin-shell-v374 :where(code,pre,.admin-log){
  color:#D1FAE5!important;
  background:rgba(2,6,23,.70)!important;
  border:1px solid rgba(226,232,240,.14)!important;
}

/* Section modules: billing, tariffs, payments */
.service-admin-section-billing .service-admin-accordion-body-v331c,
.service-admin-section-tariffs .service-admin-accordion-body-v331c,
.service-admin-section-payments .service-admin-accordion-body-v331c{
  background:rgba(7,10,18,.50)!important;
}
.service-admin-section-billing :where(form,.mini-card,.card),
.service-admin-section-tariffs :where(form,.mini-card,.card),
.service-admin-section-payments :where(form,.mini-card,.card){
  min-width:0!important;
}
.service-admin-section-tariffs details{
  color:var(--sa-text,#F8FAFC)!important;
}
.service-admin-section-tariffs details > summary{
  margin-bottom:10px!important;
}

/* Keep inline old light backgrounds from washing text out. */
.service-admin-shell-v374 [style*="background:#fff"],
.service-admin-shell-v374 [style*="background: #fff"],
.service-admin-shell-v374 [style*="background:white"],
.service-admin-shell-v374 [style*="background: white"],
.service-admin-shell-v374 [style*="background-color:#fff"],
.service-admin-shell-v374 [style*="background-color: #fff"],
.service-admin-shell-v374 [style*="background-color:white"],
.service-admin-shell-v374 [style*="background-color: white"],
.service-admin-shell-v374 [style*="background:#fffbeb"],
.service-admin-shell-v374 [style*="background: #fffbeb"]{
  background:rgba(15,23,42,.72)!important;
  color:var(--sa-text,#F8FAFC)!important;
}
.service-admin-shell-v374 [style*="color:#667085"],
.service-admin-shell-v374 [style*="color: #667085"],
.service-admin-shell-v374 [style*="color:#98a2b3"],
.service-admin-shell-v374 [style*="color: #98a2b3"],
.service-admin-shell-v374 [style*="color:#475467"],
.service-admin-shell-v374 [style*="color: #475467"]{
  color:var(--sa-muted,#CBD5E1)!important;
}

@media(max-width:980px){
  .service-admin-shell-v374{
    padding:0 10px 24px!important;
  }
  .service-admin-shell-v374 .service-admin-page-head-v331a{
    padding:18px!important;
    border-radius:22px!important;
  }
  .service-admin-shell-v374 .service-admin-accordion-body-v331c{
    padding:12px!important;
  }
  .service-admin-shell-v374 .widgets-panel{
    grid-template-columns:1fr!important;
  }
}

@media(max-width:760px){
  .service-admin-shell-v374 .service-admin-page-head-v331a h1{
    font-size:25px!important;
  }
  .service-admin-shell-v374 .service-admin-accordion-v331c{
    border-radius:18px!important;
  }
  .service-admin-shell-v374 .service-admin-accordion-v331c > summary{
    padding:14px!important;
  }
  .service-admin-shell-v374 :where(table,.table){
    min-width:680px!important;
  }
}
