/* ============================================================
   J.A.R.V.I.S. HUD  —  dark sci-fi command center
   ============================================================ */

:root {
  /* palette */
  --bg-0: #050a14;          /* deepest */
  --bg-1: #070d18;          /* app background (navy) */
  --bg-2: #0c1526;          /* panels */
  --bg-3: #0f1b30;          /* raised */
  --line: #1a2840;   /* hairline */
  --line-soft: #22344f;

  --cyan: #4cc2ff;          /* glow accent */
  --cyan-dim: #2b6f99;
  --gold: #f5b33d;          /* secondary, sparing */
  --violet: #8b6cf6;        /* memory */
  --blue: #2f7cf6;          /* primary accent */
  --gray: #8aa0b8;          /* built-in tools */
  --green: #22c55e;
  --amber: #f5b33d;
  --red: #f0566a;

  --txt: #e7eefa;           /* primary text */
  --txt-dim: #8597b3;       /* muted */
  --txt-faint: #5d6f8c;     /* faintest */

  /* spacing scale (4 / 8) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;

  --radius: 12px;
  --radius-sm: 8px;

  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo,
    Consolas, "Liberation Mono", monospace;

  --glow-cyan: 0 0 14px rgba(76, 194, 255, 0.35);
  --header-h: 60px;
  --sidebar-w: 320px;
}

/* ---------- reset-ish ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  background: var(--bg-1);
  color: var(--txt);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
button {
  font-family: inherit;
  cursor: pointer;
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ambient backdrop: subtle grid + radial glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(94, 225, 255, 0.08), transparent 55%),
    radial-gradient(80% 60% at 85% 110%, rgba(233, 185, 35, 0.045), transparent 60%),
    linear-gradient(to bottom, var(--bg-0), var(--bg-1) 40%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(94, 225, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 225, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 80%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 80%);
}

/* ============================================================
   Header bits still in use (connection dot, menu button)
   ============================================================ */

.conn-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--txt-faint);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.conn-dot.is-connected {
  background: var(--green);
  box-shadow: 0 0 8px rgba(70, 209, 138, 0.6);
}
.conn-dot.is-down {
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 107, 107, 0.6);
  animation: soft-blink 1.1s ease-in-out infinite;
}
@keyframes soft-blink {
  50% {
    opacity: 0.35;
  }
}

.icon-btn {
  display: none; /* shown on narrow screens */
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--txt-dim);
}
.icon-btn:hover {
  color: var(--cyan);
  border-color: rgba(94, 225, 255, 0.35);
}

/* ============================================================
   Workspace
   ============================================================ */

/* reconnect banner */
.banner {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-5);
  font-size: 12.5px;
  color: var(--gold);
  background: rgba(233, 185, 35, 0.08);
  border-bottom: 1px solid rgba(233, 185, 35, 0.25);
}
.banner[hidden] {
  display: none;
}
.banner-spin {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(233, 185, 35, 0.3);
  border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- transcript ---------- */
.transcript {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--sp-6) var(--sp-5) var(--sp-4);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(94, 225, 255, 0.25) transparent;
}
.transcript::-webkit-scrollbar {
  width: 10px;
}
.transcript::-webkit-scrollbar-thumb {
  background: rgba(94, 225, 255, 0.18);
  border-radius: 8px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
.transcript::-webkit-scrollbar-thumb:hover {
  background: rgba(94, 225, 255, 0.32);
  background-clip: padding-box;
}

.thread {
  max-width: 860px;
  margin: 0 auto;
}

/* empty state */
.empty-state {
  height: 100%;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  color: var(--cyan-dim);
  text-align: center;
}
.empty-reactor {
  width: 72px;
  height: 72px;
  opacity: 0.5;
}
.empty-title {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--txt-dim);
}
.empty-sub {
  margin: 0;
  font-size: 13px;
  color: var(--txt-faint);
  max-width: 34ch;
}

/* ---------- messages ---------- */
.msg {
  max-width: 860px;
  margin: 0 auto var(--sp-5);
  display: flex;
  flex-direction: column;
}
.msg-row {
  display: flex;
}
.msg-time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--txt-faint);
  opacity: 0;
  transition: opacity 0.15s ease;
  margin: 4px var(--sp-1) 0;
}
.msg:hover .msg-time {
  opacity: 1;
}

/* user */
.msg--user .msg-row {
  justify-content: flex-end;
}
.msg--user .msg-time {
  text-align: right;
}
.bubble-user {
  max-width: 78%;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius) var(--radius) 2px var(--radius);
  background: rgba(94, 225, 255, 0.06);
  border: 1px solid var(--line);
  color: #dfe9f5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* jarvis turn */
.turn {
  max-width: 860px;
  margin: 0 auto var(--sp-6);
  padding-left: var(--sp-4);
  border-left: 2px solid rgba(94, 225, 255, 0.5);
}
.turn.is-error {
  border-left-color: var(--red);
}
.turn-label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--sp-2);
}
.turn-label .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
}

/* thinking shimmer before first delta */
.thinking {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: var(--sp-1) 0;
}
.thinking i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.4;
  animation: think 1.1s ease-in-out infinite;
}
.thinking i:nth-child(2) {
  animation-delay: 0.18s;
}
.thinking i:nth-child(3) {
  animation-delay: 0.36s;
}
@keyframes think {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

/* streaming caret on active text segment */
.md-body.streaming::after {
  content: "▍";
  color: var(--cyan);
  margin-left: 1px;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}

/* per-turn footer */
.turn-footer {
  margin-top: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--txt-faint);
  letter-spacing: 0.02em;
}
.turn-footer.is-error {
  color: var(--red);
}

/* system / error line */
.sys-line {
  max-width: 860px;
  margin: 0 auto var(--sp-4);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--txt-dim);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-soft);
}
.sys-line.is-error {
  color: #ffd0d0;
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.3);
}

/* ---------- tool chips ---------- */
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 3px 6px 3px 0;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--txt-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
  vertical-align: middle;
}
.tool-chip svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}
.tool-chip .tc-server {
  color: inherit;
  font-weight: 600;
}
.tool-chip .tc-sep {
  color: var(--txt-faint);
}
.tool-chip .tc-tool {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--txt);
}
.tool-chip--calendar {
  color: var(--cyan);
  border-color: rgba(94, 225, 255, 0.32);
  background: rgba(94, 225, 255, 0.07);
}
.tool-chip--jira {
  color: var(--blue);
  border-color: rgba(106, 169, 255, 0.32);
  background: rgba(106, 169, 255, 0.07);
}
.tool-chip--memory {
  color: var(--violet);
  border-color: rgba(185, 140, 255, 0.32);
  background: rgba(185, 140, 255, 0.08);
}
.tool-chip--builtin {
  color: var(--gray);
  border-color: var(--line-soft);
}
.tool-trace {
  display: block;
  margin: 2px 0 6px;
}

/* ============================================================
   Markdown body
   ============================================================ */
.md-body {
  color: var(--txt);
  overflow-wrap: anywhere;
}
.md-body > *:first-child {
  margin-top: 0;
}
.md-body > *:last-child {
  margin-bottom: 0;
}
.md-body p {
  margin: 0 0 var(--sp-3);
}
.md-h {
  margin: var(--sp-4) 0 var(--sp-2);
  line-height: 1.3;
  color: #e8f2fc;
  font-weight: 600;
}
.md-h1 {
  font-size: 17px;
  letter-spacing: 0.01em;
}
.md-h2 {
  font-size: 15.5px;
}
.md-h3 {
  font-size: 14px;
  color: var(--cyan);
  letter-spacing: 0.04em;
}
.md-list {
  margin: 0 0 var(--sp-3);
  padding-left: 1.35em;
}
.md-list li {
  margin: 2px 0;
}
.md-list li::marker {
  color: var(--cyan-dim);
}
.md-quote {
  margin: 0 0 var(--sp-3);
  padding: var(--sp-1) var(--sp-3);
  border-left: 3px solid rgba(94, 225, 255, 0.4);
  background: rgba(94, 225, 255, 0.04);
  color: var(--txt-dim);
}
.md-quote p {
  margin: 0;
}
.md-body strong {
  color: #eaf3fc;
  font-weight: 650;
}
.md-body em {
  font-style: italic;
}
.md-body a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(94, 225, 255, 0.35);
}
.md-body a:hover {
  border-bottom-color: var(--cyan);
}
.md-code-inline {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(94, 225, 255, 0.09);
  border: 1px solid var(--line-soft);
  color: #d5ecf5;
}

/* fenced code block */
.md-codeblock {
  margin: 0 0 var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-0);
  overflow: hidden;
}
.md-codeblock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 4px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line-soft);
}
.md-lang {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--txt-faint);
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: transparent;
  color: var(--txt-dim);
  font-size: 11px;
}
.copy-btn:hover {
  color: var(--cyan);
  border-color: rgba(94, 225, 255, 0.35);
}
.copy-btn.copied {
  color: var(--green);
  border-color: rgba(70, 209, 138, 0.4);
}
.md-codeblock pre {
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  overflow-x: auto;
  scrollbar-width: thin;
}
.md-codeblock code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: #d3e2ee;
  white-space: pre;
}

/* ============================================================
   Composer
   ============================================================ */
.composer {
  flex: 0 0 auto;
  padding: var(--sp-3) var(--sp-5) var(--sp-4);
  border-top: 1px solid var(--line);
  background: linear-gradient(0deg, rgba(10, 14, 20, 0.95), rgba(10, 14, 20, 0.6));
}
.composer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.composer-inner:focus-within {
  border-color: rgba(94, 225, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(94, 225, 255, 0.12), 0 0 24px rgba(94, 225, 255, 0.08);
}
.composer-input {
  flex: 1 1 auto;
  resize: none;
  border: none;
  outline: none;
  background: transparent;
  color: var(--txt);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  max-height: 144px; /* ~6 lines */
  padding: 6px 0;
}
.composer-input::placeholder {
  color: var(--txt-faint);
}
.send-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--cyan);
  color: #04202a;
  transition: transform 0.12s ease, opacity 0.15s ease, box-shadow 0.2s ease;
}
.send-btn:hover:not(:disabled) {
  box-shadow: 0 0 16px rgba(94, 225, 255, 0.5);
  transform: translateY(-1px);
}
.send-btn:active:not(:disabled) {
  transform: translateY(0);
}
.send-btn:disabled {
  background: rgba(255, 255, 255, 0.06);
  color: var(--txt-faint);
  cursor: not-allowed;
}
.composer-hint {
  max-width: 860px;
  margin: var(--sp-2) auto 0;
  font-size: 11.5px;
  color: var(--gold);
  padding-left: var(--sp-1);
}
.composer-hint[hidden] {
  display: none;
}

/* ============================================================
   Sidebar
   ============================================================ */

.panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
  padding: var(--sp-4);
}

.panel-title {
  margin: 0 0 var(--sp-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--txt-dim);
}

/* systems list */
.sys-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.sys-empty {
  color: var(--txt-faint);
  font-size: 12.5px;
  font-style: italic;
}
.sys-item {
  display: grid;
  grid-template-columns: 10px 1fr;
  column-gap: var(--sp-2);
  align-items: start;
  font-size: 12.5px;
}
.sys-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--txt-faint);
}
.sys-dot--ok {
  background: var(--green);
  box-shadow: 0 0 7px rgba(70, 209, 138, 0.55);
}
.sys-dot--warn {
  background: var(--amber);
  box-shadow: 0 0 7px rgba(233, 185, 35, 0.5);
}
.sys-name {
  color: var(--txt);
  font-weight: 550;
}
.sys-detail {
  grid-column: 2;
  color: var(--txt-faint);
  font-size: 11.5px;
  overflow-wrap: anywhere;
}

/* ---------- activity panel ---------- */

/* state indicator: running pulse dot / done check / error mark */

/* stats */

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 10px var(--sp-4);
  border-radius: var(--radius-sm);
  font-size: 13px;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--txt);
  transition: all 0.15s ease;
}
.btn--ghost:hover {
  border-color: rgba(94, 225, 255, 0.4);
  color: var(--cyan);
}
.btn--warn {
  border-color: rgba(233, 185, 35, 0.4);
  color: var(--gold);
}
.btn--warn:hover:not(:disabled) {
  background: rgba(233, 185, 35, 0.1);
  box-shadow: 0 0 14px rgba(233, 185, 35, 0.18);
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--txt-faint);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 1px 5px;
}

.scrim {
  display: none;
}

/* ============================================================
   Voice I/O  (speech-to-text mic + text-to-speech toggle)
   ============================================================ */

/* --- TTS toggle (header) --- */
.tts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--txt-faint);
  transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}
.tts-btn[hidden] {
  display: none;
}
.tts-btn:hover:not(:disabled) {
  color: var(--cyan);
  border-color: rgba(94, 225, 255, 0.35);
}
.tts-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
/* off = muted icon (speaker + slash), dim; on = accent-lit with sound waves */
.tts-btn .tts-wave {
  display: none;
}
.tts-btn.on {
  color: var(--cyan);
  border-color: rgba(94, 225, 255, 0.35);
  box-shadow: 0 0 10px rgba(94, 225, 255, 0.15);
}
.tts-btn.on .tts-wave {
  display: block;
}
.tts-btn.on .tts-slash {
  display: none;
}
.tts-btn.speaking {
  animation: voice-pulse-cyan 1.4s ease-in-out infinite;
}
@keyframes voice-pulse-cyan {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(94, 225, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(94, 225, 255, 0);
  }
}

/* --- mic button (composer) --- */
.mic-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--txt-dim);
  transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}
.mic-btn[hidden] {
  display: none;
}
.mic-btn:hover {
  color: var(--cyan);
  border-color: rgba(94, 225, 255, 0.35);
}
.mic-btn.listening {
  color: var(--red);
  border-color: rgba(255, 107, 107, 0.55);
  animation: voice-pulse-red 1.3s ease-in-out infinite;
}
@keyframes voice-pulse-red {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.45);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 107, 107, 0);
  }
}

/* --- "transcriberen…" hint (Azure STT, near composer) --- */
.stt-hint {
  max-width: 860px;
  margin: var(--sp-2) auto 0;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding-left: var(--sp-1);
  font-size: 11.5px;
  color: var(--txt-dim);
}
.stt-hint[hidden] {
  display: none;
}
.stt-hint-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 7px rgba(94, 225, 255, 0.6);
  animation: stt-hint-pulse 1s ease-in-out infinite;
}
@keyframes stt-hint-pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* --- NL/EN language toggle (composer) --- */
.lang-toggle {
  flex: 0 0 auto;
  align-self: flex-end;
  min-width: 30px;
  height: 38px;
  padding: 0 7px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: transparent;
  color: var(--txt-faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.lang-toggle[hidden] {
  display: none;
}
.lang-toggle:hover {
  color: var(--cyan);
  border-color: rgba(94, 225, 255, 0.35);
}

/* --- voice picker (STEM panel in sidebar) --- */
.voice-picker {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.voice-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.voice-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-dim);
}
.voice-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.voice-select {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  padding: 0 var(--sp-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--txt);
  font-family: inherit;
  font-size: 12.5px;
  transition: border-color 0.15s ease, box-shadow 0.2s ease;
}
.voice-select:hover {
  border-color: rgba(94, 225, 255, 0.35);
}
.voice-select:focus-visible {
  outline: none;
  border-color: rgba(94, 225, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(94, 225, 255, 0.18);
}
.voice-preview {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--txt-dim);
  transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}
.voice-preview:hover {
  color: var(--cyan);
  border-color: rgba(94, 225, 255, 0.35);
}
.voice-preview:focus-visible {
  outline: none;
  color: var(--cyan);
  border-color: rgba(94, 225, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(94, 225, 255, 0.18);
}
.voice-preview.playing {
  color: var(--cyan);
  border-color: rgba(94, 225, 255, 0.45);
  animation: voice-pulse-cyan 1.4s ease-in-out infinite;
}

/* ============================================================
   Responsive (layout breakpoints live in dash/dashboard.css)
   ============================================================ */
@media (max-width: 560px) {
  .transcript {
    padding: var(--sp-4) var(--sp-3) var(--sp-3);
  }
  .composer {
    padding: var(--sp-3);
  }
}

/* ============================================================
   Motion preferences
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  
  .settings-overlay,
  .settings-panel {
    animation: none !important;
  }
}

/* ============================================================
   Settings (gear button + modal)
   ============================================================ */

/* the header gear is always visible (unlike the hamburger) */
.icon-btn--always {
  display: inline-flex;
}

/* --- overlay + panel --- */
.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  background: rgba(4, 7, 11, 0.6);
  backdrop-filter: blur(3px);
  animation: settings-fade 0.16s ease;
}
.settings-overlay[hidden] {
  display: none;
}
@keyframes settings-fade {
  from {
    opacity: 0;
  }
}

.settings-panel {
  display: flex;
  flex-direction: column;
  width: min(620px, 100%);
  max-height: min(86vh, 820px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(94, 225, 255, 0.05);
  outline: none;
  animation: settings-rise 0.18s ease;
}
@keyframes settings-rise {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
}

.settings-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.settings-title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--txt);
}
.settings-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--txt-dim);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.settings-close:hover {
  color: var(--cyan);
  border-color: rgba(94, 225, 255, 0.35);
}

/* --- scrolling body --- */
.settings-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: var(--sp-5);
  scrollbar-width: thin;
  scrollbar-color: rgba(94, 225, 255, 0.25) transparent;
}
.settings-body::-webkit-scrollbar {
  width: 10px;
}
.settings-body::-webkit-scrollbar-thumb {
  background: rgba(94, 225, 255, 0.18);
  border-radius: 8px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
.settings-loading {
  margin: 0;
  color: var(--txt-faint);
  font-size: 13px;
  font-style: italic;
}

.settings-group {
  margin-bottom: var(--sp-6);
}
.settings-group:last-child {
  margin-bottom: 0;
}
.settings-group-title {
  margin: 0 0 var(--sp-3);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: var(--sp-2);
}

.settings-field {
  margin-bottom: var(--sp-4);
}
.settings-field:last-child {
  margin-bottom: 0;
}
.settings-label {
  display: block;
  margin-bottom: var(--sp-1);
  font-size: 12px;
  color: var(--txt-dim);
}
.settings-input,
.settings-select {
  width: 100%;
  height: 36px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-0);
  color: var(--txt);
  font-family: var(--font-mono);
  font-size: 12.5px;
  transition: border-color 0.15s ease, box-shadow 0.2s ease;
}
.settings-input::placeholder {
  color: var(--txt-faint);
}
.settings-input:focus-visible,
.settings-select:focus-visible {
  outline: none;
  border-color: rgba(94, 225, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(94, 225, 255, 0.2);
}
.settings-select {
  font-family: var(--font-ui);
}

/* secret row: a "wissen" (clear) checkbox trails the field */
.settings-secret-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--txt-faint);
  cursor: pointer;
}
.settings-secret-clear input {
  accent-color: var(--gold);
}

/* --- notice + footer --- */
.settings-notice {
  flex: 0 0 auto;
  margin: 0 var(--sp-5);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--green);
  background: rgba(70, 209, 138, 0.08);
  border: 1px solid rgba(70, 209, 138, 0.3);
}
.settings-notice[hidden] {
  display: none;
}
.settings-notice.is-error {
  color: #ffd0d0;
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.3);
}

.settings-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--line);
}
.btn--save {
  border-color: rgba(233, 185, 35, 0.5);
  color: var(--gold);
}
.btn--save:hover:not(:disabled) {
  background: rgba(233, 185, 35, 0.12);
  box-shadow: 0 0 14px rgba(233, 185, 35, 0.2);
}

@media (max-width: 560px) {
  .settings-overlay {
    padding: 0;
  }
  .settings-panel {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    border: none;
  }
}

/* ============================================================
   Controlekamer — view tabs, Taken and Sessies
   ============================================================ */

.panel-sub {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 400;
  color: var(--txt-faint);
}

/* form controls */
.field {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-0);
  color: var(--txt);
  font: inherit;
  font-size: 13px;
}
.field:focus-visible {
  outline: none;
  border-color: rgba(94, 225, 255, 0.5);
  box-shadow: var(--glow-cyan);
}
.field--area {
  resize: vertical;
  line-height: 1.45;
}
.field--num {
  width: 64px;
  padding: 4px 6px;
  text-align: right;
}
.field-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--txt-dim);
}
.field-label--grow {
  flex: 1 1 220px;
}
.task-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--sp-3);
}
.task-form-row--end {
  justify-content: flex-end;
  align-items: center;
}
.hint {
  margin: 0;
  font-size: 12px;
  color: var(--txt-faint);
}
.hint.is-error {
  color: var(--red);
}
.btn--primary {
  border-color: rgba(94, 225, 255, 0.5);
  color: var(--cyan);
  background: rgba(94, 225, 255, 0.08);
  cursor: pointer;
}
.btn--primary:hover:not(:disabled) {
  background: rgba(94, 225, 255, 0.16);
  box-shadow: var(--glow-cyan);
}
.btn--ghost {
  cursor: pointer;
}
.btn--sm {
  padding: 6px 12px;
  font-size: 12.5px;
}
.link-btn {
  border: 0;
  padding: 0;
  background: none;
  color: var(--cyan-dim);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}
.link-btn:hover {
  color: var(--cyan);
}
.link-btn--warn {
  color: #a8862a;
}
.link-btn--warn:hover {
  color: var(--gold);
}
.panel-title .link-btn {
  margin-left: auto;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 400;
}

/* watchers */
.watcher-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.watcher {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}
.watcher.is-on {
  border-color: rgba(70, 209, 138, 0.3);
}
.watcher-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.watcher-name {
  font-size: 13.5px;
}
.watcher-info {
  font-size: 11.5px;
  color: var(--txt-faint);
}
.watcher-every {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--txt-dim);
}
.switch {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 20px;
  cursor: pointer;
}
.switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.15s ease;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--txt-dim);
  transition: transform 0.15s ease, background 0.15s ease;
}
.switch input:checked + .switch-track {
  background: rgba(70, 209, 138, 0.35);
}
.switch input:checked + .switch-track::after {
  transform: translateX(14px);
  background: var(--green);
}
.switch input:focus-visible + .switch-track {
  box-shadow: var(--glow-cyan);
}

/* proposals */
.proposal-list,
.task-list,
.session-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.proposal {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
}
.proposal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-1) var(--sp-3);
  min-width: 0;
}
.proposal-issue {
  color: var(--blue);
  font-size: 13px;
  text-decoration: none;
}
.proposal-issue:hover {
  text-decoration: underline;
}
.proposal-subject {
  font-size: 13px;
  color: var(--txt);
  overflow-wrap: anywhere;
}
.proposal-from {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--txt-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proposal-summary {
  margin: 0;
  padding-left: var(--sp-2);
  border-left: 2px solid var(--line-soft);
  font-size: 13px;
  color: var(--txt);
}
.proposal-stale {
  margin: 0;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid rgba(245, 179, 61, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(245, 179, 61, 0.08);
  color: var(--amber);
  font-size: 12.5px;
}
.proposal-reason {
  margin: 0;
  font-size: 12.5px;
  color: var(--txt-dim);
}
.proposal-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}
.tag-chip {
  padding: 2px 8px;
  border: 1px solid rgba(94, 225, 255, 0.35);
  border-radius: 999px;
  background: rgba(94, 225, 255, 0.08);
  color: var(--cyan);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.tag-chip:hover:not(:disabled) {
  border-color: rgba(94, 225, 255, 0.7);
}
.tag-chip.is-off {
  border-color: var(--line-soft);
  background: transparent;
  color: var(--txt-faint);
  text-decoration: line-through;
}
.tag-chip:disabled {
  cursor: default;
  opacity: 0.6;
}
.proposal-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-5);
}
.proposal-status,
.proposal-assign {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
}
.proposal-status .hint,
.proposal-assign .hint {
  white-space: nowrap;
}
.proposal-assign input {
  width: 200px;
  min-width: 0;
  max-width: 100%;
  padding: 4px 8px;
}
.proposal-status select {
  width: auto;
  max-width: 100%;
  padding: 4px 8px;
}
.proposal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.proposal-actions .hint {
  margin-right: auto;
}
.proposal-why {
  flex: 1 1 220px;
  min-width: 0;
}

/* what JARVIS learned */
.panel-title--gap {
  margin-top: var(--sp-6);
}
.lesson-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.lesson {
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
}
.lesson.is-old {
  opacity: 0.55;
}
.lesson-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-1) var(--sp-3);
}
.lesson-kind {
  font-size: 12px;
  color: var(--txt-dim);
}
.lesson-head .link-btn {
  margin-left: auto;
}
.lesson-text {
  margin: var(--sp-1) 0 0;
  font-size: 12.5px;
  color: var(--txt);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* lanes + task cards */
.lane-empty {
  font-size: 12.5px;
  color: var(--txt-faint);
  padding: var(--sp-3);
  border: 1px dashed var(--line-soft);
  border-radius: var(--radius-sm);
  text-align: center;
}
.task-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--sp-3);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  cursor: pointer;
  min-width: 0;
}
.task-card:hover {
  border-color: var(--line);
}
.task-card--running {
  border-left-color: var(--cyan);
  box-shadow: 0 0 18px rgba(94, 225, 255, 0.06);
}
.task-card--queued {
  border-left-color: var(--txt-faint);
}
.task-card--done {
  border-left-color: var(--green);
}
.task-card--failed {
  border-left-color: var(--red);
}
.task-card--cancelled {
  border-left-color: var(--gray);
  opacity: 0.75;
}
.task-head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  min-width: 0;
}
.task-src {
  flex: 0 0 auto;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--txt-dim);
  background: rgba(255, 255, 255, 0.06);
}
.task-src--jira {
  color: var(--blue);
  background: rgba(106, 169, 255, 0.12);
}
.task-src--mail,
.task-src--itmail,
.task-src--agenda {
  color: var(--violet);
  background: rgba(185, 140, 255, 0.12);
}
.task-src--approval {
  color: var(--gold);
  background: rgba(232, 185, 35, 0.12);
}
.task-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-meta {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: var(--txt-faint);
  font-variant-numeric: tabular-nums;
}
.task-now {
  font-size: 12px;
  color: var(--cyan);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-now::before {
  content: "▸ ";
  animation: task-blink 1.2s ease-in-out infinite;
}
@keyframes task-blink {
  50% {
    opacity: 0.3;
  }
}
.task-cwd {
  font-size: 11.5px;
  color: var(--txt-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.task-flag {
  font-size: 11.5px;
  color: var(--gold);
}
.task-flag--warn {
  color: var(--red);
}
.task-detail {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line-soft);
  cursor: auto;
}
.task-result {
  font-size: 13px;
  max-height: 420px;
  overflow-y: auto;
}
.task-error {
  margin: 0;
  font-size: 12.5px;
  color: var(--red);
  white-space: pre-wrap;
}
.task-denials {
  margin: 0;
  font-size: 12px;
  color: var(--gold);
}
.task-log {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11.5px;
  color: var(--txt-dim);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 200px;
  overflow-y: auto;
}
.task-log li {
  display: flex;
  gap: var(--sp-2);
}
.task-log li.is-error {
  color: var(--red);
}
.task-log-at {
  flex: 0 0 auto;
  color: var(--txt-faint);
}
.task-prompt summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--txt-faint);
}
.task-prompt pre {
  margin: var(--sp-2) 0 0;
  white-space: pre-wrap;
  font-size: 11.5px;
  color: var(--txt-dim);
}

/* sessions */
.session {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--sp-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
}
.session-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
  flex-wrap: wrap;
}
.session-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--txt-faint);
}
.session-dot--busy {
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
}
.session-dot--idle {
  background: var(--green);
}
.session-name {
  font-size: 14px;
}
.session-kind,
.session-status {
  font-size: 11.5px;
  color: var(--txt-dim);
}
.session-head .task-meta {
  margin-left: auto;
}
.remote-send {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.session-cmd {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--txt-dim);
  background: var(--bg-0);
  user-select: all;
}
.transcript-box {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-height: 420px;
  overflow-y: auto;
  padding: var(--sp-3);
  border-radius: var(--radius-sm);
  background: var(--bg-0);
}
.tx {
  display: flex;
  gap: var(--sp-3);
  font-size: 12.5px;
}
.tx-who {
  flex: 0 0 52px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--txt-faint);
  padding-top: 2px;
}
.tx--user .tx-who {
  color: var(--cyan-dim);
}
.tx-text {
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--txt);
}

/* ============================================================
   Status pill + pop-out panel
   ============================================================ */

.ops-details {
  border: 1px dashed var(--line-soft);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3);
}
.ops-details[open] {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-bottom: var(--sp-3);
}
.ops-details summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--cyan-dim);
}
.ops-details summary:hover {
  color: var(--cyan);
}

/* ============================================================
   Cards in the chat
   ============================================================ */
.chat-card {
  max-width: 860px;
  margin: 0 auto var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--txt-faint);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
}
.chat-card--running {
  border-left-color: var(--cyan);
}
.chat-card--done {
  border-left-color: var(--green);
}
.chat-card--failed {
  border-left-color: var(--red);
}
.chat-card--cancelled {
  opacity: 0.75;
}
.chat-card-head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  min-width: 0;
}
.chat-card-title {
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-card-status {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 12px;
  color: var(--txt-faint);
  min-width: 0;
}
.chat-card--running .chat-card-status {
  color: var(--cyan);
}
.chat-card-status .mono {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-card-time {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--txt-faint);
  font-variant-numeric: tabular-nums;
}
.chat-card-spin {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(94, 225, 255, 0.25);
  border-top-color: var(--cyan);
  animation: spin 0.9s linear infinite;
}
.chat-card-body {
  font-size: 13.5px;
}
.chat-card-body.is-collapsed {
  max-height: 260px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.chat-card-more {
  align-self: flex-start;
}
.chat-card-proposals {
  margin-top: var(--sp-1);
}
.proposal-done {
  margin: 0;
  font-size: 12.5px;
  color: var(--green);
}
.proposal--rejected .proposal-done,
.proposal--superseded .proposal-done {
  color: var(--txt-faint);
}

/* what a watcher left unanswered, with "reply anyway" */
.noreply {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
}
.noreply-head {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--txt-faint);
}
.noreply-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.noreply-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-top: 1px solid var(--line-soft);
}
.noreply-what {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.noreply-line {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  min-width: 0;
}
.noreply-label {
  font-size: 13px;
  color: var(--txt);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.noreply-item > .btn,
.noreply-item > span,
.noreply-item > .link-btn {
  flex-shrink: 0;
}
.noreply-again {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
@media (max-width: 560px) {
  .noreply-item {
    flex-direction: column;
    align-items: flex-start;
  }
}
