/* Comfortable editor panels and a dashboard that scrolls only its content. */
body.editor-page {--editor-tools:clamp(280px,var(--editor-tools-default,300px),min(420px,28vw))}
body.editor-page .inspector input,
body.editor-page .inspector select,
body.editor-page .inspector textarea {box-sizing:border-box;min-width:0;width:100%;font-size:16px!important;padding:10px}
body.editor-page .inspector select {font-weight:500}
body.editor-page .inspector label {font-size:15px!important;min-width:0}
body.editor-page .inspector .two {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important;min-width:0}
body.editor-page .inspector .two label {min-width:0;gap:6px}
body.editor-page .inspector-tabs button {font-size:16px!important;min-height:44px}
body.editor-page .inspector input[type="color"] {min-height:40px;padding:5px}

body.dashboard-page {--dashboard-sidebar:260px;height:100dvh;overflow:hidden;box-sizing:border-box}
body.dashboard-page .site-sticky-stack .site-header {padding-inline:20px!important}
body.dashboard-page .running-footer {position:fixed!important;inset:auto 0 0;box-sizing:border-box}
body.dashboard-page .dashboard-site-main {flex:none;height:calc(100dvh - var(--site-stack-height) - var(--footer-ticker-height));min-height:0;overflow:hidden}
body.dashboard-page .page-ad-layout,
body.dashboard-page .page-content {height:100%;min-height:0;overflow:hidden}
body.dashboard-page .app-shell.modern-dashboard {height:100%;min-height:0!important;grid-template-columns:var(--dashboard-sidebar) minmax(0,1fr);align-items:stretch!important;overflow:hidden;background:var(--bg)!important}
body.dashboard-page .app-shell.modern-dashboard .sticky-sidebar {display:flex;position:relative;top:auto!important;height:100%!important;min-height:0;box-sizing:border-box;padding:16px 20px;overflow:hidden!important}
body.dashboard-page .app-sidebar .sidebar-top {flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
body.dashboard-page .app-sidebar .sidebar-profile {flex:0 0 auto;margin-top:12px!important;padding:14px 0 0!important;min-width:0}
body.dashboard-page .app-sidebar a {font-size:15px}
body.dashboard-page .app-shell.modern-dashboard .workspace {height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding-top:24px;padding:22px 30px 32px!important;box-sizing:border-box}
body.dashboard-page .workspace:focus-visible {outline:2px solid #93c5fd;outline-offset:-2px}
body.dashboard-page .workspace-head {position:relative;top:auto!important;margin:0;padding:0;min-width:0;flex-wrap:wrap;background:var(--bg);backdrop-filter:none;border-bottom:0}
body.dashboard-page .workspace-head .row {flex-wrap:wrap;gap:10px}
body.dashboard-page .stat-grid {margin:22px 0;gap:16px}
body.dashboard-page .stat-grid article {padding:18px;min-width:0}
body.dashboard-page .dashboard-section {scroll-margin-top:0}
body.dashboard-page .workspace-messages {margin:18px 0}
body.dashboard-page .workspace-messages .flash {overflow-wrap:anywhere}
.dashboard-mobile-nav {display:none}

@media(max-width:1100px) {
  body.dashboard-page {--dashboard-sidebar:230px}
  body.dashboard-page .site-header {gap:20px}
  body.dashboard-page .site-header nav {gap:16px}
  body.dashboard-page .site-header .brand span {font-size:23px}
  body.dashboard-page .project-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px) {
  body.editor-page {--editor-tools:0px}
  body.editor-page .inspector {width:min(var(--editor-tools-default,300px),calc(100vw - 48px));box-sizing:border-box}
}
@media(max-width:850px) {
  body.dashboard-page .app-shell.modern-dashboard {grid-template-columns:minmax(0,1fr)}
  body.dashboard-page .app-shell.modern-dashboard .sticky-sidebar {display:none}
  body.dashboard-page .app-shell.modern-dashboard .workspace {padding:22px 20px 30px!important}
  .dashboard-mobile-nav {display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}
  .dashboard-mobile-nav a {border:1px solid var(--line);border-radius:9px;padding:9px 12px;background:var(--surface);font-size:14px}
  body.dashboard-page .stat-grid.four {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px) {
  body.dashboard-page .site-sticky-stack .site-header {padding-inline:16px!important}
  body.dashboard-page .app-shell.modern-dashboard .workspace {padding:20px 16px 26px!important}
  body.dashboard-page .workspace-head {flex-direction:column;align-items:flex-start;gap:16px}
  body.dashboard-page .workspace-head h1 {font-size:28px}
  body.dashboard-page .project-grid {grid-template-columns:minmax(0,1fr)}
  body.dashboard-page .stat-grid article b {font-size:24px}
}
@media print {
  body.dashboard-page {height:auto;overflow:visible}
  body.dashboard-page .dashboard-site-main,
  body.dashboard-page .page-ad-layout,
  body.dashboard-page .page-content,
  body.dashboard-page .app-shell.modern-dashboard,
  body.dashboard-page .app-shell.modern-dashboard .workspace {height:auto;overflow:visible}
  body.dashboard-page .app-shell.modern-dashboard {display:block}
  body.dashboard-page .app-shell.modern-dashboard .sticky-sidebar {display:none}
}
