html:has(.site-page){height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto}
body:has(.site-page),#app:has(.site-page),.default-layout:has(.site-page){height:auto;min-height:100dvh;overflow:visible}
.hub-page.site-page,.hub-page-light.site-page{height:auto;min-height:100dvh;overflow:visible;overflow-x:clip}

html:has(.server-admin-shell){height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto}
body:has(.server-admin-shell),#app:has(.server-admin-shell),.default-layout:has(.server-admin-shell){height:auto;min-height:100dvh;overflow:visible}
.admin-shell.server-admin-shell{height:auto;min-height:100dvh;overflow:visible;overflow-x:clip}
.server-admin-shell>.admin-content{width:min(1600px,100%);min-height:0;flex:1 0 auto;box-sizing:border-box;padding:clamp(20px,3vw,34px) clamp(16px,4vw,48px) 64px}

/* Server center: compact tabs, focused actions and one persistent feedback region. */
.server-admin-shell .server-center-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px;padding:20px 24px;border:1px solid #d4dfcf;border-radius:14px;background:linear-gradient(115deg,#f1f7ed,#fff 68%,#edf5f7);box-shadow:0 8px 24px #34472a0a}
.server-admin-shell .server-center-hero h2{margin:3px 0 5px;color:#263c31;font:600 clamp(22px,2.2vw,30px)/1.15 system-ui,sans-serif;letter-spacing:-.03em}
.server-admin-shell .server-center-hero p:last-child{margin:0;color:#617469;font-size:13px}
.server-admin-shell .server-center-hero{flex-wrap:wrap}
.server-admin-shell .server-ruler-state{display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:100%;margin-top:5px;color:#496d48;font-size:11px;font-weight:750;line-height:1.35}
.server-admin-shell .server-ruler-state i{width:8px;height:8px;flex:none;border-radius:50%;background:#5a9a62;box-shadow:0 0 0 3px #5a9a621a}
.server-admin-shell .server-ruler-state.defeated{color:#a1493e}
.server-admin-shell .server-ruler-state.defeated i{background:#c35c4d;box-shadow:0 0 0 3px #c35c4d1a}
.server-admin-shell .hero-ruler-state{margin:0 0 0 auto;padding:8px 10px;border:1px solid #d9e7d4;border-radius:20px;background:#f2f8ef;font-size:12px}
.server-admin-shell .hero-ruler-state.defeated{border-color:#edcbc5;background:#fff2ef}
.server-admin-shell .server-world-copy .server-ruler-state{display:flex}
.hub-ruler-result{display:grid;grid-template-columns:24px 1fr;align-items:center;column-gap:8px;margin:11px 0 0;padding:10px 12px;border:1px solid #d8e7d3;border-radius:10px;background:#f3f8ef;color:#405e43}
.hub-ruler-result>span{grid-row:span 2;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e1efdc;color:#587b4d;font-size:15px}
.hub-ruler-result>b{font-size:12px}
.hub-ruler-result>small{margin-top:2px;color:#6d7e6d;font-size:11px}
.hub-ruler-result.defeated{border-color:#eccdc6;background:#fff4f1;color:#8f4339}
.hub-ruler-result.defeated>span{background:#f9e2dc;color:#ac5144}
.hub-ruler-result.defeated>small{color:#875d57}
.site-home-worlds{width:min(1080px,calc(100% - 40px));margin:0 auto 48px;padding:22px;border:1px solid #d9e2d4;border-radius:16px;background:#fbfcf8;box-shadow:0 9px 24px #30402a09}
.site-home-worlds>div:first-child h2{margin:5px 0 16px;color:#344438;font:500 24px Georgia,serif}
.site-home-worlds-empty{color:#6d7c6e;font-size:13px}
.site-home-world-list{display:grid;gap:8px}
.site-home-world-card{display:grid;grid-template-columns:38px minmax(120px,.7fr) minmax(180px,1fr) auto;align-items:center;gap:12px;padding:10px 12px;border:1px solid #e1e8dd;border-radius:11px;background:white;color:#344438;text-decoration:none;transition:border-color .16s,transform .16s,box-shadow .16s}
.site-home-world-card:hover{transform:translateY(-1px);border-color:#b6c9ac;box-shadow:0 5px 14px #30402a10}
.site-home-world-emblem{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#eef4e9;color:#6e8757;font-size:21px}
.site-home-world-name{display:grid;gap:3px;min-width:0}.site-home-world-name b{overflow:hidden;color:#344438;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.site-home-world-name small{color:#748173;font-size:11px}
.hub-ruler-result.compact{grid-template-columns:22px 1fr;margin:0;padding:7px 9px;border-radius:9px}
.hub-ruler-result.compact>span{width:21px;height:21px;font-size:13px}.hub-ruler-result.compact>b{font-size:11px}.hub-ruler-result.compact>small{font-size:10px}
.site-home-world-arrow{color:#507a54;font-size:12px;font-weight:750;white-space:nowrap}
.site-home-worlds>.site-inline-link{display:inline-flex;margin-top:13px}
@media(max-width:680px){.site-home-worlds{width:calc(100% - 28px);margin-bottom:32px;padding:15px}.site-home-world-card{grid-template-columns:34px minmax(0,1fr) auto;gap:8px}.site-home-world-card>.hub-ruler-result{grid-column:2/-1;grid-row:2;width:100%;box-sizing:border-box}.site-home-world-arrow{grid-column:3;grid-row:1;font-size:0}.site-home-world-arrow::after{content:"→";font-size:18px}}
.server-admin-shell .server-action-notice{display:flex;align-items:flex-start;gap:12px;margin:0 0 16px;padding:12px 15px;border:1px solid #cfe1ce;border-radius:11px;background:#f0f8ef;color:#2e5438;box-shadow:0 3px 12px #283a2208}
.server-admin-shell .server-action-notice-icon{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;background:#dcefdc;color:#2c7040;font-weight:800}
.server-admin-shell .server-action-notice b{display:block;margin:1px 0 3px;color:#315a3b;font-size:13px}
.server-admin-shell .server-action-notice p{margin:0;color:#405d48;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.server-admin-shell .server-action-notice.error{border-color:#ebc8c0;background:#fff3f0;color:#863c32}
.server-admin-shell .server-action-notice.error .server-action-notice-icon{background:#f8dfd9;color:#a23d30}
.server-admin-shell .server-action-notice.error b,.server-admin-shell .server-action-notice.error p{color:#803b32}
.server-admin-shell .server-action-notice.working{border-color:#ead8ae;background:#fff9ea;color:#765516}
.server-admin-shell .server-action-notice.working .server-action-notice-icon{background:#f8e9bf;color:#845d12}
.server-admin-shell .server-action-notice.working b,.server-admin-shell .server-action-notice.working p{color:#705319}
.server-admin-shell .server-center-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:0 0 14px;padding:6px;border:1px solid #dce5d8;border-radius:13px;background:#edf2e9}
.server-admin-shell .server-center-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:43px;padding:8px 10px;border:1px solid transparent;border-radius:9px;background:transparent;color:#526357;font:650 13px/1.2 system-ui,sans-serif;transition:background .16s,border-color .16s,box-shadow .16s,color .16s}
.server-admin-shell .server-center-tabs button span{color:#52764c;font-size:16px;line-height:1}
.server-admin-shell .server-center-tabs button:hover:not(:disabled){background:#fff;color:#294b36}
.server-admin-shell .server-center-tabs button.active{border-color:#d5e2d0;background:#fff;color:#294b36;box-shadow:0 2px 7px #253a220d}
.server-admin-shell .server-center-tabs button:disabled{opacity:.4;cursor:not-allowed}
.server-admin-shell .server-center-tabs button small{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#eaf2e6;color:#52714a;font-size:11px;font-weight:750}
.server-admin-shell .server-tab-panel{min-width:0;padding:clamp(15px,2vw,22px);border:1px solid #dce5d8;border-radius:14px;background:#fffefa;box-shadow:0 8px 24px #30402a08}
.server-admin-shell .server-tab-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.server-admin-shell .server-tab-heading h2{margin:4px 0 0;color:#304236;font:600 21px/1.2 system-ui,sans-serif;letter-spacing:-.02em}
.server-admin-shell .server-tab-heading p{margin:6px 0 0;color:#68786d;font-size:13px;line-height:1.5}
.server-admin-shell .server-tab-heading.compact{margin-bottom:13px}
.server-admin-shell .server-tab-heading.compact h3{margin:0;color:#34483a;font:650 16px system-ui,sans-serif}
.server-admin-shell .server-worlds-layout{display:grid;grid-template-columns:minmax(280px,.74fr) minmax(0,1.5fr);gap:14px;align-items:start}
.server-admin-shell .server-create-form{grid-template-columns:minmax(0,1fr) 122px;padding:17px;border-color:#dce7d7;border-radius:12px;background:linear-gradient(150deg,#f7fbf4,#fff)}
.server-admin-shell .server-create-copy{grid-column:1/-1;display:grid;gap:5px;padding-bottom:8px}
.server-admin-shell .server-create-copy>b{color:#304638;font-size:17px}
.server-admin-shell .server-create-copy>small{color:#66786b;font-size:12px}
.server-admin-shell .server-create-button{grid-column:1/-1;min-height:42px;border:1px solid #4b8757;border-radius:8px;background:linear-gradient(180deg,#5ca86b,#438653);font-size:13px;box-shadow:0 3px 9px #3d7e4d20}
.server-admin-shell .server-create-button:disabled{opacity:.65;cursor:progress}
.server-admin-shell .server-center-metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 15px}
.server-admin-shell .server-operation-card{min-width:0;padding:17px;border:1px solid #e0e8dc;border-radius:12px;background:linear-gradient(145deg,#fff,#f8faf5)}
.server-admin-shell .server-operation-card h3{margin:5px 0 7px;color:#34483a;font:650 16px system-ui,sans-serif}
.server-admin-shell .server-operation-card p{margin:0 0 14px;color:#65766a;font-size:13px;line-height:1.55}
.server-admin-shell .server-operation-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:13px}
.server-admin-shell .server-operation-actions button,.server-admin-shell .server-operation-card>button{min-height:38px;padding:9px 13px;border-radius:8px;font-size:12px}
.server-admin-shell .server-management-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.server-admin-shell .server-management-danger{background:#fffdfb}
.server-admin-shell .server-tab-empty{display:grid;justify-items:start;gap:8px}
.server-admin-shell .server-tab-empty>b{color:#334638;font-size:18px}
.server-admin-shell .server-tab-empty p{margin:0 0 5px;color:#69796d;font-size:13px}
.server-admin-shell .server-admin-logout{display:block;margin:14px 0 0 auto;padding:9px 13px;border-radius:8px}
.server-admin-shell .server-speed-footer{position:sticky;bottom:0;z-index:2;padding:10px 0 2px;background:linear-gradient(#fffefaee,#fffefa)}
.server-admin-shell .server-settings-status{display:block;padding:9px 11px;border:1px solid #dce6d6;border-radius:6px;background:#f1f6ed;color:#4e6345;font:12px/1.45 system-ui,sans-serif}

.server-admin-shell .system-management-panel{margin:0 0 22px}
.server-admin-shell .system-management-panel>.server-card-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:16px;padding:18px}
.server-admin-shell .system-setting-block{display:flex;flex-direction:column;gap:10px;min-width:0;padding:18px;border:1px solid #e1e7dc;border-radius:8px;background:linear-gradient(145deg,#fcfdf9,#f5f8f1)}
.server-admin-shell .system-setting-heading{display:flex;align-items:flex-start;gap:12px;min-height:62px;padding-bottom:10px;border-bottom:1px solid #e5eae1}
.server-admin-shell .system-setting-heading>span{display:grid;place-items:center;width:31px;height:31px;flex:none;border:1px solid #d6dfce;border-radius:7px;background:#edf3e7;color:#6b8050;font:700 11px system-ui,sans-serif}
.server-admin-shell .system-setting-heading>div{min-width:0}
.server-admin-shell .system-setting-heading h3{margin:0 0 5px!important;color:#344438!important;font:500 19px Georgia,serif}
.server-admin-shell .system-setting-heading p{margin:0;color:#6e7b70!important;font-size:11px!important;line-height:1.55}
.server-admin-shell .system-setting-block .system-toggle{display:flex;align-items:center;gap:8px;width:max-content;padding:8px 11px;border:1px solid #dbe4d5;border-radius:5px;background:#f0f5eb;color:#4c5f43;font-size:11px;font-weight:700}
.server-admin-shell .system-setting-block .system-toggle input{accent-color:#71884f}
.server-admin-shell .system-setting-block label.server-speed-control{min-width:0;margin:0;padding:10px;border-color:#e0e7dc;border-radius:6px;background:#fff}
.server-admin-shell .system-setting-block .server-speed-grid{gap:9px}
.server-admin-shell .system-setting-block textarea{min-height:74px;resize:vertical}
.server-admin-shell .system-setting-block>.server-save-button{align-self:flex-start;margin-top:auto;padding:9px 14px}
.server-admin-shell .system-status,.server-admin-shell .system-announcements-list{grid-column:1/-1;min-width:0}
.server-admin-shell .system-status{margin:0;padding:10px 12px;border:1px solid #dce6d6;border-radius:6px;background:#f1f6ed;color:#4e6345}
.server-admin-shell .system-announcements-list{margin:0;padding:16px;border:1px solid #e1e7dc;border-radius:8px;background:#fbfcf8}
.server-admin-shell .system-announcements-list>h3{margin:0 0 8px!important;color:#344438!important;font:500 18px Georgia,serif}
.server-admin-shell .system-announcement-row{align-items:center;border-color:#e1e7dc}
.server-admin-shell .system-announcement-row b{color:#3c4b3f}
.server-admin-shell .system-announcement-row p{margin:6px 0 0;color:#6e7b70!important}

.server-admin-shell .server-admin-grid{grid-template-columns:minmax(285px,.72fr) minmax(0,1.55fr);gap:22px}
.server-admin-shell .server-admin-card{min-width:0;border-radius:9px}
.server-admin-shell .server-settings-card>.server-card-body,.server-admin-shell .server-list-card>.server-card-body{padding:18px}

.server-admin-shell .admin-login-card{display:grid;gap:12px;width:min(460px,100%);margin:24px auto 52px;padding:clamp(22px,4vw,36px);border-radius:12px;background:linear-gradient(150deg,#fffefa,#f6f8f2);box-sizing:border-box}
.server-admin-shell .admin-login-card>.admin-eyebrow{margin:0 0 2px;color:#738653}
.server-admin-shell .admin-login-card>h2{margin:0 0 8px;color:#304034;font:500 25px/1.2 Georgia,serif}
.server-admin-shell .admin-login-card>label.ml-label{display:block;margin:4px 0 -7px;color:#58675b;font-size:11px;font-weight:750}
.server-admin-shell .admin-login-card>input.ml-input{display:block;width:100%;height:46px;box-sizing:border-box;margin:0;padding:0 13px;border:1px solid #cbd6c8;border-radius:6px;background:#fbfcf9;color:#29382e;font:14px system-ui,sans-serif;outline:none}
.server-admin-shell .admin-login-card>input.ml-input:focus{border-color:#809362;box-shadow:0 0 0 3px #82945a20}
.server-admin-shell .admin-login-card>.server-save-button{width:100%;min-height:44px;margin-top:8px;border-radius:6px;font-size:12px}
.server-admin-shell .admin-login-card>[role=alert]{margin:0;padding:10px 12px;border:1px solid #e6cbc4;border-radius:6px;background:#fff3f0;color:#8c4338;font-size:11px;line-height:1.5}

@media(max-width:1120px){.server-admin-shell .server-admin-grid{grid-template-columns:minmax(0,1fr)}.server-admin-shell .server-worlds-layout{grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr)}}
@media(max-width:820px){.server-admin-shell .system-management-panel>.server-card-body{grid-template-columns:minmax(0,1fr);padding:12px}.server-admin-shell .system-status,.server-admin-shell .system-announcements-list{grid-column:auto}.server-admin-shell .server-center-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.server-admin-shell .server-worlds-layout{grid-template-columns:1fr}.server-admin-shell .server-center-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.server-admin-shell .server-management-grid{grid-template-columns:1fr}}
@media(max-width:560px){.server-admin-shell>.admin-topbar{grid-template-columns:1fr auto}.server-admin-shell>.admin-content{padding-inline:14px}.server-admin-shell .system-setting-block{padding:14px}.server-admin-shell .server-center-hero{align-items:flex-start;padding:16px}.server-admin-shell .server-center-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.server-admin-shell .server-center-tabs button{justify-content:flex-start;font-size:12px}.server-admin-shell .server-tab-panel{padding:14px}.server-admin-shell .server-create-form{grid-template-columns:1fr 110px}.server-admin-shell .server-operation-actions{display:grid;grid-template-columns:1fr}.server-admin-shell .server-operation-actions button{width:100%}}
