.staff-panel-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.staff-panel-grid>section{padding:20px;border:1px solid #344856}.staff-dialog{width:min(1200px,94vw);max-height:90vh;box-sizing:border-box;background:#0c1720;color:#e1e8ef;border:1px solid #b99a65;padding:24px;overflow:auto}.staff-dialog::backdrop{background:#000b}.staff-dialog header{display:flex;justify-content:space-between;align-items:center;gap:20px}.staff-dialog form{display:grid;gap:14px;margin:20px 0}.staff-dialog label{display:grid;gap:8px}.staff-dialog input,.staff-dialog select,.staff-dialog textarea{box-sizing:border-box;max-width:100%;padding:12px;background:#091119;color:#e1e8ef;border:1px solid #344856}.staff-table-scroll{max-height:350px;overflow:auto}.staff-dialog table{width:100%;border-collapse:collapse;font-size:13px}.staff-dialog th,.staff-dialog td{text-align:left;padding:12px;border-bottom:1px solid #344856;overflow-wrap:anywhere}.staff-dialog [data-error],.staff-dialog [data-result]{color:#ff7676}.staff-dialog [hidden]{display:none!important}.staff-dialog [data-detail]{margin-top:25px}.staff-dialog [data-confirm]{padding:20px;border:1px solid #b99a65}@media(max-width:650px){.staff-panel-grid{grid-template-columns:1fr}.staff-dialog{padding:14px}.staff-dialog header{align-items:flex-start}.staff-dialog h3{font-size:22px}}

/* Staff console — restrained Norvhen presentation */
.staff-panel-grid>section{position:relative;padding:28px;background:linear-gradient(145deg,rgba(18,36,49,.98),rgba(9,20,29,.98));border-color:#344b5b;box-shadow:0 18px 45px rgba(0,0,0,.18)}
.staff-panel-grid>section::before{content:"";position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,transparent,#caa66b,transparent)}
.staff-panel-grid-single>section{text-align:center}.staff-panel-grid-single .button{display:flex;width:max-content!important;min-width:230px;margin:18px auto 0}
.staff-panel-grid .button,.staff-panel-grid button,.staff-dialog .button,.staff-dialog button{min-height:44px;padding:11px 18px;border:1px solid #d1ad70;background:linear-gradient(180deg,#d4b273,#b88d4e);color:#111820!important;font:inherit;letter-spacing:.12em;text-transform:uppercase;cursor:pointer;box-shadow:inset 0 1px rgba(255,255,255,.25);transition:filter .18s ease,transform .18s ease}
.staff-panel-grid .button:hover,.staff-panel-grid button:hover,.staff-dialog .button:hover,.staff-dialog button:hover{filter:brightness(1.08);transform:translateY(-1px)}
.staff-dialog{border-color:#caa66b;background:linear-gradient(145deg,#101f2a,#08131c);box-shadow:0 30px 90px #000c}
.staff-dialog header{position:sticky;top:-24px;z-index:4;margin:-24px -24px 20px;padding:20px 24px;background:#0d1a24;border-bottom:1px solid #344856}
.staff-dialog h3,.staff-dialog h4{margin:0;color:#f2e5cd}.staff-dialog [data-detail]{padding:22px;border:1px solid #344856;background:rgba(5,14,21,.45)}
.staff-dialog input,.staff-dialog select,.staff-dialog textarea{width:100%;border-color:#496171;background:#07121a}.staff-dialog input:focus,.staff-dialog select:focus,.staff-dialog textarea:focus{outline:1px solid #caa66b;border-color:#caa66b}
.staff-table-scroll{border:1px solid #2f4656;background:#08141d}.staff-dialog thead{position:sticky;top:0;background:#132634;color:#d9bd8d;z-index:2}.staff-dialog tbody tr:hover{background:rgba(202,166,107,.06)}
.staff-dialog [data-error],.staff-dialog [data-result].is-error{color:#ff7979}.staff-dialog [data-result]{color:#9bd8b3}
.staff-dialog [data-confirm]{display:grid;gap:16px;background:#0b1822;border-color:#caa66b}.staff-dialog [data-confirm]>p{text-align:center;margin:0}.staff-dialog [data-confirm]>label{width:min(620px,100%);margin:0 auto}
.confirmation-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px}.confirmation-actions .button{width:auto!important;min-width:150px;max-width:220px;margin:0!important}
.staff-level-fields{display:grid;grid-template-columns:minmax(180px,1fr) minmax(120px,.45fr);gap:14px}
@media(max-width:650px){
 .staff-panel-grid{gap:14px}.staff-panel-grid>section{padding:20px 16px}.staff-panel-grid .button,.staff-panel-grid button{width:100%}.staff-panel-grid-single .button{width:min(100%,260px)!important;min-width:0;margin-inline:auto}
 .staff-dialog{inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:14px;border:0}
 .staff-dialog header{top:-14px;margin:-14px -14px 16px;padding:15px 14px}.staff-dialog header button{width:auto;min-width:48px;padding:9px 12px}
 .staff-dialog form{margin:14px 0}.staff-dialog [data-detail]{margin-top:16px;padding:14px}
 .staff-table-scroll{max-height:none;overflow:visible;border:0;background:transparent}.staff-dialog table,.staff-dialog thead,.staff-dialog tbody,.staff-dialog tr,.staff-dialog th,.staff-dialog td{display:block;width:100%;box-sizing:border-box}.staff-dialog thead{display:none}
 .staff-dialog tr{margin:0 0 12px;padding:12px;border:1px solid #344856;background:#0a1720}.staff-dialog td{display:grid;grid-template-columns:minmax(90px,.42fr) 1fr;gap:10px;padding:7px 0;border:0}.staff-dialog td::before{content:attr(data-label);color:#9fb0bb;font-size:11px;letter-spacing:.09em;text-transform:uppercase}.staff-dialog td:last-child{display:block;padding-top:12px}.staff-dialog td:last-child button{width:100%}
 .staff-level-fields{grid-template-columns:1fr}
 .confirmation-actions{display:grid;grid-template-columns:repeat(2,minmax(120px,180px));justify-content:center}.confirmation-actions .button{width:100%!important;min-width:0}
}
@media(max-width:360px){.confirmation-actions{grid-template-columns:minmax(0,200px)}}
/* Consistent staff console actions and touch-friendly account cards. */
.staff-panels{margin-top:16px}.staff-panel-grid>section{display:grid;gap:12px;align-content:start}.staff-panel-grid>section h4,.staff-panel-grid>section p{margin:0}.staff-panel-grid>section .button{justify-self:start;min-width:210px}.staff-search{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:end}.staff-search .button{width:auto!important;min-width:132px}.staff-dialog [data-more],.staff-dialog [data-refresh]{margin-top:14px}.staff-dialog [data-detail]>h4{font-size:22px}.staff-dialog [data-detail] .staff-character-directory{margin-top:20px}.staff-dialog [data-detail] .character-realm-grid{margin-top:12px}.staff-dialog [data-detail] form[data-action]{max-width:760px}.staff-dialog [data-detail] form[data-action]>.button{width:max-content}.staff-dialog [data-confirm]{max-width:760px}.staff-dialog [data-confirm] .confirmation-actions{margin-top:0}.staff-dialog [data-result]{min-height:20px;margin:12px 0}.staff-table-scroll{scrollbar-color:#b99a65 #08141d}.staff-dialog td:last-child{text-align:right}.staff-dialog td:last-child .button{width:auto;min-width:150px}
@media(max-width:650px){.staff-panels{padding:16px!important}.staff-panel-grid>section .button{justify-self:stretch;width:100%;min-width:0}.staff-dialog header>div{min-width:0}.staff-dialog header h3{font-size:20px}.staff-search{grid-template-columns:1fr}.staff-search .button{width:100%!important}.staff-dialog td:last-child{text-align:left}.staff-dialog [data-detail]>h4{font-size:20px}.staff-dialog [data-detail] form[data-action]>.button{width:100%}.staff-dialog [data-detail] .character-list li{gap:9px}.staff-dialog [data-confirm] .confirmation-actions{grid-template-columns:1fr}.staff-dialog [data-confirm] .confirmation-actions .button{max-width:none}}
