/* cms-admin-ux-v1 */
.admin-toast-host{position:fixed;right:1rem;bottom:1rem;z-index:12000;display:flex;flex-direction:column;gap:.55rem;max-width:min(380px,92vw);pointer-events:none}
.admin-toast{pointer-events:auto;padding:.85rem 1rem;border-radius:12px;border:1px solid rgba(0,0,0,.12);background:#111;color:#f5f5f5;box-shadow:0 12px 32px rgba(0,0,0,.28);font-size:.9rem;line-height:1.45}
.admin-toast--success{background:#12301c;border-color:#2f6b45}
.admin-toast--error{background:#3a1515;border-color:#8a3030}
.admin-toast--info{background:#1a1a1a}
.admin-loading{opacity:.7;font-style:italic;padding:1rem}
.admin-empty{padding:1.5rem;text-align:center;color:#666;border:1px dashed rgba(0,0,0,.14);border-radius:12px;background:rgba(255,255,255,.6)}
.admin-toolbar{display:flex;flex-wrap:wrap;gap:.65rem;align-items:center;margin:0 0 1rem;padding:.65rem .85rem;border:1px solid rgba(0,0,0,.08);border-radius:12px;background:rgba(255,255,255,.72)}
.admin-toolbar input[type="search"],.admin-toolbar select{min-height:40px;padding:.45rem .7rem;border-radius:8px;border:1px solid rgba(0,0,0,.16);background:#fff}
.admin-form-actions{position:sticky;bottom:0;z-index:5;display:flex;gap:.65rem;flex-wrap:wrap;padding:.85rem 0 .25rem;background:linear-gradient(180deg,transparent,rgba(248,248,248,.95) 28%);margin-top:1rem}
.admin-nav-group-toggle{width:100%;text-align:left;background:transparent;border:0;color:inherit;font:inherit;font-weight:700;padding:.45rem .7rem;border-radius:8px;cursor:pointer}
.admin-nav-group-toggle:hover{background:rgba(255,255,255,.06)}
.admin-nav-collapsed .admin-nav-link{display:none}
.admin-save-status{font-size:.82rem;color:#666;margin-left:auto}
.admin-save-status.is-saving{color:#8a6d00}
.admin-save-status.is-saved{color:#1f6b3a}
.admin-save-status.is-conflict{color:#a32020;font-weight:700}
.cms-seo-hint{font-size:.78rem;color:#777;margin-top:.25rem}
.cms-rich-toolbar{display:flex;flex-wrap:wrap;gap:.35rem;margin:0 0 .45rem}
.cms-rich-toolbar button{min-height:34px;padding:.25rem .55rem;border-radius:8px;border:1px solid rgba(0,0,0,.14);background:#fff;cursor:pointer;font-size:.8rem}
.cms-rich-area{min-height:180px;border:1px solid rgba(0,0,0,.16);border-radius:10px;padding:.75rem;background:#fff}
.media-picker-modal{position:fixed;inset:0;z-index:11000;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;padding:1rem}
.media-picker-dialog{background:#fff;color:#111;border-radius:14px;max-width:840px;width:100%;max-height:86vh;overflow:auto;padding:1rem 1.15rem;box-shadow:0 20px 50px rgba(0,0,0,.28)}
@media (max-width:900px){.admin-toolbar{flex-direction:column;align-items:stretch}}
@media (max-width:768px){
  .admin-form-actions{padding-bottom:max(.85rem,env(safe-area-inset-bottom,0px))}
  .admin-toast-host{left:1rem;right:1rem;max-width:none;align-items:stretch}
  .media-picker-dialog{max-height:90dvh;padding:.85rem}
  .cms-rich-toolbar{gap:.3rem}
  .cms-rich-toolbar button{flex:1 1 auto;min-height:40px}
  .admin .ql-toolbar.ql-snow{white-space:normal!important}
  #aap-ops-toolbar{flex-wrap:wrap;gap:.5rem}
  #aap-ops-toolbar .btn{flex:1 1 auto}
}
@media (max-width:480px){
  .admin-toolbar input[type="search"],.admin-toolbar select{width:100%}
}
