@font-face {
  font-family: Plex;
  src: url('/demos/fonts/plex-regular.woff2');
}
@font-face {
  font-family: Plex;
  src: url('/demos/fonts/plex-semibold.woff2');
  font-weight: 600;
}
:root {
  --paper: rgb(250 248 247);
  --surface: rgb(255 255 255);
  --ink: rgb(12 21 51);
  --navy: rgb(26 46 119);
  --orange: rgb(201 60 8);
  --muted: rgb(91 100 134);
  --line: rgb(230 225 221);
  --soft: rgb(242 239 237);
  --good: rgb(10 122 133);
  --bad: rgb(173 41 47);
  --amber: rgb(163 104 13);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Plex, Arial, sans-serif;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
}
button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 7px;
  padding: 8px 11px;
  color: var(--ink);
  font-size: 11px;
}
button:hover {
  border-color: var(--orange);
}
button.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}
button.quiet {
  border: 0;
  background: transparent;
  padding: 4px;
  color: var(--orange);
}
.muted {
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy);
}
.brand img {
  width: 23px;
  height: 23px;
}
.brand small {
  font-weight: 400;
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}
.kicker {
  font-size: 9px;
  color: var(--orange);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 7px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 12px;
  line-height: 1.4;
}
.sub {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 7px;
}
.num {
  font-variant-numeric: tabular-nums;
}
.view {
  padding: 23px;
  min-height: 540px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: enter 0.4s both;
}
.view-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.view-head .tag {
  margin-left: auto;
}
.tag {
  display: inline-block;
  font-size: 9px;
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--soft);
  color: var(--muted);
  white-space: nowrap;
}
.tag.good {
  background: rgb(10 122 133 / 0.1);
  color: var(--good);
}
.tag.bad {
  background: rgb(173 41 47 / 0.08);
  color: var(--bad);
}
.tag.orange {
  background: rgb(201 60 8 / 0.08);
  color: var(--orange);
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.spread {
  justify-content: space-between;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 4px 0;
}
.plate {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px;
}
.fill {
  flex: 1;
}
.small {
  font-size: 10px;
  line-height: 1.5;
}
.micro {
  font-size: 9px;
  line-height: 1.5;
}
.check {
  color: var(--good);
  font-weight: 600;
}
.channel {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  border-radius: 50%;
}
.channel.large {
  width: 38px;
  height: 38px;
}
.sample-note {
  margin-top: auto;
  padding-top: 8px;
  font-size: 8px;
  color: var(--muted);
}
.bottom {
  margin-top: auto;
}
.property-photo {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
}
.property-cover {
  height: 168px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.property-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.property-cover .cover-text {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 14px 13px;
  color: white;
  background: linear-gradient(transparent, rgb(12 21 51 / 0.85));
}
.cover-text h2 {
  font-size: 18px;
}
.cover-text p {
  font-size: 10px;
  margin-top: 4px;
}
.metric {
  border-top: 2px solid var(--line);
  padding-top: 8px;
}
.metric strong {
  display: block;
  font-size: 23px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.metric span {
  font-size: 9px;
  color: var(--muted);
}
.bar {
  height: 5px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--soft);
}
.bar > span {
  display: block;
  height: 100%;
  background: var(--orange);
  border-radius: 9px;
  animation: grow 1s both;
  transform-origin: left;
}
.bar.teal > span {
  background: var(--good);
}
.donut {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.donut svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.donut circle {
  fill: none;
  stroke-width: 7;
}
.donut .base {
  stroke: var(--soft);
}
.donut .value {
  stroke: var(--good);
  stroke-linecap: round;
  animation: draw 1s ease both;
}
.donut.bad .value {
  stroke: var(--bad);
}
.donut.orange .value {
  stroke: var(--orange);
}
.donut.amber .value {
  stroke: var(--amber);
}
.donut-label {
  position: absolute;
  text-align: center;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.donut-label strong {
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.donut-label small {
  font-size: 8px;
  color: var(--muted);
  max-width: 64px;
}
.donuts {
  display: flex;
  justify-content: space-around;
  gap: 10px;
}
.donut-caption {
  text-align: center;
  font-size: 9px;
  margin-top: 5px;
  color: var(--muted);
}
.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bubble {
  align-self: flex-start;
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 11px 11px 11px 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.6;
  animation: enter 0.4s both;
}
.bubble.out {
  align-self: flex-end;
  border-radius: 11px 11px 2px 11px;
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.bubble.ai {
  background: rgb(201 60 8 / 0.055);
  border-color: rgb(201 60 8 / 0.16);
}
.bubble .who {
  font-size: 8px;
  display: block;
  margin-bottom: 3px;
  font-weight: 600;
  opacity: 0.7;
}
.bubble .time {
  display: block;
  font-size: 8px;
  opacity: 0.65;
  text-align: right;
  margin-top: 4px;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}
.avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: rgb(26 46 119 / 0.08);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}
.message-row {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  text-align: left;
  background: transparent;
  border-radius: 0;
  border-top: 0;
  border-left: 0;
  border-right: 0;
}
.message-row .sender {
  font-size: 12px;
  font-weight: 600;
}
.message-row .preview {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 5px;
}
.message-row time {
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted);
  text-align: right;
}
.message-row time b {
  font-weight: 600;
  color: var(--ink);
}
.message-row.active {
  background: rgb(201 60 8 / 0.04);
}
.new-lead {
  border-left: 3px solid var(--orange);
}
.score-explain {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
}
.reasons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 9px;
  color: var(--muted);
}
.steps-mini {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  gap: 8px;
}
.steps-mini span.on {
  color: var(--orange);
  font-weight: 600;
}
.post-preview {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  overflow: hidden;
}
.post-preview .post-head {
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 600;
}
.post-preview img.hero {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}
.post-preview.weak img.hero {
  filter: grayscale(0.7) contrast(0.65) brightness(0.85);
  object-position: 80% center;
}
.post-preview .post-copy {
  padding: 10px;
  font-size: 10px;
  line-height: 1.5;
}
.post-preview.vibrant .creative {
  position: relative;
  background: var(--navy);
}
.creative .stamp {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--orange);
  color: white;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 600;
}
.creative .price {
  position: absolute;
  right: 10px;
  top: 10px;
  border-radius: 5px;
  background: white;
  color: var(--navy);
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600;
}
.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  align-items: start;
}
.format-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  animation: enter 0.6s both;
}
.format-card:nth-child(2) {
  animation-delay: 0.16s;
}
.format-card:nth-child(3) {
  animation-delay: 0.32s;
}
.format-card > img {
  width: 100%;
  height: 105px;
  object-fit: cover;
}
.format-card.tall > img {
  height: 158px;
}
.format-card .format-footer {
  padding: 8px;
  font-size: 8px;
  line-height: 1.5;
}
.format-footer strong {
  display: block;
  font-size: 10px;
}
.format-footer .channel {
  width: 18px;
  height: 18px;
}
.publish-row {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}
.publish-row .check {
  margin-left: auto;
}
.record-shot {
  display: flex;
  justify-content: center;
  min-height: 240px;
  max-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.record-shot img {
  height: 320px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.schedule-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}
.schedule-row time {
  font-size: 9px;
  color: var(--muted);
}
.schedule-row .channel {
  width: 22px;
  height: 22px;
}
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.days .dow {
  font-size: 8px;
  color: var(--muted);
  padding: 4px 0;
}
.day {
  position: relative;
  min-height: 33px;
  font-size: 10px;
  border-radius: 5px;
  padding: 5px 2px;
}
.day.event {
  background: rgb(201 60 8 / 0.09);
  color: var(--orange);
  font-weight: 600;
}
.day.booked {
  background: var(--navy);
  color: white;
}
.day .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  margin: 3px auto 0;
}
.day.booked .dot {
  background: white;
}
.appointment {
  border-left: 3px solid var(--good);
  background: var(--surface);
  padding: 11px 12px;
  font-size: 11px;
  border-radius: 7px;
}
.appointment .buttons {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.appointment button {
  font-size: 9px;
  padding: 6px 8px;
}
.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}
.ledger th {
  text-align: left;
  color: var(--muted);
  font-weight: 400;
  border-bottom: 1px solid var(--line);
  padding: 8px 4px;
}
.ledger td {
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.ledger td:last-child {
  color: var(--good);
}
.ledger .channel {
  width: 17px;
  height: 17px;
  vertical-align: middle;
  margin-right: 5px;
}
.contact-clock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px;
}
.graph {
  width: 100%;
  display: block;
  overflow: visible;
}
.graph text {
  font-family: Plex, Arial, sans-serif;
  font-size: 9px;
  fill: var(--muted);
}
.graph .grid {
  stroke: var(--line);
  stroke-width: 1;
}
.graph .trend {
  fill: none;
  stroke: var(--orange);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 700;
  stroke-dashoffset: 0;
  animation: drawline 1.5s both;
}
.graph .ask {
  stroke: var(--navy);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}
.graph .sold {
  fill: var(--good);
}
.map {
  position: relative;
  overflow: hidden;
  background: rgb(231 238 239);
  border-radius: 9px;
  border: 1px solid var(--line);
}
.map svg {
  width: 100%;
  height: 200px;
  display: block;
}
.map .land {
  fill: rgb(246 243 237);
  stroke: rgb(221 216 205);
  stroke-width: 1;
}
.map .district {
  fill: rgb(26 46 119 / 0.1);
  stroke: var(--surface);
  stroke-width: 3;
  transition:
    fill 0.5s,
    opacity 0.5s;
}
.map .district.match {
  fill: rgb(201 60 8 / 0.6);
}
.map .district.off {
  fill: rgb(26 46 119 / 0.05);
  opacity: 0.6;
}
.map text {
  font: 9px Plex;
  fill: var(--ink);
}
.map .road {
  stroke: white;
  stroke-width: 2;
  fill: none;
}
.map-legend {
  position: absolute;
  left: 9px;
  bottom: 8px;
  font-size: 8px;
  background: white;
  padding: 5px 7px;
  border-radius: 4px;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  padding: 7px 0;
}
.filter-row label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-row input[type='checkbox'] {
  accent-color: var(--orange);
  width: 14px;
  height: 14px;
}
.filter-row input[type='number'] {
  width: 53px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 10px;
  background: var(--surface);
  color: var(--ink);
}
.area-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}
.area-result .donut-label strong {
  font-size: 11px;
}
.area-result .donut-label small {
  font-size: 7px;
}
.phone-concept {
  max-width: 320px;
  border: 5px solid var(--ink);
  border-radius: 35px;
  padding: 18px 18px 25px;
  background: linear-gradient(145deg, var(--paper), rgb(231 234 242));
  margin: 0 auto;
  width: 100%;
  min-height: 455px;
  position: relative;
}
.os-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 27px 22px;
  padding-top: 23px;
}
.os-app {
  position: relative;
  text-align: center;
  font-size: 8px;
  color: var(--muted);
}
.os-app img {
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto 7px;
  background: white;
  border-radius: 13px;
}
.os-app .os-badge {
  position: absolute;
  right: -5px;
  top: -8px;
  background: var(--bad);
  color: white;
  font-size: 9px;
  font-weight: 600;
  border: 2px solid white;
  padding: 3px 5px;
  border-radius: 20px;
  font-variant-numeric: tabular-nums;
  min-width: 21px;
}
.os-app svg {
  width: 46px;
  height: 46px;
  padding: 10px;
  border-radius: 13px;
  background: white;
  color: var(--navy);
  display: block;
  margin: 0 auto 7px;
}
.download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  font-size: 11px;
}
.download img {
  width: 48px;
  height: 48px;
  padding: 5px;
  border-radius: 14px;
  background: white;
}
.download .bar {
  width: 120px;
  margin-top: 7px;
}
.ripples {
  position: relative;
  width: 100%;
  height: 330px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.wave {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgb(201 60 8 / 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 3s infinite;
}
.person {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--muted);
  border-radius: 50%;
  transition:
    transform 1s,
    opacity 1s;
}
.agent-node {
  position: relative;
  z-index: 3;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 50%;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgb(12 21 51 / 0.06);
}
.agent-node svg {
  width: 30px;
  height: 30px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.5;
}
.network-chip {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 12px;
  background: white;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 10px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.network-chip .channel {
  width: 20px;
  height: 20px;
}
.reach-number {
  text-align: center;
}
.reach-number strong {
  display: block;
  font-size: 34px;
  letter-spacing: -0.06em;
}
.reach-number span {
  font-size: 10px;
  color: var(--muted);
}
.player {
  padding: 12px 22px 16px;
  border-top: 1px solid var(--line);
  max-width: 700px;
  margin: auto;
  color: var(--muted);
}
.player > span {
  font-size: 11px;
}
.player > div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}
.player input {
  min-width: 30px;
  flex: 1;
  accent-color: var(--orange);
}
.player small {
  display: block;
  font-size: 9px;
  margin-top: 8px;
}
.embed .player {
  display: none;
}
.embed #scene {
  height: 100svh;
  overflow: auto;
  scrollbar-width: thin;
}
.embed .view {
  min-height: 100%;
  height: auto;
}
.embed body {
  overflow: hidden;
}
.hidden {
  display: none !important;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes draw {
  from {
    stroke-dasharray: 0 300;
  }
}
@keyframes drawline {
  from {
    stroke-dashoffset: 700;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes ripple {
  0% {
    opacity: 0.65;
    scale: 0.94;
  }
  100% {
    opacity: 0.1;
    scale: 1.06;
  }
}
@media (max-width: 430px) {
  .view {
    padding: 15px;
    gap: 14px;
    min-height: 530px;
  }
  h1 {
    font-size: 20px;
  }
  .property-cover {
    height: 145px;
  }
  .two {
    gap: 10px;
  }
  .post-preview img.hero {
    height: 145px;
  }
  .format-card > img {
    height: 85px;
  }
  .format-card.tall > img {
    height: 130px;
  }
  .message-row {
    gap: 8px;
  }
  .message-row .sender {
    font-size: 11px;
  }
  .message-row .preview {
    font-size: 9px;
  }
  .map svg {
    height: 175px;
  }
  .ledger {
    font-size: 8px;
  }
  .ledger td {
    padding: 9px 3px;
  }
  .view-head .tag {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .donut-label strong {
    font-size: 14px;
  }
  .phone-concept {
    min-height: 425px;
  }
  .os-grid {
    gap: 25px 17px;
  }
  .score-explain {
    grid-template-columns: 77px 1fr;
  }
  .metric strong {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
/* Keep complete infographics visible in embedded homepage panels. */
.embed .sample-note {
  display: none;
}
.embed .view[data-scene='10'] {
  gap: 13px;
}
.embed .view[data-scene='10'] .property-cover {
  height: 115px;
}
.embed .view[data-scene='14'] {
  gap: 12px;
}
.view[data-scene='14'] .graph {
  height: 125px;
}
.graph text {
  font-size: 10.5px;
}
.donut.mix .base {
  stroke: var(--orange);
}
.donut.mix .value {
  stroke: var(--good);
}

/* Message selection: the clicked row visibly responds before its conversation opens. */
.message-row {
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.message-row:hover,
.message-row:focus-visible {
  background: #fff5ea;
}
.message-row.selected-message {
  border-left: 3px solid #ee791a;
  padding-left: 10px;
}
/* Separate scene 15 proposal: named audience layers, not guaranteed reach counts. */
.audience-orbit {
  position: relative;
  height: 350px;
  flex-shrink: 0;
  overflow: hidden;
}
.audience-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px dashed #d8dce2;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.35;
}
.audience-ring.layer-0 {
  width: 150px;
  height: 150px;
}
.audience-ring.layer-1 {
  width: 250px;
  height: 250px;
}
.audience-ring.layer-2 {
  width: 340px;
  height: 340px;
}
.audience-ring.revealed {
  border: 2px solid #ec9853;
  opacity: 0.8;
  animation: audience-pulse 3s ease-in-out infinite;
}
.audience-orbit .agent-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  font-size: 11px;
}
.audience-orbit .agent-node svg {
  width: 25px;
  height: 25px;
}
.audience-person {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  background: #df8a43;
  border-radius: 50%;
  transform: translate(var(--x), var(--y));
}
.orbit-badge {
  position: absolute;
  z-index: 4;
  background: white;
  border-radius: 14px;
  padding: 7px;
  box-shadow: 0 2px 12px #14223812;
  display: flex;
  gap: 5px;
}
.orbit-badge svg,
.audience-icons svg {
  width: 24px;
  height: 24px;
  color: #ef7d20;
}
.orbit-whatsapp {
  left: calc(50% - 90px);
  top: 44%;
}
.orbit-market {
  left: calc(50% + 65px);
  top: 24%;
}
.orbit-social {
  left: calc(50% - 43px);
  top: 4%;
}
.audience-legend {
  display: grid;
  gap: 6px;
}
.audience-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  opacity: 0.35;
}
.audience-step.revealed {
  opacity: 1;
}
.audience-step strong {
  font-size: 14px;
}
.audience-step small {
  display: block;
  font-size: 12px;
  color: #68717c;
  margin-top: 3px;
}
.audience-icons {
  display: flex;
  width: 104px;
  flex-shrink: 0;
  gap: 3px;
}
.audience-icons img {
  width: 22px;
  height: 22px;
}
.audience-step .check {
  margin-left: auto;
}
@keyframes audience-pulse {
  50% {
    opacity: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .audience-ring.revealed {
    animation: none;
  }
}
@media (max-width: 430px) {
  .audience-orbit {
    height: 330px;
  }
  .audience-ring.layer-2 {
    width: 310px;
    height: 310px;
  }
  .audience-icons {
    width: 92px;
  }
  .audience-icons img {
    width: 20px;
    height: 20px;
  }
}

.inbox-select {
  position: relative;
}
.inbox-pointer {
  position: absolute;
  z-index: 10;
  width: 32px;
  height: 38px;
  pointer-events: none;
  opacity: 0;
  transform: scale(var(--press, 1));
  transform-origin: 4px 3px;
}
.inbox-pointer svg {
  width: 32px;
  height: 38px;
  filter: drop-shadow(0 2px 2px #14253d44);
}
.click-pulse {
  position: absolute;
  left: -15px;
  top: -15px;
  width: 38px;
  height: 38px;
  border: 3px solid #ee791a;
  border-radius: 50%;
  opacity: 0;
}
.is-clicking .click-pulse {
  opacity: 1;
  animation: inbox-click 0.7s ease-out 2;
}
.inbox-select .selected-message {
  background: #ffdfb9;
  box-shadow: inset 0 0 0 2px #ed852a;
  border-radius: 8px;
}
@keyframes inbox-click {
  from {
    transform: scale(0.3);
    opacity: 1;
  }
  to {
    transform: scale(1.4);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .inbox-pointer {
    display: none;
  }
  .is-clicking .click-pulse {
    animation: none;
  }
}

/* The inbox is a scripted scene; only the drawn pointer demonstrates hovering. */
.inbox-select .message-row {
  cursor: default;
}
.inbox-select .message-row:hover {
  background: transparent;
}
.inbox-select .message-row.message-hover {
  background: #fff0dd;
}
.inbox-select .message-row.selected-message {
  background: #ffdfb9;
}

/* Scene 1: a single property-entry workspace with scripted typing. */
.property-entry-app {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid #e4dfd9;
  border-radius: 14px;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.entry-photo {
  height: 135px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.entry-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.entry-photo span {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: white;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 11px;
}
.entry-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.entry-field {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e5e0da;
  border-radius: 7px;
}
.entry-field:nth-child(-n + 2),
.entry-field:nth-child(3) {
  grid-column: 1 / -1;
}
.entry-label {
  display: block;
  font-size: 11px;
  color: #697387;
  margin-bottom: 4px;
}
.entry-value {
  height: 20px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.entry-field.is-typing {
  border-color: #ee791a;
  background: #fff9f1;
  box-shadow: 0 0 0 2px #ee791a18;
}
.entry-caret {
  display: none;
  vertical-align: middle;
  width: 2px;
  height: 15px;
  background: #ee791a;
  margin-left: 2px;
}
.is-typing .entry-caret {
  display: inline-block;
}
.entry-save {
  padding: 10px;
  background: #ed791d;
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  border-radius: 7px;
}
.entry-save.saved {
  background: #267a6b;
}
@media (max-width: 430px) {
  .property-entry-app {
    padding: 13px;
    gap: 10px;
  }
  .entry-photo {
    height: 115px;
  }
}

.publication-list {
  gap: 8px;
}
.publication-confirmation {
  display: inline-block;
  opacity: 0;
  transform-origin: right center;
}
.marketplace-publish-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  color: #ed791d;
}
.marketplace-publish-icon svg {
  width: 24px;
  height: 24px;
}

/* Native mobile layout: full display background, safe content insets, no scene scaling. */
.handset body,
.handset #scene {
  background: var(--paper);
}
.handset .view {
  padding: calc(7.5svh + 8px) 14px 26px;
  gap: 12px;
}
.handset .kicker {
  display: none;
}
.handset .view-head {
  padding-bottom: 9px;
}
.handset header h1 {
  font-size: 19px;
  line-height: 1.25;
}
.handset .property-entry-app {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  max-width: none;
  gap: 12px;
}
.handset .entry-photo {
  height: 125px;
}
.handset .entry-field {
  background: white;
}
.handset .entry-save {
  margin-top: 2px;
}

/* Direct screen presentation: app pages replace the marketing scaffold. */
.handset .view {
  gap: 12px;
  padding-inline: 14px;
  padding-bottom: 28px;
}
.handset .app-page-heading h1 {
  margin: 0;
  font-size: 20px;
}
.handset .view > .plate {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}
.handset .view > .two {
  grid-template-columns: 1fr;
  gap: 18px;
}
.handset .view[data-scene='13'] .two {
  grid-template-columns: 1fr;
}
.handset .ledger {
  width: 100%;
  table-layout: fixed;
}
.handset .ledger td,
.handset .ledger th {
  overflow-wrap: anywhere;
  padding: 9px 5px;
}
.handset .phone-concept {
  border: 0;
  border-radius: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: calc(100svh - 95px);
  background: transparent;
}
.handset .phone-concept > .row:first-child {
  display: none;
}
.handset .view[data-scene='5'] {
  background: linear-gradient(150deg, #f5f3f1, #e7edf5);
}
.handset .os-grid {
  padding-top: 20px;
  gap: 40px 20px;
}
.outside body,
.outside #scene {
  background: transparent;
}
.outside .view {
  padding: 22px 18px;
  gap: 18px;
  justify-content: center;
}
.outside .audience-orbit {
  height: 350px;
}
.outside .sample-note {
  display: none;
}

.handset .property-entry-app > .row:first-child h3 { display:none; }
.handset .property-entry-app > .row:first-child { justify-content:flex-end; }

/* Unframed reach diagram sits on the site's own surface, including cobalt dark mode. */
.outside,.outside body,.outside #scene,.outside .view,.outside .audience-orbit,.outside .audience-legend { background:transparent!important; }
.outside .agent-node,.outside .orbit-badge { background:transparent;box-shadow:none; }
.outside .agent-node { border-color:currentColor; }
.outside .agent-node svg { stroke:currentColor; }
.outside .audience-step small { color:var(--muted); }
.outside[data-scene-theme='dark'] { --ink:rgb(250 248 247);--muted:rgb(192 202 225);--good:rgb(90 215 203); }
.outside[data-scene-theme='dark'] .audience-ring { border-color:rgb(233 147 70); }
/* Scene 13 starts in the agent's WhatsApp, then changes to WingCaster's native page. */
.handset #scene[data-native-app='whatsapp'],.handset #scene[data-native-app='whatsapp'] .view { background:rgb(239 234 226); }
.handset #scene[data-native-app='whatsapp'] .view { gap:0; }
.handset #scene[data-native-app='whatsapp'] .chat { gap:12px; }
.handset #scene[data-native-app='whatsapp'] .chat-head { margin:-8px -14px 2px;padding:12px 14px;background:rgb(7 94 84);color:white;border:0; }
.wa-back { font-size:27px;line-height:1; }.wa-contact { width:30px;height:30px;padding:4px;border-radius:50%;background:white; }
.handset #scene[data-native-app='whatsapp'] .bubble { max-width:88%;border:0;color:rgb(17 27 33);font-size:12px;box-shadow:0 1px 1px rgb(11 20 26 / .12); }
.handset .bubble.wa-out { align-self:flex-end;background:rgb(217 253 211);border-radius:8px 0 8px 8px; }
.handset .bubble.wa-in { align-self:flex-start;background:white;border-radius:0 8px 8px 8px; }
.handset #scene[data-native-app='whatsapp'] .who { display:none; }
.handset #scene[data-native-app='whatsapp'] .chat>.plate { align-self:flex-start;background:white;width:88%;border:0;border-radius:0 8px 8px 8px; }

.outside{color-scheme:light;background:transparent!important}

/* Scroll seeking owns all timing; CSS transitions must not continue after scrolling stops. */
.scroll-controlled * { transition: none !important; }

/* Only the main page accepts user scrolling. Content offsets still follow its timeline. */
.scroll-controlled,
.scroll-controlled body,
.scroll-controlled.embed #scene {
  overflow: hidden !important;
  scrollbar-width: none;
}
.scroll-controlled ::-webkit-scrollbar { display: none; }

/* Section-wide reach: no handset-sized canvas, border, card or clipping wrapper. */
.section-reach #scene { height:100svh; width:100%; padding:0; overflow:hidden; }
.section-reach .view { position:relative; display:block; width:100%; height:100%; min-height:0; max-width:none; margin:0; padding:0; border:0; box-shadow:none; overflow:visible; }
.section-reach .audience-orbit { position:absolute; left:38%; top:55%; width:350px; height:350px; overflow:visible; z-index:3; transform:translate(-50%,-50%) scale(1.2); }
.section-reach .audience-legend { position:absolute; left:7%; bottom:5%; width:min(480px,40%); z-index:1; }
.section-reach .view > p:last-child { position:absolute; bottom:1%; left:7%; width:min(480px,40%); margin:0; }
@media(max-width:767px) {
 .section-reach .audience-orbit { left:50%; top:43%; transform:translate(-50%,-50%) scale(0.66); }
 .section-reach .audience-legend { left:6%; bottom:5%; width:88%; }
 .section-reach .view > p:last-child { left:6%; width:88%; }
}

/* Mirror only the desktop reach composition with the Arabic parent layout.
   Keep the open, section-wide canvas and the approved ripple scale. */
@media (min-width:768px) {
  .section-reach[lang="ar"] .audience-orbit { left:62%; }
  .section-reach[lang="ar"] .audience-legend { left:62%; right:auto; transform:translateX(-50%); direction:rtl; text-align:right; }
  .section-reach[lang="ar"] .view > p:last-child { left:auto; right:7%; direction:rtl; }
}
