/* Staff tools share the public portal's palette, type, and architectural proportions. */
[hidden]{display:none!important}
.staff-nav{display:flex;gap:.65rem;flex-wrap:wrap;margin-bottom:1.5rem}
.access-status{border-inline-start:3px solid #aa8653;background:#eee9df;padding:1rem 1.25rem;margin-bottom:1.5rem;border-radius:3px;line-height:1.8}
.account-card,.editor-workspace{background:#fffdf8;border:1px solid #ded8cd;border-radius:10px;margin-bottom:1.5rem}
.account-card{padding:clamp(1.3rem,4vw,3rem)}
.account-card>p{max-width:70ch;color:#56625b;line-height:1.9}
.account-card h2,.editor-main h2{font-size:1.5rem;margin:0 0 .75rem}
.account-symbol{color:#a47e44;margin-bottom:1rem}.account-symbol svg{width:40px;height:40px}
[data-session-email]{overflow-wrap:anywhere;text-align:start}
.editor-workspace{display:grid;grid-template-columns:minmax(230px,.75fr) minmax(0,2fr);overflow:hidden}
.editor-sidebar{background:#f3f0e8;border-inline-end:1px solid #ded8cd;padding:1.4rem;min-width:0}
.editor-sidebar>.btn{width:100%;margin-bottom:1rem}
.editor-main{padding:clamp(1.2rem,3vw,2.5rem);min-width:0}
.editor-main>p{color:#59665e;line-height:1.8}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;border:0;padding:0;margin:1.5rem 0;min-width:0}
.form-grid .full{grid-column:1/-1}
.form-field{display:flex;flex-direction:column;gap:.5rem;font-size:.9rem;min-width:0}
.form-field>span{font-weight:700;color:#234239}
.form-field input,.form-field textarea,.form-field select{font:inherit;color:#183d35;border:1px solid #bbbfb3;background:#fff;padding:.75rem;border-radius:4px;min-width:0;width:100%;box-sizing:border-box}
.form-field textarea{resize:vertical;line-height:1.8}
.form-field select[multiple]{min-height:9rem}
.form-field input:focus,.form-field textarea:focus,.form-field select:focus{outline:2px solid #967240;outline-offset:2px}
.form-field input:read-only{background:#f0ede6}
.check-field{display:flex;align-items:center;gap:.65rem}
.check-field input{width:1.1rem;height:1.1rem;accent-color:#183d35}
.form-actions{display:flex;gap:.75rem;flex-wrap:wrap;align-items:end}
.btn-danger{color:#862f28;border:1px solid #c88d85;background:#fff6f2}
.form-message{white-space:pre-line;overflow-wrap:anywhere;color:#284a3c;line-height:1.8;padding-top:.5rem}
.form-message.is-error,[data-access-status].is-error{color:#862f28}
button:disabled,fieldset:disabled{opacity:.58;cursor:not-allowed}
.record-list{display:grid;gap:.4rem;max-height:560px;overflow-y:auto;margin:1rem 0}
.record-list button{font:inherit;text-align:start;background:#fffdf8;color:#234239;padding:.8rem;border:1px solid transparent;border-radius:4px;cursor:pointer;overflow-wrap:anywhere}
.record-list button[aria-pressed=true]{border-color:#a47e44;background:#e8e5d9}
.record-list small{display:block;opacity:.7;font-size:.75rem}
.staff-row{padding:1.25rem 0;border-bottom:1px solid #ded8cd;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.staff-row strong{overflow-wrap:anywhere}
.role-controls{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.audit-row{padding:1rem 0;border-bottom:1px solid #ded8cd}
.audit-row summary{cursor:pointer;overflow-wrap:anywhere}
.audit-row pre{direction:ltr;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.75rem;background:#f2efe8;padding:1rem}
.live-status{margin:1rem auto;padding:.8rem 1rem;background:#eee9df;max-width:1200px;line-height:1.8}
.live-status .btn{margin-inline-start:1rem}
[data-backend=live]:not([data-people-ready=true]) [data-live-person],
[data-backend=live]:not([data-people-ready=true]) [data-live-profile],
[data-backend=live]:not([data-people-ready=true]) [data-live-stat=people],
[data-backend=live]:not([data-people-ready=true]) [data-live-stat=branches],
[data-backend=live]:not([data-people-ready=true]) .tree-panel-footer,
[data-backend=live]:not([data-articles-ready=true]) [data-live-collection],
[data-backend=live]:not([data-articles-ready=true]) [data-live-article],
[data-backend=live]:not([data-articles-ready=true]) [data-live-journal],
[data-backend=live]:not([data-articles-ready=true]) [data-live-stat=wiki]{visibility:hidden}
[data-backend=live] .tree-panel noscript ul{display:none}
.live-profile-bio,.live-article-body{white-space:pre-line;overflow-wrap:anywhere}
.staff-login{flex-shrink:0}
@media(max-width:760px){.editor-workspace{grid-template-columns:1fr}.editor-sidebar{border-inline-end:0;border-bottom:1px solid #ded8cd}.record-list{max-height:220px}.form-grid{grid-template-columns:1fr}.form-actions>.btn{flex-grow:1}.header-actions{gap:.2rem}.staff-row{align-items:start}}
