/* The right rail grows upward; the message composer keeps its own small height. */
body { --loult-rail-width:min(200px,40vw); }
body:not(.loult-gaming):not(.loult-wow-playing) #foot {
  display:flex;flex:0 0 64px;flex-wrap:nowrap;align-items:center;
  height:64px;min-height:64px;max-height:64px;box-sizing:border-box;
}
body:not(.loult-gaming):not(.loult-wow-playing):not(.cinema-open) #foot {position:relative;}
body:not(.loult-gaming):not(.loult-wow-playing) #composer {
  flex:1 1 auto;width:auto;min-width:0;height:100%;align-self:center;
  margin-right:var(--loult-rail-width);box-sizing:border-box;padding:0 10px;
}
body:not(.loult-gaming):not(.loult-wow-playing) #input {
  height:42px;max-height:42px;font-size:18px;line-height:1.4;padding:6px 8px;box-sizing:border-box;
}
body:not(.loult-gaming):not(.loult-wow-playing) #media-upload {width:36px;height:36px;flex:0 0 36px;padding:6px;}
body:not(.loult-gaming):not(.loult-wow-playing) #userlist {
  width:var(--loult-rail-width);box-sizing:border-box;
  height:max(0px,calc(100% - var(--loult-rail-reserve,120px)));overflow-y:auto;
}
body:not(.loult-gaming):not(.loult-wow-playing) #footer-actions {
  position:absolute;right:0;bottom:0;display:grid;grid-template-columns:minmax(0,1fr);gap:3px;
  width:var(--loult-rail-width);min-width:0;height:auto;max-height:calc(100dvh - 80px);
  overflow-y:auto;overflow-x:hidden;padding:4px;box-sizing:border-box;
  background:rgba(18,16,26,.94);color:#f4f2ff;
}
#game-buttons {
  display:grid;grid-template-columns:minmax(0,1fr);gap:3px;
  width:100%;min-width:0;height:auto;border:0;background:transparent;
}
#game-buttons > #wow-open,
#game-buttons > #surf-open,
#game-buttons > #sf2-open {
  position:static;inset:auto;display:flex;align-items:center;justify-content:center;
  flex:none;width:100%;max-width:100%;min-width:0;height:29px;min-height:29px;
  padding:3px 5px;gap:5px;font-size:11px;white-space:normal;cursor:pointer;
}
#game-buttons > #wow-open {color:#efd08b;font-weight:bold;}
#game-buttons > #surf-open {color:#85f0ad;font-weight:bold;}
body:not(.loult-gaming):not(.loult-wow-playing) #footer-actions #room-options,
body:not(.loult-gaming):not(.loult-wow-playing) #footer-actions #chat-controls {
  display:flex;flex-wrap:nowrap;align-items:center;gap:3px;width:100%;min-width:0;
  height:34px;min-height:34px;padding:0;box-sizing:border-box;
}
body:not(.loult-gaming):not(.loult-wow-playing) #footer-actions #room-options > .toolbar-button,
body:not(.loult-gaming):not(.loult-wow-playing) #footer-actions #chat-controls > .toolbar-button {
  flex:1 1 0;min-width:0;height:30px;padding:4px;border-radius:7px;
}
#footer-actions > #cinema-controls {
  position:relative;display:flex;flex:none;flex-direction:column;align-items:stretch;
  gap:4px;width:100%;max-width:100%;min-width:0;height:auto;
  padding:3px 0 5px;overflow:hidden;border:0;border-bottom:1px solid #ffffff26;box-sizing:border-box;
}
#cinema-controls[hidden] {display:none !important;}
#footer-actions > #cinema-controls #cinema-status {flex:none;min-width:0;max-width:100%;font-size:10px;line-height:1.2;}
#footer-actions > #cinema-controls #cinema-actions {
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;
  flex:none;width:100%;max-width:100%;min-width:0;margin:0;
}
#footer-actions > #cinema-controls #cinema-actions > .toolbar-button {
  width:100%;max-width:100%;min-width:0;height:30px;padding:4px;flex:none;border-radius:7px;
}
#footer-actions .toolbar-icon {max-width:100%;width:19px;height:19px;}
#cinema-link-popover {overflow-y:auto;box-sizing:border-box;}
body.cinema-open:not(.loult-gaming):not(.loult-wow-playing) #main {bottom:calc(var(--loult-footer-height,64px) + 24px);}
