
:root {
  --green-dark: #075e54;
  --green: #128c7e;
  --green-bright: #25d366;
  --bg: #efeae2;
  --panel: #f7f9f8;
  --text: #111b21;
  --muted: #667781;
  --line: rgba(17, 27, 33, 0.10);
  --shadow: 0 24px 70px rgba(17, 27, 33, 0.16);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 211, 102, .12), transparent 28%),
    linear-gradient(135deg, #f4f1eb, #e8eee9);
}

body {
  min-height: 100vh;
  padding: 28px;
}

.page-shell {
  width: min(1180px, 100%);
  min-height: calc(100vh - 56px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  border-radius: 26px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.7);
}

.info-panel {
  padding: 34px;
  background:
    linear-gradient(rgba(7,94,84,.95), rgba(7,94,84,.95)),
    radial-gradient(circle at top right, rgba(37,211,102,.25), transparent 35%);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.brand-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  height: 62px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
  background: white;
  border-radius: 12px;
  padding: 6px 14px;
  display: block;
}

.status {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 4px rgba(37,211,102,.14);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .14em;
  font-weight: 700;
  opacity: .75;
}

.intro h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.06;
}

.intro p {
  margin: 0;
  line-height: 1.65;
  color: rgba(255,255,255,.82);
}

.info-list {
  display: grid;
  gap: 18px;
}

.info-list div {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.06);
  border-radius: 16px;
}

.info-list strong,
.info-list span {
  display: block;
}

.info-list strong {
  margin-bottom: 6px;
  font-size: 14px;
}

.info-list span {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,.72);
}

.privacy {
  margin-top: auto;
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,.62);
}

.chat-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.chat-header {
  height: 76px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: #f0f2f5;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.chat-avatar {
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.chat-avatar img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.chat-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-title strong {
  font-size: 15px;
}

.chat-title span {
  font-size: 12px;
  color: var(--muted);
}

.chat-frame-wrap {
  flex: 1;
  min-height: 640px;
  background:
    linear-gradient(rgba(239,234,226,.94), rgba(239,234,226,.94)),
    radial-gradient(circle at 1px 1px, rgba(17,27,33,.055) 1px, transparent 0);
  background-size: auto, 18px 18px;
}

iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 640px;
  border: 0;
  background: transparent;
}

@media (max-width: 900px) {
  html, body {
    padding: 0;
    margin: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .page-shell {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    border-radius: 0;
    grid-template-columns: 1fr;
    box-shadow: none;
    border: none;
  }

  .info-panel {
    display: none;
  }

  .chat-card {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .chat-header {
    flex-shrink: 0;
    position: relative;
    top: 0;
    z-index: 10;
  }

  .chat-frame-wrap {
    flex: 1;
    height: 100%;
    min-height: 0;
  }

  iframe {
    width: 100%;
    height: 100%;
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .chat-header {
    height: 68px;
    padding: 0 14px;
  }

  .chat-avatar {
    width: 42px;
    height: 42px;
  }
}
