/* Local Request 7: hub/auth/create only; combat and event dialogs excluded. */
body:is([data-uiv7-screen="hub"],[data-uiv7-screen="auth"],[data-uiv7-screen="create"]) .uiv7-modal:not(.evmodal):not(.bm-modal){border-radius:0!important;border:1px solid #3b3a33!important;border-top:2px solid #e8dcb5!important;background:#1b1b17!important;color:#c9bfa5!important;box-shadow:0 20px 80px #0008;max-height:calc(100dvh - 40px);overflow:auto}
body[data-uiv7-screen="hub"] #gameDialogsRoot .overlay:not(:has(.evmodal,.bm-modal)){background:#0d0d0ac9!important}
body[data-uiv7-screen="hub"] .uiv7-modal :is(.dialog-closebar,.panel-h,.m-h){background:#161612!important;border-bottom:1px solid #3b3a33!important;padding:12px 16px}
body[data-uiv7-screen="hub"] .uiv7-modal :is(.tour-f,.m-f){border-top:1px solid #3b3a33;padding:12px 0;display:flex;flex-wrap:wrap;gap:8px;background:#161612}
body[data-uiv7-screen="hub"] .uiv7-modal :is(button,input,select,.notice,.mail,.tag,.chip){border-radius:0!important}
body[data-uiv7-screen="hub"] .uiv7-modal .btn{min-height:44px}
body[data-uiv7-screen="hub"] .uiv7-modal .dialog-close{margin-left:auto;min-width:48px;min-height:48px}
body[data-uiv7-screen="hub"] .modal.tour{width:min(900px,94vw)!important;max-width:900px!important}
body[data-uiv7-screen="hub"] .tour .panel-b{display:grid;grid-template-columns:220px minmax(0,1fr);column-gap:20px;align-items:start}
body[data-uiv7-screen="hub"] .tour .panel-b>*{grid-column:2}
body[data-uiv7-screen="hub"] .tour .tour-dots{grid-column:1;grid-row:1/span 8;display:flex;flex-direction:column;gap:6px;margin:0}
body[data-uiv7-screen="hub"] .tour-dots>span{display:block;width:auto!important;height:auto!important;border:1px solid #3b3a33;background:#161612;padding:10px;min-height:44px;border-radius:0!important;cursor:pointer}
body[data-uiv7-screen="hub"] .tour-dots>span.on{border-top:2px solid #e8dcb5;color:#e8dcb5}
body[data-uiv7-screen="hub"] .tour .hface,body[data-uiv7-screen="hub"] .tour img{max-height:100px;object-fit:contain}
body[data-uiv7-screen="hub"] .uiv7-news-progress{display:grid;grid-template-columns:repeat(8,1fr);gap:4px;margin:12px 0}
body[data-uiv7-screen="hub"] .uiv7-news-progress i{height:6px;background:#3b3a33}
body[data-uiv7-screen="hub"] .uiv7-news-progress i.on{background:#e8dcb5}
body[data-uiv7-screen="hub"] .uiv7-news-next{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:#c9bfa5}
body[data-uiv7-screen="hub"] .toast-wrap{z-index:250!important;top:calc(var(--p1-toast-top,64px) + 12px)!important;bottom:auto!important;right:12px;width:min(420px,calc(100vw - 24px))}
body[data-uiv7-screen="hub"] .toast{border-radius:0!important;background:#1b1b17!important;border:1px solid #3b3a33!important;border-left:3px solid #e8dcb5!important;color:#c9bfa5!important}
body[data-uiv7-screen="hub"] .toast:is(.bad,.error,.urgent){border-left-color:#b85f52!important}
body[data-uiv7-screen="hub"] .toast:is(.warn,.warning,.combat){border-left-color:#c4ad65!important}
body[data-uiv7-screen="hub"] .toast:is(.good,.ok){border-left-color:#7eaa88!important}
body[data-uiv7-screen="hub"] .mailmodal{width:min(950px,94vw)!important;max-width:950px!important}
body[data-uiv7-screen="hub"] .mails{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body[data-uiv7-screen="hub"] .mail{border:1px solid #3b3a33;background:#161612!important;padding:12px;min-width:0}
body[data-uiv7-screen="hub"] .mail .mf{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
body[data-uiv7-screen="hub"] .chat.drawer{position:fixed!important;top:0!important;right:0!important;bottom:0!important;width:min(450px,100vw)!important;max-width:100vw;z-index:140!important;margin:0!important;background:#12120f!important;border-left:1px solid #3b3a33;overflow:auto;padding:48px 12px 12px!important}
body[data-uiv7-screen="hub"] .chat.drawer .drawx{position:absolute;top:6px;right:6px;min-width:44px;min-height:44px}
body[data-uiv7-screen="hub"] .chat.drawer .chatp{display:flex;flex-direction:column;min-height:55dvh;border-radius:0!important;background:#1b1b17!important}
body[data-uiv7-screen="hub"] .chat.drawer .chatwrap{flex:1;min-height:180px}
body[data-uiv7-screen="hub"] .chat.drawer :is(.chatbar,.chtabs,.chatlog,.panel-h){min-width:0;border-radius:0;background:#161612!important}
body[data-uiv7-screen="hub"] .chat.drawer .chatbar input{min-width:0;flex:1}
body[data-uiv7-screen="hub"] .uiv3-menu{width:min(1250px,96vw)!important;max-width:1250px!important}
body[data-uiv7-screen="hub"] .uiv3-menu-groups{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body[data-uiv7-screen="hub"] .uiv3-menu-group{background:#161612;border:1px solid #3b3a33;padding:12px;min-width:0}
body[data-uiv7-screen="hub"] .uiv3-menu-group>div{display:flex;flex-wrap:wrap;gap:6px}
body[data-uiv7-screen="auth"] .uiv7-auth{display:flex;justify-content:flex-end;align-items:center;min-height:100dvh;padding:40px 8vw;background-size:cover;background-position:center}
body[data-uiv7-screen="auth"] .auth-card{width:420px;max-width:100%;border-radius:0!important;background:#1b1b17ee!important;border:1px solid #3b3a33;border-top:2px solid #e8dcb5;padding:24px;color:#c9bfa5}
body[data-uiv7-screen="auth"] .auth-card :is(input,button,a.btn,.auth-tabs){border-radius:0!important;min-height:44px}
body[data-uiv7-screen="create"] .uiv7-create{width:min(1150px,96vw)!important;max-width:1150px!important}
body[data-uiv7-screen="create"] .uiv7-create .m-b{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:12px}
body[data-uiv7-screen="create"] .uiv7-create .m-b>:is(label,input,.bgpick){grid-column:1}
body[data-uiv7-screen="create"] .uiv7-create .bgpick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
body[data-uiv7-screen="create"] .uiv7-create .bgcard{border-radius:0!important;background:#161612!important;min-width:0}
body[data-uiv7-screen="create"] .uiv7-start-kit{grid-column:2;grid-row:1/span 6;padding:12px;border:1px solid #3b3a33;background:#161612}
body[data-uiv7-screen="create"] .uiv7-create-portrait{width:100%;height:220px;object-fit:contain}
body[data-uiv7-screen="create"] .uiv7-create :is(input,button){border-radius:0;min-height:44px}
body[data-uiv7-screen="create"] .uiv7-create :is(img,details,.notice){border-radius:0!important}
body[data-uiv7-screen="hub"] .chat.drawer :is(button,.empty){border-radius:0!important}
body[data-uiv7-screen="create"] .uiv7-create :is(.m-h,.m-f){background:#161612!important;color:#c9bfa5!important;border-color:#3b3a33!important}
body[data-uiv7-screen="create"] #app#app .uiv7-create :is(.m-h,.m-f){background:#161612!important;color:#c9bfa5!important}
body[data-uiv7-screen="create"] #app#app .uiv7-create .btn{border-radius:0!important;min-height:48px!important}
body[data-uiv7-screen="create"] #app#app .uiv7-start-kit dl.kv{display:grid!important;grid-template-columns:80px minmax(0,1fr)!important;width:100%!important;gap:10px;margin:16px 0!important}
body[data-uiv7-screen="create"] #app#app .uiv7-start-kit dl.kv :is(dt,dd){min-width:0;white-space:normal!important;overflow-wrap:anywhere;margin:0!important}
body[data-uiv7-screen="hub"] .uiv7-modal :is(.tour-f,.m-f){position:sticky;bottom:0;z-index:2}
@media(max-width:900px){
 body[data-uiv7-screen="hub"] #gameDialogsRoot .overlay:not(:has(.evmodal,.bm-modal)){align-items:flex-end!important;place-items:end center!important;justify-content:center!important;padding:0!important}
 body[data-uiv7-screen="hub"] .uiv7-modal{width:100%!important;max-width:100%!important;max-height:92dvh!important;margin:0!important;align-self:flex-end!important;padding-bottom:env(safe-area-inset-bottom)!important}
 body[data-uiv7-screen="hub"] .tour .panel-b{display:block}
 body[data-uiv7-screen="hub"] .tour .tour-dots{display:grid;grid-template-columns:repeat(8,1fr);gap:4px}
 body[data-uiv7-screen="hub"] .tour-dots>span{min-height:24px!important;padding:0!important;height:6px!important}
 body[data-uiv7-screen="hub"] .uiv7-tour-label{display:none}
 body[data-uiv7-screen="hub"] .mails{grid-template-columns:minmax(0,1fr)}
 body[data-uiv7-screen="hub"] .chat.drawer{width:100vw!important;height:100dvh!important;padding-bottom:env(safe-area-inset-bottom)!important}
 body[data-uiv7-screen="hub"] .chat.drawer .chatp{min-height:75dvh}
 body[data-uiv7-screen="hub"] .uiv3-menu-groups{grid-template-columns:minmax(0,1fr)}
 body[data-uiv7-screen="auth"] .uiv7-auth{align-items:flex-start;padding:25dvh 12px 24px}
 body[data-uiv7-screen="auth"] .auth-card{width:100%;padding:18px}
 body[data-uiv7-screen="create"] .uiv7-create .m-b{display:block}
 body[data-uiv7-screen="create"] .uiv7-create .bgpick{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-uiv7-screen="create"] .uiv7-create .bgcard{padding:8px;min-height:90px}
 body[data-uiv7-screen="create"] .uiv7-bg-description summary{min-height:24px}
}
