@font-face {
  font-family: App;
  src: local('Golos Text'), local('Segoe UI');
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: #101210;
  color: #eef2ee;
  font-family: App, 'Segoe UI', sans-serif;
  font-size: 14px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  background: #252c26;
  border: 1px solid #354137;
  border-radius: 8px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.12s;
}
button:hover {
  background: #303d32;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #80d98b;
  outline-offset: 3px;
}
.primary {
  color: #102313;
  background: #80d98b;
  border-color: #80d98b;
  font-weight: 650;
}
.primary:hover {
  background: #98e9a2;
}
.danger {
  background: #653333;
  border-color: #804545;
}
.icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-button {
  padding: 8px;
  border-color: transparent;
  background: transparent;
}
.muted,
.help {
  color: #a1aca3;
}
.help {
  font-size: 12px;
  line-height: 1.6;
}
a {
  color: #80d98b;
}
.titlebar {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding-left: 18px;
  border-bottom: 1px solid #2a322b;
  background: #101210;
  -webkit-app-region: drag;
  user-select: none;
}
.titlebar strong {
  font-size: 17px;
}
.brand-mark {
  height: 26px;
  width: 26px;
  object-fit: contain;
}
.titlebar .window-buttons {
  margin-left: auto;
  display: flex;
  height: 100%;
  -webkit-app-region: no-drag;
}
.window-buttons button {
  border: 0;
  border-radius: 0;
  background: transparent;
  width: 48px;
  padding: 6px;
}
.window-buttons button:hover {
  background: #354137;
}
.window-buttons button:last-child:hover {
  background: #a93737;
}
.layout {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr) 270px;
  grid-template-rows: minmax(0, 1fr) 76px;
  height: calc(100vh - 40px);
}
.sidebar {
  grid-row: 1/3;
  background: #111512;
  border-right: 1px solid #2c342e;
  display: flex;
  flex-direction: column;
  padding: 20px 12px 0;
  overflow: auto;
}
.nav-button {
  background: transparent;
  border: 0;
  justify-content: flex-start;
  width: 100%;
  padding: 13px;
  font-size: 15px;
  min-height: 46px;
  margin-bottom: 4px;
}
.nav-button.active {
  background: #253d29;
  color: #9ee3a8;
}
.nav-button .count {
  margin-left: auto;
}
.section-label {
  font-size: 13px;
  color: #a9b5ab;
  margin: 25px 11px 12px;
  display: flex;
  justify-content: space-between;
}
.channel {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  padding: 12px 13px;
  margin-bottom: 4px;
  gap: 12px;
}
.channel.active {
  background: #27412d;
  color: #b0edb7;
}
.channel .tiny {
  margin-left: auto;
  color: #95a69a;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #2c342e;
  padding: 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-bottom .user-copy {
  min-width: 0;
  flex: 1;
}
.sidebar-bottom strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.room-header {
  min-height: 78px;
  border-bottom: 1px solid #2c342e;
  display: flex;
  align-items: center;
  padding: 17px 24px;
  gap: 13px;
}
.room-header h1 {
  font-size: 23px;
  line-height: 1.3;
  margin: 0 0 3px;
  letter-spacing: -0.4px;
}
.room-header .actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.room-header .room-symbol {
  color: #80d98b;
}
.people-strip {
  display: flex;
  gap: 26px;
  padding: 25px 24px;
  background: #17211a;
  border-bottom: 1px solid #2c342e;
  overflow-x: auto;
  min-height: 198px;
  flex-shrink: 0;
  align-items: center;
}
.person {
  text-align: center;
  min-width: 132px;
  max-width: 175px;
  position: relative;
  padding-bottom: 10px;
}
.person .avatar {
  width: 106px;
  height: 106px;
  font-size: 31px;
  margin: 0 auto 10px;
  box-shadow:
    0 0 3px color-mix(in srgb, var(--frame) 85%, transparent),
    0 0 calc(4px + var(--voice-level, 0) * 9px)
      color-mix(in srgb, var(--frame) calc(25% + var(--voice-level, 0) * 65%), transparent),
    0 0 calc(9px + var(--voice-level, 0) * 25px)
      color-mix(in srgb, var(--frame) calc(8% + var(--voice-level, 0) * 55%), transparent),
    0 0 calc(var(--voice-level, 0) * 52px)
      color-mix(in srgb, var(--frame) calc(var(--voice-level, 0) * 28%), transparent),
    inset 0 0 5px color-mix(in srgb, var(--frame) 45%, transparent);
}
.person .name-line {
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}
.person .mic {
  position: absolute;
  right: 3px;
  top: 84px;
  background: #28352c;
  border-radius: 50%;
  padding: 5px;
  width: 29px;
  height: 29px;
}
.person .mic .icon {
  width: 19px;
  height: 19px;
}
@media (prefers-reduced-motion: reduce) {
  .person .avatar {
    box-shadow: 0 0 5px color-mix(in srgb, var(--frame) 35%, transparent);
    transition: none;
  }
  .person.speaking .avatar {
    box-shadow: 0 0 7px var(--frame), 0 0 20px color-mix(in srgb, var(--frame) 60%, transparent);
  }
}
.avatar {
  --frame: #80d98b;
  border: 3px solid var(--frame);
  border-radius: 50%;
  height: 38px;
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #26352b;
  color: #d4ecd9;
  font-weight: 650;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  object-fit: cover;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar.small {
  height: 30px;
  width: 30px;
  font-size: 12px;
  border-width: 2px;
}
.name-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}
.name-line strong {
  overflow-wrap: anywhere;
}
.badge {
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid #6bac75;
  color: #a6e7b0;
  background: #1e3323;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  font-weight: 550;
}
.badge .icon {
  width: 12px;
  height: 12px;
}
.badge.tester {
  border-color: #ad8b48;
  color: #e6bc73;
  background: #332a1c;
}
.rightbar {
  border-left: 1px solid #2c342e;
  padding: 19px 15px;
  overflow: auto;
  grid-column: 3;
  grid-row: 1/3;
  background: #121713;
}
.rightbar h2 {
  font-size: 17px;
  margin: 0 0 17px;
}
.friend {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
  cursor: pointer;
}
.friend .info {
  min-width: 0;
  flex: 1;
}
.friend small {
  display: block;
  color: #a1aca3;
  font-size: 11px;
  margin-top: 5px;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #80d98b;
  border-radius: 50%;
  margin-right: 5px;
}
.status-dot.offline {
  background: #718076;
}
.profile-card {
  margin-top: 25px;
  border: 1px solid #38433a;
  background: #1b241d;
  border-radius: 12px;
  padding: 18px 14px;
}
.profile-card .avatar {
  height: 90px;
  width: 90px;
  font-size: 30px;
  margin: 14px auto;
}
.profile-card h3 {
  margin: 0;
  font-size: 17px;
}
.profile-card .profile-copy {
  text-align: center;
  margin: 12px 0;
}
.profile-card button {
  width: 100%;
  margin-top: 8px;
}
.messages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 20px 25px 8px;
  scroll-behavior: auto;
}
.message {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}
.message .avatar {
  height: 42px;
  width: 42px;
}
.message .message-content {
  min-width: 0;
  flex: 1;
}
.message time {
  font-size: 11px;
  color: #89978c;
  margin-left: 3px;
}
.message p {
  margin: 7px 0 5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.message-tools {
  margin-left: auto;
  display: flex;
  gap: 3px;
  opacity: 0;
}
.message:hover .message-tools,
.message:focus-within .message-tools {
  opacity: 1;
}
.message-tools button {
  padding: 3px 5px;
}
.message-tools .icon {
  width: 14px;
  height: 14px;
}
.edited {
  font-size: 10px;
  color: #89978c;
}
.attachment {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  max-width: 380px;
  text-align: left;
}
.attachment small {
  color: #a1aca3;
}
.reactions {
  display: flex;
  gap: 5px;
  margin-top: 7px;
}
.reaction {
  font-size: 12px;
  border-radius: 20px;
  padding: 3px 8px;
  background: #222e26;
}
.reaction.selected {
  border-color: #80d98b;
  background: #28412d;
}
.sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #263e2d;
  min-width: 100px;
  height: 92px;
  border-radius: 20px;
  margin: 9px 0;
  font-size: 40px;
  border: 1px solid #3a5841;
  flex-direction: column;
  padding: 10px 16px;
}
.sticker strong {
  font-size: 14px;
  margin-top: 3px;
}
.picker button small {
  display: block;
  font-size: 11px;
  color: #b4cfbb;
}
.picker button {
  min-width: 44px;
}
.composer-area {
  padding: 12px 20px 14px;
  position: relative;
}
.composer {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  background: #232e26;
  border: 1px solid #3a493e;
  border-radius: 10px;
  padding: 7px;
}
.composer textarea {
  min-height: 31px;
  max-height: 130px;
  resize: vertical;
  flex: 1;
  background: transparent;
  border: 0;
  color: #eef2ee;
  padding: 6px 3px;
  outline: 0;
  line-height: 1.4;
}
.composer button {
  padding: 6px;
  background: transparent;
  border: 0;
}
.composer button.send {
  color: #80d98b;
}
.picker {
  position: absolute;
  bottom: 76px;
  right: 22px;
  background: #253128;
  border: 1px solid #4b6151;
  padding: 10px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  box-shadow: 0 10px 30px #0008;
  z-index: 10;
}
.picker button {
  font-size: 23px;
  min-width: 40px;
}
.callbar {
  grid-row: 2;
  grid-column: 2;
  border-top: 1px solid #2c342e;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #151c17;
}
.callbar .icon-button {
  background: #28382c;
  border: 1px solid #3b4a3e;
  padding: 10px 14px;
}
.callbar .icon-button.on {
  background: #80d98b;
  color: #112314;
}
.callbar .icon-button.off {
  color: #f3aaaa;
  background: #432a2a;
}
.callbar .hangup {
  background: #bd4747;
  border-color: #bd4747;
  color: white;
  margin-left: 8px;
}
.callbar .call-label {
  margin-right: auto;
  max-width: 140px;
  font-size: 12px;
  color: #a6b9ab;
}
.empty {
  padding: 40px 20px;
  text-align: center;
  line-height: 1.65;
  color: #a5b3a8;
}
.empty strong {
  display: block;
  font-size: 19px;
  color: #e7efe9;
  margin-bottom: 9px;
}
.join-hint {
  margin-left: 10px;
  flex: 1;
  min-width: 200px;
}
.join-hint strong {
  display: block;
  margin-bottom: 7px;
}
.join-hint .help {
  max-width: 340px;
}
.join-hint button {
  margin-top: 12px;
}
.connection-banner {
  background: #3b3420;
  color: #ebce8d;
  font-size: 12px;
  padding: 7px 22px;
}
.share-view {
  position: relative;
  background: #050705;
  margin: 0;
  border: 1px solid #384a3e;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  padding: 12px 22px;
  max-height: 42vh;
  overflow: auto;
  flex-shrink: 0;
}
.share-view:fullscreen video {
  max-height: calc(100vh - 44px);
  height: calc(100vh - 44px);
}
.call-panel {
  position: fixed;
  z-index: 90;
  right: 25px;
  bottom: 88px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 50px);
  padding: 18px;
  border: 1px solid #80d98b;
  border-radius: 14px;
  background: #1b2c20;
  box-shadow: 0 12px 40px #0008;
}
.call-panel p {
  margin: 4px 0 0;
  color: #b1cbb6;
  font-size: 13px;
}
.image-attachment {
  display: block;
  margin: 8px 0;
  padding: 0;
  overflow: hidden;
  max-width: 380px;
}
.image-attachment img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  background: #121a14;
  display: block;
}
.image-attachment span {
  display: block;
  padding: 8px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.share-view header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: #1d2d23;
  font-size: 12px;
}
.share-view video {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  background: #080b09;
}
.share-view .close-share {
  padding: 1px 6px;
}
.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  padding: 25px;
  gap: 17px;
  overflow: auto;
}
.friend-card {
  background: #1b251e;
  border: 1px solid #334537;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}
.friend-card .avatar {
  margin: 0 auto 14px;
  height: 67px;
  width: 67px;
  font-size: 24px;
}
.friend-card .name-line {
  justify-content: center;
}
.friend-card button {
  margin-top: 14px;
}
.auth-shell {
  min-height: calc(100vh - 40px);
  display: grid;
  place-items: center;
  padding: 25px;
  background: radial-gradient(ellipse at 50% 0, #203d29 0, transparent 62%);
}
.auth-card {
  width: min(420px, 100%);
  background: #19201b;
  border: 1px solid #344e3b;
  border-radius: 17px;
  padding: 32px;
}
.auth-card h1 {
  font-size: 30px;
  margin: 0 0 8px;
}
.auth-card .subtitle {
  color: #a9b9ae;
  line-height: 1.6;
  margin-bottom: 25px;
}
.auth-card form {
  display: grid;
  gap: 15px;
}
.auth-card label,
.form-row {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #bbc9bf;
}
.auth-card input,
.form-row input,
.form-row select,
.form-row textarea {
  background: #101912;
  color: #eef2ee;
  border: 1px solid #405645;
  border-radius: 7px;
  padding: 11px;
  width: 100%;
}
.auth-links {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  justify-content: center;
}
.auth-links button {
  border: 0;
  padding: 4px;
  background: transparent;
  color: #9cdaa9;
  font-size: 12px;
}
.consent {
  display: flex !important;
  gap: 9px !important;
  align-items: flex-start;
  font-size: 11px !important;
  line-height: 1.5;
}
.consent input {
  width: 16px;
  margin-top: 3px;
}
.pending-icon {
  font-size: 42px;
  margin-bottom: 20px;
}
.auth-error {
  color: #f1a3a3;
  font-size: 12px;
  min-height: 15px;
}
.starting {
  height: 100vh;
  display: grid;
  place-items: center;
  color: #97b79e;
}
dialog {
  padding: 0;
  color: #eef2ee;
  background: #1a251e;
  border: 1px solid #405946;
  border-radius: 14px;
  width: min(510px, calc(100vw - 40px));
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 100px #0009;
}
dialog::backdrop {
  background: #0009;
}
dialog header {
  padding: 19px 23px;
  border-bottom: 1px solid #344738;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
}
dialog .dialog-body {
  padding: 23px;
  display: grid;
  gap: 17px;
}
dialog footer {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  border-top: 1px solid #344738;
  padding: 17px 23px;
}
.swatches {
  display: flex;
  gap: 10px;
}
.swatches button {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  padding: 0;
  border: 3px solid #eef2ee55;
}
.swatches button.selected {
  outline: 2px solid #e3f8e8;
  outline-offset: 2px;
}
.crop-canvas {
  width: 220px;
  height: 220px;
  display: block;
  margin: auto;
  border-radius: 10px;
  background: #0d160f;
  cursor: grab;
  touch-action: none;
}
.crop-wrap {
  display: grid;
  gap: 12px;
}
.crop-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.crop-controls input {
  flex: 1;
}
.check-row {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 13px;
}
.settings-grid {
  display: grid;
  gap: 15px;
}
.sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sources button {
  flex-direction: column;
  padding: 9px;
  font-size: 11px;
  overflow: hidden;
}
.sources img {
  width: 100%;
  border-radius: 6px;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 95px;
  transform: translateX(-50%);
  background: #314b39;
  color: #f0fbf2;
  border: 1px solid #689875;
  border-radius: 9px;
  padding: 11px 20px;
  max-width: 85vw;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.15s;
}
#toast.visible {
  opacity: 1;
}
.update-pill {
  margin-left: auto;
  max-height: 27px;
  padding: 3px 10px;
  font-size: 11px;
  -webkit-app-region: no-drag;
}
#update-progress { min-width: min(420px, 90vw); }
#update-progress-bar { width: 100%; accent-color: #80d98b; height: 14px; }
.screen-actions { display: flex; gap: 6px; margin-left: auto; }
.screen-actions button { font-size: 12px; padding: 5px 8px; }
.screen-detached { min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #a8b8ac; }
dialog:has(#enlarged-screen) { width: min(1400px, 94vw); max-width: 94vw; }
#enlarged-screen { display: block; width: 100%; max-height: 75vh; object-fit: contain; background: #080c09; }
.attention-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #8ae29a; color: #0a2110; font-weight: 750; font-size: 12px; line-height: 1; margin-left: auto; box-shadow: 0 0 10px #80d98b35; }
.dm-section summary .attention-count { margin-left: 8px; }
.has-unread { color: #d7f4df; font-weight: 650; }
.invitations-attention { color: #a9e9b6; background: #253d29; }
.local-label {
  font-size: 10px;
  color: #a1bca7;
  margin-left: 7px;
}
@media (max-width: 1150px) {
  .layout {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .rightbar {
    display: none;
  }
  .people-strip {
    gap: 15px;
  }
  .person {
    min-width: 105px;
  }
  .callbar {
    padding: 10px;
  }
  .callbar .call-label {
    display: none;
  }
}
@media (max-width: 750px) {
  .layout {
    grid-template-columns: 160px minmax(0, 1fr);
  }
  .sidebar {
    padding: 12px 6px 0;
  }
  .room-header {
    padding: 14px;
  }
  .people-strip {
    padding: 17px;
    min-height: 148px;
  }
  .person .avatar {
    height: 66px;
    width: 66px;
  }
  .person .mic {
    top: 45px;
  }
  .messages {
    padding: 15px;
  }
  .room-header .actions .invite {
    display: none;
  }
  .callbar {
    gap: 6px;
  }
  .callbar button {
    font-size: 11px;
    padding: 8px;
  }
  .composer-area {
    padding: 10px;
  }
  .callbar .icon-button {
    padding: 9px;
  }
  .section-label {
    margin-left: 8px;
  }
  .channel {
    padding: 10px 8px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.room-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-dots {
  font-size: 28px;
  line-height: 1;
}
.dm-section {
  margin: 10px 0;
}
.dm-section summary {
  cursor: pointer;
  color: #95a69a;
  padding: 10px 12px;
  font-size: 12px;
  user-select: none;
}
.scope-choice {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
}
.scope-choice input {
  width: auto;
}
.room-tools .icon-button {
  padding: 5px;
}
.stealth-active {
  color: #e6bc73;
  background: #362d1e;
}
.room-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #2c342e;
}
