/*
 * Gespräch: the conversation column. Colours come from ui.css tokens.
 * The line is 24px (22px on a narrow phone). A phrase gloss sits under its own words.
 */
.gs { display: flex; flex-direction: column; gap: var(--s-4); }
.gs-scene {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3); align-items: center;
  padding: var(--s-4); border: var(--bw) solid var(--line); border-radius: var(--r-card); background: var(--card);
  color: inherit; text-decoration: none;
}
.gs-scene:hover { border-color: var(--ink); }
.gs-scene__place { font-family: var(--font-display); font-size: var(--fs-22); font-weight: 600; }
.gs-scene__meta { color: var(--muted); font-size: var(--fs-14); }
.gs-kicker { font-size: var(--fs-14); color: var(--muted); }

.gs-top { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); border: var(--bw) solid var(--line); border-radius: var(--r-card); background: var(--card); }
.gs-who { display: flex; gap: var(--s-3); align-items: center; }
.gs-who h1 { font-size: var(--fs-22); }
.gs-goals { display: flex; flex-direction: column; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.gs-goal { display: flex; gap: var(--s-2); align-items: flex-start; min-height: var(--touch); }
.gs-goal.is-done { color: var(--mastery-text, var(--mastery)); }
.gs-goal.is-done .gs-goal__box { background: var(--mastery); border-color: var(--mastery); color: var(--card); }

.gs-goal__box {
  display: grid; place-items: center; width: var(--s-5); height: var(--s-5); flex: none; margin-top: 2px;
  border: var(--bw) solid var(--line-strong); border-radius: var(--r-control); background: var(--card);
}

.gs-log { display: flex; flex-direction: column; gap: var(--s-5); }
.gs-turn { display: flex; flex-direction: column; gap: var(--s-2); }
.gs-turn--learner { padding: var(--s-3); border-left: var(--indicator-w) solid var(--line-strong); }
.gs-said { margin: 0; font-size: var(--fs-18); }
.gs-said__you { color: var(--muted); font-size: var(--fs-14); }
.gs-fix { margin: 0; font-size: var(--fs-14); }
.gs-fix b { font-weight: 600; }
.gs-why { margin: 0; color: var(--muted); font-size: var(--fs-14); }

.gs-line { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-2) var(--s-3); }
.gs-unit { display: flex; flex-direction: column; align-items: stretch; max-width: 100%; min-width: 0; }
.gs-unit__words { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.gs-w {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-height: var(--touch); max-width: 100%; padding: var(--s-1) var(--s-2);
  border: var(--bw) solid var(--line); border-radius: var(--r-control); background: var(--card); color: var(--ink);
  font: inherit; font-size: 1.375rem; font-weight: 600; line-height: 1.2; text-align: left; overflow-wrap: anywhere;
}
.gs-w__art { font-size: var(--fs-12); font-weight: 600; }
.gs-w--verb { color: var(--signal-text); }
.gs-w.is-now { background: color-mix(in srgb, var(--signal) 28%, var(--card)); border-color: var(--signal); }
.gs-gloss { display: block; margin-top: 2px; color: var(--muted); font-size: var(--fs-12); line-height: 1.3; overflow-wrap: anywhere; }
.gs-en { color: var(--muted); font-size: var(--fs-14); }
.gs-en summary { min-height: var(--touch); cursor: pointer; }
.gs-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.gs-interim { margin: 0; color: var(--muted); font-size: var(--fs-18); }

.gs-dock {
  position: sticky; bottom: calc(var(--tabbar-h) + var(--s-2));
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-3); border: var(--bw) solid var(--line); border-radius: var(--r-card); background: var(--card);
}
.gs-ptt {
  min-height: 64px; width: 100%;
  font-size: var(--fs-18); font-weight: 600;
  user-select: none; touch-action: none; -webkit-touch-callout: none;
}
.gs-ptt { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); border-radius: var(--r-pill); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.gs-ptt svg { width: 24px; height: 24px; flex: none; }
/* Pressed / listening must look different from the idle primary button. */
.gs-ptt[aria-pressed="true"] {
  --btn-bg: var(--danger); --btn-fg: var(--paper); --btn-border: var(--danger);
  background: var(--danger); color: var(--paper);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 45%, transparent);
  animation: sturn-pulse 1.4s var(--ease) infinite;
}
@media (prefers-reduced-motion: reduce) { .gs-ptt[aria-pressed="true"] { animation: none; } }
.gs-type { display: flex; flex-direction: column; gap: var(--s-2); }
.gs-help { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-3); border: var(--bw) solid var(--line); border-radius: var(--r-card); background: var(--paper); }
.gs-help[hidden] { display: none; }
.gs-hint { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); width: 100%; }
.gs-hint .btn--secondary { flex: 1; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }

.gs-sheet {
  display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4);
  border: var(--bw) solid var(--line); border-radius: var(--r-card); background: var(--card);
}
.gs-sheet[hidden] { display: none; }
.gs-sheet__de { margin: 0; font-size: var(--fs-22); font-weight: 600; }

.gs-avatar { width: 56px; height: 56px; flex: none; }
.gs-avatar__bg { fill: color-mix(in srgb, var(--signal) 22%, var(--card)); }
.gs-avatar__face { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.gs-avatar__hair { fill: none; stroke: var(--ink); stroke-width: 2; }
.gs-avatar__eye { fill: var(--ink); }
.gs-avatar__glasses { fill: none; stroke: var(--ink); stroke-width: 1.5; }

.gs-banner { font-size: var(--fs-14); }
.gs-report { display: flex; flex-direction: column; gap: var(--s-2); }
.gs-flag { align-self: flex-start; }

@media (min-width: 480px) {
  .gs-w { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gs-w.is-now { background: var(--card); border-color: var(--line); }
  .gs-line:has(.gs-w.is-now) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
  .gs-listen { animation: none; }
}

.gs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: var(--s-3); }
.gs-card {
  display: flex; flex-direction: column; gap: var(--s-1); min-height: var(--touch);
  padding: var(--s-3); border: var(--bw) solid var(--line); border-radius: var(--r-card);
  background: var(--card); color: inherit; text-decoration: none;
}
.gs-card:hover { border-color: var(--ink); }
.gs-card__level { font-size: var(--fs-12); color: var(--muted); }
.gs-card__title { font-family: var(--font-display); font-size: var(--fs-18); font-weight: 600; }
.gs-card__meta { color: var(--muted); font-size: var(--fs-14); }
.gs-meter { margin: 0; font-size: var(--fs-14); }
.gs-listen {
  display: grid; place-items: center; min-height: 64px; margin: 0;
  border: 3px solid var(--signal); border-radius: 999px; font-weight: 600;
  animation: gs-pulse 1.2s ease-out infinite;
}
@keyframes gs-pulse { 50% { transform: scale(1.04); } }
.gs-confirm { display: flex; flex-direction: column; gap: var(--s-2); }
.gs-debug {
  max-height: 12rem; overflow: auto; margin: 0; padding: var(--s-2);
  border: var(--bw) solid var(--line); border-radius: var(--r-control);
  font-size: var(--fs-12); white-space: pre-wrap;
}
.gs-level { height: 12px; border: var(--bw) solid var(--line); border-radius: 999px; overflow: hidden; }
.gs-level span { display: block; height: 100%; width: 0; background: var(--signal); }
.gs-memory { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s-2); }
.gs-memory li { display: flex; justify-content: space-between; gap: var(--s-2); align-items: center; }
