/* „Mein Plan“ – Gestaltung. Daten, Speicherung und Ereignisse bleiben in runtime/experience.js unverändert.
   Aufbau: Ausgangspunkt (Messinstrument) → laufender Plan → Heute/Woche/Verlauf → Schwerpunkte → gespeicherte Pläne. */

.x-experience.px > .wrap { gap: 16px; }
.x-experience.px .card { padding: 22px 24px; border-radius: 16px; }
.x-experience.px .x-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 14px 18px; flex-wrap: wrap; margin-bottom: 16px; }
.x-experience.px .x-sec-h h2 { font-size: 17px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
.x-experience.px .x-sec-h .label-mono { display: block; margin-bottom: 5px; font-size: 9.5px; color: var(--muted); }
.x-experience.px .x-sec-h > .label-mono { margin: 0; }
.x-ic { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Ausgangspunkt ---------- */
.x-experience.px .x-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: center; padding: 18px 30px 18px 22px; background: radial-gradient(ellipse 60% 120% at 0% 50%, rgba(140, 160, 210, .07), transparent 70%), var(--surface); }
.x-experience.px .x-current-gauge { max-width: 220px; width: 100%; justify-self: center; }
.x-experience.px .x-current-gauge .pg-c { padding-top: 4%; gap: 4px; }
.x-experience.px .x-current-gauge .x-score { display: block; font: 750 54px/.92 var(--sans); font-stretch: 86%; letter-spacing: -.02em; color: var(--ink-2); font-variant-numeric: tabular-nums; text-shadow: 0 0 26px color-mix(in oklab, currentColor 35%, transparent); }
.x-experience.px .x-current-gauge .pg-c small { font: 500 10.5px var(--mono); letter-spacing: .06em; color: var(--faint); }
.x-pg-val { fill: none; stroke-width: 11; stroke-linecap: round; stroke-dasharray: 1 2; animation: pgDraw 1s var(--ease) .1s both; }
.x-current-gauge .pg-dot { animation-delay: .9s; }
.x-hero-tx { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.x-hero-tx > .label-mono { font-size: 9.5px; color: var(--muted); }
.x-hero-tx h2 { font-size: 21px; font-weight: 650; letter-spacing: -.015em; line-height: 1.2; overflow-wrap: anywhere; }
.x-hero-tx h2 a { color: inherit; text-decoration: none; }
.x-hero-tx h2 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--faint); }
.x-pillars { list-style: none; margin: 6px 0 2px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 30px; max-width: 640px; }
.x-pillars li { display: grid; grid-template-columns: 88px minmax(0, 1fr) 30px; align-items: center; gap: 12px; font-size: 12.5px; color: var(--ink-2); }
.x-pillars i { position: relative; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.x-pillars i b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--line-3); }
.x-pillars em { font: 700 13.5px var(--sans); font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.x-hero-note { display: flex; gap: 9px; align-items: flex-start; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); max-width: 74ch; font-size: 12px; line-height: 1.6; color: var(--muted); }
.x-hero-note .x-ic { margin-top: 2px; color: var(--faint); }
.x-hero-note .link { white-space: nowrap; font-size: 12px; }

/* ---------- Laufender Plan ---------- */
.x-experience.px .x-run { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 30px; align-items: start; overflow: hidden; }
.x-run::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--x-st, var(--line-3)); }
.x-run--active { --x-st: var(--ok); }
.x-run--paused { --x-st: #e6b35a; }
.x-run--ended { --x-st: var(--faint); }
.x-run-main { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.x-run-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.x-run-top .label-mono { font-size: 9.5px; color: var(--muted); }
.x-status { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 9.5px var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.x-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.x-status--active { color: #bfe8cf; border-color: color-mix(in oklab, var(--ok) 40%, transparent); }
.x-status--active::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.x-status--paused { color: #ecc57c; border-color: color-mix(in oklab, #e6b35a 40%, transparent); }
.x-status--paused::before { background: #e6b35a; }
.x-goal { margin: 0; padding-left: 14px; border-left: 2px solid var(--line-3); font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; max-width: 60ch; }
.x-run-topics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.x-run-topics li { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 4px 12px 4px 9px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2); font-size: 12px; color: var(--ink-2); }
.x-run-topics .kic { width: 14px; height: 14px; color: var(--plat); }
.x-run-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 0; font-size: 12.5px; color: var(--muted); }
.x-run-meta .x-ic { color: var(--faint); }
.x-run-meta span + .x-ic { margin-left: 12px; }
.x-run-src { margin: 0; font-size: 12.5px; }
.x-run-src .link { font-size: 12.5px; }
.x-experience.px .x-run .x-actions { margin: 0; flex-direction: column; align-items: flex-end; gap: 14px; }
.x-run .btn { display: inline-flex; align-items: center; gap: 7px; }
.x-run .btn .x-ic { width: 13px; height: 13px; }

/* Reiter Heute / Woche / Verlauf */
.x-experience.px .x-tabs { align-self: flex-start; }
.x-experience.px .x-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); font-weight: 600; }

/* ---------- Heute ---------- */
.x-today-h { display: flex; align-items: center; gap: 14px; }
.x-today-h .t-count { display: block; margin-top: 3px; font: 500 11px var(--mono); color: var(--muted); }
.x-ring { position: relative; width: 46px; height: 46px; flex: none; display: grid; place-items: center; }
.x-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.x-ring circle { fill: none; stroke: var(--line-2); stroke-width: 3; }
.x-ring .x-ring-v { stroke: var(--plat); stroke-linecap: round; transition: stroke-dasharray .5s var(--ease); }
.x-ring.is-done .x-ring-v { stroke: var(--ok); filter: drop-shadow(0 0 4px color-mix(in oklab, var(--ok) 60%, transparent)); }
.x-ring b { position: relative; font: 600 11px var(--mono); color: var(--ink); }
.x-note, .x-safety { display: flex; gap: 9px; align-items: flex-start; margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.x-note { margin-bottom: 8px; padding: 10px 12px; border: 1px solid color-mix(in oklab, #e6b35a 30%, transparent); border-radius: 10px; color: #e9cf9c; }
.x-note .x-ic, .x-safety .x-ic { margin-top: 2px; }
.x-safety { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.x-safety .x-ic { color: var(--faint); }
.x-experience.px .x-routine { margin: 0; padding-top: 6px; }
.x-experience.px .x-routine + .x-routine { margin-top: 10px; }
.x-experience.px .x-routine h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.x-experience.px .x-routine h3 .x-ic { width: 14px; height: 14px; color: var(--plat); }
.x-experience.px .x-task { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 12px 12px 10px; margin: 0 -10px; border: 0; border-radius: 10px; cursor: pointer; font-size: 14px; line-height: 1.5; transition: background-color .15s; }
.x-experience.px .x-task + .x-task { border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.x-experience.px .x-task:hover { background: var(--surface-2); }
.x-experience.px .x-task small { font: 500 10.5px var(--mono); color: var(--muted); padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 999px; }
.x-experience.px .x-task:has(input:checked) span { text-decoration: line-through; text-decoration-color: var(--faint); color: var(--muted); }
.x-experience.px .x-task:has(input:disabled) { cursor: default; opacity: .6; }

/* Eigene Häkchen (natives Feld bleibt bedienbar, nur unsichtbar) */
.x-experience.px .x-task input, .x-experience.px .x-topic input, .x-experience.px .x-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: inherit; }
.x-tick { width: 22px; height: 22px; display: grid; place-items: center; border: 1.5px solid var(--line-3); border-radius: 50%; color: transparent; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--spring, ease); }
.x-tick .kic { width: 12px; height: 12px; }
.x-tick .kic path { stroke-width: 2; }
:has(> input:checked) > .x-tick { background: var(--ok); border-color: var(--ok); color: #06140c; transform: scale(1.04); }
:has(> input:focus-visible) > .x-tick { outline: 2px solid var(--plat); outline-offset: 2px; }

/* ---------- Woche ---------- */
.x-experience.px .x-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 0; }
.x-experience.px .x-week > .x-wd { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.x-wd b { font-size: 13px; font-weight: 600; }
.x-wd small { font-size: 11px; line-height: 1.45; color: var(--muted); }
.x-wd.is-today { border-color: color-mix(in oklab, var(--plat) 55%, transparent); background: var(--surface-2); }
.x-wd.is-off { opacity: .5; }
.x-bar { position: relative; display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.x-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--ok); }

/* ---------- Verlauf ---------- */
.x-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 4px; }
.x-experience.px .x-timeline .x-checkin { position: relative; padding: 4px 0 12px; border: 0; }
.x-timeline .x-checkin::before { content: ''; position: absolute; left: -23px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--plat); }
.x-timeline .x-checkin--good::before { border-color: var(--ok); }
.x-timeline .x-checkin--irritated::before { border-color: #e98d6b; }
.x-timeline .x-checkin b { font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.x-timeline .x-checkin p { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.x-done-days { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.x-done-days span { display: inline-flex; align-items: baseline; gap: 8px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 11.5px; color: var(--ink-2); }
.x-done-days small { font: 500 10.5px var(--mono); color: var(--ok); }
.x-empty { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ---------- Check-in ---------- */
.x-checkin-form { display: flex; flex-direction: column; gap: 14px; }
.x-experience.px .x-checkin-form textarea { min-height: 84px; resize: vertical; border-radius: 12px; line-height: 1.55; }
.x-check-f { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- Formularfelder ---------- */
.x-field { display: flex; flex-direction: column; gap: 9px; min-width: 0; margin: 0; padding: 0; border: 0; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.x-field > legend { padding: 0; margin-bottom: 9px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.x-experience.px .x-field > input, .x-experience.px .x-field > textarea, .x-experience.px .x-money input { display: block; width: 100%; min-height: 42px; margin: 0; padding: 10px 13px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); color: var(--ink); font: 400 14px var(--sans); transition: border-color .2s, background-color .2s; }
.x-experience.px .x-field > input:focus, .x-experience.px .x-field > textarea:focus, .x-experience.px .x-money input:focus { outline: none; border-color: var(--plat); background: var(--bg); }
.x-money { position: relative; display: block; }
.x-experience.px .x-money input { padding-right: 52px; appearance: textfield; -moz-appearance: textfield; }
.x-money input::-webkit-outer-spin-button, .x-money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.x-money small { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font: 500 10.5px var(--mono); letter-spacing: .08em; color: var(--muted); pointer-events: none; }
.x-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.x-chip { position: relative; display: inline-flex; }
.x-chip span { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; min-width: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2); font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.x-chip:hover span { border-color: var(--line-3); color: var(--ink); }
.x-chip:has(input:checked) span { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600; }
.x-chip:has(input:focus-visible) span { outline: 2px solid var(--plat); outline-offset: 2px; }
.x-chip--day span { min-width: 48px; padding: 0 10px; }
.x-chip--good:has(input:checked) span { background: color-mix(in oklab, var(--ok) 85%, #fff); border-color: transparent; color: #06140c; }
.x-chip--irritated:has(input:checked) span { background: #e98d6b; border-color: transparent; color: #1a0b05; }

/* ---------- Schwerpunkte wählen ---------- */
.x-form { display: flex; flex-direction: column; gap: 22px; }
.x-topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.x-experience.px .x-topic { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 22px; align-items: center; gap: 11px; min-height: 58px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); cursor: pointer; transition: border-color .15s, background-color .15s; }
.x-experience.px .x-topic:hover { border-color: var(--line-3); background: var(--surface-2); }
.x-experience.px .x-topic:has(input:checked) { border-color: color-mix(in oklab, var(--plat) 60%, transparent); background: linear-gradient(180deg, rgba(220, 226, 238, .06), rgba(220, 226, 238, .02)), var(--surface-2); }
.x-experience.px .x-topic:has(input:focus-visible) { outline: 2px solid var(--plat); outline-offset: 2px; }
.x-topic-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); color: var(--plat); }
.x-topic-ic .kic { width: 15px; height: 15px; }
.x-topic-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.x-topic-t b { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.x-topic-t small { font-size: 10.5px; color: var(--faint); }
.x-experience.px .x-topic-v { font: 700 13px var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); }
.x-topic .x-tick { width: 20px; height: 20px; }
.x-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.x-warn { margin: -6px 0 0; padding: 10px 12px; border: 1px solid color-mix(in oklab, #e6b35a 35%, transparent); border-radius: 10px; font-size: 12.5px; line-height: 1.55; color: #ecc57c; }
.x-warn:empty { display: none; }
.x-submit { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.x-sum { margin: 0; font: 500 11px var(--mono); letter-spacing: .04em; color: var(--muted); }

/* ---------- Gespeicherte Pläne ---------- */
.x-saved-list { display: flex; flex-direction: column; }
.x-experience.px .x-saved-plan { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 12px 10px; margin: 0 -10px; border: 0; border-radius: 10px; }
.x-experience.px .x-saved-plan + .x-saved-plan { border-top: 1px solid var(--line); border-radius: 0; }
.x-saved-plan.is-current { background: var(--surface-2); border-radius: 10px !important; }
.x-saved-d { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.x-saved-d b { font-size: 13.5px; font-weight: 600; }
.x-saved-d small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-saved-a { display: inline-flex; gap: 16px; }
.x-saved-a .x-del { color: var(--muted); }

/* ---------- Leerer Zustand ---------- */
.x-experience.px .x-empty-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 34px 32px; }
.x-empty-ic { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-3); border-radius: 50%; color: var(--plat); }
.x-empty-ic .x-ic { width: 20px; height: 20px; }
.x-empty-card h2 { font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.x-empty-card p { max-width: 60ch; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
  .x-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-pillars { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
}
@media (max-width: 760px) {
  .x-experience.px .card { padding: 18px 16px; }
  .x-experience.px .x-hero { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px; }
  .x-experience.px .x-current-gauge { max-width: 190px; }
  .x-pillars { max-width: none; }
  .x-experience.px .x-run { grid-template-columns: minmax(0, 1fr); }
  .x-experience.px .x-run .x-actions { flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
  .x-goal { font-size: 16px; }
  .x-experience.px .x-tabs { align-self: stretch; }
  .x-experience.px .x-week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-topic-grid, .x-settings { grid-template-columns: minmax(0, 1fr); }
  .x-experience.px .x-saved-plan { grid-template-columns: minmax(0, 1fr) auto; }
  .x-saved-a { grid-column: 1 / -1; }
  .x-submit .btn { width: 100%; }
  .x-experience.px .x-editor .seg3 { width: 100%; }
  .x-experience.px .x-editor .seg3 button { flex: 1 1 auto; padding: 0 10px; white-space: nowrap; font-size: 12px; }
  .x-chip-row:has(> .x-chip--day) { flex-wrap: nowrap; }
  .x-chip--day { flex: 1 1 0; min-width: 0; }
  .x-chip--day span { width: 100%; min-width: 0; padding: 0; }
  .x-chip-row { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .x-pg-val, .x-current-gauge .pg-dot { animation: none !important; stroke-dashoffset: 0; }
}
/* ältere Listenregel (flex:1; min-width:180px) für gespeicherte Pläne aufheben */
.x-experience.px .x-saved-plan > span { flex: none; min-width: 0; }
.x-experience.px .x-saved-plan > .x-saved-d { min-width: 0; }
.x-experience.px .x-saved-plan > .x-status { justify-self: start; }

/* Plan integration audit: keep Claude's layout; clarify sources and guide access. */
.x-topic-t .x-topic-reason{display:block;font-size:10px;line-height:1.45;color:var(--muted);white-space:normal;margin-top:4px}
.x-recommendation-note,.x-budget-note{font-size:11px;line-height:1.65;color:var(--muted)}
.x-recommendation-note{margin:0 0 18px;max-width:86ch}
.x-budget-note{display:block;font-weight:400}
.x-reference-status{display:inline-block;margin-left:8px;padding:3px 7px;border:1px solid var(--line-3);border-radius:4px;letter-spacing:.03em}
.x-run-topics a{color:inherit;text-decoration:none}.x-run-topics a:hover{text-decoration:underline;text-underline-offset:3px}
.x-task-row{min-width:0}.x-task-links{display:flex;flex-wrap:wrap;gap:8px 16px;padding:0 0 13px 28px}
.x-task-links a{font-size:11px;line-height:1.5}.x-run-topics a:focus-visible,.x-task-links a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}

/* ---------- Verlauf: Analysewert → mit Plan → Potenzial ohne OP (Werte aus runtime/experience.js) ---------- */
.x-experience.px .x-hero.has-proj { align-items: center; row-gap: 22px; padding-bottom: 22px; }
.x-hero.is-live .x-pg-val, .x-hero.is-live .x-current-gauge .pg-dot { animation: none; stroke-dashoffset: 0; }
.x-pg-goal { fill: none; stroke-width: 11; stroke-linecap: butt; stroke-opacity: .32; stroke-dasharray: 2 2.6; }
.x-pg-pot { stroke: var(--plat); stroke-width: 1.6; stroke-linecap: round; opacity: .75; }
.x-pillars li { grid-template-columns: 88px minmax(0, 1fr) minmax(30px, auto); }
.x-pillars i b.x-pl-goal { background: var(--c, var(--plat)); opacity: .32; border-radius: 0 2px 2px 0; }
.x-pillars em { display: inline-flex; align-items: baseline; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.x-pl-to { font: 600 11px var(--sans); font-variant-numeric: tabular-nums; opacity: .9; }

.x-proj { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.x-proj-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; }
.x-proj-h .label-mono { font-size: 9.5px; color: var(--muted); }
.x-proj-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11px; color: var(--muted); }
.x-proj-key span { display: inline-flex; align-items: center; gap: 7px; }
.x-proj-key i { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--plat); border-radius: 2px; }
.x-proj-key .x-k-plan { border-top-color: var(--s-good); }
.x-proj-key .x-k-pot { border-top: 1.5px dashed var(--plat); opacity: .8; }

.x-proj-chart { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: 200px auto; column-gap: 10px; row-gap: 8px; margin-top: 12px; }
.x-proj-y { position: relative; }
.x-proj-y span { position: absolute; right: 0; transform: translateY(-50%); font: 500 9.5px var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; }
.x-proj-plot { position: relative; min-width: 0; touch-action: pan-y; }
.x-proj-plot > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.x-proj-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.x-proj-pot { stroke: var(--plat); stroke-width: 1.4; stroke-dasharray: 5 5; opacity: .55; vector-effect: non-scaling-stroke; }
.x-proj-now { stroke: var(--line-3); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.x-proj-line { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.x-proj-plot > svg { animation: xProjReveal 1.1s var(--ease) .1s both; }
@keyframes xProjReveal { from { clip-path: inset(-10% 100% -10% 0); } to { clip-path: inset(-10% -2% -10% 0); } }
.x-proj-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--surface), 0 0 10px var(--c); }
.x-proj-dot.is-today { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--c); }
.x-proj-lb { position: absolute; display: flex; flex-direction: column; gap: 1px; line-height: 1.15; pointer-events: none; white-space: nowrap; }
.x-proj-lb small { font: 500 8.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.x-proj-lb b { font: 700 14px var(--sans); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.x-proj-lb.is-start { transform: translate(10px, calc(-100% - 8px)); }
.x-proj-lb.is-end { transform: translate(calc(-100% - 12px), 8px); align-items: flex-end; text-align: right; }
.x-proj-lb.is-pot { transform: translate(-100%, calc(-100% - 6px)); align-items: flex-end; text-align: right; }
.x-proj-lb.is-pot b { color: var(--plat); }
.x-proj-lb.is-today { transform: translate(-50%, 10px); align-items: center; }
.x-proj-x { grid-column: 2; position: relative; height: 14px; }
.x-proj-x span { position: absolute; top: 0; transform: translateX(-50%); font: 500 9px var(--mono); color: var(--faint); white-space: nowrap; }
.x-proj-x span:first-child { transform: none; }
.x-proj-x span:last-of-type:not(.is-today) { transform: translateX(-100%); }
.x-proj-tday { position: absolute; top: -4px; transform: translate(-50%, -100%); padding: 2px 6px; border-radius: 4px; background: var(--surface-3); font: 500 8.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; pointer-events: none; }
.x-proj-cross { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid var(--line-3); pointer-events: none; }
.x-proj-cross::after { content: ''; position: absolute; left: -5px; top: var(--y, 50%); width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--c, var(--plat)); box-shadow: 0 0 0 2px var(--surface); }
.x-proj-tip { position: absolute; z-index: 2; transform: translate(12px, -50%); padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface-2); font: 600 11.5px var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; pointer-events: none; }
.x-proj-tip.is-right { transform: translate(calc(-100% - 12px), -50%); }
.x-proj-plot.is-hover .x-proj-lb { opacity: .35; }
.x-proj-wait { display: flex; align-items: center; justify-content: center; gap: 10px; height: 200px; border: 1px dashed var(--line-2); border-radius: 10px; font-size: 12px; color: var(--muted); }
.x-proj-wait i { width: 14px; height: 14px; border: 1.6px solid var(--line-3); border-top-color: var(--plat); border-radius: 50%; animation: xProjSpin .8s linear infinite; }
@keyframes xProjSpin { to { transform: rotate(360deg); } }

.x-proj-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.x-proj-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px 10px; align-items: start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in oklab, var(--surface-2) 60%, transparent); }
.x-pj-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--surface-3); color: var(--ink-2); }
.x-pj-ic .kic { width: 13px; height: 13px; }
.x-pj-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.x-pj-t > b { font-size: 12.5px; font-weight: 650; color: var(--ink); }
.x-pj-t small { font-size: 11px; line-height: 1.5; color: var(--muted); }
.x-pj-v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 11.5px; color: var(--ink-2); }
.x-pj-v > span { color: var(--muted); }
.x-pj-v b { font: 700 12.5px var(--sans); font-variant-numeric: tabular-nums; }
.x-pj-v i { font-style: normal; color: var(--faint); }
.x-proj-list li.is-flat { opacity: .72; }
.x-pj-w { grid-column: 2; position: relative; height: 3px; border-radius: 2px; background: var(--line); }
.x-pj-w i { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--s-good); opacity: .7; }
.x-proj-empty { margin: 0; font-size: 12px; color: var(--muted); }
.x-proj .x-hero-note { margin-top: 0; padding-top: 0; border-top: 0; }

@media (max-width: 760px) {
  .x-experience.px .x-hero.has-proj { row-gap: 10px; }
  .x-proj-chart { grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: 170px auto; column-gap: 6px; }
  .x-proj-wait { height: 170px; }
  .x-proj-lb b { font-size: 12.5px; }
  .x-proj-list { grid-template-columns: minmax(0, 1fr); }
  .x-proj-x span.is-odd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .x-proj-plot > svg, .x-proj-wait i { animation: none !important; clip-path: none; }
}
/* Existing topic cards, grouped into expandable plan areas. Chart geometry unchanged. */
.x-category-list { display:grid; gap:12px; }
.x-plan-category { border:1px solid var(--line-2); border-radius:12px; padding:0 16px 12px; }
.x-plan-category > summary { cursor:pointer; padding:16px 0; display:flex; align-items:center; justify-content:space-between; gap:12px; font-weight:600; }
.x-plan-category > summary > span { display:flex; align-items:center; gap:8px; }
.x-plan-category > summary small { font-size:11px; font-weight:500; color:var(--muted); text-align:right; }
.x-plan-category:not([open]) { padding-bottom:0; }
.x-select-category { display:flex; gap:8px; align-items:center; margin:0 0 12px; font-size:12px; cursor:pointer; }
.x-topic-options { min-width:0; border:1px solid var(--line); border-radius:10px; }
.x-topic-options > .x-topic { border:0; }
.x-topic-detail { padding:0 12px 12px; }
.x-topic-detail > summary { font-size:11px; color:var(--muted); cursor:pointer; padding:8px 0; }
.x-methods { border:0; margin:12px 0; padding:0; min-width:0; }
.x-methods legend { font-size:11px; color:var(--muted); margin-bottom:6px; }
.x-method { display:flex; gap:8px; align-items:flex-start; margin:8px 0; font-size:12px; cursor:pointer; }
.x-method input { flex:none; margin-top:3px; accent-color:var(--ok); }
.x-method b { display:block; font-weight:550; }
.x-method small { display:block; font-size:11px; line-height:1.5; color:var(--muted); margin-top:2px; }
.x-targets { margin:8px 0; padding:0; list-style:none; font-size:11px; }
.x-targets li { display:flex; justify-content:space-between; gap:8px; padding:4px 0; color:var(--muted); }
.x-targets b { color:var(--ink-2); white-space:nowrap; font-weight:500; }
@media(max-width:560px) { .x-plan-category { padding-left:12px; padding-right:12px; } .x-plan-category .x-topic-grid { grid-template-columns:1fr; } }
.x-plan-subarea { margin:16px 0; }
.x-plan-subarea > h3 { margin:0 0 10px; font-size:12px; font-weight:550; color:var(--muted); }
[data-x-derived-time] { font-size:15px; color:var(--ink-2); }
[data-x-time-breakdown] li { align-items:flex-start; }
.x-plan-category > summary > small { margin-left:auto; }
.x-plan-category > summary::after { content:'+'; color:var(--muted); font-weight:400; font-size:18px; }
.x-plan-category[open] > summary::after { content:'−'; }

/* Free preview retains the existing chart frame; no personal forecast is present. */
.x-proj-lock-frame { position:relative; min-height:250px; display:grid; place-items:center; overflow:hidden; }
.x-proj-preview { position:absolute; inset:16px 0; filter:blur(7px); opacity:.45; pointer-events:none; user-select:none; }
.x-proj-preview svg { width:100%; height:100%; fill:none; }
.x-proj-preview .x-proj-line { stroke:var(--plat); stroke-width:2; }
.x-proj-unlock { position:relative; z-index:1; max-width:460px; padding:24px 18px; text-align:center; }
.x-proj-unlock h3 { margin:10px 0; font-size:21px; }
.x-proj-unlock p { margin:0 0 18px; color:var(--muted); font-size:13px; line-height:1.6; }
.x-proj--locked { grid-column:1 / -1; }

/* ---------- Zwei Ansichten: „Aktueller Plan“ und „Potenzial & neuer Plan“ (11.11.) ---------- */
.x-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 4px; padding: 5px; border: 1px solid var(--line-2); border-radius: 18px; background: rgba(0, 0, 0, .28); }
.x-view { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 18px; border: 0; border-radius: 13px; background: none; color: var(--muted); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.x-view:hover { background: rgba(255, 255, 255, .03); color: var(--ink-2); }
.x-view.is-on { cursor: default; color: var(--ink); background: linear-gradient(180deg, rgba(220, 226, 238, .09), rgba(220, 226, 238, .03)), var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-3), 0 10px 30px -18px rgba(205, 220, 255, .45); }
.x-view.is-off { cursor: default; opacity: .5; }
.x-view.is-off:hover { background: none; }
.x-view:focus-visible { outline: 2px solid var(--plat); outline-offset: 2px; }
.x-view-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); }
.x-view-ic .x-ic { width: 17px; height: 17px; }
.x-view.is-on .x-view-ic { border-color: transparent; background: var(--plat); color: #07080c; box-shadow: var(--glow); }
.x-view-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.x-view-t b { font-size: 15px; font-weight: 680; letter-spacing: -.01em; color: inherit; }
.x-view-t small { font-size: 12px; line-height: 1.35; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-view-panel { position: relative; display: flex; flex-direction: column; gap: 26px; padding: 26px 0 6px; }
.x-view-panel::before { content: ''; position: absolute; top: 0; left: 18px; right: 18px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-3), transparent); }
.x-view-panel.is-plan::after, .x-view-panel.is-potential::after { content: ''; position: absolute; top: -1px; width: 46px; height: 3px; border-radius: 3px; background: var(--plat); box-shadow: var(--glow); }
.x-view-panel.is-plan::after { left: 25%; transform: translateX(-50%); }
.x-view-panel.is-potential::after { left: 75%; transform: translateX(-50%); }
.x-block { display: flex; flex-direction: column; gap: 12px; }
.x-block-h { display: flex; align-items: flex-start; gap: 13px; padding-left: 2px; }
.x-block-n { display: grid; place-items: center; flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; border: 1px solid var(--line-3); font: 600 11px var(--mono); color: var(--ink-2); }
.x-block-h h2 { margin: 0; font-size: 18px; font-weight: 680; letter-spacing: -.015em; line-height: 1.3; color: var(--ink); }
.x-block-h p { margin: 3px 0 0; max-width: 80ch; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.x-block > .card, .x-block > .x-tabs { margin: 0; }
.x-plan-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.x-plan-switch .label-mono { margin-right: 4px; font-size: 9.5px; color: var(--muted); }
.x-plan-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--ink-2); font: 500 12.5px var(--sans); cursor: pointer; transition: border-color .2s, color .2s; }
.x-plan-chip:hover { border-color: var(--line-3); color: var(--ink); }
.x-plan-chip.is-on { cursor: default; border-color: var(--plat); color: var(--ink); background: rgba(220, 226, 238, .06); }
.x-plan-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.x-plan-chip i.x-status--active { background: var(--ok); }
.x-plan-chip i.x-status--paused { background: #e6b35a; }
@media (max-width: 760px) {
  .x-views { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .x-view { padding: 12px 14px; }
  .x-view-panel.is-plan::after, .x-view-panel.is-potential::after { display: none; }
  .x-view-panel { gap: 22px; padding-top: 22px; }
  .x-block-h h2 { font-size: 16.5px; }
}
