@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #f3f2f4;
  background: #0b0c0f;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #9c8cf0;
  outline-offset: 3px;
}
.hidden {
  display: none !important;
}
.shell {
  min-height: 100vh;
  background: #0b0c0f;
}
.entry {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, #25212f 0, transparent 56%), #0b0c0f;
}
.entry::before {
  content: '';
  position: absolute;
  inset: -20% 0;
  background: radial-gradient(circle at 10% 80%, #1d1829 0, transparent 42%);
  pointer-events: none;
}
.entry-wrap {
  position: relative;
  width: min(480px, calc(100vw - 48px));
  margin-top: -30px;
  animation: rise 0.55s both;
}
.entry-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font:
    800 39px 'Manrope',
    sans-serif;
  letter-spacing: -0.1em;
  margin-bottom: 72px;
}
.entry-logo span,
.brand span,
.entry h1 span,
.call-top span {
  color: #a797ff;
}
.entry-logo small {
  font-size: 24px;
  letter-spacing: -0.07em;
}
.overline {
  font-size: 10px;
  color: #a69cb8;
  letter-spacing: 0.22em;
  font-weight: 800;
  margin: 0 0 10px;
}
.entry h1 {
  font:
    800 clamp(38px, 5vw, 49px)/1.17 'Manrope',
    sans-serif;
  letter-spacing: -0.055em;
  margin: 0;
}
.subcopy {
  color: #9a9aa8;
  line-height: 1.7;
  font-size: 15px;
  max-width: 370px;
  margin: 22px 0 35px;
}
.entry label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: #a6a3b1;
  margin: 0 0 11px;
}
.field {
  display: flex;
  align-items: center;
  height: 55px;
  background: #191a20;
  border: 1px solid #34323c;
  border-radius: 12px;
  margin-bottom: 15px;
}
.field:focus-within {
  border-color: #9d8cfc;
}
.field b {
  color: #b9a9ef;
  margin: 0 14px;
  font-size: 17px;
}
.field input {
  background: none;
  border: 0;
  outline: 0;
  color: #fff;
  flex: 1;
  min-width: 0;
  height: 100%;
  font-size: 15px;
}
.primary {
  background: #b5a6ff;
  color: #17131f;
  border: 0;
  border-radius: 11px;
  font-weight: 800;
  padding: 16px 20px;
  transition:
    background 0.2s,
    transform 0.15s;
}
.primary:hover {
  background: #c8bfff;
  transform: translateY(-1px);
}
.wide {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
}
.entry-foot {
  font-size: 10px;
  color: #696974;
  letter-spacing: 0.13em;
  margin-top: 34px;
}
.workspace {
  height: 100dvh;
  min-height: 530px;
  display: flex;
}
.sidebar {
  width: 348px;
  flex: 0 0 348px;
  background: #111217;
  border-right: 1px solid #24252b;
  display: flex;
  flex-direction: column;
}
.sidebar-header {
  padding: 26px 25px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font:
    800 31px 'Manrope',
    sans-serif;
  letter-spacing: -0.1em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand strong {
  font-size: 20px;
  letter-spacing: -0.06em;
}
.iconbtn {
  border: 0;
  color: #aaaab5;
  background: transparent;
  border-radius: 10px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 21px;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.15s;
}
.iconbtn:hover {
  background: #23232d;
  color: #fff;
}
.iconbtn.plus {
  background: #29243b;
  color: #c2b5ff;
  font-size: 26px;
}
.side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}
.side-title h2 {
  font: 800 25px 'Manrope';
  letter-spacing: -0.07em;
  margin: 0;
}
.search {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1b1c23;
  border: 1px solid #272830;
  margin: 20px 22px 14px;
  padding: 0 14px;
  border-radius: 10px;
  color: #9798a7;
}
.search span {
  font-size: 24px;
}
.search input {
  background: none;
  border: 0;
  color: white;
  outline: none;
  min-width: 0;
  width: 100%;
  font-size: 13px;
}
.search input::placeholder,
.compose-main textarea::placeholder {
  color: #7e7f8d;
}
.people {
  overflow-y: auto;
  min-height: 0;
  flex: 1;
  padding: 0 12px;
}
.person {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 13px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: #f5f5f6;
  transition: background 0.2s;
}
.person:hover {
  background: #1c1d26;
}
.person.active {
  background: #22212d;
  border-color: #2f293a;
}
.avatar {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  border-radius: 14px;
  background: #352c45;
  display: grid;
  place-items: center;
  color: #ddc9ff;
  font-weight: 800;
  font-size: 16px;
}
.person:nth-child(2n) .avatar,
.avatar.self {
  background: #26343d;
  color: #b0d6e5;
}
.person-meta {
  min-width: 0;
  flex: 1;
}
.person-meta strong {
  display: block;
  font-size: 14px;
}
.person-meta small {
  display: block;
  color: #888896;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 5px;
}
.person-time {
  font-size: 10px;
  color: #727380;
  align-self: flex-start;
  margin-top: 4px;
}
.profile {
  width: 100%;
  padding: 20px 24px;
  background: #14151b;
  border: 0;
  border-top: 1px solid #25252e;
  color: white;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
}
.profile div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.profile strong {
  font-size: 13px;
  display: block;
}
.profile small {
  font-size: 11px;
  color: #8c8b9a;
  display: block;
  margin-top: 4px;
}
.settings {
  font-size: 24px;
  color: #777986;
}
.chat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  background: #0d0e12;
}
.chat-head {
  padding: 0 29px;
  height: 84px;
  flex: 0 0 84px;
  border-bottom: 1px solid #23242c;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-head .avatar {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}
.peer {
  flex: 1;
  min-width: 0;
}
.peer strong {
  display: block;
  font-size: 15px;
}
.peer small {
  display: block;
  font-size: 12px;
  color: #828391;
  margin-top: 4px;
}
.iconbtn.video {
  margin-right: 5px;
  font-size: 24px;
}
.back {
  display: none;
}
.chat-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 30px max(30px, calc((100% - 880px) / 2));
  display: flex;
  flex-direction: column;
  gap: 13px;
  scroll-behavior: smooth;
}
.date-divider {
  text-align: center;
  color: #767682;
  font-size: 11px;
  margin: 15px 0 20px;
}
.bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 84%;
  animation: bubbleIn 0.23s both;
}
.bubble-row.mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.bubble-row.theirs {
  align-self: flex-start;
}
.bubble-mini {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 10px;
  background: #3d344d;
  color: #d4bfff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}
.bubble {
  padding: 13px 16px;
  max-width: 100%;
  border: 1px solid #282932;
  background: #202127;
  color: #e7e8ee;
  border-radius: 17px 17px 17px 5px;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.mine .bubble {
  background: #a99af2;
  border-color: #b5a7fc;
  color: #181223;
  border-radius: 17px 17px 5px 17px;
}
.bubble img,
.bubble video {
  display: block;
  max-width: min(310px, 62vw);
  max-height: 340px;
  border-radius: 10px;
  margin-top: 8px;
  object-fit: cover;
}
.bubble time {
  display: block;
  margin-top: 5px;
  opacity: 0.55;
  font-size: 10px;
  text-align: right;
}
.blurred-content {
  filter: blur(10px);
  user-select: none;
  pointer-events: none;
  transition: filter 0.3s;
}
.reveal {
  display: block;
  margin-top: 9px;
  background: #141019;
  color: #efe9ff;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 10px;
  border: 0;
}
.bubble:not(.isblurred) .reveal {
  display: none;
}
.bubble-preview {
  min-height: 65px;
  display: grid;
  place-items: center;
}
.compose-main {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 7px;
}
.composer {
  margin: 16px max(24px, calc((100% - 880px) / 2)) 27px;
  border: 1px solid #303039;
  border-radius: 14px;
  background: #1b1c24;
  box-shadow: 0 5px 35px #0004;
}
.compose-main textarea {
  resize: none;
  flex: 1;
  background: none;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 14px;
  min-height: 38px;
  max-height: 130px;
  padding: 11px 2px;
  line-height: 1.45;
}
.mini {
  width: 33px;
  height: 38px;
  background: none;
  border: none;
  color: #a1a1b0;
  font-size: 25px;
}
.mini:hover {
  color: #c6bafa;
}
.send {
  width: 37px;
  height: 37px;
  border: 0;
  border-radius: 10px;
  background: #b0a1f7;
  color: #181126;
  font-weight: 900;
  font-size: 22px;
}
.compose-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px 13px;
  font-size: 11px;
  color: #777786;
}
.compose-foot button {
  background: transparent;
  border: 0;
  color: #a3a0ae;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 4px;
}
.compose-foot button.active {
  color: #c7baff;
}
.blur-icon {
  font-size: 17px;
}
.attachment {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 8px 24px 0;
  padding: 10px 14px;
  border: 1px solid #3b3546;
  border-radius: 9px;
  background: #24212b;
  color: #ddd1fa;
  font-size: 12px;
}
.attachment button {
  background: none;
  border: 0;
  color: white;
  font-size: 23px;
}
.preview-note {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 8;
  background: #101016;
  color: #a19dab;
  padding: 7px 13px;
  font-size: 10px;
  border: 1px solid #292831;
  border-radius: 10px 0 0 0;
}
.preview-pulse {
  display: inline-block;
  background: #b7a7fa;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 5px;
}
.note-sep {
  margin: 0 8px;
  color: #56555f;
}
.overlay {
  z-index: 30;
  position: fixed;
  inset: 0;
  background: #020204c9;
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fade 0.18s;
}
.modal {
  width: min(440px, 100%);
  background: #171820;
  border: 1px solid #333340;
  border-radius: 17px;
  box-shadow: 0 35px 110px #000b;
  overflow: hidden;
}
.modal-head {
  padding: 23px 25px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.modal-head h3 {
  font: 800 23px 'Manrope';
  margin: 2px 0;
}
.modal-content {
  padding: 12px 25px 27px;
}
.modal-content p {
  font-size: 13px;
  line-height: 1.7;
  color: #a09fac;
}
.modal-content input {
  width: 100%;
  height: 47px;
  border-radius: 9px;
  border: 1px solid #3c3c47;
  background: #22232c;
  color: white;
  padding: 0 13px;
  margin: 8px 0 16px;
}
.modal-content .primary {
  width: 100%;
}
.modal-content .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #32323b;
}
.modal-content .row button {
  border: 0;
  border-radius: 7px;
  background: #353045;
  color: #d8ccff;
  padding: 7px 11px;
}
.camera-modal {
  width: min(620px, 100%);
  background: #14141b;
  border: 1px solid #34333f;
  border-radius: 17px;
  overflow: hidden;
}
.camera-modal header,
.camera-modal footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
}
.camera-stage {
  background: #09090c;
  min-height: 300px;
  height: min(55vh, 470px);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.camera-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
}
.camera-stage #camera-empty {
  font-size: 13px;
  color: #8b8995;
  text-align: center;
  padding: 20px;
}
.camera-stage .rec-timer {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #2a1015e8;
  color: #ff7281;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13px;
}
.mode-switch {
  display: flex;
  gap: 5px;
  background: #262530;
  border-radius: 10px;
  padding: 3px;
}
.mode-switch button {
  background: none;
  color: #94909e;
  border: 0;
  padding: 9px 12px;
  font-size: 11px;
  border-radius: 8px;
  font-weight: 800;
}
.mode-switch button.chosen {
  color: white;
  background: #4e475f;
}
.shutter {
  border: 3px solid white;
  background: transparent;
  width: 52px;
  height: 52px;
  border-radius: 100%;
  display: grid;
  place-items: center;
}
.shutter span {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.2s;
}
.shutter.recording span {
  border-radius: 8px;
  background: #f4566b;
  width: 22px;
  height: 22px;
}
.call-modal {
  width: min(750px, 100%);
  background: #171820;
  border: 1px solid #373440;
  border-radius: 17px;
  overflow: hidden;
}
.call-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 20px;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.call-main {
  height: 400px;
  background: radial-gradient(circle at 55% 40%, #2d243e, #0a0b0f 70%);
  display: grid;
  place-items: center;
  position: relative;
  text-align: center;
}
.big-avatar {
  width: 95px;
  height: 95px;
  border-radius: 30px;
  background: #453759;
  display: grid;
  place-items: center;
  margin: auto;
  font-size: 40px;
  font-weight: 800;
}
.call-person h2 {
  margin: 18px 0 6px;
}
.call-person p {
  max-width: 380px;
  margin: 0 auto;
  color: #aaa6b3;
  font-size: 12px;
  line-height: 1.6;
}
.call-main video {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 160px;
  height: 110px;
  object-fit: cover;
  background: #101016;
  border: 1px solid #3e3a46;
  border-radius: 10px;
}
.call-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}
.round {
  border: 1px solid #46404d;
  background: #2b2732;
  color: white;
  padding: 12px 16px;
  border-radius: 40px;
  font-size: 12px;
}
.round.end {
  background: #b32942;
  border-color: #b32942;
}
.toast {
  position: fixed;
  z-index: 100;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: #2c2536;
  border: 1px solid #6d5d86;
  color: #f4ecff;
  padding: 13px 18px;
  border-radius: 10px;
  font-size: 12px;
  box-shadow: 0 14px 50px #0008;
}
.empty-note {
  color: #888895;
  text-align: center;
  font-size: 13px;
  margin: auto;
}
.empty-note strong {
  display: block;
  color: #fff;
  font-size: 21px;
  margin-bottom: 10px;
}
.mobile-only {
  display: none;
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 760px) {
  .workspace {
    min-height: 0;
  }
  .sidebar {
    width: 100%;
    flex: 1;
  }
  .chat {
    display: none;
  }
  .workspace.chat-open .sidebar {
    display: none;
  }
  .workspace.chat-open .chat {
    display: flex;
  }
  .back {
    display: grid;
  }
  .chat-head {
    height: 70px;
    flex-basis: 70px;
    padding: 0 16px;
  }
  .chat-body {
    padding: 20px 14px;
  }
  .composer {
    margin: 12px 12px 35px;
  }
  .compose-foot > span {
    display: none;
  }
  .preview-note {
    width: 100%;
    text-align: center;
    border-radius: 0;
  }
  .sidebar-header {
    padding: 25px 22px 30px;
  }
  .entry-logo {
    margin-bottom: 60px;
  }
  .entry-wrap {
    margin-top: -25px;
  }
  .call-main {
    height: 360px;
  }
  .call-main video {
    width: 110px;
    height: 85px;
    right: 8px;
    bottom: 8px;
  }
  .call-person p {
    max-width: 240px;
  }
  .bubble-row {
    max-width: 92%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
