/* THE CHAT IN THE WEB VIEW (js/99e, 2026-11-28): the guardian demo's look, approved by her on
   25 Nov: the cube, one glass (constitution 4) on the frame that holds it, quiet text exits
   grouped Ask / Tell / Then, one line to write. Everything scoped under #view-chat. */
#view-chat{ padding:0; overflow-x:clip; }
#view-chat .ch-room{ max-width:var(--room-max,1180px); margin:0 auto; padding:30px 24px; display:grid; grid-template-columns:5fr 7fr; column-gap:40px; align-items:center;
  min-height:calc(100dvh - var(--hdr-h,64px) - 56px); }
#view-chat .ch-words{ display:flex; flex-direction:column; align-items:flex-start; }
#view-chat .ch-line{ margin:0; max-width:22ch; font:500 var(--fs-32)/1.08 var(--f-disp); letter-spacing:-.025em; color:rgb(var(--ink)); text-wrap:balance; }
#view-chat .ch-line em{ font:italic 500 1.08em/1 var(--f-em); color:#dff4ff; letter-spacing:0; }
#view-chat .ch-start{ margin-top:30px; font-family:var(--f-body); cursor:pointer; }
#view-chat .ch-start[hidden], #view-chat .ch-q[hidden]{ display:none; }
#view-chat .ch-exits{ margin-top:36px; display:grid; gap:6px; }
#view-chat .ch-grp{ display:flex; flex-wrap:wrap; align-items:center; gap:0 22px; }
#view-chat .ch-gl{ width:34px; font:400 var(--fs-14)/1.4 var(--f-body); color:rgb(var(--ink3)); }
#view-chat .ch-q{ background:none; border:0; padding:0; min-height:44px; font:500 var(--fs-14)/1.4 var(--f-body); color:rgb(var(--ink2)); cursor:pointer; text-align:left; text-transform:none; letter-spacing:0; }
#view-chat .ch-q:hover{ color:rgb(var(--ink)); }
#view-chat .ch-q:disabled{ opacity:.35; }
/* the mic while it records: the ice of the frame, the time beside the word */
#view-chat .ch-q[aria-pressed="true"]{ color:var(--ice2,#7FD3FF); font-variant-numeric:tabular-nums; }
#view-chat :focus-visible{ outline:2px solid var(--ice2,#7FD3FF); outline-offset:3px; border-radius:8px; }
#view-chat .ch-frame{ justify-self:center; position:relative; width:min(440px,100%); height:min(720px, calc(100dvh - var(--hdr-h,64px) - 120px)); min-height:460px;
  border-radius:24px; border:1px solid rgba(160,225,255,.16);
  background:linear-gradient(150deg,rgba(0,191,255,.08),rgba(10,122,205,.06) 55%,rgba(255,255,255,.012));
  -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 30px 70px -40px rgba(18,64,184,.95);
  display:flex; flex-direction:column; overflow:hidden; }
#view-chat .ch-frame .int-cube{ --ics:74px; width:220px; height:170px; margin:6px auto 0; flex:none; }
#view-chat .ch-msgs{ flex:1; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; padding:6px 30px 18px; display:flex; flex-direction:column; gap:26px; position:relative;
  -webkit-mask:linear-gradient(transparent,#000 18px); mask:linear-gradient(transparent,#000 18px); scrollbar-width:thin; scrollbar-color:rgba(160,225,255,.2) transparent; }
#view-chat .ch-empty{ margin:auto 0 0; max-width:34ch; font:400 var(--fs-15)/1.5 var(--f-body); color:rgb(var(--ink3)); }
#view-chat .ch-m{ max-width:34ch; white-space:pre-wrap; overflow-wrap:anywhere; font:400 var(--fs-16)/1.5 var(--f-body); animation:ch-rise .32s cubic-bezier(.2,.8,.2,1) both; }
#view-chat .ch-a{ align-self:flex-start; color:rgb(var(--ink)); }
#view-chat .ch-a p{ margin:0; }
#view-chat .ch-a p + p{ margin-top:6px; }
#view-chat .ch-a .ch-soft{ color:rgb(var(--ink2)); }
#view-chat .ch-a .ch-name{ font:500 var(--fs-24)/1.15 var(--f-disp); letter-spacing:-.022em; margin:6px 0 8px; }
#view-chat .ch-a a{ color:inherit; font-weight:500; }
#view-chat .ch-wait{ color:rgb(var(--ink3)); }
#view-chat .ch-k{ align-self:flex-end; text-align:right; color:rgb(var(--ink3)); }
@keyframes ch-rise{ from{ opacity:0; transform:translateY(12px); } to{ opacity:1; transform:none; } }
#view-chat .ch-form{ flex:none; display:flex; align-items:center; gap:18px; padding:6px 30px 24px; margin:0; }
#view-chat .ch-t{ flex:1; min-width:0; min-height:44px; border:0; background:transparent; padding:0 6px; font:500 var(--fs-18)/1.2 var(--f-disp); letter-spacing:-.015em; color:rgb(var(--ink)); outline:none; box-shadow:none; }
#view-chat .ch-t::placeholder{ color:rgb(var(--ink3)); font-weight:400; }
#view-chat .ch-t:focus-visible{ outline:none; background:rgba(0,191,255,.07); border-radius:12px; }
/* the phone: the frame first, then the words; no blur under 760px (constitution 11); 16px+ input so iOS does not zoom */
@media (max-width:1023px){
  #view-chat .ch-room{ display:flex; flex-direction:column; align-items:stretch; gap:24px; padding:16px 16px calc(var(--tab-h,64px) + 24px + env(safe-area-inset-bottom,0px)); min-height:0; }
  #view-chat .ch-frame{ order:-1; width:100%; height:calc(100dvh - var(--hdr-h,64px) - var(--tab-h,64px) - 120px); min-height:420px; }
  #view-chat .ch-frame .int-cube{ height:130px; --ics:56px; }
  #view-chat .ch-line{ font-size:var(--fs-26); }
  #view-chat .ch-start{ width:100%; margin-top:18px; }
  #view-chat .ch-msgs{ padding:6px 18px 18px; }
  #view-chat .ch-form{ padding:6px 18px 18px; }
}
@media (max-width:760px){ #view-chat .ch-frame{ -webkit-backdrop-filter:none; backdrop-filter:none; } }
@media (prefers-reduced-motion:reduce){ #view-chat .ch-m{ animation:none; } }

/* the Areté email address (2026-11-30): quiet text, no box, no line */
#view-chat .ch-mail{ margin-top:36px; }
#view-chat .ch-mail[hidden]{ display:none; }
#view-chat .ch-ml{ margin:0; font:400 var(--fs-14)/1.4 var(--f-body); color:rgb(var(--ink3)); }
#view-chat .ch-ma{ margin:6px 0 4px; font:500 var(--fs-14)/1.4 var(--f-body); color:rgb(var(--ink)); word-break:break-all; user-select:all; }
/* ARETÉ SPEAKS (2026-11-30): a quiet Listen under each of Areté's lines, only when the voice is on */
#view-chat .ch-listen{ display:inline-block; margin-top:6px; font-size:var(--fs-13); color:rgb(var(--ink3,var(--ink2))); }
#view-chat .ch-listen[aria-pressed="true"]{ color:var(--ice2,#7FD3FF); }
/* THE ONE BOLD WORD (2026-11-30): the blind spot, as WhatsApp marks it */
#view-chat .ch-a .ch-b{ font-weight:600; color:rgb(var(--ink)); }
