.admin-shell{max-width:1320px;padding:28px 20px}.admin-shell>div>nav{height:auto;margin:0 0 18px}.admin-shell .panel{margin:0 0 18px}.admin-shell #login-panel{max-width:420px;margin:42px auto}.admin-shell h1{margin-bottom:16px}.admin-shell h2{margin-bottom:12px}.admin-shell .inline-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.admin-shell .inline-form label{flex:1;min-width:135px}.admin-shell .check{display:flex;align-items:center;min-width:85px;flex:none;min-height:40px}.admin-shell .table-wrap{overflow-x:auto}.admin-shell table{width:100%;border-collapse:collapse;text-align:left}.admin-shell th,.admin-shell td{padding:12px;border-bottom:1px solid var(--line);vertical-align:middle}.admin-shell th{background:var(--bg);white-space:nowrap}.admin-shell td:first-child{overflow-wrap:anywhere}.admin-shell .metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:14px}.admin-shell .metrics strong{font-size:27px}.admin-shell .metrics span{display:block;margin-bottom:8px;color:var(--muted)}.admin-shell #admin-status{min-height:2em;color:var(--purple-text)}.admin-shell .lead{margin:0 0 18px}.admin-shell td a{color:var(--blue)}.admin-shell .toolbar{margin:12px 0}.admin-shell .toolbar input{max-width:320px}

#admin-app{display:grid;grid-template-columns:175px minmax(0,1fr);align-items:start;gap:16px}
#admin-app:has(.admin-navigation:not([open])){grid-template-columns:110px minmax(0,1fr)}
.admin-navigation{position:sticky;top:calc(var(--header-height) + 12px);background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:10px}
.admin-navigation summary{padding:5px 6px;font-weight:650}
.admin-navigation nav{display:grid;align-items:stretch;height:auto;gap:3px;max-height:calc(100vh - 155px);margin-top:5px;overflow:auto}
.admin-navigation nav a{min-height:32px;padding:6px 9px}
#admin-view{min-width:0}
@media(max-width:730px){#admin-app,#admin-app:has(.admin-navigation:not([open])){grid-template-columns:minmax(0,1fr)}.admin-navigation{position:static}.admin-navigation nav{display:flex;flex-wrap:wrap}}

@media(max-width:620px){
  .admin-shell{padding:16px 10px}
  .admin-shell .panel{padding:13px}
  .admin-shell .metrics{grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr))}
  .admin-shell .table-wrap{max-width:100%;overscroll-behavior-x:contain}
  .admin-shell table{min-width:max-content}
  .admin-shell th,.admin-shell td{padding:8px}
  .admin-shell td{max-width:240px;overflow-wrap:anywhere}
  .admin-shell .inline-form label{min-width:min(100%,135px)}
  .admin-navigation nav a{white-space:normal}
}

.admin-login-video{display:block;width:min(100%,520px);max-height:320px;background:#101820;border-radius:10px}

/* Match the creator workspace shell, using the same theme and selection tokens. */
.admin-head{background:var(--bg);border-bottom:1px solid var(--line)}
.admin-head .topbar{justify-content:flex-start;flex-wrap:wrap}
.admin-head .brand{margin-right:0}
.admin-head .row{margin-left:auto}
.admin-head button,.admin-head .button{min-height:35px;padding:6px 10px;font-size:13px}
.admin-shell{max-width:1600px}
#admin-app{grid-template-columns:minmax(150px,175px) minmax(0,1fr) minmax(220px,255px)}
#admin-app[data-feature-closed]{grid-template-columns:minmax(150px,175px) minmax(0,1fr)}
#admin-app:has(.admin-navigation:not([open])){grid-template-columns:110px minmax(0,1fr) minmax(220px,255px)}
#admin-app[data-feature-closed]:has(.admin-navigation:not([open])){grid-template-columns:110px minmax(0,1fr)}
.admin-navigation{background:var(--bg);box-shadow:none;border-color:var(--line)}
.admin-navigation nav{border:0}
#admin-feature-panel{position:sticky;top:calc(var(--header-height) + 12px);max-height:calc(100dvh - var(--header-height) - 24px);overflow:auto;padding:13px;margin:0}
#admin-feature-panel h2{font-size:16px;margin-bottom:4px}
#admin-feature-panel p{font-size:12px}
#admin-feature-options{gap:7px}
#admin-feature-options fieldset{margin:0;border-color:var(--line);padding:7px}
#admin-feature-options legend{padding-inline:4px;color:var(--muted);font-size:12px}
#admin-feature-options label{display:flex;gap:6px;min-height:30px;font-size:13px;font-weight:500}
#admin-feature-options input{accent-color:#7658af}
#admin-feature-status:empty{display:none}
@media(max-width:1100px){
 #admin-app,#admin-app:has(.admin-navigation:not([open])){grid-template-columns:minmax(140px,170px) minmax(0,1fr)}
 #admin-feature-panel{position:static;max-height:none;grid-column:2;grid-row:1;margin:0 0 7px}
 #admin-app:not([data-feature-closed]) #admin-view{grid-column:2}
}
@media(max-width:730px){
 #admin-app,#admin-app[data-feature-closed],#admin-app:has(.admin-navigation:not([open])),#admin-app[data-feature-closed]:has(.admin-navigation:not([open])){grid-template-columns:minmax(0,1fr)}
 #admin-feature-panel,#admin-app:not([data-feature-closed]) #admin-view{grid-column:1;grid-row:auto}
 #admin-app:not([data-feature-closed]) #admin-view{order:3}
 .admin-head .row{margin-left:0}
}
