.editor-shell{padding-block:2rem;max-width:1100px}.editor-shell h1{margin-top:1rem}.editor-shell p{line-height:1.9}.editor-toolbar,.editor-controls{display:flex;gap:.7rem;align-items:center;flex-wrap:wrap;margin-block:1rem}.editor-shell button,.button-file{background:#091d3f;color:white;border:0;border-radius:8px;padding:.7rem 1rem;cursor:pointer;font:inherit}.editor-shell button:hover,.button-file:hover{background:#254779}.editor-shell input,.editor-shell select,.editor-shell textarea{font:inherit;padding:.65rem;border:1px solid #a5b1c3;border-radius:6px;max-width:100%;background:white;color:#091d3f}.button-file input{display:none}#raw{display:block;min-height:440px;width:100%;font-family:monospace;font-size:15px;margin-block:.7rem}#message{padding:.8rem;border-radius:8px;background:#edf2fa;min-height:2.5rem}#message.error,#form-error{color:#a22121}.record{padding:1rem;border:1px solid #d2dbe6;border-radius:10px;background:white;margin-block:.7rem;display:flex;justify-content:space-between;gap:1rem;align-items:center}.record small{display:block;color:#556477}.record-actions{display:flex;gap:.5rem;flex-shrink:0}.record .delete{background:#8f2929}.record img{width:100px;height:70px;object-fit:contain;display:block;margin-top:.4rem}dialog{width:min(680px,94vw);max-height:90vh;overflow:auto;border:0;border-radius:14px;padding:1.5rem;color:#091d3f}dialog::backdrop{background:#091d3fa8}#fields label{display:block;margin-block:.8rem .25rem;font-weight:700}#fields input,#fields textarea,#fields select{width:100%;box-sizing:border-box}#fields textarea{min-height:100px}#fields .field-note{font-size:14px;color:#556477;line-height:1.7}.editor-shell [hidden]{display:none!important}@media(max-width:620px){.record{align-items:stretch;flex-direction:column}.record-actions{justify-content:flex-start}.editor-toolbar button,.button-file{flex-grow:1;text-align:center}}

body{background:#f3f5f9}.editor-shell{max-width:1180px}.admin-top,.admin-heading,.panel-heading{display:flex;justify-content:space-between;gap:1rem;align-items:center}.admin-top{padding-bottom:1.2rem;border-bottom:1px solid #d9e1ec}.admin-top .brand{color:#091d3f}.admin-heading{margin:1.5rem 0}.admin-heading h1{font-size:clamp(1.8rem,4vw,2.7rem);margin:.3rem 0}.admin-heading p{color:#637087;margin:0}#identity{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}.auth-card{max-width:460px;background:white;border:1px solid #d9e1ec;padding:1.5rem;border-radius:16px;margin:1.5rem auto}.auth-card label,#user-form>label{display:block;margin:1rem 0 .3rem;font-weight:700}.auth-card input,#user-form>input,#user-form>select{width:100%;box-sizing:border-box}.auth-card button{width:100%;margin-top:1.3rem}.dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.stat-card{background:white;border:1px solid #d9e1ec;border-radius:14px;padding:1.2rem;border-top:3px solid #d8ad48}.stat-card span{color:#637087}.stat-card strong{display:block;font-size:2rem}.admin-tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin:1.5rem 0}.admin-tabs button{background:#e4eaf3;color:#091d3f}.admin-tabs button[aria-pressed=true]{background:#091d3f;color:white}.admin-panel{padding:1.4rem;border:1px solid #d9e1ec;border-radius:16px;background:white}.admin-panel h2{margin:0}.panel-heading p{color:#637087}.panel-heading>button{background:#176451;flex-shrink:0}.editor-shell button{min-height:44px}.editor-shell button:disabled{opacity:.55;cursor:wait}.editor-shell input,.editor-shell select,.editor-shell textarea{font-size:16px;min-height:44px}.editor-shell :focus-visible{outline:3px solid #bb8b23;outline-offset:3px}#auth-message{overflow-wrap:anywhere}.error,#user-error{color:#a22121}#permissions-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1rem 0}#permissions-grid fieldset{border:1px solid #d9e1ec;border-radius:12px;min-width:0}#permissions-grid legend{font-weight:800}.check-label{display:flex!important;align-items:center;gap:.7rem;margin:.5rem 0}.check-label input{width:22px!important;height:22px!important;min-height:22px!important;accent-color:#176451}.record>div{min-width:0}.record strong,.record small{overflow-wrap:anywhere}.record-actions{flex-wrap:wrap}dialog input,dialog select,dialog textarea{font:inherit;max-width:100%;padding:.65rem;border:1px solid #a5b1c3;border-radius:6px}dialog button{min-height:44px}#roles-form>button{margin-top:1rem}#profile-panel .auth-card{margin-inline:0;border:0;padding:0}.admin-panel[hidden],[hidden]{display:none!important}
@media(max-width:680px){.editor-shell{padding:1rem}.admin-top .brand{gap:.5rem;font-size:.85rem}.admin-top .brand-img{width:44px;height:44px}.admin-top>a:last-child{font-size:.8rem;white-space:nowrap}.admin-heading,.panel-heading{align-items:stretch;flex-direction:column}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.stat-card{padding:.8rem}.stat-card span{font-size:.82rem}.admin-panel{padding:.9rem}.admin-tabs{gap:.4rem}.admin-tabs button{flex:1 1 40%;padding:.6rem}.editor-controls{align-items:stretch}.editor-controls input,.editor-controls select{width:100%}.record-actions button{flex:1}#permissions-grid{grid-template-columns:1fr}.auth-card{padding:1.1rem}.panel-heading>button{width:100%}dialog{padding:1rem;max-height:85dvh}}
.admin-heading{background:transparent;color:#091d3f;border:0}.admin-heading .eyebrow{color:#8c671d}.admin-tabs{padding:0}.editor-shell>header{position:static}
