:root {
  --bg: #020714;
  --panel: rgba(7, 18, 38, .88);
  --text: #f4f8ff;
  --muted: #91a5bf;
  --mint: #3b82f6;
  --cyan: #6edcff;
  --blue-bright: #5b9cff;
  --blue-deep: #102a56;
  --danger: #fb7185;
  --line: rgba(132, 174, 236, .13);
  --radius: 18px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 25% -8%, rgba(39,111,241,.23), transparent 34rem),
              radial-gradient(circle at 88% 42%, rgba(34,151,255,.12), transparent 38rem),
              linear-gradient(145deg, #061126 0%, var(--bg) 62%);
  color: var(--text);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; }
.nav-rail {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: 198px;
  display: flex;
  flex-direction: column;
  padding: 28px 18px 22px;
  border-right: 1px solid rgba(91,156,255,.18);
  background: linear-gradient(180deg, rgba(4,12,29,.96), rgba(3,8,20,.92));
  backdrop-filter: blur(24px);
  box-shadow: 18px 0 60px rgba(0,0,0,.17);
}
.nav-rail::after { content: ""; position: absolute; top: 24px; right: -1px; width: 1px; height: 120px; background: linear-gradient(transparent, var(--blue-bright), transparent); opacity: .7; }
.jarvis-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(59,130,246,.38); border-radius: 13px; background: rgba(59,130,246,.06); box-shadow: 0 0 28px rgba(59,130,246,.08), inset 0 0 18px rgba(59,130,246,.06); color: var(--mint); font-size: 17px; font-weight: 850; }
.rail-brand { margin: 14px 3px 34px; }
.rail-brand strong, .rail-brand small { display: block; }
.rail-brand strong { letter-spacing: .16em; font-size: 12px; }
.rail-brand small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.rail-nav { display: grid; gap: 6px; }
.rail-link { min-height: 46px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: #8d9aac; text-align: left; cursor: pointer; transition: color .16s, background .16s, border-color .16s; }
.rail-link span { width: 18px; color: #5e6e80; text-align: center; }
.rail-link:hover, .rail-link:focus-visible, .rail-link.active { outline: 0; border-color: rgba(59,130,246,.22); background: linear-gradient(90deg, rgba(59,130,246,.14), rgba(59,130,246,.035)); color: var(--text); }
.rail-link.active span { color: var(--mint); }
.rail-state { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 12px 9px; border-top: 1px solid var(--line); }
.rail-state > span { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--mint); box-shadow: 0 0 14px var(--mint); }
.rail-state strong, .rail-state small { display: block; }
.rail-state strong { font-size: 12px; }
.rail-state small { color: var(--muted); font-size: 10px; }
.glow { position: fixed; width: 26rem; height: 26rem; border-radius: 50%; filter: blur(110px); pointer-events: none; opacity: .14; }
.glow-one { top: -12rem; right: -7rem; background: #1769ff; }
.glow-two { bottom: -16rem; left: 22%; background: #08a4e8; }
.shell { width: min(1240px, calc(100% - 238px)); margin: 0 auto 0 max(218px, calc((100% - 1240px + 198px) / 2)); padding: 34px 20px 80px; position: relative; }
.topbar { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; margin-bottom: 26px; padding-bottom: 16px; border-bottom: 1px solid rgba(132,174,236,.1); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(36px, 5vw, 64px); line-height: .95; letter-spacing: -.055em; font-weight: 760; }
h2 { margin-bottom: 0; font-size: 22px; letter-spacing: -.025em; }
h3 { margin-bottom: 8px; line-height: 1.25; }
.dot { color: var(--mint); }
.eyebrow { margin-bottom: 8px; color: #67a7ff; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.today-label { margin: 12px 0 0; color: var(--muted); font-size: 13px; text-transform: capitalize; }
.top-greeting { width: 100%; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: baseline; gap: 14px; }
.top-greeting .eyebrow { margin: 0; font-size: 9px; white-space: nowrap; }
.top-greeting h1 { margin: 0; font-size: clamp(20px, 2vw, 27px); line-height: 1.16; letter-spacing: -.025em; font-weight: 720; }
.top-greeting .today-label { margin: 0; font-size: 11px; white-space: nowrap; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.sync-state { color: var(--muted); font-size: 12px; }
.system-strip { display: flex; align-items: center; gap: 7px; padding-right: 4px; }
.online-status, .systems-button { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); color: #cbd5e1; font-size: 12px; }
.online-status { padding: 0 10px; }
.online-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 11px var(--mint); }
.online-status.offline { color: #fda4af; }
.online-status.offline i { background: var(--danger); box-shadow: 0 0 11px var(--danger); }
.systems-button { padding: 0 11px; cursor: pointer; }
.systems-button:hover, .systems-button:focus-visible { outline: 0; border-color: rgba(59,130,246,.3); background: rgba(59,130,246,.05); }
.systems-button strong { color: var(--mint); }
.button { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 15px; color: var(--text); cursor: pointer; transition: transform .15s, border-color .15s, background .15s; }
.button:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.18); }
.button:disabled { opacity: .5; cursor: wait; transform: none; }
.button-primary { border-color: rgba(116,181,255,.5); background: linear-gradient(135deg, #2e73ed, #4da4ff); color: white; font-weight: 750; box-shadow: 0 9px 24px rgba(46,115,237,.2); }
.button-secondary { border-color: rgba(91,156,255,.24); background: rgba(59,130,246,.08); color: #cfe4ff; }
.button-ghost { background: rgba(255,255,255,.035); }
.top-logout { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.jarvis-hero { position: relative; min-height: 238px; display: grid; grid-template-columns: 160px minmax(0,1fr) 190px; align-items: center; gap: 28px; margin-bottom: 16px; padding: 30px 34px; overflow: hidden; border: 1px solid rgba(91,156,255,.23); border-radius: 24px; background: linear-gradient(125deg, rgba(9,31,68,.96), rgba(6,16,35,.94) 55%, rgba(7,28,55,.94)); box-shadow: 0 28px 90px rgba(0,0,0,.22), inset 0 1px 0 rgba(149,195,255,.08); }
.jarvis-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 49.8%, rgba(59,130,246,.025) 50%, transparent 50.2%), linear-gradient(transparent 49.8%, rgba(59,130,246,.02) 50%, transparent 50.2%); background-size: 46px 46px; mask-image: linear-gradient(90deg, transparent, black 45%, transparent); }
.core-visual { width: 150px; height: 150px; position: relative; display: grid; place-items: center; }
.core-ring, .core { position: absolute; border-radius: 50%; }
.core-ring { border: 1px solid rgba(59,130,246,.24); }
.ring-one { inset: 10px; box-shadow: 0 0 38px rgba(59,130,246,.09); animation: orbit 11s linear infinite; }
.ring-one::before, .ring-two::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 15px var(--mint); }
.ring-one::before { top: 14px; left: 25px; }
.ring-two { inset: 30px; border-style: dashed; animation: orbit 8s linear reverse infinite; }
.ring-two::after { right: -4px; top: 50%; }
.core { width: 74px; height: 74px; display: grid; place-items: center; border: 1px solid rgba(102,217,255,.38); background: radial-gradient(circle, rgba(59,130,246,.18), rgba(8,18,28,.96) 64%); color: white; box-shadow: 0 0 35px rgba(59,130,246,.16), inset 0 0 24px rgba(102,217,255,.12); }
.core span { font-size: 24px; font-weight: 850; text-shadow: 0 0 14px var(--mint); }
@keyframes orbit { to { transform: rotate(360deg); } }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h2 { max-width: 620px; margin-bottom: 12px; font-size: clamp(24px,3vw,38px); line-height: 1.08; letter-spacing: -.045em; }
.hero-copy > p:not(.eyebrow) { max-width: 650px; margin-bottom: 22px; color: #a9b7c6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.source-pulse { position: relative; z-index: 1; display: grid; gap: 8px; }
.pulse-row { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 8px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); }
.pulse-row > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: #687589; }
.pulse-row.connected > span:first-child { background: var(--mint); box-shadow: 0 0 9px var(--mint); }
.pulse-row.attention > span:first-child { background: #f59e0b; }
.pulse-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.pulse-row small { color: var(--muted); font-size: 10px; }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin-bottom: 36px; }
.stat { padding: 17px 18px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(20,47,88,.36), rgba(7,17,36,.76)); color: var(--text); text-align: left; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.stat:hover, .stat:focus-visible { background: rgba(59,130,246,.09); border-color: rgba(91,156,255,.3); outline: 0; transform: translateY(-2px); }
.stat:last-child { border: 1px solid var(--line); }
.stat strong { display: block; margin-bottom: 3px; font-size: 28px; letter-spacing: -.04em; }
.stat span { color: var(--muted); font-size: 12px; }
.calendar-panel { scroll-margin-top: 24px; margin-bottom: 28px; padding: 24px; border: 1px solid rgba(91,156,255,.2); border-radius: 22px; background: linear-gradient(145deg, rgba(10,35,76,.9), rgba(5,15,33,.92)); box-shadow: 0 22px 70px rgba(0,0,0,.16); }
.calendar-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.calendar-head h2 { font-size: 27px; }
.calendar-head p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.calendar-controls { display: flex; align-items: center; gap: 7px; }
.calendar-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.03); color: #cfe3ff; font-size: 25px; }
.calendar-week { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 7px; }
.calendar-day { min-height: 104px; display: grid; justify-items: start; align-content: space-between; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); color: var(--text); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.calendar-day:hover, .calendar-day:focus-visible { outline: 0; border-color: rgba(91,156,255,.34); transform: translateY(-1px); }
.calendar-day.selected { border-color: rgba(91,156,255,.55); background: linear-gradient(145deg, rgba(59,130,246,.22), rgba(59,130,246,.07)); box-shadow: inset 0 0 25px rgba(59,130,246,.05); }
.calendar-day.today strong { color: #72b4ff; }
.calendar-day span { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.calendar-day strong { font-size: 25px; line-height: 1; }
.calendar-day small { color: #7288a4; font-size: 10px; }
.calendar-agenda { margin-top: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(2,8,20,.45); }
.agenda-title { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 9px; text-transform: capitalize; }
.agenda-title strong { font-size: 13px; }
.agenda-title span { color: var(--muted); font-size: 11px; }
.calendar-event { display: grid; grid-template-columns: 105px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 10px 4px; border-top: 1px solid rgba(132,174,236,.1); color: var(--text); text-decoration: none; }
.calendar-event:hover { color: #fff; }
.event-time { color: #73b2ff; font-size: 12px; font-weight: 750; }
.event-copy strong, .event-copy small { display: block; }
.event-copy strong { font-size: 13px; }
.event-copy small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.calendar-event em { color: var(--muted); font-size: 10px; font-style: normal; }
.calendar-empty { display: flex; align-items: center; gap: 10px; padding: 10px 3px 2px; border-top: 1px solid rgba(132,174,236,.1); color: var(--muted); }
.calendar-empty span { color: #5b9cff; }
.calendar-empty p { margin: 0; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ask-panel, .data-hub { scroll-margin-top: 24px; margin-bottom: 44px; border: 1px solid var(--line); border-radius: 24px; background: rgba(10,18,28,.78); box-shadow: 0 22px 70px rgba(0,0,0,.16); backdrop-filter: blur(20px); }
.ask-panel { padding: 28px; border-color: rgba(91,156,255,.2); background: linear-gradient(135deg, rgba(12,38,79,.94), rgba(6,17,38,.92) 62%); }
.ask-copy { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.8fr); align-items: end; gap: 30px; }
.ask-copy p:last-child { margin: 0; color: #9eacbd; font-size: 14px; }
.ask-copy h2 { font-size: 28px; }
.question-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; margin-top: 24px; padding: 0; }
.question-input-wrap { position: relative; display: block; }
.question-input-wrap input { min-height: 58px; padding: 0 184px 0 18px; border-color: rgba(102,217,255,.18); border-radius: 15px; background: rgba(3,9,16,.7); font-size: 15px; }
.question-form > .button { min-height: 58px; padding-inline: 22px; }
.speak-button { position: absolute; top: 8px; right: 8px; min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid rgba(102,217,255,.16); border-radius: 11px; background: rgba(102,217,255,.06); color: #c9f3ff; cursor: pointer; }
.speak-button span { color: var(--cyan); font-size: 11px; }
.speak-button strong { font-size: 12px; }
.speak-button:hover, .speak-button:focus-visible { outline: 0; border-color: rgba(102,217,255,.36); }
.speak-button.listening { border-color: rgba(251,113,133,.45); background: rgba(251,113,133,.08); color: #ffe4e8; }
.speak-button.listening span { color: var(--danger); animation: live-pulse .9s ease-in-out infinite; }
.question-suggestions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.question-suggestions button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.02); color: var(--muted); font-size: 12px; cursor: pointer; }
.question-suggestions button:hover { border-color: rgba(59,130,246,.2); color: #d9eaff; }
.answer-panel { margin-top: 20px; padding: 20px; border: 1px solid rgba(59,130,246,.2); border-radius: 16px; background: rgba(6,17,20,.68); }
.answer-head { display: flex; align-items: center; gap: 10px; }
.answer-avatar { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(59,130,246,.35); border-radius: 10px; color: var(--mint); font-weight: 850; background: rgba(59,130,246,.06); }
.answer-head small, .answer-head strong { display: block; }
.answer-head small { color: var(--muted); font-size: 11px; }
.answer-head strong { font-size: 14px; }
.answer-panel > p { margin: 17px 0; color: #e1e9ee; font-size: 16px; line-height: 1.6; }
.answer-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.answer-facts div { min-width: 105px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.answer-facts strong, .answer-facts span { display: block; }
.answer-facts strong { color: var(--mint); font-size: 19px; }
.answer-facts span { color: var(--muted); font-size: 11px; }
.answer-matches { display: grid; gap: 6px; margin: 14px 0; }
.answer-matches button { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.02); color: var(--text); text-align: left; cursor: pointer; }
.answer-matches button:hover { border-color: rgba(59,130,246,.25); }
.answer-matches small, .answer-matches strong { display: block; }
.answer-matches small { color: var(--muted); font-size: 11px; }
.answer-matches strong { margin-top: 2px; font-size: 13px; }
.answer-matches em { color: var(--mint); font-size: 11px; font-style: normal; }
.answer-scope { color: #607085; font-size: 11px; }
.question-history { margin-top: 18px; }
.history-title { margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; }
.question-history > div { display: flex; flex-wrap: wrap; gap: 7px; }
.question-history button { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.02); color: #bdc7d2; cursor: pointer; }
.question-history button span { color: var(--cyan); }
.question-history button strong { max-width: 250px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.question-history button time { color: #657386; font-size: 9px; }
.data-hub { padding: 0; border-color: rgba(91,156,255,.19); background: linear-gradient(155deg, rgba(8,25,54,.94), rgba(4,13,29,.92)); }
.data-hub-summary { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; cursor: pointer; list-style: none; }
.data-hub-summary::-webkit-details-marker { display: none; }
.data-hub-summary h2 { font-size: 21px; }
.data-hub-summary .eyebrow { margin-bottom: 4px; }
.data-summary-state { display: flex; align-items: center; gap: 14px; }
.summary-toggle { color: #72adff; font-size: 11px; font-weight: 750; white-space: nowrap; }
.data-hub[open] .summary-toggle { font-size: 0; }
.data-hub[open] .summary-toggle::after { content: "Details schließen⌃"; font-size: 11px; }
.data-hub-body { padding: 0 24px 24px; }
.data-hub-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.data-hub-head > p { max-width: 690px; margin: 0; color: var(--muted); font-size: 14px; }
.source-health { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.data-hub-actions { display: grid; justify-items: end; gap: 10px; }
.health-pill { min-height: 31px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid var(--line); border-radius: 99px; color: #aeb9c6; font-size: 11px; white-space: nowrap; }
.health-pill i, .node-status i { width: 6px; height: 6px; border-radius: 50%; background: #64748b; }
.health-pill.connected i, .node-status.connected i { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.health-pill.attention i, .node-status.attention i { background: #f59e0b; }
.health-pill.planned i, .node-status.planned i { background: var(--cyan); }
.health-pill strong { color: var(--text); }
.flow-board { display: grid; grid-template-columns: minmax(310px,1.2fr) 170px minmax(220px,.8fr); align-items: stretch; gap: 20px; padding: 20px; border: 1px solid rgba(91,156,255,.16); border-radius: 18px; background: radial-gradient(circle at center, rgba(59,130,246,.12), transparent 35%), linear-gradient(145deg, rgba(3,11,27,.88), rgba(6,21,44,.7)); }
.flow-column { min-width: 0; }
.flow-label { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: #9aa8b9; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.flow-label span { color: var(--mint); }
.source-map { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.source-node { position: relative; min-width: 0; display: grid; grid-template-columns: 33px minmax(0,1fr) auto; gap: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); color: var(--text); text-align: left; cursor: pointer; }
.source-node.connected { border-color: rgba(59,130,246,.15); }
.source-node.attention { border-color: rgba(245,158,11,.17); }
.source-node:hover, .source-node:focus-visible { outline: 0; border-color: rgba(59,130,246,.38); transform: translateY(-1px); }
.source-node-icon { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid rgba(102,217,255,.18); border-radius: 10px; color: var(--cyan); background: rgba(102,217,255,.05); }
.source-node-copy { min-width: 0; }
.source-node-copy small, .source-node-copy strong, .source-node-copy em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-node-copy small { color: var(--muted); font-size: 11px; }
.source-node-copy strong { margin-top: 2px; font-size: 13px; }
.source-node-copy em { margin-top: 2px; color: #718196; font-size: 11px; font-style: normal; }
.node-status { display: inline-flex; align-items: center; gap: 5px; align-self: start; color: #8fa0b3; font-size: 10px; }
.source-capabilities { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 4px; }
.source-capabilities span { padding: 3px 6px; border-radius: 6px; background: rgba(255,255,255,.04); color: #9ca9b9; font-size: 10px; }
.node-checked { grid-column: 2 / -1; color: #5f7085; font-size: 10px; }
.brain-pipeline { position: relative; min-height: 260px; display: grid; align-content: center; justify-items: center; }
.brain-node { position: relative; z-index: 1; width: 126px; height: 126px; display: grid; align-content: center; justify-items: center; border: 1px solid rgba(91,156,255,.38); border-radius: 50%; background: radial-gradient(circle, rgba(60,139,255,.25), rgba(5,14,32,.98) 66%); box-shadow: 0 0 54px rgba(34,113,255,.22), inset 0 0 28px rgba(102,217,255,.1); }
.brain-node::before, .brain-node::after { content: ""; position: absolute; border: 1px solid rgba(59,130,246,.13); border-radius: 50%; }
.brain-node::before { inset: -9px; border-style: dashed; animation: orbit 13s linear infinite; }
.brain-node::after { inset: 11px; }
.brain-node > span { color: var(--mint); font-size: 26px; font-weight: 850; }
.brain-node strong { margin-top: 3px; font-size: 10px; letter-spacing: .14em; }
.brain-node small { color: var(--muted); font-size: 9px; }
.pipeline-line { position: absolute; top: 50%; height: 1px; width: calc(50% - 48px); overflow: hidden; background: rgba(59,130,246,.14); }
.pipeline-line::after { content: ""; position: absolute; width: 45%; height: 1px; background: linear-gradient(90deg, transparent, var(--mint), transparent); animation: data-flow 2.3s linear infinite; }
.line-in { left: -20px; }
.line-out { right: -20px; }
.line-out::after { animation-delay: 1.1s; }
@keyframes data-flow { from { transform: translateX(-120%); } to { transform: translateX(260%); } }
.pipeline-stages { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 18px; }
.pipeline-stages span { padding: 3px 7px; border: 1px solid var(--line); border-radius: 99px; color: #8fa7c5; font-size: 10px; }
.brain-outputs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.output-node { min-height: 118px; display: flex; flex-direction: column; justify-content: center; padding: 15px; border: 1px solid rgba(59,130,246,.13); border-radius: 13px; background: linear-gradient(145deg, rgba(59,130,246,.05), rgba(255,255,255,.02)); }
.output-node strong { color: var(--mint); font-size: 28px; line-height: 1; }
.output-node span { margin-top: 8px; font-size: 13px; font-weight: 750; }
.output-node small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.stream-details { display: grid; grid-template-columns: 1.18fr .82fr; gap: 12px; margin-top: 12px; }
.stream-panel { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.018); }
.stream-title { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.stream-title h3 { margin: 0; font-size: 15px; }
.stream-title > span { color: var(--muted); font-size: 10px; }
.source-activity, .knowledge-sources { display: grid; gap: 2px; }
.activity-row { display: grid; grid-template-columns: 31px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px 5px; border-bottom: 1px solid rgba(255,255,255,.045); }
.activity-row:last-child, .knowledge-row:last-child { border-bottom: 0; }
.activity-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: rgba(102,217,255,.06); color: var(--cyan); }
.activity-copy { min-width: 0; }
.activity-copy small, .activity-copy strong, .activity-copy em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-copy small { color: #78889b; font-size: 10px; }
.activity-copy strong { margin-top: 2px; font-size: 13px; }
.activity-copy em { margin-top: 2px; color: #657589; font-size: 10px; font-style: normal; }
.activity-row time, .knowledge-row time { color: #5d6c7f; font-size: 10px; white-space: nowrap; }
.knowledge-row { display: grid; grid-template-columns: 26px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 9px 4px; border-bottom: 1px solid rgba(255,255,255,.045); }
.knowledge-row > span { color: var(--mint); }
.knowledge-row strong, .knowledge-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.knowledge-row strong { font-size: 12px; }
.knowledge-row small { color: #6c7c90; font-size: 10px; }
.privacy-note { display: flex; gap: 8px; margin: 14px 0 0; padding-top: 13px; border-top: 1px solid var(--line); color: #77869a; font-size: 10px; }
.privacy-note span { color: var(--mint); }
.layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 42px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.anchor-heading { scroll-margin-top: 24px; }
.section-heading.compact { margin-bottom: 15px; }
.focus-tools { display: flex; align-items: center; gap: 14px; }
.text-button { border: 0; padding: 5px; background: transparent; color: var(--mint); font-size: 11px; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.legend { color: var(--muted); font-size: 11px; }
.legend span { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 99px; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.focus-list { display: grid; gap: 10px; }
.focus-heading { margin-top: 38px; }
.plan-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plan-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: -6px 0 16px; }
.plan-guide div { padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.02); }
.plan-guide strong { display: block; margin-bottom: 3px; color: #77adff; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.plan-guide span { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }
.plan-card { min-height: 215px; display: flex; flex-direction: column; padding: 20px; border: 1px solid rgba(59,130,246,.2); border-radius: 17px; background: linear-gradient(145deg, rgba(11,35,73,.92), var(--panel)); cursor: pointer; transition: border-color .16s, transform .16s; }
.plan-card:hover { border-color: rgba(59,130,246,.38); transform: translateY(-2px); }
.plan-card-head, .plan-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan-card h3 { margin: 18px 0 8px; font-size: 18px; }
.plan-card-outcome { margin-bottom: 18px; color: #b9c7ca; font-size: 13px; }
.plan-card-foot { margin-top: auto; color: var(--muted); font-size: 12px; }
.plan-status { color: #74adff; font-size: 11px; font-weight: 750; }
.plan-empty { grid-column: 1 / -1; }
.focus-card { display: grid; grid-template-columns: 38px 1fr 36px; gap: 14px; padding: 19px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); backdrop-filter: blur(18px); transition: border-color .16s, transform .16s, opacity .25s; }
.focus-card:hover { border-color: rgba(59,130,246,.22); transform: translateY(-1px); }
.focus-card.finishing { opacity: .25; transform: translateX(15px); }
.focus-body { cursor: pointer; border-radius: 8px; outline: 0; }
.focus-body:focus-visible { box-shadow: 0 0 0 2px rgba(59,130,246,.4); }
.rank { width: 30px; height: 30px; border: 1px solid rgba(59,130,246,.24); border-radius: 9px; color: var(--mint); display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(59,130,246,.045); }
.meta-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-bottom: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.project-chip { padding: 3px 7px; border: 1px solid var(--project-color); border-radius: 99px; color: var(--project-color); background: rgba(255,255,255,.025); font-weight: 800; }
.kind::before, .score::before { content: "·"; margin-right: 7px; color: #485468; }
.details { margin-bottom: 7px; color: #b8c8dc; font-size: 14px; }
.source { margin-bottom: 0; color: #7187a4; font-size: 11px; overflow-wrap: anywhere; }
.open-hint { display: inline-block; margin-top: 10px; color: #6ca7ff; font-size: 11px; font-weight: 750; letter-spacing: .04em; opacity: .9; }
.done-button { align-self: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: #5d6b7e; cursor: pointer; }
.done-button:hover { color: var(--mint); border-color: rgba(59,130,246,.35); background: rgba(59,130,246,.05); }
.side-column { display: grid; align-content: start; gap: 16px; }
.panel { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(150deg, rgba(10,28,57,.88), rgba(5,14,29,.9)); box-shadow: 0 18px 48px rgba(0,0,0,.12); backdrop-filter: blur(18px); }
.project-list { display: grid; gap: 5px; }
.project-row { width: 100%; display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; padding: 11px 8px; border: 0; border-bottom: 1px solid rgba(255,255,255,.045); border-radius: 9px; background: transparent; color: var(--text); text-align: left; cursor: pointer; transition: background .15s, transform .15s; }
.project-row:hover, .project-row:focus-visible { background: rgba(255,255,255,.045); outline: 0; transform: translateX(2px); }
.project-row.selected { background: rgba(59,130,246,.065); }
.project-row:last-child { border: 0; }
.project-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--project-color); box-shadow: 0 0 10px var(--project-color); }
.project-name { font-size: 13px; }
.project-state { color: var(--muted); font-size: 11px; }
.project-count { min-width: 26px; padding: 2px 7px; border-radius: 99px; background: rgba(255,255,255,.05); color: #bbc4cf; text-align: center; font-size: 11px; }
.project-row.paused { opacity: .45; }
.project-all { --project-color: var(--mint); }
[data-project="amazon_ads"] { --project-color: #f59e0b; }
[data-project="h2ai"] { --project-color: #22d3ee; }
[data-project="eeg_projects"] { --project-color: #a3e635; }
[data-project="walltrust"] { --project-color: #c084fc; }
[data-project="server_operations"] { --project-color: #94a3b8; }
[data-project="post_automation"] { --project-color: #60a5fa; }
[data-project="rechnungen"] { --project-color: #64748b; }
.approval-panel { border-color: rgba(251,113,133,.2); }
.approval { padding: 10px 0; border-bottom: 1px solid var(--line); }
.approval:last-child { border: 0; }
.approval p { margin: 0; color: #c7ced7; font-size: 12px; }
.approval small { color: var(--danger); }
.integration-list { display: grid; gap: 2px; }
.integration-row { width: 100%; display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 9px; min-height: 50px; padding: 10px 7px; border: 0; border-bottom: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--text); text-align: left; cursor: pointer; transition: background .15s, transform .15s; }
.integration-row:hover, .integration-row:focus-visible { outline: 0; background: rgba(59,130,246,.045); transform: translateX(2px); }
.integration-row:last-child { border-bottom: 0; }
.integration-row strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.integration-row small { display: block; color: var(--muted); font-size: 11px; }
.integration-dot { width: 7px; height: 7px; border-radius: 50%; background: #64748b; }
.integration-dot.connected { background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.integration-dot.attention { background: #f59e0b; }
.integration-dot.planned { background: var(--cyan); box-shadow: 0 0 9px rgba(102,217,255,.45); }
.integration-status { color: var(--muted); font-size: 11px; }
.panel-hint { color: var(--muted); font-size: 10px; }
.connection-status-card { display: flex; align-items: center; gap: 13px; margin: 22px 0; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.connection-status-card .integration-dot { width: 10px; height: 10px; }
.connection-status-card small, .connection-status-card strong { display: block; }
.connection-status-card small { color: var(--muted); font-size: 9px; }
.connection-status-card strong { margin-top: 2px; font-size: 13px; }
.capability-list { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.capability { padding: 6px 10px; border: 1px solid rgba(59,130,246,.18); border-radius: 99px; background: rgba(59,130,246,.045); color: #d8eaff; font-size: 11px; }
.setup-note { padding: 15px; border-left: 3px solid var(--cyan); border-radius: 0 11px 11px 0; background: rgba(102,217,255,.045); }
.setup-note strong { font-size: 11px; }
.setup-note p { margin: 5px 0 0; color: #aebdca; font-size: 11px; }
.integration-empty { padding: 14px 8px; font-size: 11px; }
.run-list { display: grid; gap: 8px; }
.live-state { display: inline-flex; align-items: center; gap: 6px; color: #70aaff; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.live-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: live-pulse 1.8s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: .35; transform: scale(.75); } }
.run-row { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); cursor: pointer; transition: border-color .16s, background .16s, transform .16s; }
.run-row:hover, .run-row:focus-visible { outline: 0; border-color: rgba(91,156,255,.42); background: rgba(59,130,246,.055); transform: translateY(-1px); }
.run-row.running { border-color: rgba(59,130,246,.28); box-shadow: inset 3px 0 0 var(--mint); }
.run-row.waiting_user, .run-row.failed { border-color: rgba(251,113,133,.25); box-shadow: inset 3px 0 0 var(--danger); }
.run-row.waiting_source { border-color: rgba(245,158,11,.25); box-shadow: inset 3px 0 0 #f59e0b; }
.run-row-head { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.run-row-head strong { color: var(--mint); text-align: right; }
.run-row.waiting_user .run-row-head strong, .run-row.failed .run-row-head strong { color: var(--danger); }
.run-row h3 { margin: 8px 0 5px; font-size: 12px; }
.run-current { margin: 9px 0 6px; color: #cbd5e1; font-size: 10px; font-weight: 700; }
.run-progress { height: 5px; margin-bottom: 9px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.07); }
.run-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--mint)); transition: width .25s ease; }
.run-row p { margin: 0 0 6px; color: #9eabbc; font-size: 10px; }
.run-row small { color: #617086; font-size: 9px; }
.run-open-hint { display: block; margin-top: 9px; color: #75adff; font-size: 9px; font-weight: 750; }
.run-empty { padding: 16px 10px; font-size: 10px; }
.guardrail { display: flex; gap: 14px; background: linear-gradient(140deg, rgba(59,130,246,.075), rgba(16,23,35,.8)); }
.guardrail h3 { font-size: 14px; }
.guardrail p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.shield { color: var(--mint); font-size: 26px; line-height: 1; }
.empty { padding: 28px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; }
dialog { width: min(620px, calc(100% - 28px)); padding: 0; border: 1px solid rgba(91,156,255,.24); border-radius: 22px; background: linear-gradient(155deg, #0a2145, #071426 68%); color: var(--text); box-shadow: 0 30px 100px rgba(0,0,0,.6), 0 0 60px rgba(38,107,225,.12); }
dialog::backdrop { background: rgba(2,5,10,.78); backdrop-filter: blur(8px); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 25px; }
.dialog-head { grid-column: 1 / -1; display: flex; justify-content: space-between; }
.icon-button { align-self: start; border: 0; background: transparent; color: var(--muted); font-size: 28px; cursor: pointer; }
label { display: grid; gap: 6px; color: #b7c8dd; font-size: 13px; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #061126; color: var(--text); padding: 11px 12px; outline: 0; }
input:focus, select:focus, textarea:focus { border-color: rgba(59,130,246,.4); }
textarea { resize: vertical; }
input[type="range"] { padding: 8px 0; accent-color: var(--mint); }
.wide { grid-column: 1 / -1; }
.rating-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.form-error { grid-column: 1 / -1; min-height: 18px; margin: 0; color: var(--danger); font-size: 12px; }
.imap-intro { margin: 0; color: #9eb2ca; font-size: 14px; }
.credential-safety { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid rgba(91,156,255,.16); border-radius: 12px; background: rgba(59,130,246,.06); }
.credential-safety > span { color: #72adff; font-size: 22px; }
.credential-safety p { margin: 0; color: #91a6c0; font-size: 12px; }
.credential-safety strong { display: block; color: #d8e8ff; font-size: 13px; }
.queued-mail { border-left: 2px solid #4f94ff; background: linear-gradient(90deg, rgba(59,130,246,.06), transparent); }
.detail-dialog { width: min(650px, calc(100% - 28px)); }
.detail-content { padding: 28px; }
.detail-text { margin: 22px 0; color: #b6c0ce; white-space: pre-wrap; }
.detail-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 20px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--line); }
.detail-facts div { padding: 14px; background: #0c131e; }
.detail-facts span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.detail-facts strong { font-size: 14px; }
.detail-source { color: #64748b; font-size: 11px; overflow-wrap: anywhere; }
.detail-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 25px; }
.plan-dialog { width: min(760px, calc(100% - 28px)); }
.run-dialog { width: min(780px, calc(100% - 28px)); }
.run-status-callout { display: grid; gap: 7px; margin: 20px 0 24px; padding: 16px; border: 1px solid rgba(91,156,255,.2); border-radius: 14px; background: rgba(59,130,246,.06); }
.run-status-callout > span { color: #78b1ff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.run-status-callout strong { font-size: 14px; }
.run-status-callout p { margin: 0; color: #9fb0c5; font-size: 12px; white-space: pre-wrap; }
.run-status-callout.status-waiting_user, .run-status-callout.status-failed { border-color: rgba(251,113,133,.25); background: rgba(251,113,133,.055); }
.run-status-callout.status-waiting_user > span, .run-status-callout.status-failed > span { color: #ff879d; }
.run-evidence, .run-input-history { margin-top: 24px; }
.run-evidence-row { display: grid; grid-template-columns: 20px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.run-evidence-row span { color: var(--mint); }
.run-evidence-row p { margin: 0; color: #aebdce; font-size: 12px; }
.run-input-entry { margin-top: 8px; padding: 12px 14px; border: 1px solid rgba(91,156,255,.16); border-radius: 12px; background: rgba(59,130,246,.045); }
.run-input-entry p { margin: 0 0 5px; color: #d9e8fb; font-size: 13px; white-space: pre-wrap; }
.run-input-entry small { color: #6f8198; font-size: 9px; }
.run-collaboration { margin-top: 26px; padding: 18px; border: 1px solid rgba(251,113,133,.24); border-radius: 15px; background: rgba(251,113,133,.045); }
.run-collaboration h3 { margin: 6px 0 7px; font-size: 18px; }
.run-collaboration > p:not(.eyebrow) { margin: 0; color: #aeb9c8; font-size: 12px; }
.run-input-form { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 16px 0 0; }
.run-input-form > small { color: #718096; font-size: 10px; }
.run-input-form .form-error { min-height: 0; }
.run-input-form .dialog-actions { margin-top: 2px; }
.plan-outcome { margin: 20px 0 0; padding: 14px 16px; border-left: 3px solid var(--mint); border-radius: 0 10px 10px 0; background: rgba(59,130,246,.05); color: #e5f0ff; }
.plan-steps { display: grid; gap: 9px; margin: 24px 0; }
.plan-step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #0c131e; }
.plan-step.step-in_progress { border-color: rgba(59,130,246,.3); box-shadow: inset 3px 0 0 var(--mint); }
.plan-step.step-completed { opacity: .72; }
.plan-step.step-blocked { border-color: rgba(251,113,133,.3); box-shadow: inset 3px 0 0 var(--danger); }
.step-number { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(59,130,246,.22); border-radius: 9px; color: var(--mint); font-size: 10px; }
.step-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.step-badges { display: flex; flex: none; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.step-status-badge { padding: 3px 7px; border: 1px solid rgba(102,217,255,.24); border-radius: 99px; color: var(--cyan); font-size: 8px; font-weight: 750; }
.step-title h3 { margin: 2px 0 5px; font-size: 14px; }
.plan-step p { margin: 0 0 7px; color: #aeb8c7; font-size: 12px; white-space: pre-wrap; }
.plan-step small { display: block; margin-top: 4px; color: #718096; font-size: 10px; }
.approval-badge, .autonomy-badge { flex: none; padding: 3px 7px; border: 1px solid rgba(251,113,133,.25); border-radius: 99px; color: #fda4af; font-size: 8px; font-weight: 750; }
.autonomy-badge { border-color: rgba(59,130,246,.24); color: var(--mint); }
.plan-proof { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-proof div { padding: 13px; border-radius: 10px; background: rgba(255,255,255,.025); }
.plan-proof span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.plan-proof p { margin: 4px 0 0; color: #aeb8c7; font-size: 11px; overflow-wrap: anywhere; }
.approval-hint { margin: 18px 0 0; color: #7e8da1; font-size: 10px; }
.status-action.current { border-color: var(--mint); color: var(--mint); }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; max-width: min(90vw, 480px); padding: 12px 17px; border: 1px solid rgba(59,130,246,.3); border-radius: 12px; background: #0a2145; color: #e5f0ff; box-shadow: 0 15px 60px rgba(0,0,0,.45); opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgba(251,113,133,.4); background: #29141a; color: #ffd9df; }
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 22px; }
.login-card { width: min(440px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: rgba(16,23,35,.9); box-shadow: 0 30px 100px rgba(0,0,0,.4); backdrop-filter: blur(20px); }
.login-card h1 { margin: 0 0 14px; font-size: 42px; }
.login-copy { margin-bottom: 25px; color: var(--muted); }
.login-form { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 0; }
.login-form .button { width: 100%; margin-top: 4px; }
.login-lock { display: inline-grid; width: 34px; height: 34px; margin-bottom: 22px; place-items: center; border: 1px solid rgba(59,130,246,.24); border-radius: 11px; color: var(--mint); background: rgba(59,130,246,.05); }

@media (max-width: 820px) {
  .nav-rail { inset: auto 10px 10px; width: auto; height: 64px; flex-direction: row; align-items: center; justify-content: center; padding: 7px; border: 1px solid var(--line); border-radius: 17px; background: rgba(7,12,20,.92); }
  .jarvis-mark, .rail-brand, .rail-state { display: none; }
  .rail-nav { grid-template-columns: repeat(6, 1fr); gap: 3px; width: 100%; }
  .rail-link { min-height: 48px; justify-content: center; gap: 5px; padding: 0 8px; font-size: 10px; }
  .rail-link span { width: auto; }
  .shell { width: min(100% - 24px, 680px); margin: 0 auto; padding: 28px 0 100px; }
  .top-greeting { grid-template-columns: minmax(0,1fr) auto; }
  .top-greeting .eyebrow { grid-column: 1 / -1; }
  .top-actions { flex-wrap: wrap; justify-content: flex-end; }
  .system-strip { order: -1; width: 100%; justify-content: flex-end; }
  .sync-state { width: 100%; text-align: right; }
  .layout { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .jarvis-hero { grid-template-columns: 130px minmax(0,1fr); }
  .core-visual { width: 125px; height: 125px; }
  .source-pulse { grid-column: 1 / -1; grid-template-columns: repeat(3,1fr); }
  .flow-board { grid-template-columns: 1fr; }
  .brain-pipeline { min-height: 180px; }
  .pipeline-line { left: 50%; width: 1px; height: calc(50% - 58px); }
  .pipeline-line::after { width: 1px; height: 45%; animation-name: data-flow-vertical; }
  .line-in { top: -20px; }
  .line-out { top: auto; right: auto; bottom: -20px; }
  @keyframes data-flow-vertical { from { transform: translateY(-120%); } to { transform: translateY(260%); } }
  .stream-details { grid-template-columns: 1fr; }
  .calendar-week { overflow-x: auto; grid-template-columns: repeat(7,minmax(92px,1fr)); padding-bottom: 5px; }
}

@media (max-width: 540px) {
  .top-greeting { display: block; }
  .top-greeting .eyebrow { margin-bottom: 5px; }
  .top-greeting h1 { font-size: 20px; }
  .top-greeting .today-label { margin-top: 5px; }
  .top-actions { margin-top: 2px; justify-content: flex-start; }
  .system-strip { justify-content: flex-start; overflow-x: auto; }
  .sync-state { order: 3; text-align: left; }
  .top-logout { margin-left: auto; }
  .jarvis-hero { min-height: 0; grid-template-columns: 1fr; padding: 23px 19px; }
  .core-visual { width: 105px; height: 105px; margin: -3px auto 2px; }
  .ring-one { inset: 5px; }
  .ring-two { inset: 22px; }
  .core { width: 54px; height: 54px; }
  .hero-copy { text-align: center; }
  .hero-copy > p:not(.eyebrow) { font-size: 13px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .source-pulse { grid-template-columns: 1fr; }
  .pulse-row { min-height: 44px; }
  .legend { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .plan-list { grid-template-columns: 1fr; }
  .ask-panel { padding: 20px 16px; }
  .calendar-panel { padding: 20px 16px; }
  .calendar-head { align-items: flex-start; }
  .calendar-head h2 { font-size: 23px; }
  .calendar-controls { flex: none; }
  .calendar-event { grid-template-columns: 82px minmax(0,1fr); }
  .calendar-event em { display: none; }
  .ask-copy { grid-template-columns: 1fr; gap: 8px; }
  .question-form { grid-template-columns: 1fr; }
  .question-input-wrap input { min-height: 100px; padding: 14px 14px 58px; }
  .speak-button { top: auto; bottom: 8px; left: 8px; right: 8px; justify-content: center; }
  .source-map { grid-template-columns: 1fr; }
  .data-hub-summary { align-items: flex-start; padding: 17px 16px; }
  .data-hub-summary .source-health .health-pill:not(.connected) { display: none; }
  .data-summary-state { display: grid; justify-items: end; gap: 5px; }
  .data-hub-body { padding: 0 16px 18px; }
  .data-hub-head { display: block; }
  .source-health { justify-content: flex-start; margin-top: 15px; }
  .data-hub-actions { justify-items: start; margin-top: 15px; }
  .data-hub-actions .source-health { margin-top: 0; }
  .brain-outputs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .output-node { min-height: 105px; }
  .plan-guide { grid-template-columns: 1fr; }
  .focus-card { grid-template-columns: 32px 1fr; padding: 15px 13px; gap: 10px; }
  .done-button { grid-column: 2; justify-self: end; margin-top: -39px; }
  .meta-row { padding-right: 34px; }
  form { grid-template-columns: 1fr; padding: 20px; }
  form > *, .wide { grid-column: 1; }
  .rating-grid { grid-template-columns: 1fr; }
  .detail-content { padding: 21px; }
  .detail-facts { grid-template-columns: 1fr; }
  .detail-actions { display: grid; grid-template-columns: 1fr; }
  .plan-proof { grid-template-columns: 1fr; }
  .step-title { display: block; }
  .approval-badge, .autonomy-badge { display: inline-block; margin-bottom: 7px; }
  .login-card { padding: 25px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
