/* Focused repair for V20 screenshot issues.  No changes to user data. */
#nyugiChatPop.nyugi-floating-chat{
  display:flex;flex-direction:column;z-index:310;overflow:hidden;
  bottom:max(78px,env(safe-area-inset-bottom));
  height:min(650px,calc(100dvh - 112px));max-height:calc(100dvh - 112px);
  padding:12px;background:var(--surface);
}
#nyugiChatConversation{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
#nyugiChatConversation .nyugi-mini-messages{overflow-y:auto;min-height:0;flex:1;max-height:none}
#nyugiChatConversation #nyugiPopupMessage{display:flex;flex-direction:column;flex:0 0 auto;position:relative;z-index:2;margin-top:auto;padding:10px 4px max(8px,env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line)}
#nyugiPopupMessage textarea{display:block;box-sizing:border-box;width:100%;height:66px;max-height:120px;min-height:60px;font:inherit;font-size:16px;line-height:1.45;resize:vertical;color:var(--ink);background:var(--subtle);border:1px solid var(--line);border-radius:10px}
#nyugiPopupMessage button[type=submit]{min-width:70px;min-height:44px}
#nyugiChatFriends{flex:0 0 auto}
#nyugiChatPop .nyugi-popup-header{flex:0 0 auto}
#v17FloatAudio{z-index:160;left:10px;bottom:max(12px,env(safe-area-inset-bottom))}
#v17HelpButton{z-index:150!important;left:12px!important;bottom:85px!important}
#nyugiChatLauncher{z-index:190}
#ccThemeForm textarea{font-family:ui-monospace,monospace;box-sizing:border-box;width:100%;max-width:100%;min-height:220px;resize:vertical;font-size:15px;line-height:1.5;overflow:auto;tab-size:2}
#ccThemeFrame{height:min(75dvh,760px);min-height:420px}
#v6RoomForm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 18px;align-items:end}
#v6RoomForm .field-label{display:flex;flex-direction:column;align-items:stretch;gap:9px;font-size:16px;line-height:1.4;font-weight:650;min-width:0}
#v6RoomForm .field-label input,#v6RoomForm .field-label select{width:100%;max-width:100%;min-height:46px;padding:9px 11px;font-size:16px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink)}
#v6RoomForm .field-label input[type=color]{height:52px;min-height:52px;padding:5px}
#v6RoomForm .field-label:has(input[name=message]),#v6RoomForm .setting-row,#v6RoomForm button[type=submit],#v6RoomForm>.btn{grid-column:1/-1}
#v6RoomForm .setting-row{font-size:16px}
#v6RoomForm button:focus-visible,#v6RoomForm input:focus-visible,#v6RoomForm select:focus-visible{outline:3px solid var(--primary);outline-offset:2px}
#v6RoomForm+form{margin-top:20px}
@media(max-width:760px){
  #nyugiChatPop.nyugi-floating-chat{bottom:calc(72px + env(safe-area-inset-bottom));right:6px;left:6px;width:auto;height:calc(100dvh - 145px - env(safe-area-inset-bottom));max-height:calc(100dvh - 145px - env(safe-area-inset-bottom));}
  #v17FloatAudio{bottom:calc(72px + env(safe-area-inset-bottom));left:4px;max-width:min(250px,65vw)}
  #v17HelpButton{left:5px!important;bottom:calc(130px + env(safe-area-inset-bottom))!important}
  #v6RoomForm{grid-template-columns:1fr;gap:13px}
  #v6RoomForm .field-label,#v6RoomForm .setting-row{grid-column:1}
}
