/* call-screen.css — the item on the caller's screen during a call (HC-9, PLAN §5.1).
 *
 * First on the page and above the fold on a 390 px phone, with its buttons: the parity gate holds
 * that. While it is up, the avatar gives it the room, so End stays where a thumb is. Tokens only
 * (echo-tokens.css and call.css's), logical properties only, light and dark. Motion is opacity only.
 */

.pc-screen { inline-size: 100%; max-inline-size: 26rem; margin-inline: auto; }

.pc-screen__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 12px;
  padding-inline: 14px;
  border: 1px solid var(--ember);
  border-radius: var(--echo-radius-xl);
  background: var(--surface);
  box-shadow: var(--sh-card);
  text-align: start;
  overflow-wrap: anywhere;
}
@media (prefers-reduced-motion: no-preference) {
  .pc-screen__card { animation: pc-fade .2s linear both; }
}

.pc-screen__from { color: var(--ember-ink); font-size: 13px; font-weight: 700; line-height: 1.35; }
.pc-screen__lead,
.pc-screen__title { color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.4; }
.pc-screen__text { color: var(--ink); font-size: 15px; line-height: 1.5; white-space: pre-line; }
.pc-screen__host { color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.pc-screen__error { color: var(--danger-ink); font-size: 14px; font-weight: 700; line-height: 1.4; }
:root[data-theme="dark"] .pc-screen__error { color: var(--pc-warn); }

.pc-screen__form { display: flex; gap: 8px; align-items: stretch; }
.pc-screen__input { flex: 1 1 auto; min-inline-size: 0; font-size: 18px; }
.pc-screen__input[aria-invalid="true"] { border-color: var(--danger-ink); }
:root[data-theme="dark"] .pc-screen__input[aria-invalid="true"] { border-color: var(--pc-warn); }

/* Smaller than the call's own buttons: End stays the page's biggest thing. */
.pc-screen__send,
.pc-screen__open {
  min-block-size: 48px;
  padding-block: 8px;
  padding-inline: 16px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
}
.pc-screen__send { inline-size: auto; flex: none; }
.pc-screen__open { inline-size: 100%; text-align: center; }

.pc-screen__options { display: flex; flex-direction: column; gap: 8px; }
.pc-screen__option {
  min-block-size: 48px;
  padding-block: 8px;
  padding-inline: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--echo-radius-lg);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  touch-action: manipulation;
}
.pc-screen__option:hover:not(:disabled) { border-color: var(--ember); }

.pc-screen__later {
  align-self: center;
  min-block-size: 44px;
  padding-block: 6px;
  padding-inline: 16px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.pc-screen__option:disabled,
.pc-screen__later:disabled { opacity: .5; cursor: default; }

/* While an item is up, the avatar shrinks and the business's name gives way: the item, the
   assistant's name, its AI pill and End all stay on one phone screen. The pill never goes. */
.pc[data-screen="open"] { --pc-disc: 44px; }
.pc[data-screen="open"] .pc-live__biz { display: none; }
.pc[data-screen="open"] .pc-live__name { font-size: 20px; }
.pc[data-screen="open"][data-incall="true"] .pc-main { gap: 6px; }
.pc[data-screen="open"] .pc-transcript__log { max-block-size: 18svh; }
