#btnAdminProjects { margin-bottom: 12px; width: 100%; }
#btnAdminProjects[hidden] { display: none; }
#adminProjectsDialog { width: min(1160px, 95vw); max-width: 95vw; height: 86vh; max-height: 92vh; margin:auto; padding: 22px; border: 1px solid #cbd5e1; border-radius: 16px; color: #1e293b; background: #f8fafc; box-shadow: 0 20px 80px #0f172a40; box-sizing: border-box; }
#adminProjectsDialog::backdrop { background: #0f172a80; }
#adminProjectsDialog header { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.admin-project-header-actions { display:flex; gap:8px; flex-shrink:0; }
#adminProjectsDialog button:disabled { opacity:.6; cursor:wait; }
#adminProjectsDialog h2 { margin:0; font-size:22px; }
.admin-project-summary { margin-top:6px; color:#0369a1; font-size:14px; font-weight:600; line-height:20px; }
#adminProjectsDialog p { color:#475569; font-size:13px; }
#adminProjectsDialog button { cursor:pointer; padding:8px 12px; border:1px solid #cbd5e1; border-radius:8px; background:white; color:#0f172a; }
#adminProjectsDialog button:hover { background:#e0f2fe; border-color:#0284c7; }
#adminProjectsDialog button:focus-visible, #adminProjectsDialog input:focus-visible, #adminProjectsDialog select:focus-visible { outline:2px solid #0284c7; outline-offset:2px; }
.admin-project-layout { display:grid; grid-template-columns:320px minmax(0,1fr); gap:20px; height:calc(100% - 106px); }
.admin-project-layout aside, .admin-project-preview { overflow:auto; min-height:0; }
.admin-project-layout label { display:block; font-size:13px; font-weight:600; margin-bottom:14px; }
.admin-project-layout input, .admin-project-layout select { display:block; width:100%; box-sizing:border-box; margin-top:7px; padding:8px; border:1px solid #cbd5e1; border-radius:8px; background:white; color:#1e293b; }
.admin-project-layout select[size] { min-height:120px; }
.admin-project-layout .admin-project-filter { display:flex; align-items:center; gap:8px; cursor:pointer; }
.admin-project-filter input[type="checkbox"] { width:16px; height:16px; margin:0; padding:0; flex-shrink:0; accent-color:#0284c7; }
.admin-project-list { display:grid; gap:8px; }
.admin-project-list button { text-align:left; overflow-wrap:anywhere; }
.admin-project-list strong, .admin-project-list small { display:block; }
.admin-project-list small { color:#64748b; margin-top:6px; }
.admin-project-preview { padding:16px; background:white; border:1px solid #e2e8f0; border-radius:12px; }
.admin-project-preview h3 { margin:0; overflow-wrap:anywhere; }
.admin-project-schematic { display:block; width:100%; height:360px; background:#f8fafc; border-radius:8px; }
.admin-project-zoom { display:flex; gap:8px; margin:12px 0; }
.admin-project-preview pre { white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; }
.admin-project-preview summary { cursor:pointer; font-size:13px; }
@media(max-width:700px) {
  #adminProjectsDialog { padding:14px; }
  .admin-project-layout { display:flex; flex-direction:column; height:auto; }
  .admin-project-layout aside, .admin-project-preview { overflow:visible; }
  .admin-project-list { max-height:200px; overflow:auto; }
  .admin-project-schematic { height:280px; }
}
