/* No canvas blur or animated shadows: the game keeps rendering behind GM. */
.gm-overlay{background:#07100ee8;backdrop-filter:none}
.gm-window{width:min(1280px,100%);height:min(850px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);background:#111e18;box-shadow:0 10px 40px #0008;overflow:hidden}
.gm-header{padding:15px 72px 15px 24px;background:#18291f}.gm-header h2{font-size:26px}.gm-header small{letter-spacing:2px}
.gm-shell{display:grid;grid-template-columns:200px minmax(0,1fr);flex:1;min-height:0;overflow:hidden}
.gm-window .gm-sidebar{display:flex;flex-direction:column;gap:4px;overflow-y:auto;overflow-x:hidden;flex-wrap:nowrap;padding:16px 10px;background:#0c1712;border-right:1px solid #9a824944;scrollbar-width:thin}
.gm-sidebar .gm-button{width:100%;text-align:left;padding:9px 13px;background:transparent;border:1px solid transparent;min-height:42px;border-radius:5px;font-size:14px}
.gm-sidebar .gm-button:hover{background:#243a2b}.gm-sidebar .gm-button.active{background:#3c3523;border-color:#aa91535c;color:#ffdf91}
.gm-nav-label{margin:12px 12px 5px;color:#819583;font-size:10px;letter-spacing:1.6px}.gm-nav-label:first-child{margin-top:0}
.gm-main{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden}
.gm-page-title{margin:0;padding:20px 24px 0;font:500 21px/1.3 var(--gm-font);color:#ead3a0}
.gm-main>.gm-status{padding:8px 24px;min-height:18px}.gm-main>.gm-body{padding:0 24px 24px;flex:1;scrollbar-gutter:stable}
.gm-button{border-radius:5px;touch-action:manipulation}.gm-button:focus-visible,.gm-picker-option:focus-visible{outline:2px solid #e4c685;outline-offset:2px}
.gm-body{contain:layout style}.gm-player{content-visibility:auto;contain-intrinsic-size:auto 110px}.gm-item-card{content-visibility:auto;contain-intrinsic-size:auto 66px}
.gm-server-health{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;border:1px solid #59826755;background:#192f22;border-radius:7px;padding:18px;margin-bottom:18px}.gm-server-health strong{color:#c4dfb3;font-weight:500}
.gm-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.gm-overview-card{padding:22px;border:1px solid #a5916044;border-radius:8px;background:#18271e;min-width:0}.gm-overview-card p{min-height:42px;line-height:1.7}.gm-overview-card h3{font-size:20px}.gm-overview-card .gm-button{margin-top:8px}
.gm-editor-heading{margin:12px 0 18px}.gm-editor-heading p{margin:6px 0;line-height:1.7}.gm-editor-heading h3{font-family:inherit;font-weight:500;font-size:20px}
.gm-studio{min-width:0}.gm-studio-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:18px}.gm-studio-toolbar>.gm-muted{margin-right:auto}
.gm-draft-badge{display:inline-block;border:1px solid #bd985e6b;background:#513c1b;color:#f3d99c;padding:5px 9px;border-radius:4px;font-size:12px;white-space:nowrap}
.gm-draft-notice{border-left:3px solid #c49e58;background:#392e1b;padding:12px 14px;font-size:12px;color:#eed6a9;line-height:1.6;margin:0 0 16px}
.gm-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;min-width:0}
.gm-editor-card{padding:16px;background:#17281e;border:1px solid #8b79503d;border-radius:7px;margin-bottom:16px;min-width:0;overflow-wrap:anywhere}
.gm-editor-card h4{margin:0 0 15px;color:#ddc79c;font-size:15px;font-weight:500}.gm-editor-card .gm-editor-card{background:#101f17;border-color:#8b79502b;padding:12px;margin-top:12px}
.gm-editor-card>.gm-button+.gm-button,.gm-studio-editor>.gm-button+.gm-button{margin-left:8px}.gm-editor-card .gm-field:last-child{margin-bottom:0}
.gm-studio .gm-field input,.gm-studio .gm-field select{border-color:#6c795255;background:#0c1911;border-radius:4px}.gm-field small{line-height:1.5;font-size:11px}
.gm-check-field{flex-direction:row;justify-content:flex-start;align-items:center;gap:12px;min-height:36px}.gm-check-field input{width:19px;height:19px;min-height:19px;accent-color:#d0af6a;order:-1}
.gm-explanation{font-size:12px;background:#0b1d16;border:1px solid #627c5d66;border-radius:5px;color:#bed0b8;padding:13px;line-height:1.7}
.gm-danger{color:#efb6a5;border-color:#a4695555;background:#36231b}.gm-affix-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px;align-items:start}
.gm-affix-list>.gm-editor-card{contain:layout style;content-visibility:auto;contain-intrinsic-size:auto 245px}.gm-affix-list .gm-editor-grid{grid-template-columns:1fr}
.gm-item-picker{border:1px dashed #8e80574d;border-radius:5px;padding:12px;margin:12px 0 18px}.gm-item-picker>.gm-muted{margin:5px 0 10px;overflow-wrap:anywhere}.gm-item-picker>.gm-button{min-height:34px;padding:5px 10px;font-size:12px}
.gm-picker-results{display:flex;flex-direction:column;max-height:270px;overflow:auto;scrollbar-width:thin;gap:3px}.gm-picker-results:empty{display:none}
.gm-picker-option{width:100%;min-height:40px;text-align:left;border:0;background:#233829;color:#e5d5af;padding:9px 11px;font:inherit;border-radius:3px;cursor:pointer}.gm-picker-option:hover{background:#3b5035}
.gm-event-tools{display:flex;align-items:end;gap:12px;margin:6px 0 18px}.gm-event-tools>.gm-field{flex:1;margin:0}.gm-event-steps{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:22px}.gm-event-steps .gm-button{font-size:12px;padding:8px 10px}
.gm-studio-history{padding:15px;border:1px solid #a88d52;border-radius:7px;margin-bottom:20px;background:#0e1b14}.gm-studio-editor>ul,.gm-editor-card ul{padding-left:20px;font-size:12px;line-height:1.8;color:#e1c89f}
.gm-confirm-layer{position:fixed;inset:0;z-index:30010;display:grid;place-items:center;padding:16px;background:#030a08c9;color:#e9dfc5;font:14px/1.6 var(--gm-font);overscroll-behavior:contain}
.gm-confirm-panel{box-sizing:border-box;width:min(520px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid #b79c64;border-radius:8px;background:#14241b;box-shadow:0 10px 30px #0008}
.gm-confirm-title{margin:0 0 12px;color:#f0d698;font:600 21px/1.4 var(--gm-font)}.gm-confirm-message{margin:0 0 22px;color:#c4cbb9;overflow-wrap:anywhere}.gm-confirm-error{color:#ffb6a1;padding:10px;border:1px solid #ac685955;background:#3a221c;border-radius:4px;overflow-wrap:anywhere}.gm-confirm-error[hidden]{display:none}
.gm-confirm-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.gm-confirm-actions .gm-button{min-height:44px;font:inherit}
@media(max-width:540px){.gm-confirm-panel{padding:20px}.gm-confirm-actions{flex-direction:column}.gm-confirm-actions .gm-button{width:100%}.gm-confirm-title{font-size:20px}}
@media(max-width:900px){.gm-shell{grid-template-columns:170px minmax(0,1fr)}.gm-sidebar .gm-button{font-size:13px;padding:9px 10px}.gm-main>.gm-body{padding:0 16px 18px}.gm-page-title{padding-left:16px}.gm-main>.gm-status{padding-left:16px;padding-right:16px}.gm-studio-toolbar>.gm-button{font-size:12px;padding:7px 10px}.gm-affix-list{grid-template-columns:1fr}}
@media(max-width:700px){.gm-window{height:calc(100dvh - 18px);max-height:calc(100dvh - 18px)}.gm-shell{display:flex;flex-direction:column}.gm-window .gm-sidebar{flex-direction:row;overflow-x:auto;overflow-y:hidden;flex-shrink:0;border-right:0;border-bottom:1px solid #9a824944;padding:8px 10px;gap:5px}.gm-nav-label{display:none}.gm-sidebar .gm-button{width:auto;min-height:42px;flex:none;font-size:12px;padding:8px 10px}.gm-main{flex:1}.gm-main>.gm-body{padding:0 12px 16px}.gm-main>.gm-status{padding:7px 12px;font-size:11px}.gm-page-title{padding:12px 12px 0;font-size:19px}.gm-header{padding:11px 60px 11px 16px}.gm-header h2{font-size:23px}.gm-header small{font-size:8px;letter-spacing:1.2px}.gm-overview-grid{grid-template-columns:1fr;gap:10px}.gm-overview-card{padding:16px}.gm-overview-card p{min-height:0}.gm-server-health{padding:13px;font-size:13px;margin-bottom:12px}.gm-editor-grid{gap:0 10px}.gm-editor-card{padding:12px}.gm-event-steps{gap:5px}.gm-event-steps .gm-button{font-size:11px;min-height:38px}.gm-studio-toolbar{gap:6px}.gm-studio-toolbar>.gm-muted{font-size:11px}.gm-draft-notice{font-size:11px;padding:10px}.gm-event-tools{align-items:stretch;flex-direction:column}.gm-event-tools>.gm-button{align-self:flex-start}}
@media(max-width:420px){.gm-editor-grid{grid-template-columns:1fr}.gm-affix-list .gm-editor-card{contain-intrinsic-size:auto 300px}.gm-studio-toolbar>.gm-muted{width:50%;flex:1}}
@media(max-height:500px){.gm-window{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.gm-header{padding-top:7px;padding-bottom:7px}.gm-header small{display:none}.gm-header h2{font-size:21px;margin:0}.gm-page-title{padding-top:10px;font-size:18px}.gm-window .gm-sidebar{padding-top:6px}.gm-sidebar .gm-button{min-height:36px}.gm-main>.gm-status{min-height:15px;padding-top:4px;padding-bottom:4px}}
@media(prefers-reduced-motion:reduce){.gm-overlay *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
