/* v16.6 — compact login challenge and smaller screens. */
/* Preserve the HTML hidden contract after removal of legacy cascade overrides. */
[hidden][hidden] { display:none; }
.captcha-slot { min-height:0; margin:10px 0 14px; overflow:hidden; }
.captcha-slot:empty { display:none; }
.captcha-slot.is-loading { display:block; min-height:64px; }
.captcha-slot iframe { max-width:100%; }
@media (max-width:760px) {
  .admin-header { padding:12px 16px; gap:10px; flex-wrap:wrap; }
  .admin-header .wordmark { font-size:1rem; }
  .admin-header .back-link { margin-left:auto; font-size:.72rem; }
  .admin-main { padding:20px 14px 56px; }
  .intro { margin-bottom:22px; }
  .intro h1 { font-size:clamp(2rem,8vw,3rem); }
  .panel { padding:18px 14px; }
  .unified-editor-shell, .visual-editor-layout { min-width:0; }
  .unified-editor-tabs, .settings-navigation, [role="tablist"] { max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; }
  .visual-editor-frame-wrap { order:2; }
  .visual-editor-controls, .visual-editor-settings, .unified-editor-controls { order:1; }
}


/* Avoid duplicate navigation: the task sidebar is the only menu outside the advanced editor. */
body:not(.show-editor-sub-navigation) .unified-editor-tabs { display:none; }
body:not(.show-editor-sub-navigation) .unified-editor-tools { grid-template-columns:minmax(0,1fr); }
body.show-editor-sub-navigation .unified-editor-tabs { display:flex; }
body.show-editor-sub-navigation .unified-editor-tools { grid-template-columns:136px minmax(0,1fr); }
.unified-preview-note::after { content:" · Rascunho local até salvar."; }
.unified-action-note { font-size:11px; line-height:1.35; }
@media (max-width:760px) {
  /* Compact one-row navigation at the top, without the large brand block. */
  body.admin-shell-ready .admin-sidebar { position:sticky; top:0; z-index:80; margin:0 -14px 10px; border-radius:0; padding:7px 10px; gap:0; background:var(--ui-sidebar); }
  body.admin-shell-ready .sidebar-brand { display:none; }
  body.admin-shell-ready .admin-nav { display:flex; flex-wrap:nowrap; overflow-x:auto; overscroll-behavior-x:contain; gap:4px; padding:2px 0 5px; scrollbar-width:thin; }
  body.admin-shell-ready .admin-nav-item { flex:0 0 auto; min-height:36px; padding:7px 10px; white-space:nowrap; }
  body.admin-shell-ready .nav-item-description { display:none; }
  body:not(.show-editor-sub-navigation) .unified-site-editor { grid-template-columns:minmax(0,1fr); gap:12px; }
  body:not(.show-editor-sub-navigation) .unified-editor-tools { grid-template-columns:minmax(0,1fr); }
  body:not(.show-editor-sub-navigation) .unified-editor-panes { max-height:none; overflow:visible; padding:12px; }
  body:not(.show-editor-sub-navigation) .unified-editor-preview { height:52vh; min-height:360px; max-height:560px; }
  body.show-editor-sub-navigation .unified-site-editor { grid-template-columns:minmax(0,1fr); gap:12px; }
  body.show-editor-sub-navigation .unified-editor-tools { grid-template-columns:minmax(0,1fr); }
  body.show-editor-sub-navigation .unified-editor-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; max-height:none; min-height:0; overflow:visible; border-right:0; border-bottom:1px solid var(--shell-line); }
  body.show-editor-sub-navigation .unified-editor-tabs .editor-tab-button { min-height:42px; flex-direction:row; justify-content:flex-start; padding:6px; }
  body.show-editor-sub-navigation .unified-editor-tabs .editor-tab-label { font-size:10px; }
  .visual-editor-frame-wrap { order:2; }
  .visual-editor-controls, .visual-editor-settings, .unified-editor-controls { order:1; }
}

/* v16.7 — keep the site canvas interactive for element selection and drag editing. */
.unified-editor-preview .visual-editor-frame-wrap { position: relative; pointer-events: auto; isolation: isolate; }
.unified-editor-preview #site-preview-frame { position: relative; z-index: 1; pointer-events: auto; touch-action: pan-x pan-y; }

/* movido do admin.html (CSP sem inline) */
.editor-shortcuts-help{font-size:13px;line-height:1.6;letter-spacing:normal;color:#42515a}.editor-shortcuts-help summary{cursor:pointer;font-weight:700;letter-spacing:.02em;padding:5px 0}.editor-shortcuts-help p{max-width:900px;margin:6px 0 10px}.editor-shortcuts-help kbd{font:600 12px/1.4 system-ui,sans-serif;letter-spacing:normal;background:#ece8df;border:1px solid #d5d0c6;border-radius:4px;padding:2px 5px;white-space:nowrap}
