@font-face {
  font-family: Manrope;
  src: url("/assets/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  font-family: Manrope, sans-serif;
  color: #253831;
  background: #eef0e9;
  font-synthesis: none;
  --bg: #f7f8f4;
  --surface: #fff;
  --soft: #f1f4ef;
  --ink: #253831;
  --muted: #758178;
  --line: #e7ebe4;
  --accent: #086e62;
  --mint: #e0eee5;
  --out: #dceee0;
  --canvas: #f2f4ec;
  --danger: #b5473e;
  --shadow: 0 18px 70px #1935280b;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button,
a {
  -webkit-touch-callout: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
input,
textarea {
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
input,
textarea {
  border: 0;
  background: transparent;
  outline: none;
  min-width: 0;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 25px;
  letter-spacing: -1.1px;
  font-weight: 800;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.7px;
}
.icon {
  height: 21px;
  width: 21px;
  flex-shrink: 0;
  vertical-align: middle;
}
.icon-button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--muted);
  flex-shrink: 0;
  transition:
    background 0.18s,
    color 0.18s;
}
.icon-button:hover {
  background: var(--soft);
  color: var(--accent);
}
.icon-button.active {
  background: var(--mint);
  color: var(--accent);
}
.soft-green {
  background: var(--mint);
  color: var(--accent);
}
.text-button {
  font-size: 12px;
  color: var(--accent);
  padding: 9px 0;
  text-align: left;
}
.text-link {
  color: var(--accent);
  font-size: 12px;
}
.danger-text {
  color: var(--danger) !important;
}
.online-text {
  color: var(--accent) !important;
}
.preview-bar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 32px;
}
.preview-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.preview-brand img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.preview-brand strong {
  font-size: 23px;
  letter-spacing: -1px;
  font-weight: 800;
}
.brand-dot {
  color: var(--accent);
}
.preview-caption {
  font-size: 11px;
  color: var(--muted);
  border-left: 1px solid #d4dbd1;
  margin-left: 10px;
  padding-left: 20px;
}
.view-switch {
  display: flex;
  padding: 4px;
  background: #e4e8de;
  border: 1px solid #dce2d7;
  border-radius: 12px;
  gap: 4px;
}
.view-switch a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 11px;
  color: #6a766c;
}
.view-switch a.active {
  background: #fff;
  color: #214438;
  box-shadow: 0 2px 4px #00000008;
}
.view-switch .icon {
  width: 16px;
  height: 16px;
}
.preview-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}
.demo-pill {
  font-size: 10px;
  color: #778273;
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.1px;
}
.demo-pill i,
.list-footer i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #72a287;
}
.preview-stage {
  height: calc(100dvh - 72px);
  padding: 4px 24px 24px;
  min-height: 560px;
}
.app-shell {
  height: 100%;
  max-width: 1700px;
  margin: auto;
  border: 1px solid #dde4d8;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 76px 326px minmax(0, 1fr);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.rail {
  background: var(--bg);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 0 20px;
}
.rail-logo {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  margin-bottom: 33px;
}
.rail nav {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.nav-button {
  position: relative;
  color: var(--muted);
  width: 52px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: 0.18s;
}
.nav-button span {
  font-size: 9px;
}
.rail .nav-button span {
  display: none;
}
.nav-button .icon {
  width: 23px;
  height: 23px;
}
.nav-button:hover {
  background: var(--soft);
}
.nav-button.active {
  background: var(--mint);
  color: var(--accent);
}
.nav-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  right: 10px;
  top: 9px;
  border: 1px solid var(--mint);
}
.rail-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 17px;
}
.self-avatar {
  height: 36px;
  width: 36px;
  background: #e0d3bd;
  color: #7d644a;
  border-radius: 50%;
  font-weight: 700;
}
.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 29px 24px 22px;
  gap: 8px;
}
.list-heading p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  white-space: nowrap;
}
.list-heading .icon-button {
  width: 35px;
  height: 35px;
  border-radius: 11px;
}
.search-box {
  background: var(--soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  margin: 0 20px;
  padding: 0 12px;
  height: 40px;
  flex-shrink: 0;
}
.search-box .icon {
  height: 17px;
  width: 17px;
}
.search-box input {
  width: 100%;
  font-size: 12px;
  height: 100%;
}
.search-box kbd {
  white-space: nowrap;
  font-size: 10px;
  color: #a0aaa0;
  font-family: inherit;
}
.filters {
  display: flex;
  gap: 5px;
  padding: 17px 20px 20px;
}
.filters button {
  font-size: 10px;
  padding: 7px 9px;
  border-radius: 8px;
  white-space: nowrap;
  color: var(--muted);
}
.filters button.active {
  background: var(--mint);
  color: var(--accent);
  font-weight: 700;
}
.filters button span {
  font-size: 9px;
}
.list-scroll {
  flex: 1;
  overflow: auto;
  min-height: 0;
  padding: 0 10px;
}
.chat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px 10px;
  border-radius: 12px;
  text-align: left;
  transition: background 0.2s;
}
.chat-row:hover,
.contact-row:hover {
  background: var(--soft);
}
.chat-row.selected {
  background: #eaf2e9;
}
.avatar {
  height: 46px;
  width: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.5px;
  background: #dce9e0;
  color: #476752;
  isolation: isolate;
}
.avatar:before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid #ffffff52;
  border-radius: 50%;
  z-index: -1;
}
.avatar.sage {
  background: #d4ddc7;
  color: #425239;
}
.avatar.sand {
  background: #e4dbc8;
  color: #806442;
}
.avatar.rose {
  background: #eddbd9;
  color: #9e6660;
}
.avatar.blue {
  background: #d4e2e7;
  color: #557784;
}
.avatar.lavender {
  background: #e3dfec;
  color: #817090;
}
.avatar.peach {
  background: #f0dfcc;
  color: #a17b59;
}
.avatar.saved {
  background: var(--mint);
  color: var(--accent);
}
.avatar.self {
  background: #ddd1bb;
  color: #79613f;
}
.avatar.large {
  height: 88px;
  width: 88px;
  font-size: 29px;
}
.online-dot {
  position: absolute;
  bottom: 0;
  right: 1px;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background: #609377;
  border: 2px solid var(--surface);
}
.large .online-dot {
  height: 15px;
  width: 15px;
  right: 4px;
  bottom: 3px;
}
.chat-summary {
  flex: 1;
  min-width: 0;
}
.chat-row-top,
.chat-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.chat-row-top strong {
  font-size: 12px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-row-top time {
  font-size: 9px;
  color: var(--muted);
  flex-shrink: 0;
}
.chat-row-bottom {
  margin-top: 7px;
}
.preview-text {
  font-size: 10px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 18px;
}
.preview-text .icon {
  width: 12px;
  height: 12px;
  margin-right: 3px;
}
.preview-text.draft {
  color: var(--accent);
}
.row-marks {
  display: flex;
  flex-shrink: 0;
}
.row-marks .icon {
  width: 12px;
  height: 12px;
  color: #9aab9c;
}
.unread-badge {
  background: var(--accent);
  color: white;
  border-radius: 7px;
  min-width: 17px;
  height: 17px;
  text-align: center;
  font-size: 9px;
  line-height: 17px;
}
.list-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 24px;
  font-size: 10px;
  color: var(--muted);
}
.list-footer > .icon {
  height: 16px;
  width: 16px;
}
.list-footer i {
  margin-left: auto;
}
.conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--canvas);
  position: relative;
}
.conversation-header {
  height: 84px;
  flex-shrink: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  gap: 12px;
}
.conversation-person {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 0;
  min-width: 0;
}
.conversation-person .avatar {
  height: 42px;
  width: 42px;
  font-size: 13px;
}
.conversation-person strong {
  font-size: 13px;
  display: block;
  font-weight: 750;
  white-space: nowrap;
}
.conversation-person small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
  color: var(--muted);
}
.conversation-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}
.conversation-actions .icon {
  width: 20px;
  height: 20px;
}
.back-button {
  display: none;
}
.messages {
  flex: 1;
  overflow: auto;
  padding: 0 6% 20px;
  background-image: radial-gradient(#899b8720 0.8px, transparent 0.8px);
  background-size: 20px 20px;
  min-height: 0;
  scroll-behavior: smooth;
}
.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #839181;
  font-size: 9px;
  padding: 21px 0 16px;
  letter-spacing: 0.1px;
}
.privacy-note .icon {
  width: 11px;
  height: 11px;
}
.privacy-note button {
  display: flex;
  padding: 5px;
  color: inherit;
}
.day-divider {
  text-align: center;
  margin: 0 0 23px;
}
.day-divider span {
  font-size: 9px;
  color: #86917f;
  background: #e8ecdfb3;
  padding: 6px 13px;
  border-radius: 20px;
  display: inline-block;
}
.message-stack {
  display: flex;
  flex-direction: column;
  gap: 13px;
  max-width: 850px;
  margin: auto;
}
.message-line {
  display: flex;
  align-items: center;
  gap: 3px;
  position: relative;
  max-width: 100%;
}
.message-line.mine {
  flex-direction: row-reverse;
}
.bubble {
  max-width: 75%;
  background: var(--surface);
  padding: 12px 15px 7px;
  border: 1px solid #e7e9df90;
  box-shadow: 0 2px 2px #333b2c03;
  border-radius: 14px 14px 14px 4px;
  min-width: 80px;
}
.mine .bubble {
  background: var(--out);
  border-color: #d3e5d490;
  border-radius: 14px 14px 4px 14px;
}
.bubble p {
  font-size: 12px;
  line-height: 1.75;
  white-space: normal;
  overflow-wrap: anywhere;
}
.message-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: #839280;
  font-size: 8px;
  margin-top: 3px;
}
.message-meta .icon {
  width: 14px;
  height: 14px;
  color: #6c9b78;
}
.message-more {
  opacity: 0;
  height: 30px;
  width: 30px;
}
.message-line:hover .message-more,
.message-line:focus-within .message-more {
  opacity: 1;
}
.bubble.with-photo {
  padding: 5px 5px 6px;
  max-width: 350px;
}
.with-photo p {
  padding: 6px 8px 0;
  font-size: 11px;
}
.with-photo .message-meta {
  padding-right: 8px;
}
.image-message {
  display: block;
  padding: 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: 9px;
}
.image-message img {
  display: block;
  width: 328px;
  max-width: 100%;
  height: 158px;
  object-fit: cover;
}
.voice-message {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 228px;
  padding: 1px 0;
}
.voice-play {
  border-radius: 50%;
  width: 33px;
  height: 33px;
  background: var(--mint);
  color: var(--accent);
}
.voice-play .icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.voice-message > span:last-child {
  font-size: 10px;
  color: var(--muted);
}
.wave {
  display: flex;
  gap: 2px;
  align-items: center;
  height: 32px;
  max-width: 100%;
}
.wave i {
  width: 2px;
  height: var(--h);
  background: #93b99e;
  border-radius: 2px;
}
.playing .wave i {
  animation: wave 0.7s ease-in-out infinite alternate;
}
.playing .wave i:nth-child(2n) {
  animation-delay: 0.3s;
}
.composer-zone {
  padding: 13px 28px 16px;
  flex-shrink: 0;
}
.composer {
  display: flex;
  align-items: flex-end;
  padding: 6px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  gap: 5px;
  box-shadow: 0 3px 6px #21391703;
}
.composer textarea {
  padding: 11px 3px;
  resize: none;
  flex: 1;
  min-height: 40px;
  max-height: 120px;
  line-height: 20px;
  font-size: 12px;
}
.composer .icon-button {
  width: 35px;
  height: 40px;
}
.send-button {
  height: 40px;
  width: 40px;
  background: var(--accent);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.send-button:hover {
  filter: brightness(1.1);
}
.send-button .icon {
  width: 18px;
  height: 18px;
}
.composer-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 11px 6px 0;
  font-size: 8px;
  color: #8f9a89;
}
.composer-hint .icon {
  width: 10px;
  height: 10px;
  margin-right: 4px;
}
.composer-reply {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: var(--surface);
  border-radius: 10px;
}
.composer-reply > span {
  flex: 1;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.composer-reply strong {
  display: block;
  color: var(--accent);
  font-size: 10px;
}
.reply-quote {
  border-left: 2px solid var(--accent);
  padding-left: 8px;
  margin-bottom: 8px;
  max-height: 62px;
  overflow: hidden;
}
.reply-quote strong,
.reply-quote span {
  display: block;
  font-size: 10px;
}
.reply-quote strong {
  color: var(--accent);
  margin-bottom: 3px;
}
.forwarded {
  font-size: 10px;
  color: var(--accent);
  margin-bottom: 4px;
}
.conversation-search {
  margin: 10px 20px;
}
.empty-state {
  padding: 40px 18px;
  text-align: center;
  color: var(--muted);
}
.empty-state > .icon {
  width: 34px;
  height: 34px;
  margin-bottom: 15px;
}
.empty-state h2 {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 10px;
}
.empty-state p {
  font-size: 12px;
  line-height: 1.8;
}
.contact-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 18px 12px;
  border-radius: 12px;
}
.contact-row > span:nth-child(2) {
  flex: 1;
}
.contact-row strong {
  font-size: 12px;
  display: block;
}
.contact-row small {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  margin-top: 5px;
}
.contact-row small .icon {
  height: 12px;
  width: 12px;
}
.contact-row > .icon {
  color: var(--muted);
  width: 18px;
  height: 18px;
}
.section-note {
  padding: 0 24px 15px;
  color: var(--muted);
  font-size: 11px;
}
.settings-scroll {
  overflow: auto;
  padding: 0 19px 20px;
}
.my-profile {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
  padding: 16px 0 24px;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.my-profile strong {
  font-size: 18px;
}
.my-profile small {
  font-size: 11px;
  color: var(--muted);
}
.my-profile .large {
  height: 70px;
  width: 70px;
  font-size: 25px;
  margin-bottom: 7px;
}
.setting-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  padding: 17px 2px;
  border-bottom: 1px solid var(--line);
}
.setting-row > .icon:first-child {
  color: var(--accent);
  height: 19px;
  width: 19px;
}
.setting-row > span {
  flex: 1;
  min-width: 0;
  font-size: 12px;
}
.setting-row strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
}
.setting-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.setting-row > .icon:last-child {
  height: 13px;
  width: 13px;
  color: var(--muted);
}
.settings-scroll > .text-button {
  margin: 15px 0;
}
.profile-open {
  grid-template-columns: 76px 310px minmax(0, 1fr) 255px;
}
.profile-panel {
  background: var(--surface);
  border-left: 1px solid var(--line);
  padding: 0 22px 20px;
  overflow: auto;
}
.profile-top {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.profile-top .icon-button {
  width: 25px;
  height: 32px;
  margin-left: -5px;
}
.profile-top .icon {
  width: 17px;
  height: 17px;
}
.profile-identity {
  text-align: center;
  padding: 15px 0 25px;
}
.profile-identity h2 {
  font-size: 19px;
  margin-top: 16px;
}
.profile-identity p {
  font-size: 10px;
  margin-top: 5px;
}
.profile-shortcuts {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 21px;
}
.profile-shortcuts .icon-button {
  background: var(--soft);
  color: var(--accent);
  width: 38px;
  height: 38px;
}
.profile-fields {
  padding: 19px 0 11px;
  border-top: 1px solid var(--line);
}
.profile-fields small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 5px;
}
.profile-fields p {
  font-size: 11px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.profile-fields .text-button {
  padding: 2px 0 9px;
  font-size: 11px;
}
.security-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  text-align: left;
  width: 100%;
  color: var(--accent);
}
.security-row > span {
  font-size: 10px;
  flex: 1;
  font-weight: 650;
}
.security-row small {
  font-size: 8px;
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 400;
}
.security-row > .icon {
  width: 18px;
  height: 18px;
}
.security-row > .icon:last-child {
  width: 12px;
  height: 12px;
  color: var(--muted);
}
.profile-media {
  padding: 22px 0 8px;
}
.profile-media > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.profile-media strong {
  font-size: 11px;
}
.profile-media .text-button {
  font-size: 10px;
}
.media-thumb {
  position: relative;
  border-radius: 11px;
  overflow: hidden;
  display: block;
  padding: 0;
  width: 100%;
  margin-top: 7px;
}
.media-thumb img {
  width: 100%;
  display: block;
  aspect-ratio: 1.7;
  object-fit: cover;
}
.media-thumb span {
  position: absolute;
  inset: auto 0 0;
  padding: 9px;
  text-align: left;
  color: white;
  background: linear-gradient(transparent, #183f3bd9);
  font-size: 10px;
}
.media-thumb .icon {
  height: 14px;
  width: 14px;
  margin-right: 5px;
}
.file-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  text-align: left;
  max-width: 100%;
}
.file-message > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.file-message strong {
  display: block;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.file-message small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.file-message > .icon {
  width: 16px;
  color: var(--accent);
}
.file-icon {
  height: 38px;
  width: 34px;
  background: var(--mint);
  color: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bubble audio {
  max-width: 100%;
  width: 260px;
  height: 38px;
}
.attachment-note {
  font-size: 10px !important;
  color: var(--muted);
}
.blocked-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  gap: 10px;
}
.bottom-nav,
.phone-status {
  display: none;
}
/* The phone preview is a separate, touch-first layout. */
.mobile-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 115px;
  position: relative;
  padding: 16px 24px 35px;
  background: radial-gradient(ellipse at 63% 50%, #d7e4d270, transparent 58%);
  min-height: 760px;
}
.mobile-intro {
  max-width: 350px;
  margin-bottom: 20px;
}
.eyebrow {
  font-size: 9px;
  color: #7d8b7a;
  letter-spacing: 2px;
  font-weight: 700;
}
.mobile-intro h2 {
  font-size: 58px;
  line-height: 1.16;
  letter-spacing: -3.1px;
  color: #264438;
  margin: 28px 0 25px;
  font-weight: 650;
}
.mobile-intro em {
  font-style: normal;
  color: #65876a;
}
.mobile-intro p {
  font-size: 12px;
  line-height: 1.9;
  color: #778571;
}
.intro-rule {
  height: 1px;
  background: #d4dece;
  width: 50px;
  margin: 31px 0 22px;
}
.intro-foot {
  font-size: 10px;
  color: #86917e;
}
.phone-shell {
  margin: 0;
  width: 390px;
  height: min(810px, calc(100dvh - 125px));
  min-height: 675px;
  grid-template-columns: 1fr;
  grid-template-rows: 42px minmax(0, 1fr) 72px;
  border-radius: 37px;
  border: 6px solid #354238;
  box-shadow:
    0 35px 65px #2336281e,
    0 0 0 1px #c4cbbd;
  flex-shrink: 0;
  position: relative;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 26px 0;
  font-size: 11px;
  font-weight: 750;
  background: var(--surface);
  position: relative;
}
.dynamic-island {
  position: absolute;
  width: 99px;
  height: 25px;
  background: #243127;
  border-radius: 20px;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
}
.phone-status > span:last-child {
  font-size: 10px;
  letter-spacing: 1px;
}
.phone-status b {
  font-size: 17px;
}
.phone-shell .sidebar {
  border: 0;
  overflow: hidden;
}
.phone-shell .list-heading {
  padding: 20px 21px 23px;
}
.phone-shell h1 {
  font-size: 28px;
  letter-spacing: -1px;
}
.phone-shell .list-heading p {
  font-size: 10px;
  margin-top: 6px;
}
.phone-shell .list-heading .icon-button {
  width: 40px;
  height: 40px;
  border-radius: 13px;
}
.phone-shell .search-box {
  height: 40px;
  margin: 0 20px;
}
.phone-shell .search-box input {
  font-size: 12px;
}
.phone-shell .filters {
  padding: 14px 20px 16px;
  gap: 8px;
}
.phone-shell .filters button {
  font-size: 10px;
  padding: 7px 11px;
}
.phone-shell .list-scroll {
  padding: 0 10px;
}
.phone-shell .chat-row {
  padding: 17px 10px;
  gap: 13px;
  border-radius: 0;
}
.phone-shell .chat-row .avatar {
  height: 48px;
  width: 48px;
  font-size: 15px;
}
.phone-shell .chat-row-top strong {
  font-size: 12px;
}
.phone-shell .chat-row-top time {
  font-size: 9px;
}
.phone-shell .preview-text {
  font-size: 10px;
}
.phone-shell .list-footer {
  padding: 14px 22px;
  font-size: 9px;
}
.bottom-nav {
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding: 9px 10px 15px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  position: relative;
}
.bottom-nav:after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 4px;
  background: #202d26;
  border-radius: 3px;
}
.bottom-nav .nav-button {
  width: 66px;
  height: 44px;
  border-radius: 12px;
  gap: 3px;
}
.bottom-nav .nav-button span {
  font-size: 8px;
}
.bottom-nav .nav-dot {
  right: 18px;
  top: 4px;
}
.bottom-nav .nav-button.active {
  background: none;
}
.bottom-nav .nav-button .icon {
  width: 22px;
  height: 22px;
}
.phone-shell .conversation {
  display: none;
}
.phone-shell.chat-open {
  grid-template-rows: 42px minmax(0, 1fr);
}
.phone-shell.chat-open .sidebar,
.phone-shell.chat-open .bottom-nav {
  display: none;
}
.phone-shell.chat-open .conversation {
  display: flex;
}
.phone-shell .back-button {
  display: flex;
  width: 24px;
  min-width: 24px;
}
.phone-shell .conversation-header {
  height: 67px;
  padding: 0 12px;
  gap: 8px;
}
.phone-shell .conversation-person {
  gap: 9px;
  flex: 1;
}
.phone-shell .conversation-person strong {
  font-size: 11px;
}
.phone-shell .conversation-person .avatar {
  height: 35px;
  width: 35px;
  font-size: 12px;
}
.phone-shell .conversation-person small {
  font-size: 9px;
}
.phone-shell .conversation-actions {
  gap: 0;
}
.phone-shell .conversation-actions .icon-button {
  width: 29px;
  height: 36px;
}
.phone-shell .conversation-actions .icon {
  width: 18px;
  height: 18px;
}
.phone-shell .desktop-action {
  display: none;
}
.phone-shell .messages {
  padding: 0 14px 16px;
}
.phone-shell .privacy-note {
  font-size: 8px;
  padding: 16px 0 12px;
  gap: 5px;
}
.phone-shell .day-divider {
  margin-bottom: 16px;
}
.phone-shell .day-divider span {
  font-size: 8px;
}
.phone-shell .message-stack {
  gap: 12px;
}
.phone-shell .bubble {
  max-width: 88%;
  padding: 9px 11px 6px;
}
.phone-shell .bubble p {
  font-size: 11px;
  line-height: 1.75;
}
.phone-shell .bubble.with-photo {
  padding: 4px;
  max-width: 264px;
}
.phone-shell .image-message img {
  height: 129px;
  width: 255px;
}
.phone-shell .with-photo p {
  font-size: 10px;
  padding: 4px 6px 0;
}
.phone-shell .message-meta {
  font-size: 8px;
}
.phone-shell .message-more {
  position: absolute;
  right: -10px;
  bottom: 0;
  width: 22px;
  height: 25px;
}
.phone-shell .mine .message-more {
  left: -10px;
  right: auto;
}
.phone-shell .message-more .icon {
  width: 15px;
  height: 15px;
}
.phone-shell .composer-zone {
  padding: 10px 10px 20px;
}
.phone-shell .composer {
  gap: 2px;
  padding: 5px;
}
.phone-shell .composer textarea {
  font-size: 11px;
  line-height: 20px;
}
.phone-shell .composer .icon-button {
  width: 29px;
}
.phone-shell .composer .emoji-button {
  display: none;
}
.phone-shell .send-button {
  width: 35px;
  height: 40px;
}
.phone-shell .composer-hint {
  display: none;
}
.phone-shell .conversation-search {
  margin: 8px 12px;
}
.phone-shell .settings-scroll {
  padding: 0 22px 20px;
}
.mobile-preview-label {
  position: absolute;
  bottom: 11px;
  font-size: 9px;
  color: #8c9988;
  left: calc(50% + 100px);
  letter-spacing: 2px;
}
.mobile-preview-label span {
  padding-left: 30px;
}
/* Dialogs: native focus containment, dismissible sheets on mobile. */
dialog {
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  box-shadow: 0 25px 100px #0b261e33;
  overflow: auto;
}
dialog::backdrop {
  background: #192f2959;
  backdrop-filter: blur(6px);
}
dialog[open] {
  animation: enter 0.2s ease-out;
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 12px;
  gap: 12px;
}
.dialog-header h2 {
  font-size: 20px;
}
.dialog-header .icon-button {
  width: 30px;
  height: 30px;
}
.dialog-body {
  padding: 8px 26px 26px;
}
.dialog-body > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
  margin-bottom: 18px;
}
.dialog-body .profile-top {
  display: none;
}
.dialog-body .profile-identity {
  padding-top: 5px;
}
.dialog-body .profile-media {
  display: none;
}
.dialog-body .setting-row {
  padding: 15px 0;
}
.primary,
.secondary {
  width: 100%;
  border-radius: 11px;
  padding: 13px 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 650;
  margin-top: 12px;
}
.primary {
  background: var(--accent);
  color: white;
}
.secondary {
  background: var(--soft);
  color: var(--ink);
}
.danger-button {
  background: var(--danger);
  color: white;
}
.field {
  display: block;
  margin: 14px 0;
  font-size: 11px;
  font-weight: 650;
}
.field input,
.field textarea,
.field select {
  display: block;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 100%;
  padding: 12px;
  background: var(--bg);
  font-size: 13px;
  color: var(--ink);
}
.field textarea {
  resize: vertical;
  min-height: 70px;
}
.field input:focus {
  border-color: var(--accent);
}
.field small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 7px;
  font-size: 10px;
}
.form-note {
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--soft);
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin: 12px 0;
}
.form-error {
  color: var(--danger);
  font-size: 11px;
  line-height: 1.7;
  margin: 10px 0;
}
.menu-item {
  padding: 13px 9px;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  font-size: 12px;
  border-radius: 9px;
  text-align: left;
}
.menu-item:hover {
  background: var(--soft);
}
.menu-item > .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.menu-item.danger-text > .icon {
  color: var(--danger);
}
.toggle-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  cursor: pointer;
}
.toggle-row > span {
  flex: 1;
}
.toggle-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 4px;
}
.toggle-row input {
  appearance: none;
  background: #cbd3c7;
  width: 36px;
  height: 21px;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
  transition: 0.2s;
}
.toggle-row input:after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: white;
  transition: 0.2s;
}
.toggle-row input:checked {
  background: var(--accent);
}
.toggle-row input:checked:after {
  transform: translateX(15px);
}
.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.theme-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  font-size: 11px;
}
.theme-card.selected {
  border: 2px solid var(--accent);
  padding: 11px;
}
.theme-sample {
  height: 83px;
  background: #edf1e5;
  border-radius: 8px;
  margin-bottom: 9px;
  padding: 13px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.theme-sample i {
  height: 17px;
  width: 70%;
  background: white;
  border-radius: 5px;
}
.theme-sample i + i {
  align-self: flex-end;
  background: #c9e5d1;
}
.theme-dark {
  background: #1b3029;
}
.theme-dark i {
  background: #304a3e;
}
.theme-dark i + i {
  background: #396953;
}
.otp-input {
  text-align: center;
  letter-spacing: 10px;
  font-size: 27px !important;
  font-weight: 700;
}
.demo-code {
  font-size: 12px;
  background: #e5efdf;
  border: 1px dashed #9db692;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  color: #486638;
}
.demo-code strong {
  letter-spacing: 4px;
}
.otp-tabs {
  display: flex;
  background: var(--soft);
  padding: 4px;
  border-radius: 9px;
}
.otp-tabs button {
  flex: 1;
  padding: 9px;
  border-radius: 7px;
  font-size: 11px;
}
.otp-tabs button.active {
  background: var(--surface);
  box-shadow: 0 1px 4px #1111;
}
.code-note {
  font-size: 10px;
  color: var(--muted);
  margin: 9px 0;
  text-align: center;
}
.about-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
}
.about-logo img {
  width: 60px;
  height: 60px;
  border-radius: 17px;
}
.about-logo strong {
  font-size: 28px;
  letter-spacing: -1px;
}
.about-logo small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.about-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0;
}
.about-items span {
  font-size: 10px;
  background: var(--soft);
  color: var(--accent);
  padding: 7px 9px;
  border-radius: 7px;
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.emoji-grid button {
  font-size: 25px;
  padding: 8px;
  border-radius: 10px;
}
.emoji-grid button:hover {
  background: var(--soft);
}
.full-image {
  width: 100%;
  border-radius: 12px;
}
.recording-view {
  text-align: center;
  padding: 15px 0;
}
.recording-view .wave {
  justify-content: center;
  margin: 22px 0;
}
.record-timer {
  font-size: 34px;
  letter-spacing: 3px;
  margin: 15px 0;
}
.record-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c56659;
  margin-right: 10px;
  animation: blink 1s infinite;
}
.record-actions {
  display: flex;
  gap: 10px;
}
.record-actions button {
  margin-top: 5px;
}
.recording-view audio {
  width: 100%;
  margin: 18px 0;
}
.call-dialog {
  background: #203f34;
  color: white;
  max-width: 430px;
  overflow: hidden;
}
.call-dialog .dialog-header {
  padding: 18px 22px 0;
}
.call-dialog .dialog-header h2 {
  font-size: 11px;
  color: #adbdad;
  font-weight: 500;
}
.call-dialog .dialog-header .icon-button {
  color: #b1c4b5;
}
.call-dialog .dialog-body {
  padding: 0 26px 30px;
  text-align: center;
}
.call-person {
  padding: 50px 0 20px;
}
.call-person .avatar {
  width: 100px;
  height: 100px;
  font-size: 32px;
  box-shadow:
    0 0 0 15px #ffffff04,
    0 0 0 30px #ffffff03;
}
.call-person h2 {
  font-size: 25px;
  color: #f3f4e8;
  margin-top: 34px;
}
.call-person p {
  color: #afc4b4;
  font-size: 11px;
  margin-top: 12px;
}
.call-time {
  font-size: 19px;
  letter-spacing: 3px;
  height: 32px;
  color: #d6e7d7;
}
.call-badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 20px;
  font-size: 9px;
  color: #aac3ac;
  background: #ffffff08;
  margin: 14px 0 30px;
  gap: 5px;
  align-items: center;
}
.call-badge .icon {
  height: 12px;
  width: 12px;
}
.call-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.call-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  color: #a9bcac;
}
.call-control button {
  height: 52px;
  width: 52px;
  background: #ffffff12;
  color: #dfeadd;
  border-radius: 50%;
}
.call-control button.active {
  background: #dce9d9;
  color: #203f34;
}
.call-end {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #cf675a;
  color: white;
  border-radius: 50%;
  margin: 30px auto 0;
}
.call-end .icon {
  transform: rotate(135deg);
  height: 27px;
  width: 27px;
}
.call-demo-note {
  font-size: 9px !important;
  color: #a8bdad !important;
  text-align: center;
  margin-top: 17px !important;
  line-height: 1.8;
}
.camera-preview {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 15px;
  background: #142c23;
  margin-top: 18px;
  transform: scaleX(-1);
}
.call-feedback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  padding: 20px 0;
}
.progress-track {
  height: 6px;
  background: var(--soft);
  border-radius: 8px;
  margin: 15px 0;
  overflow: hidden;
}
.progress-track i {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.4s;
}
.media-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.media-list img {
  width: 100%;
  border-radius: 12px;
}
.media-list .file-message {
  padding: 12px;
  background: var(--soft);
  border-radius: 12px;
}
.security-symbol {
  width: 65px;
  height: 65px;
  background: var(--mint);
  color: var(--accent);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 7px auto 22px;
}
.security-symbol .icon {
  width: 32px;
  height: 32px;
}
#toast {
  position: fixed;
  z-index: 10000;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 15px);
  max-width: min(450px, calc(100vw - 36px));
  width: max-content;
  background: #263d32;
  color: #f0f5eb;
  padding: 13px 21px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.6;
  box-shadow: 0 8px 30px #11271926;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  text-align: center;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
/* Dark mode shares exactly the same interaction and layout rules. */
[data-theme="dark"] {
  --bg: #1c2b24;
  --surface: #22352c;
  --soft: #2b4034;
  --ink: #e5eddf;
  --muted: #a0b29f;
  --line: #33483b;
  --accent: #97cba9;
  --mint: #314f3b;
  --out: #345940;
  --canvas: #192b21;
  --danger: #eda393;
  background: #17231c;
  color: var(--ink);
}
[data-theme="dark"] .preview-bar {
  background: #17231c;
}
[data-theme="dark"] .preview-brand strong {
  color: #e1ecda;
}
[data-theme="dark"] .view-switch {
  background: #2b3d30;
  border-color: #3a4c3d;
}
[data-theme="dark"] .view-switch a.active {
  background: #415b45;
  color: #edf5e6;
}
[data-theme="dark"] .view-switch a {
  color: #9bb396;
}
[data-theme="dark"] .app-shell {
  border-color: #415140;
}
[data-theme="dark"] .chat-row.selected {
  background: #304c38;
}
[data-theme="dark"] .bubble {
  border-color: #3f594440;
}
[data-theme="dark"] .send-button,
[data-theme="dark"] .primary {
  color: #173a26;
}
[data-theme="dark"] .day-divider span {
  background: #2c4030;
  color: #a6b39b;
}
[data-theme="dark"] .preview-stage.mobile-stage {
  background: radial-gradient(ellipse at 63% 50%, #2a402680, transparent 58%);
}
[data-theme="dark"] .mobile-intro h2 {
  color: #dbe9d2;
}
[data-theme="dark"] .mobile-intro em {
  color: #93b286;
}
[data-theme="dark"] .demo-code {
  background: #304c38;
  color: #d4eacb;
}
[data-theme="dark"] .danger-button {
  background: #a34a41;
  color: white;
}
.large-text .bubble p {
  font-size: 15px;
}
.large-text .chat-row-top strong {
  font-size: 14px;
}
.large-text .phone-shell .bubble p {
  font-size: 13px;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes wave {
  to {
    height: 7px;
  }
}
@keyframes blink {
  50% {
    opacity: 0.3;
  }
}
@media (min-width: 1500px) {
  .chat-row {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .messages {
    padding-left: 9%;
    padding-right: 9%;
  }
  .bubble p {
    font-size: 13px;
  }
  .with-photo p {
    font-size: 12px;
  }
  .image-message img {
    height: 177px;
    width: 340px;
  }
  .bubble.with-photo {
    max-width: 355px;
  }
  .message-stack {
    gap: 16px;
  }
  .chat-row-top strong {
    font-size: 13px;
  }
  .preview-text {
    font-size: 11px;
  }
  .conversation-person strong {
    font-size: 14px;
  }
}
@media (max-width: 1200px) {
  .preview-caption {
    display: none;
  }
  .app-shell {
    grid-template-columns: 68px 294px minmax(0, 1fr);
  }
  .profile-open {
    grid-template-columns: 62px 270px minmax(0, 1fr) 230px;
  }
  .profile-panel {
    padding: 0 17px 20px;
  }
  .list-heading {
    padding: 26px 20px 22px;
  }
  .list-heading p {
    font-size: 9px;
  }
  .filters {
    gap: 2px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .filters button {
    padding: 7px 6px;
    font-size: 9px;
  }
  .conversation-header {
    padding: 0 20px;
  }
  .messages {
    padding-left: 5%;
    padding-right: 5%;
  }
  .composer-zone {
    padding-left: 18px;
    padding-right: 18px;
  }
  .mobile-stage {
    gap: 70px;
  }
  .phone-shell {
    grid-template-columns: 1fr;
  }
  .mobile-intro h2 {
    font-size: 48px;
  }
}
@media (max-width: 1020px) {
  .preview-bar {
    padding: 0 22px;
  }
  .demo-pill {
    display: none;
  }
  .profile-open {
    grid-template-columns: 68px 280px minmax(0, 1fr);
  }
  .profile-panel {
    position: absolute;
    right: 25px;
    top: 77px;
    bottom: 25px;
    width: 280px;
    z-index: 5;
    border-radius: 0 17px 17px 0;
    box-shadow: -15px 0 40px #21352318;
  }
  .mobile-stage {
    gap: 50px;
  }
  .mobile-intro h2 {
    font-size: 42px;
  }
  .mobile-intro {
    max-width: 275px;
  }
  .phone-shell {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 780px) {
  .preview-caption {
    display: none;
  }
  .preview-stage {
    padding: 0 12px 12px;
  }
  .app-shell {
    grid-template-columns: 60px 235px minmax(0, 1fr);
    border-radius: 14px;
  }
  .list-heading {
    padding: 23px 15px 18px;
  }
  h1 {
    font-size: 22px;
  }
  .list-heading p {
    font-size: 8px;
  }
  .search-box {
    margin: 0 12px;
  }
  .filters {
    padding-left: 9px;
    padding-right: 9px;
    gap: 1px;
  }
  .filters button {
    font-size: 8px;
    padding: 7px 5px;
  }
  .chat-row {
    gap: 8px;
    padding: 15px 7px;
  }
  .chat-row .avatar {
    width: 37px;
    height: 37px;
    font-size: 12px;
  }
  .chat-row-top strong {
    font-size: 10px;
  }
  .preview-text {
    font-size: 9px;
  }
  .chat-row-top time {
    font-size: 8px;
  }
  .conversation-header {
    padding: 0 13px;
  }
  .conversation-person .avatar {
    display: none;
  }
  .conversation-actions {
    gap: 0;
  }
  .conversation-actions .icon-button {
    width: 30px;
  }
  .conversation-actions .desktop-action {
    display: none;
  }
  .composer-hint {
    display: none;
  }
  .composer-zone {
    padding: 10px;
  }
  .composer .emoji-button {
    display: none;
  }
  .composer {
    gap: 1px;
  }
  .composer .icon-button {
    width: 29px;
  }
  .bubble {
    max-width: 92%;
    padding: 9px;
  }
  .bubble p {
    font-size: 11px;
  }
  .voice-message {
    min-width: 180px;
    gap: 6px;
  }
  .wave {
    gap: 2px;
  }
  .wave i:nth-child(n + 26) {
    display: none;
  }
  .mobile-stage {
    justify-content: center;
    min-height: 710px;
    gap: 0;
    padding: 8px 16px 30px;
  }
  .mobile-intro {
    display: none;
  }
  .phone-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 42px minmax(0, 1fr) 72px;
    border-radius: 37px;
    min-height: 650px;
  }
  .phone-shell .conversation-person .avatar {
    display: flex;
  }
  .phone-shell .wave i:nth-child(n + 26) {
    display: block;
  }
  .mobile-preview-label {
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    bottom: 7px;
  }
  .profile-open {
    grid-template-columns: 60px 235px minmax(0, 1fr);
  }
  .profile-panel {
    right: 13px;
    top: 73px;
    bottom: 13px;
    width: 250px;
  }
}
@media (max-width: 540px) {
  .preview-bar {
    height: 55px;
    padding: 0 12px;
    gap: 6px;
  }
  .preview-brand {
    gap: 6px;
  }
  .preview-brand img {
    width: 25px;
    height: 25px;
    border-radius: 8px;
  }
  .preview-brand strong {
    font-size: 19px;
  }
  .view-switch {
    gap: 0;
    padding: 3px;
    border-radius: 9px;
  }
  .view-switch a {
    padding: 7px 9px;
    gap: 5px;
    font-size: 9px;
    border-radius: 6px;
  }
  .view-switch .icon {
    width: 13px;
    height: 13px;
  }
  .preview-tools {
    gap: 0;
  }
  .preview-tools > .icon-button {
    width: 25px;
    height: 32px;
  }
  .preview-tools .icon {
    width: 17px;
    height: 17px;
  }
  .preview-stage {
    height: calc(100dvh - 55px);
    min-height: 0;
    padding: 0;
  }
  .app-shell:not(.phone-shell) {
    grid-template-columns: 55px 1fr;
    border-radius: 0;
    border: 0;
    position: relative;
  }
  .app-shell:not(.phone-shell) .conversation {
    display: none;
  }
  .app-shell:not(.phone-shell).chat-open {
    grid-template-columns: 1fr;
  }
  .app-shell:not(.phone-shell).chat-open .rail,
  .app-shell:not(.phone-shell).chat-open .sidebar {
    display: none;
  }
  .app-shell:not(.phone-shell).chat-open .conversation {
    display: flex;
  }
  .app-shell:not(.phone-shell) .back-button {
    display: flex;
  }
  .app-shell:not(.phone-shell) .sidebar .list-heading p {
    font-size: 10px;
  }
  .app-shell:not(.phone-shell) .sidebar .chat-row-top strong {
    font-size: 13px;
  }
  .app-shell:not(.phone-shell) .sidebar .avatar {
    height: 45px;
    width: 45px;
    font-size: 14px;
  }
  .app-shell:not(.phone-shell) .preview-text {
    font-size: 11px;
  }
  .app-shell:not(.phone-shell) .filters button {
    font-size: 10px;
    padding: 8px 9px;
  }
  .profile-panel {
    inset: 0;
    width: 100%;
    border-radius: 0;
  }
  .mobile-stage {
    display: block;
    min-height: 0;
    padding: 0;
  }
  .phone-shell {
    height: 100%;
    width: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    grid-template-rows: minmax(0, 1fr) 72px;
    max-width: none;
  }
  .phone-shell.chat-open {
    grid-template-rows: minmax(0, 1fr);
  }
  .phone-status {
    display: none;
  }
  .mobile-preview-label {
    display: none;
  }
  .phone-shell .list-heading {
    padding-top: 25px;
  }
  .phone-shell .list-heading h1 {
    font-size: 30px;
  }
  .phone-shell .chat-row {
    padding: 18px 10px;
  }
  .phone-shell .chat-row-top strong {
    font-size: 13px;
  }
  .phone-shell .preview-text {
    font-size: 11px;
  }
  .phone-shell .chat-row-top time {
    font-size: 10px;
  }
  .phone-shell .filters button {
    font-size: 10px;
  }
  .phone-shell .conversation-header {
    height: 74px;
    padding: 0 10px;
  }
  .phone-shell .conversation-person strong {
    font-size: 12px;
  }
  .phone-shell .bubble p {
    font-size: 12px;
  }
  .phone-shell .bubble.with-photo {
    max-width: 290px;
  }
  .phone-shell .image-message img {
    width: 281px;
    height: 146px;
  }
  .phone-shell .with-photo p {
    font-size: 11px;
  }
  .phone-shell .composer-zone {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .phone-shell .composer textarea {
    font-size: 13px;
  }
  .phone-shell .composer .icon-button {
    width: 32px;
  }
  .phone-shell .send-button {
    width: 40px;
  }
  .bottom-nav {
    padding-bottom: max(15px, env(safe-area-inset-bottom));
  }
  .bottom-nav .nav-button span {
    font-size: 9px;
  }
  .phone-shell .privacy-note {
    font-size: 9px;
  }
  .phone-shell .message-more {
    opacity: 0.3;
  }
  dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 30px);
    border-radius: 20px;
  }
  .dialog-body {
    padding: 6px 22px 24px;
  }
  .dialog-header {
    padding: 20px 22px 12px;
  }
  .phone-shell .list-footer {
    display: none;
  }
  .phone-shell .contact-row strong {
    font-size: 13px;
  }
  .phone-shell .setting-row strong {
    font-size: 13px;
  }
}
@media (max-width: 360px) {
  .preview-brand strong {
    display: none;
  }
  .preview-bar {
    justify-content: space-between;
  }
  .phone-shell .conversation-person .avatar {
    width: 30px;
    height: 30px;
  }
  .phone-shell .conversation-person strong {
    font-size: 11px;
  }
  .phone-shell .conversation-actions .icon-button {
    width: 25px;
  }
  .phone-shell .conversation-header {
    gap: 5px;
  }
  .phone-shell .bubble p {
    font-size: 11px;
  }
  .phone-shell .voice-message {
    min-width: 190px;
  }
  .phone-shell .wave i:nth-child(n + 27) {
    display: none;
  }
  .phone-shell .filters {
    gap: 3px;
  }
  .phone-shell .filters button {
    padding: 7px 8px;
  }
  .phone-shell .composer .icon-button {
    width: 27px;
  }
  .phone-shell .composer textarea {
    font-size: 12px;
  }
  .phone-shell .chat-row-top strong {
    font-size: 12px;
  }
  .phone-shell .preview-text {
    font-size: 10px;
  }
  .phone-shell .chat-row {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.guide-shell {
  max-width: 1100px;
  margin: auto;
  padding: 0 36px;
}
.guide-nav {
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.guide-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
}
.guide-nav span {
  letter-spacing: 2px;
  font-size: 9px;
}
.guide-hero {
  padding: 65px 0 40px;
  max-width: 740px;
}
.guide-hero h1 {
  font-size: 60px;
  letter-spacing: -3px;
  line-height: 1.18;
  margin: 20px 0 25px;
  font-weight: 650;
}
.guide-hero p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 620px;
}
.guide-hero .primary {
  width: max-content;
  margin-top: 30px;
  gap: 12px;
}
.guide-banner {
  padding: 21px 24px;
  background: var(--mint);
  color: var(--accent);
  font-size: 12px;
  line-height: 1.9;
  border-radius: 12px;
}
.guide-tabs {
  display: flex;
  gap: 28px;
  margin: 30px 0;
  padding: 0 0 25px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--accent);
}
.guide-shell section {
  padding: 30px 0;
  scroll-margin-top: 20px;
}
.guide-shell section > h2 {
  font-size: 29px;
  margin: 12px 0;
}
.guide-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.guide-search {
  margin: 25px 0;
  background: var(--surface);
  max-width: 500px;
}
.api-group {
  margin: 30px 0;
}
.api-group h3 {
  font-size: 14px;
  margin-bottom: 17px;
}
.api-group h3 span {
  color: var(--muted);
  font-weight: 400;
  margin-left: 8px;
}
.api-operation {
  border-top: 1px solid var(--line);
}
.api-operation:last-child {
  border-bottom: 1px solid var(--line);
}
.api-operation summary {
  display: flex;
  align-items: center;
  gap: 13px;
  list-style: none;
  padding: 17px 0;
  cursor: pointer;
}
.api-operation summary::-webkit-details-marker {
  display: none;
}
.api-operation summary code {
  font-size: 11px;
  min-width: 270px;
}
.api-operation summary > span:nth-last-child(2) {
  font-size: 11px;
  color: var(--muted);
  flex: 1;
}
.api-operation summary > .icon {
  height: 13px;
  width: 13px;
}
.api-operation[open] summary > .icon {
  transform: rotate(90deg);
}
.method {
  font-size: 9px;
  font-weight: 750;
  width: 53px;
  flex-shrink: 0;
  text-align: center;
  background: #dfebd9;
  color: #5c7b53;
  padding: 5px;
  border-radius: 4px;
}
.method-post {
  background: #ddeae7;
  color: #367968;
}
.method-delete {
  background: #efe0d9;
  color: #9a6558;
}
.method-patch,
.method-put {
  background: #e7e3d4;
  color: #84713e;
}
.api-description {
  background: var(--surface);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 11px;
  line-height: 1.8;
}
.api-description > p {
  font-size: 12px;
  line-height: 1.9;
}
.api-description > small {
  display: block;
  color: var(--accent);
  margin: 15px 0;
}
.api-description pre {
  font-size: 10px;
  background: var(--bg);
  padding: 15px;
  border-radius: 8px;
  overflow: auto;
  max-height: 350px;
  white-space: pre;
  line-height: 1.7;
}
.api-description li {
  margin: 5px 0;
}
.api-description .api-state {
  font-size: 10px;
  color: var(--muted);
  padding-top: 8px;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 25px 0 8px;
}
.event-grid article {
  background: var(--surface);
  border-radius: 12px;
  padding: 23px;
}
.event-grid h3 {
  font-size: 13px;
  margin: 0 0 20px;
}
.event-grid code {
  font-size: 11px;
  line-height: 1.9;
  color: var(--accent);
}
.event-grid p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 20px;
}
.release-steps {
  margin: 30px 0;
}
.release-steps article {
  display: flex;
  gap: 25px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.release-steps article > span {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent);
  padding-top: 3px;
}
.release-steps h3 {
  margin: 0 0 7px;
  font-size: 15px;
}
.release-steps p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
.guide-shell footer {
  padding: 30px 0;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
* {
  scrollbar-width: thin;
  scrollbar-color: #a4b39b66 transparent;
}
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #a4b39b66;
  border-radius: 10px;
}
.phone-shell .search-box kbd {
  display: none;
}
.phone-shell .conversation-actions .icon-button {
  min-height: 40px;
}
.phone-shell .back-button {
  min-height: 40px;
}
@media (max-width: 780px) {
  .guide-shell {
    padding: 0 24px;
  }
  .guide-hero h1 {
    font-size: 43px;
    letter-spacing: -2px;
  }
  .guide-hero {
    padding-top: 40px;
  }
  .api-operation summary {
    flex-wrap: wrap;
    gap: 10px;
  }
  .api-operation summary code {
    min-width: 0;
    overflow-wrap: anywhere;
    flex: 1;
  }
  .api-operation summary > span:nth-last-child(2) {
    flex-basis: 85%;
    order: 4;
    margin-left: 65px;
  }
  .event-grid {
    grid-template-columns: 1fr;
  }
  .guide-nav span {
    display: none;
  }
  .guide-shell section > h2 {
    font-size: 25px;
  }
  .guide-banner {
    padding: 17px;
    font-size: 11px;
  }
  .api-description {
    padding: 16px;
  }
  .guide-hero .primary {
    width: 100%;
  }
}
