#shoutbox
{
  height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#shoutbox.front .head { cursor: pointer; margin-bottom: 20px;}
#shoutbox .head .right { float: right; margin: 0; font-size: 13px; }

#shoutbox .head .right a {
  background: var(--accent-color);
  border: none;
  color: var(--text-color);
  padding: 15px 40px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0px 0px 0px 0px rgb(66, 68, 90);
  min-height: 40px;
  border-radius: var(--radius2);
  transition: 0.2s ease-in-out all;
}

#shoutbox .head .right a:hover
{
  background: var(--accent-color-darken);
}

#shoutbox.collapsed .head { opacity: 0.6; }
#shoutbox.collapsed .body { display: none; }

#shoutbox .panel {
  margin-top: 5px;
}

#shoutbox input.text {
  border: none;
  background: none;
  padding-left: 0;
  width: 95%;
}

#shoutbox .minposts, #shoutbox .blocked {
  padding: 6px;
  font-size: 11px;
}

#shoutbox .panel.minposts { background: #FFFED8; color: #727250; }
#shoutbox .panel.blocked { background: #FCEFEF; color: #543A3A; }

#shoutbox .panel p { margin: 0; }

/* 🔥 KLUCZOWE FIXY */
#shoutbox .body
{
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#shoutbox .window
{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

#shoutbox .data {
  display: table;
  width: 100%;
  border-top: solid 2px rgba(0,0,0,0.1);
  font-size: 12px;
}

#shoutbox.front .data { border-top: none; }

#shoutbox .entry {
  display: block !important;
  margin-bottom: 2px;
  padding: 15px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-color);
  background: var(--background);
  color: var(--text-color) !important;
  box-sizing: border-box;
  border-radius: var(--radius2);
}

#shoutbox .entry.new { background-color: rgba(255,255,100,0.1); }
#shoutbox .entry:target { background-color: rgba(50,200,255,0.1); }

#shoutbox .avatar img {
  float: left;
  height: 35px;
  width: 35px;
  border-radius: 100%;
  cursor: pointer;
}

#shoutbox .user {
  display: inline;
  padding: 0 15px;
  white-space: nowrap;
  font-size: 13px;
}

#shoutbox .text {
  display: block;
  padding-left: 70px;
  color: var(--text-color);
}

#shoutbox .text:before {
  font-family: 'Font Awesome 6 Free';
  content: '\f148' !important;
  font-weight: 900;
  transform: rotate(90deg);
  color: var(--accent-color);
  position: absolute;
  left: 70px;
}

#shoutbox .info {
  color: var(--text-secondary);
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
}

#shoutbox .info a {
  color: var(--text-color);
  font-weight: 700;
}

#shoutbox .entry.unread .info:before {
  display: inline-block;
  margin-right: 10px;
  height: 4px;
  width: 4px;
  content: '';
  background: rgba(255,100,0,0.8);
  border-radius: 10px;
  vertical-align: middle;
}

#shoutbox .mod {
  padding: 6px 8px;
  font-size: 9px;
  font-weight: bold;
  color: #AAA;
  text-decoration: none;
  background: var(--accent-color);
  border-radius: var(--radius);
  margin-right: 5px;
}

#shoutbox .ip {
  margin-right: 10px;
  color: #CECECE;
}

#shoutbox .panel form {
  margin: 0;
  padding: 10px 8px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--background);
  border-radius: var(--radius);
  display: flex;
  gap: 10px;
}

#shoutbox .panel form button {
  padding: 3px 15px;
}