@font-face {
  font-family: Outfit;
  src: url("../fonts/outfit-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("../fonts/outfit-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("../fonts/outfit-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("../fonts/fraunces-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("../fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("../fonts/fraunces-500i.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #efe8dc;
  --surface-solid: #fbf7f1;
  --sunken: #f1e9dc;
  --ink: #1d1a16;
  --ink-soft: #5c564c;
  --line: rgba(40, 32, 20, 0.10);
  --line-strong: rgba(40, 32, 20, 0.18);
  --gold: #c9963a;
  --gold-bright: #e4bc6e;
  --gold-ink: #6d4d16;
  --heading-a: #8a5e1c;
  --heading-b: #1d1a16;
  --gold-soft: rgba(168, 116, 40, 0.14);
  --gold-line: rgba(146, 98, 28, 0.42);
  --ok: #1f6b3a;
  --err: #8d4e48;
  --err-soft: rgba(141, 78, 72, 0.10);
  --muted-dot: #b7b0a4;
  --shadow: 0 16px 40px rgba(70, 48, 16, 0.07);
  --glow: rgba(201, 150, 58, 0.20);
  --sans: Outfit, "Segoe UI", system-ui, sans-serif;
  --serif: Fraunces, Georgia, "Times New Roman", serif;
  --greet-h: 76px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0e0d0b;
  --surface-solid: #181612;
  --sunken: #221f1b;
  --ink: #f8f4ec;
  --ink-soft: #c8beae;
  --line: rgba(246, 241, 232, 0.10);
  --line-strong: rgba(246, 241, 232, 0.18);
  --gold: #e0b15c;
  --gold-bright: #f2d7a0;
  --gold-ink: #f0cc86;
  --heading-a: #f6d48a;
  --heading-b: #f7f3ea;
  --gold-soft: rgba(224, 177, 92, 0.14);
  --gold-line: rgba(224, 177, 92, 0.46);
  --ok: #8fce9e;
  --err: #e0aaa4;
  --err-soft: rgba(208, 137, 130, 0.12);
  --muted-dot: #6e675c;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  --glow: rgba(224, 177, 92, 0.2);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { height: 100%; }
body {
  min-height: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: transparent;
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
p, h2, h3, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; }
::selection { background: var(--gold-soft); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--gold);
  color: #1c1408;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
}
.skip:focus { top: 8px; }

[hidden] { display: none !important; }

.greet {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 72px;
  padding: 8px 14px;
  padding-top: calc(8px + env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
  background: var(--surface-solid);
  z-index: 25;
}
.greet-text { min-width: 0; flex: 1; }
.greet-hello {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--gold-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.greet-sub { color: var(--ink-soft); font-size: 0.92rem; margin-top: 2px; }
html.greet-collapsed .greet { min-height: 52px; }
html.greet-collapsed .greet-sub,
html.greet-collapsed .greet-weather { display: none; }
html.greet-collapsed .greet-hello::after {
  content: " · " attr(data-time);
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0;
  color: var(--ink-soft);
}
.greet-toggle svg { transition: transform 0.2s ease; }
html.greet-collapsed .greet-toggle svg { transform: rotate(180deg); }

.greet-weather { margin-left: auto; }
.weather {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-height: 44px;
  text-align: right;
}
.weather.is-empty {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.weather-kicker, .weather-now { color: var(--ink-soft); font-size: 0.85rem; }
.weather-place { font-weight: 600; }
.example-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--gold-ink);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  flex: none;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:active { background: var(--gold-soft); }
.only-compact { display: none; }

.shell {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr) 280px;
  gap: 10px;
  padding: 10px;
}
.nav, .status, main {
  position: relative;
  z-index: 1;
  min-height: 0;
  min-width: 0;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
#net {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
main { overflow: hidden; display: flex; flex-direction: column; }
.nav, .status, .page, .messages { overscroll-behavior: contain; }

.nav {
  display: flex;
  flex-direction: column;
  padding: 14px 10px 12px;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 4px 8px 12px;
  border: 0;
  background: transparent;
  text-align: left;
}
.brand-orb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: none;
  background: radial-gradient(circle at 35% 30%, #fff4d4, #e0b15c 40%, #8a5a1c 80%);
  box-shadow: 0 0 0 1px rgba(166, 116, 44, 0.35), 0 0 16px rgba(224, 177, 92, 0.35);
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.nav-list { display: flex; flex-direction: column; gap: 4px; }
.nav-btn {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  font-weight: 500;
}
.nav-btn svg { width: 22px; height: 22px; flex: none; }
.nav-btn[aria-current="page"] {
  background: var(--gold-soft);
  box-shadow: inset 3px 0 0 var(--gold);
}
.nav-badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 99px;
  display: inline-grid;
  place-items: center;
  background: var(--gold);
  color: #1c1408;
  font-size: 0.75rem;
  font-weight: 600;
}
.nav-foot {
  margin-top: auto;
  padding: 14px 8px 4px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.status { overflow: auto; padding: 16px 14px 18px; }
.side-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.side-block { margin-top: 18px; }
.side-block:first-child { margin-top: 0; }
.side-block h2 {
  margin: 2px 0 6px;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  background: none;
  color: var(--ink);
  -webkit-background-clip: border-box;
  background-clip: border-box;
}
.side-link {
  width: 100%;
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 8px;
  align-items: start;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  min-height: 44px;
  font: inherit;
}
.side-link small, .muted { color: var(--ink-soft); }
.side-total {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 4px 0 8px;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
}
.side-total .dot, .group h3 .dot, .approval .dot, .task .dot { margin-top: 4px; }
.side-total .dot { margin-top: 0; }
.side-total strong {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
}
.legend div, .inline-dot { display: flex; align-items: center; gap: 8px; }

.dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--muted-dot);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
  flex: none;
}
.inline-dot .dot, .legend .dot, .agent-head .dot, .service .dot { margin-top: 0; }
.dot-ok { background: var(--ok); }
.dot-wait { background: var(--gold); }
.dot-err { background: var(--err); }
.dot-off { background: var(--muted-dot); }

.page {
  height: 100%;
  overflow: auto;
  padding: 18px 18px 28px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.page-head .btn { flex: none; white-space: nowrap; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--gold-ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
}
.page h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--heading, var(--ink));
  background-image: linear-gradient(105deg, var(--heading-a, var(--gold-ink)) 0%, var(--heading-b, var(--ink)) 46%, var(--heading-b, var(--ink)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { color: var(--ink-soft); margin-top: 8px; max-width: 68ch; }
.page-body { max-width: 820px; }

.home {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.core-block {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px 6px;
  transition: padding 0.42s ease;
}
.core {
  position: relative;
  width: 196px;
  height: 196px;
  transition: width 0.45s ease, height 0.45s ease;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
}
.core .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.orb {
  position: absolute;
  inset: 26px;
}
.orb-halo {
  position: absolute;
  inset: -36px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 228, 160, 0.55), rgba(224, 177, 92, 0.22) 42%, transparent 70%);
  opacity: 0.95;
  pointer-events: none;
}
.core::after {
  content: "";
  position: absolute;
  left: 22%;
  top: 10%;
  width: 34%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 230, 0.7), transparent 72%);
  pointer-events: none;
  z-index: 4;
}
.globe {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.orb .globe {
  inset: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  box-shadow:
    0 0 18px rgba(255, 220, 150, 0.55),
    0 0 42px rgba(224, 177, 92, 0.4),
    0 0 72px rgba(224, 177, 92, 0.2);
}
.spin { display: none; position: absolute; inset: -2px; }
.spin i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold);
}
.ripple {
  display: none;
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  opacity: 0;
}
.orb-check {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  z-index: 2;
}
.orb-check svg { width: 32px; height: 32px; }
.core[data-state="ruhe"] .spin-a { display: block; animation: spin 18s linear infinite; }
.core[data-state="ruhe"] .globe { animation: breathe 4.8s ease-in-out infinite; }
.core[data-state="denken"] .spin { display: block; }
.core[data-state="denken"] .spin-a { animation: spin 2.2s linear infinite; }
.core[data-state="denken"] .spin-b { animation: spin 3.4s linear infinite reverse; }
.core[data-state="denken"] .spin-c { animation: spin 4.8s linear infinite; }
.core[data-state="denken"] .orb-halo { opacity: 0.9; animation: breathe 1.6s ease-in-out infinite; }
.core[data-state="kommunikation"] .ripple { display: block; animation: ripple 1.7s ease-out infinite; }
.core[data-state="kommunikation"] .ripple.delay { animation-delay: 0.55s; }
.core[data-state="kommunikation"] .orb-halo { opacity: 1; }
.core[data-state="erfolg"] .orb-check { display: grid; }
.core[data-state="erfolg"] .globe { animation: pop 0.55s ease; }
.core[data-state="erfolg"] .orb-halo { opacity: 1; }

.core-caption {
  margin-top: 2px;
  max-height: 48px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.4s ease;
}
.core-caption strong {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
}

.demo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 4px;
  border-radius: 999px;
  background: var(--sunken);
  max-width: 100%;
  max-height: 160px;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.4s ease, padding 0.4s ease;
}
.demo-kicker {
  padding: 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.demo button {
  min-height: 40px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ink-soft);
}
.demo button[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 62%, #b8893a);
  color: #1c1408;
  box-shadow: inset 0 1px 0 rgba(255, 248, 230, 0.45);
}

.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.messages {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 16px 14px;
}
.msg {
  max-width: min(560px, 88%);
  padding: 10px 12px 8px;
  border-radius: 16px;
}
.msg p { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg time { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 0.75rem; }
.msg-user {
  margin-left: auto;
  background: var(--gold-soft);
  border-bottom-right-radius: 6px;
}
.msg-ai {
  margin-right: auto;
  background: var(--sunken);
  border-bottom-left-radius: 6px;
}
.who { display: block; margin-bottom: 2px; color: var(--gold-ink); font-size: 0.75rem; font-weight: 600; }
.dots { display: inline-flex; gap: 5px; height: 18px; align-items: center; vertical-align: -2px; margin-left: 4px; }
.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: block;
  animation: blink 1.2s ease-in-out infinite;
}
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
.composer {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface-solid);
}
.composer textarea {
  flex: 1;
  resize: none;
  min-height: 48px;
  max-height: 120px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  padding: 12px 14px;
  line-height: 1.35;
}
.send {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 58%, #b8893a);
  color: #1c1408;
  box-shadow: inset 0 1px 0 rgba(255, 248, 230, 0.45), 0 8px 16px rgba(180, 120, 30, 0.22);
  display: grid;
  place-items: center;
  flex: none;
}
.send svg { width: 20px; height: 20px; }
.send:disabled { opacity: 0.4; }

.page-partners {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  padding-bottom: 16px;
}
.orbit-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 380px;
}
.flow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.flow-aura { stroke: var(--gold-bright); stroke-width: 6; stroke-linecap: round; fill: none; opacity: 0.22; }
.flow-line { stroke: var(--gold); stroke-width: 1.6; fill: none; opacity: 0.9; }
.flow-line.is-live { stroke: var(--gold-bright); stroke-width: 2; opacity: 1; }
.flow-dot { fill: var(--gold-bright); }
.flow-glow { fill: var(--gold); opacity: 0.35; }
.partner, .orbit-core {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 104px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}
.partner.label-above { flex-direction: column-reverse; }
.partner.label-left, .partner.label-right { flex-direction: row; width: auto; align-items: center; }
.partner.label-left { flex-direction: row-reverse; }
.page-head .chip { flex: none; white-space: nowrap; }
.plabel { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.orbit-core { width: 124px; z-index: 3; }
.partner { z-index: 2; }
.partner.is-placed, .orbit-core.is-placed { opacity: 1; }
.avatar {
  position: relative;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
}
.avatar-lg { width: 124px; height: 124px; }
.avatar .ring { position: absolute; inset: 0; }
.ring-track, .ring-value, .ring-glow { fill: none; }
.ring-track { stroke: var(--line-strong); stroke-width: 3; }
.ring-value { stroke: var(--gold); stroke-width: 2.5; }
.ring-glow { stroke: var(--gold-bright); stroke-width: 5; opacity: 0.14; }
.badge-face {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--tone, var(--sunken));
  color: var(--tone-ink, var(--ink));
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}
.avatar-lg .badge-face { display: none; }
.orbit-orb {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: none;
  box-shadow: 0 0 18px rgba(224, 177, 92, 0.28);
}
.orbit-orb .globe { inset: 0; width: 100%; height: 100%; }
.shimmer {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 58%, var(--gold-bright) 78%, transparent 88%);
  -webkit-mask: radial-gradient(circle, transparent 64%, #000 67%);
  mask: radial-gradient(circle, transparent 64%, #000 67%);
  animation: spin 4.6s linear infinite;
  z-index: 2;
  pointer-events: none;
}
.pname { font-weight: 600; font-size: 0.92rem; }
.ppct, .orbit-pct { color: var(--ink-soft); font-size: 0.82rem; }
.orbit-readout {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #2a1c08;
  pointer-events: none;
}
.orbit-name {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
}
.orbit-readout .orbit-pct {
  color: #3a2508;
  font-size: 0.75rem;
  font-weight: 600;
}
.tone-sand { --tone: #e7d3b0; --tone-ink: #3e2e16; }
.tone-clay { --tone: #e4c6b6; --tone-ink: #3f2b23; }
.tone-stone { --tone: #d7d2c8; --tone-ink: #2e2b26; }
.tone-mist { --tone: #d5ddd4; --tone-ink: #243028; }
html[data-theme="dark"] .tone-sand { --tone: #6a5434; --tone-ink: #f6edd9; }
html[data-theme="dark"] .tone-clay { --tone: #6a463c; --tone-ink: #f8ebe4; }
html[data-theme="dark"] .tone-stone { --tone: #4a463f; --tone-ink: #f3efe6; }
html[data-theme="dark"] .tone-mist { --tone: #3d4a40; --tone-ink: #e7f0e8; }

.flow-legend { color: var(--ink-soft); font-size: 0.88rem; max-width: 70ch; }
.agent-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--sunken);
  max-width: 640px;
}
.agent-card h3 { font-size: 1rem; }
.agent-card p { color: var(--ink-soft); font-size: 0.9rem; }
.agent-state { color: var(--ink-soft); font-weight: 600; }

.group { margin-top: 20px; }
.group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.group-wait h3 { color: var(--gold-ink); }
.stack { display: flex; flex-direction: column; gap: 8px; }
.task {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-solid);
}
.task.wait {
  background: var(--gold-soft);
  border-color: var(--gold-line);
}
.task h4 { font-size: 1rem; font-weight: 600; }
.task .meta { color: var(--ink-soft); font-size: 0.85rem; margin-top: 2px; }
.err-line { color: var(--err); font-size: 0.9rem; margin-top: 4px; }
.bar {
  height: 6px;
  margin-top: 8px;
  border-radius: 99px;
  background: var(--sunken);
  overflow: hidden;
}
.task.wait .bar { background: rgba(255, 255, 255, 0.35); }
.bar span { display: block; height: 100%; background: var(--gold); border-radius: inherit; }
.task-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

.btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--sunken);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: -0.015em;
  transition: transform 0.16s ease, filter 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, #b8893a);
  border-color: transparent;
  color: #1c1408;
  box-shadow: inset 0 1px 0 rgba(255, 248, 230, 0.5), 0 8px 18px rgba(180, 120, 30, 0.22);
}
.btn-quiet {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-small { min-height: 44px; padding: 0 14px; }
.btn:active { transform: scale(0.98); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.entry, .doc, .approval, .policy {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface-solid);
}
.entry + .entry, .doc + .doc, .approval + .approval, .policy + .policy { margin-top: 8px; }
.origin, .fine { color: var(--ink-soft); font-size: 0.85rem; margin-top: 4px; }
.entry-actions, .doc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.topic { margin-top: 18px; }
.topic h3 { margin-bottom: 8px; font-size: 1rem; }
.prompt {
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  border-radius: 16px;
  padding: 14px;
  margin: 12px 0;
}
.prompt h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--gold-ink);
}
.is-memory-off .entry { opacity: 0.55; }
.banner {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--sunken);
  color: var(--ink-soft);
}

.switch {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  flex: none;
}
.switch input {
  appearance: none;
  width: 48px;
  height: 28px;
  margin: 0;
  border-radius: 999px;
  background: var(--sunken);
  border: 1px solid var(--line-strong);
  position: relative;
  cursor: pointer;
}
.switch input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fffdf8;
  transition: transform 0.2s ease;
}
.switch input:checked { background: var(--gold); border-color: transparent; }
.switch input:checked::after { transform: translateX(20px); }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip, .seg button {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.chip[aria-pressed="true"] {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-ink);
}
.search, .field input, .field textarea, .mem-edit textarea {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  padding: 10px 12px;
}
.search { flex: 1 1 180px; border-radius: 999px; }
.doc {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  margin-top: 8px;
}
.doc-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--sunken);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.doc h4 { font-size: 1rem; overflow-wrap: anywhere; }
.hint { margin-top: 8px; }

.approval {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  align-items: start;
  background: var(--gold-soft);
  border-color: var(--gold-line);
}
.policy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.policy .txt { flex: 1 1 220px; }
.seg {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: var(--sunken);
}
.seg button { border: 0; color: var(--ink-soft); }
.seg button[aria-pressed="true"] {
  background: var(--surface-solid);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--gold-line);
}
.log {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.log h4 { font-size: 0.98rem; font-weight: 600; }
.star-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
}
.star-btn[aria-pressed="true"] { color: var(--gold-ink); }
.star-btn svg { width: 20px; height: 20px; }
.keep-tag { color: var(--gold-ink); font-size: 0.8rem; }

.set-sec { margin-top: 22px; max-width: 720px; }
.set-sec h3 {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.set-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 14px;
  background: var(--surface-solid);
}
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.set-row:last-child { border-bottom: 0; }
.set-row p, .set-copy { color: var(--ink-soft); font-size: 0.88rem; }
.link-row {
  width: calc(100% + 8px);
  margin: 6px -4px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-weight: 600;
  text-align: left;
}
.note {
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--sunken);
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 720px;
}
.service {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.service .grow { flex: 1; min-width: 0; }
.service h4 { font-size: 1rem; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-bottom: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold-ink);
  font-weight: 600;
}

.modal {
  width: min(460px, calc(100vw - 28px));
  max-height: min(86dvh, 720px);
  overflow: auto;
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  padding: 0;
  background: var(--surface-solid);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(18, 14, 10, 0.48); }
.modal-inner { padding: 18px 18px 16px; }
.modal h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
  line-height: 1.15;
  background: none;
  color: var(--ink);
  -webkit-background-clip: border-box;
  background-clip: border-box;
}
.modal.is-gold {
  background:
    linear-gradient(180deg, var(--gold-soft), transparent 90px),
    var(--surface-solid);
}
.modal.is-gold h2 { color: var(--gold-ink); }
.modal-body { margin-top: 8px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.field span { color: var(--ink-soft); font-size: 0.85rem; }
.field-hint { min-height: 1.2em; color: var(--err); font-size: 0.85rem; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; margin-top: 12px; }
.kv dt { color: var(--ink-soft); }
.usage-list { margin-top: 10px; }
.usage-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  max-width: min(520px, calc(100% - 24px));
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  z-index: 70;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.mem-edit { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.mem-edit textarea { min-height: 72px; resize: vertical; }

.backdrop {
  position: fixed;
  inset: var(--greet-h) 0 0 0;
  background: rgba(20, 16, 10, 0.42);
  z-index: 30;
}

.empty { color: var(--ink-soft); padding: 8px 0; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
@keyframes ripple {
  0% { transform: scale(0.62); opacity: 0.7; }
  100% { transform: scale(1.45); opacity: 0; }
}
@keyframes pop {
  0% { transform: scale(0.92); }
  45% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@keyframes blink {
  0%, 80%, 100% { opacity: 0.25; }
  40% { opacity: 1; }
}

html.animations-off *,
html.animations-off *::before,
html.animations-off *::after {
  animation: none !important;
  transition: none !important;
}
html.animations-off .core[data-state="denken"] .spin { display: block; }
html.animations-off .core[data-state="denken"] .spin-a { transform: rotate(18deg); }
html.animations-off .core[data-state="denken"] .spin-b { transform: rotate(138deg); }
html.animations-off .core[data-state="denken"] .spin-c { transform: rotate(258deg); }
html.animations-off .core[data-state="ruhe"] .spin { display: none; }
html.animations-off .core[data-state="kommunikation"] .ripple {
  display: block;
  opacity: 0.45;
  transform: scale(1.05);
}
html.animations-off .core[data-state="kommunikation"] .ripple.delay { display: none; }
html.animations-off .shimmer { opacity: 0.45; }

@media (hover: hover) and (pointer: fine) {
  .nav-btn:hover, .icon-btn:hover, .side-link:hover, .star-btn:hover, .back:hover {
    background: var(--sunken);
  }
  .btn-gold:hover, .send:hover {
    filter: brightness(1.06);
    box-shadow: inset 0 1px 0 rgba(255, 248, 230, 0.55), 0 10px 22px rgba(180, 120, 30, 0.3);
  }
  .btn-quiet:hover { background: var(--gold-soft); border-color: var(--gold-line); }
  .btn:hover:not(.btn-gold):not(.btn-quiet) { filter: brightness(1.04); }
  .link-row:hover { filter: brightness(1.04); }
}

@media (max-width: 1079px) {
  .only-compact { display: inline-grid; }
  .greet { flex-wrap: wrap; padding-left: 8px; padding-right: 8px; }
  .greet-weather { order: 5; flex: 1 0 100%; margin-left: 0; }
  .weather, .weather.is-empty { align-items: flex-start; text-align: left; padding: 0 6px 6px 4px; }
  .shell {
    display: block;
    padding: 0;
    gap: 0;
  }
  main {
    height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav, .status {
    position: fixed;
    top: var(--greet-h);
    bottom: 0;
    width: min(320px, 88vw);
    z-index: 40;
    border-radius: 0 18px 18px 0;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }
  .status {
    left: auto;
    right: 0;
    border-radius: 18px 0 0 18px;
    transform: translateX(105%);
  }
  .nav.is-open, .status.is-open { transform: none; }
  .composer, .page { background: transparent; }
  .home { background: transparent; }
}

@media (max-width: 700px) {
  .greet-hello { font-size: 1.28rem; }
  .core { width: 168px; height: 168px; }
  .orb { inset: 22px; }
  .demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 16px;
    width: calc(100% - 8px);
  }
  .demo-kicker { grid-column: 1 / -1; text-align: center; padding: 4px 0 0; }
  .demo button { min-height: 44px; }
  .page { padding: 14px 12px 20px; }
  .page h2 { font-size: 1.45rem; }
  .kv { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; }
  .orbit-stage { min-height: 430px; }
}

@media (max-height: 740px) and (min-width: 1080px) {
  .core { width: 156px; height: 156px; }
  .orb { inset: 22px; }
  .greet-hello { font-size: 1.3rem; }
  .core-block { padding-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="on"]) *,
  html:not([data-motion="on"]) *::before,
  html:not([data-motion="on"]) *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Dunkles Kommando: dasselbe Bild, etwas mehr Tiefe und Goldlicht. */
html[data-theme="dark"] .greet,
html[data-theme="dark"] .nav,
html[data-theme="dark"] .status {
  box-shadow:
    inset 0 1px 0 rgba(240, 204, 134, 0.08),
    var(--shadow);
}
@media (min-width: 1080px) {
  html[data-theme="dark"] main {
    box-shadow:
      inset 0 1px 0 rgba(240, 204, 134, 0.08),
      var(--shadow);
  }
}
html[data-theme="dark"] .globe,
html[data-theme="dark"] .orbit-orb {
  box-shadow:
    inset 0 -10px 16px rgba(70, 36, 8, 0.32),
    0 0 20px rgba(224, 177, 92, 0.5),
    0 0 42px rgba(224, 177, 92, 0.18);
}
html[data-theme="dark"] .nav,
html[data-theme="dark"] .status,
html[data-theme="dark"] .greet {
  background: rgba(14, 13, 12, 0.86);
}
html[data-theme="dark"] .msg-ai { background: rgba(28, 25, 22, 0.96); }
html[data-theme="dark"] .msg-user { background: rgba(62, 46, 20, 0.94); }
html[data-theme="dark"] .composer { background: rgba(12, 11, 10, 0.96); }
html[data-theme="light"] .msg-ai { background: rgba(255, 252, 247, 0.94); }
html[data-theme="light"] .composer { background: rgba(251, 247, 241, 0.96); }
@media (min-width: 1080px) {
  html[data-theme="dark"] main { background: rgba(14, 13, 12, 0.94); }
  html[data-theme="light"] main,
  html[data-theme="light"] .nav,
  html[data-theme="light"] .status,
  html[data-theme="light"] .greet {
    background: rgba(251, 247, 241, 0.94);
  }
}
html[data-theme="dark"] .orb-halo { opacity: 0.62; }
.home.is-docked .core-block { padding-top: 2px; padding-bottom: 0; }
.home.is-docked .core { width: 58px; height: 58px; }
.home.is-docked .orb { inset: 7px; }
.home.is-docked .orb-halo { inset: -12px; }
.home.is-docked .core::after { opacity: 0; }
.home.is-docked .core-caption,
.home.is-docked .demo {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}
.home.is-docked .messages { padding-top: 34px; }
html[data-theme="dark"] .ring-glow { opacity: 0.28; }
html[data-theme="dark"] .flow-aura { opacity: 0.34; }
html[data-theme="dark"] .msg-user,
html[data-theme="dark"] .task.wait,
html[data-theme="dark"] .approval,
html[data-theme="dark"] .prompt,
html[data-theme="dark"] .link-row {
  box-shadow: inset 0 0 0 1px rgba(224, 177, 92, 0.16);
}
