:root {
  font-family:
    Inter,
    "Segoe UI",
    Arial,
    sans-serif;
  color: #202432;
  background: #fff;
  font-synthesis: none;
  font-size: 16px;
  --blue:#354fd4;
  --ink:#202432;
  --muted:#687182;
  --line:#e5e7ee;
  --rail:#283eb1;
  --paper:#fafaf8;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #7591fe;
  outline-offset: 2px;
}
svg.ic {
  display: block;
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.workspace {
  display: grid;
  grid-template-columns: 82px clamp(292px, 26vw, 385px) minmax(0, 1fr);
  grid-template-rows: 70px minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  min-height: 360px;
  overflow: hidden;
}
.rail {
  background: var(--rail);
  grid-row: 1/-1;
  display: flex;
  align-items: center;
  flex-direction: column;
  z-index: 4;
  color: #cdd5ff;
}
.brandmark {
  width: 48px;
  height: 55px;
  display: grid;
  place-items: center;
  margin: 8px auto 19px;
}
.brandmark svg {
  width: 39px;
  height: 39px;
}
.rail nav,
.rail-bottom {
  display: flex;
  width: 100%;
  align-items: center;
  flex-direction: column;
  gap: 9px;
}
.nav-item {
  height: 60px;
  width: 60px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: #cdd5ff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}
.nav-item:hover {
  background: #ffffff17;
}
.nav-item.active {
  background: #ffffff27;
  color: white;
  box-shadow: inset 0 0 0 1px #ffffff14;
}
.nav-icon {
  position: relative;
}
.nav-icon .ic {
  width: 22px;
  height: 22px;
}
.rail-bottom {
  margin-top: auto;
  margin-bottom: 22px;
  gap: 16px;
}
.account {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  outline: 2px solid #ffffff80;
  outline-offset: 3px;
}
.masthead {
  grid-column: 2/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 28px;
  gap: 15px;
}
.wordmark {
  display: flex;
  align-items: baseline;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -2.5px;
  font-weight: 780;
  color: #222b4d;
}
.word-dot {
  color: #5268e6;
}
.word-divider,
.mast-divider {
  width: 1px;
  height: 21px;
  align-self: center;
  background: #dfe2e9;
  display: inline-block;
  margin: 0 12px;
}
.word-product {
  font-size: 17px;
  letter-spacing: -.55px;
  font-weight: 540;
  color: #525b70;
}
.mast-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.workspace-label {
  font-weight: 550;
  font-size: 14px;
  color: #485067;
}
.mast-divider {
  margin: 0;
  height: 17px;
}
.sample-label {
  font-size: 12px;
  font-weight: 580;
  color: #576176;
  background: #f2f4f7;
  padding: 6px 10px;
  border: 1px solid #e3e6ed;
  border-radius: 20px;
}
.round-button,
.square-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  color: #566071;
  flex-shrink: 0;
  position: relative;
}
.round-button:hover,
.square-button:hover {
  background: #edf0f7;
}
.round-button i {
  width: 6px;
  height: 6px;
  position: absolute;
  top: 6px;
  right: 8px;
  border-radius: 50%;
  background: var(--blue);
  border: 1px solid #fff;
}
.inbox {
  background: #fff;
  grid-column: 2;
  grid-row: 2;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.inbox-controls {
  padding: 23px 20px 5px;
}
.inbox-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
.inbox h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -1.32px;
  font-weight: 700;
  line-height: 1.2;
}
.compose-new {
  background: #eef1ff;
  color: #3c51cd;
  width: 34px;
  height: 34px;
}
.compose-new .ic {
  width: 18px;
  height: 18px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f6f9;
  border: 1px solid #e9eaf0;
  border-radius: 9px;
  padding: 0 12px;
  height: 39px;
  color: #7a8290;
}
.search-field .ic {
  width: 17px;
  height: 17px;
}
.search-field input {
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  flex: 1;
  font-size: 14px;
}
.search-field:focus-within {
  border-color: #aab7ee;
}
.filters {
  display: flex;
  gap: 6px;
  margin: 14px 0 7px;
}
.filter {
  border: 1px solid #e2e5ec;
  padding: 5px 12px;
  border-radius: 17px;
  font-size: 13px;
  font-weight: 550;
  color: #626a7a;
  line-height: 1.15;
}
.filter:hover {
  background: #f7f8fa;
}
.filter.active {
  background: #eaf0ff;
  border-color: #dce5ff;
  color: #334cc0;
}
.room-list {
  overflow: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #d8dce9 transparent;
  padding: 0 10px;
}
.section-heading {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  letter-spacing: .095em;
  text-transform: uppercase;
  font-weight: 650;
  color: #798091;
  padding: 14px 11px 7px;
}
.section-heading .ic {
  width: 13px;
  height: 13px;
}
.room {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  border-radius: 11px;
  padding: 12px 10px;
  gap: 11px;
  min-height: 69px;
  position: relative;
}
.room:hover {
  background: #f7f8fb;
}
.room.is-active {
  background: #edf1ff;
}
.avatar {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: middle;
  width: 40px;
  height: 40px;
  color: #3c4d8b;
  background: #e4e9fb;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.04em;
}
.avatar.art {
  border-radius: 12px;
}
.avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}
.room .avatar {
  width: 43px;
  height: 43px;
}
.room-content {
  flex: 1;
  min-width: 0;
  display: block;
}
.room-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px;
}
.room-line strong {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 640;
  letter-spacing: -.27px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.room-line time {
  white-space: nowrap;
  color: #808796;
  font-size: 11px;
  flex-shrink: 0;
}
.room.is-active .room-line time {
  color: #5969ab;
}
.preview-line {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  min-height: 18px;
}
.room-snippet {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #6d7481;
  font-size: 13px;
  flex: 1;
  line-height: 1.4;
}
.count {
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: inline-grid;
  place-items: center;
  line-height: 1;
  font-size: 10px;
  border-radius: 999px;
  color: #fff;
  background: #5265ca;
  font-weight: 650;
}
.ai-inbox {
  margin: 10px 19px 17px;
  padding: 11px 13px;
  border: 1px solid #dddff7;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  border-radius: 13px;
  background:
    linear-gradient(
      105deg,
      #f3f0ff,
      #f6f8ff 70%);
  box-shadow: 0 2px 7px #334eb807;
}
.ai-inbox:hover {
  border-color: #bac2ee;
}
.friday-orb {
  display: inline-block;
  position: relative;
  isolation: isolate;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse at 28% 18%,
      #d7f1ff 1%,
      transparent 43%),
    radial-gradient(
      ellipse at 75% 65%,
      #4c2ada 10%,
      transparent 54%),
    conic-gradient(
      from -25deg,
      #a8ccff,
      #7867f8,
      #e4acff,
      #456bf3,
      #79d2ff,
      #a8ccff);
  box-shadow:
    inset -2px -3px 6px #4039c74d,
    inset 2px 2px 4px #ffffffd1,
    0 2px 5px #5547bc2a;
}
.friday-orb:after {
  content: "";
  position: absolute;
  left: 26%;
  top: 25%;
  width: 48%;
  height: 48%;
  background:
    radial-gradient(
      ellipse,
      #fff 16%,
      #fff8 42%,
      #fff0 70%);
  transform: rotate(30deg);
}
.ai-inbox b,
.ai-inbox small {
  display: block;
}
.ai-inbox b {
  font-size: 11px;
  letter-spacing: .095em;
  color: #4d4b89;
}
.ai-inbox small {
  font-size: 14px;
  margin-top: 3px;
  font-weight: 600;
  color: #343851;
}
.ai-go {
  margin-left: auto;
  color: #6873a7;
}
.ai-go .ic {
  width: 18px;
}
.chat {
  grid-row: 2;
  grid-column: 3;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  position: relative;
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 2.5vw, 40px);
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  min-height: 78px;
}
.chat-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-align: left;
}
.chat-identity > span:last-child {
  min-width: 0;
}
.chat-identity strong,
.chat-identity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-identity strong {
  font-size: 18px;
  font-weight: 670;
  letter-spacing: -.6px;
}
.chat-identity small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.chat-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.back {
  display: none;
}
.thread {
  overflow-y: auto;
  min-height: 0;
  flex: 1;
  overscroll-behavior: contain;
  padding: 8px clamp(17px, 3.4vw, 60px) 14px;
  scrollbar-width: thin;
  scrollbar-color: #dbdce4 transparent;
  background-color: #fbfbf9;
  background-image: radial-gradient(#9aabc12a .8px, transparent .8px);
  background-size: 17px 17px;
}
.date-marker {
  text-align: center;
  display: flex;
  justify-content: center;
  margin: 11px 0 18px;
}
.date-marker span {
  background: #fff;
  border: 1px solid #e1e3e9;
  color: #717a86;
  border-radius: 15px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 530;
}
.msg {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin: 0 0 16px;
  position: relative;
}
.msg .avatar {
  width: 29px;
  height: 29px;
  font-size: 10px;
  margin-bottom: 2px;
}
.msg .sender {
  margin: 0 0 5px 3px;
  font-size: 12px;
  font-weight: 650;
  color: #505976;
}
.msg-main {
  max-width: min(85%, 540px);
  min-width: 0;
}
.bubble {
  border: 1px solid #e4e6eb;
  background: #fff;
  border-radius: 14px 14px 14px 3px;
  box-shadow: 0 2px 3px #22293c04;
  position: relative;
  padding: 9px 12px 6px;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.bubble p {
  margin: 0;
  white-space: pre-wrap;
}
.msg.mine {
  justify-content: flex-end;
}
.msg.mine .bubble {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  border-radius: 14px 14px 3px 14px;
}
.msg.mine .time-row {
  color: #e3e7ff;
}
.time-row {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
  font-size: 10px;
  color: #7d8492;
  line-height: 1;
  margin: 4px 0 1px;
}
.time-row .ic {
  width: 14px;
  height: 13px;
}
.attachment-art {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  margin: 6px 0 2px;
  width: clamp(190px, 23.5vw, 330px);
  max-width: 100%;
  position: relative;
  background: #e0e3ff;
}
.attachment-art img {
  width: 100%;
  display: block;
}
.chat-file {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  background: #f3f5fa;
  border-radius: 8px;
  padding: 7px 9px;
  margin: 4px 0;
}
.chat-file .ic {
  width: 17px;
  height: 17px;
}
.chat-file span {
  font-size: 13px;
  font-weight: 575;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mine .chat-file {
  background: #ffffff26;
}
.file-image {
  max-height: 180px;
  max-width: 100%;
  display: block;
  object-fit: contain;
  border-radius: 7px;
}
.attachment-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #626d83;
  font-weight: 550;
  margin: 5px 0 0;
}
.attachment-title .ic {
  width: 13px;
  height: 13px;
}
.reaction {
  border: 1px solid #d4dbef;
  border-radius: 14px;
  background: #f8faff;
  box-shadow: 0 1px 3px #2c41620d;
  padding: 2px 7px;
  margin: 4px 0 0 4px;
  color: #505c81;
  font-size: 11px;
}
.composer-zone {
  background: #fbfbf9;
  padding: 9px clamp(14px, 2.4vw, 40px) 17px;
}
.composer {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid #dce0e9;
  border-radius: 13px;
  box-shadow: 0 3px 8px #28334c08;
  padding: 7px 8px;
}
.composer textarea {
  flex: 1;
  min-width: 0;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  line-height: 1.45;
  max-height: 104px;
  padding: 7px 2px;
}
.composer textarea:focus-visible {
  outline: 0;
}
.send-button {
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex: none;
}
.send-button:hover {
  background: #273db3;
}
.send-button .ic {
  width: 18px;
  height: 18px;
}
.send-button:disabled {
  opacity: .55;
}
.empty {
  padding: 30px 15px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.thread .empty {
  margin: auto;
  align-self: center;
}
.empty strong {
  display: block;
  color: #3b465c;
  font-size: 17px;
  letter-spacing: -.4px;
  margin-bottom: 4px;
}
#thread-search-bar {
  display: flex;
  gap: 7px;
  background: white;
  padding: 7px 16px;
  border-bottom: 1px solid var(--line);
}
#thread-search-bar label {
  flex: 1;
}
.modal-layer:empty {
  display: none;
}
.modal-layer {
  position: fixed;
  inset: 0;
  background: #161c3540;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 16px;
  backdrop-filter: blur(3px);
}
.dialog {
  background: #fff;
  width: min(100%, 440px);
  border-radius: 20px;
  box-shadow: 0 22px 65px #141c3b35;
  overflow: auto;
  max-height: 85vh;
  max-height: 85dvh;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 9px;
  gap: 10px;
}
.dialog-head h2 {
  font-size: 21px;
  letter-spacing: -.7px;
  margin: 0;
}
.dialog-content {
  padding: 5px 22px 23px;
}
.dialog-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #647087;
  margin: 8px 0 16px;
}
.dialog-content label.field {
  display: block;
  margin: 12px 0;
  color: #4c556a;
  font-size: 13px;
  font-weight: 600;
}
.field input,
.field select,
.dialog-content .input {
  width: 100%;
  background: #fcfcfd;
  border: 1px solid #dce0e8;
  border-radius: 8px;
  padding: 10px;
  margin-top: 5px;
  font-size: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  padding: 8px 13px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid #d8dfea;
  background: #fff;
  border-radius: 9px;
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.btn:disabled {
  opacity: .5;
}
.btn:hover {
  filter: brightness(.97);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.row-action,
.person-row {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  gap: 11px;
  padding: 10px 2px;
  border-bottom: 1px solid #eef0f4;
  font-size: 14px;
}
.row-action:hover,
.person-row:hover {
  background: #f7f8fc;
}
.row-action .ic {
  width: 17px;
  height: 17px;
  color: #626e88;
}
.person-row > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.person-row b,
.person-row small {
  display: block;
}
.person-row b {
  font-size: 14px;
}
.person-row small {
  margin-top: 3px;
  color: #737d90;
  font-size: 12px;
}
.person-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}
.modal-note {
  background: #f0f3fe;
  border-radius: 9px;
  padding: 10px 12px;
  color: #505e82;
  font-size: 13px;
  line-height: 1.55;
}
.error {
  color: #a32c3f !important;
  font-size: 13px !important;
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
}
.emoji-grid button {
  font-size: 25px;
  padding: 6px;
  border-radius: 8px;
}
.emoji-grid button:hover {
  background: #f2f4fa;
}
.toast {
  position: fixed;
  z-index: 80;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #262d43;
  color: white;
  border-radius: 10px;
  box-shadow: 0 8px 24px #222a4930;
  padding: 10px 16px;
  max-width: 90vw;
  font-size: 14px;
  line-height: 1.5;
}
.preview-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  background: #eef1fa;
  border-radius: 9px;
  padding: 4px 8px;
  font-size: 13px;
}
.preview-modal {
  max-width: 100%;
  border-radius: 10px;
  display: block;
}
.download-link {
  display: inline-flex;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
}
.invite-link {
  width: 100%;
  min-height: 58px;
  border: 1px solid #dbe0ec;
  border-radius: 8px;
  padding: 8px;
  color: #374566;
  font: 12px monospace;
}
.subheading {
  font-size: 13px;
  color: #636c80;
  margin: 16px 0 3px;
}
.mobile-ai {
  display: none;
}
@media (min-width: 1400px) {
  .room {
    min-height: 76px;
  }
  .inbox-controls {
    padding-top: 28px;
  }
  .thread {
    padding-left: 6%;
    padding-right: 6%;
  }
  .bubble {
    font-size: 15px;
  }
  .msg {
    margin-bottom: 20px;
  }
}
@media (max-height: 740px) and (min-width: 761px) {
  .workspace {
    grid-template-rows: 60px minmax(0, 1fr);
  }
  .brandmark {
    margin: 2px auto 11px;
  }
  .chat-header {
    min-height: 64px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .inbox-controls {
    padding-top: 16px;
  }
  .room {
    min-height: 62px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .date-marker {
    margin: 5px 0 10px;
  }
  .msg {
    margin-bottom: 10px;
  }
  .attachment-art {
    width: 230px;
  }
  .ai-inbox {
    margin-bottom: 9px;
  }
  .rail nav {
    gap: 4px;
  }
}
@media (max-width: 1030px) and (min-width: 761px) {
  .workspace {
    grid-template-columns: 68px 280px minmax(0, 1fr);
  }
  .nav-item {
    width: 53px;
  }
  .masthead {
    padding: 0 20px;
  }
  .inbox-controls {
    padding-left: 16px;
    padding-right: 16px;
  }
  .thread {
    padding-left: 17px;
    padding-right: 17px;
  }
  .chat-header {
    padding-left: 18px;
    padding-right: 14px;
  }
  .room {
    gap: 8px;
  }
  .room .avatar {
    width: 38px;
    height: 38px;
  }
  .workspace-label {
    display: none;
  }
  .mast-divider {
    display: none;
  }
}
@media (max-width: 760px) {
  .workspace {
    display: flex;
    flex-direction: column;
    min-height: 280px;
  }
  .masthead {
    order: 0;
    height: 59px;
    flex-shrink: 0;
    padding: 0 16px;
  }
  .wordmark {
    font-size: 28px;
  }
  .mast-actions {
    gap: 7px;
  }
  .workspace-label,
  .mast-divider {
    display: none;
  }
  .word-product {
    font-size: 15px;
  }
  .word-divider {
    margin: 0 8px;
    height: 17px;
  }
  .sample-label {
    font-size: 11px;
    padding: 5px 8px;
  }
  .rail {
    order: 3;
    flex-direction: row;
    justify-content: center;
    padding: 3px 6px max(3px, env(safe-area-inset-bottom));
    flex-shrink: 0;
    background: #293fb0;
  }
  .brandmark,
  .rail-bottom {
    display: none;
  }
  .rail nav {
    flex-direction: row;
    justify-content: space-around;
    gap: 3px;
  }
  .nav-item {
    height: 46px;
    width: 62px;
    gap: 2px;
    font-size: 10px;
    border-radius: 9px;
  }
  .nav-icon .ic {
    width: 19px;
    height: 19px;
  }
  .inbox {
    order: 1;
    flex: 1;
    border: 0;
    min-height: 0;
  }
  .inbox-controls {
    padding: 15px 16px 2px;
  }
  .inbox-title {
    margin-bottom: 12px;
  }
  .inbox h1 {
    font-size: 27px;
  }
  .room-list {
    padding: 0 9px;
  }
  .room {
    min-height: 63px;
    padding: 9px 10px;
  }
  .ai-inbox {
    margin: 6px 14px 9px;
    padding: 7px 12px;
  }
  .ai-inbox .friday-orb {
    width: 30px;
    height: 30px;
  }
  .ai-inbox small {
    margin-top: 0;
  }
  .chat {
    display: none;
  }
  .workspace.thread-open .masthead,
  .workspace.thread-open .inbox,
  .workspace.thread-open .rail {
    display: none;
  }
  .workspace.thread-open .chat {
    display: flex;
    flex: 1;
    overflow: hidden;
  }
  .back {
    display: grid;
    width: 28px;
  }
  .chat-header {
    min-height: 60px;
    justify-content: initial;
    padding: 7px 9px;
    gap: 4px;
  }
  .chat-identity {
    gap: 7px;
    flex: 1;
  }
  .chat-identity strong {
    font-size: 16px;
  }
  .chat-header .avatar {
    width: 34px;
    height: 34px;
  }
  .chat-actions {
    gap: 0;
  }
  .chat-actions .square-button {
    width: 30px;
  }
  .chat-actions .ic {
    width: 18px;
  }
  .thread {
    padding: 6px 12px 12px;
  }
  .msg-main {
    max-width: 84%;
  }
  .msg {
    gap: 6px;
  }
  .msg .avatar {
    width: 24px;
    height: 24px;
  }
  .attachment-art {
    width: 235px;
  }
  .composer-zone {
    padding: 6px 9px max(8px, env(safe-area-inset-bottom));
  }
  .composer {
    padding: 4px 6px;
    gap: 2px;
  }
  .composer textarea {
    font-size: 16px;
  }
  .composer .square-button {
    width: 30px;
  }
  .mobile-ai {
    display: grid;
  }
  .dialog {
    max-height: 90dvh;
  }
  .toast {
    bottom: 65px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .room,
  .filter,
  .nav-item,
  .ai-inbox,
  .send-button {
    transition:
      background .15s,
      border-color .15s,
      box-shadow .15s;
  }
  .dialog {
    animation: appear .15s ease-out;
  }
  @keyframes appear {
    from {
      transform: translateY(6px);
      opacity: .75;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}
.friday-icon {
  width: 35px;
  height: 35px;
  display: block;
}
.floating-friday {
  position: absolute;
  right: clamp(16px, 2.5vw, 38px);
  bottom: 90px;
  z-index: 2;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid #e2dff6;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px #50528c25;
}
.floating-friday img {
  width: 37px;
  height: 37px;
  display: block;
}
.floating-friday:hover {
  box-shadow: 0 4px 15px #5257ba45;
}
.thread .msg:last-child {
  padding-right: 30px;
}
.preview-file > span:first-child .ic {
  width: 16px;
  height: 16px;
}
@media (max-width: 760px) {
  .floating-friday {
    width: 37px;
    height: 37px;
    bottom: 73px;
    right: 12px;
  }
  .floating-friday img {
    width: 31px;
    height: 31px;
  }
  .ai-inbox .friday-icon {
    width: 30px;
    height: 30px;
  }
  .thread .msg:last-child {
    padding-right: 30px;
  }
}
.file-video {
  max-width: 100%;
  max-height: 220px;
  border-radius: 7px;
}
.file-audio {
  max-width: 100%;
  width: 230px;
  height: 34px;
}
.load-older {
  display: flex;
  margin: 4px auto 13px;
  background: #fff;
  border: 1px solid #d8dce7;
  border-radius: 999px;
  padding: 5px 12px;
  color: #435492;
  font-size: 12px;
}

.data-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 7px 9px 7px 12px;
  background: #eff2fb;
  color: #495770;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
}
.data-notice .square-button { margin-left: auto; width: 27px; height: 27px; }
.data-notice .ic { width: 15px; height: 15px; }
.chat:has(#data-notice:not([hidden])) .floating-friday {
  bottom: auto;
  top: 88px;
}
@media(max-width:760px) {
  .chat:has(#data-notice:not([hidden])) .floating-friday { top: 66px; }
}
