/* Echtes Knowmetheus-App-Design (nach Screenshots). Gilt für alle Läufe. */
.km-demo{--red:#c9b98d;--red-dim:rgba(201,185,141,.07);--font-ui:'Space Grotesk','Helvetica Neue',Arial,sans-serif;--font-mono:'Space Mono',ui-monospace,Menlo,monospace}
.km-demo .app-frame{background:#131313!important;border:1px solid #2a2a2a!important}
.km-demo .rail{background:#121212!important;border-right:1px solid #1f1f1f!important;padding-top:20px!important;gap:0!important;width:60px!important;justify-content:flex-start!important}
.km-demo .rail svg{width:21px!important;height:21px!important;stroke:#7d7a75!important;opacity:1!important;margin:0 0 39px!important;flex:none}
.km-demo .rail svg:first-of-type{stroke:#7d7a75!important;opacity:1!important}
.km-demo .rail-k{display:block;width:25px;height:auto;margin:0 0 48px;opacity:.9}
.km-demo .topbar{background:#131313!important;border-bottom:0!important;height:56px!important}
.km-demo .topbar-title{color:#F2F0EC!important;letter-spacing:.07em!important;font-size:14.5px!important;font-weight:400!important}
.km-demo .runtime-badge{display:none!important}
.km-demo .topbar-admin{color:#E6E3DE!important;letter-spacing:.02em}
.km-demo .avatar{background:#1e1e1e!important;border:1px solid #3a3a3a!important;color:#B4A27A!important;font-weight:600}
/* Startbildschirm */
.ct-land{gap:0!important;justify-content:flex-start!important;padding:44px 24px 24px!important;overflow:hidden}
.ct-rays,.km-demo .landing::before{position:absolute;inset:0;pointer-events:none;background:repeating-conic-gradient(from 0deg at 50% 70px,rgba(201,185,141,.075) 0deg .12deg,transparent .12deg 3.6deg);-webkit-mask:radial-gradient(ellipse 60% 70% at 50% 70px,#000 0%,rgba(0,0,0,.45) 40%,transparent 78%);mask:radial-gradient(ellipse 60% 70% at 50% 70px,#000 0%,rgba(0,0,0,.45) 40%,transparent 78%)}
.km-demo .landing::before{content:""}
.ct-logo{position:relative;width:min(200px,46%);height:auto;margin-top:6px}
.ct-land-l,.km-demo .tagline{position:relative;margin:18px 0 26px!important;font-family:var(--font-mono);font-size:11px!important;letter-spacing:.34em!important;text-transform:uppercase!important;color:#8f8c86!important}
.ct-land-box,.km-demo .landing-box{position:relative;width:min(640px,100%)!important;max-width:640px!important;padding:18px 20px 14px!important;border:1px solid rgba(180,162,122,.42)!important;border-radius:20px!important;background:linear-gradient(180deg,#1c1c1b,#181817)!important;box-shadow:0 20px 60px -30px rgba(0,0,0,.8);display:flex;flex-direction:column;gap:14px}
.ct-q,.km-demo .landing-q{font-size:15px!important;line-height:1.55!important;color:#F2F0EC!important}
.ct-tile{position:relative;width:56px;height:56px;border-radius:12px;background:#222;border:1px solid #333;display:grid;place-items:center}
.ct-tile-d{position:relative;width:34px;height:40px;border-radius:5px;background:#151515;display:grid;place-items:center}
.ct-tile-d i{position:absolute;top:4px;left:4px;width:0;height:0;border-left:7px solid #8D8367;border-top:7px solid transparent;transform:rotate(90deg)}
.ct-tile-d b{padding:1px 4px;border:1px solid #6b6350;border-radius:3px;font-family:var(--font-mono);font-size:8.5px;font-weight:700;color:#B4A27A;margin-top:6px}
.ct-tile-x{position:absolute;top:-8px;right:-8px;width:20px;height:20px;border-radius:50%;background:#2a2a2a;border:1px solid #3a3a3a;display:grid;place-items:center;font-size:13px;line-height:1;color:#F2F0EC}
.ct-land-bar,.km-demo .landing-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;border-top:0!important;margin-top:4px!important;padding-top:0!important}
.ci-icons,.km-demo .landing-icons{display:flex!important;gap:18px!important;align-items:center}
.ci-icons svg,.km-demo .landing-icons svg{width:17px!important;height:17px!important;stroke:#9b9892!important}
.ci-r{display:flex;align-items:center;gap:12px}
.ct-cc,.km-demo .char-count{font-family:var(--font-mono);font-size:11px;color:#6a6862}
.ct-send,.km-demo .send-circle{width:36px!important;height:36px!important;border-radius:50%!important;background:linear-gradient(180deg,#d2c193,#a8966b)!important;display:grid!important;place-items:center!important;box-shadow:0 0 18px rgba(201,185,141,.25)}
.ct-send svg,.km-demo .send-circle svg{width:16px!important;height:16px!important;stroke:#141412!important}
.ct-disc{position:relative;margin-top:14px;text-align:center;font-size:10.5px;letter-spacing:.02em;color:#6a6862}
.ct-disc-b{margin:8px 30px 12px;flex:none}
/* Eingabe unten */
.km-demo .chat-input{flex-direction:column!important;align-items:stretch!important;gap:16px!important;min-height:0!important;margin:0 30px 0!important;padding:14px 16px 12px!important;border:1px solid #2e2e2e!important;border-radius:18px!important;background:#1b1b1b!important}
.km-demo .chat-input::before{display:none!important;content:none!important}
.ci-ph{font-size:13.5px;color:#6a6862}
.ci-bar{display:flex;align-items:center;justify-content:space-between}
.ci-esc{font-family:var(--font-mono);font-size:11px;color:#8f8c86;display:none}
.ci-stop{width:30px;height:30px;border-radius:50%;background:#111;border:1px solid #2e2e2e;display:none;place-items:center}
.ci-stop i{width:9px;height:9px;border-radius:2px;background:#F2F0EC}
.ci-go{width:30px;height:30px;border-radius:50%;border:1px solid #3a3a3a;display:grid;place-items:center}
.ci-go svg{width:14px;height:14px;stroke:#cfccc6}
.is-run .ci-esc{display:inline}.is-run .ci-stop{display:grid}
.km-demo .chat-input .status,.km-demo .chat-input .ct-status{display:none!important}
/* Verlauf */
.ct-grp{font-size:12.5px!important;color:#9b9892!important;gap:9px!important}
.ct-chev{font-style:normal;font-size:12px;color:#6a6862;width:10px;text-align:center;flex:none;line-height:1}
.ct-live .ct-gl{color:#cfccc6}
.ct-ldot{width:5px;height:5px;border-radius:50%;background:#8D8367;animation:pulse 1.1s ease-in-out infinite;margin-left:4px}
.ct-tool{position:relative;font-size:12.5px!important;gap:11px!important;margin-left:10px!important;padding:5px 10px 5px 26px!important;border-left:1px solid #2e2e2e!important;color:#cfccc6!important}
.ct-b:has(.ct-grp)+.ct-b .ct-tool::before,.ct-b:has(.ct-grp)+.ct-b .ct-think::before{content:"";position:absolute;left:-4px;top:9px;width:7px;height:7px;border-radius:50%;background:#8a8370;box-shadow:0 0 0 3px #131313}
.ct-think{position:relative;margin-left:10px!important;padding-left:26px!important}
.ct-tool.open{background:#1a1a1a;border-radius:0 10px 10px 0}
.ct-tool.bash.open .ct-k{color:#a99a76!important}
.ct-k{color:#d8d5cf!important;letter-spacing:.08em!important}
.ct-outw{margin:6px 0 0 36px;padding:12px;border:1px solid #2a2a2a;border-radius:14px}
.ct-out{margin:0!important;padding:12px 14px!important;border:1px solid #2a2a2a!important;border-radius:10px!important;background:#151515!important;font-size:11.5px!important;color:#E6E3DE!important;white-space:pre-wrap!important;word-break:break-all}
.ct-dol{color:#B4A27A}
.ct-user{background:linear-gradient(180deg,#2a2721,#221f1a)!important;border:1px solid #4d4738!important;border-radius:16px!important;font-size:13.5px!important;padding:14px 16px!important}
.ct-say{font-size:14px!important;line-height:1.65!important}
/* keine Rot-/Ampelfarben */

@keyframes kmHitG{0%{background:rgba(201,185,141,.22)}100%{background:rgba(201,185,141,.06)}}
.km-demo .flagmark,.km-demo td.gwrong,.km-demo td.gwrong s,.km-demo .badge.late,.km-demo .badge.review{color:#c9b98d!important}
.km-demo .pruef{border-color:#8D8367!important;color:#c9b98d!important}.km-demo .pruef:hover,.km-demo .pruef:focus-visible{background:rgba(201,185,141,.12)!important}
.km-demo .badge.late,.km-demo .badge.review{border-color:rgba(201,185,141,.45)!important}
.km-demo .hintrow{border-left-color:#8D8367!important;background:rgba(201,185,141,.06)!important}
.km-demo .tab .flagdot,.km-demo .jump .dot{background:#c9b98d!important}
@media(max-width:760px){.km-demo .chat-input{margin:0 14px!important}.ct-disc-b{margin:6px 14px 10px}.ci-icons{gap:12px!important}.ci-esc{display:none!important}.ct-outw{margin-left:16px;padding:8px}.ct-land{padding-top:28px!important}}

/* Größen & Farben nach Screenshots */
.km-demo .topbar-admin{font-size:14.5px!important;color:#ECEAE6!important}
.km-demo .avatar{width:34px!important;height:34px!important;font-size:12.5px!important}
.ct-say,.ct-ans,.km-demo .resp-row{font-size:15px!important;line-height:1.7!important;color:#F2F0EC!important}
.ct-user{font-size:15px!important;line-height:1.75!important;color:#F2F0EC!important;padding:16px 18px!important;max-width:78%!important}
.ct-grp{font-size:14px!important;font-weight:400!important}
.ct-ms{font-size:11.5px!important;color:#6a6862!important}
.ct-tool{font-size:13.5px!important}
.ct-k{font-size:13.5px!important}
.ct-think{font-size:14px!important;line-height:1.75!important;color:#9b9892!important}
.ci-ph{font-size:16px}
.ci-esc,.ct-cc{font-size:12px}
.ct-disc{font-size:11.5px}
.ct-q{font-size:16px!important;line-height:1.75!important}
.km-demo .chat-scroll,.ct-scroll{padding:22px 34px 12px!important;gap:18px!important}
@media(max-width:760px){.ct-say,.ct-ans,.km-demo .resp-row,.ct-user{font-size:13.5px!important}.ct-grp,.ct-think{font-size:12.5px!important}.ct-tool,.ct-k{font-size:12px!important}.km-demo .chat-scroll,.ct-scroll{padding:16px 14px 8px!important}.ct-user{max-width:94%!important}}
.km-demo .landing{justify-content:flex-start!important;padding-top:44px!important;overflow:hidden}
.km-demo .hero-logo{position:relative;display:flex;justify-content:center;width:100%}
.km-demo .hero-logo .ct-logo{width:min(200px,46%)}

/* Prüfhinweise neutral wie in der App: kein Seitenstrich, keine Tönung, kein Warnsymbol */
.km-demo tbody tr.flagged td,.km-demo tbody tr.hit td{background:transparent!important;animation:none!important;box-shadow:none!important}
.km-demo tbody tr.flagged td:first-child{box-shadow:none!important;color:#cfccc6!important}
.km-demo tbody tr td:first-child{box-shadow:none!important}
.km-demo .tblcard tr td:first-child,.km-demo .tblcard tr th:first-child{border-left:0!important}
.km-demo .flagmark,.km-demo .find-h .warn{display:none!important}
.km-demo td.gwrong,.km-demo td.gwrong s{color:inherit!important}
.km-demo .hintrow{border-left:0!important;background:#1a1a1a!important;border-radius:10px}

/* Lauf wie im Original: keine zusätzlichen Markierungen */
.km-demo .pruef,.km-demo .flagmark,.km-demo .find-h .warn,.km-demo .hintlist,.km-demo .tab .flagdot,.km-demo .jump .dot{display:none!important}
.km-demo td.gwrong s{text-decoration:none!important}
.km-demo td.gwrong .gcalc{display:none!important}
.km-demo tbody tr.flagged td{color:inherit!important}
.km-demo tbody tr.flagged td.name{color:var(--text)!important}
.km-demo tbody tr.flagged td:first-child{color:var(--text-faint)!important}
.ci-nl{font-family:var(--font-mono);font-size:12px;color:#6a6862;letter-spacing:.02em}.is-run .ci-nl{display:none}
.ci-go{width:36px!important;height:36px!important;background:#222;border-color:#333!important}

/* Antworttext wie in der App: fast weiß, Fettes weiß/halbfett, weiße Aufzählungspunkte */
.km-demo .legal-list li,.km-demo .offer,.km-demo .after-note,.km-demo .resp-row,.km-demo .final-resp,.km-demo .tbl-note,.km-demo .result-note{color:#ECEAE6!important}
.km-demo .legal-list li,.km-demo .offer,.km-demo .resp-row{font-size:15px!important;line-height:1.7!important}
.km-demo .legal-list{gap:12px!important;padding-left:22px!important}
.km-demo .legal-list li b,.km-demo .offer b,.km-demo .after-note b,.km-demo .resp-row b,.ct-ans b{color:#fff!important;font-weight:600!important}
.km-demo .legal-list li::marker,.ct-ans li::marker{color:#ECEAE6!important}
.km-demo .legal-h{font-size:16px!important;font-weight:600!important;color:#fff!important}
.ct-ans,.ct-ans li,.ct-ans p{color:#ECEAE6!important}
@media(max-width:760px){.km-demo .legal-list li,.km-demo .offer,.km-demo .resp-row{font-size:13.5px!important}}
.km-demo thead th{white-space:nowrap!important}
@media(max-width:760px){.km-demo .rail{display:none!important}}

/* Anhang als Kachel über der Nachricht (wie App) */
.ct-uatts{display:flex;justify-content:flex-end;gap:10px;margin:0 0 10px}
.ct-uatt{display:grid;place-items:center;width:58px;height:58px;border-radius:12px;background:#222;border:1px solid #333;text-decoration:none}
.ct-uimg{display:block;border-radius:10px;overflow:hidden;border:1px solid #333;background:#fff}
.ct-uimg img{display:block;height:58px;width:auto;max-width:120px;object-fit:cover}
/* BASH: Befehl und Ausgabe getrennt */
.ct-outw{display:flex;flex-direction:column;gap:10px}
.ct-cmd .ct-code{color:#d7c48f}
.ct-out{overflow-x:auto!important;white-space:pre!important;word-break:normal!important}
/* Hinweis-Box wie App */
.ct-warn{margin-right:6px;color:#e2b93b}
.ct-sev.r::before{background:#e5484d!important}.ct-sev.o::before{background:#f08c3a!important}.ct-sev.y::before{background:#f2c94c!important}.ct-sev.g::before{background:#9a968c!important}
.ct-sugg{position:relative;width:min(640px,100%);margin-top:22px;padding:6px;border:1px solid #262626;border-radius:16px;background:#151515}
.ct-sg-row{display:flex;align-items:center;gap:14px;padding:10px 12px;border-radius:12px;background:#1d1c19;border-left:2px solid #6b6350}
.ct-sg-i{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;border:1px solid #3a3a3a;background:#222;flex:none}
.ct-sg-i svg{width:15px;height:15px;stroke:#B4A27A}
.ct-sg-t{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13.5px;color:#cfccc6}
.ct-sg-k{font-family:var(--font-mono);font-size:11px;letter-spacing:.08em;color:#B4A27A}
.ct-ts{display:flex;justify-content:space-between;align-items:center;margin-top:4px;font-family:var(--font-mono);font-size:11.5px;color:#6a6862}
.ct-ts-a{display:flex;gap:16px}.ct-ts-a svg{width:15px;height:15px;stroke:#8f8c86}
@media(max-width:760px){.ct-sugg{display:none}}
/* Startbildschirm kompakter, damit die Vorschlagszeile sichtbar bleibt */
.ct-land{padding-top:22px!important}
.ct-logo{width:min(170px,40%)!important;margin-top:0!important}
.ct-land-l{margin:10px 0 14px!important}
.ct-land-box{padding:14px 18px 12px!important;gap:10px!important}
.ct-q{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ct-tile{width:48px!important;height:48px!important}
.ct-tile-d{width:30px!important;height:34px!important}
.ct-disc{margin-top:10px!important}
.ct-sugg{margin-top:12px!important}
/* Antwort-Typografie wie App */
.ct-h1{font-size:22px!important;font-weight:600!important;margin-top:14px!important}
.ct-h2{font-size:20px!important;font-weight:600!important;margin-top:14px!important;color:#fff!important}
.ct-ans .ct-a:nth-child(n+3):has(> .ct-h2:first-child){border-top:1px solid #262626;padding-top:20px;margin-top:6px}
.ct-ans i{color:#a9a6a0!important}
.ct-tbm{display:flex!important;align-items:center;gap:22px;text-transform:uppercase;letter-spacing:.08em;font-size:11px!important;color:#8f8c86!important}
.ct-tbm>span:first-child{color:#6a6862;text-transform:none}
.ct-tba{display:inline-flex;align-items:center;gap:6px}.ct-tba svg{width:13px;height:13px;stroke:#8f8c86}
.ct-tag{color:#c9b98d!important;border-color:#4d4738!important;background:#1f1d18!important}
.ct-tbl th{font-family:var(--font-mono)!important;font-size:11px!important;letter-spacing:.1em!important;color:#9b9892!important;padding:12px 14px!important}
.ct-tbl td{font-size:14px!important;padding:12px 14px!important;color:#ECEAE6!important}
.ct-tbl td:first-child{font-weight:600;color:#fff!important}
.ct-tbl tr:last-child td{font-weight:600;color:#fff!important}
@media(max-width:760px){.ct-h2{font-size:16px!important}.ct-tbl td{font-size:12px!important}.ct-tbm{gap:12px}}
.ct-fn i,.ct-fn{color:#ECEAE6!important}
/* Arbeitsblöcke: offen während des Laufs, danach eingeklappt (wie App) */
.ct-blk-b{position:relative;margin:10px 0 0 10px;padding:2px 0 4px;border-left:1px solid #2e2e2e;display:flex;flex-direction:column;gap:10px}
.ct-blk.done .ct-blk-b{display:none}
.ct-blk-b .ct-tool,.ct-blk-b .ct-think{border-left:0!important;margin-left:0!important}
.ct-blk-b>.ct-bi{position:relative}
.ct-blk-b>.ct-bi:first-child::before,.ct-blk-b>.ct-bi:has(.ct-think)::before{content:"";position:absolute;left:-4px;top:11px;width:7px;height:7px;border-radius:50%;background:#8a8370;box-shadow:0 0 0 3px #131313}
.ct-blk-b>.ct-bi:has(.ct-think):not(:first-child){border-top:1px solid #222;padding-top:12px}
.ct-blk-b>.ct-bi:has(.ct-think):not(:first-child)::before{top:23px}
.ct-b:has(.ct-grp)+.ct-b .ct-tool::before,.ct-b:has(.ct-grp)+.ct-b .ct-think::before{display:none}
.ct-cmd{color:#ECEAE6!important}.ct-kw,.ct-str{color:#d7c48f}
.is-run .chat-input{border-color:rgba(180,162,122,.38)!important}
.ct-ans .ct-a:has(> .ct-h1:first-child){border-top:1px solid #262626;padding-top:22px;margin-top:6px}
.ct-h1{font-size:26px!important;line-height:1.25!important}
@media(max-width:760px){.ct-h1{font-size:19px!important}}
.ct-call{color:#cfccc6!important;padding:18px 20px!important;gap:14px!important}.ct-call p{color:#cfccc6!important}.ct-call i{color:#cfccc6!important}
.ct-sev::before{display:none!important}.ct-sev{font-size:18px!important;font-weight:600!important;margin-top:14px!important}
.ct-ans .ct-a:has(> .ct-nosep:first-child){border-top:0!important;padding-top:0!important}
.ct-sepb{border-top:1px solid #262626;padding-top:20px;margin-top:6px!important}
.ct-note{color:#cfccc6!important;font-style:italic;font-size:15px!important}
.ct-sub{font-weight:600!important;margin-top:8px!important}

.km-demo .ct-sugg{display:none!important}

.ct-tbl .ct-scroll{padding:0!important;margin:0!important;height:auto!important;max-height:none!important;overflow-x:auto;overflow-y:visible}
.ct-tbl table{width:100%;min-width:0}

/* Downloads unter dem Lauf sichtbar machen */
.km-demo.ct .footer-note{padding:14px 20px!important;gap:12px 18px}
.km-demo.ct .fn-right{gap:10px!important}
.km-demo.ct .ct-dl{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border:1px solid rgba(201,185,141,.55);border-radius:10px;background:rgba(141,131,103,.12);font-family:var(--font-ui);font-size:14px;letter-spacing:0;color:#E6D9B4!important;white-space:nowrap;transition:background .2s,border-color .2s,color .2s}
.km-demo.ct .ct-dl:hover{background:rgba(141,131,103,.26);border-color:#C9B98D;color:#fff!important}
.km-demo.ct .ct-srcf{font-size:13px;color:#a9a6a0!important}
@media(max-width:760px){.km-demo.ct .fn-right{justify-content:flex-start}.km-demo.ct .ct-dl{height:44px}}

.ct-blk-b.clps{overflow:hidden;transition:max-height .6s cubic-bezier(.4,0,.2,1),opacity .35s ease,margin .6s ease;margin-top:0}
