/* Bright blue, pure white and true orange. Loaded after the layout modules. */
.chat-workspace .text-line.fun {
  font-style: italic;
}
.chat-workspace .text-line time,
.chat-workspace .text-line .nick,
.chat-workspace .text-line .badge,
.chat-workspace .text-line .message-text {
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
}
.chat-workspace .text-line .nick {
  font-weight: 700;
}
.chat-workspace .text-line time {
  display: inline;
  margin: 0;
}
.command-category {
  color: #205eaa;
}
.command-filters .selected {
  background: #1569d6;
  color: #fff;
  border-color: #1569d6;
}
.room-directory-row span {
  color: #365e87;
}
.room-directory-row .selected {
  background: #dcefff;
  color: #164b81;
  border-color: #69a6df;
}
.session-warning {
  background: #e3f3ff;
  color: #224b74;
  border-color: #ff890a;
}
.jump-latest {
  background: #1665cc;
  color: #fff;
}
.community-post,
.topic-button,
.photo-upload {
  background: #eef7ff;
  color: #204d79;
  border-color: #bfdcf5;
}
.photo-card p,
.photo-card button,
.photo-upload {
  font-size: 14px;
}
#connection {
  color: #22754c;
}
.tabs button.selected {
  color: #165dc1;
  border-bottom-color: #ff890a;
}
:root {
  color-scheme: light;
  --bg: #eaf5ff;
  --panel: #fff;
  --card: #f0f8ff;
  --line: #bddaf5;
  --text: #153860;
  --muted: #466788;
  --blue: #125bd1;
  --violet: #6741c2;
  --accent: #ef7800;
  --danger: #b62346;
}
body {
  background: #eaf5ff;
  color: var(--text);
}
button {
  background: #eaf4ff;
  color: #164778;
  border-color: #bfd9f3;
}
button:hover {
  background: #d5eaff;
}
input,
textarea,
select {
  background: #fff;
  color: #153860;
  border-color: #9abfe5;
}
input::placeholder,
textarea::placeholder {
  color: #507295;
}
label {
  color: #264f79;
}
.primary,
.chat-workspace .send-button {
  background: #ff890a;
  color: #172e50;
  border-color: #f07a00;
  font-weight: 750;
  box-shadow: none;
}
.primary:hover,
.chat-workspace .send-button:hover {
  background: #ff9c28;
}
.chat-workspace {
  background: #eaf5ff;
  color: #173b65;
}
.workspace-header {
  background: linear-gradient(110deg, #0861d4, #1489df);
  border: 0;
  border-bottom: 4px solid #ff8a08;
  color: #fff;
}
.workspace-header .brand {
  color: #fff;
}
.workspace-header .brand small {
  background: #ffffff24;
  color: #fff;
  border-color: #ffffff50;
}
.workspace-header button {
  background: #ffffff;
  color: #1356a3;
  border-color: #fff;
}
.workspace-header button:hover {
  background: #e5f5ff;
}
.chat-toolbar {
  background: #eaf5ff;
  border-color: #bedcf8;
}
.chat-toolbar button {
  background: #fff;
  color: #214f7b;
  border-color: #b9d9f5;
}
.chat-toolbar button:hover {
  background: #d4edff;
}
.chat-toolbar button span:not(:empty) {
  color: #125ed0;
}
.room-banner {
  background: #fff;
  border-color: #d3e8fa;
}
.room-banner strong {
  color: #125bc0;
}
.room-banner #room-topic {
  color: #45678b;
}
.room-banner .connection {
  color: #167744;
}
.conversation-tabs {
  background: #dcefff;
  border-color: #bddbf6;
}
.conversation-tabs button {
  background: #fff;
  color: #245983;
  border-color: #a8cdef;
}
.conversation-tabs .selected {
  background: #166add;
  color: #fff;
  border-color: #166add;
  box-shadow: inset 0 -3px #ff8a08;
}
.conversation-tabs .private-tab {
  color: #6842b3;
}
.conversation-tabs .selected.private-tab {
  color: #fff;
}
.chat-workspace .conversation {
  background: #fff;
}
.conversation-context {
  background: #f1f9ff;
  border-color: #d4e9fa;
  color: #3d6389;
}
.chat-workspace .messages {
  scrollbar-color: #95bfe4 #f0f8ff;
}
.chat-start {
  color: #547492;
}
.text-line .message-text {
  color: #183b60;
}
.text-line.system .message-text {
  color: #56718e;
}
.text-line.action .message-text {
  color: #6840ac;
}
.text-line time,
.message-actions {
  color: #56799c;
}
.message-actions:hover {
  background: #e0f0ff;
}
.text-line .nick {
  color: #155ec3;
}
.participants {
  background: #edf7ff;
  border-color: #bddbf6;
}
.text-person {
  border-color: #cde3f8;
}
.text-person:hover {
  background: #dcefff;
}
.text-person .afk {
  color: #566e8f;
}
.chat-workspace .compose {
  background: #e5f3ff;
  border-color: #bad9f4;
}
.chat-workspace .compose-row {
  background: #fff;
  border: 1px solid #87b8e7;
  border-radius: 12px;
  box-shadow: 0 3px 14px #176ac014;
}
.chat-workspace .compose textarea {
  background: #fff;
  color: #153860;
}
.composer-tools button,
.composer-tools span {
  color: #3d6185;
}
.private-compose .compose-row {
  border-color: #8064c5;
}
.private-compose:before {
  color: #6941af;
}
.small,
.muted,
.meta {
  color: #4d6c8b;
}
.badge {
  background: #dcefff;
  color: #22589b;
  border-color: #b6d6f3;
}
dialog {
  background: #fff;
  color: #183b60;
  border: 1px solid #adcfed;
  box-shadow: 0 25px 90px #123b6c38;
}
dialog::backdrop {
  background: #113f7560;
  backdrop-filter: blur(5px);
}
.modal-head {
  background: #eff8ff;
  border-color: #c8e2f7;
}
.modal-head h2 {
  color: #16477a;
}
#modal-body {
  background: #fff;
}
.card,
.profile-detail,
.photo-card,
.member-card,
.friend-card,
.forum-topic,
.admin-item,
.stat,
.notice,
.system-note {
  background: #f0f8ff;
  color: #20456c;
  border-color: #c0ddf5;
}
.notice {
  border-left: 3px solid #ff8a08;
}
.tabs {
  border-color: #bfdbf4;
}
.tabs button {
  color: #42688d;
}
.tabs .selected {
  color: #125dca;
  border-color: #ff8a08;
}
.form-section {
  color: #1c599f;
}
.command-card,
.room-directory-row,
.thread-choice {
  background: #eef7ff;
  color: #214d78;
  border-color: #bfdcf5;
}
.command-card code {
  color: #155ebd;
}
.command-card p,
.command-card small {
  color: #456889;
}
.command-categories button.selected {
  background: #146add;
  color: #fff;
}
.color-blue {
  color: #165bd0 !important;
}
.color-violet {
  color: #7340c6 !important;
}
.color-cyan {
  color: #007e92 !important;
}
.color-pink {
  color: #b72c80 !important;
}
.color-green {
  color: #19733e !important;
}
.color-gold {
  color: #926000 !important;
}
.profile-page {
  padding: 24px !important;
}
.profile-cover {
  padding: 28px;
  gap: 25px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(120deg, #e1f3ff, #f3faff);
  border-top: 5px solid #ff8a08;
  align-items: center;
}
.profile-cover .avatar {
  width: 110px;
  height: 110px;
  border-radius: 28px;
  background: #146bd8;
  color: #fff;
  border: 5px solid #fff;
  box-shadow: 0 7px 20px #1667bd20;
}
.profile-eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 800;
  color: #286da7;
}
.profile-cover h2 {
  font-size: 34px;
  line-height: 1.2;
  margin: 6px 0 10px;
}
.profile-cover .profile-motto {
  font-size: 16px;
  color: #365d84;
  margin: 0 0 16px;
}
.profile-registration {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  color: #426a91;
}
.profile-registration > span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 750;
}
.profile-registration time {
  font-size: 14px;
  color: #234f7e;
  font-weight: 600;
}
.profile-actions {
  gap: 10px;
  margin: 20px 0;
}
.profile-actions button {
  font-size: 14px;
  min-height: 44px;
}
.profile-actions button:first-child {
  background: #1569dc;
  color: #fff;
  border-color: #1569dc;
}
.profile-page .tabs {
  margin-bottom: 24px;
}
.profile-page .tabs button {
  font-size: 15px;
  padding: 12px 18px;
}
.profile-grid {
  gap: 16px;
}
.profile-detail {
  padding: 20px;
  border-radius: 14px;
  background: #f0f8ff;
}
.profile-detail.full-width {
  background: #fff;
  border-left: 4px solid #ff8a08;
}
.profile-detail h3 {
  color: #2463a0;
  font-size: 11px;
  margin: 0 0 10px;
}
.profile-detail p {
  font-size: 16px;
  line-height: 1.65;
  color: #294e73;
}
.profile-section {
  font-size: 20px;
  margin: 12px 0 0;
  color: #175699;
  letter-spacing: -0.3px;
}
.photo-placeholder {
  background: #dff0ff;
  color: #2c69a0;
}
.photo-info {
  color: #224c77;
}
#toast {
  background: #165aa9;
  color: #fff;
  border-color: #5698df;
}
.suggestions,
.emoji-picker {
  background: #fff;
  color: #234d76;
  border-color: #b5d5f2;
}
.suggestions button {
  color: #234d76;
}
.welcome {
  background:
    radial-gradient(ellipse at top right, #d3edff, transparent 65%), #fff;
}
.entry {
  background: #f1f9ff;
  border-color: #bddcf7;
}
.landing-copy h1,
.landing-copy p,
.landing-header,
.brand {
  color: #174879;
}
@media (max-width: 600px) {
  .profile-page {
    padding: 16px !important;
  }
  .profile-cover {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .profile-cover .avatar {
    width: 84px;
    height: 84px;
    border-radius: 22px;
  }
  .profile-cover h2 {
    font-size: 30px;
  }
  .profile-registration time {
    font-size: 13px;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-actions button {
    flex: 1 1 140px;
  }
  .profile-page .tabs button {
    padding: 10px;
    font-size: 14px;
  }
  .profile-detail {
    padding: 16px;
  }
}

.chat-workspace .text-line.system, .chat-workspace .text-line.announcement { font-style: italic; font-weight: 700; }

/* One continuous transcript: controls must not increase the message height. */
.chat-workspace .text-line {
  margin: 0;
  padding: 0;
  line-height: 1.4;
}
.chat-workspace .text-line .message-actions {
  align-self: flex-start;
  min-height: 0;
  height: 1.4em;
  margin: 0;
  padding: 0 3px;
  font-size: inherit;
  line-height: 1.4;
}
/* Compact room roster, with larger touch targets on touch devices. */
.chat-workspace .participants {
  width: 248px;
  padding: 16px 12px;
  background: #fff;
  border-left: 1px solid #d4e5f6;
}
.chat-workspace .participants header {
  margin-bottom: 4px;
  padding: 0 4px 8px;
  border-bottom: 3px solid #ff870a;
  color: #155ec3;
}
.people-summary { margin: 8px 4px 12px; font-size: 13px; color: #456580; }
.chat-workspace .participants input { padding: 8px 10px; border-radius: 8px; margin-bottom: 10px; }
.chat-workspace .text-person {
  min-height: 32px;
  padding: 4px 8px;
  gap: 6px;
  font-size: 16px;
  line-height: 1.4;
  border: 0;
  border-radius: 6px;
  flex-wrap: nowrap;
}
.text-person .person-nick { font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
.text-person .person-label { margin-left: auto; font-size: 11px; color: #486681; white-space: nowrap; }
.chat-workspace .text-person .afk { font-size: 13px; color: #536e85; }
.chat-workspace .text-person:hover, .chat-workspace .text-person:focus-visible { background: #eaf4ff; }
.chat-workspace .text-person.is-self { background: #f0f7ff; }
.chat-workspace .text-person.is-bot { border-bottom: 1px solid #dce9f5; border-radius: 0; margin-bottom: 6px; padding-bottom: 7px; }
@media (pointer: coarse), (max-width: 720px) {
  .chat-workspace .text-person { min-height: 44px; padding: 9px 8px; }
}
@media (max-width: 1100px) {
  .chat-workspace .participants { width: min(360px, 92vw); }
}
/* Nick opens the profile; actions have their own accessible button. */
.chat-workspace .person-row {display:flex;align-items:center;border-radius:10px;border:1px solid transparent;margin:3px 0;background:#fff;min-width:0;}
.chat-workspace .person-row:hover,.chat-workspace .person-row:focus-within {background:#eff7ff;border-color:#d2e7fa;}
.chat-workspace .person-row .text-person {flex:1;min-width:0;text-align:left;min-height:44px;border-radius:9px;margin:0;padding:9px 8px;background:transparent;}
.chat-workspace .person-more {width:34px;min-height:40px;padding:2px;border:0;background:transparent;color:#4f7291;font-size:22px;flex-shrink:0;}
.chat-workspace .person-more:hover {background:#dfedfc;color:#135da9;}
.chat-workspace .text-person .person-label {max-width:80px;overflow:hidden;text-overflow:ellipsis;}
.chat-workspace .personal-notice {color:#305d85;background:#edf7ff;border-left:3px solid #f18a18;padding:3px 7px!important;}
.chat-workspace .notice-action {padding:0;border:0;background:none;color:#175fbd;font:inherit;text-decoration:underline;min-height:0;}
.chat-workspace .text-line.action {font-style:italic;}
