:root {
  color-scheme: light;
  --green: #0b6b5d;
  --green-dark: #084c43;
  --accent: #22c55e;
  --text: #12352f;
  --muted: #66736f;
  --line: #dbe7e2;
  --surface: #ffffff;
  --soft: #f2f7f5;
  --chat-bg: #f6f2ea;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: #fff; }
a { color: inherit; text-decoration: none; }

.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; background: var(--green); color: #fff;
}
.nav { display: flex; gap: 28px; color: var(--muted); font-weight: 650; }
.nav-cta, .button {
  border: 0; border-radius: 999px; padding: 12px 18px;
  font-weight: 800; cursor: pointer; display: inline-flex; justify-content: center;
}
.button.primary, .nav-cta { background: var(--green); color: #fff; }
.button.secondary { background: var(--soft); color: var(--green-dark); }

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(42px, 7vw, 96px) clamp(20px, 5vw, 72px);
}
.hero h1 { margin: 0; font-size: clamp(42px, 7vw, 82px); line-height: .96; letter-spacing: 0; }
.hero p { font-size: clamp(18px, 2vw, 22px); line-height: 1.55; color: var(--muted); max-width: 650px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-device { min-width: 0; }
.mock-browser {
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 28px 80px rgba(8,76,67,.18); background: #fff;
}
.mock-top { height: 42px; display: flex; gap: 8px; align-items: center; padding: 0 16px; background: #f7faf9; }
.mock-top span { width: 10px; height: 10px; border-radius: 50%; background: #bed0ca; }
.mock-app { height: 520px; display: grid; grid-template-columns: 250px 1fr; }
.mock-app aside { background: #fff; border-right: 1px solid var(--line); padding: 18px; }
.mock-title { font-weight: 900; color: var(--green); margin-bottom: 18px; }
.mock-search, .mock-composer, .new-chat-line input, .wide-input, .auth-panel input, .composer input {
  border: 1px solid transparent; border-radius: 999px; background: var(--soft); padding: 12px 14px;
}
.mock-contact { padding: 14px 10px; border-radius: 14px; display: grid; gap: 4px; margin-top: 8px; }
.mock-contact small { color: var(--muted); }
.mock-contact.active { background: #e8f7ef; }
.mock-chat { background: var(--chat-bg); position: relative; padding: 76px 22px 72px; overflow: hidden; }
.mock-chat::before, .message-list::before {
  content: ""; position: absolute; inset: 0; opacity: .45; pointer-events: none;
  background-image:
    radial-gradient(circle at 24px 24px, rgba(36,104,92,.16) 0 2px, transparent 3px),
    radial-gradient(circle at 86px 70px, rgba(212,178,112,.14) 0 3px, transparent 4px),
    linear-gradient(35deg, transparent 0 42%, rgba(36,104,92,.10) 43% 44%, transparent 45% 100%);
  background-size: 118px 112px;
}
.message-list::after {
  content: "T"; position: absolute; inset: auto 24px 18px auto; color: rgba(36,104,92,.05); font-size: 72px; font-weight: 900; pointer-events: none;
}
.mock-chat-head {
  position: absolute; inset: 0 0 auto; height: 58px; background: var(--green);
  color: #fff; padding: 12px 18px; font-weight: 800;
}
.mock-chat-head span { display: block; color: #c8eee4; font-size: 12px; font-weight: 600; }
.bubble, .msg {
  position: relative; max-width: 72%; padding: 10px 13px; border-radius: 14px; color: #111b21;
  margin: 10px 0; box-shadow: 0 1px 2px rgba(0,0,0,.08); line-height: 1.35;
}
.incoming { background: #fff; border: 1px solid #e6ded2; }
.outgoing { background: #d7f7d4; border: 1px solid #9cd8a3; margin-left: auto; }
.mock-composer { position: absolute; left: 18px; right: 18px; bottom: 14px; background: #fff; color: var(--muted); }

.feature-band {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); margin: 0 clamp(20px, 5vw, 72px) 72px;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.feature-band article { background: #fff; padding: 34px; }
.feature-band h2, .split h2 { margin: 0 0 12px; font-size: 28px; }
.feature-band p, .split p { color: var(--muted); line-height: 1.6; }
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center;
  padding: 64px clamp(20px, 5vw, 72px); background: var(--soft);
}
.deploy-box { display: grid; gap: 10px; }
.deploy-box code { background: var(--green-dark); color: #d7f8ea; padding: 16px; border-radius: 12px; }
footer { display: flex; justify-content: space-between; padding: 28px clamp(20px, 5vw, 72px); color: var(--muted); }

.site-header.compact { position: relative; }
.product-section {
  display: grid; grid-template-columns: .92fr 1.08fr; gap: 40px; align-items: center;
  padding: 28px clamp(20px, 5vw, 72px) 86px;
}
.section-copy h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1; margin: 0 0 18px; }
.section-copy p { color: var(--muted); font-size: 18px; line-height: 1.65; max-width: 620px; }
.text-link { display: inline-flex; margin-top: 10px; color: var(--green); font-weight: 900; }
.contact-preview {
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff;
  box-shadow: 0 22px 70px rgba(8,76,67,.12);
}
.contact-row { display: flex; gap: 14px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row span {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 900;
}
.contact-row b, .contact-row small { display: block; }
.contact-row small { color: var(--muted); margin-top: 3px; }
.site-footer { border-top: 1px solid var(--line); align-items: flex-start; gap: 24px; }
.site-footer p { margin: 6px 0 0; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer.small { justify-content: flex-start; gap: 22px; }
.page { min-height: calc(100vh - 72px); }
.page-hero {
  padding: clamp(48px, 8vw, 100px) clamp(20px, 5vw, 72px) 42px;
  background: linear-gradient(180deg, #fff 0%, #f3faf7 100%);
}
.page-hero h1 { margin: 0; font-size: clamp(40px, 7vw, 76px); line-height: .98; max-width: 980px; }
.page-hero p { color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; max-width: 850px; }
.feature-grid, .ops-layout {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px) 72px;
}
.feature-grid.two { grid-template-columns: repeat(2, 1fr); }
.feature-grid article, .ops-card {
  border: 1px solid var(--line); border-radius: 20px; background: #fff; padding: 26px;
}
.feature-grid h2, .ops-card h2 { margin: 0 0 10px; }
.feature-grid p, .ops-card p { color: var(--muted); line-height: 1.6; }
.ops-layout { grid-template-columns: repeat(4, 1fr); }
.deploy-box.wide { margin: 0 clamp(20px, 5vw, 72px) 72px; }
.help-steps { display: grid; gap: 14px; padding: 28px clamp(20px, 5vw, 72px) 72px; }
.help-steps article {
  display: flex; gap: 18px; align-items: flex-start; border: 1px solid var(--line);
  border-radius: 18px; background: #fff; padding: 22px;
}
.help-steps span {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 900;
}
.help-steps h2 { margin: 0 0 4px; }
.help-steps p { margin: 0; color: var(--muted); line-height: 1.55; }

.chat-page { min-height: 100vh; background: #dce7e2; }
.web-chat-shell { height: 100vh; min-height: 620px; display: grid; grid-template-columns: 360px minmax(0, 1fr); overflow: hidden; }
.web-sidebar { min-width: 0; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.web-sidebar-head {
  min-height: 72px; background: var(--green); color: #fff; display: flex;
  align-items: center; justify-content: space-between; padding: 0 18px;
  gap: 12px;
}
.web-sidebar-head span { display: block; font-size: 12px; color: #d7f8ea; margin-top: 3px; }
.mini-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 900;
}
.mini-brand .brand-mark {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.14);
}
.mini-brand span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.mini-brand strong,
.mini-brand small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-brand small {
  max-width: 190px;
  color: #ccece4;
  font-size: 12px;
  font-weight: 650;
}
.head-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.icon-button, .composer button, .new-chat-line button {
  width: 40px;
  height: 40px;
  border: 0;
  background: rgba(255,255,255,.14);
  color: #fff;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  font-weight: 900;
  display: inline-grid;
  place-items: center;
}
.auth-panel { padding: 18px; display: grid; gap: 12px; }
.auth-panel h1 { margin: 0 0 8px; }
.auth-panel input, .wide-input { width: 100%; font: inherit; }
.compact-form {
  display: grid;
  gap: 10px;
}
.verify-box {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 14px;
}
.verify-box h2 {
  margin: 0;
  font-size: 16px;
}
.split-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.button.ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green);
}
.phone-line { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.phone-line select {
  border: 1px solid transparent; border-radius: 999px; background: var(--soft); padding: 12px 10px; font: inherit;
}
.form-hint { color: var(--muted); margin-top: -6px; }
.hidden { display: none !important; }
#chatPanel { padding: 14px; display: grid; gap: 12px; overflow: auto; }
.sidebar-content { min-height: 0; }
.sidebar-tabs,
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.quick-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sidebar-tabs button,
.quick-actions button {
  min-width: 0;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--green-dark);
  padding: 9px 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-tabs button.active,
.sidebar-tabs button:hover,
.quick-actions button:hover {
  background: var(--green);
  color: #fff;
}
.profile-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.profile-panel input {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--soft);
  padding: 12px 14px;
  font: inherit;
}
.new-chat-line { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
.new-chat-line input,
.wide-input,
.composer input,
.auth-panel input {
  border: 1px solid transparent;
  outline: none;
}
.new-chat-line input:focus,
.wide-input:focus,
.composer input:focus,
.auth-panel input:focus {
  border-color: rgba(11,107,93,.4);
  box-shadow: 0 0 0 3px rgba(11,107,93,.10);
}
.new-chat-line button {
  background: var(--green);
  box-shadow: 0 10px 24px rgba(11,107,93,.24);
}
.web-chat-list { display: grid; gap: 2px; }
.web-chat-row {
  border: 0; background: transparent; text-align: left; padding: 14px 10px;
  border-radius: 14px; cursor: pointer; display: grid; gap: 4px;
}
.web-chat-row:hover, .web-chat-row.active { background: #e8f7ef; }
.web-chat-row strong { font-size: 15px; }
.web-chat-row span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-conversation {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 72px auto auto minmax(0, 1fr) auto auto auto;
  background: var(--chat-bg);
}
.conversation-head {
  grid-row: 1;
  background: var(--green); color: #fff; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0 22px; font-weight: 800;
}
#conversationTitle {
  min-width: 0;
  display: grid;
  gap: 3px;
}
#conversationTitle strong,
#conversationTitle small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#conversationTitle small {
  color: #ccece4;
  font-size: 13px;
  font-weight: 650;
}
.conversation-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.connection-banner { grid-row: 2; background: #fff7d6; color: #7a4d00; padding: 8px 16px; font-size: 13px; font-weight: 700; }
.search-bar {
  grid-row: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid #e6ded2;
}
.search-bar input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
}
.search-bar button {
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  padding: 0 14px;
  font-weight: 850;
  cursor: pointer;
}
.typing-line {
  grid-row: 5;
  padding: 6px 18px;
  color: var(--green);
  background: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 750;
}
.message-list { grid-row: 4; min-height: 0; position: relative; overflow: auto; padding: 18px; }
.msg { width: fit-content; }
.msg small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; text-align: right; }
.msg-image { display: block; max-width: min(280px, 64vw); max-height: 320px; border-radius: 10px; object-fit: cover; cursor: zoom-in; }
.reply-mini { border: 0; background: transparent; color: var(--green); cursor: pointer; font-weight: 900; padding: 0 4px; }
.quote {
  display: grid;
  gap: 2px;
  border-left: 4px solid var(--green);
  background: rgba(255,255,255,.62);
  border-radius: 8px;
  padding: 7px 9px;
  margin-bottom: 7px;
  max-width: 280px;
}
.quote strong { color: var(--green); font-size: 12px; }
.quote span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-link { color: inherit; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.voice-message, .video-message { display: grid; gap: 8px; min-width: min(260px, 68vw); }
.voice-head, .video-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 750; }
.voice-message audio { width: 100%; max-width: 280px; }
.voice-speed, .video-full-btn { border: 0; border-radius: 999px; padding: 4px 8px; background: #eaf6f1; color: var(--green); font-weight: 850; cursor: pointer; }
.voice-listen-state { font-size: 12px; color: var(--muted); }
.voice-message.unlistened .voice-listen-state { color: var(--green); font-weight: 850; }
.video-message video { width: 100%; max-width: 300px; max-height: 260px; border-radius: 12px; background: #000; }
.upload-progress { display: grid; gap: 4px; margin-top: 7px; min-width: 180px; }
.upload-progress > div { height: 6px; border-radius: 999px; overflow: hidden; background: rgba(11,107,93,.16); }
.upload-progress > div span { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .18s ease; }
.upload-progress small { margin: 0; text-align: left; color: var(--green); font-weight: 800; }
.msg-status { margin-left: 4px; font-weight: 800; }
.msg-status.failed { color: #dc2626; }
.msg.retryable { cursor: pointer; outline: 1px solid rgba(220,38,38,.25); }
.msg-status.read { color: #34b7f1; }
.reply-bar {
  grid-row: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid #e6ded2;
}
.reply-bar div { border-left: 4px solid var(--green); padding-left: 10px; min-width: 0; display: grid; gap: 2px; }
.reply-bar strong { color: var(--green); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-bar span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-bar button {
  border: 0;
  background: var(--soft);
  color: var(--muted);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 20px;
}
.composer {
  grid-row: 7;
  display: grid;
  grid-template-columns: 44px 44px minmax(160px, 1fr) 48px 44px 44px;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(248,244,236,.96);
  border-top: 1px solid #e6ded2;
  align-items: center;
}
.composer input {
  width: 100%;
  min-width: 0;
  font: inherit;
  background: #fff;
  border-radius: 999px;
  padding: 13px 16px;
}
.composer #messageInput { grid-column: 3; grid-row: 1; }
.composer #sendBtn { grid-column: 4; grid-row: 1; background: var(--green); }
.composer #voiceBtn { grid-column: 5; grid-row: 1; color: var(--green); background: #fff; border: 1px solid #d8e7e2; }
.composer #videoBtn { grid-column: 6; grid-row: 1; color: var(--green); background: #fff; border: 1px solid #d8e7e2; }
.composer #emojiBtn,
.composer #fileBtn { color: var(--green); background: #fff; border: 1px solid #d8e7e2; }
.composer button.recording { background: #dc2626; box-shadow: 0 0 0 6px rgba(220,38,38,.16); }
.emoji-panel {
  position: fixed; right: 18px; bottom: 74px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0,0,0,.15); border-radius: 18px; padding: 10px; display: flex; gap: 8px; flex-wrap: wrap; max-width: 320px;
}
.emoji-panel button { border: 0; background: transparent; font-size: 24px; cursor: pointer; padding: 6px; }
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,.88);
  display: grid;
  place-items: center;
  padding: 24px;
}
.image-modal img, .image-modal video {
  max-width: min(1100px, 96vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
  background: #000;
}
.image-modal video { width: min(1100px, 96vw); }
.image-modal button {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}
.details-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: #fff;
  border-left: 1px solid var(--line);
  width: min(520px, 94vw);
  overflow: auto;
  box-shadow: -18px 0 50px rgba(8,76,67,.08);
}
.details-head {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  background: var(--green);
  color: #fff;
}
.details-head button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.details-content {
  display: grid;
  gap: 16px;
  padding: 18px;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.admin-stat,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}
.admin-stat b,
.admin-stat span {
  display: block;
}
.admin-stat b {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.admin-stat span {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 900;
  color: var(--green-dark);
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-actions.compact {
  margin: 12px 0;
}
.admin-actions button,
.admin-card button,
.admin-table button,
.details-content > button {
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  padding: 10px 13px;
  font-weight: 800;
  cursor: pointer;
}
.admin-card {
  display: grid;
  gap: 12px;
}
.admin-card h3,
.admin-card p {
  margin: 0;
}
.admin-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}
.admin-card input,
.admin-card select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  font: inherit;
}
.admin-table {
  display: grid;
  gap: 8px;
}
.admin-table > div {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  padding: 12px;
}
.admin-table b,
.admin-table span {
  overflow-wrap: anywhere;
}
.admin-table span {
  color: var(--muted);
  line-height: 1.45;
}
.danger {
  color: #b91c1c;
  font-weight: 800;
}
.admin-error {
  display: grid;
  gap: 12px;
  border: 1px solid #fecaca;
  border-radius: 16px;
  background: #fff7f7;
  padding: 14px;
}
.admin-error h3 {
  margin: 0;
  color: #991b1b;
}
.admin-error p {
  margin: 0;
  color: #5f3333;
}
.admin-error code {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: #1f1717;
  color: #ffe4e6;
  overflow-wrap: anywhere;
}
pre {
  max-width: 100%;
  overflow: auto;
  margin: 0;
  border-radius: 12px;
  background: #0d1f1b;
  color: #d8fff0;
  padding: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4,21,18,.42);
}
.modal-card {
  width: min(560px, 96vw);
  max-height: 86vh;
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  padding: 20px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--green);
  font-size: 22px;
  cursor: pointer;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 70;
  transform: translateX(-50%);
  max-width: min(520px, 92vw);
  border-radius: 999px;
  background: #0d1f1b;
  color: #fff;
  padding: 12px 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.24);
}

@media (max-width: 860px) {
  .site-header { height: auto; padding: 14px 18px; gap: 12px; flex-wrap: wrap; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; font-size: 14px; }
  .hero, .split, .product-section { grid-template-columns: 1fr; }
  .mock-app { grid-template-columns: 1fr; height: 580px; }
  .mock-app aside { display: none; }
  .feature-band, .feature-grid, .feature-grid.two, .ops-layout { grid-template-columns: 1fr; }
  .web-chat-shell { height: auto; min-height: 100vh; grid-template-columns: 1fr; overflow: visible; }
  .web-sidebar { min-height: 42vh; overflow: visible; }
  .web-conversation { min-height: 58vh; }
  .details-panel { width: 100vw; }
  .composer { grid-template-columns: 42px 42px minmax(0, 1fr) 46px; }
  .composer #messageInput { grid-column: 3; }
  .composer #sendBtn { grid-column: 4; }
  .composer #voiceBtn, .composer #videoBtn { display: none; }
}
