/* Keep this generated tool readable inside the shared site theme. */
body.st-unified > x-dc {
  display: block;
  width: 100%;
  min-width: 0;
}

body.st-unified .deck {
  grid-template-columns: minmax(0, 1fr);
}

body.st-unified .shell > .hero {
  width: 100% !important;
}

body.st-unified .deck > * {
  min-width: 0;
}

body.st-unified :is(.panel, .bulk, .note, .phone-wrap) {
  max-width: 100%;
}

@media (min-width: 940px) {
  body.st-unified .deck {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr);
  }
}

html:not(.st-dark) body.st-unified {
  --bg: #f1f5f9;
  --panel: #ffffff;
  --panel2: #eaf0f5;
  --bubble-in: #ffffff;
  --bubble-out: #d9fdd3;
  --ink: #14212b;
  --ink-soft: #52616f;
  --line: #c9d4dc;
  --line-soft: #dde5ea;
  --accent: #087f68;
}

html:not(.st-dark) body.st-unified .theme-toggle {
  border-color: var(--line);
  background: var(--panel2);
}

html:not(.st-dark) body.st-unified .theme-toggle button {
  color: var(--ink-soft);
}

html:not(.st-dark) body.st-unified .theme-toggle button[aria-pressed="true"] {
  color: #075e54;
  background: #fff;
}

html.st-dark body.st-unified {
  --bg: #0b141a;
  --panel: #111b21;
  --panel2: #182229;
  --bubble-in: #1f2c33;
  --bubble-out: #005c4b;
  --ink: #e9edef;
  --ink-soft: #aebac1;
  --line: #34434c;
  --line-soft: #29363e;
  --accent: #53bdeb;
}

html:not(.st-dark) body.st-unified .urlpreview {
  background: #f8fafc;
}

html:not(.st-dark) body.st-unified .mode[aria-selected="true"] {
  color: #075e54;
  background: linear-gradient(180deg, rgba(37, 211, 102, .16), #fff);
}

/* The preview is intentionally a dark WhatsApp screen in either site theme. */
body.st-unified .phone {
  --bg: #0b141a;
  --panel: #111b21;
  --panel2: #202c33;
  --bubble-out: #005c4b;
  --ink: #e9edef;
  --ink-soft: #aebac1;
  --line: #34434c;
  --line-soft: #29363e;
  --accent: #53bdeb;
  position: relative;
  width: 268px;
  max-width: min(100%, 82vw);
  padding: 10px;
  border: 2px solid #34434c;
  border-radius: 46px;
  box-shadow: 0 28px 60px -24px rgba(0, 0, 0, .75), inset 0 0 0 2px #05080a;
}

body.st-unified .phone::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 17px;
  left: 50%;
  width: 72px;
  height: 18px;
  border-radius: 999px;
  background: #05080a;
  transform: translateX(-50%);
}

body.st-unified .phone::after {
  content: "";
  position: absolute;
  top: 24px;
  left: calc(50% + 23px);
  z-index: 4;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #263640;
}

body.st-unified .phone-screen {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  border-radius: 36px;
}

body.st-unified .wa-top {
  padding-top: 36px;
}

body.st-unified .wa-body {
  flex: 1;
  min-height: 360px;
}

body.st-unified .phone-cap {
  color: var(--ink-soft);
}

@media (max-width: 520px) {
  body.st-unified .phone-wrap {
    position: static;
  }

  body.st-unified .phone {
    width: 256px;
  }

  body.st-unified .phone-screen {
    min-height: 500px;
  }
}
