body #social-panel #emote-list[hidden],body #party-controls[hidden],body #chat-target[hidden]{display:none!important}
body #chat-routing{display:flex;gap:6px;align-items:center;margin-top:8px}
body #chat-routing select,body #chat-routing input,body #party-controls select,body #party-controls input{min-width:0;max-width:100%;font-size:16px;padding:7px;border-radius:7px;box-sizing:border-box}
body #chat-target{flex:1;width:110px}
body.pack-ui #emote-toggle{margin-left:auto;min-width:36px;width:36px;height:36px;padding:0;font-size:23px;border-radius:10px}
body #party-controls{margin-top:6px;font-size:12px}
body #party-controls details{margin-top:5px}
/* The preceding member text is not interactive; leave the form below clear. */
body #party-controls summary{position:relative}
body #party-controls summary::before{content:"";position:absolute;left:0;right:0;bottom:0;height:44px}
body #party-members{display:block;margin:4px 0;overflow-wrap:anywhere}
body .party-line{display:flex;gap:6px;margin:6px 0}
body .party-line input{flex:1;width:90px}
body #party-invitations p{font-size:12px}
body #party-invitations button{font-size:12px;padding:5px;margin-left:4px}
body #social-panel #emote-list{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
body.pack-ui #social-panel #emote-list button{height:42px;aspect-ratio:auto;padding:3px}
body:not(.desktop-ui).pack-ui #social-panel #emote-list button{min-width:44px;min-height:44px;height:44px}
body:not(.desktop-ui).pack-ui #emote-toggle{min-width:44px;min-height:44px;width:44px;height:44px}
body #social-panel #emote-list .cute-emote{width:34px;height:34px}
body #chat-log{height:clamp(80px,24dvh,190px)}
body #skill2-button{position:fixed;right:max(26px,calc(env(safe-area-inset-right) + 8px));bottom:calc(var(--hud-bottom) + 136px);width:50px;height:50px;min-height:0;padding:2px;box-sizing:border-box;border:2px solid var(--ui-hud-a43-skill2-button-border);border-image:none;border-radius:50%;background:var(--ui-hud-a43-skill2-button-background);color:var(--ui-hud-a43-skill2-button-text);display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;font-size:9px;line-height:1.15;touch-action:none;z-index:3}
body #skill2-button[hidden]{display:none}
body #skill2-name{max-width:44px;white-space:normal}
body #skill2-timer{font-size:9px}
body #skill2-button::after{content:'';position:absolute;inset:-1px;border-radius:50%;background:conic-gradient(var(--ui-hud-a43-skill2-button-background-2) calc(var(--cd,0)*100%),transparent 0);pointer-events:none;opacity:0}
body #skill2-button.cooling::after{opacity:1}
body #skill2-button:disabled{opacity:.45}
body #dialogue-extras{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end}
body #dialogue-extras:empty{display:none}
body #dialogue-extras button{font-size:11px;padding:7px;white-space:normal}
body .relay-card{margin:10px 0;padding:10px;background:var(--ui-panel-a43-relay-card-background);border-radius:10px;color:var(--ui-panel-a43-relay-card-text);font-size:12px}
body .relay-card p{margin:5px 0}
@media(orientation:landscape) and (max-height:550px){body #chat-log{height:85px}body #social-panel{max-height:90dvh}body #skill2-button{bottom:calc(var(--hud-bottom) + 142px)}}

body #party-members{color:var(--ui-panel-a43-party-members-text)}
