:root {
  --bg: #f8fafc;
  --paper: #ffffff;
  --ink: #1b1f24;
  --muted: #5f6873;
  --line: #e2e4e8;
  --user: #8a94a3;
  --user-bg: #f0f1f4;
  --model: #2f6fdb;
  --model-bg: #e8f0fc;
  --miss: #b42318;
  --miss-bg: #fde4e1;
  --gap: #d92d20;
  --chip: #f1f3f6;
  --band: #eef1f5;
  --band-line: #dde2e8;
  --chat-band: #f6f7f9;
  --hero: #edf1f6;
  --bar: #4d5b6f;
  --t-responsiveness: #b42318;
  --t-quality: #7a3fc2;
  --t-wer: #0e7a6d;
  --t-speaker: #b25e09;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.hero { padding: 56px 16px 44px; text-align: center; background: var(--hero); }
.hero h1 { font-size: clamp(24px, 4vw, 34px); line-height: 1.2; margin: 0 auto 14px; max-width: 1088px; }
.authors { margin: 0 0 6px; font-size: 16px; }
.authors sup, .affiliations sup, .corresponding sup { font-size: 0.7em; }
.affiliations { display: flex; flex-direction: column; gap: 4px; margin: 0 0 2px; font-size: 14px; color: var(--muted); }
.affiliation-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; }
.corresponding { margin: 0 0 16px; font-size: 12px; color: var(--muted); }
.links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.link {
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.link:hover { opacity: 0.85; }
.abstract { max-width: 760px; margin: 0 auto; padding: 28px 0 8px; text-align: left; }
.abstract h2 { text-align: center; margin-bottom: 10px; }
.abstract p { margin: 0; text-align: justify; hyphens: auto; line-height: 1.65; }

section { padding: 28px 0; }
h2 { font-size: 22px; margin: 0 0 6px; }
.note { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.lead { margin: 0 0 24px; font-size: 16px; line-height: 1.65; }
#teaser h2, #mitigation h2 { font-size: 26px; margin-bottom: 14px; }
h3 { font-size: 20px; margin: 28px 0 12px; }
#details h3 { margin: 0 0 6px; }

.card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px 14px;
  min-width: 0;
}
.card .side { display: flex; flex-direction: column; min-width: 0; }
.chat-col { display: flex; flex-direction: column; height: 400px; min-width: 0; align-self: start; }
.chat-head { flex: none; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.card .chat {
  flex: 1;
  min-height: 0;
  margin-top: 0;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 8px;
}
@media (max-width: 860px) {
  .card { grid-template-columns: 1fr; }
  .chat-col { margin-top: 10px; }
}

.top { flex: none; }
.card-head { display: flex; flex-direction: column; gap: 2px; }
.title { font-weight: 700; font-size: 15px; }
.responsiveness { --type: var(--t-responsiveness); }
.quality { --type: var(--t-quality); }
.wer { --type: var(--t-wer); }
.speaker { --type: var(--t-speaker); }
.type-chip {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--type);
}
.type-chip::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--type);
  margin-right: 7px;
  vertical-align: 0.1em;
}
.caption {
  margin: 6px 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.media { flex: none; margin-bottom: 12px; }
.media-pane { margin-top: 8px; padding: 8px 10px 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.media-pane.later { border-color: var(--t-speaker); background: color-mix(in srgb, var(--t-speaker) 6%, white); }
.media-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.media-pane.later .media-label { color: var(--t-speaker); }
.media-pane .audio { margin: 4px 0 6px; }
.audio { margin: 6px 0; min-width: 0; }
.audio audio { width: 100%; height: 36px; display: block; }
.compare { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compare-pane { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--paper); min-width: 0; overflow-y: auto; }
.compare-pane.later { border-color: var(--type); background: color-mix(in srgb, var(--type) 6%, white); }
.compare-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.compare-pane.later .compare-label { color: var(--type); }
.compare-pane .audio { margin: 6px 0 8px; }
.compare-text { font-size: 14px; line-height: 1.5; }

.eval { flex: none; margin-top: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.eval-head { display: flex; align-items: center; gap: 8px; }
.eval-value { padding: 1px 9px; border-radius: 999px; border: 1px solid var(--type); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.eval-value b { color: var(--type); }
.eval-label { font-size: 13px; color: var(--muted); }
.eval-more { margin-left: auto; padding: 0; border: none; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--type); cursor: pointer; }
.eval-more::after { content: " ▾"; }
.eval-more[aria-expanded="true"]::after { content: " ▴"; }
.eval-note { margin: 6px 0 0; line-height: 1.55; }

.timeline { position: relative; margin: 8px 0 4px; cursor: pointer; }
.tl-row { display: flex; align-items: center; gap: 8px; height: 26px; margin-bottom: 4px; }
.tl-label { width: 44px; flex: none; font-size: 12px; color: var(--muted); }
.tl-track { position: relative; flex: 1; height: 18px; background: var(--chip); border-radius: 3px; }
.tl-bar { position: absolute; top: 0; height: 100%; border-radius: 3px; }
.tl-bar.user { background: var(--user); }
.tl-bar.model { background: var(--model); }
.tl-bar.model.backchannel { top: 25%; height: 50%; opacity: 0.7; }
.tl-bar.model.interrupting { background: var(--gap); }
.tl-wait { position: absolute; top: 0; height: 100%; border-radius: 3px; background: var(--miss-bg); box-shadow: inset 0 0 0 1px rgba(180,35,24,0.35); }
.tl-overlay { position: absolute; top: 0; bottom: 18px; left: 52px; right: 0; pointer-events: none; }
.tl-head { position: absolute; top: 0; bottom: 0; width: 2px; left: 0; background: var(--ink); }
.tl-axis { display: flex; justify-content: space-between; margin-left: 52px; font-size: 11px; color: var(--muted); }

.chat {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding: 2px 4px 2px 0;
  scrollbar-width: thin;
}
.msg { display: flex; flex-direction: column; max-width: 85%; flex: none; }
.msg.user { align-self: flex-start; align-items: flex-start; }
.msg.model { align-self: flex-end; align-items: flex-end; }
.bubble {
  padding: 7px 11px;
  border-radius: 12px;
  font-size: 14px;
  overflow-wrap: anywhere;
  border: 1.5px solid transparent;
  transition: border-color 0.2s;
}
.msg.user .bubble { background: var(--user-bg); border-bottom-left-radius: 4px; }
.msg.model .bubble { background: var(--model-bg); border-bottom-right-radius: 4px; }
.msg.short .bubble { font-size: 13px; padding: 3px 9px; }
.msg.active .bubble { border-color: var(--ink); }
.msg.focus .bubble { box-shadow: 0 0 0 2px var(--type); }
.card.compound .msg.focus .bubble { box-shadow: none; }
.card.split-marks .msg .bubble.split { box-shadow: 0 0 0 1.5px var(--t-wer); }
.card.split-marks .pane.heard { border-color: var(--t-quality); }
.card.split-marks .pane.heard .pane-label { color: var(--t-quality); }
.card.compound.has-quality .compare-pane.later { border-color: var(--line); background: var(--paper); }
.card.compound.has-quality .compare-pane.later .audio { padding: 3px; border: 1.5px solid var(--t-speaker); border-radius: 12px; background: color-mix(in srgb, var(--t-speaker) 6%, white); }
.card.compound.has-quality .compare-pane.later .compare-text { padding: 6px 9px; border: 1.5px solid var(--t-quality); border-radius: 6px; background: color-mix(in srgb, var(--t-quality) 5%, white); }
.msg.noreply .bubble { background: var(--miss-bg); color: var(--miss); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; padding: 4px 14px; }
.msg.noreply .meta { color: var(--miss); font-weight: 600; cursor: default; }
.session-end { align-self: center; flex: none; padding: 3px 12px; border-radius: 999px; background: var(--chip); font-size: 13px; font-weight: 600; color: var(--muted); }
.meta { font-size: 11px; color: var(--muted); margin-top: 2px; cursor: pointer; }
.meta:hover { color: var(--ink); }
.msg.contrast { max-width: 100%; width: 100%; }
.msg.model .bubble.split { display: grid; gap: 6px; width: 100%; padding: 8px; background: var(--paper); }
.pane { border: 1.5px solid transparent; border-radius: 8px; padding: 5px 9px; }
.pane.text { border: 1px dashed #b8c0cc; background: var(--paper); }
.pane.heard { background: var(--model-bg); }
.pane-label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.pane.text .pane-label { color: var(--muted); }
.pane.heard .pane-label { color: var(--model); }
.pane-body { font-size: 14px; }

.type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--type);
  border-radius: 10px;
  padding: 16px 16px 14px;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}
.type-card:hover { box-shadow: 0 8px 22px rgba(20, 30, 50, 0.1); transform: translateY(-1px); }
.type-card:focus-visible { outline: 2px solid var(--type); outline-offset: 2px; }
.type-bands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 8px; }
.type-band { display: flex; align-items: center; gap: 10px; padding: 0 2px; }
.type-band::before, .type-band::after { content: ""; flex: 1; height: 7px; border-bottom: 1px solid var(--band-line); }
.type-band::before { border-left: 1px solid var(--band-line); }
.type-band::after { border-right: 1px solid var(--band-line); }
.type-band-label { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.type-title { margin-bottom: 14px; font-size: 16px; white-space: nowrap; font-weight: 700; line-height: 1.25; }
.type-open { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--type); }
.type-open::after { content: " →"; }

.teaser-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.teaser-back, .switch { font: inherit; font-size: 13px; cursor: pointer; }
.teaser-back { background: none; border: none; padding: 6px 0; color: var(--muted); }
.teaser-back:hover { color: var(--ink); }
.teaser-switch { display: flex; flex-wrap: wrap; gap: 6px; }
.switch { border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); padding: 5px 12px; }
.switch::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--type); margin-right: 6px; vertical-align: 0.1em; }
.switch[aria-pressed="true"] { color: var(--ink); border-color: var(--type); font-weight: 600; }
#teaser .card { border-top: 4px solid var(--type); }
::view-transition-group(teaser-card) { animation-duration: 0.3s; }

#details {
  margin: 24px 0 48px;
  padding: 32px 28px 36px;
  background: var(--band);
  border: 1px solid var(--band-line);
  border-radius: 16px;
}
#details .card .chat { background: var(--chat-band); }
#details > p { margin: 0; line-height: 1.65; }
.gallery-tiles { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gallery-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 20px 12px 14px; border: 1px solid var(--band-line); border-radius: 10px; background: var(--paper); font: inherit; text-align: left; cursor: pointer; }
.gallery-tile:hover { border-color: var(--muted); }
.gallery-tile[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.gallery-title { font-weight: 700; font-size: 15px; line-height: 1.35; }
.gallery-bar { position: absolute; top: 0; right: 0; bottom: 0; width: 5px; display: flex; flex-direction: column; gap: 2px; }
.gallery-seg { flex: 1; background: var(--type); }
.gallery-model { font-size: 13px; color: var(--muted); }
.gallery-slot { margin-top: 16px; }
.chips { display: flex; gap: 12px; white-space: nowrap; }
.chips .type-chip { text-transform: none; letter-spacing: 0; font-size: 13px; }
.gallery-eval .eval-head { margin-bottom: 6px; }
.gallery-eval .eval-more { color: var(--t-quality); }
.gallery-eval-items { display: flex; gap: 12px; white-space: nowrap; }
.gallery-eval-item { display: inline-flex; align-items: center; gap: 6px; }

.figure { margin: 16px 0 0; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.figure-scroll { overflow-x: auto; }
.figure img { display: block; width: 100%; height: auto; min-width: 640px; }
.trc-video video { display: block; width: 100%; height: auto; border-radius: 5px; }
#mitigation { margin-top: 24px; border-top: 1px solid var(--line); }
#mitigation p { margin: 0 0 16px; line-height: 1.65; }
main { padding-bottom: 36px; }

#long-conversations { margin: 32px 0 24px; border-top: 1px solid var(--line); padding-top: 40px; }
#long-conversations h2 { font-size: 26px; margin-bottom: 12px; }
#long-conversations > .lead { color: var(--muted); font-size: 15px; }
#improvement-explorer {
  --im-trc: #24776b;
  --im-base: #858e9b;
  --im-later: #b4543e;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 6px 24px rgb(30 45 60 / 3%);
}
.im-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; gap: 4px; background: #f0f3f5; border-radius: 9px; }
.im-model-tab { border: 1px solid transparent; border-radius: 6px; padding: 11px 8px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.im-model-tab:hover { color: var(--ink); }
.im-model-tab[aria-selected="true"] { background: white; color: var(--ink); border-color: var(--line); box-shadow: 0 1px 3px rgb(30 45 60 / 5%); }
.im-model-tab:focus-visible, .im-point:focus-visible { outline: 2px solid var(--im-trc); outline-offset: 3px; }
.im-case-header { margin: 26px 0 20px; }
.im-eyebrow { font-size: 12px; color: var(--muted); }
.im-case-title { margin: 3px 0 0; font-size: 19px; font-weight: 650; }
.im-axis, .im-lane { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; }
.im-axis { margin-bottom: 2px; }
.im-axis-label { font-size: 11px; color: var(--muted); }
.im-axis-values { position: relative; margin: 0 28px; height: 20px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.im-axis-values span { position: absolute; transform: translateX(-50%); }
.im-lane { --im-lane: var(--im-base); }
.im-trc { --im-lane: var(--im-trc); }
.im-lane-label { color: var(--im-lane); font-weight: 650; font-size: 14px; padding-top: 22px; }
.im-track { position: relative; height: 76px; margin: 0 28px; }
.im-rail { position: absolute; left: 0; right: 0; top: 49px; height: 2px; background: repeating-linear-gradient(to right, #e5e9ec 0 4px, transparent 4px 8px); }
.im-session { position: absolute; left: 0; top: 49px; height: 3px; border-radius: 3px; background: var(--im-lane); opacity: 0.5; }
.im-session-end { position: absolute; top: 44px; width: 2px; height: 13px; background: var(--im-lane); opacity: 0.55; }
.im-excerpt-band { position: absolute; top: 45px; height: 11px; border-radius: 5px; background: var(--im-lane); opacity: 0.16; }
.im-excerpt-band.is-selected { opacity: 0.4; }
.im-point { --im-point: var(--im-lane); position: absolute; top: 6px; z-index: 1; transform: translateX(-50%); display: flex; justify-content: center; width: 82px; height: 62px; padding: 0; border: none; border-radius: 7px; background: transparent; color: var(--im-point); cursor: pointer; font: inherit; }
.im-degraded { --im-point: var(--im-later); }
.im-excerpt-band.im-degraded { background: var(--im-later); }
.im-point-caption { position: absolute; top: 7px; border-radius: 5px; padding: 3px 9px; font-size: 12px; line-height: 1.4; white-space: nowrap; transition: background .15s; }
.im-point-dot { position: absolute; top: 38px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--im-point); background: white; transition: box-shadow .15s; }
.im-point:hover .im-point-caption { background: color-mix(in srgb, var(--im-point) 9%, white); }
.im-point[aria-pressed="true"] .im-point-caption { color: white; background: var(--im-point); }
.im-point[aria-pressed="true"] .im-point-dot { background: var(--im-point); box-shadow: 0 0 0 4px color-mix(in srgb, var(--im-point) 15%, transparent); }
.im-point.is-playing .im-point-dot { animation: im-pulse 1.6s ease-out infinite; }
.im-playhead { position: absolute; top: 44px; width: 2px; height: 14px; background: var(--im-lane); z-index: 2; pointer-events: none; }
.im-player { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.im-clip-header { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 10px; min-height: 24px; }
.im-clip-title { color: var(--im-lane, var(--ink)); font-size: 14px; font-weight: 650; }
.im-clip-range { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.im-audio { display: block; width: 100%; height: 38px; }
.im-chat { height: 340px; flex: none; margin-top: 16px; padding: 16px; background: var(--bg); border: 1px solid #edf0f3; border-radius: 8px; gap: 14px; }
.im-chat .msg { max-width: 85%; }
.im-message-stamp { border: none; background: none; padding: 0 2px; margin: 0 0 4px; color: var(--muted); font: inherit; font-size: 11px; font-variant-numeric: tabular-nums; cursor: pointer; }
.im-message-stamp:hover { color: var(--ink); text-decoration: underline; }
.im-event { align-self: flex-end; flex: none; text-align: right; color: var(--miss); }
.im-event-text { border-radius: 6px; padding: 5px 10px; background: var(--miss-bg); font-size: 12px; }
.im-ended { align-self: center; color: var(--muted); text-align: center; }
.im-ended .im-event-text { background: var(--chip); border-radius: 99px; }
@keyframes im-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--im-point) 30%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
@media (prefers-reduced-motion: reduce) { .im-point.is-playing .im-point-dot { animation: none; } }
@media (max-width: 600px) {
  #improvement-explorer { padding: 16px 12px; }
  .im-model-tab { font-size: 11px; padding: 10px 3px; }
  .im-case-header { margin-top: 22px; }
  .im-case-title { font-size: 17px; }
  .im-axis, .im-lane { grid-template-columns: 75px minmax(0, 1fr); }
  .im-lane-label { font-size: 12px; line-height: 1.4; }
  .im-axis-values, .im-track { margin-left: 24px; margin-right: 24px; }
  .im-point { width: 66px; }
  .im-point-caption { font-size: 11px; padding: 3px 7px; }
  .im-chat { padding: 10px; height: 350px; }
  .im-chat .msg { max-width: 94%; }
  .im-chat .bubble { font-size: 13px; }
}
@media (max-width: 760px) {
  .chips, .gallery-eval-items { flex-wrap: wrap; }
  .figure { padding: 10px; }
}

/* 사용자 발화에 겹친 backchannel의 시간 위치를 표시한다. */
.im-overlap-turn {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 24px;
  width: 100%;
  align-self: stretch;
  flex: none;
}
.im-chat .im-user-with-reactions { max-width: 100%; width: 100%; }
.im-user-with-reactions { align-self: start; }
.im-user-with-reactions > .bubble { width: 100%; box-sizing: border-box; line-height: 1.75; }
.im-reaction-anchor {
  display: inline-flex;
  vertical-align: super;
  align-items: center;
  justify-content: center;
  margin: 0 3px 0 1px;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 1px solid #9fc5b5;
  border-radius: 50%;
  background: #f1f8f4;
  color: #38765b;
  font: 600 9px/1 system-ui, sans-serif;
  cursor: pointer;
}
.im-reaction-rail { position: relative; min-width: 0; align-self: stretch; }
.im-reaction-heading { color: #849087; font-size: 10px; letter-spacing: .02em; }
.im-reaction-note {
  position: absolute;
  left: 0;
  right: 0;
  padding: 7px 10px;
  border: 1px solid #d9e6df;
  border-left: 2px solid #a8c7b5;
  border-radius: 0 7px 7px 0;
  background: #f5f9f6;
  transition: background .15s, border-color .15s;
}
.im-reaction-note::before {
  content: "";
  position: absolute;
  width: 24px;
  left: -26px;
  top: var(--connector-shift, 12px);
  border-top: 1px dashed #bbd0c2;
}
.im-reaction-meta { display: flex; align-items: center; gap: 5px; margin-bottom: 2px; }
.im-reaction-meta > .im-message-stamp { margin: 0; color: #718277; font-size: 10px; }
.im-reaction-number { color: #718c7b; font-size: 9px; }
.im-reaction-text { color: #3f6551; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.im-reaction-note.active { background: #e5f2e8; border-color: #6c9d7d; }
.im-reaction-anchor.active { color: white; border-color: #4b8760; background: #4b8760; }
.im-chat .msg.model:not(.short) .bubble { line-height: 1.65; }
.im-chat { height: 420px; }
@media (max-width: 650px) {
  .im-overlap-turn { display: block; }
  .im-reaction-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 0 14px;
    padding: 0 0 0 10px;
    border-left: 1px solid #c4d8cb;
  }
  .im-reaction-heading { width: 100%; }
  .im-reaction-note { position: static; padding: 5px 9px; border-left-width: 1px; border-radius: 6px; }
  .im-reaction-note::before { display: none; }
  .im-reaction-meta > .im-message-stamp { font-size: 9px; }
  .im-reaction-text { font-size: 12px; }
  .im-chat { height: 430px; }
}
