/* Shared match controls and room configuration use readable physical sizes across themes. */
.gm__corner{gap:7px!important;align-items:center!important}.gm__corner .gm__gear{border-radius:5px}.gm__view-toggle{min-height:36px;padding:6px 10px;border:1px solid #617e8c;border-radius:5px;background:#142733ee;color:#dfedf4;font:600 12px var(--font-cjk);white-space:nowrap;cursor:pointer}.gm__view-toggle[aria-pressed="true"]{color:#ffe4aa;border-color:#d7b67a}.gm__view-toggle:disabled{opacity:.4}.gm--shared .gm__vignette{opacity:.38}.gm--shared .gm__effects{pointer-events:none}.gm--shared .gm__effects>*{pointer-events:auto}.gm.is-dragging .gm__effects,.gm.has-facing .gm__effects{opacity:.22;pointer-events:none}.gm.is-dragging .gm__effects *,.gm.has-facing .gm__effects *{pointer-events:none!important}
.modal__box.room-plugin-dialog{max-height:calc(100dvh - 28px);display:flex;flex-direction:column}.room-plugin-dialog .modal__head{padding:16px 24px}.room-plugin-dialog .modal__title{font-size:24px}.room-plugin-dialog .modal__body{padding:16px 24px;min-height:0;overflow:auto;overscroll-behavior:contain}.room-plugin-dialog .modal__actions{padding:12px 24px;flex:none}.room-plugin-dialog .plugpanel{gap:10px}.room-plugin-dialog .plugpanel__lead,.room-plugin-dialog .set-hint{font-size:12px;line-height:1.5;margin:0}.room-plugin-dialog .plugpanel__modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px;background:#0c1923;border:1px solid #405764;border-radius:6px}.room-plugin-dialog .plugpanel__modes-label{grid-column:1/-1;font-size:13px;color:#a9c7d6}.room-plugin-dialog .plugpanel__modes .dpick__opt{font-size:14px;min-height:42px;padding:8px;white-space:normal;line-height:1.4}.room-plugin-dialog .plugpanel__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:46vh;padding:2px 4px 4px 0;align-items:start;overscroll-behavior:contain}.room-plugin-dialog .plugrow{gap:12px;padding:12px;border-radius:6px;min-height:72px;background:#0b1822dd}.room-plugin-dialog .plugrow.is-on{background:#16313c99}.room-plugin-dialog .plugrow__body{gap:6px}.room-plugin-dialog .plugrow__name{gap:5px;font-size:14px}.room-plugin-dialog .plugrow__badge{font-size:10px;padding:1px 4px}.room-plugin-dialog .plugrow__meta{font-size:11px}.room-plugin-dialog .set-toggle{font-size:12px;min-height:38px}.room-plugin-dialog .plugpanel__reapply{gap:12px;padding:8px 0}
@media(max-height:620px){.room-plugin-dialog .modal__head{padding:9px 16px}.room-plugin-dialog .modal__title{font-size:20px}.room-plugin-dialog .modal__body{padding:9px 16px}.room-plugin-dialog .modal__actions{padding:8px 16px}.room-plugin-dialog .plugpanel__list{max-height:42vh}.room-plugin-dialog .plugpanel__lead,.room-plugin-dialog .plugpanel>.set-hint{display:none}.room-plugin-dialog .plugpanel__modes{grid-template-columns:repeat(3,minmax(0,1fr));padding:6px;gap:5px}.room-plugin-dialog .plugpanel__modes-label{display:none}.room-plugin-dialog .plugpanel__modes .dpick__opt{min-height:34px;padding:5px;font-size:12px}.room-plugin-dialog .plugrow{padding:8px;min-height:64px}.gm__corner{gap:5px!important}.gm__view-toggle{padding:5px 7px;font-size:11px;min-height:34px}.gm--shared .team__name{max-width:76px}.gm--shared .gm__bonds{max-width:calc(100vw - 180px)}}
@media(max-width:640px){.room-plugin-dialog .plugpanel__list{grid-template-columns:1fr}.gm__corner .gm__guide,.gm__corner .gm__fs{display:none}.gm__corner .gm__temp-manage{font-size:11px;padding:5px 6px}.gm__corner{max-width:calc(100vw - 14px)}.teamchat__toggle{min-width:68px}.gm__view-toggle{min-width:68px}}

/* Keep equipment icons inside a dedicated footer rather than clipping them under portraits. */
:root[data-ui-theme=tactical] .sself .sop{height:clamp(160px,24vh,230px);border-radius:5px;overflow:hidden}
:root[data-ui-theme=tactical] .sself .sop__art{height:calc(100% - 42px)}
:root[data-ui-theme=tactical] .sself .sop__name{bottom:47px;font-size:13px}
:root[data-ui-theme=tactical] .sself .sop__slots{height:42px;padding:5px;bottom:0;box-sizing:border-box;align-items:stretch;overflow:hidden}
:root[data-ui-theme=tactical] .sself .sop__slot{height:32px;min-width:0;min-height:0}
:root[data-ui-theme=tactical] .sself .sop__slot img{display:block;max-height:30px;width:92%;height:92%;object-fit:contain}
@media(max-height:620px){:root[data-ui-theme=tactical] .sself .sop{height:145px}:root[data-ui-theme=tactical] .sself .sop__slots{height:34px;padding:4px}:root[data-ui-theme=tactical] .sself .sop__slot{height:26px}:root[data-ui-theme=tactical] .sself .sop__art{height:calc(100% - 34px)}:root[data-ui-theme=tactical] .sself .sop__name{bottom:38px;font-size:11px}:root[data-ui-theme=tactical] .sself .sops{grid-template-columns:repeat(5,minmax(90px,1fr));gap:8px}:root[data-ui-theme=tactical] .sself__roster{overflow:auto}}

@media(max-height:620px){:root[data-ui-theme=tactical] .sself .sops{grid-auto-rows:145px}}
:root[data-ui-theme=tactical] .sself .sop.has-many-items .sop__slots{height:62px;padding:4px;gap:3px}
:root[data-ui-theme=tactical] .sself .sop.has-many-items .sop__slot{height:auto;min-height:0}
:root[data-ui-theme=tactical] .sself .sop.has-many-items .sop__art{height:calc(100% - 62px)}
:root[data-ui-theme=tactical] .sself .sop.has-many-items .sop__name{bottom:65px}
:root[data-ui-theme=tactical] .sself .sop__slots .sop__slot--blessing{height:24px;flex-basis:24px}
