/* App-Schrift: Inter Variable, LOKAL geladen (kein Google-Fonts-CDN, keine
   Laufzeit-Fremdanfrage). woff2-Variable-Fonts liegen unter assets/fonts/ und
   werden von unserem eigenen Origin ausgeliefert. font-display: swap -> kein
   unsichtbarer Text beim Laden; die System-Fallback-Kette (system-ui/-apple-
   system) haelt Android und iPhone bis zum Font-Swap nah beieinander. Zwei
   unicode-range-Subsets: „latin" deckt Basis-Latein inkl. ä ö ü ß ab, „latin-ext"
   ergaenzt erweiterte Zeichen — nur nachgeladen, wenn tatsaechlich gebraucht. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/inter-latin-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/inter-latin-ext-variable.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --bg: #070b14;
  --card: rgba(14, 20, 34, .88);
  --paper: #0d1423;
  --line: rgba(226, 232, 240, .12);
  --hairline: rgba(226, 232, 240, .08);
  --text: #f5f1e8;
  --muted: rgba(245, 241, 232, .68);
  --muted-2: rgba(245, 241, 232, .54); /* WCAG-AA-Fix: .46 war 4,25:1 -> jetzt 5,5:1 */
  --danger: #ff5967;
  --watch: #d6a040;
  --chance: #39d18f;
  --accent: #6f8ff7;
  --accent-ink: #d7e0ff;
  --accent-soft: rgba(111, 143, 247, .14);
  --signature: #a54562;
  --gold: #d6a040;
  --ink-button: #f5f1e8;
  --soft-shadow: 0 28px 90px rgba(0, 0, 0, .34);
  --hard-shadow: 0 36px 120px rgba(0, 0, 0, .48);
  /* Einheitliche Bewegungssprache (Apple/Linear-artig): eine Easing-Kurve, drei
     Standarddauern. Neue Mikroanimationen greifen darauf zurueck statt eigene
     Werte zu erfinden. */
  --ease-out-soft: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Bewegung reduzieren, wenn Nutzer das system-/browserseitig wuenschen. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 6%, rgba(111, 143, 247, .16), transparent 30%),
    radial-gradient(circle at 12% 18%, rgba(214, 160, 64, .09), transparent 24%),
    linear-gradient(180deg, #090d18 0%, var(--bg) 58%, #05070d 100%);
  background-size: auto, auto, auto;
  letter-spacing: 0;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

h1,
h2,
h3,
p,
a,
button,
span,
small {
  overflow-wrap: anywhere;
}

.shell {
  width: 100%;
  min-height: 100dvh;
}

.app-frame {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  min-height: 100dvh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100dvh;
  padding: 56px 24px 30px;
  border-right: 1px solid rgba(245, 241, 232, .09);
  background:
    linear-gradient(180deg, rgba(9, 13, 24, .94) 0%, rgba(7, 11, 20, .92) 100%);
  box-shadow: inset -1px 0 0 rgba(245, 241, 232, .035);
}

.brand {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  margin-bottom: 64px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: .16em;
}

.brand-mark {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--text);
  font-size: 22px;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1;
}

.brand span {
  display: block;
  min-width: 0;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: rgba(16, 35, 84, .46);
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0;
  text-transform: none;
}

.nav-list {
  display: grid;
  gap: 10px;
}

.nav-list button,
.sidebar-foot button,
.menu-button,
.quiet-link,
.back-link,
.text-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(16, 35, 84, .54);
  text-align: left;
  font-size: 15px;
  font-weight: 500;
}

.nav-list button {
  position: relative;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.nav-list button:hover {
  color: var(--accent-ink);
  background: rgba(29, 63, 143, .055);
}

.nav-list button.active {
  color: var(--accent-ink);
  background: rgba(29, 63, 143, .075);
}

.nav-list button.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--signature));
  transform: translateY(-50%);
}

.sidebar-foot {
  display: grid;
  gap: 34px;
}

.sidebar-foot p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.sidebar-foot span {
  color: rgba(16, 35, 84, .52);
  font-weight: 400;
}

.content-shell {
  width: min(1080px, calc(100% - 64px));
  min-width: 0;
  margin: 0 auto;
  padding: 60px 0 96px;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 32px;
  margin-bottom: 36px;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-meta span {
  color: rgba(13, 17, 24, .56);
  font-size: 14px;
}

.update-heart {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-ink);
}

.update-heart svg {
  width: 22px;
  height: 22px;
  overflow: visible;
}

.update-heart path {
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.update-heart i {
  position: absolute;
  top: 2px;
  right: 1px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--signature);
  box-shadow: 0 0 0 2px var(--bg);
  opacity: 0;
  transform: scale(.78);
  transition: opacity .18s ease, transform .18s ease;
}

.update-heart.has-updates i {
  opacity: 1;
  transform: scale(1);
}

.updates-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: stretch;
  background:
    radial-gradient(circle at 78% 8%, rgba(111, 143, 247, .12), transparent 28%),
    linear-gradient(180deg, #090d18 0%, #070b14 100%);
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition: opacity 460ms ease;
}

.updates-layer.open {
  opacity: 1;
  pointer-events: auto;
}

.updates-panel {
  justify-self: end;
  width: min(460px, 100vw);
  height: 100dvh;
  margin: 0;
  padding: 72px clamp(24px, 6vw, 42px) 34px;
  overflow: auto;
  border-left: 1px solid var(--hairline);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(9, 13, 24, .98) 0%, rgba(7, 11, 20, 1) 100%);
  box-shadow: none;
  transform: translateX(100%);
  transition: transform 520ms cubic-bezier(.22, 1, .36, 1);
}

.updates-layer.open .updates-panel {
  transform: translateX(0);
}

.updates-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.updates-head span,
.notification-row span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.updates-head h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.05;
}

.updates-head button {
  width: auto;
  height: auto;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
}

.updates-list {
  display: grid;
  gap: 14px;
}

.notification-row {
  display: block;
  width: 100%;
  padding: 20px 20px 21px;
  border: 1px solid rgba(245, 241, 232, .1);
  border-radius: 22px;
  color: inherit;
  background:
    linear-gradient(145deg, rgba(245, 241, 232, .055), rgba(245, 241, 232, .028));
  text-align: left;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(245, 241, 232, .035);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.notification-row:hover {
  border-color: rgba(245, 241, 232, .18);
  background:
    linear-gradient(145deg, rgba(245, 241, 232, .075), rgba(245, 241, 232, .036));
  transform: translateY(-1px);
}

.notification-row.mention span { color: var(--danger); }
.notification-row.action span { color: var(--danger); }
.notification-row.risk span { color: var(--danger); }
.notification-row.chance span { color: var(--chance); }
.notification-row.watch span { color: var(--watch); }

.notification-row h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.18;
}

.notification-row p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.notification-row small {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
}

.notification-row .notification-time {
  margin-top: 5px;
  color: var(--muted);
  opacity: .78;
}

.updates-radar-link {
  width: 100%;
  margin-top: 26px;
  padding: 17px 18px;
  border: 1px solid rgba(245, 241, 232, .11);
  border-radius: 18px;
  color: var(--text);
  background: rgba(245, 241, 232, .045);
  text-align: left;
  font-size: 15px;
  font-weight: 700;
}

.menu-button {
  display: none;
}

.mobile-menu-settings,
.mobile-dock {
  display: none;
}

.page-intro {
  position: relative;
  margin-bottom: 48px;
}

.page-intro::before,
.article-head::before {
  content: "";
  display: block;
  width: 116px;
  height: 2px;
  margin-bottom: 30px;
  background: linear-gradient(90deg, var(--gold), var(--signature), var(--accent));
  box-shadow: 0 0 0 1px rgba(189, 139, 47, .04);
}

.page-intro.compact {
  margin-bottom: 42px;
}

.page-intro h1,
.article-head h1 {
  max-width: 860px;
  margin: 0;
  color: var(--text);
  font-size: clamp(64px, 6vw, 92px);
  font-weight: 820;
  line-height: .96;
  letter-spacing: -.02em;
}

.page-intro p,
.article-head p {
  max-width: 740px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
}

.pilot-status {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  padding: 9px 12px;
  border: 1px solid rgba(20, 33, 61, .10);
  border-radius: 999px;
  color: rgba(20, 33, 61, .72);
  background: rgba(255, 253, 248, .72);
  margin-top: 22px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.pilot-status.preview {
  border-color: rgba(139, 92, 246, .36);
  background: rgba(139, 92, 246, .10);
}

.pilot-status.preview span {
  color: rgba(139, 92, 246, .92);
}

.agenda-intro p strong {
  color: var(--command-text, var(--text));
  font-weight: 720;
}

.daily-answer,
.agenda-section {
  border: 1px solid var(--command-line, var(--line));
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(13, 20, 36, .86), rgba(7, 11, 22, .9));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .24);
}

.daily-answer {
  min-height: min(58vh, 620px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  margin: 24px 0 34px;
  padding: clamp(34px, 6vw, 72px);
}

.daily-answer > span,
.agenda-section-head span,
.agenda-priority > div > span,
.reaction-card > div > span,
.meeting-card > div > span {
  color: var(--signature, #8b5cf6);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.daily-answer h2 {
  max-width: 920px;
  margin: 0;
  color: var(--command-text, var(--text));
  font-size: clamp(38px, 6.4vw, 78px);
  line-height: .98;
  letter-spacing: -.03em;
}

.daily-answer p {
  max-width: 760px;
  margin: 0;
  color: var(--command-muted, var(--muted));
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.agenda-answer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 2px;
}

.agenda-answer-item {
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  background: rgba(255, 255, 255, .035);
}

.agenda-answer-item span {
  display: block;
  margin: 0 0 10px;
  color: var(--signature, #8b5cf6);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.agenda-answer-item p {
  max-width: none;
  color: var(--command-text, var(--text));
  font-size: 15px;
  line-height: 1.38;
}

.pilot-access-card {
  width: min(100%, 560px);
}

.pilot-access-copy {
  max-width: 380px;
  margin: -6px auto 0;
  color: var(--command-muted, var(--muted));
  font-size: 17px;
  line-height: 1.45;
}

.pilot-access-form {
  display: grid;
  gap: 12px;
  width: min(100%, 420px);
  margin: 12px auto 0;
}

.pilot-access-form input {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  padding: 0 18px;
  color: var(--command-text, var(--text));
  background: rgba(255, 255, 255, .06);
  font: inherit;
  font-size: 17px;
  outline: none;
}

.pilot-access-form input:focus {
  border-color: rgba(139, 92, 246, .56);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .16);
}

.pilot-access-form small {
  min-height: 20px;
  color: #ff7a8a;
  font-size: 14px;
}

.daily-answer-actions,
.meeting-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.agenda-section {
  display: grid;
  gap: 22px;
  margin: 0 0 28px;
  padding: clamp(24px, 4vw, 42px);
}

.agenda-section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.agenda-section-head span {
  flex: 0 0 auto;
  min-width: max-content;
  color: var(--command-muted, var(--muted));
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
}

.agenda-section-head h2 {
  margin: 0;
  color: var(--command-text, var(--text));
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -.02em;
}

.agenda-list {
  display: grid;
  gap: 14px;
}

.agenda-priority,
.meeting-card,
.reaction-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  background: rgba(255, 255, 255, .035);
}

.meeting-card {
  align-items: start;
}

.meeting-prep-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  border-color: rgba(210, 169, 94, .22);
  background:
    linear-gradient(135deg, rgba(210, 169, 94, .08), transparent 42%),
    rgba(255, 255, 255, .035);
}

.meeting-prep-main {
  display: grid;
  gap: 14px;
}

.meeting-line-box {
  display: grid;
  gap: 8px;
  max-width: 860px;
  padding: 16px 18px;
  border: 1px solid rgba(210, 169, 94, .22);
  border-radius: 18px;
  background: rgba(210, 169, 94, .07);
}

.meeting-line-box small,
.meeting-prep-grid small {
  color: rgba(210, 169, 94, .88);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.meeting-line-box strong {
  color: var(--command-text, var(--text));
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.32;
}

.meeting-prep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.meeting-prep-grid > div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .026);
}

.meeting-prep-grid ul {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--command-muted, var(--muted));
  font-size: 15px;
  line-height: 1.45;
}

.meeting-source-note {
  font-size: 13px !important;
  color: var(--command-faint, rgba(255, 255, 255, .46)) !important;
}

.learning-pulse {
  display: grid;
  gap: 8px;
  margin: -4px 0 24px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(139, 92, 246, .13), transparent 34%),
    rgba(255, 255, 255, .028);
}

.learning-pulse span {
  color: #d2a95e;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.learning-pulse p {
  max-width: 880px;
  margin: 0;
  color: var(--command-muted, var(--muted));
  font-size: 15px;
  line-height: 1.45;
}

.morning-moment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px 22px;
  align-items: start;
  margin: -2px 0 24px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(245, 241, 232, .11);
  border-radius: 28px;
  background:
    radial-gradient(circle at 0% 10%, rgba(249, 205, 127, .13), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018));
  box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
}

.moment-orb {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(249, 205, 127, .38);
  border-radius: 18px;
  color: #fff7e8;
  background: rgba(249, 205, 127, .07);
  box-shadow: 0 0 34px rgba(249, 205, 127, .18);
  font-size: 22px;
  font-weight: 780;
}

.moment-copy {
  min-width: 0;
}

.moment-copy span,
.moment-grid span {
  color: rgba(249, 205, 127, .82);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.moment-copy h2 {
  max-width: 880px;
  margin: 8px 0 10px;
  color: var(--command-text, var(--text));
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -.026em;
}

.moment-copy p {
  max-width: 780px;
  margin: 0;
  color: var(--command-muted, var(--muted));
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.45;
}

.moment-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.moment-grid > div {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 18px;
  background: rgba(255, 255, 255, .028);
}

.moment-grid p {
  margin: 7px 0 0;
  color: rgba(245, 241, 232, .68);
  font-size: 14px;
  line-height: 1.4;
}

.inline-learning {
  margin-top: 18px;
  justify-content: flex-start;
}

.inline-learning button {
  background: rgba(255, 255, 255, .035);
}

.no-decision-focus,
.decision-brief-grid {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.no-decision-focus {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.no-decision-focus span,
.decision-brief-grid > div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
}

.no-decision-focus span {
  padding: 12px 14px;
  color: var(--command-muted, var(--muted));
  font-size: 13px;
  font-weight: 650;
}

.decision-brief-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.decision-brief-grid > div {
  padding: 14px;
}

.decision-brief-grid span,
.meeting-decision-question {
  color: rgba(210, 169, 94, .88);
}

.decision-brief-grid span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.decision-brief-grid p {
  margin: 0;
  color: var(--command-muted, var(--muted));
  font-size: 14px;
  line-height: 1.4;
}

.meeting-decision-question {
  padding-left: 14px;
  border-left: 2px solid rgba(210, 169, 94, .55);
  font-weight: 650;
}

.mini-action-stack {
  display: grid;
  gap: 10px;
  min-width: min(230px, 100%);
}

.agenda-priority h3,
.meeting-card h3,
.reaction-card h3 {
  margin: 6px 0 12px;
  color: var(--command-text, var(--text));
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.12;
  letter-spacing: -.015em;
}

.agenda-priority p,
.meeting-card p,
.reaction-card p {
  max-width: 850px;
  margin: 8px 0 0;
  color: var(--command-muted, var(--muted));
  font-size: 16px;
  line-height: 1.5;
}

.agenda-priority p b,
.meeting-card p b,
.reaction-card p b {
  color: var(--command-text, var(--text));
  font-weight: 680;
}

.agenda-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
}

.weekly-outlook {
  padding-top: 18px;
}

.weekly-outlook-list {
  display: grid;
  gap: 10px;
}

.weekly-outlook-item {
  display: block;
  padding: 16px 0;
  border-top: 1px solid rgba(245, 241, 232, .08);
}
.outlook-source-link { color: var(--accent-ink); text-decoration: none; }
.outlook-source-link:hover { text-decoration: underline; }

.weekly-outlook-item span {
  color: #f9cd7f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.weekly-outlook-item h3 {
  margin: 7px 0 8px;
  color: var(--command-text, var(--text));
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.12;
  letter-spacing: -.012em;
}

.weekly-outlook-item p,
.weekly-outlook-item small {
  margin: 0;
  color: var(--command-muted, var(--muted));
  font-size: 15px;
  line-height: 1.45;
}

.agenda-metrics span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  color: var(--command-muted, var(--muted));
  background: rgba(255, 255, 255, .035);
  font-size: 13px;
  font-weight: 650;
}

.agenda-priority ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 14px 0;
  list-style: none;
}

.agenda-priority li {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  color: var(--command-muted, var(--muted));
  background: rgba(255, 255, 255, .035);
  font-size: 13px;
  font-weight: 650;
}

.statement-variants {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.statement-variants button {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--command-line, var(--line));
  border-radius: 18px;
  color: var(--command-text, var(--text));
  background: rgba(255, 255, 255, .035);
  text-align: left;
  cursor: pointer;
}

.statement-variants span {
  color: var(--signature, #8b5cf6);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.statement-variants p {
  margin: 8px 0 0;
  color: var(--command-muted, var(--muted));
  font-size: 13px;
  line-height: 1.35;
}

.briefing-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -18px 0 24px;
  padding: 10px 0;
  overflow-x: auto;
  border-top: 1px solid rgba(16, 35, 84, .10);
  border-bottom: 1px solid rgba(16, 35, 84, .10);
  scrollbar-width: none;
}

.briefing-ticker::-webkit-scrollbar {
  display: none;
}

.briefing-ticker span {
  flex: 0 0 auto;
  margin-right: 4px;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.briefing-ticker b,
.briefing-ticker small {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(16, 35, 84, .10);
  border-radius: 999px;
  color: rgba(16, 35, 84, .70);
  background: rgba(255, 255, 252, .68);
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.briefing-ticker small {
  color: rgba(93, 91, 86, .82);
  font-weight: 620;
}

.briefing-hub {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, .58fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 36px;
}

.briefing-lead,
.briefing-rail {
  min-width: 0;
}

.briefing-hub .decision-console,
.briefing-hub .agent-briefing {
  margin: 0;
}

.briefing-rail {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 28px;
}

.agent-briefing {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: -16px 0 28px;
  padding: 26px;
  border: 1px solid rgba(29, 63, 143, .13);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 252, .96), rgba(255, 253, 248, .88) 62%, rgba(29, 63, 143, .055));
  box-shadow: 0 26px 80px rgba(20, 17, 12, .075);
}

.agent-briefing::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29, 63, 143, .48), rgba(189, 139, 47, .42), transparent);
}

.agent-orb {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid rgba(29, 63, 143, .14);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(29, 63, 143, .11);
}

.agent-orb span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--accent-ink);
  font-size: 21px;
  font-weight: 820;
  line-height: 1;
}

.agent-copy {
  min-width: 0;
}

.agent-copy > span {
  display: block;
  margin-bottom: 8px;
  color: rgba(16, 35, 84, .62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.agent-copy p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}

.agent-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.agent-facts b {
  padding: 7px 10px;
  border: 1px solid rgba(29, 63, 143, .11);
  border-radius: 999px;
  color: rgba(16, 35, 84, .70);
  background: rgba(255, 255, 255, .58);
  font-size: 12px;
  font-weight: 700;
}

.agent-actions {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.quick-panel {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 35, 84, .105);
  border-radius: 24px;
  background: rgba(255, 255, 252, .78);
  box-shadow: 0 18px 54px rgba(20, 17, 12, .045);
}

.quick-panel > span {
  display: block;
  padding: 22px 22px 12px;
  color: rgba(16, 35, 84, .66);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.quick-panel h2 {
  margin: 0;
  padding: 0 22px;
  font-size: 22px;
  line-height: 1.14;
}

.quick-panel p {
  margin: 10px 0 0;
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.quick-row {
  appearance: none;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 18px 22px;
  border: 0;
  border-top: 1px solid rgba(16, 35, 84, .085);
  color: inherit;
  background: transparent;
  text-align: left;
}

.quick-row:hover {
  background: rgba(29, 63, 143, .045);
}

.quick-row b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: rgba(16, 35, 84, .62);
  background: rgba(16, 35, 84, .06);
  font-size: 12px;
}

.quick-row.action b,
.quick-row.risk b { color: #fff; background: var(--danger); }
.quick-row.chance b { color: #fff; background: var(--chance); }
.quick-row.watch b { color: #fff; background: var(--watch); }

.quick-row strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.24;
}

.quick-row small {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 680;
}

.decision-console {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 0 0 30px;
  min-height: 100%;
  padding: 46px 50px;
  overflow: hidden;
  border: 1px solid rgba(13, 17, 24, .12);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 252, .98), rgba(255, 253, 248, .88) 52%, rgba(20, 33, 61, .055)),
    var(--paper);
  box-shadow: 0 34px 100px rgba(20, 17, 12, .10);
}

.decision-console::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--signature), var(--accent));
}

.decision-console.risk::before,
.decision-console.action::before { background: var(--danger); }
.decision-console.chance::before { background: var(--chance); }
.decision-console.watch::before { background: var(--watch); }

.decision-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
}

.decision-ribbon span,
.flow-head span {
  color: rgba(20, 33, 61, .68);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.decision-ribbon b {
  color: rgba(16, 18, 29, .46);
  font-size: 13px;
  font-weight: 720;
}

.decision-console h2 {
  max-width: 820px;
  margin: 0;
  color: var(--text);
  font-size: clamp(38px, 4.7vw, 64px);
  font-weight: 820;
  line-height: .98;
  letter-spacing: -.018em;
}

.decision-console p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.48;
}

.decision-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 4px;
}

.decision-meta span {
  color: rgba(24, 42, 85, .68);
  font-size: 13px;
  font-weight: 680;
}

.decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.daily-flow {
  margin: 0 0 42px;
  padding: 4px 0 0;
}

.flow-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 18px;
}

.flow-head h2 {
  margin: 0;
  color: var(--accent-ink);
  font-size: 22px;
  font-weight: 720;
  line-height: 1.1;
}

.flow-list {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(20, 33, 61, .08);
  border-radius: 24px;
  background: rgba(255, 255, 252, .44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
}

.flow-row {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 24px 24px;
  border-bottom: 1px solid rgba(20, 33, 61, .09);
  transition: background .18s ease;
}

.flow-row:hover {
  background: rgba(255, 253, 248, .62);
}

.flow-row:last-child {
  border-bottom: 0;
}

.flow-marker {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(24, 42, 85, .055);
}

.flow-row.risk .flow-marker,
.flow-row.action .flow-marker { background: var(--danger); box-shadow: 0 0 0 8px rgba(159, 49, 60, .06); }
.flow-row.chance .flow-marker { background: var(--chance); box-shadow: 0 0 0 8px rgba(36, 109, 77, .06); }
.flow-row.watch .flow-marker { background: var(--watch); box-shadow: 0 0 0 8px rgba(155, 107, 24, .06); }
.flow-row.change .flow-marker { background: var(--signature); box-shadow: 0 0 0 8px rgba(111, 29, 47, .06); }

.flow-copy span {
  display: block;
  margin-bottom: 8px;
  color: rgba(24, 42, 85, .56);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.flow-copy h3 {
  margin: 0;
  color: var(--text);
  font-size: 23px;
  font-weight: 720;
  line-height: 1.12;
}

.flow-copy p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.flow-action {
  color: var(--accent-ink);
  text-align: right;
  font-weight: 720;
  white-space: nowrap;
}

.referent-section {
  margin: 0 0 42px;
}

.referent-section > h2 {
  margin: 0 0 18px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.referent-list {
  display: grid;
  gap: 16px;
}

.referent-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 28px 30px 28px 34px;
  border: 1px solid rgba(20, 33, 61, .105);
  border-radius: 22px;
  background: rgba(255, 255, 252, .84);
  box-shadow: 0 18px 54px rgba(20, 17, 12, .05);
}

.referent-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.referent-card.risk::before { background: var(--danger); }
.referent-card.chance::before { background: var(--chance); }
.referent-card.watch::before { background: var(--watch); }
.referent-card.change::before { background: linear-gradient(180deg, var(--signature), var(--accent)); }

.referent-card > span {
  color: rgba(24, 42, 85, .66);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.referent-card.risk > span { color: var(--danger); }
.referent-card.chance > span { color: var(--chance); }

.referent-card h3 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: 25px;
  line-height: 1.14;
}

.referent-card p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.referent-card small {
  color: rgba(24, 42, 85, .7);
  font-size: 13px;
  font-weight: 650;
}

.briefing-list {
  display: grid;
  gap: 28px;
}

.section-kicker {
  margin: 4px 0 0;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.chief-card {
  position: relative;
  max-width: 920px;
  margin: 0 0 34px;
  padding: 38px 42px 36px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(24, 42, 85, .07), rgba(255, 253, 247, .65) 48%, rgba(126, 38, 55, .045)),
    var(--card);
  border: 1px solid rgba(24, 42, 85, .16);
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
}

.chief-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  bottom: 28px;
  width: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.chief-card.action::before,
.chief-card.risk::before { background: var(--danger); }
.chief-card.watch::before { background: var(--watch); }
.chief-card.chance::before { background: var(--chance); }
.chief-card.ignore::before { background: #cfcfcf; }

.chief-card > span {
  display: block;
  margin-bottom: 18px;
  color: rgba(24, 42, 85, .64);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.chief-card h2 {
  max-width: 800px;
  margin: 0;
  color: var(--text);
  font-size: 34px;
  font-weight: 720;
  line-height: 1.12;
}

.chief-card p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.chief-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
}

.chief-meta span {
  color: rgba(24, 42, 85, .7);
  font-size: 13px;
  font-weight: 650;
}

.chief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.situational-card {
  display: grid;
  gap: 18px;
  margin: 0 0 42px;
  padding: 34px 38px;
  border: 1px solid rgba(24, 42, 85, .13);
  border-radius: 22px;
  background: rgba(255, 253, 247, .74);
  box-shadow: 0 18px 54px rgba(36, 28, 18, .045);
}

.situational-card > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.situational-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 31px;
  line-height: 1.12;
}

.situational-card > p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.situational-list {
  display: grid;
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.situational-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.situational-item span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.situational-item h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.situational-item p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

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

.political-context {
  margin-top: 22px;
}

.context-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.context-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.context-card h3 {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.16;
}

.context-card p {
  max-width: 680px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.context-card small {
  color: var(--muted-2);
}

.calm-directive {
  color: var(--text);
}

.briefing-block,
.list-row,
.composer,
.generated-answer,
.recommendation,
.article-grid > div,
.article-section,
.loading-card {
  max-width: 100%;
  min-width: 0;
  background: var(--card);
  border: 1px solid rgba(20, 33, 61, .105);
  border-radius: 22px;
}

.briefing-block {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  min-height: 148px;
  padding: 30px 32px 30px 36px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
}

.briefing-block:first-child {
  border-color: rgba(24, 42, 85, .2);
  background:
    linear-gradient(90deg, rgba(24, 42, 85, .055), transparent 34%),
    var(--paper);
}

.briefing-block > div,
.list-row > div,
.article-grid > div,
.article-section,
.recommendation,
.strategy-answer,
.conversation-shell,
.topic-row > div {
  min-width: 0;
}

.briefing-block::before,
.list-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 999px;
  background: var(--muted-2);
}

.briefing-block.action::before,
.list-row.action::before { background: var(--danger); }
.briefing-block.risk::before,
.list-row.risk::before,
.list-row.high::before { background: var(--danger); }
.briefing-block.watch::before,
.list-row.watch::before,
.list-row.medium::before { background: var(--watch); }
.briefing-block.chance::before,
.list-row.chance::before,
.list-row.low::before { background: var(--chance); }
.briefing-block.ignore::before,
.list-row.ignore::before { background: #cfcfcf; }

.briefing-block span,
.list-row span,
.article-head span,
.generated-answer span,
.recommendation span {
  display: block;
  margin-bottom: 14px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.briefing-block.risk span,
.article-head .risk { color: var(--danger); }
.briefing-block.action span,
.article-head .action { color: var(--danger); }
.briefing-block.watch span,
.article-head .watch { color: var(--watch); }
.briefing-block.chance span,
.article-head .chance { color: var(--chance); }
.briefing-block.ignore span,
.article-head .ignore { color: var(--muted-2); }

.briefing-block h2,
.plain-list h2,
.article-grid h2,
.article-section h2 {
  margin: 0;
  color: var(--text);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.16;
}

.briefing-block h2 {
  font-size: 24px;
}

.briefing-block p,
.list-row p,
.recommendation p,
.article-grid p,
.article-section p,
.generated-answer p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

.briefing-block p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 610px;
  font-size: 16px;
}

.task-actions {
  display: grid;
  justify-items: stretch;
  gap: 10px;
  align-items: center;
  width: min(210px, 100%);
}

.office-task {
  align-items: start;
}

.office-task-main {
  min-width: 0;
}

.handoff-layer {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: end center;
  padding: 22px;
  background: rgba(5, 9, 20, .68);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

.handoff-layer.open {
  opacity: 1;
  pointer-events: auto;
}

.handoff-panel {
  width: min(560px, 100%);
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 28px;
  background: rgba(10, 15, 29, .98);
  color: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .42);
}

.handoff-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.handoff-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.handoff-head h2 {
  margin: 7px 0 0;
  color: #fff;
  font-size: 26px;
  line-height: 1.08;
}

.handoff-head button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 28px;
}

.handoff-panel p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 16px;
  line-height: 1.55;
}

.handoff-default {
  display: inline-flex;
  width: fit-content;
  color: rgba(255, 255, 255, .52);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.handoff-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.handoff-actions .text-button {
  grid-column: 1 / -1;
  justify-self: center;
}

@media (max-width: 720px) {
  .handoff-layer {
    align-items: end;
    padding: 14px;
  }

  .handoff-panel {
    border-radius: 24px;
    padding: 22px;
  }

  .handoff-actions {
    grid-template-columns: 1fr;
  }
}

.task-brief {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.task-brief div {
  display: grid;
  gap: 3px;
}

.task-brief dt {
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.task-brief dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.handoff-brief {
  grid-template-columns: minmax(0, .82fr) minmax(0, .72fr);
}

.handoff-brief .wide {
  grid-column: 1 / -1;
}

.compact-button {
  min-height: 42px;
  padding: 0 18px;
}

.source-pill {
  display: inline-flex;
  width: fit-content;
  margin-top: 16px;
  color: rgba(24, 42, 85, .9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid rgba(24, 42, 85, .28);
}

.source-pill:hover {
  color: var(--accent-ink);
  border-bottom-color: rgba(24, 42, 85, .68);
}

.source-pill.muted {
  border-bottom: 0;
}

.source-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
}

.source-link-list .source-pill {
  margin-top: 0;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  max-width: 100%;
  transition: transform var(--dur-fast) var(--ease-out-soft),
    box-shadow var(--dur-fast) var(--ease-out-soft),
    opacity var(--dur-fast) var(--ease-out-soft);
}

/* Press-Feedback ueberall konsistent (Mobile-Touch + Desktop-Klick). */
.primary-button:not(:disabled):active,
.secondary-button:not(:disabled):active {
  transform: scale(.97);
}

/* Hover nur fuer echte Maus-/Trackpad-Geraete, damit Touch-Displays keinen
   "haengenden" Hover-Zustand nach dem Antippen behalten. */
@media (hover: hover) and (pointer: fine) {
  .primary-button:not(:disabled):hover {
    box-shadow: 0 16px 40px rgba(29, 63, 143, .24);
  }
  .secondary-button:not(:disabled):hover {
    border-color: var(--accent);
  }
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #102354, #1d3f8f);
  border: 1px solid var(--ink-button);
  box-shadow: 0 14px 34px rgba(29, 63, 143, .16);
}

.secondary-button {
  color: var(--accent-ink);
  background: rgba(255, 255, 252, .78);
  border: 1px solid var(--line);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  color: rgba(245, 241, 232, .38);
  background: rgba(245, 241, 232, .06);
  border-color: rgba(245, 241, 232, .1);
  box-shadow: none;
  opacity: .72;
}

.quiet-link,
.back-link {
  display: block;
  width: fit-content;
  margin: 28px auto 0;
  color: var(--muted);
}

.back-link {
  margin: 0 0 48px;
}

.detail-page {
  padding-bottom: 80px;
}

.article-head {
  margin-bottom: 42px;
}

.article-head small {
  display: block;
  margin-top: 28px;
  color: var(--muted-2);
  font-size: 14px;
}

.recommendation {
  margin-bottom: 28px;
  padding: 34px 40px;
  background: var(--paper);
  border-color: var(--line);
  border-left: 3px solid var(--signature);
  box-shadow: var(--soft-shadow);
}

.recommendation p {
  max-width: 760px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 600;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 42px;
}

.article-grid > div {
  min-height: 190px;
  padding: 34px 36px;
  background: rgba(255, 253, 247, .72);
  border-radius: 0;
}

.article-grid > div:first-child {
  border-radius: 20px 0 0 20px;
}

.article-grid > div:last-child {
  margin-left: -1px;
  border-radius: 0 20px 20px 0;
}

.article-grid h2,
.article-section h2 {
  font-size: 18px;
}

.article-grid p,
.article-section p {
  font-size: 16px;
}

.article-section {
  padding: 36px 40px;
}

.memory-section {
  margin-bottom: 28px;
  background: rgba(24, 42, 85, .045);
  border-color: rgba(24, 42, 85, .16);
}

.memory-section span {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.memory-section p + p {
  margin-top: 16px;
}

.source-basis {
  display: grid;
  gap: 14px;
  margin-top: 42px;
}

.source-basis h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
}

.source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  padding: 22px 0;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.source-row span {
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
}

.source-row p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.source-row small {
  color: var(--muted-2);
  font-size: 13px;
  white-space: nowrap;
}

.detail-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.learning-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(18, 29, 54, .08);
}

.learning-actions button {
  appearance: none;
  padding: 10px 14px;
  color: rgba(18, 29, 54, .58);
  background: rgba(18, 29, 54, .03);
  border: 1px solid rgba(18, 29, 54, .1);
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 560;
  line-height: 1;
  cursor: pointer;
}

.learning-actions button:hover {
  color: var(--accent-ink);
  border-color: var(--accent-ink);
}

.learning-actions button.is-active {
  color: var(--text);
  background: rgba(154, 119, 255, .14);
  border-color: rgba(154, 119, 255, .42);
}

.plain-list {
  display: grid;
  gap: 16px;
  margin-bottom: 48px;
}

.system-section {
  margin-top: 58px;
  padding-top: 34px;
  border-top: 1px solid rgba(245, 241, 232, .12);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading span {
  color: var(--command-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 10px 0 8px;
  color: var(--command-text);
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.05;
}

.section-heading p {
  margin: 0;
  color: var(--command-muted);
  font-size: 17px;
  line-height: 1.55;
}

.compact-list {
  gap: 12px;
  margin-bottom: 0;
}

/* Apple-style Settings */
.stg-section { margin-bottom: 36px; }
.stg-label {
  display: block;
  padding: 0 4px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.stg-group {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.stg-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.stg-row:last-child { border-bottom: none; }
.stg-row-label {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.stg-row-value {
  font-size: 14px;
  color: var(--muted);
  text-align: right;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stg-row-action { flex-shrink: 0; width: auto; }
.stg-row-chevron {
  color: var(--muted-2);
  font-size: 12px;
  flex-shrink: 0;
}
.stg-row-sublabel {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}
.stg-row--stack { flex-direction: column; align-items: flex-start; gap: 10px; }
.stg-row--stack .theme-toggle { width: 100%; }
.stg-row--stack .theme-option { flex: 1; }
.stg-row--tappable { cursor: pointer; }
.stg-row--tappable:hover { background: var(--paper); }
.stg-row--danger .stg-row-label { color: var(--danger, #ff5d6c); }
.stg-profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.stg-profile-row:hover { background: var(--paper); }
.stg-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft, rgba(140,92,255,.18));
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}
.stg-profile-info { flex: 1; min-width: 0; }
.stg-profile-name { font-size: 16px; font-weight: 700; color: var(--text); margin: 0 0 2px; }
.stg-profile-sub { font-size: 13px; color: var(--muted); margin: 0; }
.stg-system-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}
.stg-system-badge--ok { background: rgba(52,199,89,.12); color: #34c759; }
.stg-system-badge--warn { background: rgba(255,159,10,.12); color: #ff9f0a; }
.stg-system-badge--err { background: rgba(255,69,58,.12); color: #ff453a; }
.stg-version {
  text-align: center;
  font-size: 12px;
  color: var(--muted-2);
  margin: 8px 0 32px;
}
/* iOS-style toggle */
.stg-toggle {
  position: relative;
  width: 51px;
  height: 31px;
  flex-shrink: 0;
  cursor: pointer;
}
.stg-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.stg-toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(245, 241, 232, .18);
  border-radius: 999px;
  transition: background .2s;
}
.stg-toggle input:checked ~ .stg-toggle-track {
  background: #34c759;
}
.stg-toggle input:disabled ~ .stg-toggle-track {
  opacity: .4;
}
.stg-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
  transition: transform .2s;
  pointer-events: none;
}
.stg-toggle input:checked ~ .stg-toggle-thumb {
  transform: translateX(20px);
}

.row-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.channel-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 10px;
}

.channel-picker button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 253, 247, .72);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.channel-picker button.active,
.channel-picker button:hover {
  color: var(--accent-ink);
  border-color: rgba(24, 42, 85, .34);
  background: rgba(255, 255, 255, .95);
}

.communication-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px 0 12px;
  border-top: 1px solid var(--line);
}

.communication-command span,
.strategy-answer span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.communication-command p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.note-form {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.note-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 253, 247, .86);
  resize: vertical;
}

.note-list {
  display: grid;
  gap: 10px;
}

.note-row {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.note-row p {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
}

.note-row small {
  color: var(--muted-2);
  font-size: 12px;
}

.radar-groups {
  display: grid;
  gap: 0;
  margin-bottom: 48px;
}

.radar-group {
  border-top: 1px solid rgba(20, 33, 61, .11);
}

.radar-group:last-child {
  border-bottom: 1px solid rgba(20, 33, 61, .11);
}

.radar-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 92px;
  padding: 0 20px 0 4px;
  list-style: none;
  cursor: pointer;
  overflow: visible;
}

.radar-group summary::-webkit-details-marker {
  display: none;
}

.radar-group summary span {
  color: var(--text);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.radar-group summary i {
  width: 14px;
  height: 14px;
  border-right: 3px solid rgba(16, 18, 29, .52);
  border-bottom: 3px solid rgba(16, 18, 29, .52);
  transform: rotate(45deg) translateY(-4px);
  transition: transform .24s ease;
}

.radar-group[open] summary i {
  transform: rotate(225deg) translateY(-2px);
}

.radar-group-body {
  display: grid;
  gap: 14px;
  padding: 0 0 22px;
}

/* Sanftes Einblenden statt hartem Erscheinen: gilt fuer Entscheidungs-/Radar-
   Karten sowie fuer aufklappbare Bereiche (Lage-Abschnitte, Radar-Gruppen).
   Da render() jede Ansicht neu aufbaut, spielt die Animation bei jedem Mount
   erneut ab -> wirkt wie ein Fade-in beim Laden UND beim Auf-/Zuklappen. */
.briefing-block,
.quick-row,
.movement-row,
.mention-row,
.radar-mention-compact,
.lage-collapse-body,
.radar-group[open] .radar-group-body {
  animation: helmut-card-in var(--dur-slow) var(--ease-out-soft) both;
}
@keyframes helmut-card-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Anti-Aufpoppen: render() baut #app bei JEDEM Aufruf komplett neu auf, wodurch
   diese Eintritts-Animationen sonst bei jedem Hintergrund-Rebuild (Parlament/
   Office-Nachladen, Refresh-Abschluss) erneut abspielen. Sie laufen jetzt NUR
   noch bei einem echten (Wieder-)Eintritt — #app.anim-enter wird dafür einmalig
   gesetzt (siehe render()/Refresh-Flow in client.js). Ohne die Klasse: keine
   Eintritts-Animation, der Inhalt steht ruhig. Interaktions-Fades (Lage-/Radar-
   Aufklappen) bleiben bewusst ungegatet. */
#app:not(.anim-enter) .helmut-deck-card,
#app:not(.anim-enter) .helmut-last-check,
#app:not(.anim-enter) .helmut-refresh,
#app:not(.anim-enter) .helmut-refresh-core--done,
#app:not(.anim-enter) .briefing-block,
#app:not(.anim-enter) .quick-row,
#app:not(.anim-enter) .movement-row,
#app:not(.anim-enter) .mention-row,
#app:not(.anim-enter) .radar-mention-compact {
  animation: none !important;
}

.radar-mini {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(20, 33, 61, .075);
  border-radius: 18px;
  background: rgba(255, 255, 252, .64);
}

.radar-mini span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.radar-mini.chance span { color: var(--chance); }
.radar-mini.risk span { color: var(--danger); }
.radar-mini.watch span { color: var(--watch); }

.radar-mini h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.18;
}

.radar-mini p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.radar-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  margin-left: 8px;
  border-radius: 6px;
  background: rgba(245, 241, 232, .1);
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
  vertical-align: middle;
}

.radar-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: 14px;
  border-left: 3px solid transparent;
}

.radar-status-card.radar-status-ok {
  background: rgba(57, 209, 143, .07);
  border-left-color: var(--chance);
}

.radar-status-card.radar-status-risk {
  background: rgba(255, 89, 103, .07);
  border-left-color: var(--danger);
}

.radar-status-main {
  min-width: 0;
}

.radar-status-label {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.radar-status-ok .radar-status-label { color: var(--chance); }
.radar-status-risk .radar-status-label { color: var(--danger); }

.radar-status-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  opacity: .85;
}

.radar-signal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
}

.radar-signal-card.radar-signal-watch { border-left-color: var(--watch); }
.radar-signal-card.radar-signal-chance { border-left-color: var(--chance); }
.radar-signal-card.radar-signal-ok { border-left-color: rgba(245, 241, 232, .2); }

.radar-signal-body {
  min-width: 0;
}

.radar-signal-status {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.radar-signal-watch .radar-signal-status {
  color: var(--watch);
  background: rgba(214, 160, 64, .11);
}

.radar-signal-chance .radar-signal-status {
  color: var(--chance);
  background: rgba(57, 209, 143, .11);
}

.radar-signal-ok .radar-signal-status {
  color: var(--muted-2);
  background: var(--line);
}

.radar-signal-card h3 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.22;
}

.radar-signal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.radar-mention-compact {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
}

.radar-mention-thumb {
  grid-row: 1 / -1;
}

.radar-mention-thumb .mention-avatar,
.radar-mention-thumb .mention-image {
  width: 60px;
  height: 60px;
  border-radius: 10px;
}

.radar-mention-thumb .mention-image-cover {
  width: 60px;
  height: 60px;
}

.radar-mention-thumb .mention-image-logo img {
  width: 34px;
  height: 34px;
}

.radar-mention-thumb .mention-avatar {
  font-size: 14px;
}

.radar-mention-content {
  min-width: 0;
}

.radar-mention-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.radar-mention-source {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.radar-mention-status {
  color: var(--muted-2);
  font-size: 10px;
  opacity: .6;
}

.radar-mention-compact h3 {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.28;
}

.radar-mention-compact p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.radar-mention-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.radar-mention-date {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 10px;
  opacity: .6;
  white-space: nowrap;
}

.radar-mention-link {
  color: var(--muted-2);
  font-size: 13px;
  text-decoration: none;
  transition: color .15s ease;
}

.radar-mention-link:hover { color: var(--text); }

.radar-empty-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 4px;
}

.radar-empty-hint p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.radar-source-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 13px;
  text-decoration: none;
  transition: color .15s ease;
}

.radar-source-link:hover { color: var(--text); }

/* ── Radar V3 ──────────────────────────────────────────────────────────────── */

.radar-v3-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 32px;
}

.radar-v3-category {
  border-radius: 14px;
  border-left: 3px solid var(--accent);
  background: var(--card);
  border: 1px solid var(--line);
  border-left-width: 3px;
  overflow: hidden;
}

.radar-v3-risk    { border-left-color: var(--danger) !important; }
.radar-v3-demand  { border-left-color: var(--watch) !important; }
.radar-v3-chance  { border-left-color: var(--chance) !important; }
.radar-v3-warning { border-left-color: #9b6db2 !important; }
.radar-v3-mention { border-left-color: var(--accent) !important; }

.radar-v3-cat-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px 12px;
}

.radar-v3-cat-icon {
  font-size: 20px;
  line-height: 1;
  margin-top: 1px;
  flex-shrink: 0;
}

.radar-v3-cat-text h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 3px;
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.2;
}

.radar-v3-cat-text p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.radar-v3-count {
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(245, 241, 232, .1);
  color: var(--muted);
}

.radar-v3-risk .radar-v3-count    { color: var(--danger); background: rgba(255, 89, 103, .13); }
.radar-v3-demand .radar-v3-count  { color: var(--watch); background: rgba(214, 160, 64, .13); }
.radar-v3-chance .radar-v3-count  { color: var(--chance); background: rgba(57, 209, 143, .13); }
.radar-v3-warning .radar-v3-count { color: #b88ed9; background: rgba(155, 109, 178, .13); }
.radar-v3-mention .radar-v3-count { color: var(--accent); background: rgba(111, 143, 247, .13); }

.radar-v3-signals {
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
}

.radar-v3-empty {
  padding: 4px 4px 2px;
  color: var(--muted-2);
  font-size: 13px;
  margin: 0;
}

/* Quellen-Icon: farbiger Kreis mit Buchstabe, Favicon optional drüber */
.radar-v3-source-icon {
  position: relative;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0;
}

.radar-v3-source-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5px;
  background: #fff;
}

/* Karte */
.radar-v3-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.radar-v3-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.radar-v3-card-source {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}

.radar-v3-card-dot {
  color: var(--muted-2);
  font-size: 11px;
  flex-shrink: 0;
}

.radar-v3-card-date {
  font-size: 11px;
  color: var(--muted-2);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radar-v3-card-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  color: var(--text);
}

.radar-v3-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.radar-v3-article-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--dur-fast) ease;
}

.radar-v3-article-link:hover { opacity: .75; }

/* Badge */
.radar-v3-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  flex-shrink: 0;
  margin-left: auto;
}

.radar-v3-badge-risk    { color: var(--danger); background: rgba(255, 89, 103, .13); }
.radar-v3-badge-demand  { color: var(--watch);  background: rgba(214, 160, 64, .13); }
.radar-v3-badge-chance  { color: var(--chance); background: rgba(57, 209, 143, .13); }
.radar-v3-badge-warning { color: #b88ed9;       background: rgba(155, 109, 178, .13); }
.radar-v3-badge-neutral { color: var(--muted-2); background: var(--line); }

.radar-v3-act-btn {
  font-size: 12px;
  padding: 5px 10px;
  white-space: nowrap;
}

.radar-v3-more {
  border-top: 1px solid var(--hairline);
}

.radar-v3-more > summary {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--muted-2);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.radar-v3-more > summary::-webkit-details-marker { display: none; }

.radar-v3-more[open] > summary {
  border-bottom: 1px solid var(--hairline);
}

/* ── Ende Radar V3 ─────────────────────────────────────────────────────────── */

.plain-list > h2 {
  margin-bottom: 10px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section-note {
  margin: -4px 0 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.list-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  min-height: 118px;
  padding: 26px 30px 26px 34px;
  overflow: hidden;
  background: rgba(255, 255, 252, .84);
  box-shadow: 0 16px 48px rgba(20, 17, 12, .045);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.list-row:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 33, 61, .18);
  box-shadow: 0 22px 62px rgba(20, 17, 12, .07);
}

.list-row h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.18;
}

.list-row p {
  font-size: 15px;
}

.mention-row {
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.mention-avatar,
.mention-image {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.mention-avatar {
  color: #fff;
  background: var(--accent-ink);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: .02em;
}

.mention-image {
  background: #f4f1ea;
}

.mention-image-cover {
  object-fit: cover;
}

.mention-image-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: saturate(.95) contrast(1.02);
}

.mention-content {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.mention-open {
  grid-column: 2;
  justify-self: stretch;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.source-missing {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.mention-timestamp {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.mention-row.no-link {
  grid-template-columns: 72px minmax(0, 1fr);
}

.muted-list {
  opacity: .72;
}

.composer {
  display: grid;
  gap: 22px;
  padding: 34px;
  margin-bottom: 44px;
  box-shadow: var(--soft-shadow);
}

.composer textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 18px;
  line-height: 1.55;
}

.composer div {
  display: flex;
  justify-content: flex-end;
}

.generated-answer {
  padding: 34px 38px;
}

.generated-answer p {
  max-width: 760px;
  color: var(--text);
  font-size: 20px;
}

.generated-answer div {
  display: flex;
  gap: 22px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.topic-board {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--accent-ink);
}

.topic-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.topic-row.evidence-only {
  grid-template-columns: 72px minmax(0, 1fr);
}

.topic-row > span {
  color: rgba(24, 42, 85, .32);
  font-size: 32px;
  font-weight: 650;
  line-height: 1;
}

.topic-row h3 {
  max-width: 660px;
  margin: 0;
  color: var(--text);
  font-size: 30px;
  font-weight: 650;
  line-height: 1.12;
}

.topic-row p {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.topic-row small {
  display: block;
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 13px;
}

.topic-row.risk > span { color: rgba(229, 72, 77, .72); }
.topic-row.chance > span { color: rgba(36, 109, 77, .72); }
.topic-row.watch > span { color: rgba(155, 107, 24, .78); }
.topic-row.ignore > span { color: rgba(17, 17, 17, .28); }
.topic-row.evidence-only > span { color: rgba(24, 42, 85, .32); }

.conversation-shell {
  display: grid;
  gap: 24px;
  padding: 0 0 34px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.conversation-prompt {
  max-width: 720px;
  padding: 28px 0 0;
}

.conversation-prompt span,
.strategy-answer span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.conversation-prompt p {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.22;
}

.conversation-shell textarea {
  width: 100%;
  min-height: 180px;
  padding: 30px 32px;
  resize: vertical;
  color: var(--text);
  background: rgba(255, 253, 247, .78);
  border: 1px solid var(--line);
  border-radius: 20px;
  outline: 0;
  font-size: 19px;
  line-height: 1.55;
}

.composer-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.strategy-answer {
  position: relative;
  max-width: 820px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(16, 35, 84, .12);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 252, .98), rgba(255, 253, 247, .92) 68%, rgba(29, 63, 143, .045));
  box-shadow: 0 22px 70px rgba(20, 17, 12, .06);
  animation: draftReveal .42s ease both;
}

.strategy-answer::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), rgba(189, 139, 47, .78));
}

.strategy-answer.linkedin::before { background: linear-gradient(180deg, #0a66c2, rgba(29, 63, 143, .72)); }
.strategy-answer.x::before { background: linear-gradient(180deg, #111111, rgba(16, 35, 84, .74)); }
.strategy-answer.instagram::before { background: linear-gradient(180deg, #c13584, #f5a524); }
.strategy-answer.committee_question::before { background: linear-gradient(180deg, var(--watch), rgba(189, 139, 47, .72)); }
.strategy-answer.citizen_dialogue::before { background: linear-gradient(180deg, var(--chance), rgba(29, 63, 143, .58)); }
.strategy-answer.internal_line::before { background: linear-gradient(180deg, var(--accent), rgba(16, 35, 84, .52)); }

.draft-channel-picker {
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(16, 35, 84, .09);
}

.draft-channel-picker button {
  min-height: 38px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .74);
}

.draft-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.draft-meta span {
  flex: 0 0 auto;
  white-space: nowrap;
  margin: 0;
  color: rgba(16, 35, 84, .64);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.draft-meta b {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 7px 10px;
  border: 1px solid rgba(29, 63, 143, .13);
  border-radius: 999px;
  color: var(--accent-ink);
  background: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 760;
}

.generated-copy {
  display: grid;
  gap: 12px;
}

.generated-copy p {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: 0;
}

.draft-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

@keyframes draftReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-form {
  display: grid;
  gap: 28px;
}

.profile-section {
  display: grid;
  gap: 24px;
  padding: 32px;
  background: rgba(255, 253, 247, .78);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 54px rgba(17, 17, 17, .035);
}

.profile-section > div:first-child span {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-section h2 {
  max-width: 720px;
  margin: 8px 0 0;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-field {
  display: grid;
  gap: 10px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.profile-field.wide {
  grid-column: 1 / -1;
}

.profile-field span {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.profile-field input,
.profile-field textarea,
.profile-field select {
  width: 100%;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 18px;
  line-height: 1.45;
  font-family: inherit;
}

.profile-field textarea {
  resize: vertical;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-grid.compact {
  max-width: 760px;
}

.profile-subsection {
  display: grid;
  gap: 12px;
  max-width: 860px;
  padding: 18px 0 4px;
}

.profile-subsection > span {
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.profile-subsection p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.choice-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
}

.choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-pill span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.choice-pill:has(input:checked) {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}

.choice-pill:has(input:checked) span {
  color: #ffffff;
}

.priority-list {
  display: grid;
  gap: 10px;
}

.priority-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(140px, 240px) 28px;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.priority-row span {
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
}

.priority-row input {
  accent-color: var(--accent);
}

.priority-row b {
  font-size: 16px;
  text-align: right;
}

.profile-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 12px;
}

.text-button {
  padding: 0;
  color: var(--muted);
}

.score-note {
  margin: 0 0 16px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.loading-screen {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  width: 100%;
  padding: 32px;
  background:
    radial-gradient(circle at 50% 42%, rgba(140, 92, 255, .12), transparent 26%),
    linear-gradient(180deg, #070b15 0%, #050914 72%, #03050b 100%);
}

.app-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(140, 92, 255, .12), transparent 26%),
    linear-gradient(180deg, #070b15 0%, #050914 72%, #03050b 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity .28s cubic-bezier(.22, 1, .36, 1), visibility .28s step-end;
}

.app-ready .app-splash {
  opacity: 0;
  visibility: hidden;
}

.splash-gone .app-splash {
  display: none;
}

.splash-mark,
.loading-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: #fbf7ef;
  background: transparent;
  box-shadow: none;
  animation: loading-mark-fade 2.2s ease-in-out infinite;
}

.splash-mark::before,
.loading-mark::before {
  content: none;
}

.splash-mark span,
.loading-mark span,
.loading-logo span {
  font-size: clamp(42px, 13vw, 72px);
  font-weight: 720;
  letter-spacing: -.04em;
  line-height: 1;
  text-shadow: 0 20px 70px rgba(140, 92, 255, .34);
}

.loading-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(680px, calc(100% - 32px));
  margin: 72px auto;
  padding: 56px 48px;
  text-align: center;
}

.loading-logo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fbf7ef;
  /* Kein Kaesten hinter dem H: das weisse H steht direkt auf dem dunklen
     Seitenhintergrund (Fuellung/Rahmen/Schatten entfernt). Groesse/Position/
     Farbe des H und der "Helmut"-Schriftzug bleiben unveraendert. */
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  animation: loading-logo-breathe 2.8s ease-in-out infinite;
}

.loading-card p {
  margin: 0;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--accent-ink);
  opacity: .72;
  text-transform: uppercase;
}

.loading-card h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.1;
  max-width: 520px;
}

@keyframes loading-logo-breathe {
  0%, 100% {
    transform: scale(1);
    opacity: .92;
  }
  50% {
    transform: scale(1.035);
    opacity: 1;
  }
}

@keyframes loading-mark-fade {
  0%, 100% {
    opacity: .68;
    transform: scale(.985);
  }
  50% {
    opacity: 1;
    transform: scale(1.025);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-splash {
    transition: opacity .2s ease;
  }

  .splash-mark,
  .loading-mark,
  .loading-logo {
    animation: none;
  }
}

/* Querformat-Sperre (nur Smartphones): Helmut ist fuer Hochformat konzipiert.
   Reines CSS, keine experimentelle Orientation-Lock-API. Die Erkennung
   kombiniert Ausrichtung + Bildschirmgroesse + Touch-Eingabe (kein Hover,
   grober Zeiger), damit Desktop- und Tablet-Nutzung (auch bei schmalem
   Browserfenster bzw. Tablet-Querformat) unberuehrt bleiben — siehe
   Media-Query unten. Standardmaessig unsichtbar; #app bleibt im Hintergrund
   unveraendert, wird aber vollflaechig ueberdeckt und ist damit weder
   sichtbar noch bedienbar. */
.orientation-lock {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  place-items: center;
  padding: 32px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(140, 92, 255, .12), transparent 26%),
    linear-gradient(180deg, #070b15 0%, #050914 72%, #03050b 100%);
}

.orientation-lock-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 300px;
}

.orientation-lock-icon {
  width: 48px;
  height: 48px;
  color: #8c5cff;
}

.orientation-lock-text {
  margin: 0;
  color: #fbf7ef;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -.01em;
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 950px) and (hover: none) and (pointer: coarse) {
  .orientation-lock {
    display: grid;
  }
}

.executive-intro,
.page-intro,
.article-head,
.plain-list {
  color: var(--text);
}

.brand,
.update-heart,
.nav-list button:hover,
.nav-list button.active,
.quiet-link:hover,
.back-link:hover,
.text-button:hover,
.primary-button.secondary,
.secondary-button,
.channel-picker button.active,
.channel-picker button:hover {
  color: var(--accent-ink);
}

.brand small,
.sidebar-foot span,
.topbar-meta span,
.section-note,
.briefing-ticker small,
.decision-meta,
.source-note,
.source-row small,
.quality-note,
.hint-text {
  color: var(--muted-2);
}

.nav-list button,
.sidebar-foot button,
.menu-button,
.quiet-link,
.back-link,
.text-button,
.channel-picker button {
  color: var(--muted);
}

.nav-list button:hover,
.nav-list button.active {
  background: rgba(111, 143, 247, .11);
}

.topbar-meta,
.pilot-status,
.briefing-ticker,
.daily-flow,
.communication-command,
.conversation-shell,
.source-row,
.profile-section,
.article-section,
.briefing-block,
.list-row,
.generated-answer,
.recommendation,
.article-grid > div,
.loading-card,
.decision-console,
.agent-briefing,
.quick-panel,
.referent-card,
.chief-card,
.strategy-answer,
.note-form textarea,
.conversation-shell textarea,
.profile-field,
.topic-board,
.office-board,
.settings-card,
.source-pill,
.radar-mini,
.situational-briefing,
.situational-item,
.task-card,
.draft-card,
.empty-card {
  border-color: rgba(245, 241, 232, .105);
  background:
    linear-gradient(145deg, rgba(15, 22, 38, .9), rgba(9, 13, 24, .78));
  box-shadow: var(--soft-shadow);
}

.briefing-block:first-child,
.article-grid > div,
.article-grid > div:first-child,
.article-grid > div:last-child {
  border-color: rgba(245, 241, 232, .105);
  background:
    linear-gradient(145deg, rgba(15, 22, 38, .9), rgba(9, 13, 24, .78));
}

.decision-console,
.chief-card,
.agent-briefing,
.strategy-answer {
  background:
    linear-gradient(145deg, rgba(17, 25, 43, .96), rgba(9, 13, 24, .86) 62%, rgba(111, 143, 247, .08));
}

.briefing-ticker b,
.briefing-ticker small,
.agent-orb,
.agent-facts b,
.quick-row b,
.decision-ribbon,
.flow-row,
.referent-mini,
.timeline-pill,
.draft-meta b,
.channel-picker button,
.draft-channel-picker button,
.mobile-dock,
.updates-panel,
.updates-layer,
.notification-row,
.source-card,
.evidence-card,
.link-button,
.secondary-button,
.primary-button.secondary {
  border-color: rgba(245, 241, 232, .105);
  background: rgba(245, 241, 232, .055);
}

.agent-orb,
.loading-logo,
.brand-mark {
  color: var(--command-text);
  text-shadow: 0 12px 34px rgba(140, 92, 255, .28);
}

.primary-button,
.ink-button {
  color: #06101f;
  background: linear-gradient(135deg, #f5f1e8, #d7e0ff);
  border-color: rgba(245, 241, 232, .22);
}

.secondary-button,
.link-button,
.channel-picker button,
.draft-channel-picker button {
  color: var(--text);
}

.channel-picker button.active {
  border-color: rgba(111, 143, 247, .42);
  background: rgba(111, 143, 247, .16);
}

.quick-row.action b,
.quick-row.risk b {
  color: #06101f;
  background: var(--danger);
}

.quick-row.chance b {
  color: #06101f;
  background: var(--chance);
}

.quick-row.watch b {
  color: #06101f;
  background: var(--watch);
}

.generated-copy,
.generated-answer p,
.strategy-answer p,
.conversation-prompt p,
.briefing-block h2,
.plain-list h2,
.article-grid h2,
.article-section h2,
.decision-console h2,
.chief-card h2,
.referent-card h3,
.quick-panel h2 {
  color: var(--text);
}

.briefing-block p,
.list-row p,
.recommendation p,
.article-grid p,
.article-section p,
.generated-answer p,
.decision-console p,
.chief-card p,
.agent-copy p,
.quick-panel p,
.referent-card p,
.flow-row p,
.communication-command p,
.generated-copy p {
  color: var(--muted);
}

.updates-layer,
.menu-layer {
  background: #070b14;
}

.updates-layer {
  background:
    radial-gradient(circle at 78% 8%, rgba(111, 143, 247, .12), transparent 28%),
    linear-gradient(180deg, #090d18 0%, #070b14 100%);
}

.updates-panel {
  background:
    linear-gradient(180deg, rgba(9, 13, 24, .98) 0%, rgba(7, 11, 20, 1) 100%);
}

.notification-row {
  background:
    linear-gradient(145deg, rgba(245, 241, 232, .055), rgba(245, 241, 232, .028));
}

.topbar-meta {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.pilot-status {
  color: rgba(245, 241, 232, .78);
  border-color: rgba(245, 241, 232, .13);
  background: rgba(245, 241, 232, .065);
  box-shadow: none;
}

.briefing-ticker {
  border-color: rgba(245, 241, 232, .11);
  background: rgba(7, 11, 20, .24);
}

.briefing-ticker span {
  color: rgba(245, 241, 232, .86);
}

.briefing-ticker b,
.briefing-ticker small {
  color: rgba(245, 241, 232, .74);
  border-color: rgba(245, 241, 232, .12);
  background: rgba(245, 241, 232, .06);
}

.briefing-ticker small {
  color: rgba(245, 241, 232, .56);
}

.decision-ribbon span,
.flow-head span,
.situational-card > span {
  color: rgba(245, 241, 232, .72);
}

.decision-ribbon b,
.decision-meta span,
.chief-meta span {
  color: rgba(245, 241, 232, .52);
}

.situational-card {
  border-color: rgba(245, 241, 232, .105);
  background:
    linear-gradient(145deg, rgba(15, 22, 38, .9), rgba(9, 13, 24, .78));
  box-shadow: var(--soft-shadow);
}

.source-pill,
.source-pill:hover {
  color: rgba(245, 241, 232, .76);
  border-bottom-color: rgba(245, 241, 232, .28);
}

.radar-group,
.radar-group:last-child,
.radar-mini,
.draft-channel-picker {
  border-color: rgba(245, 241, 232, .105);
}

.radar-group summary i {
  border-right-color: rgba(245, 241, 232, .54);
  border-bottom-color: rgba(245, 241, 232, .54);
}

.radar-mini {
  background:
    linear-gradient(145deg, rgba(15, 22, 38, .9), rgba(9, 13, 24, .78));
}

.topic-row > span,
.topic-row.evidence-only > span {
  color: rgba(245, 241, 232, .34);
}

.topic-row.chance > span {
  color: rgba(57, 209, 143, .78);
}

.topic-row.ignore > span {
  color: rgba(245, 241, 232, .24);
}

.draft-meta span {
  color: rgba(245, 241, 232, .62);
}

.draft-channel-picker button,
.draft-meta b {
  color: var(--text);
  border-color: rgba(245, 241, 232, .12);
  background: rgba(245, 241, 232, .06);
}

.strategy-answer.x::before {
  background: linear-gradient(180deg, rgba(245, 241, 232, .82), rgba(111, 143, 247, .64));
}

.agent-copy > span,
.agent-facts b,
.quick-panel > span,
.quick-row b,
.quick-row small,
.decision-ribbon b,
.decision-meta span,
.flow-row span,
.referent-card > span,
.chief-meta span,
.task-brief dt,
.topic-row small,
.draft-meta span,
.profile-section > div:first-child span,
.settings-card span,
.quality-row span,
.ops-row span,
.source-card span,
.evidence-card span,
.notification-row small,
.article-head small,
.source-row small {
  color: var(--muted-2);
}

.agent-copy p,
.quick-panel p,
.quick-row strong,
.decision-console p,
.flow-row p,
.referent-card p,
.chief-card p,
.task-brief dd,
.topic-row p,
.radar-mini p,
.note-row p,
.settings-card p,
.quality-row p,
.ops-row p,
.source-card p,
.evidence-card p,
.notification-row p,
.source-row p {
  color: var(--muted);
}

.quick-row strong,
.radar-group summary span,
.radar-mini strong,
.note-row strong,
.settings-card h2,
.profile-section h2,
.source-card h3,
.evidence-card h3,
.notification-row strong,
.source-row strong {
  color: var(--text);
}

.source-pill,
.text-button,
.quiet-link,
.back-link,
.menu-button,
.sidebar-foot button {
  color: rgba(245, 241, 232, .76);
}

@media (max-width: 640px) {
  .loading-card {
    width: min(100%, calc(100% - 32px));
    margin: 52px auto;
    padding: 42px 26px;
    border-radius: 22px;
  }

  .loading-logo {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .loading-card h1 {
    font-size: clamp(30px, 8vw, 40px);
  }
}

.toast {
  position: fixed;
  left: 50%;
  /* Safe-Area: nicht in den iOS-Home-Indicator/hinter die Bottom-Nav rutschen. */
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  transform: translateX(-50%) translateY(18px);
  padding: 11px 16px;
  /* Kontrast-Fix: feste dunkle Fläche + Weiß in BEIDEN Themes. Frueher
     var(--accent-ink) -> im Dark Mode hell (Hell-Lavendel), Weiß darauf 1,3:1. */
  color: #ffffff;
  background: #1d3f8f;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.office-empty {
  box-shadow: none;
}

.office-empty::before {
  background: var(--muted-2);
}

.office-empty h3 {
  margin-bottom: 8px;
}

.hidden { display: none !important; }

@media (max-width: 920px) {
  .app-frame {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0;
    z-index: 40;
    width: 100vw;
    height: 100dvh;
    padding: 76px 42px calc(42px + env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 78% 14%, rgba(140, 92, 255, .12), transparent 30%),
      linear-gradient(180deg, #080d19 0%, #050812 100%);
    border-right: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-14px);
    transition: opacity 320ms ease, transform 320ms ease;
  }

  .sidebar.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .content-shell {
    width: min(760px, calc(100% - 36px));
    padding: 28px 0 118px;
  }

  .topbar {
    justify-content: space-between;
    margin-bottom: 42px;
  }

  .menu-button {
    display: block;
  }

  .brand {
    margin-bottom: 46px;
    color: var(--accent-ink);
    font-size: 13px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    color: var(--command-text);
    font-size: 20px;
  }

  .brand small {
    color: var(--muted-2);
  }

  .nav-list {
    gap: 0;
  }

  .nav-list button {
    min-height: 48px;
    padding: 0;
    color: rgba(245, 241, 232, .72);
    background: transparent !important;
    border-radius: 0;
    font-size: 29px;
    font-weight: 680;
    line-height: 1;
    letter-spacing: 0;
  }

  .nav-list button.active {
    color: var(--accent-ink);
  }

  .nav-list button.active::before {
    display: none;
  }

  .mobile-menu-settings {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    color: rgba(245, 241, 232, .78);
    font-size: 17px;
    font-weight: 640;
    letter-spacing: 0;
  }

  .sidebar-foot {
    display: flex;
    align-items: flex-end;
    min-height: 72px;
  }

  .sidebar-foot p {
    display: none;
  }

  .mobile-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 8px max(14px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-right));
    border-top: 1px solid rgba(245, 241, 232, .10);
    background: rgba(8, 12, 22, .92);
    backdrop-filter: blur(18px);
    box-shadow: 0 -18px 54px rgba(0, 0, 0, .34);
  }

  .mobile-dock button {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 4px;
    min-height: 58px;
    padding: 7px 4px 5px;
    border: 0;
    color: var(--muted-2);
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    transition: color var(--dur-base) var(--ease-out-soft);
  }

  .mobile-dock button:active span {
    transform: scale(.9);
  }

  .mobile-dock button span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(245, 241, 232, .13);
    border-radius: 999px;
    color: rgba(245, 241, 232, .58);
    font-size: 12px;
    font-weight: 800;
    transition: color var(--dur-base) var(--ease-out-soft),
      background var(--dur-base) var(--ease-out-soft),
      border-color var(--dur-base) var(--ease-out-soft),
      transform var(--dur-fast) var(--ease-out-soft);
  }

  .mobile-dock button i {
    position: absolute;
    top: 9px;
    right: 22px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ff5d6c;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
  }

  .mobile-dock button.active {
    color: var(--accent-ink);
  }

  .mobile-dock button.active span {
    color: #06101f;
    border-color: rgba(245, 241, 232, .30);
    background: linear-gradient(135deg, #f5f1e8, #d7e0ff);
  }

  .page-intro h1,
  .article-head h1 {
    font-size: clamp(44px, 12vw, 64px);
  }
}

@media (max-width: 680px) {
  .content-shell {
    width: min(100% - 32px, 620px);
    padding-top: 22px;
  }

  .topbar {
    gap: 16px;
  }

  .topbar-meta {
    min-width: 0;
    gap: 10px;
  }

  .topbar-meta span {
    min-width: 0;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
  }

  .update-heart {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
  }

  .update-heart svg {
    width: 21px;
    height: 21px;
  }

  .update-heart i {
    top: 2px;
    right: 1px;
    width: 8px;
    height: 8px;
  }

  .menu-button {
    color: var(--accent-ink);
    display: inline-grid;
    gap: 4px;
    align-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
  }

  .menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--accent-ink);
    border-radius: 999px;
  }

  .sidebar.open ~ .content-shell .menu-button {
    position: fixed;
    top: 76px;
    right: 42px;
    z-index: 45;
    display: block;
    width: auto;
    height: auto;
    font-size: 42px;
    font-weight: 300;
    line-height: 1;
  }

  .sidebar.open ~ .content-shell .topbar-meta {
    visibility: hidden;
  }

  .updates-panel {
    width: 100vw;
    height: 100dvh;
    margin: 0;
    padding: 78px max(22px, env(safe-area-inset-left)) max(32px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-right));
    border-left: 0;
    border-radius: 0;
    transform: translateX(100%);
  }

  .updates-head h2 {
    font-size: 34px;
  }

  .notification-row {
    padding: 20px 18px;
    border-radius: 20px;
  }

  .page-intro {
    margin-bottom: 34px;
  }

  .page-intro::before,
  .article-head::before {
    width: 68px;
    margin-bottom: 24px;
  }

  .page-intro h1,
  .article-head h1 {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    font-size: clamp(30px, 8.4vw, 40px);
    line-height: 1.08;
  }

  .page-intro h1.fit-title-lg,
  .article-head h1.fit-title-lg {
    font-size: clamp(26px, 7.2vw, 34px);
  }

  .page-intro h1.fit-title-xl,
  .article-head h1.fit-title-xl {
    font-size: clamp(22px, 6.1vw, 29px);
  }

  .page-intro p,
  .article-head p {
    max-width: 100%;
    font-size: 17px;
  }

  .daily-answer {
    min-height: auto;
    margin: 12px 0 24px;
    padding: 28px 22px;
    border-radius: 26px;
  }

  .daily-answer h2 {
    font-size: clamp(31px, 9vw, 44px);
    line-height: 1.04;
  }

  .daily-answer p {
    font-size: 17px;
  }

  .agenda-answer-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .agenda-answer-item {
    min-height: 0;
    padding: 14px;
    border-radius: 18px;
  }

  .agenda-answer-item p {
    font-size: 14px;
  }

  .daily-answer-actions,
  .meeting-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .agenda-section {
    padding: 22px;
    border-radius: 26px;
  }

  .agenda-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .agenda-section-head span {
    min-width: 0;
    font-size: 12px;
    line-height: 1;
    letter-spacing: .18em;
    opacity: .86;
  }

  .agenda-section-head h2 {
    font-size: clamp(25px, 8vw, 34px);
    line-height: 1.06;
  }

  .agenda-priority,
  .meeting-card,
  .reaction-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 19px;
    border-radius: 21px;
  }

  .agenda-priority h3,
  .meeting-card h3,
  .reaction-card h3 {
    font-size: clamp(22px, 6.4vw, 29px);
  }

  .agenda-priority p,
  .meeting-card p,
  .reaction-card p {
    font-size: 15px;
  }

  .meeting-prep-grid {
    grid-template-columns: 1fr;
  }

  .no-decision-focus,
  .decision-brief-grid {
    grid-template-columns: 1fr;
  }

  .learning-pulse {
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 19px;
  }

  .morning-moment {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 20px;
    padding: 18px;
    border-radius: 22px;
  }

  .moment-orb {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    font-size: 18px;
  }

  .moment-grid {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .moment-copy h2 {
    font-size: clamp(25px, 7.4vw, 33px);
  }

  .mini-action-stack {
    width: 100%;
  }

  .meeting-line-box,
  .meeting-prep-grid > div {
    padding: 14px;
    border-radius: 16px;
  }

  .agenda-priority ul {
    display: grid;
    grid-template-columns: 1fr;
  }

  .agenda-metrics {
    display: grid;
    grid-template-columns: 1fr;
  }

  .statement-variants {
    grid-template-columns: 1fr;
  }

  .pilot-status {
    margin-top: 20px;
    font-size: 12px;
  }

  .briefing-ticker {
    margin: -12px 0 22px;
  }

  .briefing-hub {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 34px;
  }

  .briefing-rail {
    position: static;
  }

  .agent-briefing {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 18px;
    padding: 24px 22px;
    border-radius: 24px;
  }

  .agent-orb {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .agent-orb span {
    font-size: 21px;
  }

  .agent-copy p {
    font-size: 16px;
    line-height: 1.5;
  }

  .agent-actions {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .quick-panel {
    border-radius: 22px;
  }

  .decision-console {
    gap: 16px;
    margin-bottom: 28px;
    padding: 30px 24px 28px 28px;
    border-radius: 26px;
  }

  .decision-console::before {
    width: 4px;
  }

  .decision-ribbon {
    display: grid;
    justify-content: start;
  }

  .decision-console h2 {
    max-width: 100%;
    font-size: clamp(30px, 8.4vw, 42px);
    line-height: 1.04;
  }

  .decision-console p {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.5;
  }

  .decision-meta {
    gap: 8px 14px;
  }

  .decision-actions {
    display: grid;
  }

  .daily-flow {
    margin-bottom: 34px;
  }

  .flow-head {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
  }

  .flow-head h2 {
    font-size: 20px;
  }

  .flow-row {
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 22px 0;
  }

  .flow-marker {
    margin-top: 7px;
    width: 8px;
    height: 8px;
  }

  .flow-copy h3 {
    font-size: 21px;
  }

  .flow-copy p {
    font-size: 15px;
  }

  .flow-action {
    grid-column: 2;
    justify-self: start;
    padding: 0;
    margin-top: 2px;
    font-size: 15px;
  }

  .briefing-list {
    gap: 22px;
  }

  .chief-card {
    margin-bottom: 28px;
    padding: 30px 24px 28px 28px;
    border-radius: 18px;
  }

  .chief-card::before {
    top: 24px;
    bottom: 24px;
    width: 3px;
  }

  .chief-card h2 {
    font-size: clamp(25px, 7vw, 32px);
    line-height: 1.12;
  }

  .chief-card p {
    font-size: 17px;
  }

  .chief-actions {
    display: grid;
    gap: 10px;
  }

  .situational-card {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .situational-card h2 {
    font-size: 25px;
  }

  .situational-card > p {
    font-size: 16px;
  }

  .situational-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 0;
  }

  .context-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .situational-item h3 {
    font-size: 19px;
  }

  .briefing-block,
  .list-row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px 28px 28px;
  }

  .mention-row {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 18px;
  }

  .mention-avatar,
  .mention-image {
    width: 88px;
    height: 88px;
    border-radius: 22px;
  }

  .mention-avatar {
    font-size: 18px;
  }

  .mention-image-logo img {
    width: 48px;
    height: 48px;
  }

  .mention-content {
    align-self: center;
  }

  .mention-open {
    grid-column: 2;
    justify-self: stretch;
    justify-content: center;
    width: 100%;
  }

  .mention-row.no-link {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .task-actions {
    width: 100%;
    max-width: none;
    justify-items: stretch;
  }

  .task-actions .text-button {
    min-height: 40px;
    text-align: center;
  }

  .task-actions .secondary-button,
  .task-actions .primary-button {
    justify-content: center;
  }

  .briefing-block h2,
  .list-row h3 {
    font-size: 23px;
  }

  .briefing-block p {
    font-size: 16px;
  }

  .radar-group summary {
    min-height: 82px;
  }

  .radar-group summary span {
    font-size: 21px;
  }

  .radar-mini {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 0;
  }

  .radar-status-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .radar-status-card .secondary-button {
    width: auto;
    align-self: flex-start;
  }

  .radar-signal-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .radar-signal-card .secondary-button {
    width: auto;
    align-self: flex-start;
  }

  .radar-mention-compact {
    padding: 12px 14px;
  }

  .radar-mention-actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  .secondary-button,
  .primary-button {
    width: 100%;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .article-grid > div,
  .article-grid > div:first-child,
  .article-grid > div:last-child {
    margin-left: 0;
    border-radius: 20px;
  }

  .recommendation,
  .article-section,
  .composer,
  .generated-answer {
    padding: 26px 22px;
  }

  .topic-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 16px;
    padding: 26px 0;
  }

  .topic-row > span {
    font-size: 24px;
  }

  .topic-row h3 {
    font-size: 23px;
  }

  .topic-row p {
    font-size: 16px;
  }

  .source-pill {
    font-size: 13px;
  }

  .topic-row button {
    grid-column: 2;
    width: fit-content;
  }

  .composer {
    gap: 18px;
    margin-bottom: 34px;
  }

  .composer textarea {
    min-height: 150px;
    font-size: 18px;
  }

  .generated-answer p {
    overflow-wrap: anywhere;
    font-size: 18px;
  }

  .conversation-shell {
    gap: 18px;
    margin-bottom: 34px;
  }

  .conversation-prompt {
    padding-top: 0;
  }

  .conversation-prompt p {
    font-size: 22px;
  }

  .conversation-shell textarea {
    min-height: 150px;
    padding: 24px 22px;
    font-size: 17px;
  }

  .composer-actions {
    display: grid;
    justify-content: stretch;
    gap: 14px;
  }

  .communication-command {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 0 6px;
  }

  .communication-command .primary-button {
    width: 100%;
  }

  .communication-command p {
    font-size: 14px;
    line-height: 1.4;
  }

  .draft-channel-picker {
    position: sticky;
    top: 0;
    z-index: 2;
    flex-wrap: nowrap;
    gap: 8px;
    margin: -4px -4px 14px;
    padding: 4px 4px 14px;
    overflow-x: auto;
    background:
      linear-gradient(135deg, rgba(17, 25, 43, .98), rgba(9, 13, 24, .96));
    scrollbar-width: none;
  }

  .draft-channel-picker::-webkit-scrollbar {
    display: none;
  }

  .channel-picker button {
    min-height: 40px;
    padding: 0 13px;
    font-size: 13px;
    white-space: nowrap;
  }

  .strategy-answer {
    display: grid;
    padding: 24px 22px;
    border-radius: 22px;
  }

  .draft-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .generated-copy p {
    overflow-wrap: anywhere;
    font-size: 16px;
    line-height: 1.6;
  }

  .generated-copy {
    max-height: 38vh;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
  }

  .source-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .profile-form {
    grid-template-columns: 1fr;
  }

  .profile-section {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .profile-section h2 {
    font-size: 24px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-field {
    padding: 18px;
  }

  .priority-row {
    grid-template-columns: 1fr 1fr 24px;
    gap: 12px;
    padding: 14px;
  }

  .profile-actions {
    display: grid;
  }

  .referent-section {
    margin-bottom: 34px;
  }

  .referent-card {
    padding: 24px 22px 24px 26px;
    border-radius: 18px;
  }

  .referent-card h3 {
    font-size: 22px;
  }

  .referent-card p {
    font-size: 15px;
  }

  .detail-actions,
  .generated-answer div,
  .draft-actions {
    display: grid;
  }

}

/* Final premium override: keep this at the end so legacy light-theme fragments cannot win. */
.brand small,
.nav-list button,
.sidebar-foot span,
.topbar-meta span {
  color: var(--muted);
}

.pilot-status,
.agent-facts b,
.quick-panel,
.decision-console,
.agent-briefing,
.briefing-block,
.list-row,
.recommendation,
.article-grid > div,
.article-section,
.topic-row > div,
.strategy-answer,
.note-form textarea,
.profile-section,
.profile-field,
.choice-pill,
.priority-row,
.source-card,
.evidence-card,
.loading-card {
  border-color: var(--line);
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(18, 25, 42, .94), rgba(8, 13, 24, .92));
  box-shadow: 0 22px 70px rgba(0, 0, 0, .25);
}

.briefing-focus {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(290px, .76fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 34px;
}

.briefing-focus .decision-console,
.briefing-focus .quick-panel {
  margin: 0;
  height: 100%;
}

.decision-console {
  border-radius: 32px;
}

.decision-console h2 {
  max-width: 760px;
  color: var(--text);
  font-size: clamp(34px, 4.6vw, 62px);
  letter-spacing: -.02em;
}

.decision-console p {
  max-width: 760px;
  color: var(--muted);
}

.decision-ribbon span,
.decision-ribbon b,
.decision-meta span,
.quick-panel > span,
.quick-row small,
.pilot-status,
.source-pill,
.learning-actions button,
.communication-command span,
.strategy-answer span,
.draft-meta b {
  color: var(--muted);
}

.quick-panel {
  align-content: start;
  padding: 10px 0;
  border-radius: 28px;
  overflow: hidden;
}

.quick-panel > span {
  display: block;
  padding: 18px 22px 10px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.quick-row {
  border-top-color: var(--hairline);
  background: transparent;
}

.quick-row strong,
.flow-row h3,
.list-row h3,
.topic-row h3,
.source-row span,
.article-section h2,
.article-grid h2,
.draft-meta span {
  color: var(--text);
}

.quick-row:hover,
.list-row:hover {
  background: rgba(245, 241, 232, .045);
}

.daily-flow {
  margin-top: 22px;
}

.flow-row {
  background: transparent;
  border-top-color: var(--hairline);
}

.flow-action {
  color: var(--text);
}

.source-pill {
  min-height: 32px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(245, 241, 232, .035);
  text-decoration: none;
}

.source-pill:hover {
  color: var(--text);
  border-color: rgba(245, 241, 232, .28);
  background: rgba(245, 241, 232, .07);
}

.article-grid {
  gap: 14px;
}

.article-grid > div,
.article-grid > div:first-child,
.article-grid > div:last-child {
  margin-left: 0;
  border-radius: 24px;
}

.recommendation,
.article-section {
  background:
    linear-gradient(145deg, rgba(16, 23, 39, .96), rgba(10, 15, 27, .94));
}

.recommendation p,
.generated-copy p {
  color: var(--text);
}

.learning-actions {
  border-top-color: var(--hairline);
}

.learning-actions button {
  color: var(--muted);
  background: rgba(255, 255, 255, .035);
  border-color: var(--hairline);
}

.learning-actions button.is-active {
  color: var(--text);
  background: rgba(126, 91, 255, .14);
  border-color: rgba(201, 171, 106, .48);
  box-shadow: 0 0 22px rgba(126, 91, 255, .12);
}

.source-basis {
  padding-top: 6px;
}

.source-row {
  padding: 20px 0;
  border-top-color: var(--hairline);
}

.source-row:hover span {
  color: var(--accent-ink);
}

.office-task .source-pill {
  margin-top: 12px;
}

.task-actions {
  width: min(150px, 100%);
}

.strategy-answer {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 28px;
}

.strategy-answer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(245, 241, 232, .08);
}

.draft-channel-picker {
  margin-bottom: 18px;
}

.channel-picker button {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(245, 241, 232, .035);
}

.channel-picker button.active,
.channel-picker button:hover {
  color: var(--text);
  border-color: rgba(111, 143, 247, .42);
  background: rgba(111, 143, 247, .13);
}

.draft-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 14px;
}

.generated-copy {
  padding: 20px 0 4px;
  border-top: 1px solid var(--hairline);
}

.generated-copy p {
  font-size: 16px;
  line-height: 1.66;
}

.draft-actions {
  margin-top: 22px;
}

.section-note,
.empty-state,
.list-row p,
.topic-row p,
.article-grid p,
.article-section p,
.source-row p,
.task-brief dd,
.note-row p,
.quick-row small {
  color: var(--muted);
}

@media (max-width: 920px) {
  .briefing-focus {
    grid-template-columns: 1fr;
  }

  .quick-panel {
    height: auto;
  }
}

@media (max-width: 680px) {
  .page-intro h1,
  .article-head h1 {
    font-size: clamp(36px, 10.5vw, 50px);
    line-height: 1.02;
  }

  .page-intro p,
  .article-head p {
    font-size: 17px;
  }

  .decision-console {
    padding: 32px 24px;
    border-radius: 28px;
  }

  .decision-console h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .decision-actions,
  .detail-actions,
  .task-actions,
  .draft-actions {
    display: grid;
    width: 100%;
  }

  .quick-panel {
    border-radius: 24px;
  }

  .strategy-answer {
    padding: 20px;
    border-radius: 24px;
  }

  .draft-channel-picker {
    position: sticky;
    top: 0;
    z-index: 3;
    margin: -4px -4px 12px;
    padding: 4px 4px 12px;
    overflow-x: auto;
    flex-wrap: nowrap;
    background: #070b14;
    scrollbar-width: none;
  }

  .draft-channel-picker::-webkit-scrollbar {
    display: none;
  }

  .generated-copy {
    max-height: 42vh;
    overflow-y: auto;
  }

  .source-row small {
    white-space: normal;
  }
}

/* Helmut command redesign: one decision, no dashboard noise. */
:root {
  --command-bg: #050914;
  --command-panel: rgba(10, 16, 29, .84);
  --command-panel-strong: rgba(13, 20, 36, .96);
  --command-line: rgba(236, 241, 255, .105);
  --command-text: #fbf7ef;
  --command-muted: rgba(251, 247, 239, .66);
  --command-faint: rgba(251, 247, 239, .55); /* WCAG-AA-Fix: .42 war 3,85:1 (Nav) -> 5,9:1 */
  --command-purple: #8c5cff;
  --command-green: #19e59a;
  --command-red: #ff5b68;
  --command-shadow: 0 36px 110px rgba(0, 0, 0, .46);
}

body {
  color: var(--command-text);
  background:
    radial-gradient(circle at 76% 7%, rgba(140, 92, 255, .14), transparent 30%),
    radial-gradient(circle at 6% 20%, rgba(25, 229, 154, .055), transparent 25%),
    linear-gradient(180deg, #070b15 0%, #050914 62%, #03050b 100%);
  background-size: auto, auto, auto;
}

.app-frame {
  grid-template-columns: 236px minmax(0, 1fr);
}

.sidebar {
  border-right-color: var(--command-line);
  background: rgba(4, 7, 14, .54);
  backdrop-filter: blur(26px);
}

.brand {
  color: var(--command-text);
}

.brand small,
.sidebar-foot span,
.sidebar-foot button,
.nav-list button {
  color: var(--command-faint);
}

.nav-list button {
  border-radius: 999px;
}

.nav-list button:hover,
.nav-list button.active {
  color: var(--command-text);
  background: rgba(140, 92, 255, .12);
}

.nav-list button.active::before {
  background: var(--command-purple);
}

.content-shell {
  width: min(1040px, calc(100% - 72px));
  padding-top: 42px;
}

.topbar {
  justify-content: space-between;
  margin-bottom: clamp(38px, 7vh, 76px);
}

.topbar-brand {
  color: var(--command-text);
  font-size: 15px;
  font-weight: 780;
  letter-spacing: .18em;
}

.topbar-meta span {
  display: none;
}

.menu-button,
.update-heart {
  width: 46px;
  height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--command-text);
  background: transparent;
}

.menu-button:hover,
.update-heart:hover {
  border-color: var(--command-line);
  background: rgba(255, 255, 255, .045);
}

.menu-button span {
  background: currentColor;
}

.update-heart svg {
  width: 25px;
  height: 25px;
}

.update-heart.has-updates i {
  top: 9px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--command-purple);
  box-shadow: 0 0 0 4px rgba(140, 92, 255, .14);
}

.page-intro {
  margin-bottom: 24px;
}

.executive-intro {
  max-width: 760px;
}

.page-intro::before {
  width: 78px;
  height: 2px;
  margin-bottom: 34px;
  background: linear-gradient(90deg, #18e49b, var(--command-purple));
  box-shadow: 0 0 28px rgba(140, 92, 255, .35);
}

.hero-title,
.page-intro h1 {
  max-width: 820px;
  color: var(--command-text);
  font-family: Georgia, "Times New Roman", ui-serif, serif;
  font-size: clamp(52px, 8.2vw, 88px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: .98;
}

.hero-title {
  margin-bottom: 24px;
}

.page-intro p {
  color: var(--command-muted);
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.35;
}

.single-decision-stage {
  min-height: min(70vh, 760px);
  display: grid;
  align-items: stretch;
  padding-bottom: 28px;
}

.single-decision-stage .decision-console {
  min-height: min(70vh, 720px);
}

.decision-console,
.decision-console.empty {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(34px, 5.6vw, 64px);
  border: 1px solid var(--command-line);
  border-radius: 34px;
  color: var(--command-text);
  background:
    radial-gradient(circle at 92% 0%, rgba(140, 92, 255, .30), transparent 30%),
    radial-gradient(circle at 12% 90%, rgba(25, 229, 154, .12), transparent 28%),
    linear-gradient(145deg, rgba(15, 23, 43, .94), rgba(7, 11, 22, .96));
  box-shadow: var(--command-shadow);
}

.decision-console::before {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 2px;
  height: 76%;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, var(--command-purple), transparent);
  box-shadow: 0 0 34px rgba(140, 92, 255, .76);
}

.decision-console::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09);
}

.decision-ribbon {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: clamp(28px, 5vh, 52px);
}

.decision-ribbon span {
  color: var(--command-purple);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.decision-ribbon b {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--command-green);
  background: rgba(25, 229, 154, .105);
  font-size: 14px;
  font-weight: 620;
}

.decision-console h2 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 0 clamp(26px, 4vh, 44px);
  color: var(--command-text);
  font-family: Georgia, "Times New Roman", ui-serif, serif;
  font-size: clamp(42px, 6.4vw, 76px);
  font-weight: 520;
  letter-spacing: -.035em;
  line-height: 1.04;
}

.calm-watchlist {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 0 0 28px;
}

.calm-watchlist span {
  color: rgba(245, 247, 255, .54);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.calm-watchlist a {
  display: block;
  color: rgba(245, 247, 255, .88);
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.25;
  text-decoration: none;
}

.calm-watchlist a:hover {
  color: #fff;
}

.decision-brief {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: auto;
}

.decision-brief div {
  padding: 22px 22px 20px;
  border: 1px solid rgba(236, 241, 255, .09);
  border-radius: 24px;
  background: rgba(255, 255, 255, .035);
}

.decision-brief span {
  display: block;
  margin-bottom: 12px;
  color: var(--command-faint);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.decision-brief p {
  margin: 0;
  color: rgba(251, 247, 239, .82);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.5;
}

.decision-meta {
  position: relative;
  z-index: 1;
  margin-top: 26px;
}

.decision-meta span {
  color: var(--command-muted);
  font-size: 15px;
}

.decision-actions {
  position: relative;
  z-index: 1;
  margin-top: 30px;
}

.primary-button {
  min-height: 58px;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #7f46ff, #5c32e6);
  box-shadow: 0 18px 42px rgba(101, 64, 238, .34);
}

.secondary-button,
.link-button,
.text-button {
  color: var(--command-text);
  border-color: var(--command-line);
  background: rgba(255, 255, 255, .04);
}

.quick-panel,
.daily-flow,
.briefing-ticker,
.agent-briefing,
.quiet-link {
  display: none;
}

.secondary-movements {
  display: grid;
  gap: 12px;
  margin: -6px 0 48px;
}

.secondary-movements > span {
  color: var(--command-faint);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.movement-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--command-line);
  border-radius: 22px;
  color: var(--command-text);
  background: rgba(255, 255, 255, .035);
  text-align: left;
}

.movement-row strong {
  color: var(--command-text);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 650;
}

.movement-row small {
  flex: 0 0 auto;
  color: var(--command-muted);
  font-size: 14px;
}

.detail-page,
.plain-list,
.radar-groups,
.profile-form,
.article-head,
.recommendation,
.article-grid > div,
.article-section,
.list-row,
.radar-group,
.strategy-answer,
.profile-section {
  color: var(--command-text);
}

.article-head h1,
.plain-list h2,
.radar-group h3,
.list-row h3,
.recommendation p {
  color: var(--command-text);
}

.article-head p,
.list-row p,
.article-section p,
.source-row p,
.section-note,
.empty-state {
  color: var(--command-muted);
}

.radar-group,
.list-row,
.recommendation,
.article-grid > div,
.article-section,
.strategy-answer,
.profile-section {
  border-color: var(--command-line);
  background:
    linear-gradient(145deg, rgba(13, 20, 36, .86), rgba(7, 11, 22, .88));
  box-shadow: 0 22px 70px rgba(0, 0, 0, .24);
}

.office-task {
  align-items: stretch;
}

.office-task .task-brief {
  border-top-color: var(--command-line);
}

.office-task .task-actions {
  width: min(210px, 100%);
}

.office-task .compact-button {
  justify-content: center;
  min-height: 46px;
  white-space: nowrap;
}

.office-task-main small {
  display: block;
  margin-top: 12px;
  color: var(--command-muted);
  line-height: 1.45;
}

.mobile-dock {
  border-top-color: var(--command-line);
  background: rgba(5, 9, 20, .88);
  backdrop-filter: blur(24px);
}

.mobile-dock button {
  color: var(--command-faint);
}

.mobile-dock button span {
  color: var(--command-muted);
  border-color: var(--command-line);
  background: rgba(255, 255, 255, .03);
}

.mobile-dock button.active {
  color: #b897ff;
}

.mobile-dock button.active span {
  color: #cbb8ff;
  border-color: rgba(140, 92, 255, .32);
  background: rgba(140, 92, 255, .16);
}

@media (max-width: 920px) {
  .app-frame {
    display: block;
  }

  .sidebar {
    background: rgba(5, 9, 20, .98);
  }

  .content-shell {
    width: 100%;
    padding: 30px 24px 124px;
  }

  .topbar {
    min-height: 48px;
    margin-bottom: 28px;
  }

  .topbar-meta {
    margin-left: 0;
  }

  .single-decision-stage,
  .single-decision-stage .decision-console {
    min-height: calc(100dvh - 300px);
  }

  .decision-brief {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .content-shell {
    padding: 18px 20px 112px;
  }

  .topbar {
    margin-bottom: 18px;
  }

  .page-intro {
    margin-bottom: 12px;
  }

  .page-intro::before {
    width: 72px;
    margin-bottom: 18px;
  }

  .hero-title,
  .page-intro h1 {
    font-size: clamp(38px, 10.4vw, 48px);
  }

  .page-intro p {
    font-size: 18px;
  }

  .decision-console,
  .decision-console.empty {
    min-height: 64vh;
    padding: 20px;
    border-radius: 26px;
  }

  .decision-ribbon {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
  }

  .decision-ribbon span {
    font-size: 10px;
    letter-spacing: .1em;
  }

  .decision-ribbon b {
    padding: 6px 10px;
    font-size: 12px;
  }

  .decision-console h2 {
    margin-bottom: 20px;
    font-size: clamp(30px, 8.8vw, 38px);
  }

  .decision-brief {
    gap: 12px;
  }

  .decision-brief div {
    padding: 0 0 12px;
    border-width: 0 0 1px;
    border-radius: 0;
    background: transparent;
  }

  .decision-brief div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .movement-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .movement-row small {
    flex: 1 1 auto;
  }

  .decision-brief p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .decision-meta {
    margin-top: 16px;
  }

  .decision-actions {
    margin-top: 18px;
  }

  .decision-actions .primary-button {
    min-height: 54px;
  }

  .office-task {
    gap: 22px;
  }

  .handoff-brief {
    grid-template-columns: 1fr;
  }

  .office-task .task-actions {
    width: 100%;
  }

  .primary-button {
    width: 100%;
  }
}

/* Helmut V1 central referent mode */
.eyebrow-line {
  display: block;
  margin-bottom: 10px;
  color: rgba(245, 241, 232, .74);
  font-size: 15px;
  font-weight: 520;
  letter-spacing: 0;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(245, 241, 232, .16);
  border-radius: 999px;
  color: var(--command-text);
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 215, 150, .20), transparent 38%),
    rgba(255, 255, 255, .035);
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .04em;
}

.profile-avatar:hover {
  border-color: rgba(249, 205, 127, .36);
  background: rgba(255, 255, 255, .06);
}

.lage-card,
.helmut-thinking-screen,
.helmut-assessment {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 241, 232, .13);
  border-radius: 30px;
  color: var(--command-text);
  background:
    radial-gradient(circle at 92% 5%, rgba(249, 205, 127, .08), transparent 28%),
    linear-gradient(145deg, rgba(12, 18, 33, .95), rgba(5, 8, 18, .98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

.lage-card {
  min-height: min(62vh, 620px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 5vw, 44px);
}

.lage-card::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 3px;
  height: 78%;
  background: linear-gradient(180deg, rgba(249, 205, 127, 0), rgba(249, 205, 127, .95), rgba(249, 205, 127, 0));
  box-shadow: 0 0 28px rgba(249, 205, 127, .45);
}

.lage-card.chance::before { background: linear-gradient(180deg, transparent, #18e49b, transparent); }
.lage-card.risk::before,
.lage-card.action::before { background: linear-gradient(180deg, transparent, #f36a74, transparent); }
.lage-card.watch::before { background: linear-gradient(180deg, transparent, #f9cd7f, transparent); }

.lage-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.lage-card span,
.lage-card-head span,
.helmut-assessment-head span,
.helmut-note span,
.helmut-reason span {
  color: #f9cd7f;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lage-card-head small {
  max-width: 48%;
  color: rgba(245, 241, 232, .45);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.lage-card h2 {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--command-text);
  font-size: clamp(36px, 6.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.lage-card p {
  max-width: 680px;
  margin: 0;
  color: rgba(245, 241, 232, .72);
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.5;
}

.lage-movement {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(245, 241, 232, .10);
}

.lage-movement-markers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lage-movement-markers span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(249, 205, 127, .18);
  border-radius: 999px;
  color: rgba(249, 205, 127, .86);
  background: rgba(249, 205, 127, .055);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.lage-movement p {
  max-width: 680px;
  margin: 0;
  color: rgba(245, 241, 232, .70);
  font-size: clamp(15px, 1.85vw, 18px);
  line-height: 1.48;
}

.lage-movement p span {
  display: block;
  margin-bottom: 6px;
  color: rgba(245, 241, 232, .48);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lage-check-status {
  margin-top: 22px !important;
  padding: 14px 16px;
  border: 1px solid rgba(245, 241, 232, .10);
  border-radius: 18px;
  color: rgba(245, 241, 232, .66) !important;
  background: rgba(255, 255, 255, .035);
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.lage-check-status span {
  display: block;
  margin-bottom: 5px;
  color: rgba(249, 205, 127, .86) !important;
  font-size: 10px !important;
  letter-spacing: .13em !important;
}

.lage-check-status.changed {
  border-color: rgba(243, 106, 116, .22);
  background: rgba(243, 106, 116, .055);
}

.learning-signal,
.meeting-relevance {
  margin-top: 16px !important;
  padding: 12px 14px;
  border: 1px solid rgba(245, 241, 232, .09);
  border-radius: 16px;
  color: rgba(245, 241, 232, .62) !important;
  background: rgba(255, 255, 255, .028);
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.meeting-relevance {
  border-color: rgba(249, 205, 127, .16);
}

.meeting-relevance span {
  display: block;
  margin-bottom: 4px;
  color: rgba(249, 205, 127, .82) !important;
  font-size: 10px !important;
  letter-spacing: .13em !important;
}

.lage-actions {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 8px;
  align-items: stretch;
  margin-top: 18px;
}

.brief-mini {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: clamp(20px, 3.2vw, 28px);
  border: 1px solid rgba(245, 241, 232, .10);
  border-radius: 26px;
  color: var(--command-text);
  background:
    linear-gradient(135deg, rgba(12, 18, 33, .76), rgba(7, 11, 22, .92));
  box-shadow: 0 18px 56px rgba(0, 0, 0, .20);
}

.brief-mini span {
  display: block;
  margin-bottom: 9px;
  color: rgba(249, 205, 127, .86);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.brief-mini h2 {
  margin: 0;
  color: var(--command-text);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.brief-mini p {
  max-width: 760px;
  margin: 10px 0 0;
  color: rgba(245, 241, 232, .66);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.5;
}

.brief-mini small {
  display: block;
  margin-top: 10px;
  color: rgba(249, 205, 127, .62);
  font-size: 13px;
  line-height: 1.42;
}

.brief-mini.muted span,
.brief-mini.watchlist span {
  color: rgba(245, 241, 232, .48);
}

.brief-mini.communication-decision {
  border-color: rgba(111, 143, 247, .18);
}

.brief-mini.meeting {
  border-color: rgba(249, 205, 127, .18);
}

.brief-mini.watchlist {
  margin-bottom: 8px;
}

.helmut-thinking-screen {
  min-height: min(72vh, 720px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 42px;
  text-align: center;
}

.helmut-core {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(249, 205, 127, .78);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .025);
  box-shadow:
    0 0 0 10px rgba(249, 205, 127, .035),
    0 0 44px rgba(249, 205, 127, .34),
    inset 0 0 24px rgba(249, 205, 127, .08);
  font-size: 50px;
  font-weight: 740;
}

/* ── Refresh-Ablauf im Helmut-Tab (ruhig, premium, mobil sauber) ───────────── */
.helmut-refresh {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  min-height: 62vh;
  padding: 32px max(22px, env(safe-area-inset-left)) calc(128px + env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-right));
  animation: helmutRefreshIn .5s ease both;
}
.helmut-refresh-core { position: relative; display: grid; place-items: center; width: 132px; height: 132px; }
.helmut-refresh-ring {
  position: absolute; inset: 0; border-radius: 999px;
  border: 1.5px solid rgba(249, 205, 127, .5);
  box-shadow: 0 0 0 10px rgba(249, 205, 127, .03), 0 0 46px rgba(249, 205, 127, .30), inset 0 0 26px rgba(249, 205, 127, .08);
  animation: helmutRefreshPulse 2.6s ease-in-out infinite;
}
.helmut-refresh-mark { font-size: 34px; font-weight: 300; letter-spacing: .06em; color: rgba(240, 224, 190, .92); }
.helmut-refresh-title { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.helmut-refresh-step { margin: -8px 0 0; font-size: 14px; color: var(--muted-2); min-height: 20px; transition: opacity .4s ease; }
.helmut-refresh-sub { margin: -8px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted-2); max-width: 30ch; }
.helmut-refresh-track { width: min(240px, 68%); height: 3px; border-radius: 999px; background: rgba(140, 140, 150, .18); overflow: hidden; }
.helmut-refresh-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, rgba(214, 160, 64, .55), rgba(249, 205, 127, .95)); transition: width .9s cubic-bezier(.22, .61, .36, 1); }
.helmut-refresh-core--done { color: #34c07a; animation: helmutRefreshPop .5s cubic-bezier(.22, 1.2, .36, 1) both; }
.helmut-refresh-core--done svg { width: 40px; height: 40px; }
@keyframes helmutRefreshPulse { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.045); opacity: 1; } }
@keyframes helmutRefreshPop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes helmutRefreshIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .helmut-refresh, .helmut-refresh-ring, .helmut-refresh-core--done { animation: none; } }
@media (max-width: 380px) { .helmut-refresh-core { width: 112px; height: 112px; } .helmut-refresh-title { font-size: 17px; } }
/* App-Start-Ladezustand (helmut-refresh--intro): an den Premium-Refresh angelehnt,
   aber ruhiger — etwas kleinerer Kreis, weicherer Titel, kein Fortschrittsbalken.
   Klar getrennt vom manuellen Refresh (der Fortschritt/Abschluss zeigt). */
.helmut-refresh--intro { min-height: 56vh; gap: 18px; }
.helmut-refresh--intro .helmut-refresh-core { width: 108px; height: 108px; }
.helmut-refresh--intro .helmut-refresh-title { font-weight: 500; color: var(--muted-2); }

.helmut-thinking-screen h1 {
  margin: 12px 0 0;
  color: var(--command-text);
  font-size: clamp(22px, 3.6vw, 30px);
  font-weight: 560;
  letter-spacing: -.02em;
}

.helmut-thinking-screen p,
.helmut-assessment-head small {
  margin: 0;
  color: rgba(245, 241, 232, .58);
  font-size: 14px;
}

.helmut-assessment-foot small {
  margin: 0;
  color: rgba(245, 241, 232, .46);
  font-size: 12px;
}

.helmut-checks {
  display: grid;
  gap: 14px;
  margin-top: 42px;
  color: rgba(245, 241, 232, .58);
  text-align: left;
}

.helmut-checks span::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  border: 1px solid rgba(245, 241, 232, .22);
  border-radius: 4px;
  color: rgba(249, 205, 127, .86);
  font-size: 10px;
}

.refresh-cooldown {
  opacity: .35;
  cursor: default;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--muted);
}

.pipeline-progress-bar {
  width: 100%;
  max-width: 280px;
  height: 3px;
  background: rgba(245, 241, 232, .12);
  border-radius: 2px;
  margin: 28px auto 0;
  overflow: hidden;
}
.pipeline-progress-fill {
  height: 100%;
  background: var(--accent, #8c5cff);
  border-radius: 2px;
  transition: width 1.2s ease;
}
.pipeline-steps { margin-top: 20px; }
.pipeline-step { font-size: 13px; color: rgba(245, 241, 232, .38); white-space: pre; }
.pipeline-step.done { color: rgba(249, 205, 127, .7); }
.pipeline-step.active { color: rgba(245, 241, 232, .9); }

.helmut-assessment {
  min-height: min(72vh, 760px);
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 52px);
}

.helmut-assessment-head h1 {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--command-text);
  font-size: clamp(26px, 4.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.helmut-note,
.helmut-reason {
  border: 1px solid rgba(245, 241, 232, .09);
  border-radius: 22px;
  background: rgba(255, 255, 255, .035);
  padding: clamp(22px, 3vw, 30px);
}

.helmut-note {
  display: grid;
  gap: 18px;
}

.priority-status {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(249, 205, 127, .18);
  border-radius: 999px;
  color: rgba(249, 205, 127, .92);
  background: rgba(249, 205, 127, .065);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.priority-status.risk {
  border-color: rgba(243, 106, 116, .22);
  color: #ff8a92;
  background: rgba(243, 106, 116, .075);
}

.priority-status.chance {
  border-color: rgba(24, 228, 155, .20);
  color: #65e8b4;
  background: rgba(24, 228, 155, .07);
}

.priority-status.changed {
  border-color: rgba(111, 143, 247, .24);
  color: #aebdff;
  background: rgba(111, 143, 247, .08);
}

.helmut-assessment-typing {
  align-content: center;
}

.helmut-typewriter {
  min-height: clamp(260px, 42vh, 460px);
  display: flex;
  align-items: flex-start;
  background:
    radial-gradient(circle at 18% 0%, rgba(134, 91, 255, .10), transparent 38%),
    rgba(255, 255, 255, .035);
}

.helmut-typewriter p {
  white-space: pre-wrap;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.58;
}

.typing-cursor {
  display: inline-block;
  width: .54em;
  height: 1.1em;
  margin-left: 4px;
  transform: translateY(2px);
  border-right: 2px solid rgba(249, 205, 127, .9);
  animation: cursorBlink 860ms steps(1) infinite;
}

@keyframes cursorBlink {
  0%, 42% { opacity: 1; }
  43%, 100% { opacity: 0; }
}

.helmut-note p,
.helmut-reason p {
  margin: 0;
  color: rgba(245, 241, 232, .82);
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.5;
}

.helmut-note div {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.helmut-reason {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.helmut-reason.risk span {
  color: #f36a74;
}

.helmut-assessment-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 16px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(245, 241, 232, .08);
}

.helmut-assessment-foot small {
  min-width: max-content;
}

.helmut-source a {
  color: inherit;
  font: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 241, 232, .24);
}

.helmut-source a:hover {
  color: rgba(245, 241, 232, .78);
  border-bottom-color: rgba(245, 241, 232, .5);
}

.helmut-assessment-foot .text-button {
  margin-left: auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 241, 232, .10);
  border-radius: 999px;
  color: rgba(245, 241, 232, .55);
  font-size: 12px;
  text-align: center;
}

.helmut-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.mobile-dock {
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.mobile-dock .nav-helmut span {
  width: 28px !important;
  height: 28px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

@media (max-width: 680px) {
  .topbar-meta {
    gap: 8px;
  }

  .profile-avatar {
    width: 34px;
    height: 34px;
    font-size: 11px;
  }

  .lage-card {
    min-height: 58vh;
    padding: 26px 22px;
    border-radius: 28px;
  }

  .lage-card-head {
    display: grid;
    gap: 10px;
  }

  .lage-card-head small {
    max-width: none;
    text-align: left;
  }

  .lage-card h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .lage-card p {
    font-size: 17px;
  }

  .helmut-thinking-screen,
  .helmut-assessment {
    min-height: 68vh;
    border-radius: 28px;
  }

  .helmut-thinking-screen {
    padding: 34px 22px;
  }

  .helmut-core {
    width: 112px;
    height: 112px;
    font-size: 44px;
  }

  .helmut-checks {
    margin-top: 28px;
  }

  .helmut-assessment {
    padding: 18px 18px;
  }

  .helmut-note,
  .helmut-reason {
    padding: 20px;
    border-radius: 20px;
  }

  .helmut-reason {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .helmut-note p,
  .helmut-reason p {
    font-size: 16px;
  }

  .helmut-actions .primary-button,
  .helmut-actions .secondary-button {
    width: 100%;
  }

  .brief-mini {
    grid-template-columns: 1fr;
    padding: 20px;
    border-radius: 22px;
  }

  .brief-mini .secondary-button,
  .brief-mini .primary-button {
    width: 100%;
  }
}

/* Stable mobile navigation geometry */
@media (max-width: 920px) {
  .content-shell {
    padding-bottom: calc(136px + env(safe-area-inset-bottom));
  }

  .mobile-dock {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: center !important;
    min-height: calc(56px + env(safe-area-inset-bottom)) !important;
    padding-top: 4px !important;
    padding-bottom: calc(4px + env(safe-area-inset-bottom)) !important;
  }

  .mobile-dock button,
  .mobile-dock button.active {
    width: 100%;
    height: 44px !important;
    min-height: 44px !important;
    align-content: center;
    gap: 3px !important;
    padding: 0 4px !important;
    background: transparent !important;
    transform: none !important;
  }

  .mobile-dock button span {
    width: 24px !important;
    height: 24px !important;
    margin: 0;
  }

  .mobile-dock button.active span {
    color: #cbb8ff;
    border-color: rgba(140, 92, 255, .34);
    background: rgba(140, 92, 255, .16);
    box-shadow: 0 0 24px rgba(140, 92, 255, .18);
  }

  .mobile-dock button i {
    top: 12px;
    right: max(20px, calc(50% - 30px));
  }
}

/* --- Account-Modus: Login, Topbar-Konto, Admin & Tagesinput --- */
.account-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.account-chip {
  font-size: 12px;
  color: var(--muted);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-switch {
  background: var(--paper);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 13px;
  max-width: 200px;
}

.account-logout {
  background: transparent;
  color: var(--accent-ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.account-logout:hover {
  border-color: var(--accent);
}

.account-logout.btn-confirm {
  border-color: var(--danger) !important;
  color: var(--danger) !important;
  background: rgba(255, 89, 103, .08) !important;
  font-weight: 600;
}

.admin-last-login {
  color: var(--muted-2);
  font-size: 12px;
  white-space: nowrap;
}

.sidebar-logout {
  margin-top: 10px;
  width: 100%;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.admin-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--soft-shadow);
}

.admin-card h3 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}

.admin-card > .admin-section-title {
  margin: 0 0 4px;
}

.admin-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0;
}

.admin-table-wrap { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-table tbody tr:hover td {
  background: rgba(255, 255, 255, .02);
}

.admin-table th {
  color: var(--muted-2);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: .06em;
  padding-top: 0;
  padding-bottom: 10px;
}

.admin-pill {
  display: inline-block;
  font-size: 11px;
  border-radius: 999px;
  padding: 2px 8px;
}

.admin-pill-on { background: rgba(57, 209, 143, .16); color: var(--chance); }
.admin-pill-off { background: rgba(255, 89, 103, .16); color: var(--danger); }
.billing-ok   { background: rgba(57, 209, 143, .16); color: var(--chance); }
.billing-warn { background: rgba(251, 191, 36, .16); color: #fbbf24; }
.billing-overdue { background: rgba(255, 89, 103, .18); color: var(--danger); font-weight: 600; }
.billing-none { background: rgba(148, 163, 184, .1); color: var(--muted); }

.billing-cell { white-space: nowrap; }
.billing-date-input {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  background: var(--surface-2, rgba(255,255,255,.05));
  border: 1px solid var(--border, rgba(255,255,255,.1));
  border-radius: 6px;
  color: var(--text);
  padding: 2px 6px;
  width: 130px;
  cursor: pointer;
}

.admin-form,
.admin-inline-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-inline-form {
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 12px;
  align-items: center;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-inline-form select,
.admin-inline-form input[type="password"] {
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color .15s ease;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.admin-inline-form select:focus {
  outline: none;
  border-color: rgba(111, 143, 247, .5);
}

.admin-form input::placeholder,
.admin-inline-form input::placeholder { color: var(--muted-2); }

.admin-form textarea { resize: vertical; }

.admin-form-error {
  color: var(--danger);
  font-size: 12px;
  min-height: 14px;
}

.admin-log-line {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0;
  word-break: break-word;
}

.admin-log-line small { color: var(--muted-2); margin-right: 6px; }

.daily-input-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.daily-input-head strong { color: var(--text); font-size: 15px; }

.daily-input-time {
  font-size: 12px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 2px 9px;
}

.daily-input-head [data-remove-daily-input] { margin-left: auto; }

.daily-input-item p { margin: 6px 0; font-size: 13px; }

/* --- Passwort anzeigen/verbergen --- */
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  flex: 1;
  width: 100%;
  padding-right: 92px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--accent-ink);
  font-size: 12px;
  padding: 5px 10px;
  cursor: pointer;
}

.password-toggle:hover { border-color: var(--accent); }

.pilot-access-form .password-field { width: 100%; }

/* --- Admin-Tabellen: auf kleinen Screens als gestapelte Karten --- */
@media (max-width: 720px) {
  .admin-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }
  .admin-table tr {
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, .02);
  }
  .admin-table td {
    border: none;
    padding: 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    text-align: right;
  }
  .admin-table td::before {
    content: attr(data-label);
    color: var(--muted-2);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-align: left;
    flex: 0 0 auto;
  }
  .admin-table td.admin-actions-cell {
    justify-content: flex-end;
    padding-top: 10px;
  }
  .admin-table td.admin-actions-cell::before {
    display: none;
  }
  .admin-table td.admin-actions-cell {
    flex-wrap: wrap;
    gap: 8px;
  }
  .admin-table td.admin-actions-cell .account-logout {
    flex: 1 1 calc(50% - 4px);
    width: auto;
    margin: 0;
    padding: 10px;
    font-size: 13px;
  }
  /* "Bezahlt bis": Label auf eigener Zeile, Inhalt darunter ausgerichtet. */
  .admin-table td.billing-cell {
    flex-wrap: wrap;
    justify-content: flex-start;
    text-align: left;
  }
  .admin-table td.billing-cell::before {
    flex: 1 1 100%;
  }
  .admin-table td.billing-cell .billing-date-input {
    flex: 1 1 auto;
    width: auto;
    min-width: 150px;
    margin-top: 0;
  }
  /* Inline-Formulare (Passwort zuruecksetzen, Zuweisen) sauber stapeln. */
  .admin-inline-form {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-inline-form > * {
    width: 100%;
  }
  .admin-inline-form .password-field {
    width: 100%;
    min-width: 0;
  }
}

/* --- Admin: neues Page-Layout --- */
.admin-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 48px;
}

.admin-header {
  padding: 0;
}

.admin-title {
  margin: 6px 0 4px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  line-height: 1.1;
}

.admin-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--muted-2);
}

/* Ruhiger Versions-Stempel im Admin-Header (Deploy-Identität auf einen Blick). */
.admin-version-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--muted-2);
  white-space: nowrap;
}

/* 30-Sekunden-Betreiber-Übersicht: kompakte Statuskacheln, ruhig & semantisch.
   Farbe nur auf Punkt/Status/linkem Rand — keine laute Vollflächen-Alarmoptik. */
.op-overview { margin: 14px 0 20px; }
.op-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.op-tile {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--card, rgba(14, 20, 34, .88));
  border: 1px solid var(--line, rgba(226, 232, 240, .12));
  border-left: 3px solid var(--muted-2, rgba(245, 241, 232, .46));
  min-width: 0;
}
.op-tile-top { display: flex; align-items: center; gap: 7px; }
.op-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); flex: none; }
.op-tile-label {
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.op-tile-status { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.2; }
.op-tile-sub { font-size: 12px; color: var(--muted); line-height: 1.35; }
.op-tile-time { font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.op-tile--ok    { border-left-color: #34c759; }
.op-tile--ok    .op-dot { background: #34c759; }
.op-tile--ok    .op-tile-status { color: #34c759; }
.op-tile--warn  { border-left-color: #ff9f0a; }
.op-tile--warn  .op-dot { background: #ff9f0a; }
.op-tile--warn  .op-tile-status { color: #ff9f0a; }
.op-tile--bad   { border-left-color: var(--danger); }
.op-tile--bad   .op-dot { background: var(--danger); }
.op-tile--bad   .op-tile-status { color: var(--danger); }
.op-tile--unknown { border-left-color: var(--muted-2); }

/* Klickbare Kacheln = sichere interne Sprungmarken. Ruhig, Apple-like: dezenter
   Chevron, sanfter Hover/Active/Focus. Kein lauter Button. */
a.op-tile, a.op-tile:visited { text-decoration: none; color: inherit; }
.op-tile--link { cursor: pointer; transition: transform .12s ease, border-color .12s ease, background .12s ease; -webkit-tap-highlight-color: transparent; }
.op-tile--link:hover { background: rgba(255, 255, 255, .04); transform: translateY(-1px); }
.op-tile--link:active { transform: translateY(0); background: rgba(255, 255, 255, .06); }
.op-tile--link:focus-visible { outline: 2px solid var(--accent, #6f8ff7); outline-offset: 2px; }
.op-tile-chevron { margin-left: auto; font-size: 16px; line-height: 1; color: var(--muted-2); transition: transform .12s ease, color .12s ease; }
.op-tile--link:hover .op-tile-chevron { color: var(--text); transform: translateX(2px); }

/* Klickbare Handlungsbedarf-Hinweise (gleiche ruhige Sprach-Sprache). */
a.ac-item, a.ac-item:visited { text-decoration: none; color: inherit; }
.ac-item--link { cursor: pointer; transition: transform .12s ease, background .12s ease; -webkit-tap-highlight-color: transparent; }
.ac-item--link:hover { background: rgba(255, 255, 255, .035); transform: translateY(-1px); }
.ac-item--link:active { transform: translateY(0); }
.ac-item--link:focus-visible { outline: 2px solid var(--accent, #6f8ff7); outline-offset: 2px; }
.ac-chevron { align-self: center; margin-left: auto; font-size: 17px; line-height: 1; color: var(--muted-2); transition: transform .12s ease, color .12s ease; flex: none; }
.ac-item--link:hover .ac-chevron { color: var(--text); transform: translateX(2px); }

/* Sanfter Sprung + dezenter Flash am Zielabschnitt (1,6 s, ohne Layout-Shift). Das
   sanfte Scrollen macht der Sprung-Handler selbst (scrollIntoView) — bewusst KEIN
   globales scroll-behavior, um die uebrige App nicht zu beeinflussen. scroll-margin
   haelt das Ziel frei von fixer Topbar / mobiler Bottom-Navigation. */
.op-overview, .admin-sec, #admin-recovery { scroll-margin-top: 76px; scroll-margin-bottom: 92px; }
@keyframes adminJumpFlash {
  0%   { box-shadow: 0 0 0 0 rgba(111, 143, 247, 0); }
  18%  { box-shadow: 0 0 0 3px rgba(111, 143, 247, .30); }
  100% { box-shadow: 0 0 0 0 rgba(111, 143, 247, 0); }
}
.admin-jump-flash { animation: adminJumpFlash 1.6s ease-out; border-radius: 14px; }
@media (prefers-reduced-motion: reduce) {
  .admin-jump-flash { animation: none; }
}

/* Erklärungsebene: kleines ruhiges Info-Symbol + Popover (Hover/Fokus/Tap). */
.admin-info-wrap { position: relative; display: inline-flex; vertical-align: middle; margin-left: 5px; }
.admin-info-btn {
  width: 15px; height: 15px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line, rgba(226, 232, 240, .28)); background: transparent;
  color: var(--muted-2); font-size: 10px; font-weight: 700; line-height: 1; font-style: italic;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent; transition: color .12s ease, border-color .12s ease;
}
.admin-info-btn:hover { color: var(--text); border-color: var(--muted-2); }
.admin-info-btn:focus-visible { outline: 2px solid var(--accent, #6f8ff7); outline-offset: 2px; }
.admin-info-pop {
  position: absolute; top: calc(100% + 7px); left: 0; z-index: 40;
  width: max-content; max-width: min(260px, calc(100vw - 28px));
  padding: 9px 11px; border-radius: 10px;
  background: #10192b; border: 1px solid var(--line, rgba(226, 232, 240, .16));
  box-shadow: 0 10px 28px rgba(0, 0, 0, .38);
  font-size: 12.5px; font-weight: 400; line-height: 1.4; color: var(--text); text-align: left;
  white-space: normal; opacity: 0; visibility: hidden; transform: translateY(-3px);
  transition: opacity .12s ease, transform .12s ease, visibility .12s;
  pointer-events: none;
}
.admin-info-pop--flip { left: auto; right: 0; }
.admin-info-wrap:hover .admin-info-pop,
.admin-info-btn:focus-visible + .admin-info-pop,
.admin-info-btn[aria-expanded="true"] + .admin-info-pop {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}

/* Eingeklappte Begriffs-Legende (kein grosser Erklärtext in der Hauptansicht). */
.admin-glossary { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .015); }
.admin-glossary[open] { background: rgba(255, 255, 255, .025); }
.admin-gl-list { margin: 0; padding: 4px 14px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.admin-gl-item { display: block; }
.admin-gl-item dt { font-size: 12.5px; font-weight: 700; color: var(--text); }
.admin-gl-item dd { margin: 1px 0 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
@media (max-width: 620px) { .admin-gl-list { grid-template-columns: 1fr; } }
.op-warnings { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.op-warning {
  margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.4;
  padding: 8px 11px; border-radius: 9px;
  background: rgba(255, 159, 10, .08); border: 1px solid rgba(255, 159, 10, .18);
}
@media (max-width: 1100px) { .op-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .op-tiles { grid-template-columns: repeat(2, 1fr); } }

/* Betreiber-Kontrollzentrum: klare Abschnitte + einklappbare Details. */
.admin-sec { margin: 22px 0; }
.admin-sec-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin: 0 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line, rgba(226, 232, 240, .12));
}
.admin-sec-title { margin: 0; font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.admin-sec-sub { font-size: 12.5px; color: var(--muted-2); }

.admin-details { margin: 10px 0 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .015); }
.admin-details[open] { background: rgba(255, 255, 255, .025); }
.admin-details-sum {
  cursor: pointer; list-style: none; padding: 11px 14px;
  font-size: 13px; font-weight: 600; color: var(--muted); user-select: none;
  display: flex; align-items: center; gap: 8px;
}
.admin-details-sum::-webkit-details-marker { display: none; }
.admin-details-sum::before { content: "›"; font-size: 16px; color: var(--muted-2); transition: transform .15s ease; }
.admin-details[open] > .admin-details-sum::before { transform: rotate(90deg); }
.admin-details-sum:hover { color: var(--text); }
.admin-details-body { padding: 4px 14px 14px; }

/* Handlungsbedarf */
.ac-list { display: flex; flex-direction: column; gap: 8px; }
.ac-item {
  display: flex; gap: 11px; padding: 11px 13px;
  border-radius: 11px; background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--muted-2);
}
.ac-item--warn { border-left-color: #ff9f0a; }
.ac-item--bad  { border-left-color: var(--danger); }
.ac-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; background: var(--muted-2); }
.ac-item--warn .ac-dot { background: #ff9f0a; }
.ac-item--bad  .ac-dot { background: var(--danger); }
.ac-body { min-width: 0; }
.ac-title { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--text); }
.ac-detail { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.ac-empty {
  margin: 0; padding: 13px; border-radius: 11px; font-size: 13px; color: var(--muted);
  background: rgba(52, 199, 89, .06); border: 1px solid rgba(52, 199, 89, .16);
}

/* Datenmotor-Kompaktkopf */
.dm-summary {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px;
}
.dm-cell {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
  padding: 10px 12px; border-radius: 11px; background: var(--card); border: 1px solid var(--line);
}
.dm-k { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap; }
.dm-v { font-size: 15px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.dm-v--bad { color: var(--danger); }

/* Recovery klar als interner Bereich markiert */
.admin-recovery-wrap { margin-top: 12px; border: 1px dashed rgba(255, 159, 10, .3); border-radius: 12px; padding: 10px 12px; }
.admin-recovery-flag { margin: 0 0 4px; font-size: 12px; color: #ff9f0a; font-weight: 600; }

/* Profil-Ampelpunkt in der kompakten Liste */
.pf-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: middle; background: var(--muted-2); }
.pf-dot--ok { background: #34c759; }
.pf-dot--warn { background: #ff9f0a; }
.pf-dot--bad { background: var(--danger); }
.admin-table--compact th, .admin-table--compact td { padding-top: 8px; padding-bottom: 8px; font-size: 13px; }

.admin-stats-row--3 { grid-template-columns: repeat(3, 1fr); }
.admin-sys-note { margin: 10px 0 0; font-size: 11.5px; color: var(--muted-2); }

@media (max-width: 900px) {
  .dm-summary { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .dm-summary { grid-template-columns: repeat(2, 1fr); }
  .admin-sec-title { font-size: 16px; }
}

/* Stats row */
.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.admin-stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .18s ease;
}

.admin-stat-card:hover { border-color: rgba(111, 143, 247, .3); }

.admin-stat-num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1;
}

.admin-stat-label {
  font-size: 12px;
  color: var(--muted-2);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Interner Admin-Datenstatus (mobile-first, vertikale Karten) ───────────── */
.ds-status { display: flex; flex-direction: column; gap: 14px; margin: 12px 0 40px; }
.ds-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ds-note { color: var(--muted-2); font-size: 13px; margin: 0; }
.ds-note--warn { color: #b26a00; }
.ds-sub { color: var(--muted-2); font-weight: 500; }

.ds-ampel { display: inline-block; padding: 3px 12px; border-radius: 999px; color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .05em; white-space: nowrap; }
.ds-ampel--gruen { background: #2e7d32; }
.ds-ampel--gelb { background: #f9a825; color: #3a2c00; }
.ds-ampel--rot { background: #c62828; }
.ds-ampel--unbekannt { background: #777; }

.ds-card, .ds-account-card {
  background: var(--card, #fff);
  border: 1px solid var(--line, #e3e3e3);
  border-radius: 14px;
  padding: 14px 16px;
}
.ds-card-title, .ds-accounts-title {
  font-size: 13px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 8px;
}
.ds-accounts-title { margin: 6px 0 2px; }

/* Zeile: Label links, Wert rechts — nie zusammenklebend */
.ds-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid var(--line, #ececec); font-size: 14px;
}
.ds-row:last-child { border-bottom: none; }
.ds-row-label { color: var(--muted-2); flex: 1 1 auto; min-width: 0; }
.ds-row-value { color: var(--text); font-weight: 600; text-align: right; flex: 0 0 auto; max-width: 60%; overflow-wrap: anywhere; }
.ds-row--wide { flex-direction: column; align-items: stretch; }
.ds-row--wide .ds-row-value { max-width: 100%; text-align: left; }

.ds-unavail { color: var(--muted-2); font-weight: 500; font-style: italic; }
.ds-ok { color: #2e7d32; font-weight: 700; }
.ds-warn { color: #b26a00; font-weight: 600; }
.ds-bad { color: #c62828; font-weight: 700; }

.ds-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ds-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--line, #eee); color: var(--text); font-size: 12px; font-weight: 500; }
.ds-chip b { font-weight: 800; }

/* Sprint 8 — Admin Quellenarchitektur (ruhig, wiederverwendete Tokens). */
.sa-mig-note { background: var(--accent-soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.sa-block { margin-top: 14px; }
.sa-block:first-child { margin-top: 0; }
.sa-h3 { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 8px; letter-spacing: .01em; }
.sa-h3 .sa-count { color: var(--muted-2); font-weight: 500; margin-left: 6px; }
.sa-list { display: flex; flex-direction: column; gap: 8px; }
.sa-item { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.sa-item-main { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sa-item-name { font-weight: 600; color: var(--text); }
.sa-sub { display: block; margin-top: 4px; font-size: 12px; color: var(--muted-2); }
.sa-sub b { color: var(--muted); font-weight: 700; }
.sa-note { font-size: 12px; color: var(--muted-2); margin: 8px 0 0; }
.sa-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sa-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--line); color: var(--muted-2); white-space: nowrap; }
.sa-badge--ok { background: rgba(57, 209, 143, .16); color: #39d18f; }
.sa-badge--bad { background: rgba(255, 89, 103, .16); color: var(--danger); }
.sa-badge--warn { background: rgba(240, 180, 90, .16); color: #f0b45a; }
.sa-badge--muted { background: var(--line); color: var(--muted-2); }
.sa-missing { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 4px; }
.sa-detail-card { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 10px; }
.sa-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }

.ds-accounts { display: flex; flex-direction: column; gap: 12px; }
.ds-account-card { display: flex; flex-direction: column; }
.ds-account-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ds-account-name { font-weight: 700; font-size: 15px; color: var(--text); margin-right: auto; overflow-wrap: anywhere; }

.ds-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; background: #e0e7ff; color: #3730a3; }
.ds-badge--pilot { background: #e0e7ff; color: #3730a3; }
.ds-badge--demo { background: #fef3c7; color: #92400e; }
.ds-badge--test { background: #f3e8ff; color: #6b21a8; }
.ds-badge--echt { background: #dcfce7; color: #166534; }

/* Mehrmandantenfaehigkeit Phase 4: Profil-Zustandsbadge + Aktionen + Editor */
.ds-state { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.ds-state--ok { background: #dcfce7; color: #166534; }
.ds-state--warn { background: #fef3c7; color: #92400e; }
.ds-state--bad { background: #fee2e2; color: #b91c1c; }
.ds-state--sub { background: #eef2f7; color: #64748b; }
.ds-account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ds-mini-btn { font-size: 12px; padding: 6px 12px; }
.ds-profile-editor { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border, #e2e8f0); }
.ds-editor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.ds-editor-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted-2); }
.ds-editor-field input, .ds-editor-field select { padding: 7px 9px; border: 1px solid var(--border, #e2e8f0); border-radius: 9px; font-size: 13px; background: var(--surface, #fff); color: var(--text); }
.ds-editor-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ds-editor-msg { color: var(--muted-2); font-size: 12px; }

.ds-error { border: 1px solid #f2c2c2; background: rgba(198,40,40,.06); border-radius: 12px; padding: 12px 14px; }
.ds-error-head { font-weight: 800; color: #c62828; font-size: 14px; }
.ds-error-reason { color: var(--text); font-size: 13px; margin-top: 3px; }
.ds-error-meta { color: var(--muted-2); font-size: 12px; margin-top: 4px; }
.ds-error-detail { margin-top: 8px; }
.ds-error-detail summary { cursor: pointer; color: var(--muted-2); font-size: 12px; }
.ds-error-detail code { display: block; margin-top: 6px; font-size: 11px; color: var(--muted-2); white-space: pre-wrap; word-break: break-word; }

.ds-legend { margin-top: 4px; }
.ds-legend summary { cursor: pointer; color: var(--muted-2); font-size: 13px; }
.ds-legend ul { font-size: 12px; color: var(--muted-2); line-height: 1.6; margin: 8px 0 0; padding-left: 18px; }

/* Pipeline-Recovery-Aktionen (nur Admin, ruhig & verständlich) */
.ds-recovery-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ds-recovery-btn {
  appearance: none; border: 1px solid var(--line); background: var(--card); color: var(--text);
  font: inherit; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 10px; cursor: pointer;
}
.ds-recovery-btn:hover:not(:disabled) { border-color: rgba(249, 205, 127, .55); }
.ds-recovery-btn:disabled { opacity: .45; cursor: default; }
.ds-recovery-btn--warn:not(:disabled) { border-color: rgba(198, 40, 40, .5); color: #c62828; }
.ds-recovery-btn--primary:not(:disabled) { border-color: rgba(214, 160, 64, .6); color: rgba(214, 160, 64, .95); }
.ds-recovery-result { margin-top: 12px; }
.ds-recovery-result-head { font-weight: 700; font-size: 13px; }
.ds-recovery-json {
  margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(140, 140, 150, .1);
  font-size: 11px; line-height: 1.5; color: var(--muted-2); white-space: pre-wrap; word-break: break-word; overflow-x: auto;
}
.ds-diag-legend { margin: 8px 0 2px; }
.ds-diag-legend p { margin: 0 0 4px; color: var(--muted-2); font-size: 12px; line-height: 1.45; }
.ds-diag-legend strong { color: var(--muted-1, var(--muted-2)); font-weight: 600; }
.ds-diag-kandidaten { margin-top: 10px; }
.ds-diag-kandidat { margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: rgba(140, 140, 150, .08); }
.ds-diag-table-wrap { margin-top: 8px; overflow-x: auto; }
.ds-diag-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.ds-diag-table th, .ds-diag-table td { text-align: left; padding: 4px 8px; border-bottom: 1px solid rgba(140, 140, 150, .18); white-space: nowrap; }
.ds-diag-table th { color: var(--muted-2); font-weight: 600; }

/* Desktop: Account-Karten nebeneinander */
@media (min-width: 720px) {
  .ds-accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

/* Two-column body */
.admin-body {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
  align-items: start;
}

.admin-col-primary,
.admin-col-secondary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Flush card (header bleeds to edge) */
.admin-card-flush {
  padding: 0;
}

.admin-card-flush .admin-table-wrap {
  padding: 0;
}

.admin-card-flush .admin-subsection {
  padding: 0 20px 20px;
}

/* Card header */
.admin-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 20px 0;
  margin-bottom: 16px;
}

.admin-section-title {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}

.admin-section-sub {
  margin: 0;
  font-size: 12px;
  color: var(--muted-2);
}

/* Table inside flush card */
.admin-card-flush .admin-table th,
.admin-card-flush .admin-table td {
  padding: 10px 20px;
}

.admin-card-flush .admin-table th:first-child,
.admin-card-flush .admin-table td:first-child {
  padding-left: 20px;
}

/* Sub-section divider */
.admin-subsection {
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
  margin-top: 4px;
}

.admin-subsection-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted-2);
  margin: 0 0 10px;
}

/* User cell with avatar */
.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(111, 143, 247, .22), rgba(165, 69, 98, .18));
  border: 1px solid rgba(111, 143, 247, .2);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-ink);
  letter-spacing: .03em;
}

.admin-user-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.admin-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-email {
  font-size: 11px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Role tags */
.admin-role-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: .02em;
  white-space: nowrap;
}

.admin-role-admin {
  background: rgba(111, 143, 247, .14);
  color: var(--accent-ink);
}

.admin-role-abgeordneter {
  background: rgba(214, 160, 64, .14);
  color: var(--gold);
}

.admin-role-referent {
  background: rgba(57, 209, 143, .12);
  color: var(--chance);
}

.admin-role-demo {
  background: rgba(148, 163, 184, .14);
  color: var(--muted);
}

/* Status tags (mehrstufiger Kundenstatus) */
.admin-status-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: .02em;
  white-space: nowrap;
}

.admin-status-aktiv { background: rgba(57, 209, 143, .16); color: var(--chance); }
.admin-status-eingeladen { background: rgba(111, 143, 247, .16); color: var(--accent-ink); }
.admin-status-testphase { background: rgba(111, 143, 247, .16); color: var(--accent-ink); }
.admin-status-pausiert { background: rgba(251, 191, 36, .16); color: #fbbf24; }
.admin-status-gekuendigt { background: rgba(255, 89, 103, .16); color: var(--danger); }
.admin-status-deaktiviert { background: rgba(148, 163, 184, .12); color: var(--muted); }

/* Bearbeiten-Panel (aufklappbare Zeile) */
.admin-edit-row > td {
  padding: 0 20px 18px !important;
  background: rgba(255, 255, 255, .015);
}

.admin-customer-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--hairline);
}

.admin-customer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-cust-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-cust-field > span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted-2);
}

.admin-cust-field--wide { width: 100%; }

.admin-customer-form input,
.admin-customer-form select,
.admin-customer-form textarea {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--text);
  font-family: inherit;
  transition: border-color .15s ease;
  width: 100%;
}

.admin-customer-form input:focus,
.admin-customer-form select:focus,
.admin-customer-form textarea:focus {
  outline: none;
  border-color: rgba(111, 143, 247, .5);
}

.admin-customer-form textarea { resize: vertical; }

.admin-customer-foot {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-customer-foot .primary-button {
  width: auto;
  padding: 0 20px;
}

/* Loesch-Aktion am Ende der Nutzerkarte: abgesetzt vom Speichern-Bereich, damit
   sie nicht wie eine weitere Formularaktion aussieht, aber jederzeit erreichbar bleibt. */
.admin-user-delete-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

.admin-edit-toggle { margin-bottom: 6px; }

@media (max-width: 720px) {
  .admin-edit-row { border: 1px solid var(--hairline); border-radius: 12px; margin-bottom: 12px; }
  .admin-edit-row > td { display: block; padding: 0 14px 14px !important; text-align: left; }
  .admin-edit-row > td::before { display: none; }
  .admin-customer-grid { grid-template-columns: 1fr; }
}

/* Aktivitäts-Panel (Nutzungs-Tracking im Bearbeiten-Panel) */
.admin-activity {
  padding: 14px 0 4px;
  border-top: 1px solid var(--hairline);
}
.admin-activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.admin-activity-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.admin-activity-num {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  line-height: 1;
}
.admin-activity-num-sm {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.admin-activity-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted-2);
  font-weight: 600;
}

/* Feedback-Inbox (Admin) */
.admin-fb-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.admin-fb-tag.fb-relevant { background: rgba(57, 209, 143, .16); color: var(--chance); }
.admin-fb-tag.fb-nichtrelevant { background: rgba(148, 163, 184, .14); color: var(--muted); }
.admin-fb-tag.fb-falsch { background: rgba(255, 89, 103, .16); color: var(--danger); }
.admin-fb-tag.fb-mehr { background: rgba(57, 209, 143, .12); color: var(--chance); }
.admin-fb-tag.fb-weniger { background: rgba(251, 191, 36, .16); color: #fbbf24; }
.admin-fb-tag.fb-unklar { background: rgba(111, 143, 247, .14); color: var(--accent-ink); }

.admin-fb-comment {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 3px;
  font-style: italic;
}
.admin-fb-done td { opacity: .55; }

/* Mandatsprofile (Admin, read-only) */
.admin-mandate-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.admin-mandate-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .015);
}
.admin-mandate-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.admin-mandate-head strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.admin-mandate-grid {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.admin-mandate-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-mandate-key {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted-2);
  font-weight: 600;
}
.admin-mandate-val {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}

/* Nutzer-Feedback-Widget (Detail-Ansicht) */
.feedback-widget-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 12px;
}
.feedback-widget-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.feedback-chip {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.feedback-chip:hover { border-color: var(--accent); background: rgba(111, 143, 247, .08); }
.feedback-chip:disabled { opacity: .5; cursor: default; }
.feedback-widget-thanks {
  font-size: 14px;
  color: var(--chance);
  font-weight: 600;
  margin: 4px 0;
}

/* Create form field groups */
.admin-field-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px;
}

.admin-form-foot {
  padding: 4px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-create-form input,
.admin-create-form select,
.admin-create-form .password-field input {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  transition: border-color .15s ease;
  width: 100%;
}

.admin-create-form input:focus,
.admin-create-form select:focus {
  outline: none;
  border-color: rgba(111, 143, 247, .5);
}

.admin-create-form input::placeholder { color: var(--muted-2); }

/* Passwortfeld: rechtes Padding fuer den "Anzeigen"-Button wiederherstellen.
   (Die Form-Regeln oben setzen padding und ueberschreiben .password-field input.) */
.admin-create-form .password-field input,
.admin-inline-form .password-field input {
  padding-right: 92px;
}

/* System info grid */
.admin-sys-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: 12px;
}

.admin-sys-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-sys-key {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted-2);
  font-weight: 600;
}

.admin-sys-val {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

/* 5-column stats row variant */
.admin-stats-row--5 {
  grid-template-columns: repeat(5, 1fr);
}

/* Cost stat card sub-value (EUR under USD) */
.admin-stat-num--cost { color: #3b82f6; }
.admin-stat-sub {
  font-size: 14px;
  font-weight: 600;
  color: #22c55e;
  margin-top: -4px;
}
.admin-stat-period {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted-2);
}

/* Activity badge in user table */
.admin-activity-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
}
.admin-activity-active {
  background: rgba(34, 197, 94, .15);
  color: #22c55e;
}
.admin-activity-idle {
  background: rgba(148, 163, 184, .12);
  color: var(--muted);
}
.admin-activity-none {
  background: transparent;
  color: var(--muted-2);
}

/* Cost bar chart */
.cost-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 12px;
  font-size: 11px;
  color: var(--muted-2);
}
.cost-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.cost-legend-dot--usd { background: #3b82f6; }
.cost-legend-dot--eur { background: #22c55e; }
.cost-legend-rate { margin-left: auto; }

.cost-bar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cost-bar-item { display: flex; flex-direction: column; gap: 4px; }
.cost-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.cost-bar-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.cost-bar-amounts { font-size: 11px; white-space: nowrap; flex-shrink: 0; }
.cost-usd { color: #3b82f6; font-weight: 600; }
.cost-sep { color: var(--muted-2); margin: 0 2px; }
.cost-eur { color: #22c55e; font-weight: 600; }
.cost-bar-track {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cost-bar-fill {
  height: 4px;
  border-radius: 2px;
  transition: width .3s ease;
  min-width: 2px;
}
.cost-bar-fill--usd { background: #3b82f6; }
.cost-bar-fill--eur { background: #22c55e; }

/* Cost bar name variant without max-width truncation (for engine chart) */
.cost-bar-name--wide { max-width: none; }

/* Percentage share badge in engine chart */
.cost-share {
  display: inline-block;
  margin-left: 5px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(111, 143, 247, .12);
  color: var(--accent-ink, #6f8ff7);
  border-radius: 10px;
  padding: 1px 5px;
}

/* Charts row: Engine (left) + User costs (right) */
.admin-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Crawl stats card */
.admin-crawl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.admin-crawl-metric {
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.admin-crawl-num {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  line-height: 1;
}
.admin-crawl-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted-2);
  font-weight: 600;
}
.admin-crawl-errors {
  margin-top: 10px;
  font-size: 11px;
  color: var(--danger, #ff5967);
  padding: 6px 10px;
  background: rgba(255, 89, 103, .06);
  border-radius: 6px;
}
.crawl-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: 4px;
  flex-shrink: 0;
}
.crawl-dot--green  { background: #3ecf8e; box-shadow: 0 0 4px rgba(62,207,142,.5); }
.crawl-dot--yellow { background: #f5a623; box-shadow: 0 0 4px rgba(245,166,35,.4); }
.crawl-dot--red    { background: #ff5967; box-shadow: 0 0 4px rgba(255,89,103,.5); }
.crawl-dot--gray   { background: var(--muted-2, #666); }
.crawl-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted-2);
  align-items: center;
}
.crawl-legend .crawl-dot {
  display: inline-block;
  margin-bottom: 0;
  margin-right: 4px;
  vertical-align: middle;
}

/* Crawl-Trichter (Funnel) */
.crawl-funnel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.cf-stage {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cf-stage-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 178px;
  flex-shrink: 0;
}
.cf-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 2px;
  width: fit-content;
}
.cf-badge--blue   { background: rgba(74,158,255,.14); color: #4A9EFF; }
.cf-badge--gray   { background: rgba(160,160,180,.1); color: #9ca3af; }
.cf-badge--green  { background: rgba(57,209,143,.12); color: #39d18f; }
.cf-badge--orange { background: rgba(245,130,62,.12); color: #f5823e; }
.cf-badge--violet { background: rgba(139,92,246,.12); color: #8b5cf6; }
.cf-stage-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.cf-stage-desc {
  font-size: 10px;
  color: var(--muted-2);
  line-height: 1.3;
}
.cf-stage-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cf-bar-track {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  overflow: hidden;
}
.cf-bar {
  height: 100%;
  border-radius: 6px;
  min-width: 3px;
  transition: width .45s cubic-bezier(.22,1,.36,1);
}
.cf-bar--blue   { background: linear-gradient(90deg, #2e6ef7, #4A9EFF); }
.cf-bar--gray   { background: #52596a; }
.cf-bar--green  { background: linear-gradient(90deg, #22b76e, #39d18f); }
.cf-bar--orange { background: linear-gradient(90deg, #d95c08, #f5823e); }
.cf-bar--violet { background: linear-gradient(90deg, #5b21b6, #8b5cf6); }
.cf-bar-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 48px;
}
.cf-count {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -.02em;
}
.cf-pct {
  font-size: 10px;
  color: var(--muted-2);
  font-weight: 500;
}
.cf-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted-2);
}
.cf-footer-dur {
  font-weight: 600;
  color: var(--muted);
}
.cf-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 13px;
  margin-top: 8px;
  font-size: 10px;
  color: var(--muted-2);
}
.cf-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.cf-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cf-dot--blue   { background: #4A9EFF; }
.cf-dot--gray   { background: #9ca3af; }
.cf-dot--green  { background: #39d18f; }
.cf-dot--orange { background: #f5823e; }
.cf-dot--violet { background: #8b5cf6; }
@media (max-width: 540px) {
  .cf-stage { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cf-stage-meta { min-width: unset; width: 100%; }
  .cf-stage-bar { width: 100%; }
}

/* Period Toggle */
.admin-period-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.admin-period-btn {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border, rgba(255,255,255,.1));
  background: transparent;
  color: var(--muted-2, #888);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.admin-period-btn:hover {
  background: var(--surface-2, rgba(255,255,255,.06));
  color: var(--text, #fff);
}
.admin-period-btn.is-active {
  background: var(--accent, #4f8ef7);
  border-color: var(--accent, #4f8ef7);
  color: #fff;
}

/* Bottom log row */
.admin-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-log-list {
  margin-top: 12px;
  max-height: 220px;
  overflow-y: auto;
}

/* Sidebar: user card in footer */
.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sidebar-user-avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(111, 143, 247, .28), rgba(165, 69, 98, .22));
  border: 1px solid rgba(111, 143, 247, .25);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-ink);
  letter-spacing: .03em;
}

.sidebar-user-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-user-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-info span {
  display: block;
  font-size: 11px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive: admin layout */
@media (max-width: 1100px) {
  .admin-body {
    grid-template-columns: 1fr;
  }
  .admin-col-secondary {
    flex-direction: row;
    flex-wrap: wrap;
    order: -1;
  }
  .admin-col-secondary > * {
    flex: 1 1 320px;
  }
}

@media (max-width: 800px) {
  .admin-stats-row,
  .admin-stats-row--5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-charts-row { grid-template-columns: 1fr; }
  .admin-col-secondary {
    flex-direction: column;
  }
  .admin-bottom-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .admin-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .admin-stat-num { font-size: 24px; }
}

/* --- Geführter Einstieg (Onboarding-Wizard) --- */
.onboarding-layer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 9, 20, .72);
  backdrop-filter: blur(6px);
}

.onboarding-card {
  width: min(100%, 460px);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--hard-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.onboarding-progress {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.onboarding-body h2 {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--text);
}

.onboarding-lead { color: var(--text); font-size: 15px; margin: 0 0 8px; }
.onboarding-note { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

.onboarding-body label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

.onboarding-body input[type=text],
.onboarding-body select {
  width: 100%;
  margin-top: 6px;
  background: var(--paper);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
}

.onboarding-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.onboarding-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  margin: 0;
  transition: border-color .14s, background .14s, color .14s;
}

.onboarding-chip:has(input:checked),
.onboarding-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.onboarding-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.onboarding-actions .primary-button { margin-left: auto; }
.onboarding-actions .secondary-button { order: -1; }

/* === Light Mode ===================================================== */
/* Aktiv über <html data-theme="light">. Dark bleibt Standard. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef1f6;
  --card: rgba(255, 255, 255, .94);
  --paper: #ffffff;
  --line: rgba(15, 23, 42, .14);
  --hairline: rgba(15, 23, 42, .08);
  --text: #0f1729;
  --muted: rgba(15, 23, 42, .64);
  --muted-2: rgba(15, 23, 42, .60); /* WCAG-AA-Fix: .46 war 3,03:1 -> jetzt 4,7:1 */
  --danger: #d12b39;
  --watch: #b07414;
  --chance: #1f9d63;
  --accent: #4f6fe0;
  --accent-ink: #2c3f9e;
  --accent-soft: rgba(79, 111, 224, .12);
  --signature: #a54562;
  --gold: #b07414;
  --ink-button: #ffffff;
  --soft-shadow: 0 18px 50px rgba(15, 23, 42, .12);
  --hard-shadow: 0 28px 80px rgba(15, 23, 42, .18);
  --command-bg: #f4f6fb;
  --command-panel: rgba(255, 255, 255, .92);
  --command-panel-strong: rgba(255, 255, 255, .98);
  --command-line: rgba(15, 23, 42, .10);
  --command-text: #0f1729;
  --command-muted: rgba(15, 23, 42, .64);
  --command-faint: rgba(15, 23, 42, .46);
  --command-purple: #6d4cff;
  --command-green: #0f9d63;
  --command-red: #d12b39;
  --command-shadow: 0 24px 70px rgba(15, 23, 42, .14);
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 72% 6%, rgba(79, 111, 224, .10), transparent 30%),
    radial-gradient(circle at 12% 18%, rgba(176, 116, 20, .06), transparent 24%),
    linear-gradient(180deg, #f7f9fc 0%, var(--bg) 58%, #e9edf4 100%);
}

/* Theme-Auswahl in den Einstellungen */
.theme-toggle { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.theme-option {
  flex: 1;
  min-width: 90px;
  background: var(--paper);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
}
.theme-option.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
}

/* Light Mode: dunkle Karten-/Panel-Oberflächen (oft als Gradient gesetzt) auf
   helle Flächen umstellen. Text/Border laufen bereits über Variablen. */
:root[data-theme="light"] .list-row,
:root[data-theme="light"] .decision-console,
:root[data-theme="light"] .command-panel,
:root[data-theme="light"] .chief-card,
:root[data-theme="light"] .briefing-block,
:root[data-theme="light"] .agenda-section,
:root[data-theme="light"] .updates-panel,
:root[data-theme="light"] .situational-card,
:root[data-theme="light"] .radar-mini,
:root[data-theme="light"] .empty-card,
:root[data-theme="light"] .loading-card,
:root[data-theme="light"] .article-section,
:root[data-theme="light"] .article-grid > div,
:root[data-theme="light"] .profile-section,
:root[data-theme="light"] .helmut-assessment,
:root[data-theme="light"] .brief-mini,
:root[data-theme="light"] .strategy-answer,
:root[data-theme="light"] .draft-channel-picker,
:root[data-theme="light"] .handoff-panel,
:root[data-theme="light"] .moment-grid > div,
:root[data-theme="light"] .meeting-card,
:root[data-theme="light"] .topic-card,
:root[data-theme="light"] .detail-card,
:root[data-theme="light"] .ops-card,
:root[data-theme="light"] .signal-card,
:root[data-theme="light"] .note-card,
:root[data-theme="light"] .radar-signal-card,
:root[data-theme="light"] .radar-mention-compact {
  background: var(--card) !important;
  box-shadow: var(--soft-shadow);
}

:root[data-theme="light"] .sidebar { background: var(--paper) !important; }
:root[data-theme="light"] .mobile-dock { background: rgba(255, 255, 255, .92) !important; backdrop-filter: blur(24px); border-top-color: var(--line) !important; }
:root[data-theme="light"] .handoff-layer,
:root[data-theme="light"] .updates-layer,
:root[data-theme="light"] .onboarding-layer { background: rgba(15, 23, 42, .28) !important; }
:root[data-theme="light"] .menu-layer { background: var(--paper) !important; }

/* Light mode: text on previously dark panels */
:root[data-theme="light"] .handoff-panel,
:root[data-theme="light"] .handoff-panel * { color: var(--text) !important; }
:root[data-theme="light"] .handoff-head h2,
:root[data-theme="light"] .handoff-head button { color: var(--text) !important; }

/* Primary button: keep purple gradient but ensure legible text */
:root[data-theme="light"] .primary-button {
  color: #ffffff !important;
}

/* Mobile dock: text/icon colors */
:root[data-theme="light"] .mobile-dock button { color: var(--muted) !important; }
:root[data-theme="light"] .mobile-dock button span { color: var(--text) !important; background: var(--card) !important; border-color: var(--line) !important; }
:root[data-theme="light"] .mobile-dock button.active { color: var(--accent-ink) !important; }
:root[data-theme="light"] .mobile-dock button.active span { color: var(--accent-ink) !important; background: var(--accent-soft) !important; border-color: var(--accent) !important; }

/* Helmut-Home logo circle */
:root[data-theme="light"] .helmut-core { color: var(--text) !important; background: rgba(15, 23, 42, .06) !important; }

/* Helmut Assessment: Text lesbar machen im Light Mode */
:root[data-theme="light"] .helmut-note p,
:root[data-theme="light"] .helmut-reason p,
:root[data-theme="light"] .helmut-typewriter p { color: var(--text) !important; }
:root[data-theme="light"] .helmut-assessment-head small,
:root[data-theme="light"] .helmut-assessment-foot small,
:root[data-theme="light"] .helmut-checks { color: var(--muted) !important; }
:root[data-theme="light"] .helmut-source a { color: var(--muted) !important; border-bottom-color: rgba(15, 23, 42, .22) !important; }
:root[data-theme="light"] .helmut-source a:hover { color: var(--text) !important; border-bottom-color: rgba(15, 23, 42, .42) !important; }
:root[data-theme="light"] .helmut-assessment-foot { border-top-color: var(--line) !important; }
:root[data-theme="light"] .helmut-assessment-foot .text-button { border-color: var(--line) !important; color: var(--muted) !important; }
:root[data-theme="light"] .helmut-note,
:root[data-theme="light"] .helmut-reason { border-color: var(--line) !important; background: var(--paper) !important; }
:root[data-theme="light"] .helmut-typewriter { background: var(--paper) !important; }

/* Helmut Hero bullets + Details: hardcodierte near-white Farben überschreiben */
:root[data-theme="light"] .helmut-hero { border-color: var(--line) !important; }
:root[data-theme="light"] .helmut-hero-bullets { border-top-color: var(--line) !important; }
:root[data-theme="light"] .helmut-hero-bullets dt { color: var(--watch) !important; }
:root[data-theme="light"] .helmut-hero-bullets dd { color: var(--muted) !important; }
:root[data-theme="light"] .helmut-detail { border-color: var(--line) !important; background: rgba(15,23,42,.04) !important; }
:root[data-theme="light"] .helmut-detail summary { color: var(--muted) !important; }
:root[data-theme="light"] .helmut-detail summary::after { color: var(--muted-2) !important; }
:root[data-theme="light"] .helmut-detail-body p { color: var(--text) !important; }
:root[data-theme="light"] .helmut-detail--risk > summary { color: var(--danger) !important; }
:root[data-theme="light"] .helmut-detail--risk .helmut-detail-body p { color: var(--danger) !important; }
:root[data-theme="light"] .helmut-brief-card { border-color: var(--line) !important; background: rgba(15,23,42,.04) !important; }
:root[data-theme="light"] .helmut-brief-headline { color: var(--text) !important; }
:root[data-theme="light"] .helmut-brief-bullets dd { color: var(--text) !important; }
:root[data-theme="light"] .helmut-brief-bullets dt { color: var(--watch) !important; }
:root[data-theme="light"] .helmut-brief-rank { background: rgba(15,23,42,.06) !important; color: var(--muted) !important; }
:root[data-theme="light"] .helmut-brief-source { color: var(--muted-2) !important; }
:root[data-theme="light"] .helmut-carousel-count { color: var(--muted) !important; }
:root[data-theme="light"] .helmut-carousel-chip { border-color: var(--line) !important; color: var(--muted) !important; }
:root[data-theme="light"] .helmut-carousel-chip.active { background: rgba(15,23,42,.08) !important; color: var(--text) !important; border-color: var(--muted) !important; }
:root[data-theme="light"] .helmut-carousel-dot { background: rgba(15,23,42,.18) !important; }
:root[data-theme="light"] .helmut-carousel-dot.active { background: var(--text) !important; }
:root[data-theme="light"] .helmut-carousel-arrow { border-color: var(--line) !important; background: rgba(15,23,42,.04) !important; color: var(--text) !important; }
:root[data-theme="light"] .helmut-carousel-arrow:hover:not(:disabled) { background: rgba(15,23,42,.09) !important; }
:root[data-theme="light"] .helmut-carousel-empty { color: var(--muted) !important; }
:root[data-theme="light"] .priority-status { border-color: rgba(15,23,42,.15) !important; color: var(--muted) !important; background: rgba(15,23,42,.05) !important; }

/* Updates layer full-screen panel */
:root[data-theme="light"] .updates-panel { background: var(--paper) !important; }
:root[data-theme="light"] .notification-row { background: var(--card) !important; }

/* Draft channel picker in Büro (mobile media query override) */
:root[data-theme="light"] .draft-channel-picker { background: var(--paper) !important; }

/* Radar: Sektionsgruppen — ganzer Container als eine Karte */
:root[data-theme="light"] .radar-groups {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  box-shadow: var(--soft-shadow) !important;
  overflow: hidden !important;
}
:root[data-theme="light"] .radar-group {
  background: transparent !important;
  border-color: var(--line) !important;
  box-shadow: none !important;
}
:root[data-theme="light"] .radar-group summary {
  padding: 0 20px !important;
}
:root[data-theme="light"] .radar-group-body {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* Andere Karten-Typen */
:root[data-theme="light"] .list-row,
:root[data-theme="light"] .recommendation,
:root[data-theme="light"] .article-grid > div,
:root[data-theme="light"] .article-section,
:root[data-theme="light"] .strategy-answer,
:root[data-theme="light"] .profile-section {
  background: var(--card) !important;
  border-color: var(--line) !important;
  box-shadow: var(--soft-shadow) !important;
}

/* Light Mode: Elemente aus dem Dark-First premium override, die kein Override hatten */
:root[data-theme="light"] .agent-briefing,
:root[data-theme="light"] .quick-panel,
:root[data-theme="light"] .pilot-status,
:root[data-theme="light"] .briefing-ticker b,
:root[data-theme="light"] .briefing-ticker small,
:root[data-theme="light"] .choice-pill,
:root[data-theme="light"] .priority-row,
:root[data-theme="light"] .source-card,
:root[data-theme="light"] .evidence-card,
:root[data-theme="light"] .profile-field {
  background: var(--card) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
  box-shadow: var(--soft-shadow) !important;
}

:root[data-theme="light"] .source-row {
  background: transparent !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}

/* Radar summary (Sektionskopf-Zeile) Textfarbe + Pfeile */
:root[data-theme="light"] .radar-group summary span { color: var(--text) !important; }
:root[data-theme="light"] .radar-group summary i,
:root[data-theme="light"] .radar-group summary i:is(*) {
  border-right: 2px solid rgba(15, 23, 42, .38) !important;
  border-bottom: 2px solid rgba(15, 23, 42, .38) !important;
}

/* Helle Eingabefelder im Light Mode */
:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea {
  background: #ffffff;
  color: var(--text);
  border-color: var(--line);
}

:root[data-theme="light"] .morning-moment,
:root[data-theme="light"] .lage-card,
:root[data-theme="light"] .learning-pulse,
:root[data-theme="light"] .morning-moment .moment-grid > div {
  background: var(--card) !important;
  box-shadow: var(--soft-shadow);
}
/* Lesbarkeit innerhalb heller Karten sicherstellen (Texte, die im Dark-Design
   sehr blass/cremefarben waren). */
:root[data-theme="light"] .morning-moment .moment-grid p,
:root[data-theme="light"] .lage-card p,
:root[data-theme="light"] .learning-pulse p { color: var(--muted) !important; }
:root[data-theme="light"] .morning-moment h2,
:root[data-theme="light"] .lage-card h2,
:root[data-theme="light"] .lage-card h1 { color: var(--text) !important; }

/* --- Parlamentarische Vorgänge (DIP) --- */
.parliament-section { margin: 28px 0; }
.parliament-head h2 { margin: 6px 0 4px; font-size: 26px; color: var(--text); }
.parliament-head p { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.parliament-list { display: grid; gap: 12px; }
.parliament-item {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s ease, transform .15s ease;
}
.parliament-item:hover { border-color: var(--accent); transform: translateY(-1px); }
.parliament-type {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 6px;
}
.parliament-item strong { display: block; font-size: 15px; line-height: 1.35; }
.parliament-item small { color: var(--muted-2); font-size: 12px; }

.parliament-title { display: block; font-size: 15px; line-height: 1.35; font-weight: 600; color: var(--text); text-decoration: none; }
.parliament-title:hover { color: var(--accent-ink); }
.parliament-item .compact-button { margin-top: 10px; }
.parliament-assessing { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.parliament-assessment { margin-top: 10px; border-top: 1px solid var(--hairline); padding-top: 8px; }
.parliament-assessment p { margin: 4px 0; font-size: 13px; color: var(--muted); }
.parliament-assessment b { color: var(--text); }

/* === Lage v2: Fokus + Ampel + einklappbare Bereiche === */
.lage-head { margin-bottom: 8px; }
.lage-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lage-greeting { font-size: 15px; font-weight: 600; color: var(--text); }
.lage-date { font-size: 13px; color: var(--muted-2); }

.lage-focus {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 18px;
  padding: 22px 22px 20px;
  margin: 10px 0 18px;
}
.lage-focus.calm { border-left-color: var(--chance); }
.lage-focus-chip {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .01em;
  border-radius: 999px; padding: 3px 11px; margin-bottom: 12px;
  background: var(--accent-soft); color: var(--accent-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.lage-focus-chip.danger { background: rgba(255,89,103,.16); color: var(--danger); }
.lage-focus-chip.watch { background: rgba(214,160,64,.16); color: var(--watch); }
.lage-focus-chip.chance { background: rgba(57,209,143,.16); color: var(--chance); }
.lage-focus-title { font-size: 23px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 18px; color: var(--text); }
.lage-focus-why { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 0 0 16px; }
.lage-buero-ready { font-size: 12px; color: var(--muted-2); margin: 10px 0 0; text-align: center; background: none; border: none; padding: 0; cursor: pointer; width: 100%; text-decoration: underline; text-underline-offset: 3px; }
.lage-buero-ready:hover { color: var(--accent-ink); }
.lage-warum { margin: 0 0 4px; }
.lage-warum-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.lage-warum-list { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lage-warum-list li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); line-height: 1.35; }
.lage-warum-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.lage-icon-btn {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.lage-done-btn:hover {
  border-color: rgba(52, 199, 89, .35);
  background: rgba(52, 199, 89, .07);
  color: #34c759;
}
.lage-ignore-btn:hover {
  border-color: rgba(245, 241, 232, .18);
  background: var(--card);
  color: var(--text);
}
.lage-details-btn { width: 100%; }

.lage-glance {
  padding: 0 2px; margin-bottom: 18px;
}
.glance-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; color: var(--muted); }
.glance-row:last-child { border-bottom: none; }
.glance-row span:nth-child(2) { flex: 1; }
.glance-row b { font-weight: 600; color: var(--text); }
.glance-row .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot.danger { background: var(--danger); }
.dot.watch { background: var(--watch); }
.dot.chance { background: var(--chance); }
.lage-progress { font-size: 13px; color: var(--muted-2); }

.lage-secondary { display: grid; gap: 10px; margin-bottom: 18px; }
.lage-sec-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.lage-sec-chip { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; padding: 2px 9px; margin-bottom: 6px; background: var(--accent-soft); color: var(--accent-ink); }
.lage-sec-chip.danger { background: rgba(255,89,103,.16); color: var(--danger); }
.lage-sec-chip.watch { background: rgba(214,160,64,.16); color: var(--watch); }
.lage-sec-chip.chance { background: rgba(57,209,143,.16); color: var(--chance); }
.lage-sec-item strong { display: block; font-size: 15px; line-height: 1.3; color: var(--text); margin-bottom: 12px; }
.lage-sec-item p { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }

.lage-today-label { font-size: 13px; font-weight: 700; color: var(--text); margin: 10px 2px 6px; letter-spacing: .01em; }
.lage-section-label { font-size: 12px; color: var(--muted-2); margin: 18px 2px 8px; text-transform: uppercase; letter-spacing: .05em; }
.lage-more-label { font-size: 12px; color: var(--muted-2); margin: 4px 2px 8px; text-transform: uppercase; letter-spacing: .05em; }
.lage-focus-action { font-size: 15px; line-height: 1.45; color: var(--muted); margin: -4px 0 14px; }
.lage-watch-grid { display: grid; gap: 10px; margin-bottom: 18px; }
.lage-watch-item { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--watch); border-radius: 12px; padding: 14px 16px; }
.lage-watch-chip { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; padding: 2px 9px; margin-bottom: 6px; background: rgba(214,160,64,.16); color: var(--watch); }
.lage-watch-item strong { display: block; font-size: 15px; line-height: 1.3; color: var(--text); margin-bottom: 4px; }
.lage-watch-item p { font-size: 13px; color: var(--muted); margin: 0; }
.lage-collapsible { margin-bottom: 8px; }
.lage-collapse-head {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 11px;
  padding: 13px 16px; cursor: pointer; color: var(--text); font-size: 14px; text-align: left;
  transition: border-color var(--dur-base) var(--ease-out-soft);
}
.lage-collapse-head:hover { border-color: var(--accent); }
.lage-collapse-title { flex: 1; font-weight: 500; }
.lage-collapse-count { font-size: 12px; color: var(--muted-2); background: var(--accent-soft); border-radius: 999px; padding: 2px 9px; }
.lage-collapse-chev {
  display: inline-block;
  color: var(--muted-2);
  font-size: 12px;
  transition: transform var(--dur-base) var(--ease-out-soft);
}
.lage-collapsible.open .lage-collapse-chev { transform: rotate(180deg); }
.lage-collapse-body { padding: 12px 2px 4px; }
.meeting-detail { margin-top: 12px; }
.meeting-detail summary { font-size: 13px; color: var(--accent-ink); cursor: pointer; list-style: none; padding: 0; }
.meeting-detail summary::-webkit-details-marker { display: none; }
.meeting-detail summary::before { content: '▸ '; font-size: 10px; }
details[open].meeting-detail summary::before { content: '▾ '; }
.meeting-detail > *:not(summary) { margin-top: 12px; }
.weekly-outlook-compact { display: flex; flex-direction: column; gap: 3px; }
.weekly-outlook-compact span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); }
.weekly-outlook-compact strong { font-size: 14px; line-height: 1.3; color: var(--text); }
.weekly-outlook-compact small { font-size: 12px; color: var(--muted-2); }

/* === Büro: gemeinsames Aufgaben-Board === */
.board-group { margin: 4px 0 18px; }
.board-group-title { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .04em; }
.board-group-title span { font-size: 12px; color: var(--muted-2); background: var(--accent-soft); border-radius: 999px; padding: 1px 9px; }
.board-list { display: grid; gap: 10px; }
.board-task { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.board-task.open { border-left-color: var(--watch); }
.board-task.in_progress { border-left-color: var(--accent); }
.board-task.done { border-left-color: var(--chance); opacity: .72; }
.board-task.done strong { text-decoration: line-through; text-decoration-color: var(--muted-2); }
.board-task-tag { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; padding: 2px 9px; margin-bottom: 6px; background: var(--accent-soft); color: var(--accent-ink); }
.board-task-tag.danger { background: rgba(255,89,103,.16); color: var(--danger); }
.board-task-tag.watch { background: rgba(214,160,64,.16); color: var(--watch); }
.board-task-body strong { display: block; font-size: 15px; line-height: 1.3; color: var(--text); }
.board-task-body p { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.board-task-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Helmut new-assessment dot */
.helmut-new-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ecf6e;
  margin-left: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}
.mobile-dock button i.helmut-new-dot {
  min-width: 8px;
  width: 8px;
  height: 8px;
  top: 8px;
  right: 18px;
  background: #3ecf6e;
  font-size: 0;
}

/* === Büro: Premium Entwurfszentrale === */

/* ── View shell ── */
.buero-view { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }

/* ── Header ── */
.buero-header { margin: 0 0 32px; }
.buero-title {
  font-size: clamp(40px, 11vw, 56px);
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1;
}
.buero-eyebrow {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 6px;
  opacity: .72;
  letter-spacing: -.01em;
}
.buero-summary {
  font-size: 13px;
  color: var(--muted-2);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.buero-summary-sep { opacity: .4; }

/* ── Priority hint ── */
.buero-priority-hint {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 24px;
  padding: 10px 14px;
  background: rgba(100,116,139,.06);
  border-radius: 12px;
  border: 1px solid var(--line);
}
.buero-priority-label { font-weight: 600; color: var(--muted); }
.buero-priority-value { color: var(--text); opacity: .8; }
.buero-priority-sep { opacity: .35; }
.buero-priority-optional { color: var(--muted-2); }

/* ── Draft list ── */
.buero-draft-list { display: grid; gap: 28px; }
.buero-group { display: grid; gap: 10px; }
.buero-group-title { font-size: 13px; font-weight: 700; color: var(--text); margin: 0 0 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); line-height: 1.3; }
.buero-group-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
  opacity: .6;
  margin-bottom: 3px;
}

/* ── Draft card ── */
.buero-draft-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  animation: bueroFadeIn .4s ease both;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.buero-draft-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(0,0,0,.09);
  border-color: rgba(0,0,0,.09);
}
.buero-draft-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.buero-draft-card:active { transform: scale(.995); }
.buero-draft-card.is-loading { opacity: .6; pointer-events: none; }

/* Card top: type label + status pill */
.buero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
}
.buero-card-type-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.buero-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.buero-card-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Status pill */
.buero-status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.buero-status--publish   { background: rgba(31,209,143,.11); color: #0C7A51; }
.buero-status--nachfrage { background: rgba(245,158,11,.10); color: #8A5A0A; }
.buero-status--bereit    { background: rgba(100,116,139,.10); color: #475569; }
.buero-status--unsicher  { background: rgba(100,116,139,.07); color: #718096; }

/* Card body: title + einordnung */
.buero-card-main {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px 0 0;
}
.buero-card-body { padding: 0 16px 12px; flex: 1; min-width: 0; }
.buero-card-chev {
  font-size: 15px;
  color: var(--muted-2);
  opacity: .35;
  flex-shrink: 0;
}
.buero-card-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 0 0 3px;
  line-height: 1.25;
}
.buero-card-einordnung {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 4px;
  line-height: 1.4;
}
.buero-card-anlass {
  font-size: 11px;
  color: var(--muted-2);
  margin: 0;
  opacity: .6;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card footer: source · readtime + copy button */
.buero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--line);
}
.buero-card-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted-2);
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
}
.buero-meta-sep { opacity: .4; }

/* Entwurf prüfen button — primäre Kartenaktion */
.buero-review-btn {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.005em;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 16px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background .12s, border-color .12s;
  -webkit-tap-highlight-color: transparent;
}
.buero-review-btn:hover { background: var(--paper); border-color: rgba(0,0,0,.15); }
.buero-review-btn:active { transform: scale(.97); }
.buero-review-btn:disabled { opacity: .4; pointer-events: none; }

/* Kopieren button — outline, dezent, Apple-ähnlich */
.buero-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.005em;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 16px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background .12s, border-color .12s;
  -webkit-tap-highlight-color: transparent;
}
.buero-copy-btn:hover { background: var(--paper); border-color: rgba(0,0,0,.15); }
.buero-copy-btn:active { transform: scale(.97); }
.buero-copy-btn i { font-size: 13px; }
.buero-copy-btn--full {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  min-height: 52px;
}

/* ── Detail view ── */
.buero-detail-view { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }

.buero-detail-nav { margin-bottom: 28px; }
.buero-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-ink);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: .82;
  transition: opacity .12s;
}
.buero-back-btn:hover { opacity: 1; }
.buero-back-btn i { font-size: 18px; }

.buero-detail-header { margin-bottom: 28px; }
.buero-detail-type-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.buero-detail-title {
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.15;
}
.buero-detail-meta {
  font-size: 13px;
  color: var(--muted-2);
  margin: 0 0 7px;
  line-height: 1.5;
}
.buero-detail-linecheck {
  font-size: 12px;
  color: var(--muted-2);
  margin: 0;
  opacity: .7;
  font-style: italic;
}
/* Profil-Freigabestatus (Onboarding): ruhig, zweifarbig, keine Dashboards */
.profile-release {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(128, 128, 128, .25);
  font-size: 13px;
}
.profile-release p { margin: 4px 0 0; color: var(--muted-2); }
.profile-release--ready { border-color: rgba(80, 180, 120, .45); }
.profile-release--open { border-color: rgba(220, 170, 60, .55); }

/* Ruhige Frische-Anzeige in der Lage-Kopfzeile (Störungswahrheit) */
.lage2-stand {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
  opacity: .75;
  margin-top: 2px;
}
/* Block 5: getrennte, dezentere Quellen-Aktualität unter der primären Frische-Zeile */
.lage2-source-recency {
  display: block;
  font-size: 11.5px;
  color: var(--muted-2);
  opacity: .55;
  margin-top: 1px;
}
/* Ehrliche Herkunftszeile auf Büro-Karten (KI-Entwurf / Regel-Fallback / Fehler) */
.buero-card-provenance {
  font-size: 11px;
  color: var(--muted-2);
  margin: 6px 0 0;
  opacity: .7;
  font-style: italic;
}

.buero-detail-body {
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  margin-bottom: 44px;
}
.buero-detail-body p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 24px;
}
.buero-detail-body p:last-child { margin-bottom: 0; }

.buero-detail-anlass {
  font-size: 12px;
  color: var(--muted-2);
  margin: 4px 0 12px;
  opacity: .7;
}
.buero-detail-footer { border-top: 1px solid var(--hairline); padding-top: 24px; }

/* ── Quellenliste des Entwurfs (Quellenpflicht-Sprint 2026-08-22) ── */
.buero-detail-sources {
  margin: 0 0 28px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.buero-sources-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 12px;
}
.buero-sources-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.buero-source-row { margin: 0; }
.buero-source-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  background: transparent;
  transition: border-color .15s ease;
}
.buero-source-link:hover { border-color: var(--muted-2); }
.buero-source-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.buero-source-title {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.buero-source-meta {
  font-size: 11px;
  color: var(--muted-2);
}
.buero-sources-empty {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  font-style: italic;
}

/* ── Qualitätscheck ── */
.buero-quality-check {
  margin: 28px 0;
  padding: 16px 20px;
  background: rgba(100,116,139,.06);
  border-radius: 16px;
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.buero-quality-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.buero-quality-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted-2);
  min-width: 56px;
  flex-shrink: 0;
  opacity: .7;
}
.buero-quality-value {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Animations ── */
@keyframes bueroFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Light mode ── */
:root[data-theme="light"] .buero-draft-card {
  box-shadow: 0 1px 3px rgba(15,23,42,.05), 0 6px 24px rgba(15,23,42,.04);
}
:root[data-theme="light"] .buero-copy-btn { background: #ffffff; }
:root[data-theme="light"] .buero-copy-btn:hover { background: #f8f8fa; }
:root[data-theme="light"] .buero-status--publish   { background: rgba(16,185,129,.10); color: #065f46; }
:root[data-theme="light"] .buero-status--nachfrage { background: rgba(245,158,11,.10); color: #78350f; }
:root[data-theme="light"] .buero-status--bereit    { background: rgba(100,116,139,.09); color: #334155; }

/* ── Loading pulse ── */
.buero-draft-card.is-loading .buero-card-title,
.buero-draft-card.is-loading .buero-card-einordnung {
  animation: bueroLoadPulse 1.4s ease-in-out infinite;
}
@keyframes bueroLoadPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}

/* ── Skeleton-Loader (ersetzt Text-/Leerzustaende wie "Lade Daten …") ───── */
.skeleton-stack { display: grid; gap: 10px; margin-top: 18px; }
.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(245, 241, 232, .07);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(245, 241, 232, .12), transparent);
  animation: helmut-skeleton-shimmer 1.5s ease-in-out infinite;
}
.skeleton-line { height: 14px; }
.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 65%; }
.skeleton-card { height: 64px; border-radius: 14px; }
@keyframes helmut-skeleton-shimmer {
  to { transform: translateX(100%); }
}
:root[data-theme="light"] .skeleton { background: rgba(15, 23, 42, .06); }
:root[data-theme="light"] .skeleton::after { background: linear-gradient(90deg, transparent, rgba(15, 23, 42, .08), transparent); }

/* ── Login Screen ─────────────────────────────────────────────────────── */
.login-screen {
  display: grid;
  place-items: center;
  align-items: start;
  min-height: 100dvh;
  width: 100%;
  padding: clamp(48px, 9dvh, 96px) 20px clamp(32px, 5dvh, 64px);
  padding-top: max(clamp(48px, 9dvh, 96px), env(safe-area-inset-top, 0px) + 32px);
  padding-bottom: max(clamp(32px, 5dvh, 64px), env(safe-area-inset-bottom, 0px) + 24px);
  box-sizing: border-box;
  overflow-y: auto;
  background:
    radial-gradient(ellipse at 84% 10%, rgba(88, 46, 196, .09), transparent 38%),
    radial-gradient(ellipse at 12% 92%, rgba(28, 66, 168, .07), transparent 34%),
    radial-gradient(circle at 50% 40%, rgba(140, 92, 255, .11), transparent 26%),
    linear-gradient(180deg, #070b15 0%, #050914 72%, #03050b 100%);
}

.pilot-access-card {
  width: min(100%, 480px);
  margin: 0 auto;
  background: linear-gradient(155deg, rgba(15, 21, 38, .97), rgba(7, 10, 21, .96));
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .042),
    0 36px 80px rgba(0, 0, 0, .44),
    0 6px 28px rgba(0, 0, 0, .3);
  border-radius: 24px;
}

.pilot-access-card .pilot-access-copy {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.58;
  opacity: 1;
  text-transform: none;
  color: rgba(245, 241, 232, .5);
  max-width: 320px;
  margin-top: -2px;
}

.password-toggle--icon {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48px;
  height: auto;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 0 18px 18px 0;
  color: rgba(245, 241, 232, .36);
  padding: 0;
  cursor: pointer;
  transition: color .15s ease;
}
.password-toggle--icon:hover {
  color: rgba(245, 241, 232, .78);
}
.password-toggle--icon svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  pointer-events: none;
}

.pilot-access-form .password-field input {
  padding-right: 52px;
}

.pilot-access-form .primary-button {
  width: 100%;
  margin-top: 4px;
  transition: box-shadow .18s ease, opacity .15s ease;
}
.pilot-access-form .primary-button:not(:disabled):hover {
  box-shadow: 0 22px 50px rgba(101, 64, 238, .5);
}
.pilot-access-form .primary-button:not(:disabled):active {
  opacity: .88;
  box-shadow: 0 8px 24px rgba(101, 64, 238, .28);
}

/* Light Mode: Die Login-Karte wird im Light Theme weiß (--card), die obigen
   Textfarben sind aber auf die dunkle Karte kalibriert (rgba(245,241,232,…)).
   Ohne diese Overrides sind Untertitel, Disabled-Button-Text und das
   Passwort-Auge auf Weiß praktisch unsichtbar. */
:root[data-theme="light"] .pilot-access-card .pilot-access-copy {
  color: var(--muted);
}
/* !important nötig: ":root[data-theme=light] .primary-button" setzt color:#fff !important
   (für den aktiven violetten Button); im Disabled-Zustand auf der weißen Login-Karte
   wäre Weiß-auf-Weiß unleserlich. */
:root[data-theme="light"] .pilot-access-form .primary-button:disabled {
  color: var(--muted-2) !important;
  background: rgba(15, 23, 42, .06);
  border-color: rgba(15, 23, 42, .12);
}
:root[data-theme="light"] .password-toggle--icon {
  color: rgba(15, 23, 42, .38);
}
:root[data-theme="light"] .password-toggle--icon:hover {
  color: rgba(15, 23, 42, .72);
}

@media (max-width: 480px) {
  .login-screen {
    align-items: start;
    padding-left: 14px;
    padding-right: 14px;
  }
  .pilot-access-card {
    border-radius: 20px;
  }
}

/* ── Helmut Tab — Hero Decision & Detail Accordions ─────────────────── */
.helmut-hero {
  display: grid;
  gap: 10px;
  padding: clamp(16px, 2.8vw, 28px);
  border: 1px solid rgba(245, 241, 232, .09);
  border-radius: 22px;
  background: rgba(255, 255, 255, .03);
}

.helmut-hero-decision {
  margin: 0;
  color: var(--command-text);
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 620;
  line-height: 1.22;
  letter-spacing: -.02em;
}

.helmut-hero-bullets {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid rgba(245, 241, 232, .08);
}

.helmut-hero-bullets > div {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.helmut-hero-bullets dt {
  color: rgba(249, 205, 127, .8);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.helmut-hero-bullets dd {
  margin: 0;
  color: rgba(245, 241, 232, .76);
  font-size: 13px;
  line-height: 1.4;
}

.helmut-detail {
  border: 1px solid rgba(245, 241, 232, .09);
  border-radius: 18px;
  background: rgba(255, 255, 255, .03);
  overflow: hidden;
}

.helmut-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(14px, 2vw, 20px) clamp(18px, 2.8vw, 26px);
  color: rgba(245, 241, 232, .65);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .10em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.helmut-detail summary::-webkit-details-marker { display: none; }

.helmut-detail summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  color: rgba(245, 241, 232, .32);
  transition: transform .18s ease;
}

.helmut-detail[open] > summary::after {
  content: "−";
}

.helmut-detail-body {
  display: grid;
  gap: 14px;
  padding: 0 clamp(18px, 2.8vw, 26px) clamp(18px, 2.8vw, 26px);
}

.helmut-detail-body p {
  margin: 0;
  color: rgba(245, 241, 232, .80);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.58;
}

.helmut-detail--risk > summary {
  color: rgba(243, 106, 116, .78);
}

.helmut-detail--risk > summary::after {
  color: rgba(243, 106, 116, .42);
}

.helmut-detail--risk .helmut-detail-body p {
  color: rgba(243, 106, 116, .88);
}

/* ── Helmut carousel ───────────────────────────────────────── */
.helmut-carousel-wrap { display: grid; gap: 14px; }

.helmut-carousel-filters {
  display: flex; flex-wrap: wrap; gap: 7px;
}
.helmut-carousel-chip {
  padding: 6px 14px;
  border: 1px solid rgba(245, 241, 232, .14);
  border-radius: 999px;
  background: transparent;
  color: rgba(245, 241, 232, .55);
  font-size: 12px; font-weight: 700; letter-spacing: .05em;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.helmut-carousel-chip:hover { background: rgba(245, 241, 232, .07); color: rgba(245, 241, 232, .85); }
.helmut-carousel-chip.active { background: rgba(245, 241, 232, .12); border-color: rgba(245, 241, 232, .28); color: rgba(245, 241, 232, .95); }

.helmut-carousel-header {
  display: flex; align-items: center; justify-content: space-between;
}
.helmut-carousel-count {
  color: rgba(245, 241, 232, .45); font-size: 12px; font-weight: 600;
}

.helmut-carousel-track {
  min-width: 0; /* prevent overflow */
}

/* ── card ── */
.helmut-brief-card {
  display: grid; gap: 14px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(245, 241, 232, .09);
  border-left: 3px solid rgba(245, 241, 232, .22);
  border-radius: 22px;
  background: rgba(255, 255, 255, .03);
  animation: carouselFadeIn .22s ease;
}
@keyframes carouselFadeIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
.helmut-brief-card.risk   { border-left-color: rgba(243, 106, 116, .82); }
.helmut-brief-card.action { border-left-color: rgba(249, 205, 127, .85); }
.helmut-brief-card.chance { border-left-color: rgba(126, 217, 168, .80); }
.helmut-brief-card.watch  { border-left-color: rgba(245, 241, 232, .30); }
.helmut-brief-card.ignore { border-left-color: rgba(245, 241, 232, .14); opacity: .72; }

.helmut-brief-card-head { display: flex; align-items: center; gap: 10px; }
.helmut-brief-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 999px;
  background: rgba(245, 241, 232, .08);
  color: rgba(245, 241, 232, .65); font-size: 12px; font-weight: 820;
  flex-shrink: 0;
}
.helmut-brief-chip {
  font-size: 11px; font-weight: 820; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(245, 241, 232, .08); color: rgba(245, 241, 232, .72);
}
.helmut-brief-chip.danger { background: rgba(243, 106, 116, .16); color: rgba(243, 106, 116, .95); }
.helmut-brief-chip.chance { background: rgba(126, 217, 168, .16); color: rgba(126, 217, 168, .95); }
.helmut-brief-chip.watch  { background: rgba(245, 241, 232, .08); color: rgba(245, 241, 232, .68); }

.helmut-brief-headline {
  margin: 0;
  color: var(--command-text);
  font-size: clamp(16px, 2.4vw, 22px); font-weight: 640; line-height: 1.22; letter-spacing: -.015em;
}

.helmut-brief-bullets { display: grid; gap: 10px; margin: 0; }
.helmut-brief-bullets > div {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 14px; align-items: baseline;
}
.helmut-brief-bullets dt {
  color: rgba(249, 205, 127, .8); font-size: 10px; font-weight: 820;
  letter-spacing: .10em; text-transform: uppercase; padding-top: 2px;
}
.helmut-brief-bullets dd {
  margin: 0; color: rgba(245, 241, 232, .80); font-size: clamp(14px, 1.8vw, 16px); line-height: 1.5;
}

.helmut-brief-source { color: rgba(245, 241, 232, .42); font-size: 11px; }
.helmut-brief-source a { color: inherit; }

.helmut-carousel-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── dots ── */
.helmut-carousel-dots {
  display: flex; gap: 6px; justify-content: center; padding: 2px 0;
}
.helmut-carousel-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: rgba(245, 241, 232, .22); transition: background .2s, width .2s;
}
.helmut-carousel-dot.active { background: rgba(245, 241, 232, .80); width: 18px; }

/* ── nav arrows ── */
.helmut-carousel-nav {
  display: flex; gap: 10px; justify-content: flex-end;
}
.helmut-carousel-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid rgba(245, 241, 232, .16);
  background: rgba(255, 255, 255, .04);
  color: rgba(245, 241, 232, .72);
  font-size: 18px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.helmut-carousel-arrow:hover:not(:disabled) { background: rgba(245, 241, 232, .10); color: rgba(245, 241, 232, 1); border-color: rgba(245, 241, 232, .32); }
.helmut-carousel-arrow:disabled { opacity: .28; cursor: default; }

.helmut-carousel-empty {
  color: rgba(245, 241, 232, .5); font-size: 14px; padding: 20px 0;
  text-align: center;
}

/* ============================================================================
   Helmut-Referent (Zielvision) — nutzt ausschließlich bestehende Tokens.
   Status: handeln=rot(--command-red), beobachten=amber(--watch), ignorieren=neutral.
   Motion: nur transform/opacity, --ease-out-soft / --dur-*.
   ========================================================================== */
.helmut-referent { display: grid; gap: 30px; }
.helmut-referent-head { display: grid; gap: 10px; }
.helmut-referent-head h1 {
  margin: 0; color: var(--command-text);
  font-weight: 680; letter-spacing: -.02em; line-height: 1.02;
}
.helmut-referent-head p {
  margin: 0; color: var(--command-muted);
  font-size: clamp(15px, 2.1vw, 17px); line-height: 1.5;
}

/* ── Status-Cards ── */
.helmut-status-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.helmut-status-card {
  display: grid; gap: 16px; padding: 16px; margin: 0;
  border-radius: 16px; background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(245, 241, 232, .09);
  font: inherit; text-align: left; color: inherit;
}
/* Handeln/Beobachten sind klickbar (springen zum ersten passenden Thema). */
.helmut-status-card.is-jumpable {
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out-soft), border-color var(--dur-base) var(--ease-out-soft), box-shadow var(--dur-base) var(--ease-out-soft);
}
.helmut-status-card.is-jumpable:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
.helmut-status-card.is-jumpable:active { transform: translateY(0) scale(.98); }
.helmut-status-top { display: flex; align-items: center; justify-content: space-between; }
.helmut-status-num { font-size: clamp(24px, 6vw, 30px); font-weight: 760; color: var(--command-text); line-height: 1; }
.helmut-status-label { font-size: 12px; font-weight: 600; color: rgba(245, 241, 232, .62); white-space: nowrap; }
.helmut-status-card.handeln    { border-color: rgba(243, 106, 116, .30); }
.helmut-status-card.handeln    .helmut-status-icon { color: #ff7a84; }
.helmut-status-card.beobachten { border-color: rgba(249, 205, 127, .28); }
.helmut-status-card.beobachten .helmut-status-icon { color: #f9cd7f; }
.helmut-status-card.ignorieren .helmut-status-icon { color: rgba(245, 241, 232, .5); }

/* ── Sektionsköpfe ── */
.helmut-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.helmut-section-head h2 {
  margin: 0; color: var(--command-text);
  font-size: clamp(17px, 2.6vw, 21px); font-weight: 660; letter-spacing: -.01em;
}
.helmut-section-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px;
  background: rgba(245, 241, 232, .10); color: rgba(245, 241, 232, .68);
  font-size: 12px; font-weight: 780;
}

/* ── Deck (Fokus-Card) ── */
.helmut-deck-wrap { display: grid; gap: 14px; }
.helmut-deck-track { perspective: 1000px; }
.helmut-deck-card {
  display: grid; gap: 16px;
  padding: clamp(20px, 4vw, 28px);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(20, 27, 45, .82), rgba(9, 13, 24, .9));
  border: 1px solid var(--command-line);
  box-shadow: var(--command-shadow);
  animation: helmutDeckIn var(--dur-slow) var(--ease-out-soft);
  will-change: transform, opacity;
}
.helmut-deck-card.handeln {
  border-color: rgba(243, 106, 116, .5);
  box-shadow: 0 0 0 1px rgba(243, 106, 116, .22), 0 24px 70px rgba(0, 0, 0, .34), 0 0 34px rgba(243, 106, 116, .16);
}
.helmut-deck-card.beobachten {
  border-color: rgba(249, 205, 127, .46);
  box-shadow: 0 0 0 1px rgba(249, 205, 127, .20), 0 24px 70px rgba(0, 0, 0, .34), 0 0 34px rgba(249, 205, 127, .15);
}
.helmut-deck-card.ignorieren { border-color: rgba(245, 241, 232, .14); }
.helmut-deck-card.is-leaving {
  animation: none;
  opacity: 0; transform: translateY(-8px) scale(.98);
  transition: opacity .26s var(--ease-out-soft), transform .26s var(--ease-out-soft);
}
.helmut-deck-card-head { display: flex; align-items: center; gap: 12px; }
.helmut-deck-progress { color: rgba(245, 241, 232, .5); font-size: 13px; font-weight: 600; }
.helmut-deck-badge {
  font-size: 11px; font-weight: 820; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
  background: rgba(245, 241, 232, .08); color: rgba(245, 241, 232, .72);
}
.helmut-deck-badge.handeln    { background: rgba(243, 106, 116, .16); color: #ff8a92; }
.helmut-deck-badge.beobachten { background: rgba(249, 205, 127, .16); color: #f9cd7f; }
.helmut-deck-badge.ignorieren { background: rgba(245, 241, 232, .08); color: rgba(245, 241, 232, .6); }
/* Light-Mode-Kontrast: die hellen Dark-Badge-Farben (1,1-1,9:1 auf weißer Karte)
   waren im Light Mode unlesbar. Auf lesbare Statusfarben umstellen. */
:root[data-theme="light"] .helmut-deck-badge.handeln    { background: rgba(209, 43, 57, .10); color: var(--danger); }
:root[data-theme="light"] .helmut-deck-badge.beobachten { background: rgba(143, 93, 13, .12); color: #8f5d0d; }
:root[data-theme="light"] .helmut-deck-badge.ignorieren { background: rgba(15, 23, 42, .06); color: var(--muted); }
.helmut-deck-star {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid rgba(245, 241, 232, .16); background: none;
  color: rgba(245, 241, 232, .5); cursor: pointer;
  transition: color .15s, border-color .15s;
}
.helmut-deck-star:hover { color: #f9cd7f; border-color: rgba(249, 205, 127, .4); }
.helmut-deck-title {
  margin: 0; color: var(--command-text);
  font-family: Georgia, "Times New Roman", ui-serif, serif;
  font-size: clamp(24px, 5vw, 32px); font-weight: 500; line-height: 1.08; letter-spacing: -.02em;
}
.helmut-deck-subtitle { margin: -6px 0 0; color: rgba(245, 241, 232, .56); font-size: 15px; line-height: 1.4; }
.helmut-deck-bullets { display: grid; gap: 14px; margin: 4px 0 0; }
.helmut-deck-bullets > div { display: grid; gap: 4px; }
.helmut-deck-bullets dt {
  display: flex; align-items: center; gap: 8px;
  color: rgba(249, 205, 127, .85); font-size: 11px; font-weight: 780;
  letter-spacing: .06em; text-transform: uppercase;
}
.helmut-deck-bullets .helmut-bullet-ico { display: inline-flex; color: #f9cd7f; }
.helmut-deck-bullets dd { margin: 0; color: rgba(245, 241, 232, .82); font-size: clamp(14px, 1.9vw, 16px); line-height: 1.5; }
.helmut-deck-line dd { display: flex; align-items: center; gap: 10px; }
.helmut-score-bar {
  display: inline-block; width: 160px; max-width: 48vw; height: 6px;
  border-radius: 999px; background: rgba(245, 241, 232, .12); overflow: hidden; vertical-align: middle;
}
.helmut-score-fill {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #8c5cff, #b897ff);
  transition: width .5s var(--ease-out-soft);
}
.helmut-score-val { font-size: 13px; font-weight: 700; color: rgba(245, 241, 232, .8); }

/* ── Drei runde Action-Buttons ── */
.helmut-deck-actions { display: flex; align-items: flex-end; justify-content: space-around; gap: 12px; margin-top: 6px; }
.helmut-action-btn { display: grid; justify-items: center; gap: 8px; background: none; border: none; padding: 0; cursor: pointer; }
.helmut-action-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 999px;
  transition: transform var(--dur-base) var(--ease-out-soft), box-shadow var(--dur-base) var(--ease-out-soft);
}
.helmut-action-btn.ignore .helmut-action-ico { border: 1.5px solid rgba(245, 241, 232, .26); color: rgba(245, 241, 232, .72); }
.helmut-action-btn.draft  .helmut-action-ico {
  width: 72px; height: 72px;
  background: linear-gradient(160deg, #9a6cff, #7a44ff); color: #fff;
  box-shadow: 0 16px 40px rgba(140, 92, 255, .42);
}
.helmut-action-btn.watch  .helmut-action-ico { border: 1.5px solid rgba(249, 205, 127, .5); color: #f9cd7f; }
.helmut-action-btn:active .helmut-action-ico { transform: scale(.92); }
.helmut-action-label { font-size: 12px; font-weight: 700; color: rgba(245, 241, 232, .7); text-align: center; line-height: 1.15; }

.helmut-deck-hint { margin: 0; text-align: center; color: rgba(245, 241, 232, .42); font-size: 13px; }
.helmut-deck-empty { color: rgba(245, 241, 232, .55); font-size: 15px; line-height: 1.5; padding: 8px 0; }

/* ── State C: letzte Entscheidung ── */
.helmut-last-decision {
  display: grid; justify-items: center; gap: 8px; text-align: center;
  padding: 26px; border-radius: 24px;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(24, 228, 155, .22);
}
.helmut-last-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 999px;
  background: rgba(24, 228, 155, .14); color: #18e49b;
  animation: helmutSuccessPop var(--dur-slow) var(--ease-out-soft);
}
.helmut-last-title { font-size: 18px; font-weight: 680; color: var(--command-text); }
.helmut-last-meta { font-size: 14px; color: rgba(245, 241, 232, .6); }
.helmut-last-meta b { color: #b897ff; font-weight: 700; }
.helmut-last-time { font-size: 13px; color: rgba(245, 241, 232, .42); }

/* ── Weitere Briefings (kompakte Liste) ── */
.helmut-further-lead { margin: -6px 0 14px; color: rgba(245, 241, 232, .5); font-size: 14px; line-height: 1.45; }
.helmut-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
/* Kompakte, schnell scannbare Zeile (Apple Reminders / Linear Inbox). */
.helmut-list-row {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  text-align: left; padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .022);
  border: 1px solid rgba(245, 241, 232, .07);
  border-left: 3px solid rgba(245, 241, 232, .2);
  cursor: pointer; transition: background .15s, border-color .15s;
}
.helmut-list-row:hover { background: rgba(255, 255, 255, .05); }
.helmut-list-row.handeln    { border-left-color: rgba(243, 106, 116, .8); }
.helmut-list-row.beobachten { border-left-color: rgba(249, 205, 127, .8); }
.helmut-list-row.ignorieren { border-left-color: rgba(245, 241, 232, .16); opacity: .7; }
.helmut-list-main { display: grid; gap: 3px; justify-items: start; min-width: 0; }
.helmut-list-badge {
  font-size: 9.5px; font-weight: 820; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(245, 241, 232, .5);
}
.helmut-list-row.handeln    .helmut-list-badge { color: #ff8a92; }
.helmut-list-row.beobachten .helmut-list-badge { color: #f9cd7f; }
.helmut-list-title {
  max-width: 100%; color: var(--command-text); font-size: 15px; font-weight: 640; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.helmut-list-desc {
  max-width: 100%; color: rgba(245, 241, 232, .48); font-size: 12.5px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.helmut-list-side { display: grid; justify-items: end; gap: 3px; }
.helmut-list-time { color: rgba(245, 241, 232, .5); font-size: 13px; font-weight: 600; white-space: nowrap; }
.helmut-list-src { color: rgba(245, 241, 232, .55); font-size: 11px; font-weight: 600; white-space: nowrap; } /* WCAG-AA: .38 war 3,2:1 */
.helmut-list-chevron { display: inline-flex; color: rgba(245, 241, 232, .38); }

/* ── „So funktioniert Helmut" ── */
.helmut-howto {
  padding: 24px; border-radius: 24px;
  background: rgba(255, 255, 255, .025); border: 1px solid rgba(245, 241, 232, .08);
}
.helmut-howto-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 18px; }
.helmut-howto-col { display: grid; gap: 8px; align-content: start; }
.helmut-howto-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 999px;
  background: rgba(140, 92, 255, .18); color: #b897ff; font-size: 12px; font-weight: 820;
}
.helmut-howto-title { color: var(--command-text); font-size: 15px; font-weight: 660; }
.helmut-howto-desc { color: rgba(245, 241, 232, .58); font-size: 13px; line-height: 1.45; }
.helmut-howto-link {
  background: none; border: none; padding: 0; cursor: pointer;
  color: rgba(245, 241, 232, .5); font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
}

@keyframes helmutDeckIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes helmutSuccessPop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }

/* Ruhiger Premium-Highlight nach dem Springen: Ring + Glow + sanfte Aufhellung
   (inset-Tint über der eigenen Card-Fläche), dann automatisch zurück. Kein Blinken. */
.helmut-highlight { animation: helmutHighlight 2s var(--ease-out-soft); }
@keyframes helmutHighlight {
  0%   { box-shadow: 0 0 0 0 rgba(140, 92, 255, 0), inset 0 0 0 240px rgba(140, 92, 255, 0); }
  18%  { box-shadow: 0 0 0 1.5px rgba(140, 92, 255, .55), 0 0 30px rgba(140, 92, 255, .24), inset 0 0 0 240px rgba(140, 92, 255, .06); }
  100% { box-shadow: 0 0 0 0 rgba(140, 92, 255, 0), inset 0 0 0 240px rgba(140, 92, 255, 0); }
}

@media (max-width: 480px) {
  .helmut-referent { gap: 26px; }
  .helmut-status-card { padding: 14px; }
  .helmut-action-btn.draft .helmut-action-ico { width: 68px; height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .helmut-deck-card, .helmut-last-check { animation: none; }
  .helmut-deck-card.is-leaving { transition: none; }
  .helmut-score-fill { transition: none; }
  /* Statt Animation ein ruhiger statischer Ring (JS entfernt ihn nach ~2s). */
  .helmut-highlight { box-shadow: 0 0 0 1.5px rgba(140, 92, 255, .5); }
}

/* ── Light-Theme-Parität für die neuen Referent-Flächen ── */
:root[data-theme="light"] .helmut-referent-head h1 { color: var(--text); }
:root[data-theme="light"] .helmut-referent-head p { color: var(--muted); }
:root[data-theme="light"] .helmut-status-card,
:root[data-theme="light"] .helmut-last-decision,
:root[data-theme="light"] .helmut-list-row,
:root[data-theme="light"] .helmut-howto {
  background: var(--card); border-color: var(--line);
}
:root[data-theme="light"] .helmut-deck-card {
  background: var(--card);
  box-shadow: var(--soft-shadow);
}
:root[data-theme="light"] .helmut-status-num,
:root[data-theme="light"] .helmut-section-head h2,
:root[data-theme="light"] .helmut-deck-title,
:root[data-theme="light"] .helmut-list-title,
:root[data-theme="light"] .helmut-last-title,
:root[data-theme="light"] .helmut-howto-title { color: var(--text); }
:root[data-theme="light"] .helmut-status-label,
:root[data-theme="light"] .helmut-deck-bullets dd,
:root[data-theme="light"] .helmut-list-desc,
:root[data-theme="light"] .helmut-deck-subtitle,
:root[data-theme="light"] .helmut-action-label,
:root[data-theme="light"] .helmut-last-meta,
:root[data-theme="light"] .helmut-howto-desc { color: var(--muted); }
:root[data-theme="light"] .helmut-deck-progress,
:root[data-theme="light"] .helmut-deck-hint,
:root[data-theme="light"] .helmut-score-val,
:root[data-theme="light"] .helmut-list-time,
:root[data-theme="light"] .helmut-list-chevron,
:root[data-theme="light"] .helmut-list-src,
:root[data-theme="light"] .helmut-further-lead,
:root[data-theme="light"] .helmut-last-time,
:root[data-theme="light"] .helmut-howto-link { color: var(--muted-2); }
:root[data-theme="light"] .helmut-deck-star {
  color: var(--muted-2); border-color: var(--line);
}
:root[data-theme="light"] .helmut-action-btn.ignore .helmut-action-ico {
  border-color: rgba(15, 23, 42, .22); color: var(--muted);
}
:root[data-theme="light"] .helmut-action-btn.watch .helmut-action-ico {
  border-color: rgba(176, 116, 20, .5); color: var(--watch);
}
:root[data-theme="light"] .helmut-status-card.beobachten .helmut-status-icon,
:root[data-theme="light"] .helmut-list-row.beobachten .helmut-list-badge,
:root[data-theme="light"] .helmut-deck-bullets dt,
:root[data-theme="light"] .helmut-deck-bullets .helmut-bullet-ico { color: var(--watch); }
:root[data-theme="light"] .helmut-section-count {
  background: rgba(15, 23, 42, .08); color: var(--muted);
}
:root[data-theme="light"] .helmut-score-bar { background: rgba(15, 23, 42, .10); }

.helmut-assessment-head small {
  color: rgba(245, 241, 232, .48);
  font-size: 13px;
}

@media (max-width: 480px) {
  .helmut-hero-bullets > div {
    display: block;
  }
  .helmut-hero-bullets dd {
    margin-top: 5px;
  }
}

@media (max-width: 680px) {
  .helmut-hero-bullets > div {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px;
  }
  .helmut-hero-decision {
    font-size: clamp(19px, 6vw, 26px);
  }
  .helmut-detail summary {
    padding: 14px 18px;
  }
  .helmut-detail-body {
    padding: 0 18px 18px;
  }
}

/* --- In-App Installieren-Banner + Offline-Ansicht ------------------------- */
.install-banner {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 9998;
  width: min(440px, calc(100vw - 24px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(16, 23, 41, 0.94);
  border: 1px solid rgba(140, 92, 255, 0.28);
  box-shadow: 0 22px 60px rgba(3, 6, 16, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #f5f1e8;
  animation: install-banner-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes install-banner-in {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.install-banner__mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #0b0f1a;
  font: 800 22px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.04em;
  color: #fbf7ef;
}
.install-banner__text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.install-banner__text strong { font-size: 14px; font-weight: 650; }
.install-banner__text span { font-size: 12px; line-height: 1.4; color: rgba(245, 241, 232, 0.6); }
.install-banner__cta {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 12px;
  font: 600 14px Inter, ui-sans-serif, system-ui, sans-serif;
  color: #0b0f1a;
  background: #f5f1e8;
}
.install-banner__cta:active { transform: translateY(1px); }
.install-banner__close {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  color: rgba(245, 241, 232, 0.55);
  background: rgba(245, 241, 232, 0.08);
}
.offline-card h1 { margin: 8px 0 10px; }
.offline-card p {
  max-width: 300px;
  margin: 0 auto 22px;
  color: rgba(245, 241, 232, 0.62);
  line-height: 1.55;
}
:root[data-theme="light"] .install-banner {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f1729;
}
:root[data-theme="light"] .install-banner__text span { color: rgba(15, 23, 42, 0.6); }
:root[data-theme="light"] .install-banner__mark { background: #0f1729; color: #fbf7ef; }
:root[data-theme="light"] .install-banner__cta { background: #0f1729; color: #f5f1e8; }
:root[data-theme="light"] .install-banner__close { color: rgba(15, 23, 42, 0.5); background: rgba(15, 23, 42, 0.06); }

/* ═══════════════════════════════════════════════════════════════════════
   LAGE — reine Übersicht bereits vorhandener, quellengestützter Vorgänge.
   Ruhig, hochwertig, viel Weißraum: ein großes Karussell, eine Karte im
   Fokus. Pro Karte genau EINE vorgangsbezogene Empfehlung — keine
   übergreifende Bewertung/Priorisierung (das bleibt Helmut). Baut auf
   bestehenden Tokens (--command-purple Akzent, --card/--line/--text/--muted)
   → Light/Dark automatisch.
   ═══════════════════════════════════════════════════════════════════════ */
.lage2 { max-width: 720px; margin: 0 auto; }

/* Ruhigerer Hintergrund NUR für Lage (skaliert über :has, kein globaler
   Eingriff in den übrigen App-Hintergrund/andere Tabs): weniger Glow, etwas
   dunklerer Grundton -> mehr Kontrast zur Karte. */
body:has(.lage2) {
  background:
    radial-gradient(circle at 76% 4%, rgba(140, 92, 255, .06), transparent 26%),
    linear-gradient(180deg, #06090f 0%, #05070d 55%, #03040a 100%);
}

.lage2-head { display: flex; flex-direction: column; gap: 7px; margin: 4px 0 22px; }
.lage2-date { font-size: 14px; font-weight: 650; color: var(--command-purple); }
.lage2-greeting {
  font-size: clamp(26px, 4vw, 34px); font-weight: 700; letter-spacing: -.022em;
  line-height: 1.08; margin: 0; color: var(--text); text-wrap: balance;
}
.lage2-count { margin: 2px 0 0; font-size: 16px; color: var(--muted); line-height: 1.5; }
.lage2-count b { color: var(--command-purple); font-weight: 700; }
.lage2-demo {
  display: inline-block; margin: 0 0 18px; font-size: 11px; font-weight: 650;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2);
  border: 1px dashed var(--line); border-radius: 999px; padding: 4px 10px;
}

/* Karussell: eine große Karte im Fokus, nächste Karte peekt am rechten Rand.
   Der Bleed-Trick (unten, @media) setzt voraus, dass KEIN Vorfahre zwischen
   .lage2-carousel-bleed und <body> ein eigenes position:relative/absolute/fixed
   bekommt — sonst löst left:50% gegen die falsche Box auf. */
.lage2-carousel-bleed { margin: 0 0 20px; }
.lage2-carousel {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  /* Vertikales Padding hält den (bewusst kleinen) Card-Shadow vollständig
     sichtbar: overflow-x:auto erzwingt laut CSS-Overflow-Spec auch einen
     (auto-)Clip auf der Y-Achse. Padding > Schatten-Reichweite
     (offset+blur der .lage2-card box-shadow), nicht nur gleich groß. */
  padding: 16px 0 36px; margin: -16px 0 -36px; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.lage2-carousel::-webkit-scrollbar { display: none; }

/* Reine Informationskarte — (noch) nicht antippbar: die Detailansicht folgt
   erst in einer späteren Iteration, daher bewusst ohne Klick-Affordanz
   (kein cursor:pointer, kein Hover/Focus-Zustand). Schatten bewusst klein
   und ruhig (weniger "Glow", mehr Kontrast zum Hintergrund; spart zugleich
   vertikalen Platz für kurze Mobile-Viewports). */
.lage2-card {
  flex: 0 0 86%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column; text-align: left;
  padding: 24px 22px 20px; border-radius: 26px; border: 1px solid var(--line);
  background: var(--card); box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
  min-height: 52dvh;
  font: inherit; color: inherit;
  /* Karte ist nicht antippbar, aber weiterhin der erste Touch-Kontaktpunkt
     beim Wischen im Karussell — ohne dies flackert iOS Safari kurz den
     Standard-Tap-Highlight auf, bevor die Scroll-Geste erkannt wird. */
  -webkit-tap-highlight-color: transparent;
}

.lage2-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* max-width/ellipsis: Fallback-Kategorien ohne v.displayCategory (lange
   Ausschuss-/Ministeriumsnamen bei älteren Vorgängen) sollen die Pille nie
   umbrechen/aufblähen lassen, sondern sauber auf einer Zeile enden. */
.lage2-vtag {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--command-purple); background: rgba(140, 92, 255, .12);
  border-radius: 6px; padding: 3px 7px; align-self: flex-start;
  max-width: 68%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Status-Chip: bewusst zurückhaltend (muted, dünner Rahmen, keine Fläche) —
   deutlich ruhiger als die violette Kategorie-Pill, keine Alarm-Optik. */
.lage2-status-chip {
  font-size: 10.5px; font-weight: 600; color: var(--muted-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px;
  white-space: nowrap; flex: none;
}
/* Bewusst KEIN Line-Clamp: ein Titel darf nie mit "…" abgeschnitten werden —
   weder algorithmisch (JS) noch nativ per CSS (das war die Ursache der
   abgebrochenen Überschriften, die dieses Feld behebt). v.displayTitle ist
   serverseitig auf ~45 Zeichen (max. 70) angelegt und passt normalerweise in
   1–2 Zeilen; in seltenen Randfällen wird die Karte statt zu kappen minimal
   höher (Flex-Stretch im Karussell gleicht alle Karten der Reihe ohnehin an). */
.lage2-card-title {
  margin: 12px 0 0; font-size: clamp(21px, 5.5vw, 26px); font-weight: 700;
  letter-spacing: -.02em; line-height: 1.22; color: var(--text);
  hyphens: auto; overflow-wrap: break-word;
}
/* Fallback ohne generiertes v.displayTitle (ältere Vorgänge): voller
   Originaltitel statt algorithmischer Kürzung, nur mit kleinerer Schrift
   (mehr Zeichenbudget pro Zeile) — ebenfalls ohne Line-Clamp. */
.lage2-card-title.lage2-card-title-fallback { font-size: clamp(17px, 4.4vw, 20px); }
.lage2-card-body {
  display: flex; flex-direction: column; gap: 12px; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid var(--hairline);
}
.lage2-card-row { display: flex; flex-direction: column; gap: 5px; }
.lage2-card-row-head {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 650; color: var(--command-purple);
}
.lage2-card-row p {
  margin: 0; font-size: 15px; line-height: 1.48; color: var(--text); overflow-wrap: break-word;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}

/* Pagination-Punkte: rein dekorativ, sehr dezent */
.lage2-dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0 0; }
.lage2-dot-item {
  width: 6px; height: 6px; border-radius: 50%; background: var(--line);
  transition: background var(--dur-base) var(--ease-out-soft), transform var(--dur-base) var(--ease-out-soft);
}
.lage2-dot-item.active { background: var(--command-purple); transform: scale(1.25); }

/* Leerer Zustand: keine Fake-/Seed-Karten, nur ein ruhiger Hinweis */
.lage2-empty { margin-top: 8px; max-width: 420px; }
.lage2-empty-title { margin: 0; font-size: 17px; font-weight: 600; color: var(--text); line-height: 1.5; }
.lage2-empty-sub { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* Quellen-Zeile (wird auch in der Vorgang-Detailansicht wiederverwendet) */
.lage2-src-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--hairline); text-decoration: none; color: inherit;
}
.lage2-src-row:last-child { border-bottom: 0; }
.lage2-src-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lage2-src-name { font-size: 14px; font-weight: 600; color: var(--text); }
.lage2-src-meta { font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.lage2-src-open { font-size: 12px; color: var(--command-purple); white-space: nowrap; flex: none; opacity: .9; }
.lage2-src-row:hover .lage2-src-open { opacity: 1; text-decoration: underline; }

/* Mobile: Karussell bricht bis zum Displayrand aus (86 % Basisbreite reicht auf
   breiten Screens/Desktop; hier gezielt schmaler + volle Breite für den Peek-Effekt) */
@media (max-width: 920px) {
  .lage2-carousel-bleed {
    width: 100vw; position: relative; left: 50%; right: 50%;
    margin-left: -50vw; margin-right: -50vw;
  }
  .lage2-carousel { padding-left: 20px; padding-right: 20px; scroll-padding-left: 20px; }
  .lage2-card { flex-basis: 78vw; max-width: 420px; }
}

/* Niedrige Viewports (z. B. iPhone SE): Karte darf nicht unter die fixe Bottom
   Navigation geraten. Absätze bekommen dort eine Zeile weniger (weiterhin
   sauber mit "…", kein hartes Abschneiden) statt dass die Karte wächst. */
@media (max-height: 700px) {
  .lage2-card { min-height: 46dvh; }
  .lage2-card-row p { -webkit-line-clamp: 2; }
}

/* ── Vorgang-Detail (zweispaltig: Zusammenfassung/Chronologie · Quellen/Dokumente) ── */
.vdetail { max-width: 940px; margin: 0 auto; }
.vdetail-back {
  background: none; border: 0; padding: 4px 0; margin: 0 0 20px; cursor: pointer;
  font-size: 14px; font-weight: 550; color: var(--muted);
}
.vdetail-back:hover { color: var(--text); }
.vdetail-grid { display: grid; grid-template-columns: 1fr 296px; gap: 40px; align-items: start; }
.vdetail-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.vdetail-title {
  display: flex; align-items: center; gap: 10px; margin: 12px 0 0;
  font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; letter-spacing: -.02em; color: var(--text); line-height: 1.12;
  hyphens: auto; overflow-wrap: break-word;
}
.vdetail-star { color: var(--muted-2); display: inline-flex; }
.vdetail-star svg { width: 20px; height: 20px; }
.vdetail-helmut {
  display: inline-flex; align-items: center; gap: 7px; flex: none; cursor: pointer;
  padding: 9px 14px; border-radius: 10px; border: 0; background: var(--command-purple);
  color: #fff; font-size: 13px; font-weight: 600;
  transition: filter var(--dur-base) var(--ease-out-soft);
}
.vdetail-helmut svg { width: 15px; height: 15px; }
.vdetail-helmut:hover { filter: brightness(1.08); }
.vdetail-meta {
  display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 16px 0 0;
  font-size: 13px; color: var(--muted); padding-bottom: 22px; border-bottom: 1px solid var(--hairline);
}
.vdetail-meta b { color: var(--muted-2); font-weight: 600; }
.vdetail-h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin: 30px 0 14px; }
.vdetail-summary p { margin: 0 0 12px; font-size: 16px; line-height: 1.66; color: var(--text); }
.vdetail-summary p:last-child { margin-bottom: 0; }

.vdetail-chrono { list-style: none; margin: 0; padding: 0; }
.vdetail-chrono li { position: relative; padding: 0 0 20px 26px; }
.vdetail-chrono li:last-child { padding-bottom: 0; }
.vdetail-chrono li::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: -6px; width: 1px; background: var(--line); }
.vdetail-chrono li:last-child::before { display: none; }
.vdetail-chrono li::after {
  content: ""; position: absolute; left: 0; top: 4px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--command-purple);
}
.vdetail-chrono time { display: block; font-size: 12px; font-weight: 600; color: var(--muted-2); margin: 0 0 3px; font-variant-numeric: tabular-nums; }
.vdetail-chrono p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text); }

.vdetail-linkmore {
  background: none; border: 0; padding: 6px 0 0; margin: 12px 0 0; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--command-purple);
}
.vdetail-side { display: flex; flex-direction: column; gap: 20px; }
.vdetail-box { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 18px; }
.vdetail-box h3 { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--text); }
.vdetail-box-list { display: flex; flex-direction: column; }
.vdetail-box .lage2-src-row { padding: 10px 0; }
.vdetail-box .vdetail-linkmore { margin-top: 8px; }

.lage2-doc {
  display: flex; align-items: center; gap: 12px; padding: 9px 0; text-decoration: none; color: var(--text);
  border-bottom: 1px solid var(--hairline);
}
.vdetail-box-list .lage2-doc:last-child { border-bottom: 0; }
.lage2-doc:hover .lage2-doc-name { color: var(--command-purple); }
.lage2-doc-ico {
  flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  font-size: 8.5px; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--command-red, #ff5b68);
}
.lage2-doc-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lage2-doc-name { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.3; }
.lage2-doc-meta { font-size: 11.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .vdetail-grid { grid-template-columns: 1fr; gap: 28px; }
  .vdetail-topline { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .lage2-dot-item { transition: none; }
}

/* Light-Theme-Feinschliff (die Basistokens flippen bereits; hier nur Akzent-Tints) */
:root[data-theme="light"] .lage2-vtag { background: rgba(140, 92, 255, .10); }
:root[data-theme="light"] .lage2-card { box-shadow: 0 10px 24px rgba(15, 23, 42, .08); }

/* ═══ Vorgang-Detail als Bottom Sheet ═══════════════════════════════════════
   Native-feel Sheet (Apple Maps/Wallet): Overlay direkt an <body>, liegt über
   Inhalt UND Mobile-Dock (z-index > 35). Backdrop dimmt, die Lage bleibt
   dahinter sichtbar. Slide-up per translateY — JS steuert die Rastung (~60 %
   eingeklappt / ~92 % ausgeklappt) und das Ziehen; .vsheet-anim schaltet die
   Transition NUR fürs Snappen/Ein-/Ausfahren zu, damit das Ziehen 1:1 am Finger
   klebt (kein Nachlaufen). Reine Anzeige bestehender KO-Daten. */
.vsheet-root {
  /* Über allem Übrigen (Mobile-Dock 35, Onboarding 1000, Install-Banner 9998):
     ein bewusst geöffnetes Detail-Modal soll den Schirm besitzen, solange es
     offen ist. Der Lade-Splash (9999) koexistiert nie mit dem offenen Sheet. */
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: flex-end; justify-content: center;
}
.vsheet-backdrop {
  position: absolute; inset: 0; background: rgba(4, 7, 14, 0);
  transition: background 420ms cubic-bezier(.32, .72, 0, 1);
  -webkit-tap-highlight-color: transparent;
}
.vsheet-root.open .vsheet-backdrop { background: rgba(4, 7, 14, .5); }

.vsheet {
  position: relative; z-index: 1; width: 100%; max-width: 640px;
  height: 92vh; height: 92dvh; max-height: 92vh; max-height: 92dvh;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  border-top-left-radius: 26px; border-top-right-radius: 26px;
  border: 1px solid var(--line); border-bottom: 0;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, .46);
  transform: translateY(100%);
  will-change: transform; touch-action: none; overscroll-behavior: contain;
  overflow: hidden; /* saubere runde Ecken über der sticky Bedienleiste */
}
/* Weiche, hochwertige Bewegung (Apple-Maps/Music/Wallet-Anmutung, kein technisches Snappen). */
.vsheet.vsheet-anim { transition: transform 460ms cubic-bezier(.32, .72, 0, 1); }
/* Der Dialog wird beim Öffnen programmatisch fokussiert (Fokus in den Modal
   holen) — dafür KEIN sichtbarer Ring um das ganze Sheet. Echte Bedienelemente
   (X, Links) behalten ihren Fokusring. */
.vsheet:focus, .vsheet:focus-visible { outline: none; }

/* Obere Bedienebene (sticky): Grabber + Schließen bleiben beim Scrollen stabil
   erreichbar. NUR diese Leiste ist fixiert — Titel/Meta scrollen normal weg.
   Beim Scrollen erscheint eine feine Trennlinie (.is-scrolled) für Wertigkeit. */
.vsheet-topbar {
  flex: none; position: relative; height: 50px; background: var(--bg);
  border-top-left-radius: 26px; border-top-right-radius: 26px;
  border-bottom: 1px solid transparent;
  transition: border-color 220ms var(--ease-out-soft);
}
.vsheet-topbar.is-scrolled { border-bottom-color: var(--hairline); }

/* Griff (Grabber) — die primäre Ziehfläche zum Ein-/Ausklappen & Schließen. */
.vsheet-grip {
  position: absolute; left: 0; right: 0; top: 0; height: 30px;
  display: grid; place-items: center; padding-top: 10px; cursor: grab; touch-action: none;
}
.vsheet-grip:active { cursor: grabbing; }
.vsheet-grabber { width: 36px; height: 5px; border-radius: 999px; background: var(--muted-2); opacity: .5; }

/* Schließen (X) — ruhig & klein: dünne Linie, kein Rahmen/keine Fläche, mehr
   Abstand zum Rand. Die 44px-Trefferfläche bleibt für die Bedienbarkeit, das
   Glyph ist bewusst klein und dezent, damit der Fokus auf dem Inhalt liegt. */
.vsheet-close {
  position: absolute; top: 50%; right: 14px; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; background: none; color: var(--muted-2); cursor: pointer; border-radius: 10px;
  transition: color var(--dur-base) var(--ease-out-soft);
}
.vsheet-close:hover { color: var(--text); }
.vsheet-close svg { width: 16px; height: 16px; }

/* Scrollbereich — nur der Inhalt scrollt, das Sheet-Gerüst bleibt fix. */
.vsheet-scroll {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; touch-action: pan-y;
  padding: 8px 24px calc(36px + env(safe-area-inset-bottom, 0px));
}

/* Kopfbereich: großer Titel, darunter kompakte Meta-Zeile. Kein rechter
   Freiraum mehr nötig — das X sitzt jetzt in der sticky Bedienleiste darüber. */
.vsheet-head { padding: 4px 0 2px 0; }
.vsheet-head .lage2-vtag { margin-bottom: 15px; }
.vsheet-title {
  margin: 0; font-size: clamp(25px, 6.6vw, 33px); font-weight: 700;
  letter-spacing: -.022em; line-height: 1.18; color: var(--text);
  hyphens: auto; overflow-wrap: break-word;
}
.vsheet-title-fallback { font-size: clamp(19px, 5vw, 23px); line-height: 1.28; }
/* Kompakte Meta-Zeile (kleiner als Fließtext): „Politischer Vorgang · Datum · Quelle". */
.vsheet-metaline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: 13px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.vsheet-meta-type { font-weight: 600; color: var(--muted); }
.vsheet-metasep { color: var(--muted-2); }

/* Abschnitte — deutlich mehr Weißraum zwischen Bereichen; ruhigere, kleinere
   Überschriften. Hierarchie durch Abstand & Größe, nicht durch Farbe. */
.vsheet-sec { margin-top: 42px; }
.vsheet-sec:first-of-type { margin-top: 22px; }
.vsheet-h {
  margin: 0 0 14px; font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-2);
}

/* (2) Kurzfassung — VOLLSTÄNDIG in der Detailansicht (kein Line-Clamp, keine
   Ellipse): der Nutzer will hier bewusst lesen und scrollt bei Bedarf im Sheet.
   Die kompakte Kürzung passiert nur auf der Lage-Karte (eigener Code-Pfad). */
.vsheet-lede { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); }
/* Status DIESES Vorgangs — kleine, ruhige Statuszeile direkt unter der
   Kurzfassung (aus bestehendem v.status). Farbe ist ruhig, kein Alarm. */
.vsheet-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 13px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.vsheet-status-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.vsheet-status-dot.is-green { background: #3fb769; }
.vsheet-status-dot.is-amber { background: #e0a53c; }
.vsheet-status-dot.is-neutral { background: var(--muted-2); }

/* (3) Warum wichtig — ruhige, kompakte politische Notiz: kleinere Schrift,
   engere Zeilenhöhe, je Punkt max. 2 Zeilen (max. 3 Punkte via JS). */
/* Warum wichtig — alle Stichpunkte VOLLSTÄNDIG (kein Clamp, kein abgeschnittener Satz). */
.vsheet-why { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.vsheet-why li {
  position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.5; color: var(--text);
}
.vsheet-why li::before {
  content: ""; position: absolute; left: 3px; top: 8px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--muted-2);
}

/* (3a) Warum für dich relevant (Sprint 23C) — die persönliche Relevanz.
   Ein ruhiger Hauptsatz, keine eigene Karte, kein Alarm, keine Zahl. Bewusst
   dieselbe Typografie wie "Warum wichtig?", damit der Abschnitt sich einfügt
   statt zu dominieren; die Belege liegen darunter und sind zugeklappt. */
.vsheet-relevanz { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text); }

/* Belege — zweite Ebene, nativ per <details>. Zugeklappt ist nur eine ruhige
   Zeile sichtbar; aufgeklappt stehen max. vier kurze Belege untereinander. */
.vsheet-belege { margin-top: 12px; }
.vsheet-belege > summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  /* Daumengerechte Trefferfläche auf dem Telefon, ohne den Abstand zu sprengen. */
  padding: 6px 0; min-height: 32px;
}
.vsheet-belege > summary::-webkit-details-marker { display: none; }
.vsheet-belege > summary::after {
  content: ""; width: 5px; height: 5px; margin-left: 2px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px); transition: transform .18s ease;
}
.vsheet-belege[open] > summary::after { transform: rotate(-135deg) translate(-1px, -1px); }
.vsheet-belege > summary:focus-visible { outline: 2px solid var(--muted-2); outline-offset: 3px; border-radius: 6px; }
.vsheet-belege ul {
  margin: 4px 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.vsheet-belege li {
  position: relative; padding-left: 20px; font-size: 13.5px; line-height: 1.5; color: var(--muted);
}
.vsheet-belege li::before {
  content: ""; position: absolute; left: 3px; top: 8px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--muted-2);
}

/* (4) Empfehlung — dezent hervorgehoben, aber VOLLSTÄNDIG (kein Line-Clamp, kein
   abgeschnittener Satz). Kompakt/ruhig durch dezenten Grund & kleine Schrift,
   nicht durch Kürzung; wächst mit dem Text, das Sheet scrollt. */
.vsheet-reco {
  margin: 0; padding: 13px 15px; border-radius: 12px;
  background: rgba(140, 92, 255, .045); border: 0;
  font-size: 14.5px; line-height: 1.55; color: var(--text);
}

/* (5) Betroffene — kleinere, elegantere Chips mit mehr Abstand (unterstützen, nicht dominieren). */
.vsheet-groups { display: flex; flex-direction: column; gap: 16px; }
.vsheet-group { display: flex; flex-direction: column; gap: 9px; }
.vsheet-group-label { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.vsheet-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.vsheet-chip {
  font-size: 12px; font-weight: 550; color: var(--muted);
  background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 11px; line-height: 1.25;
}

/* (6) Quellen — gut sichtbarer Vertrauensblock: Name > Zeit · Quelle > Externer Link. */
.vsheet-sources { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 2px 16px; }
.vsheet-src {
  display: flex; align-items: center; gap: 14px; padding: 14px 0; min-height: 44px;
  text-decoration: none; color: inherit; border-bottom: 1px solid var(--hairline);
}
.vsheet-src:last-child { border-bottom: 0; }
.vsheet-src-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.vsheet-src-name { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.3; }
.vsheet-src-meta { font-size: 12.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.vsheet-src-ext { width: 17px; height: 17px; flex: none; color: var(--muted-2); transition: color 200ms var(--ease-out-soft); }
.vsheet-src:hover .vsheet-src-name { color: var(--command-purple); }
.vsheet-src:hover .vsheet-src-ext { color: var(--command-purple); }
/* (8) Chronologie — minimalistische Timeline: dünne vertikale Linie, kleine
   ruhige Punkte (statt großer Kreise mit Akzentrand). */
.vsheet-chrono { list-style: none; margin: 0; padding: 0; }
.vsheet-chrono li { position: relative; padding: 0 0 15px 20px; }
.vsheet-chrono li:last-child { padding-bottom: 0; }
.vsheet-chrono li::before { content: ""; position: absolute; left: 3px; top: 6px; bottom: -5px; width: 1px; background: var(--line); }
.vsheet-chrono li:last-child::before { display: none; }
.vsheet-chrono li::after { content: ""; position: absolute; left: 0; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.vsheet-chrono time { display: block; font-size: 11px; font-weight: 600; color: var(--muted-2); margin: 0 0 2px; font-variant-numeric: tabular-nums; }
.vsheet-chrono p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--text); }
.vsheet-empty { margin: 0; font-size: 14px; color: var(--muted); }

/* Reduzierte Bewegung: kein Slide/kein Fade-Timing — sofort sichtbar. */
@media (prefers-reduced-motion: reduce) {
  .vsheet.vsheet-anim { transition: none; }
  .vsheet-backdrop { transition: none; }
}

/* Größere Viewports (Desktop-Vorschau): Sheet zentriert, seitlich gerahmt. */
@media (min-width: 700px) {
  .vsheet { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

/* Light-Theme: Tints an helle Fläche anpassen. */
:root[data-theme="light"] .vsheet-reco { background: rgba(109, 76, 255, .045); }
:root[data-theme="light"] .vsheet-close:hover { background: rgba(15, 23, 42, .07); }

/* ══════════════════════════════════════════════════════════════════════════
   V3 — Helmut Stabschefstand (.hstand)
   Ruhig, minimalistisch, premium. Nur Design-Tokens -> Light/Dark automatisch.
   Mobile-first: eine Spalte, klare Reihenfolge. Desktop: etwas luftiger.
   ══════════════════════════════════════════════════════════════════════════ */
.hstand {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 0 12px;
}

/* Kopf — kompakter (weniger Höhe bis zur Vorschlagskarte) */
.hstand-head { display: flex; flex-direction: column; gap: 5px; padding: 0 2px 2px; }
.hstand-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
/* Block 5: Status-Badge + manueller ↻-Refresh gruppiert rechts im Kopf */
.hstand-head-actions { flex: none; display: inline-flex; align-items: center; gap: 8px; }
.hstand-title { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.03em; color: var(--text); line-height: 1.05; }
.hstand-subtitle { margin: 2px 0 0; font-size: 14px; color: var(--muted-2); letter-spacing: -.01em; }
/* Meta als dezente Pille (Zielbild): Uhr + Briefingtyp · Zeit */
.hstand-meta-line {
  margin: 3px 0 0; display: inline-flex; align-self: flex-start; align-items: center; gap: 7px;
  font-size: 12px; color: var(--muted); padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--hairline); background: color-mix(in srgb, var(--text) 3%, transparent);
}
.hstand-meta-line svg { width: 13px; height: 13px; opacity: .85; }
.hstand-status {
  flex: none; display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  border: 1px solid var(--hairline); background: rgba(255, 255, 255, .02);
}
.hstand-status--ok { color: var(--chance); border-color: color-mix(in srgb, var(--chance) 40%, transparent); background: color-mix(in srgb, var(--chance) 12%, transparent); }
.hstand-status--warn { color: var(--watch); border-color: color-mix(in srgb, var(--watch) 40%, transparent); background: color-mix(in srgb, var(--watch) 12%, transparent); }
.hstand-status--danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.hstand-status--muted { color: var(--muted); }
.hstand-partial { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--watch); }
.hstand-partial svg { width: 15px; height: 15px; }
/* Frischevertrag: ehrliche Ansage im Kopf ("Briefing noch nicht aktuell",
   Teilausfall von Quellen, ruhiger Tag ohne neue Meldung). Kein Alarmrot —
   der Zustand ist eine Tatsache, keine Katastrophe. */
.hstand-frische {
  margin: 2px 0 0; display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; line-height: 1.45; color: var(--muted);
}
.hstand-frische svg { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.hstand-frische--warn { color: var(--watch); }
.hstand-frische--muted { color: var(--muted); }

/* Karte — kompakter, ruhigerer Rahmen, etwas tiefer/blauer als die Fläche.
   Der Blauton läuft über var(--accent) (in beiden Themes blau) -> theme-sicher. */
.hstand-card {
  background: color-mix(in srgb, var(--accent) 4%, var(--card));
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 11px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hstand-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .085em; text-transform: uppercase;
  color: var(--muted);
}
/* Farbiges Icon-Badge (Zielbild): kleiner, ruhiger, weniger weich. */
.hstand-kico {
  flex: none; width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center;
  color: inherit;
  background: color-mix(in srgb, currentColor 15%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 26%, transparent);
}
.hstand-kico svg { width: 12px; height: 12px; display: block; }
.hstand-kicker--accent { color: var(--accent); }
.hstand-kicker--risk { color: var(--danger); }
.hstand-kicker--chance { color: var(--chance); }
.hstand-kicker--comms { color: var(--command-purple); }
.hstand-kicker--actions { color: var(--gold); }
.hstand-kicker--muted { color: var(--muted); }

/* Mein Vorschlag — der Fokus (kompakt, edel, konzentriert) */
.hstand-proposal {
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  padding: 12px 14px;
  gap: 6px;
}
/* Mehrsatz-Empfehlung als klare, kurze Entscheidungszeilen (Entscheidungsvorlage) */
.hstand-proposal-lines {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 5px;
}
.hstand-proposal-lines li {
  position: relative; padding-left: 15px;
  font-size: 15px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; color: var(--text);
  text-wrap: balance;
}
.hstand-proposal-lines li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 5px; height: 5px; border-radius: 2px; background: var(--accent);
}
/* Einzelsatz-Empfehlung: kompakter, ruhiger — nicht wie ein grosser Verwaltungssatz.
   Nur Darstellung, kein Inhalt wird umgeschrieben. */
.hstand-proposal-text {
  margin: 0; font-size: 18px; font-weight: 600; line-height: 1.28; letter-spacing: -.02em;
  color: var(--text); text-wrap: balance;
}
.hstand-empty-line { margin: 0; font-size: 15px; color: var(--muted-2); line-height: 1.45; }

/* Fließtexte — kompakter */
.hstand-body { margin: 0; font-size: 14px; line-height: 1.45; color: color-mix(in srgb, var(--text) 87%, transparent); }
.hstand-body--tight { font-size: 12.5px; line-height: 1.36; }

/* Chips — enger */
.hstand-chiprow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hstand-chiprow--sm { gap: 6px; }
.hstand-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; letter-spacing: -.005em;
  border: 1px solid var(--hairline); background: rgba(255, 255, 255, .015); color: var(--muted);
}
.hstand-chip--ctx { color: var(--muted); }
/* suggestedOutputs sind NICHT klickbar -> ruhige Chips (keine Button-/Accent-Optik,
   damit keine Funktion vorgetaeuscht wird). */
.hstand-chip--out { color: var(--muted); }
.hstand-chip--danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 32%, transparent); }
.hstand-chip--warn { color: var(--watch); border-color: color-mix(in srgb, var(--watch) 32%, transparent); }
.hstand-chip--muted { color: var(--muted); }
.hstand-dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; opacity: .9; }

/* Risiko/Chance-Stufe: kräftig gefülltes Badge (Zielbild), am Kartenende — kompakt. */
.hstand-level {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent; color: var(--muted);
}
.hstand-level--risk { color: color-mix(in srgb, var(--danger) 78%, #fff); background: color-mix(in srgb, var(--danger) 24%, transparent); border-color: color-mix(in srgb, var(--danger) 34%, transparent); }
.hstand-level--chance { color: color-mix(in srgb, var(--chance) 80%, #fff); background: color-mix(in srgb, var(--chance) 20%, transparent); border-color: color-mix(in srgb, var(--chance) 32%, transparent); }
.hstand-level--warn { color: color-mix(in srgb, var(--watch) 82%, #fff); background: color-mix(in srgb, var(--watch) 20%, transparent); border-color: color-mix(in srgb, var(--watch) 30%, transparent); }
.hstand-level--muted { color: var(--muted); background: color-mix(in srgb, var(--muted) 12%, transparent); }

/* Risiko + Chance IMMER nebeneinander (auch mobil), dicht — politische Abwägung. */
.hstand-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hstand-split { height: 100%; gap: 5px; padding: 10px 11px; }
.hstand-split .hstand-body { flex: 1 1 auto; }
.hstand-split .hstand-level { margin-top: 1px; align-self: flex-start; }

/* Empfohlene Kommunikation: klare, hervorgehobene Empfehlungslinie (lila, seriös) */
.hstand-comms-rec { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hstand-comms-rec-k {
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--command-purple); padding: 3px 8px; border-radius: 6px;
  background: color-mix(in srgb, var(--command-purple) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--command-purple) 24%, transparent);
}
.hstand-comms-rec-v { font-size: 13.5px; font-weight: 550; color: color-mix(in srgb, var(--text) 88%, transparent); }
/* Format-Vorschläge als ruhige, klar gelabelte (nicht klickbare) Chips */
.hstand-comms-formats { display: flex; flex-direction: column; gap: 6px; }
.hstand-comms-formats-label { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }

/* Nächste Schritte — klare Arbeitsanweisung, kompakt */
.hstand-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hstand-step { display: flex; gap: 10px; align-items: flex-start; }
.hstand-step-num {
  flex: none; width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 600; color: var(--muted); line-height: 1;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02); margin-top: 1px;
}
.hstand-step-body { display: flex; flex-direction: column; gap: 2px; }
.hstand-step-title { margin: 0; font-size: 14px; font-weight: 550; color: var(--text); line-height: 1.3; }
.hstand-step-desc { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.38; }
.hstand-step-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 1px; }
.hstand-step-due { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted-2); }
.hstand-step-due svg { width: 13px; height: 13px; opacity: .8; }
/* Lange Aufgaben-Beschreibung: sehr dezent aufklappbar (kleiner, grauer, Chevron
   statt Plus — weniger Admin-Optik). Bleibt vollständig in den Daten, startet
   geschlossen. */
.hstand-step-more { margin-top: 1px; }
.hstand-step-more > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 500; letter-spacing: .01em; color: var(--muted-2);
  padding: 0; user-select: none; opacity: .72;
}
.hstand-step-more > summary:hover { opacity: 1; }
.hstand-step-more > summary::-webkit-details-marker { display: none; }
.hstand-step-more > summary::before {
  content: "›"; font-size: 12px; line-height: 1; opacity: .9;
  transition: transform var(--dur-fast, 120ms) var(--ease-out-soft, ease);
}
.hstand-step-more[open] > summary::before { transform: rotate(90deg); }
.hstand-step-more[open] > summary { margin-bottom: 2px; }
.hstand-step-more .hstand-step-desc { margin: 0; }
.hstand-prio { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .02em; border: 1px solid var(--hairline); color: var(--muted); }
.hstand-prio--risk { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 32%, transparent); }
.hstand-prio--warn { color: var(--watch); border-color: color-mix(in srgb, var(--watch) 32%, transparent); }
.hstand-prio--muted { color: var(--muted-2); }

/* Aktueller Vorgang */
.hstand-primary-title { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--text); line-height: 1.32; }
.hstand-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 3px 0 0; padding-top: 11px; border-top: 1px solid var(--hairline); }
.hstand-metric { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hstand-metric dt { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
.hstand-metric dd { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--text); }
/* Kurzlabel „Stand" nur mobil, „Letzte Aktualisierung" auf Desktop */
.hstand-mk-short { display: none; }

/* Weitere relevante Vorgänge */
.hstand-rels { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.hstand-rel { display: flex; flex-direction: column; gap: 3px; padding-bottom: 9px; border-bottom: 1px solid var(--hairline); }
.hstand-rel:last-child { padding-bottom: 0; border-bottom: none; }
.hstand-rel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
/* Titel + Relevanz je auf HOECHSTENS 2 Zeilen begrenzt (nur Darstellung im Helmut-
   Tab — die vollen Daten bleiben in state.items unveraendert). Kein Absatz, keine
   Textkarte, keine Chipwolke. */
.hstand-rel-title {
  margin: 0; min-width: 0; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.34;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hstand-rel-head .hstand-chip { flex: none; align-self: center; }
.hstand-rel-why {
  margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Tatsaechliches Datum der Meldung (Europe/Berlin) — steht auch dann am Vorgang,
   wenn er im heutigen Briefing unter "Neu seit dem letzten Briefing" laeuft. */
.hstand-rel-when { margin: 0; font-size: 12px; color: var(--muted-2); letter-spacing: -.01em; }

/* Oeffnende Quellen-Links (Quellenpflicht-Sprint 2026-08-22) */
.hstand-quelle-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; font-size: 12.5px; font-weight: 600;
  color: var(--text); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
  transition: border-color .15s ease;
}
.hstand-quelle-link:hover { border-color: var(--muted-2); }
.hstand-rel-quelle {
  display: inline-block; margin-top: 2px; font-size: 12px; font-weight: 600;
  color: var(--muted); text-decoration: none;
}
.hstand-rel-quelle:hover { color: var(--text); }

/* Quality-Indikator */
.hstand-q { display: inline-flex; align-items: center; gap: 7px; }
.hstand-qdot { width: 7px; height: 7px; border-radius: 999px; background: var(--muted-2); }
.hstand-qdot--ok { background: var(--chance); }
.hstand-qdot--warn { background: var(--watch); }
.hstand-qdot--danger { background: var(--danger); }
.hstand-qdot--muted { background: var(--muted-2); }

/* Quellen-Fußzeile — ruhig, hochwertig, kompakt */
.hstand-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 2px 4px 0; margin-top: 1px;
  font-size: 12px; color: var(--muted-2);
}
.hstand-foot-cell { display: inline-flex; align-items: center; gap: 6px; }

/* Neutrale/ehrliche Zustände */
.hstand--state { min-height: 40vh; }
.hstand-state-card {
  margin: 8px auto; max-width: 420px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 40px 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.hstand-state-mark {
  width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center;
  font-size: 24px; font-weight: 300; color: var(--muted); border: 1px solid var(--line);
}
.hstand-state-card--error .hstand-state-mark { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.hstand-state-title { margin: 6px 0 0; font-size: 17px; font-weight: 600; color: var(--text); }
.hstand-state-sub { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted-2); max-width: 34ch; }

/* Bottom-Navigation (fix, ≤920px) darf keinen Inhalt verdecken: großzügiger unterer
   Innenabstand inkl. iOS Safe-Area, damit jede Karte sauber über der Dock endet. */
@media (max-width: 920px) {
  .hstand { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }

  /* Helmut-Tab MOBIL: die große obere App-Leiste (Menü / HELMUT-Wortmarke / Herz /
     Profil) ausblenden -> der Inhalt startet direkt mit dem Helmut-Kopf. Menü,
     Updates und Profil bleiben über die anderen Tabs (dort erscheint die Leiste
     weiter) und die feste Bottom-Navigation erreichbar. Nur der Helmut-Tab und nur
     mobil sind betroffen — Desktop und andere Tabs bleiben unverändert. */
  .app-frame.view-helmut .topbar { display: none; }
  .app-frame.view-helmut .content-shell {
    padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
  }

  /* Radar-Tab MOBIL: identisch zum Helmut-Tab — die große obere App-Leiste ausblenden,
     der Inhalt startet direkt mit dem Radar-Kopf (eigener "Radar"-Header + Refresh).
     Nur der Radar-Tab und nur mobil; Desktop und andere Tabs bleiben unverändert. */
  .app-frame.view-radar .topbar { display: none; }
  .app-frame.view-radar .content-shell {
    padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
  }
}

/* Helmut-Tab: ruhigerer, gleichmäßigerer Hintergrund (weniger Violett als der
   globale Verlauf). Nur im Dark-Default (Light-Theme + andere Tabs unberührt). */
:root:not([data-theme="light"]) .app-frame.view-helmut {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 82% 2%, rgba(140, 92, 255, .05), transparent 34%),
    linear-gradient(180deg, #070b15 0%, #050914 64%, #04060d 100%);
}

/* Desktop: etwas luftiger, aber weiter kompakt */
@media (min-width: 720px) {
  .hstand { gap: 8px; padding-top: 4px; }
  .hstand-duo { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hstand-card { padding: 14px 16px; }
  .hstand-proposal { padding: 15px 17px; }
  .hstand-title { font-size: 29px; }
  .hstand-proposal-text { font-size: 21px; }
  .hstand-proposal-lines li { font-size: 17px; }
  .hstand-body { font-size: 14.5px; }
}

/* Mobil: schmalerer Seitenrand (Karten breiter -> weniger Zeilenumbrüche);
   „Aktueller Vorgang"-Metriken bleiben 3-spaltig, kompakter; Kurzlabel „Stand". */
@media (max-width: 600px) {
  .hstand { margin-inline: -6px; }
  .hstand-metrics { gap: 9px; padding-top: 10px; }
  .hstand-metric dt { font-size: 10.5px; }
  .hstand-metric dd { font-size: 12.5px; }
  .hstand-mk-full { display: none; }
  .hstand-mk-short { display: inline; }
  /* Vorschlag mobil kompakter -> naeher an einer Entscheidungsvorlage */
  .hstand-proposal-text { font-size: 16.5px; line-height: 1.3; }
  .hstand-proposal-lines li { font-size: 14.5px; }
}

/* Sehr schmal: Vorschlag minimal kleiner, Fußzeile enger */
@media (max-width: 480px) {
  .hstand-proposal-text { font-size: 15.5px; line-height: 1.34; }
  .hstand-proposal-lines li { font-size: 14px; }
  .hstand-title { font-size: 25px; }
  .hstand-foot { gap: 12px; }
  .hstand-split { padding: 9px 10px; }
}
/* Nur extrem schmal: Risiko/Chance gestapelt (sonst zu eng) */
@media (max-width: 344px) {
  .hstand-duo { grid-template-columns: 1fr; }
}

/* ============================================================================
   RADAR — Persönliches politisches Umfeld & Frühwarnsystem
   Premium, ruhig, ministeriell. Übernimmt Hierarchie/Weißraum/Typografie aus
   dem Referenzbild in das BESTEHENDE dunkle Helmut-Designsystem (Tokens), mit
   sauberen Light-Overrides. Keine dicken Rahmen, keine lauten Karten, kein
   Dashboard. Reduktion = Premium.
   ========================================================================== */
.radar2 {
  --radar-signal: var(--command-purple, #8c5cff);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Kopf ---------------------------------------------------------------------- */
.radar2-header { margin-bottom: 20px; }
.radar2-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.radar2-h1 {
  margin: 0;
  font-size: clamp(28px, 8.4vw, 32px);
  font-weight: 720;
  letter-spacing: -.02em;
  line-height: 1.04;
}
.radar2-lede {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.35;
}
.radar2-status {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted-2);
}
/* Ruhiger Hinweis auf einen fehlgeschlagenen Refresh (Stoerungswahrheit, kein Alarm). */
.radar2-refresh-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--muted-2);
}
.radar2-status-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--muted-2); }
.radar2-status--fresh .radar2-status-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.radar2-refresh {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  transition: color var(--dur-fast) var(--ease-out-soft), border-color var(--dur-fast) var(--ease-out-soft), transform var(--dur-fast) var(--ease-out-soft);
}
.radar2-refresh:hover { color: var(--text); border-color: var(--accent-soft); }
.radar2-refresh:active { transform: scale(.94); }
.radar2-refresh.is-loading { color: var(--accent); }
.radar2-refresh.is-loading .radar2-ico { animation: radar2-spin 900ms linear infinite; }
@keyframes radar2-spin { to { transform: rotate(360deg); } }

/* Icons --------------------------------------------------------------------- */
.radar2-ico { display: block; flex: 0 0 auto; }

/* Persönliche Zusammenfassung (die EINE hervorgehobene Karte) — kompakt & edel,
   kleineres Icon gibt dem Text mehr Breite (keine unschönen Zeilenumbrüche). */
.radar2-summary {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 16px;
  border-radius: 17px;
  border: 1px solid var(--accent-soft);
  background:
    linear-gradient(180deg, var(--accent-soft), transparent 130%),
    var(--card);
  box-shadow: 0 1px 0 var(--hairline);
}
.radar2-summary--empty { color: var(--muted); }
.radar2-summary-icon {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.radar2-summary-icon .radar2-ico { width: 21px; height: 21px; }
/* Jede Aussage ist eine eigene Zeile (Erwähnungen / Umfeld) -> nie mitten im Satz
   umbrechen; balancierter Umbruch, wenn eine Zeile doch länger ist. */
.radar2-summary-text { margin: 0; font-size: 15px; line-height: 1.46; color: var(--text); letter-spacing: -.003em; }
.radar2-summary-line { display: block; text-wrap: pretty; }
.radar2-summary-line + .radar2-summary-line { margin-top: 2px; color: var(--muted); }
.radar2-hl { color: var(--accent); font-weight: 650; font-variant-numeric: tabular-nums; }

/* Sektionen — mehr Premium-Luft zwischen Hauptbereichen --------------------- */
.radar2-section { margin-top: 36px; }
/* "Über dich" folgt direkt auf die Hero-Zusammenfassung: etwas enger, damit die erste
   Bildschirmhöhe stark beginnt (Titel + Aktualität + Zusammenfassung + Über dich). */
.radar2-summary + .radar2-section { margin-top: 26px; }
.radar2-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.radar2-h2 {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 640;
  letter-spacing: -.01em;
  color: var(--text);
}
.radar2-section-head .radar2-h2 { margin: 0; }
.radar2-h2 .radar2-ico { color: var(--muted-2); width: 19px; height: 19px; }
.radar2-more-link {
  flex: 0 0 auto;
  border: 0; background: transparent;
  color: var(--accent);
  font-size: 13px; font-weight: 560;
  padding: 6px 2px;
  border-radius: 8px;
}
.radar2-more-link:hover { text-decoration: underline; }
/* Block-Variante unter einer Liste (Artikel-Überblick: "Alle anzeigen"). */
.radar2-more-link--block {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 10px; padding: 9px 4px;
}

/* Karten (Über dich / Dynamiken) ------------------------------------------- */
.radar2-cards { display: flex; flex-direction: column; gap: 10px; }
.radar2-card {
  display: flex; align-items: stretch; gap: 12px;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-fast) var(--ease-out-soft), background var(--dur-fast) var(--ease-out-soft);
}
.radar2-card:hover { border-color: var(--line); }
.radar2-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.radar2-card--nolink { cursor: default; }
.radar2-card-body { flex: 1 1 auto; min-width: 0; }
.radar2-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.radar2-source-name { font-size: 12.5px; font-weight: 560; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 62%; }
.radar2-dot { color: var(--muted-2); }
.radar2-time { font-size: 12px; color: var(--muted-2); white-space: nowrap; }
.radar2-card-title {
  margin: 0;
  font-size: 15px; font-weight: 620; line-height: 1.34;
  letter-spacing: -.005em;
  color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.radar2-card-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.radar2-card-sub { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.radar2-card-sub--block {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: 8px 0 0; line-height: 1.4;
}

/* Quellenzeichen (Monogramm, kein erfundenes Bild) — ruhige, monochrome Quellenmarke
   (KEINE bunten Avatar-Farben): dezent, hochwertig, einheitlich, wie Linear/Notion. */
.radar2-badge {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--muted-2);
  font-size: 11px; font-weight: 560; line-height: 1;
  letter-spacing: .02em;
  border: 0;
}
/* In dichten Listen (Umfeld / Artikel) noch dezenter als in "Über dich". */
.radar2-badge--sm {
  width: 22px; height: 22px; border-radius: 7px;
  font-size: 10px; font-weight: 560;
  color: color-mix(in srgb, var(--text) 42%, transparent);
  background: color-mix(in srgb, var(--text) 4.5%, transparent);
}

/* Chevron ------------------------------------------------------------------- */
.radar2-chevron { flex: 0 0 auto; align-self: center; color: var(--muted-2); display: grid; place-items: center; }

/* Dynamik-Karte: eigenes Signal-Icon (dezent lila) ------------------------- */
.radar2-card--dynamic { align-items: flex-start; }
.radar2-dyn-icon {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: color-mix(in srgb, var(--radar-signal) 15%, transparent);
  color: var(--radar-signal);
}
.radar2-dyn-evidence { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* Segmentsteuerung (Partei / Wahlkreis / Ausschüsse) — ruhig, kein Pill ----- */
.radar2-segments {
  display: flex; gap: 4px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--hairline);
}
.radar2-seg {
  flex: 1 1 0; min-height: 42px;
  border: 0; background: transparent;
  color: var(--muted); font-size: 14px; font-weight: 560;
  padding: 10px 4px 11px;
  position: relative;
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: color var(--dur-fast) var(--ease-out-soft);
}
@media (max-width: 360px) { .radar2-seg { font-size: 13px; } }
.radar2-seg:hover { color: var(--text); }
.radar2-seg.is-active { color: var(--accent); font-weight: 620; }
.radar2-seg.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  border-radius: 2px; background: var(--accent);
}
.radar2-seg-count {
  font-style: normal; font-size: 11px; font-weight: 640;
  min-width: 17px; padding: 1px 5px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}

/* Ruhige Listen (Umfeld / Artikel) mit subtilen Trennlinien ---------------- */
.radar2-list { display: flex; flex-direction: column; }
.radar2-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none; color: inherit;
  transition: background var(--dur-fast) var(--ease-out-soft);
}
.radar2-row:last-child { border-bottom: 0; }
.radar2-row:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
.radar2-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 8px; }
.radar2-row--nolink { cursor: default; }
.radar2-row-body { flex: 1 1 auto; min-width: 0; }
.radar2-row-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.radar2-row-meta--top { margin-bottom: 5px; }
.radar2-row-title {
  margin: 3px 0 5px;
  font-size: 14.5px; font-weight: 600; line-height: 1.34; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.radar2-row-sub { font-size: 12px; color: var(--muted-2); }

/* Filter — horizontal scrollbar, nie abgeschnitten -------------------------- */
.radar2-filters {
  display: flex; gap: 8px;
  margin-bottom: 6px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 2px 8px;
  scroll-padding: 0 12px;
}
.radar2-filters::-webkit-scrollbar { display: none; }
.radar2-filter {
  flex: 0 0 auto; min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px; font-weight: 540;
  padding: 8px 15px;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out-soft), background var(--dur-fast) var(--ease-out-soft), border-color var(--dur-fast) var(--ease-out-soft);
}
.radar2-filter:hover { color: var(--text); border-color: var(--accent-soft); }
.radar2-filter.is-active { background: var(--accent); border-color: transparent; color: #fff; font-weight: 600; }
.radar2-filter:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Tags (Erwähnungsart / Bezug / Signal) — dezent, selten Farbe -------------- */
.radar2-tag {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 580; line-height: 1;
  padding: 4px 9px; border-radius: 7px;
  letter-spacing: .002em;
}
.radar2-tag--neutral { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--muted); }
.radar2-tag--critical { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.radar2-tag--signal { background: color-mix(in srgb, var(--radar-signal) 16%, transparent); color: var(--radar-signal); }

/* Leerzustände -------------------------------------------------------------- */
.radar2-empty {
  padding: 18px 4px;
  font-size: 14px; line-height: 1.45;
  color: var(--muted-2);
}

/* Premium-Hierarchie: "Alle relevanten Artikel" ist die LEISESTE Recherche-Ebene ---
   klar sekundär zu Über dich / Umfeld / Dynamiken. Kein News-Feed-Eindruck. */
.radar2-h2--quiet { font-size: 14px; font-weight: 580; color: var(--muted-2); letter-spacing: 0; }
.radar2-h2--quiet .radar2-ico { color: var(--muted-2); width: 16px; height: 16px; opacity: .75; }
.radar2-section--articles { margin-top: 52px; }
.radar2-section--articles .radar2-row { padding: 9px 2px; gap: 10px; }
.radar2-section--articles .radar2-row-title {
  margin: 1px 0 4px;
  font-size: 13px; font-weight: 540; line-height: 1.32;
  color: color-mix(in srgb, var(--text) 88%, transparent);
}
.radar2-section--articles .radar2-source-name { font-size: 11px; font-weight: 500; color: var(--muted-2); }
.radar2-section--articles .radar2-time { font-size: 10.5px; }
.radar2-section--articles .radar2-row-meta--top { margin-bottom: 3px; }
.radar2-section--articles .radar2-tag { font-size: 10px; padding: 2px 6px; }
.radar2-section--articles .radar2-more-link--block { color: var(--muted); }
.radar2-section--articles .radar2-more-link--block:hover { color: var(--accent); }

/* Kleinere, ruhigere Relation-Chips (Umfeld/Artikel). */
.radar2-tag--sm { font-size: 10.5px; padding: 3px 7px; border-radius: 6px; font-weight: 540; }
/* Umfeld-Bezugschip noch dezenter (das Segment-Tab trägt bereits den Kontext). */
.radar2-row .radar2-tag--sm { background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--muted-2); }

/* Über dich bleibt die visuell stärkste Signalebene: etwas mehr Präsenz in der
   Kartenüberschrift und ruhigem Rahmen (Karten nur dort, wo sie Wert schaffen). */
.radar2-cards .radar2-card-title { font-size: 15.5px; }

/* Umfeld-Lesbarkeit: Titel dürfen 2 Zeilen atmen, ruhige Metazeile darunter. */
.radar2-list .radar2-row-title { line-height: 1.36; }
.radar2-list .radar2-row-meta { gap: 7px; row-gap: 4px; }

/* Desktop: ruhige, begrenzte Inhaltsbreite (kein breites Dashboard) --------- */
@media (min-width: 900px) {
  .radar2 { max-width: 640px; }
  .radar2-header { margin-bottom: 24px; }
  .radar2-section { margin-top: 34px; }
}

/* Light-Theme: sauberer, hellerer Radar-Hintergrund (weg vom grauen Web-App-Look) --
   analog zum Helmut-Tab ein view-spezifischer, ruhiger Verlauf; nur Radar, nur Light. */
:root[data-theme="light"] .app-frame.view-radar {
  min-height: 100dvh;
  background:
    radial-gradient(120% 60% at 50% -8%, rgba(79,111,224,.05), transparent 60%),
    linear-gradient(180deg, #fcfdff 0%, #f7f9fd 60%, #f2f5fb 100%);
}
:root[data-theme="light"] .radar2-summary {
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, #fff), #fff 120%);
  box-shadow: 0 8px 24px rgba(79,111,224,.09), 0 1px 0 rgba(255,255,255,.8);
}
/* Karten hochwertiger: reines Weiß + feiner, weicher Schatten statt flachem Grau. */
:root[data-theme="light"] .radar2-card {
  background: #fff;
  border-color: rgba(15,23,42,.06);
  box-shadow: 0 1px 3px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.03);
}
:root[data-theme="light"] .radar2-badge { background: rgba(15,23,42,.045); border-color: transparent; color: var(--muted-2); }
:root[data-theme="light"] .radar2-tag--neutral { background: rgba(15,23,42,.055); }
:root[data-theme="light"] .radar2-row { border-bottom-color: rgba(15,23,42,.07); }

/* ── A11y: durchgängig sichtbarer Tastatur-Fokus (Pre-Sale-Hardening) ──
   Vorher hatten die Standard-Buttons/Links/role=button kaum focus-visible-Regeln;
   Tastaturnutzer verloren die Fokusspur. Eine globale, dezente Regel schließt das,
   ohne den Maus-Fokus (nicht :focus-visible) zu stören. */
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent, #6f8ff7);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ============================================================================
   ADMIN (Neuaufbau 2026-07) — Praefix adm-. Token-basiert (var(--card/--line/
   --text/--muted-2/--danger/--watch/--chance/--accent)) + color-mix, dadurch
   funktionieren Hell- und Dunkelmodus ohne !important-Overrides (Vorbild:
   radar2-Abschnitt). Ruhig, minimalistisch, keine Marketing-Optik.
   ========================================================================== */

.adm { display: flex; flex-direction: column; gap: 18px; animation: none; }

.adm-header { display: flex; flex-direction: column; gap: 14px; }
.adm-header-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.adm-title { font-size: clamp(26px, 3.6vw, 36px); font-weight: 760; letter-spacing: -0.02em; margin: 4px 0 6px; }
.adm-subtitle { color: var(--muted-2); font-size: 14px; line-height: 1.55; margin: 0; max-width: 720px; }

.adm-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-nav-btn {
  font: inherit; font-size: 13px; font-weight: 560; letter-spacing: -0.005em;
  padding: 8px 14px; border-radius: 10px; cursor: pointer; white-space: nowrap;
  background: var(--card); color: var(--muted-2); border: 1px solid var(--line);
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.adm-nav-btn:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 25%, transparent); }
.adm-nav-btn.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.adm-body { display: flex; flex-direction: column; gap: 14px; }

.adm-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-meta-stand { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.adm-inline-btn {
  font: inherit; font-size: 12px; font-weight: 560; padding: 6px 11px; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--muted-2); border: 1px solid var(--line);
}
.adm-inline-btn:hover:not(:disabled) { color: var(--text); border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.adm-inline-btn:disabled { opacity: 0.5; cursor: default; }

/* Karten */
.adm-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px; box-shadow: var(--soft-shadow);
}
.adm-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.adm-card-title { font-size: 15.5px; font-weight: 640; letter-spacing: -0.01em; margin: 0; }
.adm-card-sub { font-size: 12.5px; color: var(--muted); margin: 3px 0 0; line-height: 1.5; }

/* Zustandskopf */
.adm-statehead { display: flex; flex-direction: column; gap: 10px; }
.adm-statehead-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-statehead-text { font-size: 13.5px; color: var(--muted-2); }
.adm-allquiet { margin: 0; font-size: 13.5px; color: var(--chance); }
/* Neutraler Hinweis bei unbekanntem Zustand — bewusst NICHT gruen (keine Entwarnung). */
.adm-unknown-note { margin: 0; font-size: 13.5px; color: var(--muted-2); }
.adm-actions-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.adm-action-item { font-size: 13.5px; color: var(--text); padding-left: 14px; position: relative; }
.adm-action-item::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--watch); }
.adm-action-item--bad::before { background: var(--danger); }
.adm-action-item--ok::before { background: var(--chance); }
.adm-action-link {
  font: inherit; background: none; border: none; padding: 0; cursor: pointer; color: var(--text);
  text-align: left; text-decoration: none;
}
.adm-action-link:hover { color: var(--accent); }

/* Status-Chips: nie nur Farbe — immer Text + Punkt */
.adm-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.01em; border-radius: 999px; padding: 4px 11px; white-space: nowrap;
  border: 1px solid var(--line); color: var(--muted-2); background: transparent;
}
.adm-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.adm-chip--ok { color: var(--chance); border-color: color-mix(in srgb, var(--chance) 35%, transparent); background: color-mix(in srgb, var(--chance) 10%, transparent); }
.adm-chip--ok .adm-chip-dot { background: var(--chance); }
.adm-chip--warn { color: var(--watch); border-color: color-mix(in srgb, var(--watch) 40%, transparent); background: color-mix(in srgb, var(--watch) 10%, transparent); }
.adm-chip--warn .adm-chip-dot { background: var(--watch); }
.adm-chip--bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.adm-chip--bad .adm-chip-dot { background: var(--danger); }
.adm-chip--paused, .adm-chip--unknown { color: var(--muted-2); }

/* KPI-Kacheln */
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.adm-tile {
  display: flex; flex-direction: column; gap: 4px; padding: 13px 15px;
  border: 1px solid var(--hairline); border-radius: 12px;
  background: color-mix(in srgb, var(--text) 2.5%, transparent);
}
.adm-tile-label { font-size: 12px; color: var(--muted-2); line-height: 1.4; }
.adm-tile-value { font-size: 22px; font-weight: 680; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.adm-tile-value--empty { color: var(--muted); font-weight: 500; }
.adm-tile-hint { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.adm-val-bad { color: var(--danger); font-weight: 640; }

/* Notizen / Leerzustaende */
.adm-note { font-size: 12.5px; color: var(--muted-2); line-height: 1.6; margin: 10px 0 0; }
.adm-note--warn { color: var(--watch); }
/* Punkt 18: veraltete Datengrundlage / fehlender Volllauf — muss auffallen,
   sonst liest sich eine Inventur von gestern wie eine Aussage ueber jetzt. */
.adm-note--bad { color: var(--danger); font-weight: 560; }
.adm-note--currency {
  margin: 0; padding: 11px 14px; border: 1px solid color-mix(in srgb, var(--watch) 35%, transparent);
  border-radius: 12px; background: color-mix(in srgb, var(--watch) 7%, transparent); color: var(--muted-2);
}
.adm-empty { font-size: 13px; color: var(--muted); margin: 4px 0; }
.adm-cell-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }

/* Tabellen: Basis erbt .admin-table (inkl. Mobile-Karten-Muster via data-label) */
.adm-search {
  font: inherit; font-size: 13px; padding: 8px 12px; margin-bottom: 10px;
  border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--text);
  min-width: min(280px, 100%); outline: none;
}
.adm-search:focus { border-color: var(--accent); }
.adm-th-sort { cursor: pointer; user-select: none; }
.adm-th-sort:hover { color: var(--text); }
.adm-sort-ind { opacity: 0.6; font-size: 10px; }
.adm-th-sort.is-sorted .adm-sort-ind { opacity: 1; }

/* Segment-Schalter (Zeitraum) */
.adm-seg { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.adm-seg-btn {
  font: inherit; font-size: 12.5px; font-weight: 560; padding: 6px 12px; border-radius: 8px;
  background: transparent; color: var(--muted-2); border: none; cursor: pointer;
}
.adm-seg-btn.is-active { background: var(--text); color: var(--bg); }

/* Datenfluss-Leiste */
.adm-flow { display: flex; align-items: stretch; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; }
.adm-flow-step {
  flex: 0 0 auto; min-width: 128px; max-width: 170px; display: flex; flex-direction: column; gap: 3px;
  padding: 11px 13px; border: 1px solid var(--hairline); border-radius: 12px;
  background: color-mix(in srgb, var(--text) 2.5%, transparent);
}
.adm-flow-label { font-size: 11.5px; color: var(--muted-2); line-height: 1.35; }
.adm-flow-value { font-size: 19px; font-weight: 660; font-variant-numeric: tabular-nums; }
.adm-flow-hint { font-size: 10.5px; color: var(--muted); line-height: 1.4; }
.adm-flow-arrow { align-self: center; color: var(--muted); flex: none; }

/* Cron-Zeitplan */
.adm-cron-list { display: flex; flex-direction: column; }
.adm-cron-row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--hairline); flex-wrap: wrap; }
.adm-cron-row:last-child { border-bottom: none; }
.adm-cron-path { font-size: 13px; color: var(--text); word-break: break-all; }
.adm-cron-schedule { font-size: 12.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Betriebs-Aktionen: klar getrennt, Methode + Endpoint + Wirkung */
.adm-action-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 13px; border: 1px solid var(--hairline); border-radius: 12px; margin-bottom: 8px;
}
.adm-action-row--danger { border-color: color-mix(in srgb, var(--danger) 35%, transparent); background: color-mix(in srgb, var(--danger) 5%, transparent); }
.adm-method {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; border-radius: 6px; padding: 3px 8px; flex: none;
}
.adm-method--get { color: var(--chance); background: color-mix(in srgb, var(--chance) 12%, transparent); }
.adm-method--post { color: var(--watch); background: color-mix(in srgb, var(--watch) 12%, transparent); }
.adm-endpoint { font-size: 12.5px; color: var(--text); word-break: break-all; }
.adm-action-desc { font-size: 12.5px; color: var(--muted-2); flex: 1 1 240px; line-height: 1.5; }
.adm-action-btn { flex: none; }

/* Gefaehrliche Aktionen (Loeschung): deutlich abgesetzt, nie wie Navigation */
.adm-danger-btn {
  font: inherit; font-size: 12.5px; font-weight: 620; padding: 8px 14px; border-radius: 9px; cursor: pointer;
  background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent);
}
.adm-danger-btn:hover:not(:disabled) { background: color-mix(in srgb, var(--danger) 22%, transparent); }
.adm-danger-btn--ghost { background: transparent; }
.adm-danger-confirm {
  margin-top: 10px; padding: 13px 15px; border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent);
  border-radius: 12px; background: color-mix(in srgb, var(--danger) 6%, transparent);
}
.adm-danger-text { font-size: 13px; color: var(--text); line-height: 1.6; margin: 0 0 8px; }
.adm-danger-input {
  font: inherit; font-size: 13px; padding: 8px 12px; border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); background: transparent; color: var(--text);
}
.adm-privacy-row { padding: 11px 0; border-bottom: 1px solid var(--hairline); }
.adm-privacy-row:last-of-type { border-bottom: none; }
.adm-privacy-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-privacy-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

/* Herausgeber-Detail (Quellen) */
.adm-pub { border: 1px solid var(--hairline); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.adm-pub-sum {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; list-style: none;
  font-size: 13.5px; flex-wrap: wrap;
}
.adm-pub-sum::-webkit-details-marker { display: none; }
.adm-pub-sum:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
.adm-pub-name { font-weight: 620; }
.adm-pub-body { padding: 4px 14px 13px; border-top: 1px solid var(--hairline); }
.adm-pub-path { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px dashed var(--hairline); font-size: 13px; }
.adm-pub-path:last-of-type { border-bottom: none; }
.adm-pub-path-name { font-weight: 560; }
.adm-pub-path-method { font-size: 11.5px; color: var(--muted); }

/* Responsive: kein horizontales Abschneiden; Kacheln fliessen um */
@media (max-width: 720px) {
  .adm-card { padding: 15px 14px; }
  .adm-tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .adm-header-top { align-items: flex-start; }
  .adm-privacy-actions { margin-left: 0; }
}
@media (max-width: 480px) {
  .adm-tile-value { font-size: 19px; }
  .adm-nav { gap: 4px; }
  .adm-nav-btn { padding: 7px 11px; font-size: 12.5px; }
}

/* Getrennte Prosa: ausschliesslich die ausdrueckliche interne Vorschau. */
.prosa-vorschau { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
.prosa-block { margin: 24px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.prosa-block > section { padding: 20px; }
.prosa-block h2 { margin: 0 0 12px; font-size: 18px; }
.prosa-block h3 { margin: 20px 0 8px; font-size: 15px; }
.prosa-block p { line-height: 1.6; }
.prosa-block a { color: var(--text); text-decoration: underline; }
.prosa-einordnung { border-top: 1px solid var(--line); background: var(--accent-soft); }
.prosa-hinweis { color: var(--muted); line-height: 1.5; }
