/* Brain Blossom – mobile first, hell/dunkel über Tokens */

:root {
  --bg: #FBF7F3;
  --surface: #FFFFFF;
  --surface-2: #F4EEE9;
  --surface-3: #E9E1DA;
  --ink: #1F1A24;
  --ink-2: #4A4350;
  --muted: #6F6876;
  --line: #E8E0D9;
  --accent: #D6355C;           /* weiße Schrift darauf: 4,6:1 */
  --accent-ink: #FFFFFF;
  --accent-soft: #FDE6EB;
  --accent-strong: #A8264A;
  --gold: #F2B43C;
  --gold-ink: #3A2600;
  --leaf: #23855A;
  --leaf-soft: #DDF3E8;
  --danger: #C73232;
  --danger-soft: #FCE5E3;
  --warn-soft: #FFF1D6;
  --warn-ink: #7A4E00;
  --bar: #8F8794;              /* unter Tagesziel, 3,5:1 auf weiß */
  --bar-hit: #D6355C;          /* Tagesziel erreicht */
  --heat-0: #F1EAE4;
  --heat-1: #FAD3DC;
  --heat-2: #F29BB1;
  --heat-3: #E0607F;
  --heat-4: #B8284D;
  --toast-bg: #1F1A24;
  --toast-ink: #F7F2EE;
  --toast-action: #FF9DB4;
  --shadow: 0 1px 2px rgba(31, 26, 36, .05), 0 6px 20px rgba(31, 26, 36, .06);
  --shadow-lg: 0 16px 48px rgba(31, 26, 36, .22);
  --r: 20px;
  --r-sm: 14px;
  --nav-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16131B; --surface: #201C26; --surface-2: #2A2531; --surface-3: #39323F;
    --ink: #F3EEF5; --ink-2: #D2CAD8; --muted: #A69EAD; --line: #342E3B;
    --accent: #FF6B8E; --accent-ink: #26070F; --accent-soft: #3E2231; --accent-strong: #FF9DB4;
    --gold: #F5C35B; --gold-ink: #2E1E00; --leaf: #52C891; --leaf-soft: #1E3529;
    --danger: #FF7D74; --danger-soft: #3D2222; --warn-soft: #3A2F18; --warn-ink: #F5C35B;
    --bar: #7D7484; --bar-hit: #FF6B8E;
    --heat-0: #2A2531; --heat-1: #4F2A3A; --heat-2: #7E3550; --heat-3: #C04569; --heat-4: #FF6B8E;
    --toast-bg: #F3EEF5; --toast-ink: #1F1A24; --toast-action: #A8264A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16131B; --surface: #201C26; --surface-2: #2A2531; --surface-3: #39323F;
  --ink: #F3EEF5; --ink-2: #D2CAD8; --muted: #A69EAD; --line: #342E3B;
  --accent: #FF6B8E; --accent-ink: #26070F; --accent-soft: #3E2231; --accent-strong: #FF9DB4;
  --gold: #F5C35B; --gold-ink: #2E1E00; --leaf: #52C891; --leaf-soft: #1E3529;
  --danger: #FF7D74; --danger-soft: #3D2222; --warn-soft: #3A2F18; --warn-ink: #F5C35B;
  --bar: #7D7484; --bar-hit: #FF6B8E;
  --heat-0: #2A2531; --heat-1: #4F2A3A; --heat-2: #7E3550; --heat-3: #C04569; --heat-4: #FF6B8E;
  --toast-bg: #F3EEF5; --toast-ink: #1F1A24; --toast-action: #A8264A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 16px/1.45 var(--font); -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
body.has-sheet { overflow: hidden; }
a { color: var(--accent-strong); text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.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; }
[hidden] { display: none !important; }
mark { background: var(--accent-soft); color: var(--accent-strong); border-radius: 4px; padding: 0 1px; }
h1, h2, h3 { letter-spacing: -.012em; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.hint { color: var(--muted); margin: 12px 4px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85rem; }

/* ---------- Gerüst ---------- */
#app { max-width: 640px; margin: 0 auto; min-height: 100dvh; }
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 6px;
  padding: calc(var(--safe-t) + 10px) 12px 10px 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.top h1 { flex: 1; margin: 0; font-size: 1.6rem; font-weight: 780; line-height: 1.15; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top.sub { padding-left: 6px; }
.top.sub h1 { font-size: 1.15rem; font-weight: 700; }
.top.brand h1 { font-size: 1.3rem; }
.top.fold h1 { opacity: 0; transform: translateY(4px); transition: opacity .18s, transform .18s; }
.top.fold.show-title h1 { opacity: 1; transform: none; }
.page-title { margin: 2px 0 8px; font-size: 1.55rem; font-weight: 780; line-height: 1.2; overflow-wrap: anywhere; }
.top-actions { display: flex; gap: 2px; align-items: center; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; }
.brand-mark svg { width: 30px; height: 30px; }
.brand-mark .lp ellipse { fill: var(--accent); opacity: .9; }
.brand-mark .lc { fill: var(--gold); }

.view { padding: 4px 16px calc(var(--nav-h) + var(--safe-b) + 28px); }
.view.enter { animation: viewIn .22s ease-out; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  max-width: 640px; margin: 0 auto; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--line);
}
@media (min-width: 641px) { .nav { border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; } }
.nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%;
  color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600;
}
.nav a svg { width: 24px; height: 24px; transition: transform .15s; }
.nav a.on { color: var(--accent-strong); }
.nav a.on svg { transform: translateY(-1px); }
.fab {
  justify-self: center; width: 58px; height: 58px; margin-top: -26px; border: 0; border-radius: 20px;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 0 5px var(--bg);
  transition: transform .15s;
}
.fab svg { width: 28px; height: 28px; stroke-width: 2.4; }
.fab:active { transform: scale(.94); }
@media (max-height: 520px) { .nav { display: none; } .view { padding-bottom: 24px; } }

/* ---------- Bedienelemente ---------- */
.icon-btn {
  width: 42px; height: 42px; border: 0; border-radius: 13px; background: transparent; color: var(--ink-2);
  display: inline-grid; place-items: center; position: relative; text-decoration: none; flex: none;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.on { color: var(--gold); }
.icon-btn.small { width: 34px; height: 34px; border-radius: 10px; }
.icon-btn.small svg { width: 18px; height: 18px; }
.icon-btn.tiny { width: 28px; height: 28px; border-radius: 8px; }
.icon-btn.tiny svg { width: 15px; height: 15px; }
.icon-btn.primary { background: var(--accent); color: var(--accent-ink); }
.icon-btn.primary:hover { background: var(--accent); filter: brightness(1.06); }
.icon-btn.back { color: var(--ink); }
.with-count .count {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border: 0; border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--ink); font-weight: 650; text-decoration: none; text-align: center;
  transition: transform .12s, filter .15s, background .15s;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { filter: brightness(.97); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.ghost.danger { background: transparent; color: var(--danger); }
.btn.big { min-height: 54px; font-size: 1.02rem; border-radius: 16px; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: .9rem; border-radius: 11px; }
.btn.small svg { width: 17px; height: 17px; }
.btn.block { width: 100%; }
.row-btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.row-btns.left { justify-content: flex-start; }
.row-btns .btn { flex: 0 1 auto; }
.dialog .row-btns .btn { flex: 1; }

.input {
  width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1.4; resize: none;
}
.input::placeholder { color: var(--muted); opacity: .85; }
.input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.input.big { font-size: 1.08rem; font-weight: 550; }
textarea.input { display: block; }
select.input { appearance: auto; }
.input-mic { display: flex; align-items: center; gap: 6px; }
.input-mic.align-top { align-items: flex-start; }
.input-mic .input { flex: 1; min-width: 0; }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; min-width: 0; }
.mic { color: var(--ink-2); }
.mic.live { background: var(--accent); color: var(--accent-ink); animation: micPulse 1.4s ease-in-out infinite; }
@keyframes micPulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 50% { box-shadow: 0 0 0 9px transparent; } }

.label { display: block; margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.label-row .label { margin: 0; }
.eyebrow { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.eyebrow svg { width: 16px; height: 16px; color: var(--gold); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 13px;
  border: 1px solid transparent; border-radius: 999px; background: var(--surface-2); color: var(--ink-2);
  font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.chip svg { width: 16px; height: 16px; }
.chip.on { background: var(--accent-soft); color: var(--accent-strong); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.chip.tag { font-weight: 550; }
.chip.ghost { background: transparent; border: 1px dashed var(--surface-3); }
.chip.ghost.ai { border-color: color-mix(in srgb, var(--gold) 70%, transparent); }
.chip.plain { background: transparent; color: var(--muted); padding: 0 4px; }
.chip.off { opacity: .45; text-decoration: line-through; }
.chip.prompt { white-space: normal; text-align: left; min-height: 38px; padding: 7px 13px; line-height: 1.3; border-radius: 14px; font-weight: 550; }
.chip .count { color: var(--muted); font-weight: 600; }
.chip.ai-btn { background: transparent; border-color: var(--surface-3); color: var(--ink-2); }
.chip.ai-btn svg { color: var(--gold); }
.chip.busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px; scrollbar-width: none; }
.chip-scroll::-webkit-scrollbar { display: none; }
.chip button { display: grid; place-items: center; width: 20px; height: 20px; margin-right: -6px; border: 0; border-radius: 50%; background: transparent; color: inherit; padding: 0; }
.chip button svg { width: 13px; height: 13px; }

.select-chip {
  min-height: 34px; max-width: 100%; padding: 0 30px 0 13px; border: 1px solid transparent; border-radius: 999px;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
  appearance: none; -webkit-appearance: none; font-size: .9rem; font-weight: 600; color: var(--ink-2); text-overflow: ellipsis;
}
.select-chip.on { background-color: var(--accent-soft); color: var(--accent-strong); }
.select-label { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--muted); min-width: 0; }
.select-label .select-chip { max-width: 150px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.filter-row .select-chip { margin-left: auto; }
.filter-row .select-chip + .select-chip { margin-left: 0; }
.filter-row.selects { flex-wrap: nowrap; }
.filter-row.selects .select-chip { margin-left: 0; flex: 1 1 0; min-width: 0; }

.seg { display: flex; padding: 4px; gap: 4px; border-radius: 15px; background: var(--surface-2); margin: 12px 0 4px; }
.seg button { flex: 1; min-height: 38px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-weight: 650; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.seg .count { font-size: .78rem; color: var(--muted); font-weight: 600; margin-left: 2px; }
.seg.small { margin: 0; flex: 0 1 auto; }
.seg.small button { padding: 0 10px; min-height: 32px; font-size: .88rem; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); font-size: .76rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.badge svg { width: 13px; height: 13px; }
.badge.strong { color: var(--ink); }
.badge.accent { background: var(--accent-soft); color: var(--accent-strong); }
.badge.plain { background: transparent; color: var(--muted); padding: 2px 2px; }
.badge.topic { background: var(--surface-2); color: var(--ink-2); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.badge.tag { background: transparent; color: var(--muted); padding: 2px 3px; }
.badge.todo { background: var(--warn-soft); color: var(--warn-ink); }
.badge.todo.over { background: var(--danger-soft); color: var(--danger); }
.badge.done { background: var(--leaf-soft); color: var(--leaf); }
.badge.fav { background: transparent; color: var(--gold); padding: 2px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.fav-mark { color: var(--gold); display: inline-grid; }
.fav-mark svg { width: 18px; height: 18px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 14px 0; box-shadow: var(--shadow); }
.card-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1.02rem; font-weight: 720; }
.card-title svg { width: 19px; height: 19px; color: var(--accent); }
.card.stack .card-title { margin-bottom: 0; }

.check, .radio { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.check input, .radio input { width: 22px; height: 22px; accent-color: var(--accent); margin: 0; flex: none; }
.radio-group { border: 0; padding: 0; margin: 0; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; }
.field-row > span { font-weight: 600; }
.field-row .input { max-width: 60%; }
.field-row input[type="time"] { max-width: 140px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; }
.switch-row > span { display: flex; flex-direction: column; gap: 2px; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 52px; height: 32px; border-radius: 16px; background: var(--surface-3); position: relative; transition: background .2s; margin: 0; cursor: pointer; }
.switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch:checked { background: var(--accent); }
.switch:checked::before { transform: translateX(20px); }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper b { min-width: 34px; text-align: center; font-size: 1.15rem; }
.stepper .icon-btn { background: var(--surface-2); font-size: 1.3rem; font-weight: 700; }

.empty { text-align: center; padding: 36px 20px 20px; }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 22px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); }
.empty-icon svg { width: 30px; height: 30px; }
.empty h3 { margin: 0 0 6px; font-size: 1.12rem; }
.empty p { margin: 0 auto 18px; max-width: 34ch; color: var(--muted); }

.banner { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; margin: 14px 0; border-radius: 16px; background: var(--surface-2); color: var(--ink-2); }
.banner svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.banner.warn { background: var(--warn-soft); color: var(--warn-ink); }
.hint-card { display: flex; gap: 12px; align-items: flex-start; }
.hint-card > svg { width: 24px; height: 24px; color: var(--accent); flex: none; margin-top: 2px; }
.hint-card p { margin: 4px 0 12px; color: var(--muted); font-size: .92rem; }

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li + li { border-top: 1px solid var(--line); }
.link-list a, .link-list button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 2px; border: 0; background: none; text-align: left; color: var(--ink); text-decoration: none; font-weight: 550; }
.link-list a span:first-child, .link-list button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-list svg { width: 18px; height: 18px; color: var(--muted); }
.more-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-weight: 650; text-decoration: none; }
.more-link svg { width: 16px; height: 16px; }

.menu-list { list-style: none; margin: 14px 0; padding: 4px 0; }
.menu-list.card { padding: 4px 6px; }
.menu-item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 0 10px; border: 0; border-radius: 14px; background: none; color: var(--ink); text-decoration: none; font-weight: 600; text-align: left; }
.menu-item:hover { background: var(--surface-2); }
.menu-item > svg:first-child { width: 22px; height: 22px; color: var(--accent); }
.menu-item > span:first-of-type { flex: 1; }
.menu-item > svg:last-child { width: 18px; height: 18px; color: var(--muted); }
.menu-item.danger, .menu-item.danger > svg:first-child { color: var(--danger); }
.menu-list li + li .menu-item { border-top-left-radius: 14px; }
.sheet .menu-list { margin: 0 -6px; }

/* ---------- Heute ---------- */
.hero { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin: 6px 0 12px; }
.hero-bloom { position: relative; width: 132px; height: 132px; }
.blossom { width: 100%; height: 100%; overflow: visible; }
.petal { fill: var(--surface-3); transition: fill .35s ease calc(var(--i) * 35ms), transform .35s; }
.petal.on { fill: var(--accent); }
.core { fill: var(--gold); }
.hero-count { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--gold-ink); pointer-events: none; line-height: 1; }
.hero-count b { font-size: 1.25rem; font-weight: 800; }
.hero-count span { font-size: .62rem; font-weight: 700; opacity: .8; margin-top: 1px; }
.hero-text h2 { margin: 0 0 4px; font-size: 1.35rem; font-weight: 780; line-height: 1.2; }
.hero-text p { margin: 0; }
.hero-text .eyebrow { margin-bottom: 6px; }
.streak { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; padding: 4px 11px 4px 8px; border-radius: 999px; background: var(--surface-2); font-size: .88rem; color: var(--ink-2); }
.streak svg { width: 18px; height: 18px; color: var(--accent); }
.streak b { color: var(--ink); }

.week { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 4px 0 16px; padding: 12px 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.week li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.week .wd { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.week .dot { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 360deg), var(--surface-3) 0); }
.week .dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.week .dot b { position: relative; z-index: 1; font-size: .78rem; font-weight: 750; color: var(--ink-2); }
.week .full .dot::after { display: none; }
.week .full .dot b { color: var(--accent-ink); }
.week .today .wd { color: var(--accent-strong); }

.cta-row { display: flex; gap: 10px; }
.cta-row .btn { white-space: nowrap; padding: 0 16px; }
.cta-row .btn.primary { flex: 1; }
.intro .steps li { margin: 6px 0; }
.continue { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); color: var(--ink); text-decoration: none; }
.continue .muted { width: 100%; }
.continue-title { flex: 1; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.continue svg { width: 18px; height: 18px; color: var(--muted); }
.impulse-text { margin: 4px 0 14px; font-size: 1.12rem; font-weight: 650; line-height: 1.35; }
.impulse-text.pop { animation: pop .3s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tip-line { display: flex; gap: 10px; align-items: flex-start; margin: 20px 4px 0; color: var(--muted); font-size: .9rem; }
.tip-line svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 2px; }

/* ---------- Listen ---------- */
.search { position: relative; margin-top: 4px; }
.search .input { padding-left: 42px; border-radius: 15px; background: var(--surface); }
.search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); display: grid; }
.search-icon svg { width: 20px; height: 20px; }

.topic-list, .idea-list, .numbered, .todo-list, .match-list, .tag-list, .review-list, .comments, .added, .rank, .plain-list, .method { list-style: none; margin: 0; padding: 0; }
.topic-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.topic-card { display: block; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .12s; }
.topic-card:active { transform: scale(.99); }
.tc-top { display: flex; gap: 10px; align-items: flex-start; }
.tc-title { flex: 1; font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.tc-bar { display: block; height: 4px; margin: 10px 0 2px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.tc-bar i { display: block; height: 100%; border-radius: 2px; background: var(--accent); }

.idea-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.idea + .idea { border-top: 1px solid var(--line); }
.idea-btn { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 12px 14px; border: 0; background: none; text-align: left; color: var(--ink); }
.idea-btn:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.idea-main { flex: 1; min-width: 0; display: block; }
.idea-text { display: block; font-weight: 550; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-line; }
.idea.is-done .idea-text { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.idea .meta { margin-top: 5px; }
.result-count { margin: 4px 4px 8px; }
.add-to { margin: 4px 0 12px; }

.topic-note { margin: 4px 0 10px; color: var(--ink-2); white-space: pre-line; }
.topic-meta { margin: 0 0 12px; }
.todo-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 12px; margin: 0 0 12px; border-radius: 14px; background: var(--warn-soft); color: var(--warn-ink); }
.todo-date { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.todo-date svg { width: 18px; height: 18px; }
.todo-date .input { width: auto; min-height: 38px; padding: 6px 10px; }
.todo-edit .check { min-height: 38px; font-weight: 600; }

.numbered { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; box-shadow: var(--shadow); overflow: hidden; }
.numbered:empty { display: none; }
.numbered:empty + .addrow { border-radius: var(--r) var(--r) 0 0; border-top: 1px solid var(--line); }
.numbered .num, .addrow .num { width: 26px; flex: none; text-align: right; font-weight: 750; color: var(--accent-strong); font-variant-numeric: tabular-nums; padding-top: 1px; }
.addrow { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow); position: relative; }
.addrow .num { color: var(--muted); }
.addrow .input { flex: 1; min-width: 0; border-color: transparent; background: var(--surface-2); }
.ghosts { background: none; border: 0; box-shadow: none; margin: 4px 0 0; }
.ghosts li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; opacity: .55; }
.ghosts .num { color: var(--muted); font-weight: 600; }
.ghosts .line { flex: 1; border-bottom: 1px dotted var(--surface-3); height: 14px; }

.todo-list.card { padding: 4px 8px; }
.todo-row { display: flex; align-items: center; gap: 8px; }
.todo-row + .todo-row { border-top: 1px solid var(--line); }
.check-btn { flex: none; width: 30px; height: 30px; margin: 0 2px; border-radius: 9px; border: 2px solid var(--surface-3); background: transparent; color: transparent; display: grid; place-items: center; }
.check-btn svg { width: 18px; height: 18px; stroke-width: 2.8; }
.check-btn.on { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.todo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 11px 4px; border: 0; background: none; text-align: left; color: var(--ink); }
.todo-text { font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.todo-row.is-done .todo-text { color: var(--muted); text-decoration: line-through; }
.todo-row.over .muted { color: var(--danger); }
.group-title { display: flex; align-items: center; gap: 8px; margin: 20px 4px 0; font-size: .82rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.group-title + .card { margin-top: 8px; }
.group-title .count { font-weight: 600; }

/* ---------- Sheets ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(15, 10, 20, .42); opacity: 0; transition: opacity .2s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 640px;
  max-height: calc(100dvh - var(--safe-t) - 28px); display: flex; flex-direction: column;
  background: var(--surface); border-radius: 26px 26px 0 0; box-shadow: var(--shadow-lg);
  transform: translateY(104%); transition: transform .26s cubic-bezier(.2, .85, .25, 1); outline: none;
}
.sheet-wrap.in .sheet-backdrop { opacity: 1; }
.sheet-wrap.in .sheet { transform: none; }
.sheet-grip { width: 38px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: var(--surface-3); flex: none; }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 18px; flex: none; }
.sheet-head h2 { flex: 1; margin: 0; font-size: 1.08rem; font-weight: 720; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 6px 18px calc(20px + var(--safe-b)); }
.sheet-body section > .label { margin-top: 4px; }
@media (min-width: 720px) {
  .sheet { bottom: auto; top: 50%; max-width: 560px; border-radius: 26px; transform: translateY(-46%) scale(.97); opacity: 0; transition: transform .22s, opacity .2s; max-height: 86dvh; }
  .sheet-wrap.in .sheet { transform: translateY(-50%); opacity: 1; }
  .sheet-grip { display: none; }
  .sheet-head { padding-top: 12px; }
}
.dialog .sheet { max-width: 460px; }
.dialog .sheet-body p { margin: 0 0 14px; }

.toggles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.toggle { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink-2); font-size: .82rem; font-weight: 650; }
.toggle svg { width: 22px; height: 22px; }
.toggle.on { background: var(--accent-soft); border-color: transparent; color: var(--accent-strong); }
.toggle#iFav.on, .toggle#mFav.on { background: color-mix(in srgb, var(--gold) 20%, var(--surface)); color: var(--gold-ink); }
:root[data-theme="dark"] .toggle#iFav.on, :root[data-theme="dark"] .toggle#mFav.on { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toggle#iFav.on, :root:not([data-theme="light"]) .toggle#mFav.on { color: var(--gold); } }
.tags-edit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-sm); min-height: 46px; }
.tag-chips { display: contents; }
.tag-input { flex: 1; min-width: 120px; border: 0; background: none; padding: 6px; font-size: 16px; outline: none; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.suggest .chip { min-height: 30px; font-size: .85rem; }
.comments li { position: relative; padding: 10px 36px 10px 12px; margin-bottom: 8px; border-radius: 14px; background: var(--surface-2); }
.comments p { margin: 0 0 2px; white-space: pre-line; overflow-wrap: anywhere; }
.comments .icon-btn { position: absolute; top: 4px; right: 4px; }
.comment-add { display: flex; gap: 8px; align-items: center; }
.comment-add .input-mic { flex: 1; min-width: 0; }
.meta-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px; }
.move { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 180px; }
.composer-foot { display: flex; justify-content: space-between; align-items: center; min-height: 22px; }
.composer-foot a { font-weight: 650; text-decoration: none; }
.added li { display: flex; gap: 8px; align-items: flex-start; padding: 7px 2px; border-top: 1px solid var(--line); color: var(--ink-2); animation: pop .25s ease-out; }
.added svg { width: 18px; height: 18px; color: var(--leaf); flex: none; margin-top: 2px; }

/* ---------- Ideen-Match ---------- */
.match-filter { flex-wrap: nowrap; margin-top: 2px; }
.match-filter .select-label { flex: 1 1 0; min-width: 0; }
.match-filter .select-chip { margin: 0; flex: 1; min-width: 0; max-width: none; }
.match-stage { display: flex; flex-direction: column; gap: 0; margin-top: 6px; }
.slot { min-height: 168px; display: flex; }
.mcard {
  position: relative; flex: 1; display: flex; flex-direction: column; padding: 14px 16px 18px;
  border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
  transition: transform .25s cubic-bezier(.2, .85, .25, 1), opacity .25s;
}
.mcard.dragging { transition: none; cursor: grabbing; box-shadow: var(--shadow-lg); }
.mcard.leaving { transition: transform .22s ease-in, opacity .22s; opacity: 0; }
.mcard.enter { animation: cardIn .28s cubic-bezier(.2, .85, .25, 1); }
@keyframes cardIn { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: none; } }
.mcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -4px -8px 6px 0; }
.mcard-text { flex: 1; margin: 0; font-size: 1.22rem; font-weight: 680; line-height: 1.35; overflow-wrap: anywhere; display: flex; align-items: center; }
.swipe-hint { position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; display: grid; place-items: center; background: var(--danger-soft); color: var(--danger); opacity: 0; pointer-events: none; }
.swipe-hint svg { width: 24px; height: 24px; }
.swipe-hint.left { right: 14px; }
.swipe-hint.right { left: 14px; }
.mcard.to-left .swipe-hint.left, .mcard.to-right .swipe-hint.right { opacity: var(--swipe, 0); }
.empty-card { align-items: center; justify-content: center; color: var(--muted); cursor: default; }
.match-mid { display: flex; align-items: center; justify-content: center; gap: 22px; margin: -14px 0; position: relative; z-index: 2; pointer-events: none; }
.match-mid > * { pointer-events: auto; }
.round-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .12s; }
.round-btn svg { width: 22px; height: 22px; }
.round-btn:active { transform: scale(.92); }
.round-btn.big { width: 70px; height: 70px; border: 0; }
.round-btn.big svg { width: 32px; height: 32px; }
.round-btn.accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 0 6px var(--bg); }
.round-btn.accent svg { fill: currentColor; }

.pair { display: grid; gap: 0; }
.mini { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 0; text-align: left; color: var(--ink); font-weight: 600; }
.mini span:last-child { overflow-wrap: anywhere; }
button.mini:hover { filter: brightness(.98); }
.pair-plus { justify-self: center; width: 30px; height: 30px; margin: -8px 0; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 4px var(--surface); position: relative; z-index: 1; }
.pair-plus svg { width: 18px; height: 18px; stroke-width: 2.6; }
.pair-plus.small { width: 22px; height: 22px; margin: 2px 0; box-shadow: none; }
.pair-plus.small svg { width: 14px; height: 14px; }
.match-list { display: flex; flex-direction: column; gap: 10px; }
.match-item { display: block; width: 100%; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); text-align: left; color: var(--ink); }
.mi-pair { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-weight: 620; }
.mi-comment { display: block; margin-top: 8px; padding-left: 10px; border-left: 3px solid var(--accent-soft); color: var(--ink-2); font-size: .92rem; }

/* ---------- Statistik ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 6px 0 4px; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tile-label { font-size: .8rem; font-weight: 650; color: var(--muted); }
.tile-value { font-size: 1.75rem; font-weight: 780; letter-spacing: -.02em; line-height: 1.15; }
.tile-sub { font-size: .78rem; color: var(--muted); }
.chart-card p { margin: -4px 0 10px; }
.chart-box { width: 100%; }
.chart-box.scroll-x { overflow-x: auto; scrollbar-width: thin; }
.chart { display: block; overflow: visible; }
.chart .axis { fill: var(--muted); font-size: 10.5px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart .goal-label { fill: var(--ink-2); font-weight: 650; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .goal-line { stroke: var(--ink-2); stroke-width: 1; opacity: .7; }
.chart .bar { fill: var(--bar); transition: filter .12s; }
.chart .bar.hit { fill: var(--bar-hit); }
.chart .hit-area { fill: transparent; cursor: pointer; outline: none; }
.chart .bar:has(+ .hit-area:hover), .chart .bar:has(+ .hit-area:focus-visible) { filter: brightness(1.15) saturate(1.1); }
.chart .hit-area:focus-visible { stroke: var(--accent); stroke-width: 1.5; }
.heat .cell { cursor: pointer; outline: none; }
.heat .cell:hover, .heat .cell:focus-visible { stroke: var(--ink); stroke-width: 1.5; }
.heat .l0, .heat-legend .l0 { fill: var(--heat-0); background: var(--heat-0); }
.heat .l1, .heat-legend .l1 { fill: var(--heat-1); background: var(--heat-1); }
.heat .l2, .heat-legend .l2 { fill: var(--heat-2); background: var(--heat-2); }
.heat .l3, .heat-legend .l3 { fill: var(--heat-3); background: var(--heat-3); }
.heat .l4, .heat-legend .l4 { fill: var(--heat-4); background: var(--heat-4); }
.heat-legend { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-size: .78rem; color: var(--muted); }
.heat-legend i { width: 12px; height: 12px; border-radius: 3px; }
.heat-legend span:first-child { margin-right: 4px; }
.heat-legend span:last-child { margin-left: 4px; }
.table-view { margin-top: 10px; font-size: .88rem; }
.table-view summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.table-view table { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.table-view th, .table-view td { text-align: left; padding: 5px 4px; border-bottom: 1px solid var(--line); }
.table-view td:last-child, .table-view th:last-child { text-align: right; }
.rank li a { display: grid; grid-template-columns: minmax(0, 1fr) 90px 34px; align-items: center; gap: 10px; min-height: 40px; color: var(--ink); text-decoration: none; }
.rank-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.rank-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--accent); }
.rank-v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.tooltip { position: fixed; z-index: 300; pointer-events: none; padding: 7px 11px; border-radius: 10px; background: var(--toast-bg); color: var(--toast-ink); font-size: .8rem; box-shadow: var(--shadow-lg); }
.tooltip .tip-v { font-size: .95rem; font-weight: 750; }

/* ---------- Tags, KI, Sonstiges ---------- */
.tag-list.card { padding: 4px 8px; }
.tag-list li { display: flex; align-items: center; gap: 2px; min-height: 52px; }
.tag-list li + li { border-top: 1px solid var(--line); }
.tag-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.tag-link .chip { max-width: 70%; overflow: hidden; text-overflow: ellipsis; }

.steps { margin: 0; padding-left: 20px; color: var(--ink-2); }
.steps li { margin: 4px 0; }
.review-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.review-list li.off { opacity: .5; }
.rv-text { margin: 2px 0 8px; font-weight: 600; }
.review-list .chip { min-height: 30px; font-size: .85rem; }

.status { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.status dt { color: var(--muted); }
.status dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.danger-zone .card-title { color: var(--danger); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.plain-list li { padding: 8px 0 8px 22px; position: relative; color: var(--ink-2); }
.plain-list li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.method { counter-reset: m; }
.method li { counter-increment: m; position: relative; padding-left: 58px; }
.method li::before { content: counter(m); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); font-weight: 800; }
.method h3 { margin: 4px 0 4px; font-size: 1.02rem; }
.method p { margin: 0; color: var(--ink-2); }

/* ---------- Bewertung: Potenzial & Aufwand ---------- */
.rating { display: flex; flex-direction: column; gap: 6px; }
.rate-row { display: grid; grid-template-columns: 96px auto 1fr; align-items: center; gap: 6px; }
.rate-label { display: flex; align-items: center; gap: 6px; font-weight: 650; font-size: .92rem; color: var(--ink-2); }
.rate-label svg { width: 17px; height: 17px; color: var(--muted); }
.rate-dots { display: flex; gap: 2px; }
.rdot { width: 32px; height: 36px; border: 0; padding: 0; background: none; display: grid; place-items: center; border-radius: 50%; }
.rdot::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--surface-3); background: var(--surface); transition: background .15s, border-color .15s, transform .12s; }
.rdot:active::before { transform: scale(.88); }
[data-rate="potential"] .rdot.on::before { background: var(--accent); border-color: var(--accent); }
[data-rate="effort"] .rdot.on::before { background: var(--ink-2); border-color: var(--ink-2); }
.rate-hint { font-size: .8rem; color: var(--muted); min-width: 48px; text-align: right; }
.quad-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 0; }
.badge.rate { background: var(--surface-2); color: var(--ink-2); gap: 3px; }
.badge.rate .sep { width: 4px; }
.badge.rate.quick { background: var(--leaf-soft); color: var(--leaf); }
.badge.quad { font-weight: 700; }
.q-quick { --q: var(--leaf); --qbg: var(--leaf-soft); }
.q-big { --q: var(--accent-strong); --qbg: var(--accent-soft); }
.q-small { --q: var(--ink-2); --qbg: var(--surface-2); }
.q-drain { --q: var(--warn-ink); --qbg: var(--warn-soft); }
.badge.quad { background: var(--qbg); color: var(--q); }

.matrix { display: grid; grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 6px; margin-bottom: 12px; }
.mx-axis { display: flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mx-axis svg { width: 14px; height: 14px; }
.mx-axis.y { writing-mode: vertical-rl; transform: rotate(180deg); justify-content: center; }
.mx-axis.x { grid-column: 2; justify-content: center; }
.mx-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.mx-cell { min-width: 0; min-height: 92px; padding: 10px; border-radius: 14px; background: var(--qbg); color: var(--q); }
.mx-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.mx-head b { font-size: .86rem; }
.mx-n { font-size: 1.25rem; font-weight: 800; }
.mx-cell ul { list-style: none; margin: 6px 0 0; padding: 0; }
.mx-cell li button { display: block; width: 100%; border: 0; background: none; padding: 3px 0; text-align: left; color: var(--ink); font-size: .82rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rate-flow .rf-card { padding: 14px; border-radius: 16px; background: var(--surface-2); }
.rate-flow .rf-card p { margin: 8px 0 0; font-size: 1.1rem; font-weight: 650; overflow-wrap: anywhere; }
.rate-flow .rating { padding: 4px 0; }

/* ---------- Ideen-Sprint ---------- */
.sprint {
  position: fixed; z-index: 150; top: calc(var(--safe-t) + 62px); right: max(12px, calc(50vw - 320px + 12px));
  display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 6px; border-radius: 999px;
  background: var(--toast-bg); color: var(--toast-ink); box-shadow: var(--shadow-lg); font-variant-numeric: tabular-nums;
  animation: pop .25s ease-out;
}
.sprint-ring { width: 30px; height: 30px; transform: rotate(-90deg); }
.sprint-ring circle { fill: none; stroke-width: 4; }
.sprint-ring .track { stroke: color-mix(in srgb, var(--toast-ink) 22%, transparent); }
.sprint-ring .prog { stroke: var(--toast-action); stroke-dasharray: 100; stroke-dashoffset: 0; stroke-linecap: round; transition: stroke-dashoffset .5s linear; }
.sprint-time { font-weight: 800; font-size: 1.05rem; min-width: 42px; }
.sprint-count { font-size: .82rem; opacity: .85; }
.sprint-count:empty { display: none; }
.sprint-x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--toast-ink) 14%, transparent); color: inherit; display: grid; place-items: center; }
.sprint-x svg { width: 15px; height: 15px; }
.sprint.last .sprint-time { color: var(--toast-action); animation: micPulse 1s ease-in-out infinite; border-radius: 6px; }
.sprint-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sprint-pick .btn { flex-direction: column; gap: 0; min-height: 84px; }
.sprint-pick b { font-size: 1.8rem; line-height: 1; }
.sprint-pick span { font-size: .85rem; color: var(--muted); }

/* ---------- Zufällige Ideen ---------- */
.inspire-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.inspire-seg svg { width: 17px; height: 17px; }
.rnd-stage { margin-top: 8px; min-height: 260px; display: flex; }
.rcard {
  flex: 1; display: flex; flex-direction: column; padding: 16px 18px; border-radius: 24px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); touch-action: pan-y; user-select: none; -webkit-user-select: none;
  transition: transform .25s cubic-bezier(.2, .85, .25, 1), opacity .25s;
}
.rcard.dragging { transition: none; box-shadow: var(--shadow-lg); }
.rcard.enter-r { animation: rIn .3s cubic-bezier(.2, .85, .25, 1); }
.rcard.enter-l { animation: lIn .3s cubic-bezier(.2, .85, .25, 1); }
@keyframes rIn { from { opacity: 0; transform: translateX(40px) rotate(2deg); } to { opacity: 1; transform: none; } }
@keyframes lIn { from { opacity: 0; transform: translateX(-40px) rotate(-2deg); } to { opacity: 1; transform: none; } }
.rcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rcard-text { flex: 1; margin: 14px 0 8px; font-size: 1.45rem; font-weight: 720; line-height: 1.3; overflow-wrap: anywhere; display: flex; align-items: center; }
.rcard-note { margin: 0 0 6px; color: var(--ink-2); font-size: .95rem; white-space: pre-line; }
.rcard-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.toggle.on.fav { background: color-mix(in srgb, var(--gold) 20%, var(--surface)); color: var(--gold-ink); }
.rnd-controls { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.rnd-controls .rnd-next { flex: 1; }
.rnd-controls .round-btn { flex: none; }

/* ---------- Rückblick ---------- */
.period-nav { display: flex; align-items: center; gap: 6px; margin: 10px 0 2px; }
.period-nav h2 { flex: 1; margin: 0; text-align: center; font-size: 1.08rem; font-weight: 720; }
.period-nav .icon-btn:disabled { opacity: .3; cursor: default; }
.period-nav .icon-btn:last-child svg { transform: none; }
.review-summary { margin: 10px 2px 4px; font-size: 1.02rem; color: var(--ink-2); }
.idea-list.flat { border: 0; box-shadow: none; margin: 0 -14px -6px; border-radius: 0; background: none; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 2px 8px; }
.archive .archive-text { display: block; width: 100%; margin: 6px 0 10px; padding: 0; border: 0; background: none; text-align: left; color: var(--ink); font-size: 1.12rem; font-weight: 650; line-height: 1.35; }
.archive .row-btns { align-items: center; justify-content: space-between; }
.archive .more-link { margin-top: 0; }

/* ---------- Toasts & Blüte ---------- */
#toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
body.has-sheet #toasts { bottom: calc(var(--safe-b) + 16px); }
.toast { display: flex; align-items: center; gap: 14px; max-width: 520px; padding: 12px 14px 12px 16px; border-radius: 16px; background: var(--toast-bg); color: var(--toast-ink); box-shadow: var(--shadow-lg); font-size: .93rem; pointer-events: auto; opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; }
.toast.in { opacity: 1; transform: none; }
.toast button { border: 0; background: none; color: var(--toast-action); font-weight: 750; padding: 4px 2px; white-space: nowrap; }
.bloom { position: fixed; left: 50%; top: 42%; z-index: 250; pointer-events: none; }
.bloom i { position: absolute; width: 12px; height: 20px; margin: -10px 0 0 -6px; border-radius: 50%; background: var(--accent); opacity: 0; animation: petal 1.1s cubic-bezier(.15, .7, .3, 1) forwards; }
.bloom i:nth-child(3n) { background: var(--gold); }
.bloom i:nth-child(4n) { background: var(--heat-2); }
@keyframes petal {
  0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(.4); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 60px)) rotate(var(--r)) scale(1); }
}

.boot { display: grid; place-items: center; min-height: 60dvh; color: var(--muted); }

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