@font-face {
  font-family: Bricolage;
  src: url("assets/bricolage-grotesque.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #1b1c19;
  --paper: #f8f8f5;
  --white: #fff;
  --gold: #f6bd32;
  --pale: #fff9e9;
  --line: #e2e2da;
  --muted: #61635c;
  --side: 246px;
  --edge: clamp(24px,3.6vw,62px);
  font-family: Bricolage,"Segoe UI",Arial,sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 280px;
}

button,input {
  font: inherit;
}

button {
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  opacity: .48;
  cursor: default;
}

button:focus-visible,input:focus-visible {
  outline: 3px solid #ac7500;
  outline-offset: 3px;
}

button {
  touch-action: manipulation;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.symbol-bank {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: var(--side) minmax(0,1fr);
}

.sidebar {
  background: #fff;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  z-index: 5;
}

.brand {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 25px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  user-select: none;
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand>span {
  font-size: 43px;
  font-weight: 800;
  line-height: .85;
  letter-spacing: -2.4px;
  transform: translateY(-2px);
  font-variation-settings: "opsz" 40;
}

.brand-dot {
  color: #c99114;
}

.side-body {
  padding: 30px 16px 12px;
  min-height: 0;
  overflow: auto;
  flex: 1;
}

.side-group-label {
  font-size: 10.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 1.45px;
  color: #676961;
}

.side-body>.side-group-label {
  margin: 0 9px 12px;
}

.server-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfbf8;
}

.server-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #23241f;
  flex: none;
}

.server-mark svg {
  width: 34px;
  height: 34px;
  stroke: none;
}

.server-card strong,.profile-name strong {
  display: block;
  line-height: 1.3;
}

.server-card strong {
  font-size: 16px;
  letter-spacing: -.35px;
  font-weight: 750;
}

.profile-name>span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.channels-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 27px 3px 9px 9px;
}

.icon-btn,.modal-close {
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  border-radius: 8px;
  width: 34px;
  height: 34px;
}

.icon-btn:hover,.modal-close:hover {
  background: #efefe9;
}

.channels-heading .icon-btn {
  width: 27px;
  height: 27px;
  color: #676961;
}

.channels-heading .icon-btn svg {
  width: 17px;
  height: 17px;
}

#room-list {
  display: grid;
  gap: 5px;
}

.room-button {
  min-width: 0;
  width: 100%;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  border-radius: 9px;
  text-align: left;
  color: #5c5e57;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.2;
}

.room-button svg {
  width: 18px;
  height: 18px;
}

.room-name,.profile-name strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-name {
  flex: 1;
  min-width: 0;
}

.room-button:hover {
  background: #f1f1ea;
}

.room-button.active {
  background: var(--gold);
  color: #242318;
  font-weight: 750;
}

.room-number {
  min-width: 23px;
  text-align: center;
  padding: 2px 5px;
  background: #f1f1ec;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  color: #64675d;
}

.active .room-number {
  background: #e5aa22;
  color: #372b0c;
}

.side-foot {
  margin-top: auto;
  flex: none;
}

.profile-name {
  min-width: 0;
}

.profile {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 18px 18px 23px;
  min-height: 79px;
}

.profile-avatar img {
  display: block;
  width: 37px;
  height: 37px;
}

.profile-name {
  flex: 1;
}

.profile-name strong {
  font-size: 14px;
  font-weight: 750;
}

.profile-name>span {
  font-size: 11.5px;
}

.profile .icon-btn svg {
  width: 18px;
  height: 18px;
}

.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 78px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--edge);
  gap: 15px;
  background: #fff;
  flex: none;
}

.crumbs,.top-actions,.online,.invite,.section-title,.speaker-summary {
  display: flex;
  align-items: center;
}

.crumbs {
  gap: 13px;
  font-size: 13.5px;
  white-space: nowrap;
}

.crumbs .crumb-icon {
  width: 16px;
  height: 16px;
  color: #686a61;
}

.crumb-parent {
  color: #60635b;
}

.crumb-slash {
  color: #b2b3a9;
  font-weight: 500;
}

.crumbs strong {
  font-weight: 650;
}

#menu-btn,.scrim,.mobile-brand {
  display: none;
}

.top-actions {
  gap: 21px;
}

.online {
  gap: 8px;
  color: #50534b;
  font-size: 12px;
  white-space: nowrap;
  font-weight: 520;
}

.online b {
  font-weight: 650;
}

.online i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.online i {
  background: #bd8918;
  box-shadow: 0 0 0 3px #fbf2da;
  width: 6px;
  height: 6px;
}

.invite {
  gap: 8px;
  border: 1px solid #21221e;
  background: #24251f;
  color: #fff;
  border-radius: 9px;
  font-weight: 650;
  line-height: 1;
  font-size: 13px;
  padding: 10px 15px;
}

.invite svg {
  width: 16px;
  height: 16px;
}

.invite:hover {
  background: #424337;
}

.main-content {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
}

.main-content {
  padding: clamp(26px,3.4vh,40px) var(--edge) 30px;
}

.banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 17px;
  background: #1d1e1b;
  color: #fff;
  min-height: clamp(173px,20vh,207px);
  padding: 26px 32px;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(#c6c0a6 0.65px,transparent .85px);
  background-size: 6px 6px;
  opacity: .10;
  mask-image: linear-gradient(100deg,transparent 10%,#000 84%);
}

.record {
  z-index: -1;
  position: absolute;
  bottom: 0;
  right: 2%;
  height: 112%;
  max-width: 54%;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}

.banner-copy {
  max-width: 65%;
  min-width: 0;
}

h1,h2,p {
  margin: 0;
}

.banner h1 {
  margin: 12px 0 7px;
  font-size: clamp(40px,4.1vw,70px);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -.042em;
  font-variation-settings: "opsz" 48;
  overflow-wrap: anywhere;
}

.banner p {
  line-height: 1.45;
  color: #d7d7cf;
  font-size: 14px;
  font-weight: 420;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: clamp(25px,3.5vh,38px) 0 16px;
}

.section-title {
  gap: 10px;
}

h2 {
  font-weight: 730;
  font-size: clamp(24px,2.1vw,34px);
  letter-spacing: -.035em;
  line-height: 1.15;
  font-variation-settings: "opsz" 35;
}

.count-badge {
  color: #585b51;
  font-size: 12px;
  font-weight: 750;
  background: #e9eae2;
  border: 1px solid #e0e1d8;
  display: grid;
  place-items: center;
  height: 23px;
  min-width: 25px;
  padding: 0 5px;
  border-radius: 7px;
}

.speaker-summary {
  gap: 7px;
  color: #606258;
  font-size: 12px;
}

.speaker-summary svg {
  width: 15px;
  height: 15px;
  color: #97700d;
}

.participant-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
}

.person {
  position: relative;
  min-width: 0;
  min-height: clamp(150px,19.6vh,202px);
  padding: 16px 10px 13px;
  border: 1px solid #dedfd6;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  transition: background .16s,border-color .16s,transform .16s;
}

.person:hover {
  border-color: #aaaa9e;
  transform: translateY(-2px);
}

.person.speaking {
  background: #fffbef;
  border-color: #e8b842;
}

.person.speaking:hover {
  border-color: #af7a06;
}

.avatar-wrap {
  height: clamp(69px,9.8vh,102px);
  width: clamp(69px,9.8vh,102px);
  flex: none;
  display: grid;
  place-items: center;
}

.avatar-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.person-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  max-width: 100%;
}

.person-name {
  font-size: 17px;
  letter-spacing: -.55px;
  font-weight: 750;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-state {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  gap: 5px;
  font-size: 11.5px;
  line-height: 1.3;
  color: #686a61;
}

.person-state > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.state-dot {
  display: none;
}

.speaking .person-state {
  color: #785a0b;
  font-weight: 600;
}

.speaking .state-dot {
  display: block;
  width: 5px;
  height: 5px;
  background: #be8a14;
  border-radius: 50%;
}

.you-badge {
  display: inline-block;
  vertical-align: 2px;
  padding: 1px 5px;
  border-radius: 4px;
  color: #65675d;
  background: #efefe9;
  margin-left: 3px;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .12px;
}

.mic-state {
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: #777970;
  background: #f3f3ef;
}

.mic-state svg {
  width: 14px;
  height: 14px;
}

.speaking .mic-state {
  color: #292515;
  background: #f8c443;
}

.live-bars {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  height: 15px;
}

.live-bars i {
  width: 2px;
  border-radius: 2px;
  background: currentColor;
  height: 6px;
  animation: voice-wave 1.4s ease-in-out infinite alternate;
}

.live-bars i:nth-child(2) {
  height: 12px;
  animation-delay: -.7s;
}

.live-bars i:nth-child(3) {
  height: 9px;
  animation-delay: -.2s;
}

.live-bars i:nth-child(4) {
  height: 5px;
  animation-delay: -.55s;
}

@keyframes voice-wave {
  to {
    transform: scaleY(.52);
  }
}

.empty-room {
  grid-column: 1/-1;
  border: 1px dashed #cfcec2;
  border-radius: 13px;
  padding: 44px 15px;
  text-align: center;
  color: var(--muted);
}

dialog {
  position: fixed;
  border: 1px solid #d9d9cf;
  border-radius: 17px;
  background: #fff;
  color: var(--ink);
  width: min(420px,calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  box-shadow: 0 16px 70px #10110c33;
}

dialog::backdrop {
  background: #17181366;
}

.modal-content {
  padding: 24px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.modal-head h2 {
  font-size: 28px;
  overflow-wrap: anywhere;
}

.modal-close {
  flex: none;
  background: #f3f3ef;
}

.modal-close svg {
  width: 17px;
  height: 17px;
}

.modal-form,.field {
  display: grid;
  gap: 14px;
}

.field {
  font-size: 13px;
  font-weight: 650;
  gap: 7px;
}

.field input {
  min-width: 0;
  width: 100%;
  height: 42px;
  border: 1px solid #d3d4c9;
  background: #fafaf7;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 450;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.field-row input {
  width: 18px;
  height: 18px;
  accent-color: #dca51c;
}

.modal-note {
  font-size: 12px;
  line-height: 1.5;
  color: #66685f;
}

.modal-content>.modal-note {
  margin-top: 12px;
}

.modal-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.modal-content>.modal-actions {
  margin-top: 20px;
}

.btn-primary,.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid #e1aa23;
  border-radius: 8px;
  background: var(--gold);
  font-weight: 700;
  font-size: 13px;
}

.btn-primary:hover {
  background: #ffcc52;
}

.btn-primary svg {
  width: 16px;
  height: 16px;
}

.invite-room {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 17px;
  background: #fff4cf;
  padding: 7px 11px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
}

.invite-room svg {
  width: 16px;
  height: 16px;
}

.member-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

.detail-avatar {
  width: 66px;
  height: 66px;
}

.member-detail p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

@media(min-width:1650px) {
  :root {
    --side: 280px;
  }
  .person {
    min-height: 210px;
  }
}

@media(max-width:1100px) {
  :root {
    --side: 211px;
    --edge: 25px;
  }
  .side-body {
    padding-left: 11px;
    padding-right: 11px;
  }
  .brand {
    padding-left: 19px;
  }
  .top-actions {
    gap: 14px;
  }
  .banner {
    padding-left: 26px;
  }
  .participant-grid {
    gap: 12px;
  }
}

@media(max-width:820px) {
  :root {
    --edge: 22px;
  }
  .app-shell {
    display: flex;
  }
  .workspace {
    width: 100%;
    min-height: 100dvh;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(280px,85vw);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .18s,visibility .18s;
  }
  .sidebar.open {
    transform: translateX(0);
    visibility: visible;
    z-index: 11;
  }
  .nav-open {
    overflow: hidden;
  }
  .scrim:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10;
    border: 0;
    background: #15161070;
  }
  .brand {
    height: 66px;
  }
  .side-body {
    padding-left: 17px;
    padding-right: 17px;
  }
  #menu-btn {
    display: grid;
    margin-left: -6px;
  }
  .crumb-icon {
    display: none;
  }
  .crumbs {
    gap: 10px;
  }
  .topbar {
    height: 61px;
  }
  .main-content {
    padding-top: 20px;
  }
  .banner {
    min-height: 164px;
  }
  .record {
    right: 1%;
  }
  .person {
    min-height: 153px;
  }
  .avatar-wrap {
    width: 76px;
    height: 76px;
  }
  .section-head {
    margin-top: 25px;
  }
}

@media(max-width:575px) {
  :root {
    --edge: 15px;
  }
  .crumbs {
    gap: 6px;
    font-size: 13px;
  }
  .crumb-parent,.crumb-slash {
    display: none;
  }
  .top-actions {
    gap: 12px;
  }
  .online {
    font-size: 10.5px;
    gap: 6px;
  }
  .invite {
    font-size: 12px;
    padding: 9px 10px;
    gap: 5px;
  }
  .invite svg {
    width: 14px;
    height: 14px;
  }
  .main-content {
    padding-top: 14px;
    padding-bottom: 16px;
  }
  .banner {
    padding: 21px 17px;
    min-height: 143px;
    border-radius: 13px;
  }
  .banner-copy {
    max-width: 65%;
  }
  .banner h1 {
    font-size: clamp(29px,7.3vw,40px);
    margin: 10px 0 5px;
  }
  .banner p {
    font-size: 11.5px;
    max-width: 235px;
  }
  .record {
    height: 103%;
    max-width: 48%;
    right: -3%;
    width: 52%;
    object-fit: cover;
    object-position: 73% bottom;
  }
  .section-head {
    margin: 21px 0 12px;
  }
  .section-title {
    gap: 6px;
  }
  h2 {
    font-size: 24px;
  }
  .count-badge {
    font-size: 10px;
    height: 20px;
    min-width: 21px;
    border-radius: 5px;
  }
  .speaker-summary {
    font-size: 10.5px;
    gap: 4px;
  }
  .speaker-summary svg {
    width: 13px;
    height: 13px;
  }
  .participant-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
  }
  .person {
    min-height: 137px;
    padding: 10px;
    gap: 5px;
    border-radius: 12px;
  }
  .avatar-wrap {
    width: 67px;
    height: 67px;
  }
  .person-name {
    font-size: 15.5px;
  }
  .person-state {
    font-size: 10.5px;
  }
  .mic-state {
    width: 21px;
    height: 21px;
    top: 8px;
    right: 8px;
    border-radius: 6px;
  }
  .mic-state svg {
    width: 12px;
    height: 12px;
  }
}

@media(max-width:355px) {
  .top-actions {
    gap: 8px;
  }
  .online {
    font-size: 10px;
  }
  .topbar {
    padding: 0 10px;
  }
  .speaker-summary {
    font-size: 9px;
  }
  .banner p {
    font-size: 10.5px;
  }
  .banner {
    min-height: 132px;
  }
}

@media(max-width:575px) {
  .crumb-current {
    display: none;
  }
  .mobile-brand {
    display: inline;
    font-size: 27px;
    letter-spacing: -1.8px;
    font-weight: 800;
    line-height: 1;
  }
  .banner-copy {
    max-width: 56%;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    transition: none!important;
    animation: none!important;
  }
}
