/* ---------------------------------------------------------------
   Admissions copilot case loop. One console, one applicant, four
   beats: voice and chat in one channel, three languages on one
   policy, answers grounded in a numbered clause, a hand-off to a
   named counsellor. Laid out at a fixed 1440x900 inside .ac-fit,
   scaled to the frame. Only .ac-cam moves (scale and translate).
   Transforms, opacity and stroke-dashoffset only.

   This frame runs near full page width (about 1325px at 1440), so
   readable text is set at 15 to 17px on the design surface; faint
   mono labels are the only thing smaller.
   --------------------------------------------------------------- */
.demo[data-demo="case-admissions"] { background: var(--ink-0); }

.ac-fit {
  position: absolute; top: 0; left: 0; width: 1440px; height: 900px;
  transform-origin: 0 0; background: var(--ink-0);
}
.ac-fit * { box-sizing: border-box; }
.ac-fit p { margin: 0; }
.ac-fit svg { display: block; }

.ac-cam {
  position: absolute; top: 0; left: 0; width: 1440px; height: 900px;
  transform-origin: 0 0; overflow: hidden;
  font-family: var(--font-body); font-size: 15px; line-height: 1.5;
  font-weight: 400; color: var(--text-on-ink);
  -webkit-font-smoothing: antialiased;
}
.ac-app { position: absolute; inset: 0; background: var(--ink-0); }

/* Indic scripts: Inter and Jost carry no Devanagari or Gurmukhi, so
   name the system faces that do, before the generic fallback. */
.ac-i { font-family: "Inter", "Nirmala UI", "Kohinoor Devanagari", "Noto Sans Devanagari", "Noto Sans Gurmukhi", system-ui, sans-serif; }

.ac-k {
  font-family: var(--font-display); font-size: 11px; font-weight: 500; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--text-on-ink-faint);
}
.ac-mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text-on-ink-faint); }
.ac-panel { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 6px; }

/* status dots */
.ac-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.ac-dot--hollow { background: transparent; border: 1.5px solid var(--accent); }
.ac-dot--idle { background: var(--text-on-ink-faint); }

/* ---------- rail ---------- */
.ac-rail {
  position: absolute; top: 0; left: 0; bottom: 0; width: 220px;
  background: var(--ink-1); border-right: 1px solid var(--ink-line); padding: 28px 0 0;
}
.ac-brand {
  padding: 0 26px; font-family: var(--font-display); font-size: 16px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-on-ink);
}
.ac-brand b { color: var(--accent); font-weight: 400; }
.ac-brand__s { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--text-on-ink-faint); text-transform: none; }
.ac-nav { position: relative; margin-top: 36px; }
.ac-nav__i {
  position: relative; display: flex; align-items: center; height: 46px; padding: 0 26px;
  font-size: 15px; color: var(--text-on-ink-muted);
}
.ac-nav__i em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--text-on-ink-faint); }
.ac-nav__ind {
  position: absolute; left: 0; top: 0; width: 220px; height: 46px;
  background: rgba(233, 230, 223, 0.05); border-left: 2px solid var(--accent); pointer-events: none;
}
.ac-rail__foot {
  position: absolute; left: 26px; right: 26px; bottom: 26px; padding-top: 16px;
  border-top: 1px solid var(--ink-line); font-family: var(--font-mono); font-size: 12px; color: var(--text-on-ink-faint); line-height: 1.8;
}
.ac-rail__foot b { display: block; font-weight: 400; color: var(--text-on-ink-muted); }

/* ---------- top bar ---------- */
.ac-top {
  position: absolute; top: 0; left: 220px; right: 0; height: 60px;
  display: flex; align-items: center; gap: 22px; padding: 0 32px;
  background: var(--ink-1); border-bottom: 1px solid var(--ink-line);
}
.ac-top__org { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }
.ac-top__org span { color: var(--text-on-ink-faint); }
.ac-top__stats {
  margin-left: auto; display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-on-ink-muted); white-space: nowrap;
}
.ac-top__stats b { font-weight: 400; color: var(--text-on-ink); }
.ac-top__stats i { width: 1px; height: 16px; background: var(--ink-line-strong); }
.ac-top__live { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.ac-avatar {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--ink-line-strong); flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.06em; color: var(--text-on-ink-muted);
}

/* ---------- main: three columns ---------- */
.ac-main { position: absolute; top: 60px; left: 220px; right: 0; bottom: 0; }

/* conversation list */
.ac-list { position: absolute; top: 0; left: 0; width: 320px; bottom: 0; border-right: 1px solid var(--ink-line); background: var(--ink-1); }
.ac-list__h { display: flex; align-items: baseline; gap: 10px; height: 64px; padding: 0 22px; border-bottom: 1px solid var(--ink-line); }
.ac-list__t { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; }
.ac-list__s { margin-left: auto; }
.ac-row { position: relative; height: 84px; padding: 14px 22px 0; border-bottom: 1px solid var(--ink-line); }
.ac-row--on { background: rgba(233, 230, 223, 0.045); }
.ac-row--on::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.ac-row__l1 { display: flex; align-items: center; gap: 8px; }
.ac-row__n { font-size: 15px; color: var(--text-on-ink); font-weight: 500; }
.ac-row__t { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-on-ink-faint); }
.ac-row__l2 { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.ac-row__snip { font-size: 14px; color: var(--text-on-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ac-ch { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; color: var(--text-on-ink-faint); flex: none; }
.ac-ch svg { width: 14px; height: 14px; }
.ac-ch--on { color: var(--accent); }
/* a dim icon with a brass copy stacked over it, lit by opacity */
.ac-chx { position: relative; display: inline-flex; width: 18px; height: 18px; flex: none; }
.ac-ch--lit { position: absolute; left: 0; top: 0; opacity: 0; }
.ac-ch--stay { opacity: 1; }
.ac-row__l2 { position: relative; }
.ac-row__snip--b { position: absolute; left: 0; top: 0; right: 0; opacity: 0; }
.ac-lang {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 3px; flex: none;
  border: 1px solid var(--ink-line-strong); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--text-on-ink-faint);
}
.ac-tag {
  display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 3px; flex: none;
  font-family: var(--font-display); font-size: 9.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent);
}

/* thread */
.ac-thread { position: absolute; top: 0; left: 320px; width: 570px; bottom: 0; background: var(--ink-0); }
.ac-thread__h { display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 24px; border-bottom: 1px solid var(--ink-line); }
.ac-thread__n { font-family: var(--font-display); font-size: 20px; font-weight: 400; letter-spacing: 0.05em; }
.ac-thread__m { font-family: var(--font-mono); font-size: 12px; color: var(--text-on-ink-faint); letter-spacing: 0.04em; }
.ac-thread__log { margin-left: auto; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-on-ink-muted); }
.ac-strip { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 24px; border-bottom: 1px solid var(--ink-line); background: var(--ink-1); }
.ac-strip .ac-k { font-size: 10px; }
.ac-seg { position: relative; display: flex; height: 30px; border: 1px solid var(--ink-line-strong); border-radius: 4px; overflow: hidden; }
.ac-seg__ind { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent-soft); border-bottom: 2px solid var(--accent); }
.ac-seg__i { position: relative; display: flex; align-items: center; justify-content: center; font-size: 13.5px; color: var(--text-on-ink-muted); }
.ac-seg--ch .ac-seg__i, .ac-seg--ch .ac-seg__ind { width: 66px; }
.ac-seg--ln .ac-seg__i, .ac-seg--ln .ac-seg__ind { width: 74px; }
.ac-strip__btn {
  margin-left: auto; display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 4px;
  border: 1px solid var(--ink-line-strong); font-family: var(--font-display); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-on-ink-muted);
}
.ac-body { position: absolute; top: 114px; left: 0; right: 0; bottom: 60px; overflow: hidden; }
.ac-msgs { position: absolute; top: 20px; left: 24px; right: 24px; display: flex; flex-direction: column; gap: 14px; }
.ac-msg { display: flex; flex-direction: column; max-width: 420px; opacity: 0; }
.ac-msg--a { align-self: flex-start; }
.ac-msg--c { align-self: flex-end; align-items: flex-end; }
.ac-msg__meta { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--text-on-ink-faint); letter-spacing: 0.04em; margin-bottom: 5px; }
.ac-msg__meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--text-on-ink-faint); }
.ac-msg__meta .ac-ch { width: 14px; height: 14px; }
.ac-msg__meta .ac-ch svg { width: 12px; height: 12px; }
.ac-bub {
  position: relative; padding: 11px 16px 12px; border-radius: 8px; font-size: 16px; line-height: 1.5; color: var(--text-on-ink);
}
.ac-msg--a .ac-bub { background: var(--ink-3); border: 1px solid var(--ink-line); border-top-left-radius: 2px; }
.ac-msg--c .ac-bub { background: var(--ink-2); border: 1px solid var(--ink-line-strong); border-top-right-radius: 2px; }
.ac-msg--c .ac-bub::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 2px; background: var(--accent); border-radius: 2px 0 0 2px; }
/* three language variants stacked; the box is sized to the tallest */
.ac-tri { position: relative; }
.ac-tri > span { display: block; }
.ac-tri > span + span { position: absolute; left: 0; top: 0; right: 0; opacity: 0; }
.ac-tri > .ac-i { line-height: 1.6; }
.ac-bub__f { display: block; }
.ac-cite {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; margin-top: 8px; border-radius: 3px;
  border: 1px solid var(--accent); color: var(--accent); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; white-space: nowrap;
}
.ac-cite i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.ac-refuse {
  display: inline-flex; align-items: center; gap: 8px; height: 24px; padding: 0 9px; margin-top: 8px; border-radius: 3px;
  border: 1px solid var(--accent); color: var(--accent); font-family: var(--font-display); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; opacity: 0;
}
.ac-refuse i { width: 5px; height: 5px; border-radius: 50%; border: 1px solid var(--accent); }
/* voice bubble: a waveform, a duration, the transcript */
.ac-wave { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ac-bars { display: flex; align-items: center; gap: 3px; height: 26px; }
.ac-bars i { display: block; width: 3px; border-radius: 2px; background: var(--accent); opacity: 0.85; transform-origin: 50% 50%; }
.ac-wave__d { font-family: var(--font-mono); font-size: 12px; color: var(--text-on-ink-muted); }
.ac-tr { font-size: 16px; }
.ac-tr .ac-k { display: block; font-size: 9.5px; margin-bottom: 2px; }
.ac-div { display: flex; align-items: center; gap: 12px; align-self: stretch; opacity: 0; }
.ac-div::before, .ac-div::after { content: ""; flex: 1; height: 1px; background: var(--ink-line-strong); }
.ac-div span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--accent); white-space: nowrap; }
.ac-compose { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 24px; border-top: 1px solid var(--ink-line); background: var(--ink-1); }
.ac-compose__f { flex: 1; height: 34px; border: 1px solid var(--ink-line); border-radius: 4px; background: var(--ink-0); display: flex; align-items: center; padding: 0 12px; font-size: 14px; color: var(--text-on-ink-faint); }
.ac-compose__mic { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-on-ink-muted); }

/* policy column */
.ac-policy { position: absolute; top: 0; left: 890px; right: 0; bottom: 0; border-left: 1px solid var(--ink-line); background: var(--ink-1); padding: 0 22px; }
.ac-policy__h { display: flex; align-items: baseline; gap: 10px; height: 64px; border-bottom: 1px solid var(--ink-line); }
.ac-policy__t { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; }
.ac-policy__doc { display: flex; align-items: center; gap: 10px; padding: 16px 0 12px; font-size: 14px; color: var(--text-on-ink-muted); }
.ac-policy__doc svg { width: 14px; height: 17px; color: var(--accent); flex: none; }
.ac-policy__doc b { font-weight: 500; color: var(--text-on-ink); }
.ac-clause { position: relative; padding: 11px 12px 12px; border-radius: 5px; margin-top: 6px; }
.ac-clause__hi { position: absolute; inset: 0; border: 1px solid var(--accent); border-radius: 5px; background: var(--accent-soft); opacity: 0; }
.ac-clause__n { position: relative; display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--accent); }
.ac-clause__n em { font-style: normal; font-family: var(--font-display); font-size: 13px; letter-spacing: 0.06em; color: var(--text-on-ink); }
.ac-clause__pin { margin-left: auto; opacity: 0; }
.ac-clause__x { position: relative; font-size: 14px; line-height: 1.5; color: var(--text-on-ink-muted); margin-top: 4px; }
.ac-search { position: relative; margin-top: 18px; padding: 12px 12px 12px; border: 1px dashed var(--ink-line-strong); border-radius: 5px; opacity: 0; }
.ac-search__q { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-on-ink); letter-spacing: 0.02em; }
.ac-search__q em { font-style: normal; color: var(--text-on-ink-faint); }
.ac-search__r { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; color: var(--text-on-ink-muted); opacity: 0; }
.ac-search__r b { font-weight: 500; color: var(--accent); }
.ac-policy__foot { position: absolute; left: 22px; right: 22px; bottom: 22px; padding-top: 14px; border-top: 1px solid var(--ink-line); font-size: 13px; line-height: 1.55; color: var(--text-on-ink-faint); }

/* leader line, drawn between an answer's clause chip and the clause */
.ac-lead { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; pointer-events: none; overflow: visible; }
.ac-lead path { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.ac-lead circle { fill: none; stroke: var(--accent); stroke-width: 1.5; }

/* ---------- hand-off modal ---------- */
.ac-modal { position: absolute; inset: 0; z-index: 20; opacity: 0; }
.ac-modal__scrim { position: absolute; inset: 0; background: rgba(7, 9, 12, 0.74); }
.ac-modal__box {
  position: absolute; left: 50%; top: 150px; width: 660px; margin-left: -330px; padding: 26px 32px 28px;
  background: var(--ink-2); border: 1px solid var(--ink-line-strong); border-radius: 6px;
}
.ac-modal__k { display: flex; align-items: center; gap: 10px; }
.ac-modal__t { font-family: var(--font-display); font-size: 26px; font-weight: 300; letter-spacing: 0.04em; margin-top: 10px; }
.ac-modal__from { font-size: 14.5px; color: var(--text-on-ink-muted); margin-top: 6px; }
.ac-who { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 14px 16px; border: 1px solid var(--accent); border-radius: 5px; background: var(--ink-1); }
.ac-who .ac-avatar { width: 40px; height: 40px; font-size: 13px; color: var(--accent); border-color: var(--accent); }
.ac-who__n { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.05em; line-height: 1.2; }
.ac-who__r { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-on-ink-faint); margin-top: 3px; }
.ac-who__s { margin-left: auto; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--accent); white-space: nowrap; }
.ac-ctx { margin-top: 14px; border: 1px solid var(--ink-line); border-radius: 4px; background: var(--ink-1); }
.ac-ctx__r { display: flex; gap: 16px; align-items: center; min-height: 40px; padding: 8px 14px; border-top: 1px solid var(--ink-line); font-size: 14.5px; }
.ac-ctx__r:first-child { border-top: 0; }
.ac-ctx__r b { flex: none; width: 92px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-on-ink-faint); font-weight: 400; }
.ac-ctx__r span { color: var(--text-on-ink); }
.ac-ctx__r em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); white-space: nowrap; }
.ac-modal__a { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.ac-modal__a .ac-k { margin-right: auto; }
.ac-btn {
  display: inline-block; font-family: var(--font-display); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; border-radius: 4px; padding: 11px 24px;
}
.ac-btn--ghost { border: 1px solid var(--ink-line-strong); color: var(--text-on-ink-muted); }
.ac-btn--go { background: var(--accent); color: var(--ink-0); }
.ac-stamp {
  position: absolute; right: 28px; top: 24px; padding: 7px 14px; border: 2px solid var(--accent); border-radius: 4px;
  font-family: var(--font-display); font-size: 15px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); transform: rotate(-9deg); opacity: 0;
}
.ac-sent { position: absolute; left: 32px; bottom: -36px; font-family: var(--font-mono); font-size: 12px; color: var(--text-on-ink-muted); opacity: 0; }
.ac-sent b { color: var(--accent); font-weight: 400; }
.ac-cursor { position: absolute; left: 0; top: 0; width: 18px; height: 24px; z-index: 30; color: var(--text-on-ink); opacity: 0; }

/* ---------- ring (base.css .demo__ring, squared off for controls) ---------- */
.demo[data-demo="case-admissions"] .ac-ring { z-index: 25; border-radius: 7px; box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.12); }

/* Captions carry the ink chip and brass rule. The case frame is much
   wider than the home frames, so the caption may grow to 1rem. */
.demo[data-demo="case-admissions"] .demo__caption {
  background: rgba(7, 9, 12, 0.88);
  border-left: 2px solid var(--accent);
  padding: 9px 16px 9px 14px;
  border-radius: 2px;
  max-width: 74%;
  line-height: 1.5;
  font-size: clamp(0.7rem, 1.1cqw, 1rem);
}
