.card.calendar { display: flex; flex-direction: column; gap: 8px; padding: 8px; }
.card.calendar iframe { width: 100%; height: 640px; border: 0; border-radius: calc(var(--radius) - 2px); background: var(--surface); }
.card.calendar p { margin: 0 8px 4px; }
@media (max-width: 520px) { .card.calendar iframe { height: 720px; } }
/* Frage bearbeiten (EditQuestion.tsx): Stift links neben der eigenen Frage, beim Darueberfahren deutlicher. */
.user-row { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.user-row .user-msg { margin-left: 0; }
.user-edit-btn {
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: 50%;
  border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; opacity: .55;
  transition: opacity .15s ease, background .15s ease;
}
.user-row:hover .user-edit-btn, .user-edit-btn:focus-visible { opacity: 1; background: var(--chip); border-color: var(--line); }
@media (hover: none) { .user-edit-btn { opacity: .8; } }

.user-edit { margin-left: auto; width: min(100%, 560px); display: flex; flex-direction: column; gap: 6px; }
.user-edit textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 14.5px; color: var(--text); background: var(--surface);
  border: 1px solid var(--accent); border-radius: 12px; padding: 10px 14px; resize: vertical;
}
.user-edit-note { margin: 0; font-size: 12px; color: var(--muted); text-align: right; }
.user-edit-actions { display: flex; justify-content: flex-end; gap: 8px; }
.user-edit-actions button { font: inherit; font-size: 13px; border-radius: 8px; padding: 6px 14px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text); }
.user-edit-actions button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.user-edit-actions button:disabled { opacity: .45; cursor: default; }
/* Alles unter .fys-assistant: im Portal eingebettet duerfen keine Regeln nach aussen wirken.
   Optik wie das FYS Selection Portal (Tailwind): Grautoene gray-50..900, weisse Karten mit rounded-lg,
   Kundenfarbe aus --primary-color / --primary2-color (setzt das Portal global; eigenstaendig: Standardwerte). */
.fys-assistant {
  --accent: var(--primary-color, #55bef0);
  --accent-soft: var(--primary2-color, #f0f6fa);
  /* Text in Kundenfarbe abdunkeln: helle Primaerfarben (#55BEF0) sind als Schrift sonst kaum lesbar. */
  --accent-ink: color-mix(in srgb, var(--accent) 62%, #0b1f33);
  --bg: #f9fafb;          /* gray-50, wie die Portalseite */
  --surface: #ffffff;
  --text: #111827;        /* gray-900 */
  --text-2: #374151;      /* gray-700 */
  --muted: #6b7280;       /* gray-500 */
  --line: #e5e7eb;        /* gray-200 */
  --line-2: #d1d5db;      /* gray-300 */
  --chip: #f3f4f6;        /* gray-100 */
  --user: var(--accent-soft);
  --user-text: var(--text);
  --ok: #15803d;
  --ok-soft: #f0fdf4;
  --warn-bg: #fffbeb;
  --warn: #b45309;
  --err-bg: #fef2f2;
  --err: #b91c1c;
  --radius: 8px;          /* rounded-lg */
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-hover: 0 4px 12px rgba(16, 24, 40, 0.08);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  height: 100%;
}

/* Dunkel nur eigenstaendig; das Portal ist hell. */
@media (prefers-color-scheme: dark) {
  .fys-assistant.standalone {
    --bg: #111318; --surface: #1a1d23; --text: #e5e7eb; --text-2: #d1d5db; --muted: #9ca3af;
    --line: #2b2f37; --line-2: #3a3f48; --chip: #23272e; --accent-soft: #1d2a35; --accent-ink: #8fd3f5;
    --user-text: var(--text); --ok: #4ade80; --ok-soft: #14241a; --warn-bg: #2b2414; --warn: #fbbf24;
    --err-bg: #2c1717; --err: #f87171;
  }
}

.fys-assistant, .fys-assistant * { box-sizing: border-box; }
:where(.fys-assistant) button { font: inherit; cursor: pointer; }
:where(.fys-assistant) button:disabled { cursor: default; opacity: 0.5; }
:where(.fys-assistant) a { color: var(--accent-ink); }

/* Feste Hoehe vom Container, eigener Scrollbereich: Kopf und Eingabe bleiben stehen. */
.app { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }

.topbar {
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px clamp(16px, 2.5vw, 32px); background: var(--surface); border-bottom: 1px solid var(--line); min-height: 44px;
}
.topbar.slim { justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.logo { color: var(--accent); }
.demo { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 99px; background: var(--warn-bg); color: var(--warn); }
.ghost { background: var(--surface); border: 1px solid var(--line); color: var(--text-2); padding: 6px 12px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500; transition: background .15s, border-color .15s; }
.ghost:hover:not(:disabled) { background: var(--bg); border-color: var(--line-2); }

.thread { flex: 1; width: 100%; padding: 24px clamp(16px, 2.5vw, 32px) 16px; }


.turn { margin-bottom: 28px; }
.user-msg {
  margin-left: auto; width: fit-content; max-width: 80%;
  background: var(--user); color: var(--user-text); padding: 10px 14px; border-radius: 12px 12px 4px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); font-size: 14.5px;
  white-space: pre-wrap; line-height: 1.45;
}
.assistant { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.answer { line-height: 1.6; color: var(--text); }
.answer strong { font-weight: 600; }
.answer p { margin: 0 0 8px; }
.answer ul { margin: 0 0 8px; padding-left: 20px; }
.error { background: var(--err-bg); color: var(--err); padding: 10px 14px; border-radius: 8px; }

.status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--accent); animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.muted { color: var(--muted); }
.small { font-size: 13px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card h3 { margin: 0; font-size: 17px; }
.card .muted { margin: 2px 0 0; }
.card .body { line-height: 1.5; margin: 12px 0; }
.link { white-space: nowrap; font-size: 14px; }
.scroll-x { overflow-x: auto; }

.vendor-list > p { margin: 0 0 8px; }
/* Fuenf Anbieter in eine Reihe, sobald Platz ist (vorher 4 + 1 allein darunter). */
.vendor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 176px), 1fr)); column-gap: 12px; row-gap: 0; }
/* Kacheln einer Reihe wie Tabellenzeilen: jede Kachel hat sechs Zeilen (.slot, auch leer), subgrid gibt allen Kacheln
   dieselben Zeilenhoehen; die hoechste Kachel bestimmt sie. Abstand zwischen den Reihen ueber margin, nicht row-gap. */
.vendor-grid > .tile { display: grid; grid-template-rows: subgrid; grid-row: span 6; row-gap: 0; margin-bottom: 12px; align-content: start; }
.tile > .slot { min-width: 0; display: grid; gap: 7px; align-content: start; }
.tile > .slot:not(:empty) ~ .slot:not(:empty) { padding-top: 7px; }
.tile > .slot:last-child { align-content: end; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; transition: border-color .15s, box-shadow .15s;
}
.tile:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow-hover); }
/* Gleiche Hoehen in der Reihe: Name max. 2 Zeilen (Platz immer reserviert), Anbieter 1 Zeile. */
.tile h4 { margin: 2px 0 0; font-size: 15px; font-weight: 600; line-height: 1.3; min-height: 2.6em; overflow-wrap: anywhere; }
.tile .vendor-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile p { margin: 0; }
.tile-top { display: flex; justify-content: space-between; align-items: center; }
.ref { font-size: 11.5px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
.badge { font-size: 11.5px; font-weight: 500; color: var(--ok); background: var(--ok-soft); padding: 2px 8px; border-radius: 999px; }
.badge.unverified { color: var(--warn); background: var(--warn-bg); }
.score { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.score-bar { flex: 1; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.score-bar > div { height: 100%; background: var(--accent); border-radius: 99px; }
.score span { min-width: 2ch; text-align: right; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tile-actions button {
  flex: 1; background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
  border-radius: var(--radius); padding: 5px 8px; font-size: 12.5px; font-weight: 500; min-height: 44px; /* Tippziel (8.3) */
}
.tile-actions button:hover { background: var(--bg); color: var(--accent-ink); }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.chips-label { font-size: 12px; color: var(--muted); min-width: 100px; }
.chip { font-size: 12px; background: var(--chip); color: var(--text-2); padding: 2px 9px; border-radius: 999px; }

.refs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.refs li { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.refs li:last-child { border-bottom: 0; padding-bottom: 0; }
.ref-name { font-weight: 500; }

.compare { border-collapse: collapse; width: 100%; font-size: 14px; }
.compare th, .compare td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-weight: 600; }
.compare tbody th { color: var(--muted); font-weight: 500; white-space: nowrap; }

.dock {
  flex: none;
  padding: 10px clamp(16px, 2.5vw, 32px) calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--line);
}

.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer-menu { position: relative; display: flex; }
.composer .menu-toggle { background: var(--surface); color: var(--text-2); border: 1px solid var(--line); min-width: 44px; padding: 0 12px; font-size: 18px; }
.menu-pop { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 20; min-width: 250px; display: grid; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hover); }
.menu-pop a, .composer .menu-pop button { display: block; text-align: left; padding: 9px 10px; border-radius: 8px; font-size: 13.5px;
  color: var(--text); background: none; border: 0; text-decoration: none; height: auto; min-height: 40px; font-weight: 500; }
.menu-pop a:hover, .composer .menu-pop button:hover { background: var(--bg); color: var(--accent-ink); filter: none; }
.composer textarea {
  flex: 1; resize: none; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 11px 14px; min-height: 46px; max-height: 160px;
}
.composer textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); background: var(--surface); }
.composer button {
  background: var(--accent); color: #fff; border: 0; border-radius: var(--radius); padding: 0 18px; height: 46px; font-weight: 600; font-size: 14px;
}
.composer button:hover:not(:disabled) { filter: brightness(0.95); }
.ai-note { margin: 6px 0 0; font-size: 11px; color: var(--muted); text-align: center; }


.profile { border-color: var(--accent); }
.eyebrow { margin: 0 0 2px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Einstieg ─────────────────────────────────────────────────────────────── */
.lead { max-width: 62ch; line-height: 1.55; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Trichter und Kacheln ─────────────────────────────────────────────────── */
.funnel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; font-size: 14px; }
.funnel-step { color: var(--muted); }
.funnel-step.strong { color: var(--text); font-weight: 600; }
.funnel-step b { color: var(--text); }
.funnel-arrow { color: var(--accent-ink); font-weight: 700; }
.funnel-criteria { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; }
.funnel-label { font-size: 12.5px; color: var(--muted); min-width: 120px; align-self: center; }
.num { font-variant-numeric: tabular-nums; }
.reasons { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 2px; font-size: 13px; }
.reasons li::before { content: "•"; color: var(--accent-ink); margin-right: 6px; }
.reasons.gaps li::before { color: var(--warn); }
.ref-line { line-height: 1.45; color: var(--text-2); }
.ref-line .more { color: var(--muted); white-space: nowrap; }
.ref-line .check { color: var(--ok); font-weight: 700; margin-right: 6px; }
.ref-fit { margin: 0; color: var(--muted); }
.ref-fit b { color: var(--text); }
.focus-note { margin: 0; padding: 4px 8px; border-radius: 6px; background: var(--warn-bg); color: var(--warn); }

/* ── Einordnung eines Produkts ────────────────────────────────────────────── */
.fit { display: grid; gap: 8px; }
.fit .eyebrow { margin: 0; }
.fit-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.fit-rank { font-size: 20px; font-weight: 700; }
.fit-rank small { font-size: 13px; font-weight: 500; color: var(--muted); }
.fit-warn .fit-rank { color: var(--warn); }
.fit-good .fit-rank { color: var(--ok); }
.rankbar { position: relative; height: 8px; border-radius: 99px; background: var(--line); margin-top: 4px; }
.rankbar-top { position: absolute; left: 0; top: 0; bottom: 0; width: 3%; min-width: 8px; border-radius: 99px; background: var(--ok); }
.rankbar-dot { position: absolute; top: 50%; width: 16px; height: 16px; margin-left: -8px; transform: translateY(-50%);
  border-radius: 50%; background: var(--warn); border: 2px solid var(--surface); }
.fit-good .rankbar-dot { background: var(--ok); }
.rankbar-legend { display: flex; justify-content: space-between; }
.note { background: var(--accent-soft); border-radius: 8px; padding: 8px 12px; margin: 0; }
.confirm p { margin: 0; }

/* ── Branchenvergleich ────────────────────────────────────────────────────── */
.peer-bars { display: grid; gap: 6px; margin-top: 10px; }
.peer { display: grid; grid-template-columns: minmax(8rem, 15rem) 1fr 3.4rem; gap: 10px; align-items: center; font-size: 14px; }
.peer .track { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.peer .fill { height: 100%; background: var(--muted); border-radius: 99px; }
.peer.hl .fill { background: var(--accent); }
.peer.cur .fill { background: var(--warn); }
.peer.hl .peer-name, .peer.cur .peer-name { font-weight: 600; }
.peer .num { text-align: right; color: var(--muted); }
.peer-via { display: block; font-weight: 400; font-size: 12px; }
.legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot.hl { background: var(--accent); }
.dot.cur { background: var(--warn); margin-left: 8px; }

/* ── Berichtsangebot ──────────────────────────────────────────────────────── */
/* Ruhig wie eine Portal-Karte: duenner Rahmen, leichte Toenung im Kopf, keine Grossbuchstaben-Zeile. */
.offer { border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow); overflow: hidden; display: grid; }
.offer-head { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; background: var(--accent-soft); }
.offer-icon { flex: none; width: 34px; height: 34px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--surface); color: var(--accent-ink); font-size: 17px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.offer h3 { margin: 0; font-size: 16px; font-weight: 600; }
.offer-sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.offer-body { padding: 14px 18px 16px; display: grid; gap: 12px; }
.offer-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 4px 18px; font-size: 13.5px; color: var(--text-2); }
.offer-list li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }
.offer-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.offer-form input[type="email"] { font: inherit; font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 9px 12px; min-width: 0; }
.offer-form input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.offer-form button { background: var(--accent); color: #fff; border: 0; border-radius: var(--radius); padding: 0 16px; font-weight: 600; font-size: 14px; }
.consents { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.consent { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; color: var(--muted); }
.consent input { margin-top: 2px; accent-color: var(--accent); }
.offer-error { grid-column: 1 / -1; margin: 0; color: var(--err); font-size: 14px; }
.offer-note { margin: 0; font-size: 12px; color: var(--muted); }
.offer-sent .offer-head { background: var(--ok-soft); }
.offer-sent .offer-icon { color: var(--ok); }
.dev { background: var(--warn-bg); color: var(--warn); border-radius: 6px; padding: 6px 10px; margin: 0; }
.dev a { color: inherit; font-weight: 600; }

/* ── Vorschlaege und Profil ───────────────────────────────────────────────── */
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 8px; }
.suggestions button { background: var(--surface); color: var(--accent-ink); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 6px 13px; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow); }
.suggestions button:hover { background: var(--accent-soft); border-color: var(--accent); }
.profile-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12.5px; }
.profile-title { color: var(--muted); font-weight: 600; margin-right: 2px; }
.pf { border-radius: 999px; padding: 2px 9px; border: 1px solid transparent; background: var(--chip); color: var(--text-2); }
.pf.known { color: var(--text); }
.pf.known span { color: var(--ok); font-weight: 700; }
.pf.missing { color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); font: inherit; font-size: 12.5px; }
.pf.missing:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
@media (max-width: 560px) {
  .peer { grid-template-columns: 1fr 3.4rem; }
  .peer .track { grid-column: 1 / -1; grid-row: 2; }
  .offer-form { grid-template-columns: 1fr; }
  .offer-form button { height: 44px; }
}
.confirm { display: grid; gap: 10px; }
.confirm-options { display: flex; flex-wrap: wrap; gap: 8px; }
.confirm-options button { background: var(--surface); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 999px; padding: 6px 13px; font-size: 13.5px; font-weight: 500; }
.confirm-options button:hover { background: var(--accent-soft); }
.weak-note, .unverified-note { margin: -4px 0 10px; }
.portal-hint { margin: 0; padding-left: 10px; border-left: 3px solid var(--accent-soft); color: var(--muted); }

/* ── Profil bearbeiten ────────────────────────────────────────────────────── */
.pf.edit { color: var(--accent-ink); background: var(--surface); border: 1px solid var(--accent); font: inherit; font-size: 12.5px; font-weight: 600; }
.pf.edit:hover:not(:disabled) { background: var(--accent-soft); }
.move { font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
.move.new { background: var(--accent-soft); color: var(--accent); }
.move.up { color: var(--ok); }
.move.down { color: var(--warn); }
.tile-top { gap: 4px; }
.tile-top .badge { margin-left: auto; }
/* Natives <dialog> (Review 13.10., 8.2): Fokusfalle, Escape und Fokus zurueck kommen vom Browser. */
dialog.modal { width: min(720px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface);
  color: var(--text); border-radius: var(--radius); border: 1px solid var(--line); padding: 0; margin: auto;
  font: inherit; box-shadow: 0 24px 60px rgba(15, 20, 25, .25); }
dialog.modal::backdrop, dialog.sheet::backdrop { background: rgba(15, 20, 25, 0.45); animation: fys-fade .2s ease; }
.modal-inner { padding: 20px; display: grid; gap: 14px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-head h2 { margin: 2px 0 0; font-size: 20px; }
.modal-head .eyebrow { margin: 0; }
.pe-form { display: grid; gap: 12px; }
.pe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pe-grid label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pe-grid .wide { grid-column: 1 / -1; }
.pe-grid .hint { font-weight: 400; }
.pe-grid input, .pe-grid select, .pe-grid textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; min-width: 0; resize: vertical; }
.pe-grid input:focus, .pe-grid select:focus, .pe-grid textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.upload { border: 1px dashed var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 8px; }
.upload-label { display: grid; gap: 2px; }
.status-inline { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); }
.pe-notice { margin: 0; background: var(--accent-soft); border-radius: 8px; padding: 8px 12px; }
.pe-actions { display: flex; justify-content: flex-end; gap: 8px; }
.primary { background: var(--accent); color: #fff; border: 0; border-radius: var(--radius); padding: 9px 16px; font-weight: 600; font-size: 14px; }
.primary:hover:not(:disabled) { filter: brightness(0.95); }
@media (max-width: 560px) { .pe-grid { grid-template-columns: 1fr; } }

/* ── Aktionen an Karten ───────────────────────────────────────────────────── */
.more-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; border-top: 1px dashed var(--line); }
.more-actions.inline { border-top: 0; padding-top: 2px; }
.more-actions button, .more-actions a { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px;
  padding: 5px 9px; font-size: 13px; text-decoration: none; }
.more-actions button:hover, .more-actions a:hover { border-color: var(--accent); color: var(--accent-ink); }
.more-actions .lead { border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.more-actions .portal { color: var(--muted); border-style: dashed; }
.action-link { background: none; border: 0; color: var(--accent-ink); font-weight: 600; font-size: 14px; padding: 0; white-space: nowrap; }
.action-link:hover { text-decoration: underline; }

/* ── Wartezeit der Website-Analyse ────────────────────────────────────────── */
.analysis { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: 12px 14px; display: grid; gap: 8px; }
.analysis-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.analysis-head .num { margin-left: auto; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 6px; }
.steps .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center;
  font-size: 10px; color: #fff; }
.steps .done { color: var(--text); }
.steps .done .dot { background: var(--ok); border-color: var(--ok); }
.steps .active { color: var(--accent-ink); font-weight: 600; }
.steps .active .dot { border-color: var(--accent); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.waiting-q { border-left: 3px solid var(--accent); padding: 4px 0 4px 12px; display: grid; gap: 8px; }
.waiting-q p { margin: 0; }
.waiting-q.answered { color: var(--muted); }
.waiting-q .other { display: flex; gap: 6px; max-width: 360px; }
.waiting-q .other input { flex: 1; min-width: 0; font: inherit; font-size: 14px; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; }
.waiting-q .other button { background: var(--surface); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 999px; padding: 5px 12px; font-size: 14px; }
.muted-btn { color: var(--muted) !important; border-color: var(--line) !important; }
.teaser { border-style: dashed; }
.teaser p { margin: 4px 0; }
.streaming p:last-child::after { content: "▍"; color: var(--accent); margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .streaming p:last-child::after, .steps .active .dot { animation: none; } }

/* ── Kacheln kompakt (2026-10-10) ─────────────────────────────────────────── */
.tile-head { display: flex; align-items: flex-start; gap: 10px; }
.tile-title { flex: 1; min-width: 0; display: grid; gap: 3px; }
.tile .tile-top { justify-content: flex-start; }
.tile h4 { min-height: 0; }
.score-pill { flex: none; min-width: 40px; text-align: center; font-weight: 700; font-size: 15px; color: var(--accent-ink);
  background: var(--accent-soft); border-radius: var(--radius); padding: 6px 8px; }
.score-bar.thin { flex: none; height: 4px; }
.tile-reason { margin: 0; color: var(--text-2); }
.service-hit { margin: 0; color: var(--text-2); display: grid; gap: 2px; }
.service-hit .snippet { font-style: italic; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.fit-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.fit-badge { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.fit-badge b { font-weight: 700; }
.fit-badge.warn { background: var(--warn-bg); color: var(--warn); }
.tile-actions button.icon { flex: 0 0 44px; padding-left: 0; padding-right: 0; font-size: 15px; line-height: 1; }
.tile.dropped { opacity: .45; filter: grayscale(.6); pointer-events: none; }
/* "Warum 96?": Teilscores unter dem Balken (8.7). */
.score-col .why { background: none; border: 0; padding: 0; font: inherit; font-size: 11.5px; color: var(--muted);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer; white-space: nowrap; }
.score-col .why:hover, .score-col .why[aria-expanded="true"] { color: var(--accent-ink); }
.why-parts { list-style: none; margin: 0; padding: 8px 10px; display: grid; gap: 5px; background: var(--bg); border-radius: 8px; }
.why-parts li { display: grid; grid-template-columns: minmax(0, 1fr) 48px 3ch; gap: 8px; align-items: center; color: var(--text-2); font-size: 12px; }
.why-parts li > span:first-child { min-width: 0; overflow-wrap: anywhere; hyphens: auto; line-height: 1.25; }
.why-parts .why-track { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; display: block; }
.why-parts .why-track span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.why-parts .why-track.minus span { background: var(--warn); }
.why-parts b { text-align: right; color: var(--text); }
.evidence { margin: 0; color: var(--muted); }
.evidence.hoch { color: var(--ok); }
.evidence.gering { color: var(--warn); }

/* ── Assistent als Sprechblase ────────────────────────────────────────────── */
.assistant { flex-direction: row; align-items: flex-start; gap: 10px; }
.avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px;
  background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.assistant-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.bubble { align-self: flex-start; max-width: min(100%, 980px); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); border-radius: 4px 12px 12px 12px; padding: 12px 16px; }
.bubble.answer p:last-child, .bubble.answer ul:last-child { margin-bottom: 0; }
.suggestions { margin-left: 40px; }
@media (max-width: 560px) { .avatar { display: none; } .suggestions { margin-left: 0; } }

/* Beispiele zum Ausfuellen ("Was kann der Assistent?"): Aufgabe oben, Satz darunter, Felder markiert. */
.fill-examples { list-style: none; margin: -4px 0 12px 40px; padding: 0; display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.fill-examples button { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 4px; text-align: left;
  font: inherit; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px; cursor: pointer; box-shadow: var(--shadow); }
.fill-examples button:hover, .fill-examples button:focus-visible { border-color: var(--accent); box-shadow: var(--shadow-hover); }
.fill-task { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fill-text { font-size: 14px; line-height: 1.45; }
.fill-text mark { background: var(--accent-soft); color: var(--accent-ink); border-bottom: 1px dashed var(--accent);
  border-radius: 3px; padding: 0 1px; }
@media (max-width: 560px) { .fill-examples { margin-left: 0; } }

/* ── Einstieg mit Eingabe oben ────────────────────────────────────────────── */
.dock:empty { display: none; }
.hero-composer { margin-top: 20px; max-width: 820px; }
.hero-composer .composer textarea { min-height: 54px; padding: 15px 16px; background: var(--surface); }
.hero-composer .composer button { height: 54px; padding: 0 22px; }
.send-icon { display: none; font-size: 18px; }
@media (max-width: 560px) {
  .composer button { padding: 0 14px; }
  .send-label { display: none; }
  .send-icon { display: inline; }
  .hero-composer .composer button { padding: 0 16px; }
}

/* ── Oeffentlich: Optik von find-your-software.de ─────────────────────────── */
/* Warmes Off-White, Tinte #161616, Indigo #221aa2, Serifen-Ueberschriften (Playfair Display, selbst gehostet),
   Mono-Labels in Versalien, weisse Karten mit feiner Linie statt Schatten. */
.fys-assistant.public {
  --accent: #221aa2;
  --accent-soft: #efeefb;
  --accent-ink: #221aa2;
  --bg: #f8f7f2;
  --surface: #ffffff;
  --text: #161616;
  --text-2: #3b3a36;
  --muted: #5d5c66;   /* 6,6:1 auf dem Grund; #76746c lag bei 4,37:1, unter AA (Review 12.10.2026) */
  --line: #e6e3d8;
  --line-2: #d6d2c4;
  --chip: #f2f0e8;
  --user: #161616;
  --user-text: #ffffff;
  --radius: 12px;
  --shadow: none;
  --shadow-hover: 0 6px 20px rgba(22, 22, 22, 0.06);
  font-family: Inter, -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.public .eyebrow { font: 500 11px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .16em; color: var(--accent); }
.eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.eyebrow a:hover, .eyebrow a:focus-visible { border-bottom-style: solid; }

.public .composer textarea { border-radius: 12px; border-color: var(--line-2); }
.public .composer textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 26, 162, .12); }
.public .composer button { border-radius: 10px; background: var(--accent); }
.public .composer button:disabled { opacity: 1; background: #c9c6e6; }
.public .dock, .public .topbar { background: var(--bg); }
.public .topbar { border-bottom-color: var(--line); }
.public .user-msg { border: 0; border-radius: 14px 14px 4px 14px; }
.public .avatar { background: var(--text); color: #fff; border: 0; font-size: 11px; letter-spacing: .04em; }
.public .bubble { border-radius: 4px 16px 16px 16px; padding: 14px 18px; }
.public .tile { border-radius: 14px; }
.public .tile:hover { border-color: var(--text); }
.public .suggestions button { border-color: var(--line-2); color: var(--text); background: var(--surface); }
.public .suggestions button:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.public .ai-note a { color: var(--muted); }

/* ── Einstieg: ein Satz, ein Beweis, eine Aktion (Start.tsx) ─────────────────────────────── */
.start { max-width: 1040px; margin: 0 auto; padding-top: clamp(8px, 6vh, 64px); }
.start-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.start-main { min-width: 0; }
@media (min-width: 900px) {
  .start-grid { grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 40px; }
  .start .example { margin-top: 10px; }
}
.start-more { margin: 14px 0 0; font-size: 13.5px; }
.linkish { font: inherit; font-size: inherit; background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--accent-ink); }
.card.integration.matrix .integration-rows li { padding: 8px 12px; }
.start h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.025em; font-weight: 700;
  color: var(--text); text-wrap: balance; }
.start .lead { margin: 0 0 20px; font-size: 17px; color: var(--text-2); max-width: 40em; }
.start .hero-composer { margin-top: 0; max-width: 760px; }
.start .hero-composer .composer textarea { box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--accent) 60%, transparent); }
.start .ai-note { text-align: left; margin-top: 18px; }

.tasks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; }
.task { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 10px; white-space: nowrap;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-2);
  font-size: 13.5px; font-weight: 500; transition: border-color .2s, color .2s, background .2s, transform .15s; }
.task svg { color: var(--accent-ink); flex: none; }
.task:hover { border-color: var(--accent); color: var(--accent-ink); }
.task:active { transform: scale(.97); }

/* Das Beispiel: ein echtes Ergebnis aus dem Tageslauf, mit der Frage, die dazu fuehrt. */
.example { margin: 28px 0 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.example-head { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.example-q { font: inherit; font-size: 14px; color: var(--text-2); background: none; border: 0; padding: 0; text-align: left;
  cursor: pointer; border-bottom: 1px dotted transparent; }
.example-q:hover, .example-q:focus-visible { color: var(--accent-ink); border-bottom-color: currentColor; }
.example-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.example-rows li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; animation: fys-rise .35s ease both; }
.example-rows li:nth-child(2) { animation-delay: .18s; } .example-rows li:nth-child(3) { animation-delay: .36s; }
.example-score { font-size: 13px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 2px 9px; }
.example-note { margin: 10px 0 0; color: var(--text-2); animation: fys-rise .35s ease .5s both; }
.task.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent-ink); font-weight: 600; }
.start-topics { margin: 12px 0 0; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.example-rows .rank { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--bg);
  border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--accent-ink); }
.example-rows b { font-weight: 600; font-size: 14.5px; }
.example-rows small { display: block; font-size: 12.5px; color: var(--muted); }
/* Heutiges System mit eigenem Rang (Beispiel "Mein System prüfen"): abgesetzt, Rang darf dreistellig sein. */
.example-rows li.own { grid-template-columns: minmax(28px, auto) 1fr auto; border-top: 1px dashed var(--line-2); padding-top: 8px; margin-top: 2px; }
.example-rows li.own .rank { width: auto; min-width: 28px; padding: 0 5px; background: var(--accent-soft); }

.start-foot { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }
.start-foot b { color: var(--text-2); font-weight: 600; }
.start-foot a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.start-foot a:hover { color: var(--accent-ink); border-bottom-style: solid; }

@media (max-width: 900px) {
  .start { padding-top: 4px; }
  .start .lead { font-size: 15.5px; }
  .tasks .task { padding: 7px 11px; font-size: 13.5px; }
  .example { margin-top: 20px; padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .fys-assistant *, .fys-assistant *::before { animation: none !important; transition: none !important; }
}

/* ── Schnittstellen laut Anbieterangaben ─────────────────────────────────── */
.integration-line { margin: 0; color: var(--ok); font-weight: 500; }
.integration-line span { margin-right: 4px; }
.based-on, .projects { margin: 0; }
.projects b { font-weight: 600; }
.card.integration h3 { margin: 2px 0 0; font-size: 17px; }
.integration-rows { list-style: none; display: grid; gap: 8px; margin: 12px 0; padding: 0; }
.integration-rows li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 10px 12px;
  border-radius: 10px; background: var(--chip); font-size: 14px; }
.integration-rows li.yes { background: var(--ok-soft); }
.integration-rows .mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.integration-rows li.yes .mark { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.integration-rows small { display: block; color: var(--muted); margin-top: 2px; }
.card.integration .card-head { display: block; }

/* ── Alles baut sich auf (nur in dieser Sitzung entstandene Runden) ─────────── */
.turn.live .user-msg { animation: fys-rise .3s ease both; }
.turn.live .assistant-body > :not(.bubble) { animation: fys-rise .45s ease both; }
.turn.live .vendor-grid > * { animation: fys-rise .4s ease both; }
.turn.live .vendor-grid > :nth-child(2) { animation-delay: .07s; }
.turn.live .vendor-grid > :nth-child(3) { animation-delay: .14s; }
.turn.live .vendor-grid > :nth-child(4) { animation-delay: .21s; }
.turn.live .vendor-grid > :nth-child(5) { animation-delay: .28s; }
.suggestions > button { animation: fys-rise .35s ease .4s both; }
.suggestions > button:nth-child(2) { animation-delay: .5s; }
.suggestions > button:nth-child(3) { animation-delay: .6s; }
.suggestions > button:nth-child(4) { animation-delay: .7s; }

/* ── Antwort als mehrere Sprechblasen (ein Absatz je Blase) ─────────────── */
.bubbles { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.bubbles .bubble { animation: fys-rise .3s ease both; }
.bubbles .bubble + .bubble { border-top-left-radius: 12px; }
.bubbles .bubble p:last-child, .bubbles .bubble ul:last-child { margin-bottom: 0; }
.bubble.aside { font-size: 13.5px; color: var(--muted); background: var(--ok-soft); border: 1px solid var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); box-shadow: none; }  /* Datenschutz-Hinweis: leicht gruen */

/* Muss-Anforderungen: Chip im Trichter, je Kachel belegt (✓) oder offen (○) – nie ein Nein. */
.chip.req { background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 13px; }
.checks li { display: flex; align-items: baseline; gap: 5px; }
.checks li small { margin-left: auto; color: var(--muted); font-size: 11.5px; }
.checks li.yes { color: var(--ok); font-weight: 500; }
.checks li.unknown { color: var(--text-2); }
.checks li.partial { color: var(--warn, #8a5a00); }
.checks li small a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }

/* Stop-Knopf waehrend der Runde (anstelle von Senden). */
.composer button.stop { background: var(--text); color: var(--bg); }
.composer button.stop:hover { filter: brightness(1.15); }
/* Folgefragen direkt unter der Antwort. */
.suggestions.inline { margin: 0 0 10px; }
/* Leeres Ergebnis: Kriterien lockern per Klick. */
.card.relax { display: grid; gap: 10px; }
.card.relax p { margin: 0; }
/* Naechster Schritt unter der Shortlist: sichtbar, nicht hinter dem Menue. */
.next-step { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.next-step .lead-link { color: var(--accent-ink); font-weight: 600; text-decoration: none; border: 1px solid var(--accent); border-radius: 999px; padding: 6px 13px; font-size: 13.5px; }
.next-step .lead-link:hover { background: var(--accent-soft); }
.next-step button.lead { border-radius: 999px; padding: 6px 13px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  background: var(--surface); color: var(--accent-ink); border: 1px solid var(--accent); font-family: inherit; max-width: none; line-height: 1.3; }
.next-step button.lead:hover { background: var(--accent-soft); }
.next-step button.lead:disabled { opacity: .55; cursor: default; }
.next-step a.portal { font-size: 13.5px; }
/* Konfidenz unter dem Score: wie belastbar die Datenbasis ist. */
.score-col { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.conf { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.conf.hoch { color: var(--ok); }
.conf.gering { color: var(--warn, #b45309); }
/* Merken / Verwerfen an der Kachel. */
.tile-actions button.keep.on { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-soft); }
.tile-actions button.drop:hover { color: #b42318; border-color: #b42318; }

/* Beispiel-Frage ueber dem Vorschau-Ergebnis: der Weg vom Chip zum Ergebnis. */
/* "Was kann der Assistent?" als Textlink statt Chip. */
.task.more.text { width: auto; padding: 0 12px; }

/* Leiste "Naechster Schritt" (Phase 2 D): ein Angebot, ein Satz, die Beratung als ruhiger Zweitlink. */
.next-step { flex-direction: column; align-items: stretch; gap: 8px; }
.next-step-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.next-step-text { margin: 0; }
.next-step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.next-step .quiet-link { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.next-step .quiet-link:hover { color: var(--fg); }
.next-step .waiting-q { margin-top: 4px; }

/* ── Wiederhergestellt aus 8c89d49 (in 001f9fc versehentlich mit den Vorschau-Regeln entfernt) ── */
.thread > .turn:first-child { animation: fys-rise .45s ease; }

/* ── Fruehere Runden: Karten eingeklappt ─────────────────────────────────── */
.folded { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.folded > summary { cursor: pointer; padding: 9px 14px; font-size: 13.5px; color: var(--text-2); list-style: none;
  display: flex; align-items: center; gap: 8px; }
.folded > summary::-webkit-details-marker { display: none; }
.folded > summary::before { content: "▸"; color: var(--accent-ink); transition: transform .2s; }
.folded[open] > summary::before { transform: rotate(90deg); }
.folded > summary:hover { color: var(--accent-ink); }
.folded-body { display: grid; gap: 12px; padding: 4px 12px 12px; }

/* ── Shortlist-Knopf und Seitenblatt ─────────────────────────────────────── */
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.share-row { display: flex; gap: 8px; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.share-row input { flex: 1; min-width: 0; font: inherit; font-size: 13px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--bg); color: var(--text); }
/* Teilen: Wahl Kopie/nur ansehen, Link, Ablauf, "Teilen beenden" */
.share-panel { display: grid; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.share-panel p { margin: 0; }
.share-panel .share-row { padding: 0; border: 0; flex-wrap: wrap; }
.share-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.share-modes button { font: inherit; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text-2); cursor: pointer; }
.share-modes button.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.share-panel > .primary { justify-self: start; }
.share-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.notice-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px;
  border-bottom: 1px solid var(--line); background: var(--accent-soft); color: var(--text-2); font-size: 14px; }
.view-only-bar { display: flex; justify-content: center; padding: 10px 0; }
/* Meine Gespraeche */
.chats { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.chats li { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 8px; }
.chats li.current { border-color: var(--accent); background: var(--accent-soft); }
.chat-open { flex: 1; min-width: 0; display: grid; gap: 2px; text-align: left; background: none; border: 0; padding: 4px; cursor: pointer;
  color: var(--text); font: inherit; }
.chat-title { font-weight: 600; overflow-wrap: anywhere; }
.chat-confirm { display: flex; gap: 6px; }
.ghost.danger { color: #b42318; border-color: color-mix(in srgb, #b42318 40%, var(--line)); }
.chats-limit { margin: 0 0 12px; padding: 8px 12px; border-radius: var(--radius); background: var(--accent-soft); color: var(--text-2); }
.chats-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.shared-note { margin: 0; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--ok-soft); }
.shortlist-btn { border-color: var(--accent); color: var(--accent-ink); }
dialog.sheet { position: fixed; inset: 0 0 0 auto; width: min(560px, 100%); height: 100%; max-height: 100%; max-width: 100%; margin: 0;
  overflow-y: auto; background: var(--bg); color: var(--text); border: 0; padding: 0; font: inherit;
  box-shadow: -12px 0 40px rgba(15, 15, 20, .18); animation: fys-slide .25s cubic-bezier(.2, .7, .2, 1); }
.sheet-inner { padding: 16px 18px 24px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 16px; }
.sheet .vendor-grid { grid-template-columns: 1fr; }
@keyframes fys-fade { from { opacity: 0; } }
@keyframes fys-rise { from { opacity: 0; transform: translateY(6px); } }  /* seit 001f9fc gefehlt, wiederhergestellt 13.10. */
@keyframes fys-slide { from { transform: translateX(24px); opacity: .6; } }

.analysis-slow { margin: 6px 0 0; color: var(--muted); }

/* ── Review 13.10.: Rueckgaengig, Abbruch, Beispieldaten, Mobil ──────────── */
.undo-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; padding: 8px 12px;
  border-radius: var(--radius); background: var(--text); color: var(--bg); font-size: 13.5px; animation: fys-rise .25s ease both; }
.undo-row .ghost { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 40%, transparent); min-height: 36px; }
.undo-row .ghost:hover:not(:disabled) { background: color-mix(in srgb, currentColor 12%, transparent); }
.cancelled { margin: 0; }
.demo-card { position: relative; }
.demo-mark { position: absolute; top: -8px; right: 10px; z-index: 1; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px;
  background: var(--warn-bg); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.topbar-menu { display: none; position: relative; }
.topbar-menu > summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); font-size: 18px; color: var(--text-2); }
.topbar-menu > summary::-webkit-details-marker { display: none; }
.topbar-menu-body { position: absolute; right: 0; top: 48px; z-index: 20; display: grid; gap: 6px; min-width: 200px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(15, 20, 25, .15); }
.topbar-menu-body .ghost { min-height: 44px; text-align: left; }
.ghost.consult-link { display: inline-flex; align-items: center; text-decoration: none; }
.profile-toggle { display: none; }
@media (max-width: 560px) {
  .topbar-actions { display: none; }
  .topbar-menu { display: block; }
  .dock .ai-note { display: none; }            /* nach der ersten Runde: der Hinweis stand auf dem Start (8.8) */
  .profile-toggle { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; font: inherit;
    font-size: 12.5px; font-weight: 600; color: var(--muted); min-height: 32px; }
  .profile-bar .profile-title, .profile-bar:not(.open) .pf { display: none; }
  .profile-bar.open .profile-toggle { color: var(--accent-ink); }
}

/* ── Fortschrittskarte (CHAT-AGENT-FORTSCHRITT.md) ───────────────────────── */
/* Ruhig: kein Rot, kein Warnsymbol; der Portal-Knopf ist die einzige gefuellte Flaeche. */
.journey { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 14px;
  display: grid; gap: 10px; }
.journey-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: none; border: 0; padding: 10px 0 0;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text); text-align: left; cursor: pointer; min-height: 40px; }
.journey-dots { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.journey-dots .done { color: var(--ok); }
.journey-dots .partial { color: var(--accent-ink); }
.journey-chev { margin-left: 6px; font-size: 15px; }
.journey-next { display: grid; gap: 2px; font-size: 14px; color: var(--text-2); }
.journey-next p { margin: 0; }
.journey-next b { color: var(--text); }
.journey-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.journey-steps li { display: grid; grid-template-columns: 20px minmax(8.5rem, 11rem) minmax(0, 1fr); gap: 2px 10px; align-items: baseline;
  font-size: 14px; color: var(--text-2); }
.journey-mark { font-weight: 700; color: var(--muted); text-align: center; }
.journey-steps li.done .journey-mark { color: var(--ok); }
.journey-steps li.partial .journey-mark { color: var(--accent-ink); }
.journey-steps li.done b { color: var(--text); }
.journey-steps li:not(.done) b { font-weight: 500; }
.journey-fact { min-width: 0; }
.journey-risk { font-size: 13px; color: var(--muted); line-height: 1.4; }
.journey-steps .journey-risk { grid-column: 3; }
.journey-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 2px; }
.journey-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--radius); border: 0;
  background: var(--accent); color: #fff; font: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.journey-cta:hover { filter: brightness(0.95); }
.journey-cta:disabled { opacity: .55; cursor: default; }
.journey-chat { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius);
  border: 1px solid var(--accent-ink); background: none; color: var(--accent-ink); font: inherit; font-size: 14.5px; font-weight: 600;
  text-decoration: none; cursor: pointer; }
.journey-chat:disabled { opacity: .55; cursor: default; }
.journey .waiting-q { margin-top: 0; }
.sheet .journey { margin-top: 14px; }
.deadline { border-left: 3px solid var(--accent); padding: 4px 0 4px 12px; display: grid; gap: 6px; justify-items: start; }
.deadline p { margin: 0; }
.offer-stage { display: grid; gap: 6px; }
.offer-stage-head { margin: 0; color: var(--muted); font-weight: 600; }
.offer-list.plus li::before { content: "+"; color: var(--accent-ink); }
@media (max-width: 560px) {
  .journey-steps li { grid-template-columns: 20px minmax(0, 1fr); }
  .journey-fact, .journey-steps .journey-risk { grid-column: 2; }
  .journey-cta, .journey-chat { width: 100%; justify-content: center; }
}

/* Stand und Quellen unter redaktionellen Antworten (Markdown.tsx). */
.source-line { font-size: 12px; color: var(--muted); }
.source-line a { color: inherit; text-decoration: underline; text-decoration-style: dotted; }
.more-results { margin: 4px 0 0; text-align: center; }

/* ── Kacheln aufgeraeumt (Rueckmeldung 26.10.2026) ──────────────────────────
   Zahl als Knopf ("warum?" darunter), Anforderungen als schlichte Liste mit Link auf die Fundstelle, eine Faktenzeile,
   Knoepfe in einer Reihe. */
.tile { gap: 0; }
.tile > .slot:not(:empty) ~ .slot:not(:empty) { padding-top: 10px; }
button.score-pill { border: 0; cursor: pointer; font-family: inherit; }
button.score-pill:hover, button.score-pill[aria-expanded="true"] { background: var(--accent); color: #fff; }
.score-col .why { font-size: 11px; color: var(--muted); }
.tile .checks { gap: 4px; }
.tile .checks li { gap: 6px; line-height: 1.35; }
.tile .checks li > span[aria-hidden] { flex: none; width: 1em; }
.tile .checks a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.tile .checks a:hover { text-decoration-color: currentColor; }
.ref-line { color: var(--text-2); }
.facts { margin: 0; color: var(--muted); line-height: 1.45; }
.facts .in-branch { color: var(--ok); }
.facts .in-branch b { font-weight: 700; }
.facts .conf { font-size: inherit; white-space: nowrap; }
.focus-note { color: var(--warn); }
.tile-actions { flex-wrap: nowrap; gap: 6px; padding-top: 4px; }
.tile-actions button { min-height: 36px; padding: 4px 6px; border-radius: 10px; white-space: nowrap; }
.tile-actions button.icon { flex: 0 0 36px; }
@media (pointer: coarse) { .tile-actions button { min-height: 44px; } .tile-actions button.icon { flex-basis: 44px; } }
/* Kopf: Name links, Zahl rechts daneben (.slot setzte sonst grid und schob die Zahl unter den Namen). */
.tile > .slot.tile-head { display: flex; align-items: flex-start; gap: 8px; }
.tile .tile-top { align-items: center; gap: 4px; }
.keep-star { margin-left: auto; background: none; border: 0; padding: 0 2px; font-size: 17px; line-height: 1; color: var(--muted); cursor: pointer; }
.keep-star:hover, .keep-star.on { color: var(--accent-ink); }
.tile-actions button { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tile-actions { gap: 4px; }
.tile-actions button { padding: 4px 2px; }
.tile .checks.pending li { color: var(--muted); }
/* Statuszeile auf Hoehe des KI-Kreises (30px + 2px Abstand oben): Zeile 34px hoch, Inhalt mittig. */
.assistant-body > .status { min-height: 34px; }
/* Mehrere Anforderungen: Tabelle Systeme x Anforderungen ueber den Kacheln (Cards.tsx ReqMatrix). Breiter als
   das Handy: die Tabelle scrollt in sich, nie die Seite. */
.req-matrix { margin: 4px 0 12px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.req-matrix table { border-collapse: collapse; width: 100%; font-size: 14px; }
.req-matrix th, .req-matrix td { padding: 9px 12px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
.req-matrix tbody tr:last-child > * { border-bottom: 0; }
.req-matrix th.lead { text-align: left; font-weight: 500; min-width: 170px; max-width: 220px; white-space: normal; position: sticky; left: 0;
  background: var(--surface); z-index: 1; }
.req-matrix thead th { background: var(--bg); vertical-align: bottom; }
.req-matrix thead th.sys { min-width: 150px; font-weight: 400; line-height: 1.3; }
.req-matrix thead th.sys .ref { color: var(--muted); font-size: 12px; }
.req-matrix thead th.sys .vendor { display: block; margin-top: 2px; }
.req-matrix tr.facts th.lead { color: var(--muted); font-weight: 400; font-size: 13px; }
.req-matrix td.used { color: var(--text-2, var(--text)); line-height: 1.35; }
.req-matrix tr.req.first > * { border-top: 2px solid var(--line-2); }
.req-matrix td.mark { font-size: 18px; line-height: 1; }
.req-matrix td.mark a { text-decoration: none; display: inline-block; min-width: 32px; padding: 6px 0; border-radius: 6px; }
.req-matrix td.mark a:hover { background: var(--accent-soft); }
.req-matrix td.yes, .req-matrix td.yes a { color: var(--ok, #1d7a46); }
.req-matrix td.partial, .req-matrix td.partial a { color: var(--warn, #9a6b00); }
.req-matrix td.unknown, .req-matrix td.unknown a, .req-matrix td.pending { color: var(--muted); }
.req-matrix tr.acts td { white-space: nowrap; }
.req-matrix tr.acts button { margin: 2px 3px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
  border-radius: var(--radius); padding: 6px 10px; font: inherit; font-size: 13px; font-weight: 500; min-height: 40px; cursor: pointer; }
.req-matrix tr.acts button:hover { background: var(--bg); color: var(--accent-ink); border-color: var(--line-2); }
.req-matrix .compare-more { margin: 0; padding: 10px 12px; border-top: 1px solid var(--line); color: var(--muted); }
.req-matrix .compare-more a { font-weight: 600; color: var(--accent-ink); }
.checks-sum { margin: 0; }
.checks-sum.none, .checks-sum.pending { color: var(--muted); }
.checks-sum > span[aria-hidden] { color: var(--ok, #1d7a46); }
.checks-sum.none > span[aria-hidden] { color: var(--muted); }
.ask .confirm-options button.on { background: var(--accent-soft); font-weight: 600; }
.ask .confirm-options button:disabled { opacity: .45; cursor: default; }
/* Oeffentlich faerbt .public .composer button jeden Knopf im Eingabefeld in der Akzentfarbe, auch das Menue:
   der ☰-Knopf stand dunkel auf Dunkelblau (Rueckmeldung 26.10.2026). */
.public .composer .menu-toggle { background: var(--surface); color: var(--text-2); }
.public .composer .menu-toggle:hover { background: var(--bg); color: var(--accent-ink); }
.public .composer .menu-pop button { background: transparent; color: var(--text); border-radius: 8px; height: auto; }
.public .composer .menu-pop button:hover { background: var(--bg); color: var(--accent-ink); }
/* Ergebnisleiste unten im Dock (App.tsx resultDock): eine Zeile mit deutlichem Knopf; das Ergebnis oeffnet als
   Fenster ueber dem mattierten Chat (Rueckmeldung 26.10.: der Chat oben soll dann weg sein). */
.result-dock { margin: -2px 0 10px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface, #fff); }
.result-dock.fresh { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.result-head { width: 100%; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; text-align: left; background: transparent;
  border: 0; padding: 7px 8px 7px 12px; font: inherit; font-size: 14px; color: var(--text); cursor: pointer; min-height: 48px; }
.result-title { font-weight: 600; }
.result-open { margin-left: auto; background: var(--accent); color: #fff; border-radius: 999px; padding: 7px 14px;
  font-weight: 600; font-size: 14px; white-space: nowrap; }
.result-head:hover .result-open, .result-head:focus-visible .result-open { filter: brightness(1.12); }
.result-dock .badge.new { background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.result-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(15, 15, 30, 0.28); -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%); animation: result-fade .15s ease-out; }
.result-sheet { width: min(1240px, 100%); max-height: min(92vh, 1100px); display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(15, 15, 30, 0.25);
  animation: result-rise .18s ease-out; }
.result-sheet-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 10px 10px 16px;
  border-bottom: 1px solid var(--line); font-size: 15px; }
.result-close { margin-left: auto; background: var(--text); color: var(--bg); border: 0; border-radius: 999px;
  padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 40px; }
.result-close:hover { filter: brightness(1.25); }
.result-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; }
.result-body > * { min-width: 0; }  /* nur die Tabelle scrollt seitlich (.req-matrix), Kopf und Firmenprofil umbrechen */
@keyframes result-fade { from { opacity: 0; } }
@keyframes result-rise { from { transform: translateY(16px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .result-overlay, .result-sheet { animation: none; } }
@media (max-width: 640px) {
  .result-overlay { padding: 10px; }
  .result-sheet { max-height: 94vh; }
  .result-head .muted { font-size: 13px; }
}
/* Einordnung: so breit wie eine Antwort, Rangleiter statt Balken ueber den ganzen Markt (Cards.tsx ProductFitCard). */
.card.fit { max-width: min(100%, 980px); }
.fit-verdict { margin: 2px 0 10px; color: var(--text-2); }
.fit-good .fit-verdict { color: var(--ok); }
.rank-ladder { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.rank-ladder li { display: grid; grid-template-columns: 28px minmax(0, 220px) 1fr 34px; align-items: center; gap: 10px; font-size: 14px; position: relative; }
.rank-ladder li .gap { position: absolute; left: 8px; top: -14px; color: var(--muted); font-size: 12px; line-height: 1; }
.rank-ladder li:has(.gap) { margin-top: 12px; }
.rank-ladder .pos { color: var(--muted); text-align: right; }
.rank-ladder .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-ladder .track { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.rank-ladder .track > span { display: block; height: 100%; background: var(--line-2); border-radius: 99px; }
.rank-ladder li.me { font-weight: 600; }
.rank-ladder li.me .pos { color: var(--text); }
.fit-good .rank-ladder li.me .track > span { background: var(--ok); }
.fit-warn .rank-ladder li.me .track > span { background: var(--warn); }
.rank-ladder b { text-align: right; }
.fit-gaps { margin: 4px 0 8px; color: var(--warn); }
.fit-gaps.mild { color: var(--text-2); }
@media (max-width: 640px) { .rank-ladder li { grid-template-columns: 24px minmax(0, 1fr) 70px 30px; } }
/* Textknoepfe unter der Shortlist ("Weitere 5 zeigen", Partner der Plattform): Link-Optik statt Browser-Standard. */
button.text { background: none; border: 0; padding: 6px 4px; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--accent-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
button.text:hover { text-decoration-thickness: 2px; }

/* Bericht sofort (Offer.tsx ReportForm) und Knopf in der Ergebnisleiste (27.10.2026). */
.result-row { display: flex; align-items: stretch; }
.result-row .result-head { flex: 1; min-width: 0; }
.result-report { margin: 6px 8px 6px 0; background: var(--surface); color: var(--accent-ink); border: 1px solid var(--accent);
  border-radius: 999px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.result-report:hover { background: var(--accent-soft); }
.result-sheet.narrow { width: min(760px, 100%); }
.report-form { display: grid; gap: 12px; }
.report-form .rf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; }
.report-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--text); }
.report-form .opt { font-weight: 400; color: var(--muted); }
.report-form input, .report-form textarea { font: inherit; font-size: 15px; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line-2);
  border-radius: var(--radius); background: var(--surface); color: var(--text); }
.report-form input:focus, .report-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.report-form textarea { resize: vertical; line-height: 1.45; }
.report-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.report-form button.primary, .report-done .primary { justify-self: start; background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: 11px 20px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; min-height: 44px; text-decoration: none; }
.report-form button.primary:disabled { opacity: .45; cursor: default; }
.report-form .rf-note, .report-form .rf-trust { margin: 0; }
.report-done { display: grid; gap: 8px; }
.report-done-head { margin: 0; font-size: 17px; font-weight: 600; }
.report-done-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.report-done-actions button { background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 16px; font: inherit; cursor: pointer; }
@media (max-width: 640px) { .result-report { padding: 0 10px; font-size: 13px; } }
/* Fenster-Bauteil (Sheet.tsx): Aktionen im Kopf, Hinweis beim ersten Oeffnen, Termin und Teilen (27.10.2026). */
.sheet-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.sheet-actions + .result-close { margin-left: 0; }
.sheet-btn { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 40px; }
.sheet-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.sheet-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.sheet-btn.primary:hover { filter: brightness(1.12); color: #fff; }
.result-hint { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 10px 14px; }
.result-hint p { margin: 0; flex: 1 1 320px; font-size: 14px; line-height: 1.45; }
.cal-sheet { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
.cal-pitch ul { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 10px; font-size: 14.5px; line-height: 1.45; }
.cal-frame iframe { width: 100%; height: min(640px, 70vh); border: 0; border-radius: var(--radius); background: var(--surface); }
.cal-frame p { margin: 6px 0 0; }
@media (max-width: 760px) { .cal-sheet { grid-template-columns: minmax(0, 1fr); } .cal-frame iframe { height: 560px; } }
.share-sheet { display: grid; gap: 14px; }
.share-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.share-option { display: grid; gap: 4px; text-align: left; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 12px 14px; font: inherit; cursor: pointer; color: var(--text); }
.share-option.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.share-sheet > button.primary { justify-self: start; background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 11px 20px;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; min-height: 44px; }
.share-link { display: flex; gap: 10px; align-items: center; }
.share-link input { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); color: var(--text); }
.share-channels { display: flex; gap: 8px; flex-wrap: wrap; }
.share-channels .channel { background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 14px; font: inherit;
  font-size: 14px; color: var(--text); text-decoration: none; cursor: pointer; }
.share-channels .channel:hover { border-color: var(--accent); color: var(--accent-ink); }
.share-foot-line { margin: 0; }

/* Projektstand im Berichtsformular (freiwillig, ein Klick) */
.report-form .rf-stage { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.report-form .rf-stage legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.report-form .rf-stage button { background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px;
  font: inherit; font-size: 14px; color: var(--text); cursor: pointer; min-height: 40px; }
.report-form .rf-stage button.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--accent-ink); font-weight: 600; }

/* Vorbereitete Mail: Anliegen ohne Termin, Weiterfuehrung anfragen */
.mail-sheet { display: grid; gap: 12px; }
.mail-sheet p { margin: 0; }
.mail-pitch { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.45; }
.mail-text { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.mail-text .opt { font-weight: 400; color: var(--muted); }
.mail-text textarea { font: inherit; font-size: 14.5px; font-weight: 400; line-height: 1.45; padding: 10px 12px; border: 1px solid var(--line-2);
  border-radius: var(--radius); background: var(--surface); color: var(--text); resize: vertical; }
.mail-text textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mail-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mail-actions .primary { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 11px 20px; font-size: 15px;
  font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.mail-actions button { background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 14px; font: inherit;
  font-size: 14px; color: var(--text); cursor: pointer; min-height: 44px; }
.req-matrix .compare-more button.text { padding: 0; font-size: inherit; color: var(--accent-ink); }

/* Lob und "Wie geht es weiter?" auf der Fortschrittskarte (Journey.tsx, 27.10.2026) */
/* Sachlich statt Erfolgs-Box (Sofortmassnahmen 27.10.: Gruen wirkte wie ein Spiel-Level) */
.journey-praise { margin: 8px 0 4px; padding: 10px 0 0; border-top: 1px solid var(--line-2); }
.journey-praise p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.journey-keep { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.journey-keep button { background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; font: inherit;
  font-size: 14px; font-weight: 600; color: var(--accent-ink); cursor: pointer; min-height: 38px; }
.journey-keep button:hover { border-color: var(--accent); }
.save-warn { margin: 0; color: var(--text-2); }

/* Handy: Ergebnisleiste untereinander statt Kreis-Knopf; Fenster-Kopf mit kleinem Schliessen oben rechts */
@media (max-width: 640px) {
  .result-row { flex-direction: column; }
  .result-report { margin: 0 8px 8px; padding: 9px 14px; min-height: 40px; }
  .result-sheet-head { position: relative; padding-right: 56px; }
  .result-sheet .result-close { position: absolute; top: 8px; right: 8px; padding: 0; width: 40px; font-size: 0; }
  .result-sheet .result-close span { font-size: 16px; }
}

/* Lesetipp in den Wartezeiten (Waiting.tsx ReadingTip) */
.status { flex-wrap: wrap; }
.reading-tip { flex-basis: 100%; margin: 6px 0 0; padding: 8px 12px; border-left: 3px solid var(--accent-soft); color: var(--text-2);
  animation: result-fade .3s ease-out; }
.reading-tip a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.analysis .reading-tip { margin-top: 10px; }
/* Satz ueber den Vorlagen "Anbieter im Blick" / "Heutiges System" (journey.CANDIDATES_TITLE) */
.fill-title { margin: 4px 0 8px 40px; font-size: 14.5px; line-height: 1.45; color: var(--text); }
@media (max-width: 560px) { .fill-title { margin-left: 0; } }
/* Vorlage wegklicken (✕ oben rechts in der Karte) */
.fill-examples li { position: relative; }
.fill-examples .fill-x { position: absolute; top: 4px; right: 4px; z-index: 1; width: 28px; height: 28px; padding: 0; border: 0;
  border-radius: 999px; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; }
.fill-examples .fill-x:hover, .fill-examples .fill-x:focus-visible { background: var(--bg); color: var(--text); }
/* Formulare nur mit E-Mail (Bericht, Gespraech speichern) */
.rf-email { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.rf-email input { font: inherit; font-size: 16px; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line-2);
  border-radius: var(--radius); background: var(--surface); color: var(--text); }
.rf-email input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.save-form { display: grid; gap: 12px; }
.save-form p { margin: 0; }
.save-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.save-form button.primary { justify-self: start; background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: 11px 20px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; min-height: 44px; }
.save-form button.primary:disabled { opacity: .45; cursor: default; }
.rf-more { border-top: 1px solid var(--line); padding-top: 8px; }
.rf-more summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.rf-more summary .opt { font-weight: 400; color: var(--muted); }
.rf-more[open] > .rf-grid { margin: 10px 0; }
