.staff-symbols{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.staff-launch{background:#e9eee5;color:#476654;border:1px solid #d0dbc9;border-radius:9px;padding:10px 13px;white-space:nowrap;font-size:11px;font-weight:600}
#admin-dialog{width:min(1120px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);padding:0;border:1px solid #e4e6da;border-radius:22px;background:#faf9f4;color:#2e423b;box-shadow:0 35px 110px #17382e45;overflow:hidden}
#admin-dialog::backdrop{background:#223b3259;backdrop-filter:blur(6px)}
.staff-window{display:flex;flex-direction:column;height:min(760px,calc(100dvh - 50px));font-family:Segoe UI,Arial,sans-serif}
.staff-header{margin:0;padding:25px 30px 23px;border-bottom:1px solid #e4e7de;background:#fffef9;display:flex;justify-content:space-between;align-items:center;gap:15px;flex-shrink:0}
.staff-header h2{font:normal 29px Georgia,serif;letter-spacing:-.6px;margin:9px 0 0}.staff-header h2 span{color:#bca274;font-size:20px;margin-left:13px}
.staff-header-right{display:flex;gap:20px;align-items:center}.staff-live{font-size:11px;color:#668d6c;white-space:nowrap}.staff-live::before{content:'';display:inline-block;width:6px;height:6px;margin-right:7px;border-radius:50%;background:#7fa37d;box-shadow:0 0 0 4px #7fa37d12}.staff-live.stale{color:#a18458}.staff-live.stale::before{background:#b29c77}
.staff-icon-button{background:#f1f2ea;border:1px solid #e4e7da;color:#82917f;border-radius:50%;width:32px;height:32px;font-size:23px;font-weight:300;line-height:1;flex-shrink:0}
.staff-layout{display:grid;grid-template-columns:245px minmax(0,1fr);flex:1;min-height:0}
.staff-sidebar{background:#f0f2e9;border-right:1px solid #e0e5d7;display:flex;flex-direction:column;padding:23px 17px 0;min-height:0}
.staff-sidebar-heading{display:flex;justify-content:space-between;align-items:center;margin:0 5px 17px}.staff-sidebar-heading h3{margin:0;font-size:13px;font-weight:600}.staff-sidebar-heading>span{font-size:10px;color:#8b9883;padding:3px 7px;border-radius:5px;background:#e5eadf}
.staff-search{display:flex;align-items:center;gap:7px;border:1px solid #dce2d2;background:#fafbf5;border-radius:9px;padding:0 10px}.staff-search>span{font-size:24px;color:#8e9d84}.staff-search input{border:0!important;outline:none;padding:11px 0!important;background:none!important;width:100%;font-size:11px!important}
.staff-online-filter{font-size:10px;color:#839078;margin:13px 3px 15px;display:flex;align-items:center;gap:6px}.staff-online-filter input,.staff-checkbox input{accent-color:#688a65}
.staff-players{overflow-y:auto;min-height:60px;flex:1;margin:0 -7px;padding:0 7px 14px;scrollbar-width:thin;scrollbar-color:#d5ddcc transparent}.staff-player{display:flex;align-items:center;gap:11px;width:100%;background:transparent;border:1px solid transparent;border-radius:10px;padding:11px 9px;text-align:left;margin:0 0 5px;color:#52654f;position:relative}.staff-player:hover{background:#e8ede1}.staff-player.selected{background:#fffef8;border-color:#dae2cf;box-shadow:0 2px 6px #5f745107}.staff-player.selected::after{content:'';height:20px;width:3px;background:#839c6c;border-radius:2px;position:absolute;left:-1px;top:21px}
.staff-avatar{background:#dce7d4;color:#67825c;width:35px;height:35px;border-radius:11px;display:grid;place-items:center;font:600 15px Georgia,serif;flex-shrink:0}.staff-player:nth-child(3n+2) .staff-avatar{background:#e9dfd0;color:#a48a6f}.staff-player:nth-child(3n) .staff-avatar{background:#dce6e5;color:#728f8a}.staff-player-copy{flex:1;min-width:0}.staff-player-copy strong{display:block;font-size:11px;font-weight:600;overflow:hidden;text-overflow:ellipsis}.staff-player-copy small{display:block;font-size:9px;color:#97a08d;margin-top:4px}.staff-dot{width:6px;height:6px;background:#bdc5b3;border-radius:50%;margin-left:5px;flex-shrink:0}.staff-dot.online{background:#88a979;box-shadow:0 0 0 3px #88a97915}
.staff-pagination{display:flex;justify-content:space-between;gap:8px}.staff-text-button{background:none;color:#7a8e70;font-size:10px;padding:9px 0}.staff-identity{display:flex;align-items:center;gap:10px;padding:17px 4px;border-top:1px solid #e0e5d6;margin-top:auto}.staff-identity strong{font-size:11px;font-weight:600;display:block}.staff-identity small{font-size:9px;color:#929c87;display:block;margin-top:4px}.staff-small-seal{display:grid;place-items:center;background:#e1e9d8;color:#8c9b75;width:30px;height:30px;border-radius:50%;font-size:19px}
.staff-main{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#dddccf transparent;padding:27px 30px 24px;min-width:0;background:#faf9f4}.staff-profile{display:flex;align-items:center;gap:16px}.staff-avatar.large{width:56px;height:56px;border-radius:18px;font-size:26px;background:#e3ead8;color:#778c63}.staff-avatar.large.outfit-coat{background:#dbe5ec;color:#6b8596}.staff-avatar.large.outfit-mint{background:#d7ece2;color:#699b85}.staff-profile-name{min-width:0;flex:1}.staff-name-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.staff-name-line h3{font:normal 25px Georgia,serif;margin:0;overflow-wrap:anywhere}.staff-profile-name p{display:flex;gap:8px;font-size:10px;color:#95a08a;margin:8px 0 0}.staff-presence{font-size:9px;color:#8c9683;border:1px solid #dfe4d5;background:#f0f3e9;padding:4px 7px;border-radius:20px;white-space:nowrap}.staff-presence.online{color:#6f9165;background:#eaf1e2;border-color:#dce7d2}.staff-presence.online::before{content:'●';font-size:7px;margin-right:4px}.staff-wallet{text-align:right;white-space:nowrap}.staff-wallet small{font-size:9px;color:#a09e85;display:block;margin-bottom:6px}.staff-wallet strong{font-weight:500;font-size:20px;color:#a3854e;background:#f2ead6;border:1px solid #ede2c7;padding:8px 13px;border-radius:9px}
.staff-subline{display:flex;justify-content:space-between;gap:8px;font-size:9px;color:#a0a592;margin:18px 0 24px}.staff-tabs{display:flex;gap:25px;border-bottom:1px solid #e2e6d9;margin-bottom:24px;overflow-x:auto;white-space:nowrap;scrollbar-width:none}.staff-tabs button{display:block;width:auto;border:0;border-radius:0;flex:0 0 auto;background:none;color:#99a18e;font-size:11px;font-weight:500;padding:0 0 13px;margin:0;border-bottom:2px solid transparent}.staff-tabs button.active{color:#486d4d;background:none;box-shadow:none;border-color:#7c9d69}.staff-tabs button span{font-size:9px;margin-left:5px;padding:2px 5px;border-radius:4px;background:#ebeee3;color:#82936c}
.staff-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:19px}.staff-section-heading h4{font-size:13px;margin:0 0 6px;font-weight:600}.staff-section-heading p{font-size:10px;color:#a1a58f;margin:0;line-height:1.6}.staff-sync-note{font-size:9px;color:#8da17d;white-space:nowrap}
.staff-item-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.staff-item{border:1px solid #e3e6d9;border-radius:12px;background:#fffef9;padding:12px;position:relative;animation:staff-appear .25s ease-out}.staff-item-art{height:90px;background:#f0f1e7;border-radius:8px;display:grid;place-items:center;margin-bottom:13px}.staff-item-art svg{height:73px;width:73px;filter:drop-shadow(0 4px 2px #64765312)}.staff-item-art.art-coat{background:#edf0ee}.staff-item-art.art-mint{background:#eaf1e8}.staff-item-art.art-chair{background:#f3ece1}.staff-item-art.art-plant{background:#edf0e3}.staff-item h5{font-size:11px;line-height:1.6;margin:0 0 5px;font-weight:600;color:#5a6a51}.staff-item p{font-size:9px;color:#a3a68e;margin:0 0 9px}.staff-item-badge{font-size:8px;color:#91a07c;display:block;min-height:14px}.staff-item-badge.wearing{color:#69916a}.staff-item button{margin-top:8px}.staff-button{background:#547451;color:#fffff5;padding:10px 12px;border-radius:7px;font-size:10px;font-weight:500;width:100%;border:1px solid #547451}.staff-button.subtle{background:transparent;color:#7d8569;border:1px solid #dfe4d3}.staff-button:disabled{opacity:.5;cursor:default}.staff-item button:disabled{background:#f1f3e9;color:#99a586;border-color:#e7eadd}
.staff-inventory-empty{grid-column:1/-1;text-align:center;padding:35px 20px;border:1px dashed #dce2d0;border-radius:13px;background:#f5f5ec}.staff-inventory-empty>span{font-size:32px;color:#bdc9a6;display:block;margin-bottom:13px}.staff-inventory-empty h4{font:normal 20px Georgia,serif;margin:0 0 9px;color:#7b8c69}.staff-inventory-empty p{font-size:10px;color:#9ca68f;margin:0;line-height:1.8}.staff-inventory-empty button{width:auto;margin-top:17px;padding-inline:22px}
.staff-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.staff-action-card{background:#fffef9;border:1px solid #e3e6d9;border-radius:12px;padding:17px;min-width:0}.staff-action-icon{display:grid;place-items:center;width:30px;height:30px;background:#eef1e4;border-radius:9px;color:#8b9b70;font-size:20px;margin-bottom:12px}.staff-action-card h4{font-size:12px;margin:0 0 8px;font-weight:600}.staff-action-card p{font-size:10px;color:#a1a38f;line-height:1.7;margin:0 0 15px}.staff-action-card label{font-size:10px;color:#8e9c7d;display:block}.staff-action-card input:not([type=checkbox]){width:100%;padding:9px!important;background:#f9faf3;border:1px solid #e0e5d6;border-radius:7px;margin:6px 0 12px;font-size:11px}.staff-coordinates{display:flex;gap:12px}.staff-coordinates label{flex:1;min-width:0}.staff-checkbox{display:flex!important;align-items:center;gap:6px;margin-bottom:15px}.staff-revoke{grid-column:1/-1;display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;column-gap:13px}.staff-revoke .staff-action-icon{grid-row:1/3;margin:0;background:#f4eee2;color:#a6977d}.staff-revoke p{grid-column:2;margin:0}.staff-revoke button{grid-column:3;grid-row:1/3;width:auto;max-width:180px}.staff-revoke h4{margin:0 0 6px}
.staff-journal-entry{padding:14px 0;border-bottom:1px solid #e4e7db;display:flex;gap:12px}.staff-journal-mark{font-size:13px;width:25px;height:25px;border-radius:50%;background:#eaf0df;color:#8ba277;display:grid;place-items:center;flex-shrink:0}.staff-journal-entry strong{font-size:11px;font-weight:500;display:block;margin-bottom:5px}.staff-journal-entry p{font-size:10px;color:#8d9980;margin:0 0 5px;line-height:1.7;overflow-wrap:anywhere}.staff-journal-entry small{font-size:9px;color:#adb29f;line-height:1.6}.staff-journal-empty{font-size:11px;color:#9da68d;padding:30px 10px;text-align:center}
.staff-empty{text-align:center;padding:90px 30px;color:#94a085}.staff-empty>span{font-size:50px;color:#c6ceba}.staff-empty h3{font:normal 24px Georgia,serif}.staff-empty p{font-size:12px;line-height:1.9;max-width:300px;margin:auto}
.staff-footer{border-top:1px solid #e1e5d8;background:#f6f6ee;padding:14px 25px;display:flex;align-items:center;gap:18px;letter-spacing:0;text-align:left;flex-shrink:0}.staff-footer label{display:flex;flex-direction:column;gap:6px;font-size:9px;color:#96a087;min-width:210px;flex:1}.staff-footer input{padding:9px 11px;border:1px solid #dfe4d4;border-radius:7px;background:#fffef9;font-size:10px;color:#5e7154;width:100%}.staff-footer #admin-result{font-size:10px;line-height:1.7;max-width:280px;color:#7b9570;overflow-wrap:anywhere}.staff-footer #admin-result.error{color:#b16f51}.staff-footer-note{font-size:8px;color:#a6ae98;max-width:100px;line-height:1.8}.staff-footer-note::before{content:'◈';margin-right:5px;color:#a6b38b}
#admin-dialog input:focus-visible,#admin-dialog button:focus-visible,#admin-dialog select:focus-visible{outline:2px solid #a8b58c;outline-offset:3px}body:has(#admin-dialog[open]){overflow:hidden}
@keyframes staff-appear{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){#admin-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:16px}.staff-window{height:calc(100dvh - 26px)}.staff-layout{grid-template-columns:200px minmax(0,1fr)}.staff-main{padding:22px 20px}.staff-header{padding:20px 23px}.staff-header h2{font-size:25px}.staff-item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.staff-sync-note,.staff-footer-note{display:none}.staff-tabs{gap:18px}.staff-revoke{display:block}.staff-revoke .staff-action-icon{margin-bottom:10px}.staff-revoke p{margin-bottom:12px}.staff-wallet strong{font-size:17px}.staff-profile{gap:11px}.staff-name-line h3{font-size:23px}.staff-action-grid{grid-template-columns:1fr}}
@media(max-width:600px){#admin-dialog{width:100vw;height:100dvh;max-height:none;max-width:none;border-radius:0;border:0;margin:0}.staff-window{height:100dvh}.staff-layout{grid-template-columns:1fr;grid-template-rows:165px minmax(0,1fr)}.staff-sidebar{padding:12px 16px 0;border-right:0;border-bottom:1px solid #e0e5d7;display:grid;grid-template-columns:1fr auto;grid-template-rows:34px minmax(0,1fr);gap:10px}.staff-sidebar-heading,.staff-identity,.staff-pagination{display:none}.staff-search{grid-column:1}.staff-search input{padding:7px 0!important}.staff-online-filter{grid-column:2;font-size:9px;margin:0;white-space:nowrap}.staff-players{grid-column:1/-1;display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;margin:0 -16px;padding:0 16px 12px;min-height:0}.staff-player{width:135px;flex:0 0 135px;padding:9px;gap:8px;height:61px}.staff-player.selected::after{top:19px}.staff-player-copy strong{font-size:10px}.staff-avatar{width:28px;height:28px;border-radius:9px;font-size:13px}.staff-dot{width:5px;height:5px;margin:0}.staff-header{padding:16px 18px}.staff-header h2{font-size:23px;margin-top:7px}.staff-header .eyebrow{font-size:7px;letter-spacing:1.3px}.staff-header h2 span{display:none}.staff-live{font-size:0}.staff-live::before{margin-right:0}.staff-header-right{gap:14px}.staff-main{padding:20px 18px}.staff-avatar.large{width:44px;height:44px;border-radius:14px;font-size:22px}.staff-name-line h3{font-size:22px}.staff-name-line{gap:7px}.staff-presence{font-size:8px;padding:3px 6px}.staff-profile-name p{font-size:9px;gap:5px}.staff-wallet strong{font-size:17px;padding:7px 10px}.staff-profile{gap:10px}.staff-subline{margin:16px 0 20px;font-size:8px}.staff-tabs{gap:22px;margin-bottom:20px}.staff-tabs button{font-size:10px;padding-bottom:12px}.staff-section-heading h4{font-size:12px}.staff-section-heading p{font-size:9px}.staff-item-grid{gap:11px}.staff-item{padding:10px}.staff-item-art{height:84px}.staff-item-art svg{height:68px;width:68px}.staff-footer{padding:12px 17px;gap:9px;flex-wrap:wrap}.staff-footer label{min-width:100%;font-size:8px;gap:4px}.staff-footer #admin-result{max-width:100%;font-size:9px}.staff-footer input{font-size:10px}.staff-empty{padding:40px 15px}}
@media(prefers-reduced-motion:reduce){.staff-item{animation:none}}
@media(max-width:600px){.staff-layout{grid-template-rows:175px minmax(0,1fr)}.staff-sidebar{grid-template-rows:34px 65px 20px;gap:7px}.staff-pagination{display:flex;grid-column:1/-1;align-items:center}.staff-pagination .staff-text-button{padding:0;font-size:9px}}
.admin-page {
  margin: 0;
  background: #eef1f6;
  color: #17253b;
  font: 15px/1.5 system-ui, sans-serif;
}
.admin-page *, .admin-page *::before, .admin-page *::after { box-sizing: border-box; }
.admin-page .hidden { display: none !important; }
.admin-page button, .admin-page input { font: inherit; }
.admin-page button { cursor: pointer; }
.admin-page button:disabled { cursor: default; }
.admin-page .staff-window { min-height: 100dvh; height: 100dvh; }
.admin-page .staff-header { background: #152238; color: #f3f6fb; }
.admin-page .staff-header h1 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.admin-page .staff-icon-button { width: auto; padding: 0 12px; }
.admin-page .staff-layout { grid-template-columns: minmax(215px, 265px) minmax(0,1fr); }
.admin-page .staff-sidebar { background: #e9eef6; border-color: #d4deec; }
.admin-page .staff-main { background: #f7f9fc; }
.admin-page .staff-profile, .admin-page .staff-item, .admin-page .staff-action-card { background: white; }
.admin-page .staff-button { background: #254b8c; color: white; border-color: #254b8c; }
.admin-page .staff-button:hover:not(:disabled) { background: #18386c; color: white; }
.admin-page .staff-button.subtle { background: #ecf2fd; color: #254b8c; }
.admin-page .staff-footer { background: white; border-color: #d4deec; }
.admin-page .staff-footer label, .admin-page .staff-footer #admin-result { font-size: 13px; color: #304664; }
.admin-page .staff-footer #admin-result.error { color: #a42239; }
.admin-page :focus-visible { outline: 2px solid #3462a9; outline-offset: 3px; }
.admin-page .admin-login { width: min(420px, calc(100% - 36px)); margin: 12vh auto 0; padding: 30px; }
.admin-page .admin-login h1 { font-size: 22px; margin: 0 0 20px; }
.admin-page .admin-login label { margin: 0 0 14px; }
.admin-page .admin-login input { width: 100%; }
.admin-page .admin-login p { margin-top: 12px; }
.admin-page #audit-dialog { width: min(720px, 94vw); border: 1px solid #d4deec; border-radius: 12px; padding: 24px; color: inherit; }
.admin-page #audit-dialog::backdrop { background: #17253b88; }
.admin-page .audit-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-page .audit-heading h2 { margin: 0 0 12px; font-size: 20px; }
@media (max-width: 680px) {
  .admin-page .staff-window { height: auto; }
  .admin-page .staff-layout { display: block; }
  .admin-page .staff-sidebar { max-height: 285px; padding-bottom: 10px; }
  .admin-page .staff-footer { flex-wrap: wrap; }
}
