/* The four companion surfaces share the approved A palette and wordmark. */
body[data-preview] {
  --a-sky: #0593c6;
  --a-action: #00769e;
  --a-ink: #162831;
  --a-paper: #fcffff;
  --a-rose: #d83995;
  --a-rose-dark: #9b195e;
  --a-line: #dae6eb;
  --a-soft: #e6f5fa;
  --a-muted: #536879;
  --a-serif: "Songti SC", "Noto Serif CJK SC", Georgia, serif;
}
.a-wordmark {
  display: inline-block;
  color: var(--a-sky);
  font: italic 800 25px/1 Arial, sans-serif;
  letter-spacing: -1.9px;
  white-space: nowrap;
}
.a-wordmark span { color: var(--a-ink); }
.page-name, .section-meta { color: var(--a-muted); font-size: 12px; }
.a-status, [data-preview="live"] .onair {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  padding: 4px 7px;
  color: var(--a-rose-dark);
  background: #ffdfef;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
}
.a-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
[data-preview="companion"] .shell,
[data-preview="call"] .phone,
[data-preview="live"] .shell { background: var(--a-paper); color: var(--a-ink); }
[data-preview="companion"] .brandbar {
  height: 47px;
  padding: 0 17px;
  border-color: var(--a-line);
  background: var(--a-paper);
}
[data-preview="companion"] .home-content { padding: 0 0 14px; }
[data-preview="companion"] .contact-hero {
  display: block;
  height: clamp(184px, 56cqw, 255px);
  border-radius: 0;
  background: var(--a-sky);
}
.contact-hero img { inset: 0 0 0 auto; width: 55%; object-position: 50% 37%; }
.contact-hero::before {
  background: var(--a-sky);
  width: 57%;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}
.contact-hero .hero-copy {
  padding: 18px;
  justify-content: center;
  gap: 8px;
}
.hero-copy h1 {
  color: #fff;
  font: 700 clamp(37px, 11.5cqw, 54px)/1.06 var(--a-serif);
  letter-spacing: -.055em;
}
.hero-copy h1 span {
  display: block;
  margin-top: 4px;
  color: #e2f7ff;
  font: 600 12px/1.4 Arial, sans-serif;
  letter-spacing: 0;
}
.contact-hero .hero-role { margin: 0; color: white; font-size: clamp(10px, 2.8cqw, 12px); }
.contact-hero .hero-resume {
  align-self: flex-start;
  margin: 2px 0 0;
  padding: 3px 7px;
  border-radius: 0;
  color: var(--a-ink);
  background: white;
  font-size: 12px;
  font-weight: 750;
}
.hero-resume b { margin-left: 6px; }
.home-section { margin: 0 17px; }
.home-section .section-title {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 9px 0 0;
  border-bottom: 1px solid var(--a-line);
}
.home-section h2 { font-size: 17px; letter-spacing: -.045em; }
.home-section .recall { padding: 9px 0; color: var(--a-action); font-size: 11px; }
.home-section .recall [data-icon] { color: inherit; height: 15px; width: 15px; }
.current-contact { display: grid; grid-template-columns: 1fr auto; align-items: center; padding-top: 12px; gap: 8px; }
.current-contact .latest {
  display: flex;
  grid-column: 1 / -1;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.latest .ring {
  width: 42px;
  height: 42px;
  padding: 2px;
  border: 2px solid var(--a-rose);
  border-radius: 50%;
  object-fit: cover;
}
.latest b { margin: 0; color: var(--a-ink); font-size: 16px; }
.latest small { margin-top: 2px; font-size: 11px; }
.current-contact .latest > [data-icon] { width: 14px; height: 14px; margin-left: auto; color: var(--a-action); }
#latest-text {
  grid-row: 2;
  grid-column: 1 / -1;
  overflow: hidden;
  padding: 10px 13px;
  border-radius: 6px;
  color: #224f60;
  background: var(--a-soft);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-section .live-row, .home-section .episode-row {
  gap: 11px;
  padding: 9px 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.live-photo { width: 86px; height: 66px; border-radius: 5px; }
.live-photo img { object-position: center 39%; }
.live-photo .signal { background: var(--a-rose-dark); }
.live-row .circle-go { margin: 0; border-radius: 5px; color: var(--a-action); background: var(--a-soft); }
.live-row .live-status { color: var(--a-rose-dark); }
.episode-row > img { border-radius: 4px; width: 44px; height: 61px; }
.episode-row .text-link { color: var(--a-action); }
.memory-dialog { border: 1px solid var(--a-line); border-radius: 10px; background: var(--a-paper); }

/* Private chat keeps the actor in the background and dialogue in the foreground. */
.chat-shell .chat-head {
  padding: 7px 14px 7px 9px;
  min-height: 59px;
  gap: 9px;
  color: var(--a-ink);
  background: var(--a-paper);
  border-bottom: 1px solid var(--a-line);
}
.chat-shell .chat-head .back { width: 34px; height: 38px; background: transparent; color: var(--a-ink); border: 0; }
.chat-shell .chat-head img { border: 2px solid var(--a-rose); padding: 2px; background: white; }
.chat-shell .chat-person h1 { color: var(--a-ink); text-shadow: none; font-size: 19px; }
.chat-shell .chat-person > span { color: var(--a-muted); text-shadow: none; }
.chat-shell .chat-person b { color: var(--a-rose-dark); }
.chat-shell .chat-head .call-button { border: 1px solid var(--a-line); border-radius: 6px; color: var(--a-ink); background: white; }
.chat-shell .chat-head .call-button [data-icon] { color: var(--a-action); }
.chat-shell::before { background: linear-gradient(180deg, transparent 41%, #142b3930 60%, #172c395c 80%, #1d3441b8 100%); }
.chat-shell #source { padding: 7px 0 0 13px; }
.chat-shell .source-strip { border: 1px solid #c5e1e9; background: #fcfffff2; color: var(--a-ink); border-radius: 4px; }
.chat-shell .source-strip a { color: var(--a-action); }
.chat-shell .messages { padding: 22px 15px 9px; }
.chat-shell .reply-card {
  padding: 10px 12px;
  border: 1px solid #ffffffef;
  border-radius: 4px 12px 12px;
  background: #fcfffff2;
  color: var(--a-ink);
  box-shadow: 0 1px 6px #17232d25;
}
.chat-shell .reply-header { margin-bottom: 5px; }
.chat-shell .reply-header b { display: flex; align-items: center; gap: 5px; color: var(--a-ink); font-size: 14px; }
.chat-shell .reply-header b::before { content: ""; height: 7px; width: 7px; background: var(--a-rose); border-radius: 50%; }
.chat-shell .read-voice { border: 0; color: var(--a-action); background: #dcf1f9; border-radius: 5px; }
.chat-shell .read-voice[aria-pressed="true"] { color: white; background: var(--a-action); }
.chat-shell .stage-action { color: #725465; }
.chat-shell .inner-thought { color: var(--a-action); }
.chat-shell .reply-text { color: var(--a-ink); font-weight: 510; }
.chat-shell .reply-info, .chat-shell .voice-error { color: var(--a-muted); }
.chat-shell .line.me .bubble { border: 0; border-radius: 11px 3px 11px 11px; background: #d9f1fa; color: var(--a-ink); }
.chat-shell .memento-card { width: min(250px,86%); border-radius: 8px; color: var(--a-ink); }
.chat-shell .memento-card .media-footer { gap: 6px; }
.chat-shell .compose-area { border-top: 1px solid var(--a-line); background: var(--a-paper); padding: 7px 13px max(9px,env(safe-area-inset-bottom)); }
.chat-shell .writing-tools { gap: 8px; margin: 0 0 7px; }
.chat-shell .writing-tools button,
.chat-shell .compose-area .prompts button { border: 1px solid var(--a-line); border-radius: 4px; padding: 5px 8px; background: white; color: #385365; }
.chat-shell .composer { border: 1px solid var(--a-line); padding: 5px; border-radius: 8px; background: #f0f7fa; }
.chat-shell .composer > img { border-color: #dce9ed; }
.chat-shell .composer input, .chat-shell .composer input::placeholder { color: var(--a-muted); background: transparent; }
.chat-shell .composer input { color: var(--a-ink); padding-inline: 7px; }
.chat-shell .composer .send { border-radius: 6px; background: var(--a-action); }
.chat-shell #chat-tools { border-color: var(--a-line); border-radius: 8px; color: var(--a-ink); background: var(--a-paper); box-shadow: 0 4px 20px #152d3a2e; }
.chat-shell .tool-row a, .chat-shell .tool-row button { color: var(--a-action); }
.chat-shell #chat-tools small { color: var(--a-muted); }

/* A telephone uses a voice portrait and call controls, separate from the message thread. */
[data-preview="call"] header { min-height: 48px; gap: 8px; padding: 5px 14px 5px 7px; border-bottom: 1px solid var(--a-line); }
[data-preview="call"] .back, [data-preview="call"] .sound { width: 36px; height: 36px; border-radius: 6px; background: transparent; }
[data-preview="call"] .back { border: 0; color: var(--a-ink); }
[data-preview="call"] .sound { color: var(--a-action); }
[data-preview="call"] .sound[aria-pressed="true"] { color: white; background: var(--a-action); }
[data-preview="call"] .context { margin-left: auto; color: var(--a-muted); font-size: 11px; letter-spacing: 0; }
[data-preview="call"] .stage { flex: none; padding: 0; background: transparent; text-align: left; }
.call-cover {
  isolation: isolate;
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(155px, 49cqh, 480px);
  overflow: hidden;
  background: var(--a-sky);
}
.in-call .call-cover { height: clamp(155px, 36cqh, 340px); }
.call-rings, .call-rings::before, .call-rings::after { position: absolute; pointer-events: none; width: 70cqw; aspect-ratio: 1; border: 1px solid #ffffff47; border-radius: 50%; }
.call-rings::before, .call-rings::after { content: ""; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.call-rings::before { width: 117%; }
.call-rings::after { width: 135%; border-color: #ffffff30; }
[data-preview="call"] .status { position: absolute; z-index: 1; top: 13px; left: 17px; margin: 0; padding: 4px 7px; min-height: 0; background: #fff1f8; color: var(--a-rose-dark); border-radius: 4px; font-size: 11px; }
[data-preview="call"] .status i { background: var(--a-rose); }
[data-preview="call"] .stage .portrait { width: min(38cqw, 21cqh); min-width: 77px; margin: 0; }
[data-preview="call"] .portrait img { width: 100%; height: 100%; border: 4px solid white; outline: 3px solid var(--a-rose); }
[data-preview="call"] .portrait::before, [data-preview="call"] .portrait::after { border-color: #ffffff9e; inset: -10%; }
[data-preview="call"] .portrait::after { inset: -20%; border-color: #ffffff55; }
.call-person { padding: 14px 19px; display: flex; align-items: baseline; gap: 9px; border-bottom: 1px solid var(--a-line); }
.call-person h1, .phone.with-photo .call-person h1 { color: var(--a-ink); font-size: clamp(25px,7.7cqw,35px); letter-spacing: -.045em; }
.call-person .handle { color: var(--a-muted); margin: 0; font-size: 12px; }
[data-preview="call"] .content { padding: 16px 19px 7px; }
[data-preview="call"] .caption { margin: 0; padding: 12px 14px 14px; border: 0; border-radius: 6px; background: var(--a-soft); }
[data-preview="call"] .caption-label { color: var(--a-action); }
[data-preview="call"] .caption p { margin-top: 6px; font-size: 16px; }
[data-preview="call"] .reply { border-color: var(--a-line); background: white; border-radius: 5px; color: var(--a-action); }
[data-preview="call"] .reply.photo { color: var(--a-rose-dark); background: #fff1f8; border-color: #f2c9e0; }
[data-preview="call"] .commands { padding: 12px 19px max(14px,env(safe-area-inset-bottom)); background: var(--a-paper); border-top: 1px solid var(--a-line); }
[data-preview="call"] .commands .start { border-radius: 7px; background: var(--a-action); }
[data-preview="call"] .ctrl.danger .circle { background: #ad256a; }
[data-preview="call"] .frame { border-radius: 6px; }
[data-preview="call"] .with-photo .call-cover { height: max(100px, 17cqh); }
[data-preview="call"] .with-photo .stage .portrait { width: min(19cqw, 12cqh); min-width: 58px; }
[data-preview="call"] .with-photo .call-person { padding-block: 7px; }
[data-preview="call"] .with-photo .handle { margin: 0; }

/* Public live room keeps chat and guest participation on a white reading surface. */
[data-preview="live"] .top { flex: none; min-height: 48px; padding: 4px 13px; border-bottom: 1px solid var(--a-line); }
[data-preview="live"] .top .private { color: var(--a-action); }
[data-preview="live"] .stage { flex: none; height: clamp(190px, 45cqh, 440px); background: var(--a-sky); }
[data-preview="live"] .stage-bg { background-image: url("live-beach.jpg"); background-position: 58% 36%; transform: none; }
[data-preview="live"] .stage::before { background: linear-gradient(180deg,#12253052 0%,transparent 28%,transparent 56%,#0c212c47 100%); }
[data-preview="live"] .flags { top: 12px; left: 16px; }
[data-preview="live"] .flags .model { font-weight: 550; }
[data-preview="live"] .stagebody {
  isolation: isolate;
  right: auto;
  left: 0;
  bottom: 0;
  width: min(73%,320px);
  padding: 13px 25px 14px 16px;
}
[data-preview="live"] .stagebody::before { position: absolute; z-index: -1; content: ""; inset: 0; background: var(--a-sky); clip-path: polygon(0 0,100% 0,94% 100%,0 100%); }
[data-preview="live"] .topic { color: #e4f8ff; font: italic 600 13px/1.2 Georgia,serif; letter-spacing: 0; }
[data-preview="live"] .stage h1 { margin: 4px 0 7px; font: 700 clamp(25px,7.6cqw,35px)/1.1 var(--a-serif); letter-spacing: -.06em; }
[data-preview="live"] .who { gap: 5px; font-size: 10px; }
[data-preview="live"] .who img { border: 2px solid white; outline: 1px solid var(--a-rose); }
[data-preview="live"] .hostid { color: white; }
[data-preview="live"] .scene-ref { bottom: 12px; right: 14px; width: 55px; height: 62px; border-radius: 5px; background-position: center 46%; }
[data-preview="live"] .guest { z-index: 1; top: 12px; right: 14px; padding: 7px 9px; border: 1px solid white; border-radius: 5px; background: #075675ed; }
[data-preview="live"] .guest-control { flex: none; padding: 9px 16px; min-height: 52px; background: var(--a-soft); border-bottom-color: var(--a-line); }
[data-preview="live"] .guesticon { border-radius: 5px; }
[data-preview="live"] .roomchat { padding: 13px 16px 8px; }
[data-preview="live"] .sectiontop { border-bottom: 1px solid var(--a-line); padding: 0 0 8px; margin-bottom: 10px; }
[data-preview="live"] .publichint { color: var(--a-action); }
[data-preview="live"] .log { gap: 13px; }
[data-preview="live"] .av.alan { outline: 1.5px solid var(--a-rose); border: 2px solid white; }
[data-preview="live"] .prompts { padding: 8px 0 0; }
[data-preview="live"] .prompts button { border-radius: 5px; background: white; }
[data-preview="live"] .composer { padding: 8px 14px max(10px,env(safe-area-inset-bottom)); background: var(--a-paper); }
[data-preview="live"] .composer input, [data-preview="live"] .send { border-radius: 7px; }
[data-preview="live"] .send:not(:disabled) { background: var(--a-action); }
@container (max-height: 630px) {
  [data-preview="live"] .stage { height: max(105px,29cqh); min-height: 0; }
  [data-preview="live"] .stagebody { padding-top: 6px; padding-bottom: 6px; }
  [data-preview="live"] .stage h1 { font-size: 24px; }
  [data-preview="live"] .flags { top: 6px; }
  [data-preview="call"] .call-cover { height: max(96px, 26cqh); }
  [data-preview="call"] .call-person { padding-block: 8px; }
}
@container (max-height: 430px) {
  [data-preview="call"] .call-cover { height: 75px; }
  [data-preview="call"] .stage .portrait { min-width: 45px; width: 45px; }
  [data-preview="call"] .commands { padding-block: 5px; gap: 3px; }
  [data-preview="live"] .guest-control { min-height: 37px; padding-block: 3px; }
  [data-preview="live"] .topic, [data-preview="live"] .publichint .icon { display: none; }
}
