:root {
  color-scheme: dark;
  --bg: #050909;
  --chrome: #141717;
  --panel: rgba(4, 10, 10, .88);
  --panel-solid: #070d0d;
  --line: #32324c;
  --cyan: #008e91;
  --cyan-bright: #00b8ba;
  --green: #19871f;
  --text: #c8d0d4;
  --muted: #879198;
  --red: #ff6666;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #111;
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}

.modalOverlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .72);
}

.modalOverlay[hidden] {
  display: none;
}

.loginScreen {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .10), rgba(0, 0, 0, .52)),
    url("/assets/login-splash.png");
  background-size: cover;
  background-position: center;
}

.loginTitlebar {
  border-bottom: 2px solid var(--line);
}

.loginBox,
.registerBox {
  width: 270px;
  padding: 12px 14px;
  border: 2px solid var(--cyan);
  background: #070d0d;
  box-shadow: 0 0 32px rgba(0, 142, 145, .25);
}

.loginBox {
  position: absolute;
  left: 63%;
  top: 50%;
  transform: translate(-50%, -44%);
}

.registerBox {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.loginMark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  border: 1px solid #a68c2d;
  color: #ffd454;
  font-size: 18px;
  font-weight: 800;
}

.loginBox h1,
.registerBox h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
}

.loginBox p,
.registerBox p {
  margin: 2px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.loginBox label,
.registerBox label {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: #c8d0d4;
  font-size: 12px;
}

.loginBox input,
.loginBox select,
.registerBox input,
.registerBox select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 30px;
  margin-top: 0;
  padding: 0 8px;
  font-size: 13px;
}

.loginBox button,
.registerBox button {
  width: 100%;
  height: 32px;
  margin-top: 2px;
  border: 2px solid var(--cyan);
  background: #102728;
  color: #fff;
  font-size: 13px;
}

.loginActions,
.modalActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.modalActions.single {
  grid-template-columns: 1fr;
}

.loginBox button.secondary,
.registerBox button.secondary {
  border-color: #46466e;
  background: #080b12;
}

.registerBox details {
  margin: 6px 0 12px;
  border-top: 1px solid #1b3839;
  border-bottom: 1px solid #1b3839;
  padding: 10px 0 0;
}

.roomBox {
  width: min(520px, calc(100vw - 32px));
}

.profileBox {
  width: min(500px, calc(100vw - 32px));
}

.profileSettingsPreview {
  display: grid;
  grid-template-columns: 28px 42px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin: 8px 0 12px;
  padding: 8px;
  border: 1px solid #1b3839;
  background: #050909;
}

.profileSettingsPreview .rankIcon,
.profileSettingsPreview .avatar {
  position: static;
}

.profileSettingsPreview .avatar {
  width: 40px;
  height: 40px;
}

.profileSettingsPreview strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dcOptionGroup {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border: 1px solid #1b3839;
}

.dcOptionGroup legend {
  padding: 0 6px;
  color: #dce8eb;
}

.aboutGrid {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid #1b3839;
  background: #050909;
}

.aboutGrid span {
  color: #8f9ca0;
}

.aboutGrid strong {
  min-width: 0;
  overflow: hidden;
  color: #e7edf0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profileDisplayBox {
  width: min(540px, calc(100vw - 32px));
}

.mailDisplayBox {
  width: min(560px, calc(100vw - 32px));
}

.composeMailBox {
  width: min(560px, calc(100vw - 32px));
}

.composeMailBox textarea {
  min-height: 160px;
}

.profileDisplayGrid {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 7px 12px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #1b3839;
  background: #050909;
  color: #d9e4e8;
  font-size: 12px;
}

.profileDisplayGrid span {
  color: #8f9ca0;
}

.profileDisplayGrid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 500;
}

.registerBox textarea {
  width: 100%;
  min-height: 92px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #4b4b75;
  background: #020606;
  color: #dce8eb;
  resize: vertical;
}

.registerBox .profileBio {
  align-items: start;
}

.roomFormGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkLine {
  justify-content: flex-start;
  margin: 4px 0 8px;
}

.registerBox summary {
  cursor: default;
  color: #dce8eb;
  font-size: 15px;
  margin-bottom: 10px;
}

.loginStatus {
  display: block;
  min-height: 14px;
  margin-top: 6px;
  color: #66dfff;
  font-size: 11px;
}

.loginStatus.bad {
  color: var(--red);
}

.loginHint {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

.window {
  display: grid;
  grid-template-rows: 42px 40px minmax(0, 1fr) 37px;
  height: 100vh;
  min-width: 980px;
  overflow: hidden;
  border: 1px solid #2a2f2f;
  background:
    linear-gradient(rgba(4, 10, 10, .80), rgba(4, 10, 10, .96)),
    url("/assets/main-backdrop.png");
  background-size: cover;
  background-position: center;
}

.titlebar {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  background: #1b201d;
  color: #f1f1f1;
}

.brandMark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  border: 1px solid #a68c2d;
  color: #ffd454;
  font-weight: 800;
}

.titleText {
  flex: 1;
  font-size: 18px;
}

.windowButtons {
  display: flex;
  gap: 26px;
}

.windowButtons span {
  width: 13px;
  height: 13px;
  border: 1px solid #d7d7d7;
}

.menubar {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  background: #111;
  border-bottom: 2px solid var(--line);
}

.menuRoot {
  position: relative;
  height: 40px;
}

.menubar > .menuRoot > button {
  border: 0;
  background: transparent;
  color: #f2f2f2;
  min-width: 96px;
  height: 40px;
  padding: 0 10px;
  font-size: 17px;
  text-align: left;
}

.menubar > .menuRoot > button:hover,
.menubar > .menuRoot > button.active {
  background: #2c2c2c;
  color: #fff;
}

.topMenu {
  position: absolute;
  left: -4px;
  top: 40px;
  z-index: 50;
  width: 276px;
  padding: 10px 14px;
  border: 1px solid #4b4b4b;
  border-top-color: #24244a;
  border-radius: 0 0 7px 7px;
  background: #2c2c2c;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .56);
}

.topMenu button {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #e7edf0;
  text-align: left;
  font-size: 18px;
}

.topMenu button:hover {
  background: #3a3a3a;
  color: #fff;
}

.menuSeparator {
  height: 1px;
  margin: 8px 0 6px;
  background: #9a9a9a;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 144px;
  grid-template-rows: minmax(220px, var(--rooms-height, 42vh)) 72px 7px minmax(0, 1fr);
  min-height: 0;
  position: relative;
}

.roomsPane {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: var(--panel);
}

.roomsTable {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

th {
  height: 36px;
  border-right: 3px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: #090909;
  color: #aeb8bc;
  font-weight: 400;
  font-size: 16px;
}

td {
  height: 32px;
  padding: 0 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #aeb8bc;
  font-size: 16px;
}

.roomCol {
  width: 240px;
}

.roomRow {
  cursor: default;
}

.roomRow:hover,
.roomRow.selected {
  background: rgba(0, 120, 125, .16);
}

.roomRow.selected td,
.roomRow:first-child td {
  color: var(--green);
}

.roomName {
  color: var(--green);
}

.roomIcon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  object-fit: contain;
  vertical-align: -4px;
}

.hscroll {
  display: none;
}

.filters {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: rgba(20, 20, 31, .86);
}

.roomSessionPane {
  grid-column: 1;
  grid-row: 1 / 3;
  display: grid;
  grid-template-rows: 68px minmax(150px, 1fr) 90px;
  gap: 0;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: rgba(0, 0, 0, .34);
}

.roomSessionTitle {
  align-self: center;
  justify-self: center;
  max-width: calc(100% - 48px);
  margin: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roomSessionPanels {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 14px;
  min-height: 0;
  padding: 10px 16px 18px;
}

.roomSessionPanel {
  display: grid;
  align-content: start;
  min-height: 160px;
  padding: 12px;
  border: 2px solid #45476d;
  background: rgba(0, 0, 0, .34);
}

.roomSessionPanel strong {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 16px;
}

.roomSessionPanel span {
  min-width: 0;
  overflow: hidden;
  color: #aeb8bc;
  font-size: 16px;
  line-height: 1.36;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roomSessionActions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 20px 36px;
  border: 2px solid #45476d;
  border-left-width: 0;
  border-right-width: 0;
  background: rgba(13, 13, 13, .70);
}

.roomSessionActions button {
  min-width: 112px;
  min-height: 46px;
  border: 1px solid var(--cyan);
  border-radius: 0;
  background: #101010;
  color: #f2f6f7;
  font-size: 16px;
}

.roomSessionActions button:hover {
  background: rgba(0, 153, 153, .22);
}

.roomSessionActions label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #ffffff;
  font-size: 18px;
}

.roomSessionActions input[type="checkbox"] {
  width: 30px;
  height: 30px;
  margin: 0;
}

.modulePane {
  grid-column: 1;
  grid-row: 1 / 3;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: rgba(3, 9, 9, .90);
}

.dcTabChrome {
  padding: 10px 8px;
  background: rgba(13, 13, 13, .70);
}

.dcTabTopbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 34px;
  margin-bottom: 8px;
}

.dcTabTopbar strong {
  color: #dfe8ea;
  font-size: 14px;
  font-weight: 600;
}

.dcTabTopbar div {
  display: flex;
  gap: 8px;
}

.dcTabTopbar button,
.compactToolbar button,
.clanActions button {
  min-width: 88px;
  min-height: 30px;
  border: 1px solid var(--cyan);
  border-radius: 4px;
  background: #101010;
  color: #f2f6f7;
  font-size: 12px;
}

.dcTabTopbar button:disabled {
  border-color: #33334c;
  color: #777;
}

.compactToolbar {
  min-height: 42px;
  padding: 0 0 8px;
  border-bottom: 0;
}

.compactToolbar input {
  height: 32px;
  min-width: 180px;
  border-width: 1px;
  font-size: 12px;
}

.dcGrid {
  display: grid;
  align-content: start;
  min-width: 720px;
  border: 1px solid var(--line);
  background: rgba(13, 13, 13, .70);
  color: var(--muted);
  font-size: 11px;
}

.dcColumns,
.dcRow {
  display: grid;
  align-items: center;
}

.buddiesGrid .dcColumns,
.buddiesGrid .dcRow {
  grid-template-columns: 80px minmax(180px, 1fr) 160px minmax(160px, 1fr);
}

.transfersGrid .dcColumns,
.transfersGrid .dcRow {
  grid-template-columns: 44px minmax(220px, 1fr) minmax(220px, 1fr) 180px;
}

.messagesGrid .dcColumns,
.messagesGrid .dcRow {
  grid-template-columns: 44px minmax(240px, .8fr) 160px minmax(180px, 1fr);
}

.dcColumns {
  min-height: 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 13, 13, .70);
  color: #9aa6aa;
  font-weight: 600;
}

.dcColumns span,
.dcRow span,
.dcRow progress {
  min-width: 0;
  padding: 4px 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dcColumns span {
  border-right: 1px solid var(--line);
}

.dcRow {
  min-height: 30px;
  border: 0;
  border-bottom: 1px solid rgba(36, 36, 74, .65);
  background: transparent;
  color: #cdd6d9;
  text-align: left;
  font-size: 11px;
}

button.dcRow {
  width: 100%;
  cursor: default;
}

.dcRow:hover {
  background: rgba(0, 120, 125, .22);
}

.dcRow.selected {
  background: rgba(0, 128, 128, .28);
  color: #ffffff;
}

.dcRow img,
.withIcon img {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  object-fit: contain;
  vertical-align: -4px;
}

.dcRow progress {
  width: calc(100% - 12px);
  height: 14px;
  accent-color: var(--cyan);
}

.dcRow a {
  color: #d8edf0;
  text-decoration: none;
}

.dcRow a:hover {
  color: #fff;
  text-decoration: underline;
}

.fileCommand {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 88px;
  min-height: 30px;
  border: 1px solid var(--cyan);
  border-radius: 4px;
  background: #101010;
  color: #f2f6f7;
  font-size: 12px;
  overflow: hidden;
}

.fileInput {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: default;
}

.transferStatus {
  color: #9fb0b5;
  font-size: 12px;
}

.clanTab {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(340px, 1fr);
  align-content: start;
  gap: 12px;
}

.clanPanel,
.voiceTab,
.whiteboardNotice {
  border: 1px solid var(--cyan);
  border-radius: 0;
  background: rgba(8, 9, 9, .9);
  padding: 12px;
  color: #cdd6d9;
}

.clanSummary,
.clanPanel {
  display: grid;
  align-content: start;
  gap: 10px;
}

.clanPanel strong,
.voiceTab strong {
  color: #dfe8ea;
  font-size: 15px;
}

.clanHero {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
}

.clanHero span {
  grid-row: span 2;
  min-width: 54px;
  padding: 7px 8px;
  border: 1px solid #5a5890;
  background: #0f0f0f;
  color: #00a51a;
  text-align: center;
  font-weight: 700;
}

.clanHero small,
.clanPanelHeader span,
.clanCopy span,
.emptyLine {
  color: #93a2a6;
  font-size: 12px;
}

.clanCopy {
  display: grid;
  gap: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(36, 36, 74, .75);
}

.clanCopy p,
.voiceTab p,
.whiteboardNotice p {
  margin: 0 0 6px;
  color: #c9d3d6;
  font-size: 12px;
}

.clanNotice {
  border: 1px solid rgba(0, 128, 128, .7);
  padding: 7px 8px;
  color: #dfe8ea;
  font-size: 12px;
}

.clanNotice.warning {
  border-color: rgba(180, 0, 0, .8);
  color: #ff9c9c;
}

.clanActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clanEditGrid {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 8px;
}

.clanEditGrid label {
  display: grid;
  gap: 4px;
  color: #aebac0;
  font-size: 12px;
}

.clanEditGrid .wide {
  grid-column: 1 / -1;
}

.clanEditGrid input,
.clanEditGrid textarea {
  width: 100%;
  min-width: 0;
  border-width: 1px;
  font-size: 12px;
}

.clanEditGrid textarea {
  min-height: 66px;
  resize: none;
}

.clanPanelHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.clanMemberGrid {
  min-height: 120px;
  border-top: 1px solid rgba(36, 36, 74, .75);
}

.clanMemberRow {
  display: grid;
  grid-template-columns: 18px minmax(140px, 1fr) 110px 80px;
  align-items: center;
  width: 100%;
  min-height: 34px;
  border: 0;
  border-bottom: 1px solid rgba(36, 36, 74, .65);
  background: transparent;
  color: #d8e0e3;
  text-align: left;
  font-size: 12px;
}

.clanMemberRow:hover {
  background: rgba(0, 120, 125, .22);
}

.presenceMini {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22b52c;
}

.presenceMini.offline {
  background: #4d4d5f;
}

.clanForum {
  grid-column: 1 / -1;
}

.clanForumPost {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 2px 10px;
  border-top: 1px solid rgba(36, 36, 74, .75);
  padding: 8px 0;
}

.clanForumPost time {
  color: #93a2a6;
  font-size: 12px;
}

.clanForumPost p {
  grid-column: 1 / -1;
  margin: 0;
  color: #8bf0ff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  white-space: pre-wrap;
}

.voiceTab {
  margin-bottom: 12px;
}

.moduleHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 2px solid var(--line);
  background: #090909;
}

.moduleHeader strong {
  color: #fff;
  font-size: 18px;
}

.moduleHeader span {
  color: #8fb8bc;
  font-size: 14px;
}

.moduleToolbar,
.messageComposer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #18383a;
}

.moduleToolbar input,
.messageComposer input {
  min-width: 180px;
  padding: 0 12px;
}

.moduleToolbar input:first-child,
.messageComposer input:nth-child(2) {
  flex: 1;
}

.moduleToolbar button,
.messageComposer button {
  height: 40px;
  min-width: 92px;
  border: 2px solid var(--cyan);
  background: #071212;
  color: #fff;
}

.moduleRows {
  display: grid;
  align-content: start;
}

.moduleRows.compact {
  border-left: 1px solid var(--cyan);
}

.moduleRow {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr minmax(120px, 180px);
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid #132e30;
  background: transparent;
  color: #c8d0d4;
  text-align: left;
  font-size: 15px;
}

.moduleRow:hover {
  background: rgba(0, 120, 125, .16);
}

.moduleRow strong {
  color: #fff;
}

.moduleRow span {
  color: #66dfff;
}

.moduleRow small {
  color: #879198;
  text-align: right;
}

.moduleSplit {
  display: grid;
  grid-template-columns: 330px 1fr;
  min-height: calc(42vh + 72px - 44px);
}

.moduleSplit > div:first-child {
  padding: 18px;
}

.moduleSplit h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.moduleSplit p {
  margin: 0 0 12px;
  color: #c8d0d4;
}

.transferRow {
  grid-template-columns: minmax(180px, 280px) minmax(180px, 1fr) 180px;
}

.transferRow progress {
  width: 100%;
  accent-color: var(--cyan);
}

.whiteboardPad {
  display: block;
  width: 100%;
  height: calc(100% - 104px);
  min-height: 260px;
  margin: 12px 0;
  padding: 14px;
  border: 2px solid #184d50;
  background: #030909;
  color: #dce8eb;
  font: 16px Consolas, "Cascadia Mono", monospace;
  resize: none;
}

.voiceGrid,
.settingsGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  padding: 14px;
}

.voiceChannel {
  min-height: 86px;
  border: 2px solid #184d50;
  background: #050909;
  color: #c8d0d4;
}

.voiceChannel strong,
.voiceChannel span {
  display: block;
}

.voiceChannel strong {
  color: #fff;
  font-size: 17px;
}

.voiceChannel span {
  margin-top: 8px;
  color: #66dfff;
}

.settingsGrid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  align-content: start;
}

input,
select,
.command {
  height: 47px;
  border: 2px solid #46466e;
  border-radius: 5px;
  background: #050909;
  color: #fff;
  font-size: 16px;
}

input[type="search"] {
  width: 150px;
  padding: 0 14px;
}

select {
  min-width: 128px;
  padding: 0 14px;
}

.command {
  padding: 0 16px;
}

label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 16px;
  white-space: nowrap;
}

input[type="checkbox"] {
  appearance: none;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 5px;
  background: #008887;
}

input[type="checkbox"]:checked::after {
  content: "✓";
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.filterLabel {
  color: #aaa;
}

.profilePane {
  grid-column: 1;
  grid-row: 4;
  display: block;
  min-width: 0;
  min-height: 0;
  border-right: 2px solid var(--line);
}

.profilePane::before {
  content: none;
}

.profileHeader {
  position: relative;
  width: 360px;
  height: 88px;
  border-right: 2px solid var(--cyan);
  border-bottom: 1px solid rgba(0, 194, 201, .55);
  background: rgba(10, 13, 13, .9);
}

.profileBadge,
.profileText,
.presenceDot {
  position: absolute;
}

.profileBadge {
  left: 64px;
  top: 10px;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #243329;
  border: 2px solid #aa4d28;
  object-fit: cover;
}

.rankIcon {
  position: absolute;
  left: -32px;
  top: 9px;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.profileText {
  left: 126px;
  right: 12px;
  top: 12px;
}

.profileText strong,
.profileText > span {
  display: block;
}

.profileText strong {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  white-space: nowrap;
}

.profileInlineStatus {
  min-width: 0;
  overflow: hidden;
  color: #8fb8bc;
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
}

.flagIcon {
  margin-left: 8px;
  width: 16px;
  height: 12px;
  object-fit: contain;
  vertical-align: -1px;
}

.profileText > span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  margin-top: 14px;
  color: #c5c5c5;
  font-size: 14px;
  white-space: nowrap;
}

.profileLogout {
  margin-top: 14px;
  border: 1px solid #46466e;
  background: #050909;
  color: #c8d0d4;
  padding: 5px 10px;
  font-size: 12px;
}

.presenceDot {
  width: 11px;
  height: 11px;
  left: 102px;
  top: 42px;
  border-radius: 50%;
  background: #22b52c;
}

.roomRoster {
  width: var(--roster-width, 360px);
  max-width: calc(100% - 260px);
  height: 100%;
  border-right: 2px solid var(--cyan);
  background: rgba(10, 13, 13, .9);
  display: grid;
  grid-template-rows: 1fr;
  min-height: 0;
}

.roomRosterList {
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
}

.roomUser {
  box-sizing: border-box;
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 28px 50px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 8px 10px 7px 16px;
  border: 0;
  border-bottom: 1px solid rgba(70, 70, 110, .35);
  background: transparent;
  color: #d5e2e5;
  text-align: left;
}

.roomUser:hover {
  background: rgba(0, 120, 125, .18);
}

.roomUserRank {
  min-width: 0;
  width: 24px;
  height: 24px;
  margin-top: 8px;
  object-fit: contain;
}

.roomUserAvatarWrap {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
}

.roomUserAvatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #a04a29;
  object-fit: cover;
}

.roomUserPresence {
  position: absolute;
  right: -1px;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid #050909;
  background: #22b52c;
}

.roomUserPresence.busy {
  background: #d23232;
}

.roomUserPresence.playing {
  background: #888;
}

.roomUserPresence.afk {
  background: #b8b8b8;
}

.roomUserText {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.roomUserNameLine {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 16px;
  white-space: nowrap;
}

.roomUserName {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roomUserInlineStatus {
  display: inline-block;
  max-width: 120px;
  margin-left: 8px;
  overflow: hidden;
  color: #8fb8bc;
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  vertical-align: -2px;
}

.roomUserText small {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #aeb8bc;
  font-size: 13px;
}

.roomUserClients {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  margin-left: 1px;
}

.roomUserClients i {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.roomUserClients i.desktop {
  width: 12px;
  height: 12px;
}

.roomUserClients i.desktop::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0;
  width: 10px;
  height: 7px;
  border: 1px solid #12121c;
  border-radius: 1px;
  background: #6b7a90;
}

.roomUserClients i.desktop::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 0;
  width: 4px;
  height: 2px;
  border-radius: 2px;
  background: #3d4555;
}

.roomUserClients i.mobile {
  width: 11px;
  height: 14px;
  border: 1px solid #12121c;
  border-radius: 2px;
  background: #8b95a8;
}

.roomUserClients i.mobile::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 2px;
  width: 4px;
  height: 2px;
  border-radius: 1px;
  background: #12121c;
}

.emptyRoster {
  padding: 10px;
  color: #8fa1a6;
  font-size: 12px;
}

.chatPane {
  grid-column: 1;
  grid-row: 4;
  display: grid;
  grid-template-rows: 62px 1fr 54px;
  margin-left: var(--roster-width, 360px);
  min-width: 0;
  min-height: 0;
  background: rgba(3, 9, 9, .86);
}

.paneSplitter {
  z-index: 20;
  background: transparent;
}

.paneSplitter:hover,
.paneSplitter.dragging {
  background: rgba(0, 184, 186, .35);
}

.horizontalSplitter {
  grid-column: 1;
  grid-row: 3;
  cursor: row-resize;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: #343454;
}

.rosterSplitter {
  grid-column: 1;
  grid-row: 4;
  justify-self: start;
  width: 7px;
  height: 100%;
  margin-left: calc(var(--roster-width, 360px) - 4px);
  cursor: col-resize;
}

.chatTools {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 18px;
  border-bottom: 2px solid var(--cyan);
}

.chatTools button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 5px;
  background: #3d4240;
  font-size: 26px;
}

.toolIcon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 380px;
}

.swatches .swatch {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0;
}

.swatches .swatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px #050909, 0 0 0 3px var(--cyan);
}

.swatches .c0 { background: #d8d8d8; }
.swatches .c1 { background: #1111b8; } .swatches .c2 { background: #00a51a; } .swatches .c3 { background: #f01414; }
.swatches .c4 { background: #770000; } .swatches .c5 { background: #b400b4; } .swatches .c6 { background: #ff8b00; }
.swatches .c7 { background: #ffff00; } .swatches .c8 { background: #00ff00; } .swatches .c9 { background: #009999; }
.swatches .c10 { background: #00f0f0; } .swatches .c11 { background: #008eff; } .swatches .c12 { background: #ff00ff; }

.chatLog {
  overflow: auto;
  padding: 10px 18px;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 17px;
}

.logLine {
  margin: 0 0 3px;
  padding: 2px 5px;
  color: #66dfff;
  line-height: 1.28;
}

.logLine span {
  color: #b7b7b7;
}

.logLine.warn {
  color: var(--red);
}

.logLine.system {
  color: #66dfff;
}

.logLine.chat {
  color: #ffffff;
}

.logLine.info {
  color: #66dfff;
}

.logLine.action {
  color: #d8d8d8;
  font-style: italic;
}

.logLine.whisper {
  color: #e6bcff;
}

.logLine.color-blue { color: #60a5ff; }
.logLine.color-green { color: #35d34b; }
.logLine.color-red { color: #ff6666; }
.logLine.color-maroon { color: #d85a5a; }
.logLine.color-purple { color: #d479ff; }
.logLine.color-orange { color: #ff9d2e; }
.logLine.color-yellow { color: #fff15a; }
.logLine.color-lime { color: #55ff55; }
.logLine.color-teal { color: #21c7c7; }
.logLine.color-cyan { color: #46f4ff; }
.logLine.color-sky { color: #48b7ff; }
.logLine.color-magenta { color: #ff57ff; }

.logLine.bg-broadcast {
  background: rgba(56, 50, 22, .78);
}

.logLine.bg-client-broadcast {
  background: rgba(0, 84, 84, .80);
  color: #f5f5f5;
}

.logLine.bg-shutdown-0 { background: rgba(26, 92, 46, .80); }
.logLine.bg-shutdown-1 { background: rgba(39, 85, 46, .80); }
.logLine.bg-shutdown-2 { background: rgba(51, 78, 45, .80); }
.logLine.bg-shutdown-3 { background: rgba(64, 71, 45, .80); }
.logLine.bg-shutdown-4 { background: rgba(76, 64, 44, .80); }
.logLine.bg-shutdown-5 { background: rgba(89, 57, 44, .80); }
.logLine.bg-shutdown-6 { background: rgba(101, 50, 43, .80); }
.logLine.bg-shutdown-7 { background: rgba(114, 43, 43, .80); }
.logLine.bg-shutdown-8 { background: rgba(126, 36, 42, .80); }
.logLine.bg-shutdown-9 { background: rgba(139, 26, 42, .80); }

.logLine[class*="bg-shutdown-"] {
  color: #f5f5f5;
}

.logLine.system,
.logLine.warn,
.logLine.info,
.logLine.whisper {
  font-style: normal;
}

.composer {
  display: grid;
  grid-template-columns: 1fr 66px;
  gap: 12px;
  padding: 6px 8px 6px 18px;
}

.composer input {
  width: 100%;
  border-color: var(--cyan);
  padding: 0 14px;
}

.composer button {
  border: 2px solid #444467;
  background: #1f2433;
  color: #18bfff;
}

.rail {
  grid-column: 2;
  grid-row: 1 / 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 6px 8px 10px;
  background: #050505;
}

.rail button {
  flex: 1 1 0;
  min-height: 74px;
  border: 2px solid var(--cyan);
  background: #040404;
  color: #bcc8d0;
  font-size: 16px;
}

.rail button.active {
  color: var(--cyan-bright);
  background: #123534;
  box-shadow: inset 0 0 24px rgba(0, 184, 186, .35);
}

.rail img {
  display: block;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  opacity: .78;
}

.rail button.active img {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(0, 184, 186, .75));
}

.statusbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.35fr) auto auto;
  align-items: center;
  gap: 14px;
  height: 37px;
  padding: 0 20px;
  background: #111;
  border-top: 1px solid #282828;
  color: #b8c4c8;
}

.typingStatus,
.serverSummary {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.typingStatus {
  text-align: left;
}

.serverSummary {
  text-align: center;
  color: #8fb8bc;
  font-size: 12px;
}

.chatLimit {
  color: #b8c4c8;
  font-size: 12px;
  white-space: nowrap;
}

.available {
  border: 0;
  background: transparent;
  color: #43ff43;
  white-space: nowrap;
  font: inherit;
}

.available i {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 14px;
  border-radius: 50%;
  background: #23be2f;
}

.myStatus.busy {
  color: #ff6868;
}

.myStatus.busy i {
  background: #d23232;
}

.myStatus.away {
  color: #b8b8c8;
}

.myStatus.away i {
  background: #888898;
}

.moduleToolbar.compactToolbar,
.messageComposer.compactToolbar {
  gap: 8px;
  min-height: 40px;
  padding: 0 0 8px;
  border-bottom: 0;
}

.moduleToolbar.compactToolbar input,
.messageComposer.compactToolbar input {
  height: 32px;
  min-width: 0;
  border-width: 1px;
  font-size: 12px;
}

.moduleToolbar.compactToolbar button,
.messageComposer.compactToolbar button {
  height: 32px;
  min-width: 88px;
  border-width: 1px;
  font-size: 12px;
}

.clanSectionLabel {
  color: #aeb8bc;
  font-size: 12px;
  font-weight: 600;
}

.empty {
  height: 80px;
  text-align: center;
  color: var(--muted);
}

.bad {
  color: var(--red);
}

.contextMenu {
  position: fixed;
  z-index: 30;
  width: 180px;
  border: 1px solid var(--cyan);
  background: #050909;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .5);
}

.contextMenu button {
  display: block;
  width: 100%;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid #1b3839;
  background: transparent;
  color: #d7e3e6;
  text-align: left;
  font-size: 14px;
}

.contextMenu button:hover {
  background: #123534;
  color: #fff;
}

.statusMenu {
  right: 18px;
  bottom: 32px;
  width: 220px;
}

.statusMenu .statusAvailable {
  color: #3cb032;
}

.statusMenu .statusBusy {
  color: #d23232;
}

.statusMenu .statusAway {
  color: #aaaabc;
}
