.win-only {
  display: none;
}

.win-section-tools {
  display: contents;
}

.windows-view {
  --side: clamp(252px, 22vw, 306px);
  --win-title-height: 39px;
  --win-inset: clamp(22px, 2.65vw, 42px);
  --win-dock: 74px;
  --win-rail: #23251f;
  --win-rail-text: #f6f6ec;
  --win-rail-muted: #c1c2b7;
  --win-rail-line: #41433a;
  --win-ui: "Segoe UI", Arial, sans-serif;
  height: 100dvh;
  overflow: hidden;
}

.windows-view [hidden] {
  display: none !important;
}

.windows-view .win-topline {
  height: var(--win-title-height);
  display: flex;
  align-items: center;
  padding-left: 18px;
  user-select: none;
  background: #edefe7;
  border-bottom: 1px solid #d8dbd1;
}

.win-titlebrand, .win-client {
  display: inline-flex;
  align-items: center;
}

.win-titlebrand {
  gap: 7px;
  line-height: 1;
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -1.4px;
  color: #20221d;
}

.win-titlebrand img {
  width: 22px;
  height: 22px;
}

.win-title-dot {
  color: #b6820f;
}

.win-client {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid #cacec2;
  gap: 6px;
  color: #5b6054;
  font: 12px var(--win-ui);
}

.win-client svg {
  width: 13px;
  height: 13px;
}

#win-fullscreen {
  display: grid;
  place-items: center;
  align-self: stretch;
  margin-left: auto;
  width: 50px;
  border: 0;
  background: transparent;
  color: #4c5146;
}

#win-fullscreen:hover {
  background: #dfe2d7;
}

#win-fullscreen svg {
  width: 15px;
  height: 15px;
}

.windows-view .app-shell {
  height: calc(100dvh - var(--win-title-height));
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
}

.windows-view .workspace {
  min-height: 0;
  overflow: hidden;
}

.windows-view .sidebar {
  position: relative;
  top: auto;
  height: 100%;
  min-height: 0;
  border: none;
  background: var(--win-rail);
  color: var(--win-rail-text);
}

.windows-view .sidebar .brand {
  display: none;
}

.windows-view .side-body {
  padding: 27px 17px 14px;
  scrollbar-color: #656859 var(--win-rail);
  scrollbar-width: thin;
}

.windows-view .side-body > .side-group-label {
  display: none;
}

.windows-view .server-card {
  padding: 0 4px;
  margin: 0 0 25px;
  background: transparent;
  border: none;
  border-radius: 0;
  gap: 12px;
}

.windows-view .server-mark {
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: #f8c23e;
  transform: rotate(-3deg);
}

.windows-view .server-mark svg {
  width: 35px;
  height: 35px;
  transform: rotate(3deg);
}

.windows-view .server-mark svg path:first-of-type,
.windows-view .server-mark svg circle {
  fill: #29291d;
}

.windows-view .server-mark svg path:nth-of-type(2) {
  fill: #f8c23e;
}

.windows-view .server-card strong {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -.7px;
  line-height: 1.15;
}

.windows-view .win-search {
  min-height: 37px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 11px;
  border: 1px solid #4c4e43;
  border-radius: 7px;
  background: #30322b;
  color: #cbcdbf;
}

.windows-view .win-search:focus-within {
  border-color: var(--gold);
}

.win-search > svg {
  width: 15px;
  height: 15px;
}

.win-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #fffdf0;
  font: 13px/1.4 var(--win-ui);
  padding: 8px 0;
}

.win-search input::placeholder {
  color: #c6c8bc;
  opacity: 1;
}

.win-search kbd {
  white-space: nowrap;
  color: #caccbe;
  border: 1px solid #515447;
  border-radius: 4px;
  padding: 1px 4px;
  font: 10px/1.4 var(--win-ui);
}

.win-search:has(input:not(:placeholder-shown)) kbd {
  display: none;
}

#win-clear-search {
  display: grid;
  place-items: center;
  width: 24px;
  height: 26px;
  border: 0;
  border-radius: 4px;
  color: #e3e5d7;
  background: transparent;
}

#win-clear-search:hover {
  background: #45483d;
}

#win-clear-search svg {
  width: 13px;
  height: 13px;
}

.windows-view .channels-heading {
  margin: 18px 3px 9px 6px;
}

.windows-view .channels-heading .side-group-label {
  color: #bfc3b4;
  font: 650 10px/1.5 var(--win-ui);
  letter-spacing: 1.5px;
}

.windows-view #sidebar .icon-btn {
  color: #d0d2c5;
}

.windows-view #sidebar .icon-btn:hover {
  background: #44473b;
}

.windows-view #room-list {
  gap: 4px;
}

.windows-view #room-list .room-button {
  gap: 10px;
  min-height: 39px;
  padding: 7px 10px;
  color: #d7d9cc;
  border: 0;
  border-radius: 7px;
}

.windows-view #room-list .room-button:hover,
.windows-view #room-list .is-expanded > .room-button {
  background: #383b31;
  color: #f7f8eb;
}

.windows-view #room-list .room-button.active {
  background: var(--gold);
  color: #252416;
}

.windows-view #room-list .room-number {
  color: #d8dacb;
  background: #3c4034;
  font-family: var(--win-ui);
}

.windows-view #room-list .room-button.active .room-number {
  color: #3c2e0d;
  background: #e9ac25;
}

.windows-view #room-list .room-panel {
  margin: 5px 3px 5px 19px;
  padding: 0 3px 4px 11px;
  border-left: 1px solid #505244;
}

.windows-view #room-list .roster-list {
  gap: 1px;
}

.windows-view #room-list .roster-member {
  min-height: 31px;
  color: #f0f0e7;
  gap: 8px;
}

.windows-view #room-list .roster-avatar {
  border: 0;
  background: transparent;
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

.windows-view #room-list .roster-name {
  font-size: 12.5px;
}

.windows-view #room-list .roster-state {
  width: auto;
  max-width: 54%;
  gap: 4px;
  color: #c1c4b5;
}

.windows-view #room-list .roster-state-text {
  position: static;
  width: auto;
  height: auto;
  clip-path: none;
  text-overflow: ellipsis;
  font: 10.5px/1.2 var(--win-ui);
}

.windows-view #room-list .speaking .roster-state {
  color: #f4c64b;
}

.windows-view #room-list .room-join {
  width: auto;
  min-width: 89px;
  min-height: 27px;
  margin: 5px 0 1px;
  padding: 4px 9px;
  border: 1px solid #61624f;
  background: transparent;
  color: #eee9cf;
  font-size: 11px;
  font-weight: 600;
}

.windows-view #room-list .room-join:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.windows-view #win-search-empty:not([hidden]),
.windows-view #room-list .roster-empty {
  display: block;
  margin: 8px 5px;
  color: #dadccc;
  font: 12px/1.5 var(--win-ui);
}

.windows-view .profile-name > span {
  color: #b7baaa;
}

.windows-view .profile {
  min-height: var(--win-dock);
  padding: 12px 18px;
  border-color: var(--win-rail-line);
  background: #20221c;
}

.windows-view .profile-avatar img {
  width: 36px;
  height: 36px;
}

.windows-view .topbar {
  height: 54px;
  padding: 0 var(--win-inset);
  background: #fff;
}

.windows-view .topbar .crumbs {
  font-family: var(--win-ui);
  font-size: 13px;
  gap: 12px;
}

.windows-view .topbar .crumb-icon {
  color: #606351;
}

.windows-view .invite {
  padding: 8px 12px;
  border-radius: 7px;
}

.windows-view #sidebar button:focus-visible {
  outline: 2px solid #ffd569;
  outline-offset: 1px;
}

@media (max-width: 820px) {
  .windows-view .sidebar {
    position: fixed;
    top: var(--win-title-height);
    bottom: 0;
    z-index: 11;
    width: min(295px, 86vw);
    height: auto;
  }
  .windows-view .workspace {
    height: 100%;
  }
  .windows-view .scrim:not([hidden]) {
    top: var(--win-title-height);
  }
  .windows-view .crumb-current {
    display: inline;
  }
  .windows-view .mobile-brand {
    display: none;
  }
}

@media (max-height: 730px) {
  .windows-view .side-body {
    padding-top: 19px;
  }
  .windows-view .server-card {
    margin-bottom: 16px;
  }
  .windows-view .channels-heading {
    margin-top: 12px;
  }
}
