html[lang]
  body.chat-client
  dialog.modal.classic-settings-dialog[data-settings-tab="Profile"] {
  height: min(var(--profile-dialog-height, 449px), calc(100dvh - 16px));
}
html[lang] body.chat-client .classic-settings-panel .profile-nickname {
  display: grid;
  grid-template-columns: 120px minmax(0, 200px) 76px;
  gap: 0;
  margin: 0;
  height: 25px;
  align-items: center;
  font: bold 12px Arial;
}
html[lang] body.chat-client .profile-nickname input {
  box-sizing: border-box;
  height: 25px;
  min-height: 25px;
  border: 2px inset #ddd;
  border-radius: 0;
  padding: 1px 3px;
  background: #fff;
  color: #111;
  font: 12px Arial;
}

html[lang] body.chat-client .classic-settings-dialog .legacy-option-fields {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
html[lang]
  body.chat-client
  .classic-settings-dialog
  .legacy-option-fields
  .field {
  display: grid;
  grid-template-columns: 151px auto;
  align-items: center;
  justify-content: start;
  height: 21px;
  min-height: 21px;
  margin: 0;
  gap: 0;
  font: bold 12px Arial;
  color: var(--original-tabsText, white);
}
html[lang]
  body.chat-client
  .classic-settings-dialog
  .legacy-option-fields
  select {
  width: 80px;
  height: 21px;
  min-height: 21px;
  padding: 0 2px;
  border: 1px solid #aaa;
  border-radius: 0;
  background: white;
  color: #111;
  font: 12px Arial;
}
html[lang]
  body.chat-client
  .classic-settings-dialog
  .legacy-option-fields
  .field:nth-child(2)
  select {
  width: 66px;
}
html[lang]
  body.chat-client
  .classic-settings-dialog
  .legacy-option-fields
  .check-field {
  display: flex;
  flex-direction: row-reverse;
  justify-content: end;
  align-self: start;
  margin-inline-start: 151px;
  gap: 2px;
  font: 12px Arial;
}
html[lang]
  body.chat-client
  .classic-settings-dialog
  .legacy-option-fields
  input[type="checkbox"] {
  appearance: auto;
  width: 13px;
  height: 13px;
  min-height: 13px;
  margin: 0;
  padding: 0;
  accent-color: white;
}
html[lang]
  body.chat-client
  .classic-settings-dialog
  .legacy-option-fields
  .check-field
  > span {
  font: 12px Arial;
}
html[lang] body.chat-client .classic-settings-dialog .legacy-info {
  font: 12px Arial;
  color: var(--original-tabsText, white);
}
html[lang] body.chat-client .classic-settings-dialog .legacy-info p {
  margin: 5px 0 0;
  font: 12px Arial;
  line-height: 16px;
}
html[lang] body.chat-client .classic-settings-dialog .legacy-info dd {
  font: 12px Arial;
}
.legacy-info-copyright {
  text-align: center;
}
html[lang] body.chat-client .classic-settings-dialog .legacy-info a {
  color: #0000ee;
  text-decoration: underline;
  display: inline-block;
  margin-top: 4px;
}
html[lang]
  body.chat-client
  .classic-settings-dialog
  .legacy-info
  .legacy-info-thanks {
  margin-top: 14px;
}
.legacy-info dl {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  row-gap: 9px;
  margin: 38px 0 0;
}
.legacy-info dt {
  font-weight: bold;
}
.legacy-info dd {
  margin: 0;
  overflow-wrap: anywhere;
}
html[lang] body.chat-client .classic-settings-dialog .settings-help-text {
  font: 11px Arial;
  line-height: 12px;
}
.profile-icon-pages {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 3px;
  margin-top: 14px;
}
html[lang] body.chat-client dialog.modal.advanced-profile-dialog {
  width: min(460px, calc(100vw - 20px));
}
.advanced-profile-dialog .form-grid > strong,
.advanced-profile-dialog .profile-nickname,
.advanced-profile-dialog .profile-icon-pages {
  grid-column: 1 / -1;
}
.advanced-star-dialog .check-field {
  grid-column: 1 / -1;
  justify-self: center;
}
html[lang] body.chat-client .advanced-profile-dialog .profile-nickname {
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 4px;
  font: bold 12px Arial;
}
.profile-icon-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(var(--profile-icon-rows, 5), 41px);
  place-items: center;
}
html[lang] body.chat-client .profile-background {
  display: grid;
  grid-template-columns: 120px minmax(0, 200px) 76px;
  height: 25px;
  align-items: center;
  font: bold 12px Arial;
}
html[lang] body.chat-client .profile-nickname button,
html[lang] body.chat-client .profile-background button {
  margin-inline-start: 6px;
  padding: 1px 4px;
  min-height: 21px;
  height: 21px;
  border: 1px solid #111;
  border-radius: 0;
  background: #000;
  box-shadow: none;
  font: 12px Arial;
}
html[lang] body.chat-client .profile-icon-pages button {
  display: grid;
  place-items: center;
  width: 37px;
  height: 35px;
  min-height: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #000;
  font: 24px Arial;
}
html[lang] body.chat-client .profile-icon-pages > button {
  width: 22px;
}
html[lang] body.chat-client .profile-icon-grid [aria-pressed="true"] {
  border: 2px ridge #ddd;
  background: transparent;
}
.profile-icon-grid img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.profile-icon-pages .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
html[lang][data-reading-style] body.chat-client .composer input {
  font-family: var(--reading-font);
  font-size: var(--reading-size);
  font-weight: var(--reading-weight);
  font-style: var(--reading-style);
}
html[lang] body.chat-client .classic-settings-dialog .legacy-sound-fields {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
html[lang]
  body.chat-client
  .classic-settings-dialog
  .legacy-sound-fields
  .field {
  display: grid;
  grid-template-columns: 225px 92px;
  align-items: center;
  gap: 0;
  height: 21px;
  min-height: 21px;
  margin: 0;
  font: bold 12px Arial;
}
html[lang]
  body.chat-client
  .classic-settings-dialog
  .legacy-sound-fields
  select {
  width: 92px;
  height: 21px;
  min-height: 21px;
  padding: 0 2px;
  border: 1px solid #aaa;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: 12px Arial;
}
html[lang] body.chat-client .classic-settings-dialog .legacy-personal-styles {
  display: grid;
  grid-template-columns: 151px auto;
  margin: 6px 0 0;
  align-items: center;
  font: bold 12px Arial;
}
html[lang]
  body.chat-client
  .classic-settings-dialog
  .legacy-personal-style-choices {
  display: flex;
  gap: 5px;
}
html[lang]
  body.chat-client
  .classic-settings-dialog
  .legacy-personal-styles
  .field {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 0;
}
html[lang]
  body.chat-client
  .classic-settings-dialog
  .legacy-personal-styles
  input {
  width: 13px;
  min-width: 13px;
  height: 13px;
  margin: 0;
}
