/* H.J.G. Sales chatbox skin */
html {
overflow-y: auto !important;
}

body {
margin: 0;
padding: 8px;
background: #131417;
box-sizing: border-box;
}

body, td, th, div, input {
font-family: Verdana, Arial, sans-serif;
font-size: 13px;
color: #f2f4f7;
vertical-align: top;
text-align: left;
}

*, *:before, *:after {
box-sizing: inherit;
}

#h, #i, #a,
.menu-links a {
color: #c8372f;
}

div {
overflow: hidden;
word-wrap: break-word;
}

a {
color: #f06a4f;
text-decoration: underline;
}

a:hover {
color: #f2f4f7;
text-decoration: none;
cursor: pointer;
}

li {
font-size: 8px;
color: #f06a4f;
}

.poweredby,
.brandline {
font-size: 12px;
text-align: center;
margin-top: 10px;
color: #f2f4f7;
}

.brandline a,
.chat-info-brand a {
color: inherit;
text-decoration: none;
}

.brandline a:hover,
.chat-info-brand a:hover {
text-decoration: underline;
}

.admin_online {
color: #0f0;
}

.admin_offline {
color: #fff;
}

.ip {
color: #f00;
}

.online {
color: #c8372f;
}

.taga,
.tagb {
background: transparent;
padding: 4px 2px;
margin: 0 0 8px 0;
width: 100%;
}

.taga {
border-bottom: 1px dotted #c8372f;
}

.tagb {
border-bottom: 1px dotted #f2f4f7;
}

.taga a {
color: #f2f4f7;
font-size: 14px;
font-weight: bold;
}

.tagb a {
color: #c8372f;
font-size: 14px;
font-weight: bold;
}

img {
max-width: 150px;
vertical-align: middle;
}

.tagcount {
text-align: center;
margin: 0 0 10px 0;
font-size: 10px;
color: #f2f4f7;
}

.formarea {
text-align: center;
background: transparent;
padding: 8px 0 0 0;
color: #f2f4f7;
margin: 0 auto;
width: 100%;
max-width: 100%;
}

form {
width: 100%;
max-width: 100%;
margin: 0 auto;
}

input {
border: 1px solid #c8372f;
background-color: #131417;
font-weight: bold;
text-align: center;
margin-bottom: 6px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
color: #fff;
box-sizing: border-box;
}

input.inputname,
input.inputmsg {
width: 100%;
cursor: text;
padding: 9px 10px;
}

input.inputname {
color: #c8372f;
}

input.inputmsg {
color: #f2f4f7;
}

input.inputbutton {
width: 100%;
background-color: #c8372f;
position: relative;
cursor: pointer;
color: #000;
padding: 10px;
float: none;
border: 0;
}

.inputbutton:hover {
background-color: #f2f4f7;
}

.helper-buttons {
text-align: center;
margin: 2px 0 8px 0;
}

.helper-buttons a {
display: inline-block;
padding: 4px 8px;
margin: 0 3px;
border: 1px solid #c8372f;
border-radius: 999px;
background: #131417;
font-size: 11px;
color: #f2f4f7;
text-decoration: none;
}

.helper-buttons a:hover {
background: #c8372f;
color: #000;
}

.helper-text {
font-size: 11px;
line-height: 1.4;
color: #f2f4f7;
margin: 0 0 8px 0;
text-align: center;
}

.menu-links {
text-align: center;
margin: 0 0 8px 0;
}

.menu-links a {
display: inline-block;
margin: 0 6px;
}


.menu-submit {
width: auto;
display: inline-block;
margin: 0 0 0 8px;
padding: 4px 10px;
border: 1px solid #c8372f;
border-radius: 999px;
background: #c8372f;
color: #000;
font-size: 12px;
line-height: 1.2;
vertical-align: middle;
text-align: center;
}

.menu-submit:hover {
background: #f2f4f7;
}

.unban-form {
display: inline-block;
margin-left: 10px;
}

.unban-button {
width: auto;
padding: 5px 10px;
margin: 0;
font-size: 12px;
}

.footer {
text-align: center;
color: #c8372f;
font-size: 10px;
text-decoration: underline;
}

#view_ajax {
width: 100%;
max-width: 100%;
margin: 0 auto;
}

.tb-scroll-wrap {
display: block;
position: relative;
width: 100%;
overflow: hidden;
white-space: nowrap;
line-height: 1.5;
min-height: 24px;
}

.tb-scroll-content {
display: inline-block;
position: relative;
white-space: nowrap;
padding: 0 12px;
}

.tb-scroll-content img {
vertical-align: middle;
margin: 0 1px;
}

@media screen and (min-width: 768px) {
body {
padding: 12px;
}

body, td, th, div, input {
font-size: 14px;
}

.formarea,
#view_ajax {
max-width: 960px;
}

input.inputname,
input.inputmsg,
input.inputbutton {
font-size: 14px;
}
}


.private-panel-wrap {
margin: 10px 0 6px 0;
text-align: left;
}

.private-panel {
border: 1px solid #c8372f;
border-radius: 8px;
padding: 8px;
background: rgba(0,0,0,0.18);
}

.private-section {
margin-bottom: 10px;
}

.private-section:last-child {
margin-bottom: 0;
}

.private-section strong {
display: block;
margin-bottom: 6px;
color: #c8372f;
font-size: 12px;
}

.private-card {
border: 1px solid #323843;
border-radius: 6px;
padding: 6px 8px;
margin-bottom: 6px;
background: rgba(255,255,255,0.03);
}

.private-empty {
font-size: 12px;
color: #f2f4f7;
padding: 6px 0;
}

.private-actions {
margin-top: 4px;
}

.private-actions a {
display: inline-block;
margin-right: 8px;
font-size: 12px;
text-decoration: none;
padding: 2px 8px;
border: 1px solid #c8372f;
border-radius: 999px;
}

.private-status {
color: #f2f4f7;
font-size: 11px;
margin-left: 6px;
}

.private-user-link {
text-decoration: underline;
cursor: pointer;
}

.private-popup-body,
.private-room-body {
padding: 10px;
background: #131417;
}

.private-popup,
.private-room-wrap {
max-width: 640px;
margin: 0 auto;
}

.private-room-head {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
margin-bottom: 8px;
color: #f2f4f7;
}

.private-notice {
margin-bottom: 8px;
padding: 6px 8px;
border: 1px solid #c8372f;
border-radius: 6px;
background: rgba(48,160,205,0.12);
}

.private-room-view {
width: 100%;
height: 320px;
border: 1px solid #323843;
border-radius: 8px;
background: #1f1f1f;
margin-bottom: 8px;
}

.private-room-form .inputmsg,
.private-room-form .inputbutton {
width: 100%;
}

.private-room-form .inputbutton[disabled],
.private-room-form .inputmsg[disabled] {
opacity: 0.65;
cursor: not-allowed;
}

.private-message {
margin: 8px;
padding: 8px;
border-radius: 8px;
border: 1px solid #323843;
background: rgba(255,255,255,0.04);
}

.private-message.mine {
border-color: #c8372f;
background: rgba(48,160,205,0.10);
}

.private-message-head {
font-size: 11px;
margin-bottom: 4px;
color: #c8372f;
}

.private-message-head span {
color: #f2f4f7;
margin-left: 8px;
}

.private-message-body {
font-size: 13px;
line-height: 1.45;
color: #fff;
}

.private-smiley {
max-width: 24px;
max-height: 24px;
vertical-align: middle;
}


.private-menu-link {
display: inline-block;
padding: 3px 8px;
border: 1px solid #c8372f;
border-radius: 999px;
text-decoration: none;
margin-right: 6px;
}

.private-menu-link-alert {
background: #c8372f;
color: #000 !important;
}

.private-invite-badge {
display: inline-block;
min-width: 18px;
padding: 1px 5px;
margin-left: 6px;
border-radius: 999px;
background: #d84b4b;
color: #fff;
font-size: 11px;
line-height: 1.2;
text-align: center;
vertical-align: middle;
}

.private-panel-wrap {
margin: 0;
}

.private-popup .private-panel {
margin-top: 8px;
}


/* Private chat matches main tagbox colors */
.private-popup,
.private-room-wrap {
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid #c8372f;
  border-radius: 8px;
  padding: 10px;
  background: #131417;
  box-shadow: inset 0 0 0 1px rgba(147,202,223,0.08);
}

.private-room-head {
  padding-bottom: 8px;
  border-bottom: 1px dotted #c8372f;
}

.private-room-head strong {
  color: #c8372f;
  font-size: 14px;
}

.private-room-head span,
.private-empty,
.private-status,
.private-notice,
.private-message-body {
  color: #f2f4f7;
}

.private-panel {
  border: 1px solid #c8372f;
  border-radius: 8px;
  padding: 8px;
  background: #131417;
}

.private-card,
.private-message {
  border: 1px dotted #c8372f;
  background: #232323;
}

.private-message.mine {
  border: 1px solid #c8372f;
  background: #1c1f24;
}

.private-message-head {
  color: #c8372f;
}

.private-message-body {
  font-size: 13px;
  line-height: 1.45;
}

.private-actions a,
.private-menu-link {
  background: #131417;
  color: #f2f4f7;
}

.private-actions a:hover,
.private-menu-link:hover {
  background: #c8372f;
  color: #000;
  text-decoration: none;
}

.private-room-view {
  border: 1px solid #c8372f;
  background: #131417;
}

.private-refresh-body {
  margin: 0;
  padding: 8px;
  background: #131417;
  color: #f2f4f7;
  font-family: Verdana, Arial, sans-serif;
  font-size: 13px;
}


.private-disabled {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid #7a8088;
    color: #d7dbe2;
    background: #252a31;
}
.admin-private-button {
    display: inline-block;
    margin-bottom: 8px;
}
.private-admin-wrap {
    width: 96%;
    margin: 0 auto 12px auto;
    overflow: hidden;
}
.private-admin-list {
    float: left;
    width: 38%;
}
.private-admin-view {
    float: right;
    width: 59%;
}
.private-admin-head {
    margin-bottom: 8px;
    padding: 6px 8px;
    background: #1c1f24;
    border: 1px solid #323843;
    color: #f2f4f7;
}
.private-admin-card {
    margin-bottom: 8px;
    padding: 8px;
    background: #171a1f;
    border: 1px solid #323843;
}
.private-admin-open {
    font-weight: bold;
}
.private-admin-meta {
    margin-top: 4px;
}
.private-admin-messages {
    margin-top: 10px;
    padding: 8px;
    background: #171a1f;
    border: 1px solid #323843;
    min-height: 280px;
    overflow: auto;
}


.private-admin-notice { margin: 0 auto 10px auto; max-width: 900px; background: #1c1f24; border: 1px solid #c8372f; color: #f2f4f7; padding: 8px 10px; text-align: center; }
.private-admin-retention { margin: 0 auto 10px auto; max-width: 900px; color: #b7bec8; text-align: center; }
.private-admin-delete { background: #7f231f; border: 1px solid #f06a4f; color: #fff; padding: 2px 8px; cursor: pointer; }
.private-admin-delete:hover { background: #9e2d27; }


/* Panter Radio house style refinements */
body {
background: linear-gradient(180deg, #101114 0%, #171a1e 100%);
}

body, td, th, div, input, textarea, select {
color: #f2f4f7;
}

a {
color: #f06a4f;
}

a:hover {
color: #ffd7ca;
}

.taga,
.tagb,
.private-card,
.private-admin-card,
.private-admin-messages,
.private-room-view,
.private-panel {
background: rgba(255,255,255,0.02);
border-color: #323843;
}

.taga {
border-bottom: 1px solid rgba(200,55,47,0.32);
}

.tagb {
border-bottom: 1px solid rgba(240,106,79,0.24);
}

input,
textarea,
select {
background-color: #171a1f;
border: 1px solid rgba(240,106,79,0.22);
color: #f2f4f7;
}

input.inputname {
color: #ffd7ca;
}

input.inputmsg {
color: #f2f4f7;
}

input.inputbutton,
.menu-submit,
.private-admin-delete {
background: linear-gradient(180deg, #c8372f, #9e2d27);
color: #fff;
border: 0;
}

input.inputbutton:hover,
.menu-submit:hover,
.private-admin-delete:hover {
background: linear-gradient(180deg, #f06a4f, #c8372f);
color: #fff;
}

.helper-buttons a,
.private-actions a,
.private-menu-link {
border: 1px solid rgba(240,106,79,0.24);
background: #171a1f;
color: #ffe7dd;
}

.helper-buttons a:hover,
.private-actions a:hover,
.private-menu-link:hover {
background: rgba(200,55,47,0.16);
color: #fff;
}

.private-status,
.helper-text,
.tagcount,
.footer,
.poweredby,
.brandline,
.private-empty,
.admin_online,
.admin_offline,
.online {
color: #b7bec8;
}

.private-admin-head {
background: #1c1f24;
border: 1px solid #323843;
color: #f2f4f7;
}

.private-disabled {
background: #252a31;
color: #d7dbe2;
border: 1px solid #323843;
}

.unban-button,
.inputbutton,
.menu-submit {
box-shadow: 0 10px 24px rgba(0,0,0,0.24);
}

/* Dynamische kleuren uit Admin > Kleurenstijl aanpassen */
body {
background: var(--tb-bg, #131417);
color: var(--tb-text, #f2f4f7);
}
body, td, th, div, input, textarea, select {
color: var(--tb-text, #f2f4f7);
}
a,
#h, #i, #a,
.menu-links a {
color: var(--tb-link, #d4af37);
}
a:hover {
color: var(--tb-accent-hover, #f1d372);
}
input,
textarea,
select {
background-color: var(--tb-surface-alt, #1c1f24);
border-color: var(--tb-border, #3a3320);
color: var(--tb-text, #f2f4f7);
}
.taga,
.tagb,
.private-card,
.private-admin-card,
.private-admin-messages,
.private-room-view,
.private-panel,
.private-popup,
.private-room-wrap {
background: var(--tb-surface, #171a1f);
border-color: var(--tb-border, #3a3320);
}
.taga,
.tagb {
border-bottom-color: var(--tb-border, #3a3320);
}
.taga a,
.tagb a,
.private-section strong,
.private-room-head strong,
.private-message-head {
color: var(--tb-accent, #d4af37);
}
input.inputbutton,
.menu-submit,
.private-admin-delete {
background: var(--tb-button-bg, #d4af37);
color: var(--tb-button-text, #111111);
}
input.inputbutton:hover,
.menu-submit:hover,
.private-admin-delete:hover {
background: var(--tb-accent-hover, #f1d372);
color: var(--tb-button-text, #111111);
}
.helper-buttons a,
.private-actions a,
.private-menu-link {
border-color: var(--tb-border, #3a3320);
background: var(--tb-surface-alt, #1c1f24);
color: var(--tb-text, #f2f4f7);
}
.helper-buttons a:hover,
.private-actions a:hover,
.private-menu-link:hover,
.private-menu-link-alert {
background: var(--tb-button-bg, #d4af37);
color: var(--tb-button-text, #111111) !important;
}
.private-status,
.helper-text,
.tagcount,
.footer,
.poweredby,
.brandline,
.private-empty,
.online,
.private-admin-meta,
.private-admin-retention {
color: var(--tb-muted, #b7bec8);
}
.admin_online {
color: var(--tb-success, #49b368);
}
.admin_offline,
.ip {
color: var(--tb-danger, #c94b45);
}
.private-message {
background: var(--tb-message-bg, #232323);
}
.private-message.mine,
.private-notice {
border-color: var(--tb-accent, #d4af37);
background: var(--tb-surface-alt, #1c1f24);
}
.private-room-body,
.private-popup-body,
.private-refresh-body {
background: var(--tb-bg, #131417);
}
.chat-smiley {
max-width: 24px;
max-height: 24px;
vertical-align: middle;
}

/* Pagina achtergronden uit Admin > Kleurenstijl aanpassen */
body.tb-chat-page {
background: var(--tb-chat-bg, var(--tb-bg, #131417));
}
body.tb-history-page {
background: var(--tb-history-bg, var(--tb-bg, #131417));
}
body.tb-info-page {
background: var(--tb-info-bg, var(--tb-bg, #131417));
}
body.tb-admin-page {
background: var(--tb-admin-bg, var(--tb-bg, #131417));
}
body.tb-private-page,
.private-room-body,
.private-popup-body,
.private-refresh-body {
background: var(--tb-private-bg, var(--tb-bg, #131417));
}

/* Schone standaard chatbox layout */
html {
  min-height: 100%;
}
body.tb-chat-page,
body.tb-info-page,
body.tb-history-page {
  background: var(--tb-chat-bg, #131417);
  color: var(--tb-text, #f2f4f7);
  padding: 10px;
}
body.tb-info-page {
  background: var(--tb-info-bg, #131417);
}
body.tb-history-page {
  background: var(--tb-history-bg, #131417);
}
.tb-chat-shell {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}
.tb-chat-card {
  width: 100%;
  background: var(--tb-surface, #171a1f);
  border: 1px solid var(--tb-border, #3a3320);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 12px 34px rgba(0,0,0,.25);
  overflow: visible;
}
.tb-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 4px 12px 4px;
  border-bottom: 1px solid var(--tb-border, #3a3320);
  margin-bottom: 10px;
}
.tb-chat-header strong {
  display: block;
  font-size: 18px;
  color: var(--tb-text, #f2f4f7);
}
.tb-chat-header span {
  display: block;
  font-size: 12px;
  color: var(--tb-muted, #b7bec8);
  margin-top: 2px;
}
.tb-admin-shortcut,
.tb-chat-menu a,
.helper-buttons a {
  color: var(--tb-link, #d4af37) !important;
}
.tb-admin-shortcut {
  border: 1px solid var(--tb-border, #3a3320);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--tb-surface-alt, #1c1f24);
  text-decoration: none;
}
.chat-smiley-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 8px;
  border: 1px solid var(--tb-border, #3a3320);
  background: var(--tb-surface-alt, #1c1f24);
  border-radius: 12px;
  margin-bottom: 10px;
  max-height: 130px;
  overflow: auto;
}
.chat-smiley-picker button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tb-border, #3a3320);
  background: var(--tb-surface, #171a1f);
  border-radius: 9px;
  cursor: pointer;
  padding: 3px;
}
.chat-smiley-picker img,
.chat-smiley {
  max-width: 26px;
  max-height: 26px;
  width: auto;
  height: auto;
}
.tb-message-panel {
  min-height: 280px;
  max-height: 520px;
  overflow: auto;
  background: var(--tb-chat-bg, #131417);
  border: 1px solid var(--tb-border, #3a3320);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}
.tb-message-panel .taga,
.tb-message-panel .tagb,
.chat-history-card .taga,
.chat-history-card .tagb {
  background: var(--tb-message-bg, #232323);
  border: 1px solid var(--tb-border, #3a3320);
  border-radius: 10px;
  padding: 9px 10px;
  margin: 0 0 8px 0;
  color: var(--tb-text, #f2f4f7);
}
.tb-message-panel .taga a,
.tb-message-panel .tagb a,
.chat-history-card .taga a,
.chat-history-card .tagb a {
  color: var(--tb-link, #d4af37);
}
.tb-chat-form {
  background: var(--tb-surface, #171a1f);
  border-top: 1px solid var(--tb-border, #3a3320);
  padding-top: 10px;
}
.tb-chat-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.tb-chat-menu a {
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--tb-border, #3a3320);
  border-radius: 999px;
  background: var(--tb-surface-alt, #1c1f24);
  text-decoration: none;
}
.tb-input-grid {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr auto;
  gap: 8px;
  align-items: stretch;
}
.tb-input-grid input {
  margin: 0;
  border-color: var(--tb-border, #3a3320);
  background: var(--tb-surface-alt, #1c1f24);
  color: var(--tb-text, #f2f4f7);
}
.tb-send-button,
.menu-submit {
  background: var(--tb-button-bg, #d4af37) !important;
  color: var(--tb-button-text, #111111) !important;
  border-color: var(--tb-button-bg, #d4af37) !important;
  cursor: pointer;
}
.chat-notice {
  margin: 0 0 10px 0;
  padding: 9px 11px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
}
.chat-notice.is-hidden {
  display: none;
}
.chat-notice-ok {
  background: rgba(73,179,104,.15);
  border: 1px solid var(--tb-success, #49b368);
  color: var(--tb-text, #f2f4f7);
}
.chat-notice-error {
  background: rgba(201,75,69,.16);
  border: 1px solid var(--tb-danger, #c94b45);
  color: var(--tb-text, #f2f4f7);
}
.hjg-license {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  text-align: center;
  margin: 12px auto 0 auto;
  padding: 8px 10px;
  border-top: 1px solid rgba(212,175,55,.35);
  background: rgba(0,0,0,.22);
  color: #d4af37 !important;
  font-weight: bold;
  font-size: 12px;
  line-height: 1.3;
  clear: both;
}
.hjg-license a {
  display: inline-block !important;
  color: #d4af37 !important;
  text-decoration: none !important;
}
.hjg-license a:hover {
  color: #f1d372 !important;
  text-decoration: underline !important;
}
.chat-info-page {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 8px 0 2px 0;
  overflow: visible;
}
.chat-info-title {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: var(--tb-text,#f2f4f7);
  margin: 0 0 10px 0;
  line-height: 1.2;
}
.chat-info-line {
  height: 2px;
  background: var(--tb-accent,#d4af37);
  margin: 0 0 14px 0;
  opacity: .9;
}
.chat-info-card {
  border: 1px solid var(--tb-border,#3a3320);
  border-radius: 12px;
  padding: 14px;
  margin: 0 0 14px 0;
  background: var(--tb-surface,#171a1f);
  overflow: visible;
}
.chat-info-card h2 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: var(--tb-text,#f2f4f7);
}
.chat-smiley-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
  overflow: visible;
}
.chat-smiley-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--tb-border,#3a3320);
  border-radius: 8px;
  background: var(--tb-surface-alt,#1c1f24);
}
.chat-smiley-code {
  font-weight: bold;
  color: var(--tb-text,#f2f4f7);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-smiley-item img {
  max-width: 28px;
  max-height: 28px;
  width: auto;
  height: auto;
}
.chat-format-list {
  display: grid;
  gap: 0;
}
.chat-format-row {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 14px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--tb-border,#3a3320);
}
.chat-format-row:last-child {
  border-bottom: 0;
}
.chat-format-name {
  font-weight: bold;
  color: var(--tb-text,#f2f4f7);
  font-size: 14px;
}
.chat-format-help {
  display: block;
  font-size: 11px;
  color: var(--tb-muted,#b7bec8);
  margin-top: 2px;
}
.chat-format-code {
  display: block;
  border: 1px solid var(--tb-accent,#d4af37);
  border-radius: 6px;
  padding: 7px 9px;
  background: var(--tb-surface-alt,#1c1f24);
  color: var(--tb-text,#f2f4f7);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media screen and (max-width: 700px) {
  body.tb-chat-page,
  body.tb-info-page,
  body.tb-history-page {
    padding: 6px;
  }
  .tb-chat-card {
    border-radius: 12px;
    padding: 8px;
  }
  .tb-input-grid {
    grid-template-columns: 1fr;
  }
  .tb-message-panel {
    min-height: 300px;
    max-height: 62vh;
  }
  .chat-smiley-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .chat-format-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .chat-format-code {
    white-space: normal;
  }
}

/* H.J.G. Sales standaard herstelronde: ruimere desktop, rustige invoerbalk en luxe privéchat */
@media screen and (min-width: 901px) {
  body.tb-chat-page {
    padding: 24px;
  }
  .tb-chat-shell {
    max-width: 1180px;
  }
  .tb-chat-card {
    padding: 18px;
    border-radius: 20px;
  }
  .tb-chat-header {
    padding: 8px 6px 16px 6px;
  }
  .tb-chat-header strong {
    font-size: 22px;
  }
  .chat-smiley-picker {
    gap: 8px;
    padding: 12px;
    max-height: 150px;
  }
  .chat-smiley-picker button {
    width: 40px;
    height: 40px;
  }
  .tb-message-panel {
    min-height: 390px;
    max-height: 64vh;
    padding: 14px;
    margin-bottom: 14px;
  }
  .tb-message-panel .taga,
  .tb-message-panel .tagb {
    padding: 11px 14px;
    margin-bottom: 10px;
  }
  .tb-input-grid {
    grid-template-columns: minmax(210px, 260px) minmax(360px, 1fr) 150px;
    gap: 12px;
    align-items: end;
  }
  .tb-send-button {
    min-height: 46px;
    font-size: 14px;
    border-radius: 14px;
  }
}

.tb-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin: 0;
  text-align: left;
  overflow: visible;
}
.tb-form-field span {
  display: block;
  color: var(--tb-muted, #b7bec8);
  font-size: 12px;
  font-weight: bold;
  text-align: left;
}
.tb-form-field input.inputname,
.tb-form-field input.inputmsg {
  width: 100%;
  min-height: 44px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
}
.tb-name-field input.inputname {
  color: var(--tb-text, #f2f4f7);
}
.tb-send-button {
  min-height: 44px;
  border-radius: 12px;
  padding: 0 16px;
  margin: 0;
  font-weight: bold;
}
.helper-buttons,
.helper-text {
  display: none !important;
}
@media screen and (max-width: 700px) {
  .tb-form-field span {
    font-size: 12px;
  }
  .tb-form-field input.inputname,
  .tb-form-field input.inputmsg,
  .tb-send-button {
    min-height: 44px;
  }
}

/* Luxe privéberichten */
body.tb-private-page,
body.private-room-body,
body.private-popup-body,
body.private-refresh-body {
  background: radial-gradient(circle at top, rgba(212,175,55,.09), transparent 34%), var(--tb-private-bg, var(--tb-bg, #131417));
}
.private-popup,
.private-room-wrap {
  width: min(100%, 1100px);
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid rgba(212,175,55,.48);
  border-color: var(--tb-border, rgba(212,175,55,.48));
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)), var(--tb-surface, #171a1f);
  box-shadow: 0 22px 54px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,255,255,.035);
  overflow: visible;
}
.private-room-wrap.private-room-luxury {
  min-height: min(760px, calc(100vh - 32px));
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.private-room-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--tb-border, #3a3320);
  border-radius: 18px;
  background: var(--tb-surface-alt, #1c1f24);
}
.private-room-head-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.private-avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tb-accent, #d4af37);
  color: var(--tb-accent, #d4af37);
  background: rgba(0,0,0,.28);
  font-weight: bold;
  font-size: 18px;
  text-transform: uppercase;
}
.private-room-title {
  min-width: 0;
}
.private-room-head strong {
  display: block;
  color: var(--tb-text, #f2f4f7);
  font-size: 18px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.private-room-subtitle {
  display: block;
  color: var(--tb-muted, #b7bec8);
  font-size: 12px;
  margin-top: 3px;
}
.private-room-head span.private-room-state,
#private_room_state {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(73,179,104,.45);
  background: rgba(73,179,104,.14);
  color: #dff7e6;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
}
.private-room-view {
  flex: 1 1 auto;
  width: 100%;
  min-height: 450px;
  height: 58vh;
  border: 1px solid var(--tb-border, #3a3320);
  border-radius: 18px;
  background: var(--tb-private-bg, #131417);
  margin: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}
.private-room-form {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 10px;
  align-items: stretch;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--tb-border, #3a3320);
  border-radius: 18px;
  background: var(--tb-surface-alt, #1c1f24);
}
.private-room-form .inputmsg,
.private-room-form .inputbutton {
  width: 100%;
  min-height: 46px;
  margin: 0;
  border-radius: 14px;
}
.private-room-form .inputmsg {
  text-align: left;
  padding: 11px 14px;
}
.private-room-form .inputbutton {
  font-weight: bold;
  cursor: pointer;
}
.private-actions-top {
  margin: 0 0 10px 0;
  text-align: center;
}
.private-actions-top a {
  padding: 8px 12px;
  border-radius: 999px;
}
.private-notice {
  border-radius: 12px;
  padding: 9px 12px;
}
.private-refresh-body {
  padding: 12px;
}
.private-message {
  width: fit-content;
  max-width: 72%;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid var(--tb-border, #3a3320);
  border-radius: 16px 16px 16px 6px;
  background: var(--tb-message-bg, #232323);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  overflow: visible;
}
.private-message.mine {
  margin-left: auto;
  border-color: var(--tb-accent, #d4af37);
  border-radius: 16px 16px 6px 16px;
  background: linear-gradient(180deg, rgba(212,175,55,.25), rgba(212,175,55,.12)), var(--tb-surface-alt, #1c1f24);
}
.private-message-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--tb-accent, #d4af37);
  font-size: 11px;
  margin-bottom: 5px;
}
.private-message-head span {
  margin-left: 0;
  color: var(--tb-muted, #b7bec8);
  white-space: nowrap;
}
.private-message-body {
  font-size: 14px;
  line-height: 1.5;
}
.private-popup .hjg-license,
.private-room-wrap .hjg-license {
  margin-top: 10px;
  border-radius: 12px;
}
.private-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: 0;
  padding: 0;
  background: transparent;
}
.private-section {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--tb-border, #3a3320);
  border-radius: 16px;
  background: var(--tb-surface-alt, #1c1f24);
}
.private-card {
  border-radius: 12px;
  padding: 9px 10px;
}
.private-actions a {
  padding: 6px 10px;
}

@media screen and (max-width: 900px) {
  body.tb-private-page,
  body.private-room-body,
  body.private-popup-body {
    padding: 8px;
  }
  .private-popup,
  .private-room-wrap {
    width: 100%;
    max-width: none;
    border-radius: 18px;
    padding: 12px;
  }
  .private-room-wrap.private-room-luxury {
    min-height: calc(100vh - 16px);
  }
  .private-room-view {
    min-height: 52vh;
    height: 58vh;
  }
  .private-panel {
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width: 600px) {
  body.tb-private-page,
  body.private-room-body,
  body.private-popup-body {
    padding: 6px;
  }
  .private-popup,
  .private-room-wrap {
    border-radius: 16px;
    padding: 10px;
  }
  .private-room-head {
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
  }
  .private-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .private-room-head strong {
    font-size: 15px;
  }
  .private-room-head span.private-room-state,
  #private_room_state {
    padding: 6px 8px;
    font-size: 11px;
  }
  .private-room-view {
    min-height: 56vh;
    height: 60vh;
    border-radius: 14px;
  }
  .private-room-form {
    grid-template-columns: 1fr;
    border-radius: 14px;
    gap: 8px;
    padding: 8px;
  }
  .private-room-form .inputmsg,
  .private-room-form .inputbutton {
    min-height: 44px;
  }
  .private-refresh-body {
    padding: 8px;
  }
  .private-message {
    max-width: 86%;
    padding: 9px 10px;
  }
  .private-message-body {
    font-size: 13px;
  }
}

/* Herstelronde invoervelden, smileys en rustige refresh */
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
textarea,
select {
  -webkit-appearance: none;
  appearance: none;
}
input:focus,
textarea:focus,
select:focus,
button:focus {
  outline: none;
}
.tb-form-field input.inputname,
.tb-form-field input.inputmsg {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  line-height: 22px;
  padding: 12px 14px;
  border: 1px solid var(--tb-border, #3a3320);
  border-radius: 14px;
  background: var(--tb-surface-alt, #1c1f24);
  color: var(--tb-text, #f2f4f7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.tb-form-field input.inputname:focus,
.tb-form-field input.inputmsg:focus {
  border-color: var(--tb-accent, #d4af37);
  box-shadow: 0 0 0 2px rgba(212,175,55,.22), inset 0 1px 0 rgba(255,255,255,.05);
  background: var(--tb-surface, #171a1f);
}
.tb-input-grid,
.tb-form-field {
  min-width: 0;
}
.tb-send-button {
  height: 48px;
  line-height: 1;
  align-self: end;
}
@media screen and (min-width: 901px) {
  .tb-input-grid {
    grid-template-columns: minmax(260px, 330px) minmax(420px, 1fr) 170px;
    gap: 14px;
  }
}
@media screen and (max-width: 700px) {
  .tb-form-field input.inputname,
  .tb-form-field input.inputmsg,
  .tb-send-button {
    height: 48px;
  }
}

.chat-smiley-picker {
  align-items: center;
}
.chat-smiley-picker button {
  width: auto;
  height: auto;
  min-width: 36px;
  min-height: 36px;
  max-width: 210px;
  max-height: 86px;
  padding: 5px 7px;
  flex: 0 0 auto;
}
.chat-smiley-picker img {
  width: auto !important;
  height: auto !important;
  max-width: 190px !important;
  max-height: 70px !important;
  object-fit: contain;
}
.chat-smiley,
.tb-message-panel .chat-smiley,
.chat-history-card .chat-smiley {
  width: auto !important;
  height: auto !important;
  max-width: 220px !important;
  max-height: 90px !important;
  vertical-align: middle;
  object-fit: contain;
}
.tb-message-panel .taga,
.tb-message-panel .tagb,
.chat-history-card .taga,
.chat-history-card .tagb {
  line-height: 1.55;
  overflow-x: hidden;
}
.tb-scroll-wrap {
  min-height: 1.7em;
}
.tb-scroll-content {
  will-change: left;
}
.tb-scroll-content .chat-smiley {
  margin: 0 3px;
}

/* Smileyvak inklappen en automatisch meegroeien */
.tb-smiley-box {
  margin: 0 0 12px 0;
}
.tb-smiley-box-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 0 8px 0;
}
.tb-smiley-toggle {
  appearance: none;
  border: 1px solid var(--tb-border, #3a3320);
  background: var(--tb-surface-alt, #1c1f24);
  color: var(--tb-link, #d4af37);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: bold;
  cursor: pointer;
}
.tb-smiley-toggle:hover,
.tb-smiley-toggle:focus {
  border-color: var(--tb-accent, #d4af37);
  box-shadow: 0 0 0 2px rgba(212,175,55,.18);
  outline: none;
}
.chat-smiley-picker,
.tb-smiley-box .chat-smiley-picker {
  max-height: none !important;
  overflow: visible !important;
  align-items: center;
  align-content: flex-start;
}
.tb-smiley-box.is-collapsed .chat-smiley-picker {
  display: none !important;
}
.tb-smiley-box.is-collapsed {
  margin-bottom: 10px;
}
.tb-smiley-box.is-collapsed .tb-smiley-box-head {
  margin-bottom: 0;
}
.tb-smiley-box .chat-smiley-picker button {
  width: auto !important;
  height: auto !important;
  min-width: 38px;
  min-height: 38px;
  max-width: 230px;
  max-height: 96px;
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tb-smiley-box .chat-smiley-picker img {
  width: auto !important;
  height: auto !important;
  max-width: 210px !important;
  max-height: 82px !important;
  object-fit: contain;
}
@media screen and (max-width: 700px) {
  .tb-smiley-box {
    margin-bottom: 10px;
  }
  .tb-smiley-box-head {
    justify-content: stretch;
  }
  .tb-smiley-toggle {
    width: 100%;
    min-height: 46px;
    font-size: 16px;
  }
  .tb-smiley-box .chat-smiley-picker {
    justify-content: center;
    padding: 10px;
    gap: 10px;
  }
  .tb-smiley-box .chat-smiley-picker button {
    min-width: 48px;
    min-height: 48px;
    max-width: 210px;
    max-height: 96px;
  }
  .tb-smiley-box .chat-smiley-picker img {
    max-width: 190px !important;
    max-height: 82px !important;
  }
}
