/* Vector seals remain crisp at every resolution. */
body.m2-new-theme .m2-category-portals{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:24px}
body.m2-new-theme .m2-category-portals .category{position:relative;isolation:isolate;display:flex;align-items:center;gap:12px;min-width:0;min-height:98px;padding:19px 16px;overflow:hidden;border:1px solid color-mix(in srgb,var(--accent) 32%,#222a35);border-radius:10px;background:linear-gradient(120deg,color-mix(in srgb,var(--accent) 9%,#1b222c),#151c25 90%);box-shadow:inset 0 1px #ffffff06,0 5px 15px #0002;text-decoration:none;transition:transform .25s,border-color .25s,box-shadow .25s}
body.m2-new-theme .m2-category-portals .category:before{content:"";position:absolute;inset:6px;width:auto;height:auto;z-index:-1;pointer-events:none;border:0;background:linear-gradient(var(--accent),var(--accent)) left top/9px 1px no-repeat,linear-gradient(var(--accent),var(--accent)) left top/1px 9px no-repeat,linear-gradient(var(--accent),var(--accent)) right bottom/9px 1px no-repeat,linear-gradient(var(--accent),var(--accent)) right bottom/1px 9px no-repeat;opacity:.35;transition:opacity .25s}
body.m2-new-theme .m2-category-portals .category:after{content:attr(data-rune);position:absolute;inset:auto 12px -15px auto;width:auto;height:auto;border:0;background:none;z-index:-1;font:72px/1.2 'Noto Serif SC',serif;color:var(--accent);opacity:.055;transform:rotate(-8deg);pointer-events:none;transition:transform .4s,opacity .4s}
body.m2-new-theme .m2-category-portals .cat-icon{display:grid;place-items:center;width:44px;height:46px;flex:0 0 44px;color:var(--accent);border:1px solid color-mix(in srgb,var(--accent) 35%,transparent);border-radius:9px;background:radial-gradient(ellipse at 50% 0,color-mix(in srgb,var(--accent) 20%,transparent),transparent 85%),#171e28;box-shadow:inset 0 1px #ffffff0a;transition:transform .3s,box-shadow .3s}
body.m2-new-theme .m2-category-portals .cat-icon svg{width:25px;height:25px;stroke-width:1.55;filter:drop-shadow(0 0 6px color-mix(in srgb,var(--accent) 20%,transparent))}
body.m2-new-theme .m2-category-portals .cat-copy{min-width:0;flex:1}
body.m2-new-theme .m2-category-portals strong{display:block;color:color-mix(in srgb,var(--accent) 66%,#f1f4f8);font:650 13px/1.5 Inter,system-ui,sans-serif;overflow-wrap:break-word}
body.m2-new-theme .m2-category-portals small{display:block;margin-top:4px;color:#aeb8c7;font:11px/1.55 Inter,system-ui,sans-serif}
body.m2-new-theme .m2-category-portals .arrow{display:grid;place-items:center;width:16px;height:24px;flex:0 0 16px;color:var(--accent);font:18px/1 Inter,system-ui,sans-serif;opacity:.8;transition:transform .25s}
body.m2-new-theme .m2-category-portals .category:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--accent) 68%,#333);box-shadow:0 10px 24px #0004,inset 0 0 25px color-mix(in srgb,var(--accent) 5%,transparent)}
body.m2-new-theme .m2-category-portals .category:hover:before{opacity:.8}
body.m2-new-theme .m2-category-portals .category:hover:after{opacity:.09;transform:rotate(0) translateY(-4px)}
body.m2-new-theme .m2-category-portals .category:hover .cat-icon{transform:translateY(-2px);box-shadow:0 0 18px color-mix(in srgb,var(--accent) 12%,transparent)}
body.m2-new-theme .m2-category-portals .category:hover .arrow{transform:translateX(2px)}

@media(max-width:1000px){body.m2-new-theme .m2-category-portals{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){body.m2-new-theme .m2-category-portals{gap:10px}body.m2-new-theme .m2-category-portals .category{padding:14px 12px;gap:9px;min-height:90px}body.m2-new-theme .m2-category-portals .cat-icon{width:36px;height:40px;flex-basis:36px}body.m2-new-theme .m2-category-portals .cat-icon svg{width:23px;height:23px}body.m2-new-theme .m2-category-portals strong{font-size:12px}body.m2-new-theme .m2-category-portals small{font-size:10px}body.m2-new-theme .m2-category-portals .arrow{display:none}}
@media(prefers-reduced-motion:reduce){body.m2-new-theme .m2-category-portals *,body.m2-new-theme .m2-category-portals .category:after{animation:none!important;transition:none!important;transform:none!important}}

/* Server submission uses the existing DLE form routes and modal controller. */
body.m2-new-theme .m2-category-portals button.category{font-family:inherit;text-align:left;cursor:pointer}
body.m2-new-theme .m2-server-picker-modal .m2-server-picker-card{width:min(1040px,100%)!important;max-height:calc(100dvh - 32px);overflow:auto;padding:32px 36px 22px!important;border:1px solid #526175!important;border-radius:5px!important;clip-path:none!important;background:repeating-linear-gradient(135deg,#c4d1df03 0 1px,transparent 1px 10px),linear-gradient(135deg,#202936,#141b25)!important;box-shadow:0 28px 90px #0008,inset 0 0 0 8px #ced7e203!important}
body.m2-new-theme .m2-server-picker-modal .m2-server-picker-card:after{color:#9aacc706}
body.m2-new-theme .m2-server-picker-modal .m2-picker-head{position:relative!important;inset:auto!important;width:auto!important;height:auto!important;min-height:0!important;display:flex!important;align-items:center;gap:20px;margin:0 0 22px!important;padding:0 38px 22px 0!important;border:0!important;border-bottom:1px solid #60738b50!important;background:none!important;box-shadow:none!important;clip-path:none!important}
body.m2-new-theme .m2-server-picker-modal .m2-picker-head:after{display:none!important}
body.m2-new-theme .m2-server-picker-modal .m2-picker-seal{flex-shrink:0;background:linear-gradient(135deg,#344458,#202b3a)!important;border-color:#8096b277!important;color:#d5e2ef!important;box-shadow:inset 0 0 0 5px #ffffff03,0 0 22px #7b9ec015!important}
body.m2-new-theme .m2-server-picker-modal .m2-picker-head .m2-modal-kicker{color:#b2c5dc!important;font-size:10px!important}
body.m2-new-theme .m2-server-picker-modal .m2-picker-head h2{font-size:30px!important;color:#e4eaf1!important}
body.m2-new-theme .m2-server-picker-modal .m2-picker-head p{color:#b4bfce!important;font-size:12px!important}
body.m2-new-theme .m2-server-picker-modal .m2-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.m2-new-theme .m2-server-picker-modal .m2-picker-option{grid-template-columns:156px minmax(0,1fr);min-height:162px;border-color:#64768d66!important;border-radius:3px;clip-path:none;background:linear-gradient(120deg,#253140,#1b2430)!important;box-shadow:inset 0 0 0 1px #fff02,0 6px 20px #0002}
body.m2-new-theme .m2-server-picker-modal .m2-picker-option:before{border-color:#9cb5d12b}
body.m2-new-theme .m2-server-picker-modal .m2-picker-option:hover{border-color:#96accb!important;box-shadow:0 8px 24px #0004,inset 0 0 22px #9db4d20a}
body.m2-new-theme .m2-server-picker-modal .m2-picker-option:focus-visible{outline:2px solid #c1d4e8;outline-offset:3px}
body.m2-new-theme .m2-server-picker-modal .m2-picker-image{height:162px;min-height:162px;background:#1b2430}
body.m2-new-theme .m2-server-picker-modal .m2-picker-image img{display:block;width:100%;height:100%;object-fit:cover;filter:saturate(.9) brightness(.92)}
body.m2-new-theme .m2-server-picker-modal .m2-picker-image:before{background:linear-gradient(90deg,transparent 55%,#202a3680)}
body.m2-new-theme .m2-server-picker-modal .m2-picker-image>b{left:8px;top:8px;padding:5px;border-color:#9eb0c76b;background:#182332bd;color:#e0e9f4}
body.m2-new-theme .m2-server-picker-modal .m2-picker-copy{padding:18px 40px 18px 18px}
body.m2-new-theme .m2-server-picker-modal .m2-picker-copy:after{color:#a2bad50a}
body.m2-new-theme .m2-server-picker-modal .m2-picker-copy small{color:#a9c1db;font-size:8px}
body.m2-new-theme .m2-server-picker-modal .m2-picker-copy strong{color:#e3eaf2;font-size:20px}
body.m2-new-theme .m2-server-picker-modal .m2-picker-copy em{color:#b6c2d1;font-size:10px}
body.m2-new-theme .m2-server-picker-modal .m2-picker-copy>i{right:12px;border-color:#829bb866;background:#33485f55;color:#d4e1ef}
body.m2-new-theme .m2-server-picker-modal .m2-picker-foot{position:relative!important;inset:auto!important;width:auto!important;height:auto!important;min-height:0!important;margin:18px 0 0!important;padding:14px 0 0!important;display:flex!important;gap:12px;border:0!important;border-top:1px solid #60738b50!important;background:none!important;box-shadow:none!important;clip-path:none!important;color:#a8b8ca;font-size:10px}
body.m2-new-theme .m2-server-picker-modal .m2-picker-foot>b{color:#8fa5bf;font-size:8px}

@media(max-width:1000px){body.m2-new-theme .m2-category-portals{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){body.m2-new-theme .m2-server-picker-modal .m2-server-picker-card{padding:22px 18px 18px!important}body.m2-new-theme .m2-server-picker-modal .m2-picker-head{gap:14px;padding-bottom:16px!important;margin-bottom:16px!important}body.m2-new-theme .m2-server-picker-modal .m2-picker-head h2{font-size:23px!important}body.m2-new-theme .m2-server-picker-modal .m2-picker-grid{grid-template-columns:1fr}body.m2-new-theme .m2-server-picker-modal .m2-picker-option{grid-template-columns:108px minmax(0,1fr);min-height:126px}body.m2-new-theme .m2-server-picker-modal .m2-picker-image{height:126px;min-height:126px}body.m2-new-theme .m2-server-picker-modal .m2-picker-copy{padding:15px 37px 15px 14px}body.m2-new-theme .m2-server-picker-modal .m2-picker-copy strong{font-size:18px}body.m2-new-theme .m2-server-picker-modal .m2-picker-foot>b{display:none}}
@media(prefers-reduced-motion:reduce){body.m2-new-theme .m2-server-picker-modal *,body.m2-new-theme .m2-server-picker-modal *:before,body.m2-new-theme .m2-server-picker-modal *:after{animation:none!important;transition:none!important;transform:none!important}body.m2-new-theme .m2-server-picker-modal .m2-picker-option{opacity:1!important}}

/* Keep decorative seals inside the scrollable dialog. */
body.m2-new-theme .m2-server-picker-modal .m2-server-picker-card{overflow-x:hidden}
body.m2-new-theme .m2-server-picker-modal .m2-server-picker-card:after{display:none!important}
body.m2-new-theme .m2-server-picker-modal .m2-picker-head h2{font-family:Georgia,"Times New Roman",serif!important;font-weight:700!important}
body.m2-new-theme .m2-server-picker-modal .m2-picker-seal span{color:#d4dfed}

/* Sidebar submission shortcut shares the server picker with the home card. */
body.m2-new-theme .account-balances .sidebar-server-create{position:relative;isolation:isolate;display:flex;align-items:center;gap:11px;flex-shrink:0;width:100%;min-height:62px;box-sizing:border-box;padding:10px 13px;overflow:hidden;border:1px solid #aa97705e;border-radius:8px;background:linear-gradient(115deg,#34332e,#252b33 58%,#1b242f);box-shadow:inset 0 1px #f2e0bd0d,0 4px 12px #0002;color:#e0d1b4;font-family:inherit;text-align:left;cursor:pointer;transition:border-color .25s,box-shadow .25s,transform .25s}
body.m2-new-theme .sidebar-server-create:before{content:"新";position:absolute;z-index:-1;right:40px;bottom:-15px;color:#c5b28c0c;font:66px/1 Georgia,serif;pointer-events:none;transition:transform .35s}
body.m2-new-theme .sidebar-server-create:after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 25%,#fff3 50%,transparent 75%);transform:translateX(-150%);pointer-events:none;transition:transform .65s}
body.m2-new-theme .sidebar-server-create__seal{display:grid;place-items:center;width:34px;height:36px;flex:0 0 34px;border:1px solid #bba77c55;border-radius:6px;background:linear-gradient(135deg,#bda97815,#0001);color:#d5bd8e;transition:transform .25s,background .25s}
body.m2-new-theme .sidebar-server-create__seal svg{width:22px;height:22px}
body.m2-new-theme .sidebar-server-create__copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
body.m2-new-theme .sidebar-server-create__copy small{font-size:8px;font-weight:700;line-height:1.2;letter-spacing:1.4px;color:#bcac8c}
body.m2-new-theme .sidebar-server-create__copy strong{font-size:14px;font-weight:750;line-height:1.3;color:#e5dfd2}
body.m2-new-theme .sidebar-server-create .sidebar-server-create__arrow{width:18px;height:18px;flex:0 0 18px;color:#ccb98f;transition:transform .25s}
body.m2-new-theme .account-balances .sidebar-server-create:hover{border-color:#c9b58aab;box-shadow:inset 0 1px #ffe6b617,0 6px 18px #0003,0 0 18px #c3a2600a;transform:translateY(-1px)}
body.m2-new-theme .sidebar-server-create:hover:after{transform:translateX(150%)}
body.m2-new-theme .sidebar-server-create:hover:before{transform:rotate(-5deg) translateY(-2px)}
body.m2-new-theme .sidebar-server-create:hover .sidebar-server-create__seal{transform:translateY(-1px);background:#baa2701c}
body.m2-new-theme .sidebar-server-create:hover .sidebar-server-create__arrow{transform:translateX(3px)}
body.m2-new-theme .sidebar-server-create:focus-visible{outline:2px solid #d3bc8e;outline-offset:3px}
@media(prefers-reduced-motion:reduce){body.m2-new-theme .sidebar-server-create,body.m2-new-theme .sidebar-server-create *,body.m2-new-theme .sidebar-server-create:before,body.m2-new-theme .sidebar-server-create:after{transition:none!important;animation:none!important;transform:none!important}body.m2-new-theme .sidebar-server-create:after{display:none}}

/* Guest submission notice follows the same graphite palette as the picker. */
body.m2-new-theme .m2-server-auth-modal .m2-server-auth-card{width:min(570px,100%)!important;max-height:calc(100dvh - 32px);overflow:auto;padding:40px 40px 32px!important;border:1px solid #6d7d916e!important;border-radius:6px!important;clip-path:none!important;background:repeating-linear-gradient(135deg,#c4d1df03 0 1px,transparent 1px 10px),linear-gradient(135deg,#232d3b,#151c26)!important;box-shadow:0 25px 80px #0008,inset 0 0 0 8px #ced7e203!important}
body.m2-new-theme .m2-server-auth-modal .m2-server-auth-card:after{display:none!important}
body.m2-new-theme .m2-server-auth-modal .m2-auth-emblem{width:76px;height:76px;margin-bottom:25px;border-color:#8fa6c078;background:radial-gradient(circle,#3a4b5f,#202b38 70%);box-shadow:inset 0 0 20px #0002,0 0 0 7px #8cadd00a,0 0 24px #8fa6c013}
body.m2-new-theme .m2-server-auth-modal .m2-auth-emblem svg{stroke:#d4dfeb}
body.m2-new-theme .m2-server-auth-modal .m2-auth-emblem>b{background:#33475f;border-color:#8fa6c078;color:#d4dfeb}
body.m2-new-theme .m2-server-auth-modal .m2-auth-ring{border-color:#849bb329}
body.m2-new-theme .m2-server-auth-modal .m2-modal-kicker{display:block;color:#b6c7dd;font-size:10px;line-height:1.4}
body.m2-new-theme .m2-server-auth-modal h2{font:700 29px/1.2 Georgia,"Times New Roman",serif!important;color:#e4ebf3!important;margin-bottom:14px!important}
body.m2-new-theme .m2-server-auth-modal .m2-server-auth-card>p{color:#b8c4d3!important;font-size:12px!important;line-height:1.8!important}
body.m2-new-theme .m2-server-auth-modal .m2-auth-notice{min-height:40px;margin-bottom:20px;border-color:#788da645;background:#14202e55;color:#afc0d3;font-size:10px;line-height:1.6}
body.m2-new-theme .m2-server-auth-modal .m2-auth-actions{position:relative;z-index:2;grid-template-columns:1fr 1fr;gap:10px}
body.m2-new-theme .m2-server-auth-modal .m2-auth-primary,body.m2-new-theme .m2-server-auth-modal .m2-auth-secondary{min-height:48px;border-radius:5px;font-size:12px;letter-spacing:0;color:#e5edf6!important;text-decoration:none}
body.m2-new-theme .m2-server-auth-modal .m2-auth-primary{background:linear-gradient(135deg,#465f7e,#30445e)!important;border-color:#a4b9d26b!important;box-shadow:0 7px 18px #0002}
body.m2-new-theme .m2-server-auth-modal .m2-auth-secondary{background:#202c3a!important;border-color:#a4b9d23d!important}
body.m2-new-theme .m2-server-auth-modal .m2-auth-primary>i{display:none}
body.m2-new-theme .m2-server-auth-modal .m2-auth-actions :focus-visible{outline:2px solid #c1d4e8;outline-offset:3px}
@media(max-width:600px){body.m2-new-theme .m2-server-auth-modal .m2-server-auth-card{padding:34px 23px 26px!important}body.m2-new-theme .m2-server-auth-modal h2{font-size:25px!important}}
@media(prefers-reduced-motion:reduce){body.m2-new-theme .m2-server-auth-modal *,body.m2-new-theme .m2-server-auth-modal *:before,body.m2-new-theme .m2-server-auth-modal *:after{animation:none!important;transition:none!important}}
