/* The shared call surface uses the workspace theme and a fixed transcript rail on desktop. */
.as-page { width: 100%; min-width: 0; height: max(640px, calc(100dvh - 64px)); padding: 16px clamp(14px, 2vw, 30px) 18px;
  display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.as-tools, .as-inputs, .as-lights { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.as-tools { justify-content: space-between; }
.as-sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.as-sources button { font-size: 12px; }
.as-sources button:disabled { cursor: default; }
.as-role { width: 116px; }
.as-run { width: 143px; }
.as-lights { gap: 3px; }
.as-light { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; border-radius: 6px;
  padding: 5px 6px; color: var(--text-2); font: inherit; font-size: 11.5px; cursor: pointer; }
.as-light:hover { background: var(--gray-bg); }
.as-light i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.as-light.working i { background: var(--green); }
.as-light.backup i { background: var(--amber); }
.as-light.error { color: var(--red-ink); }
.as-light.error i { background: var(--red); }
.as-board { flex: 1; min-width: 0; min-height: 0; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.as-call { display: inline-flex; align-items: stretch; max-width: 100%; border: 1px solid var(--line); border-radius: 99px;
  overflow: hidden; background: var(--card); color: var(--text-2); font-size: 12px; font-weight: 550; }
.as-call > span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; }
.as-call time { font-variant-numeric: tabular-nums; }
.as-call-state { background: var(--gray-bg); border-right: 1px solid var(--line); }
.as-call-state.active { background: var(--st-talk-bg); color: var(--st-talk-ink); }
.as-stage { color: var(--green-ink); font-size: 12px; font-weight: 600; }
/* One slim line on top; the suggestion lane gets the rest of the board. */
.as-head { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 10px 16px; border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, var(--lime-soft), var(--card) 60%); }
.as-head h2 { flex: 1; min-width: 0; margin: 0; font-size: 18px; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.as-main { min-width: 0; min-height: 0; display: flex; padding: 12px 16px 14px; }
.as-strip-head { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 14px; font-weight: 650; }
.as-strip-head .i { color: var(--muted); }
.as-empty { margin: 0; font-size: 13px; font-weight: 400; color: var(--muted); }
/* The suggestion lane: one column per caller turn; the newest sits on the right, older ones slide off to the left. */
.as-lane { flex: 1; min-width: 0; min-height: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scrollbar-width: thin; }
.as-track { display: flex; align-items: stretch; gap: 12px; min-width: 100%; height: 100%; will-change: transform; }
.as-lane-empty { padding: 18px 12px; }
.as-turn { flex: 0 0 min(440px, 86%); min-width: 0; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--line);
  border-radius: 12px; background: transparent; opacity: .5; transition: opacity 450ms ease; }
.as-turn:first-child { margin-inline-start: auto; }
.as-turn:hover, .as-turn:focus-within { opacity: 1; }
.as-turn.latest { opacity: 1; border-color: var(--p-cfe68e); background: var(--lime-soft); }
.as-turn-head { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px 12px; border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--text-2); }
.as-turn-head q { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-now { flex: none; padding: 2px 8px; border-radius: 99px; background: var(--lime); color: var(--lime-ink); font-size: 11px; font-weight: 650; }
.as-turn-body { flex: 1; min-height: 0; overflow: auto; display: grid; align-content: start; gap: 8px; padding: 10px; scrollbar-width: thin; }
.as-opt { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.as-opt { display: flex; flex-direction: column; align-items: stretch; }
.as-opt:has(.as-opt-pick:enabled):hover, .as-opt:focus-within { border-color: var(--p-cfe68e); }
.as-opt.info { border-inline-start: 3px solid var(--green); }
.as-opt-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 44px; padding: 10px 12px;
  border: 0; border-radius: inherit; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.as-opt-pick:disabled { cursor: default; }
.as-opt-head { display: flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; }
.as-opt-tag { flex: none; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 650; }
.as-opt-tag.info { background: var(--green-bg); color: var(--green-ink); }
.as-opt-tag.question { background: var(--blue-bg); color: var(--blue); }
.as-opt-tag.step { background: var(--gray-bg); color: var(--text-2); }
.as-opt-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 650;
  color: var(--ink); }
.as-opt.marked .as-opt-title { color: var(--muted); }
.as-opt-query { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.as-opt-text { font-size: 15px; line-height: 1.46; overflow-wrap: anywhere; }
.as-opt-done { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--green-ink); }
.as-opt.marked { background: var(--gray-bg); }
.as-opt.marked .as-opt-text { color: var(--muted); }
.as-opt .as-sources-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -2px 12px 10px; }
.as-opt .as-sources-list li { flex: 1 1 170px; min-width: 0; max-width: 260px; }
.as-opt .as-sources-list li.as-src-more { flex: 0 0 auto; }
.as-opt .as-src { padding: 5px 8px; }
.as-opt .as-src b { font-size: 12px; }
.as-opt .as-src span { font-size: 11px; }
.as-opt.pending { gap: 9px; padding: 10px 12px; border-style: dashed; background: transparent; }
/* While the knowledge service searches: three pulsing dots and shimmering placeholder lines. */
.as-searching { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--amber-ink); }
.as-searching i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: as-dot 1s ease-in-out infinite; }
.as-searching i:nth-child(2) { animation-delay: .15s; }
.as-searching i:nth-child(3) { animation-delay: .3s; margin-right: 4px; }
.as-skel { display: grid; gap: 7px; }
.as-skel b { height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--line) 0%, var(--line-soft) 45%, var(--line) 90%);
  background-size: 220% 100%; animation: as-shimmer 1.3s linear infinite; }
.as-skel b:nth-child(2) { width: 86%; }
.as-skel b:nth-child(3) { width: 58%; }
.as-turn-end .as-wrap { gap: 10px; padding: 12px; align-items: flex-start; }
.as-wrap p { margin: 0; white-space: pre-line; font-size: 14px; line-height: 1.5; color: var(--text); }
.as-wrap .as-skel { width: 100%; }
/* Agent-only notes are never styled like something to say. */
.as-mt { margin: 0; padding: 8px 11px; border: 1px dashed var(--p-f1d9a4); border-radius: 10px; background: var(--amber-bg);
  color: var(--amber-ink); font-size: 13px; line-height: 1.42; overflow-wrap: anywhere; }
.as-mt-label { display: flex; align-items: center; gap: 5px; margin-bottom: 2px; font-size: 11px; font-weight: 700;
  letter-spacing: .02em; }
.as-sources-list { list-style: none; display: grid; gap: 6px; margin: 9px 0 0; padding: 0; }
.as-src { display: grid; gap: 1px; min-width: 0; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--ink); text-decoration: none; }
a.as-src:hover { border-color: var(--p-cfe68e); }
.as-src b, .as-src span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-src b { font-size: 13px; font-weight: 600; }
.as-src span { font-size: 11.5px; color: var(--muted); }
.as-full { display: inline-block; padding: 4px 0; border: 0; background: transparent; color: var(--blue);
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.as-full:hover { text-decoration: underline; }
.as-transcript { display: block; width: 100%; min-width: 0; padding: 10px 16px 12px; border: 0; border-top: 1px solid var(--line);
  color: var(--ink); background: var(--bg); font: inherit; text-align: left; cursor: pointer; }
.as-strip-head { justify-content: space-between; margin-bottom: 6px; font-size: 12px; }
.as-strip-head > span { display: inline-flex; align-items: center; gap: 7px; }
.as-strip { display: flex; align-items: stretch; min-height: 44px; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 3px; }
.as-strip .as-empty { align-self: center; }
.as-bubble { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; max-width: min(360px, 85%); padding: 5px 10px 5px 7px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--card); color: var(--text); font-size: 12px; }
.as-bubble:first-child { margin-inline-start: auto; }
.as-bubble span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-bubble b { position: relative; flex: 0 0 24px; display: grid; place-items: center; width: 24px; height: 24px;
  background: var(--st-talk-bg); color: var(--st-talk-ink); border-radius: 50%; }
.as-bubble .agent { background: var(--blue-bg); color: var(--blue); }
.as-bubble.partial, .as-pending { color: var(--muted); }
.as-bubble.latest b::after { content: ''; position: absolute; inset: 0; border: 1px solid currentColor;
  border-radius: 50%; opacity: 0; animation: as-pulse 1.1s ease-out; }
.as-bubble.partial.latest b::after { animation-iteration-count: infinite; }
html:has(.as-layer) { overflow: hidden; }
.as-layer { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: var(--scrim); }
.as-dialog { position: relative; inset: auto; margin: 0; width: min(590px, calc(100% - 24px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 20px;
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--dialog-shadow); background: var(--card); color: var(--ink);
  font: 15px/1.55 var(--font); text-align: left; }
.as-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.as-dialog-head h2 { font-size: 19px; margin: 0; }
.as-dialog > h3 { font-size: 16px; margin: 14px 0 8px; }
.as-answer { overflow-wrap: anywhere; }
.as-answer p, .as-answer ul { margin: 6px 0; }
.as-dialog li { overflow-wrap: anywhere; }
.as-dialog a { color: var(--blue); }
.as-dialog.as-drawer, .as-dialog.as-panel { margin: 0 0 0 auto; border-radius: 0; height: 100dvh; max-height: 100dvh; }
.as-dialog.as-panel { width: min(1140px, 100%); }
.as-log { list-style: none; margin: 0; padding: 0; }
.as-log li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.as-log time { float: right; font-size: 12px; color: var(--muted); }
.as-log p { margin: 3px 0; }
.as-embedded { padding: 0; height: max(560px, calc(100dvh - 94px)); }
.as-open { margin-left: auto; flex: 0 0 88px; }
.cb-foot:has(.as-open) { padding-top: 4px; }
@keyframes as-appear { from { opacity: 1; } to { opacity: 0; } }
@keyframes as-dot { 0%, 80%, 100% { transform: scale(.55); opacity: .45; } 40% { transform: scale(1); opacity: 1; } }
@keyframes as-shimmer { from { background-position: 100% 0; } to { background-position: -120% 0; } }
@keyframes as-pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.4); opacity: 0; } }
@media (max-width: 850px) {
  .as-page { height: auto; min-height: calc(100dvh - 64px); padding: 12px; }
  .as-embedded { min-height: 0; padding: 0; }
  .as-board { display: flex; flex-direction: column; }
  .as-head h2 { font-size: 16px; }
  .as-main { padding: 10px; }
  .as-lane { min-height: 360px; }
  .as-sources button { padding: 0 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .as-bubble.latest b::after, .as-searching i, .as-skel b { animation: none; }
}

/* Görüşme Kayıtları (web/app/pages/assist_log.js): a past session as a timeline of speech and what was shown. */
.al-table td.al-first { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-wrapup { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.al-wrapup h3 { margin: 0 0 4px; font-size: 13px; color: var(--ink); }
.al-wrapup p { margin: 0; white-space: pre-line; font-size: 13.5px; color: var(--text); }
.al-timeline { list-style: none; margin: 0; padding: 0; max-height: 62vh; overflow: auto; display: grid; gap: 2px;
  border-top: 1px solid var(--line-soft); scrollbar-width: thin; }
.al-timeline > li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: start; padding: 6px 2px; }
.al-timeline > li > time { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.al-timeline > li.al-line { grid-template-columns: 46px 74px minmax(0, 1fr); border-top: 1px solid var(--line-soft); padding-top: 9px; }
.al-line b { font-size: 12.5px; color: var(--st-talk-ink); padding-top: 1px; }
.al-line.agent b { color: var(--blue); }
.al-line p { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.45; }
.al-sub > div, .al-sub > p { margin-left: 84px; }
.al-opts { display: grid; gap: 5px; }
.al-opts > p { margin: 0; display: flex; align-items: baseline; gap: 7px; font-size: 13.5px; color: var(--text); }
.al-opts .as-opt-tag { flex: none; }
.al-opts > p.al-query { color: var(--muted); font-size: 12.5px; }
.al-opts > p > b { flex: none; color: var(--ink); font-weight: 650; }
.al-info { padding: 7px 10px; border-inline-start: 3px solid var(--green); border-radius: 8px; background: var(--card);
  border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); line-height: 1.45; }
.al-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.al-links li { flex: 0 1 280px; min-width: 0; }
.al-mark p, .al-error p { margin: 0 0 0 84px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.al-mark p { color: var(--green-ink); }
.al-error p { color: var(--red-ink); }
@media (max-width: 760px) {
  .al-sub > div, .al-sub > p, .al-mark p, .al-error p { margin-left: 0; }
  .al-timeline > li.al-line { grid-template-columns: 40px 62px minmax(0, 1fr); }
}
