/* Momo – Ergänzungen zum bestehenden Design */
.momo-hero .momo-wordmark{
  margin:2px 0 0;
  font-size:30px;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:none;
  color:#f4f4f4;
}
.momo-hero .momo-tagline{
  margin:10px auto 0;
  max-width:520px;
  color:#8a8a8a;
  font-size:12px;
  line-height:1.7;
  letter-spacing:.12em;
}
/* Die zweite Zeile unter der Losung. Etwas kleiner und blasser als die Losung,
   damit sie nicht mit ihr um dieselbe Stimme streitet. */
.momo-hero .momo-vier{
  margin:6px auto 0;
  color:#6a6a6a;
  font-size:10px;
  line-height:1.6;
  letter-spacing:.2em;
  text-transform:uppercase;
}
@media (max-width:720px){
  .momo-hero .momo-wordmark{font-size:26px}
  .momo-hero .momo-tagline{font-size:11px;letter-spacing:.08em;padding:0 16px}
  .momo-hero .momo-vier{font-size:9px;letter-spacing:.14em;padding:0 16px}
}

.message.ai .avatar,.momo-thinking-message .avatar{font-size:7px;letter-spacing:.02em}

.momo-stream{white-space:pre-wrap;opacity:.92}
.momo-stream[hidden]{display:none}
.momo-typing-label{color:#8a8a8a}

.momo-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 2px}
.momo-action{
  min-height:34px;padding:0 13px;border-radius:10px;
  border:1px solid rgba(255,255,255,.14);background:#0b0b0b;color:#dcdcdc;
  font-size:12px;cursor:pointer;
}
.momo-action:hover{border-color:rgba(255,255,255,.3);color:#fff}
.momo-action.primary{background:#fff;color:#000;border-color:#fff}
.momo-action:disabled{opacity:.5;cursor:default}
.momo-action-done{display:inline-flex;align-items:center;min-height:34px;padding:0 4px;color:#7fd29b;font-size:12px}

.coding-momo-reply{
  margin:8px 0 0;padding:10px 12px;border:1px solid rgba(255,255,255,.08);border-radius:10px;
  background:#060606;color:#cfcfcf;font-size:12px;max-height:180px;overflow:auto;
}
.coding-momo-reply[hidden]{display:none}

.settings-card .mono,.momo-chain-card .mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}
.momo-model-card .settings-field strong{text-align:right}
.momo-reminders-card .settings-field{gap:8px;align-items:center}
.momo-reminders-card .settings-field strong{flex:1;text-align:left}

.momo-network-msg .rich-text p{margin:.3em 0}
.momo-network-msg .rich-text ul{margin:.3em 0;padding-left:1.2em}
.momo-network-msg .momo-actions{margin-top:8px}

html[data-momo="loading"] #connectionStatus .connection-dot{animation:momoPulse 1.2s ease-in-out infinite}
@keyframes momoPulse{0%,100%{opacity:.35}50%{opacity:1}}
@media (prefers-reduced-motion:reduce){html[data-momo="loading"] #connectionStatus .connection-dot{animation:none}}

/* Momo Work */
.momo-goal-form{display:grid;gap:8px;margin:0 0 16px;padding:12px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:#070707}
.momo-goal-form label{display:grid;gap:3px}
.momo-goal-form label span,.momo-goal-form.locked span{color:#8a8a8a;font-size:11px}
.momo-goal-form textarea{width:100%;min-height:70px;resize:vertical;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:#000;color:#eee;padding:9px;font:inherit;font-size:13px}
.momo-goal-form.locked{grid-template-columns:1fr auto;align-items:center}
.momo-plan{margin:10px 0;padding:10px 12px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:#050505}
.momo-plan-head{display:flex;justify-content:space-between;margin-bottom:6px;font-size:12px;color:#9a9a9a}
.momo-plan ol{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.momo-plan-step{display:grid;grid-template-columns:20px 1fr;gap:6px;font-size:12.5px;color:#cfcfcf}
.momo-plan-step small{display:block;color:#8a8a8a;margin-top:1px}
.momo-plan-step.erledigt .momo-plan-icon{color:#7fd29b}
.momo-plan-step.fehler .momo-plan-icon{color:#ff8a8a}
.momo-plan-step.wartet .momo-plan-icon{color:#f5c518}
.momo-plan-step.läuft strong{color:#fff}
.momo-plan-step.läuft .momo-plan-icon{animation:momoPulse 1s ease-in-out infinite}
.momo-plan-empty{margin:8px 0;color:#8a8a8a;font-size:12px}
.momo-panel-approval{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.momo-panel-result{margin-top:8px}
.momo-panel-result .rich-text{max-height:320px;overflow:auto;font-size:12px}


/* ---------------------------------------------------------------- Auswahl in den Einstellungen */
.settings-choices{display:grid;gap:8px;margin-top:6px}
.settings-choice{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--line,rgba(255,255,255,.1));border-radius:12px;cursor:pointer}
.settings-choice.is-active{border-color:var(--text,#f4f4f4)}
.settings-choice input{margin-top:3px}
.settings-choice span{display:grid;gap:2px}
.settings-choice small{color:var(--muted,#8a8a8a);font-size:11.5px}
.settings-mini-btn{border:1px solid var(--line,rgba(255,255,255,.14));background:transparent;color:inherit;border-radius:8px;padding:3px 9px;font-size:11px;cursor:pointer}
.momo-reflect-list{display:grid;gap:6px;margin:8px 0}
.momo-reflect-list .settings-field span{font-size:12px;line-height:1.45}
.momo-api-card pre,.momo-api-docs pre{white-space:pre-wrap;word-break:break-word;background:var(--panel-2,#0a0a0a);border:1px solid var(--line,rgba(255,255,255,.09));border-radius:10px;padding:10px;font-size:11.5px;overflow:auto}
.momo-api-docs{margin-top:10px;display:grid;gap:6px}
.momo-api-grid{margin-bottom:16px}
.momo-voice-card input[type=range]{flex:1;min-width:120px;accent-color:currentColor}

/* ---------------------------------------------------------------- Momo-Seite */
.momo-page{max-width:920px;margin:0 auto;padding:26px 20px 90px;display:grid;gap:18px}
.momo-page-hero{text-align:center;display:grid;gap:10px;justify-items:center;padding:18px 0 6px}
.momo-page-logo{width:74px;height:74px;opacity:.9}
.momo-page h1{margin:0;font-size:34px;letter-spacing:.14em;font-weight:600}
.momo-page-tagline{margin:0;color:var(--muted,#8a8a8a);font-size:12px;letter-spacing:.12em}
.momo-page-lead{margin:6px auto 0;max-width:620px;color:var(--text,#e8e8e8);font-size:14px;line-height:1.65}
.momo-page-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:6px}
.momo-card{border:1px solid var(--line,rgba(255,255,255,.09));border-radius:16px;background:var(--panel,#050505);padding:18px 20px;display:grid;gap:10px}
.momo-card-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.momo-card-head h2{margin:0;font-size:17px;font-weight:600}
.momo-card-head span{color:var(--muted,#8a8a8a);font-size:11.5px;letter-spacing:.08em;text-transform:uppercase}
.momo-card p{margin:0;color:var(--text,#dcdcdc);font-size:13.5px;line-height:1.65}
.momo-page-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin-top:4px}
.momo-page-grid article{border:1px solid var(--line,rgba(255,255,255,.08));border-radius:12px;padding:12px 13px;display:grid;gap:4px;background:var(--panel-2,#070707)}
.momo-page-grid strong{font-size:13px}
.momo-page-grid p{color:var(--muted,#9a9a9a);font-size:12.5px;line-height:1.55}
.momo-page-list{margin:0;padding-left:18px;color:var(--text,#cfcfcf);font-size:13px;line-height:1.7}
.momo-page-note{color:var(--muted,#8a8a8a);font-size:12px}
.momo-sound-canvas{width:100%;height:150px;border-radius:12px;background:var(--panel-2,#060606);border:1px solid var(--line,rgba(255,255,255,.07))}
.momo-sound-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:4px}
.momo-sound-pitch{display:flex;align-items:center;gap:6px;color:var(--muted,#8a8a8a);font-size:12px}
.momo-sound-pitch select{background:transparent;color:inherit;border:1px solid var(--line,rgba(255,255,255,.14));border-radius:9px;padding:5px 8px;font:inherit;font-size:12px}

@media (max-width:720px){
  .momo-page h1{font-size:28px}
}

/* Sprachkarte: die beiden Erklärzeilen brauchen mehr Platz als ein kurzer Wert,
   deshalb stehen Beschriftung und Text hier untereinander statt nebeneinander. */
.momo-lang-card .settings-field:has(strong[data-ton]){align-items:flex-start;flex-direction:column;gap:5px}
.momo-lang-card .settings-field strong[data-ton]{font-weight:400;line-height:1.55;text-align:left}
.momo-lang-card .settings-field strong[data-ton="aus"]{color:var(--danger,#c62828)}
.momo-lang-card select{max-width:220px}

/* ------------------------------------------------- Momos Netz in drei Dimensionen
   Knoten sind Kettenglieder, Kanten sind Schwingungen. Läuft endlos, auch ohne Klang. */
.momo-netz3d-wrap{
  position:relative;
  margin-top:14px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:16px;
  background:rgba(255,255,255,.015);
  overflow:hidden;
}
.momo-netz3d{
  display:block;
  width:100%;
  height:340px;
}
.momo-netz3d-note{
  position:absolute;
  left:0;right:0;bottom:0;
  padding:9px 14px;
  font-size:11.5px;
  line-height:1.5;
  color:var(--muted,#8e8e99);
  background:linear-gradient(to top,rgba(0,0,0,.55),rgba(0,0,0,0));
  pointer-events:none;
}
:root[data-theme="light"] .momo-netz3d-wrap{border-color:rgba(0,0,0,.08);background:rgba(0,0,0,.012)}
:root[data-theme="light"] .momo-netz3d-note{background:linear-gradient(to top,rgba(255,255,255,.72),rgba(255,255,255,0))}
@media (max-width:640px){ .momo-netz3d{height:260px} }

/* ==================================================================
   Warteschlange — Kimi-Look: Karte ueber dem Composer, nummerierte
   Eintraege, Ziehen zum Sortieren, Inline-Bearbeiten, Loeschen.
   Neutrales Glas, das in allen vier Themen (hell/dunkel/pop/metall)
   funktioniert; Farben kommen aus den Theme-Dateien. */

.momo-queue{
  margin:0 0 10px;
  border-radius:18px;
  border:1px solid rgba(127,127,127,.22);
  background:rgba(127,127,127,.10);
  backdrop-filter:blur(18px) saturate(1.15);
  -webkit-backdrop-filter:blur(18px) saturate(1.15);
  box-shadow:0 14px 40px rgba(0,0,0,.16);
  overflow:hidden;
}
.momo-queue-kopf{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:12px 14px 8px;
}
.momo-queue-titel{
  display:flex;align-items:center;gap:8px;
  font-size:14px;font-weight:600;color:inherit;min-width:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.momo-queue-listenicon{opacity:.7;font-size:16px}
.momo-queue-zahl{
  font-weight:400;opacity:.62;font-size:12.5px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.momo-queue-kopf-actions{display:flex;align-items:center;gap:2px;flex:none}
.momo-queue-kopf-btn{
  border:none;background:transparent;color:inherit;cursor:pointer;
  width:30px;height:30px;border-radius:8px;font-size:15px;line-height:1;
  opacity:.65;display:grid;place-items:center;
}
.momo-queue-kopf-btn:hover{opacity:1;background:rgba(127,127,127,.16)}

.momo-queue-liste{padding:2px 8px 10px;display:flex;flex-direction:column;gap:2px}
.momo-queue-item{
  display:flex;align-items:center;gap:10px;
  padding:7px 8px;border-radius:12px;cursor:default;
  border:1px solid transparent;
}
.momo-queue-item:hover{background:rgba(127,127,127,.10)}
.momo-queue-item.ist-am-ziehen{opacity:.55}
.momo-queue-item.ist-ziel{border-color:rgba(127,127,127,.35)}
.momo-queue-griff{
  flex:none;color:inherit;opacity:.35;cursor:grab;font-size:13px;
  width:16px;text-align:center;letter-spacing:-2px;
}
.momo-queue-griff:active{cursor:grabbing}
.momo-queue-nr{
  flex:none;width:26px;height:26px;border-radius:8px;
  background:rgba(127,127,127,.18);
  display:grid;place-items:center;
  font-size:12.5px;font-weight:600;opacity:.85;
}
.momo-queue-text{
  flex:1;min-width:0;font-size:13.5px;line-height:1.4;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.momo-queue-edit{
  flex:1;min-width:0;font:inherit;font-size:13.5px;color:inherit;
  background:rgba(127,127,127,.12);
  border:1px solid rgba(127,127,127,.30);border-radius:8px;
  padding:4px 8px;outline:none;
}
.momo-queue-actions{display:flex;align-items:center;gap:2px;flex:none;opacity:0;transition:opacity .15s ease}
.momo-queue-item:hover .momo-queue-actions,
.momo-queue-item:focus-within .momo-queue-actions{opacity:1}
.momo-queue-actions button{
  border:none;background:transparent;color:inherit;cursor:pointer;
  width:28px;height:28px;border-radius:8px;font-size:13.5px;line-height:1;
  opacity:.7;display:grid;place-items:center;
}
.momo-queue-actions button:hover{opacity:1;background:rgba(127,127,127,.16)}
@media (hover:none){
  .momo-queue-actions{opacity:.75}
}
