:root { --bg: #2D2A2A; --paper: #ECE8E8; --lav: #C3B2D1; --violet: #5A466A; --deep: #3A2B46; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: "Poppins",Arial,system-ui,sans-serif; -webkit-font-smoothing: antialiased; }
body { background: #DFDDDE; color: var(--paper); display: flex; align-items: center; justify-content: center; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #9abef9; outline-offset: 3px; }
.app {
  --primary-action-height: 53px;
  --primary-action-inset: max(19px, env(safe-area-inset-bottom, 0px));
  --selection-top: 68px;
  --selection-width: min(88%, 360px);
  position: relative; background: var(--bg); width: min(100%,430px); height: min(900px,100dvh); min-height: 650px; overflow: hidden; display: flex; flex-direction: column; isolation: isolate;
}
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 25px 5px; flex-shrink: 0; z-index: 5; }
.brand { font-family: "Poppins",Arial,system-ui,sans-serif; font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -2px; color: var(--lav); text-decoration: none; }
.icon-btn { border: 0; background: transparent; color: var(--lav); display: grid; place-items: center; width: 43px; height: 43px; padding: 5px; }
.hamb-lines { width: 28px; display: grid; gap: 5px; }
.hamb-lines i { height: 3px; background: var(--lav); border-radius: 3px; }
.close-pill { font-weight: 600; }
.body { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .body.page-enter { animation: page-enter 220ms cubic-bezier(.2,.7,.25,1); }
  @keyframes page-enter {
    from { opacity: .72; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
}
.home { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.headline { font-size: clamp(27px,7vw,37px); font-weight: 300; line-height: 1.16; letter-spacing: -.65px; margin: 15px 27px 6px; }
.headline u { text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.cloud { flex: 1; min-height: 270px; position: relative; touch-action: pan-y; overflow: hidden; }
.bubble { position: absolute; transform: translate(-50%,-50%); border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; white-space: normal; touch-action: none; user-select: none; -webkit-user-select: none; padding: 6px; letter-spacing: -.3px; transition: transform .16s ease; cursor: pointer; line-height: 1.1; font-weight: 700; border: 0; }
.bubble:active { filter: brightness(.97); }
.bubble span { pointer-events: none; overflow-wrap: anywhere; max-width: 100%; }
.bubble.dragging { z-index: 3; }
.bubble.released { animation: water-release .47s ease-out; }
.bubble.dragging span { font-weight: 700; }
@keyframes water-release {
  0% { transform: translate(-50%,-50%) scale(1.014,.987); }
  40% { transform: translate(-50%,-50%) scale(.992,1.008); }
  75% { transform: translate(-50%,-50%) scale(1.002,.999); }
  100% { transform: translate(-50%,-50%) scale(1,1); }
}
.drag-hint { position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); background: var(--paper); color: var(--violet); font-size: 12px; font-weight: 700; padding: 7px 11px; border-radius: 24px; z-index: 6; white-space: nowrap; pointer-events: none; }
.home-extra ~ .gesture-hint { bottom: 54px; }
@media (prefers-reduced-motion:reduce) {
  .bubble { animation: none !important; transition: none !important; }
}
.cta { background: var(--paper); border: 0; color: var(--violet); border-radius: 99px; padding: 15px 18px; text-align: center; font-weight: 800; font-size: 22px; min-height: 62px; transition: background .16s; }
.cta:disabled { background: #555151; color: #2F2B2B; cursor: default; }
.cta-bar { margin: 3px 40px 0; flex-shrink: 0; }
.capture-area { flex-shrink: 0; margin: 22px 14px 18px; min-height: 153px; position: relative; }
.capture-card { background: var(--violet); border-radius: 18px; padding: 19px 23px 26px; min-height: 151px; }
.capture-card h3 { font-size: 20px; font-weight: 800; margin: 0 0 9px; }
.capture-card p { font-size: 13px; line-height: 1.45; margin: 0 0 18px; }
.capture-entry { border: 0; width: 100%; height: 40px; border-radius: 99px; background: var(--deep); color: #B7A7C2; text-align: left; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.capture-entry span { font-size: 12px; }
.capture-entry svg { flex-shrink: 0; }
.screen { height: 100%; overflow-y: auto; scrollbar-width: thin; padding: 11px 25px 24px; display: flex; flex-direction: column; }
.screen h1 { font-weight: 800; letter-spacing: -.7px; font-size: 29px; margin: 18px 0 12px; }
.screen .sub { font-size: 13px; line-height: 1.45; margin: 0 0 26px; max-width: 320px; }
.label { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.field { display: block; width: 100%; border: 0; background: var(--paper); color: var(--deep); border-radius: 40px; padding: 15px 20px; margin-bottom: 20px; font-size: 15px; }
.field::placeholder { color: #9B959A; }
.field.notes { height: 145px; border-radius: 26px; resize: vertical; line-height: 1.45; }
.form-actions { margin-top: auto; padding-top: 14px; }
.screen .cta { width: 100%; font-size: 20px; }
.form-screen .capture-card { margin-top: 32px; border-radius: 18px; min-height: 130px; flex-shrink: 0; }
.small-note { font-size: 12px; opacity: .85; line-height: 1.45; }
.subtle-btn { background: transparent; border: 1px solid #86778F; color: var(--paper); border-radius: 22px; padding: 8px 12px; font-size: 12px; }
.bubble-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 16px; justify-items: center; padding: 15px 0 28px; }
.project-entry { display: flex; align-items: center; flex-direction: column; gap: 8px; width: 100%; border: 0; color: var(--paper); background: transparent; }
.project-dot { width: min(34vw,145px); height: min(34vw,145px); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; white-space: normal; line-height: 1.1; padding: 14px; text-align: center; }
.project-entry small { font-size: 12px; color: #CEC5D0; }
.section-link { background: var(--violet); color: var(--paper); border: 0; border-radius: 22px; padding: 16px; font-weight: 700; margin: 10px 0; min-height: 50px; }
.low-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; background: var(--violet); border-radius: 15px; margin-top: auto; }
.low-nav span { font-size: 13px; font-weight: 700; }
.low-nav button { background: var(--paper); color: var(--violet); font-size: 12px; font-weight: 800; border-radius: 20px; border: 0; padding: 10px 13px; }
.project-head { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; }
.color-dot { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;  margin-top: 7px;}
.project-head h1 { margin: 0; }
.task-list { display: flex; flex-direction: column; gap: 10px; margin: 27px 0 22px; }
.task-row { background: var(--paper); color: var(--deep); border-radius: 24px; padding: 16px; display: flex; align-items: center; gap: 12px; min-height: 64px; }
.task-row.done { opacity: .57; }
.task-row.done .task-name { text-decoration: line-through; }
.task-row input[type=checkbox] { appearance: none; flex-shrink: 0; width: 25px; height: 25px; border: 2px solid var(--violet); border-radius: 50%; background: transparent; display: grid; place-items: center; margin: 0; cursor: pointer; }
.task-row input:checked { background: var(--violet); }
.task-row input:checked:after { content: "✓"; color: #fff; font-size: 15px; }
.task-name { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.focus-title { font-size: 38px !important; margin-top: 22px !important; }
.focus-screen .sub { font-size: 17px; margin-bottom: 6px; }
.focus-actions { display: flex; gap: 10px; margin-top: auto; }
.focus-actions button { flex: 1; background: var(--paper); color: var(--violet); border: 0; border-radius: 99px; padding: 15px 12px; font-size: 16px; font-weight: 800; }
.focus-actions .secondary { background: var(--violet); color: var(--paper); }
.focus-capture { background: var(--deep); color: var(--paper); padding: 12px 16px; border-radius: 14px; border: 0; width: 100%; font-size: 13px; text-align: left; margin-top: 10px; flex-shrink: 0; }
/* Edit-Screen benutzt dieselben Formelemente und Farben wie "Neue Aufgabe". */
.edit-screen .edit-label{display:block;font-size:13px;font-weight:600;margin:4px 0 9px;color:var(--paper)}
.edit-screen .edit-color-palette{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:center;justify-items:center;justify-content:space-between;gap:3px;padding:12px;background:var(--paper);border-radius:22px;margin:0 0 12px}
.edit-screen .edit-color-swatch{display:grid;place-items:center;width:min(100%,46px);height:auto;aspect-ratio:1;min-width:0;border-radius:50%;border:3px solid transparent;background:transparent;padding:2px;cursor:pointer}
.edit-screen .edit-color-swatch[aria-pressed="true"]{border-color:var(--deep)}
.edit-screen .edit-color-swatch > span{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;border:1px solid rgba(58,43,70,.12)}
.edit-screen .edit-color-swatch svg{width:19px;height:19px;stroke:#3A2B46;stroke-width:2.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.edit-screen .edit-hint{font-size:11px;line-height:1.45;color:var(--lav);margin:0 0 8px}
.edit-screen #edit-form{display:flex;flex-direction:column;flex:0 0 auto;min-height:0}
.edit-screen .edit-actions{margin-top:12px;padding-top:16px;display:flex;flex-direction:column;gap:10px}
.edit-screen .edit-cancel{border:0;background:transparent;color:var(--lav);font-size:13px;font-weight:600;padding:10px}
@media(max-width:360px){.edit-screen .edit-color-palette{padding:8px;gap:1px}}

.scrim { position: absolute; inset: 0; background: rgba(15,12,16,.68); z-index: 8; }
.capture-overlay { position: absolute; inset: 0; background: rgba(22,18,24,.75); z-index: 12; display: flex; align-items: flex-end; }
.idea-sheet { margin: 0 14px 18px; width: calc(100% - 28px); background: var(--violet); border-radius: 19px; padding: 20px 22px 24px; animation: slidein .22s ease-out; }
.idea-sheet h2 { margin: 0 0 7px; font-size: 25px; }
.idea-sheet p { font-size: 13px; margin: 0 0 15px; line-height: 1.4; }
.idea-sheet textarea { width: 100%; min-height: 105px; border: 0; background: var(--deep); color: var(--paper); border-radius: 18px; padding: 15px; resize: vertical; font-size: 16px; outline-offset: 2px; }
.idea-sheet textarea::placeholder { color: #BDAFC5; }
.idea-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 10px; }
.idea-bottom .cta { font-size: 14px; min-height: 43px; flex: 1; padding: 10px; }
.idea-cancel { background: transparent; border: 1px solid #D3C2DD; color: var(--paper); padding: 10px 12px; border-radius: 99px; font-size: 13px; }
.idea-count { color: #D5C9DB; font-size: 11px; margin-top: 8px; }
@keyframes slidein {
  from { transform: translateY(14px); opacity: .6; }
  to { transform: translateY(0); opacity: 1; }
}
.toast { position: absolute; z-index: 20; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--paper); color: var(--violet); border-radius: 99px; font-size: 13px; font-weight: 700; padding: 13px 17px; white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis; }
.ideas-list { display: flex; flex-direction: column; gap: 11px; padding-bottom: 20px; }
.idea-item { background: var(--violet); border-radius: 17px; padding: 16px; line-height: 1.4; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.idea-item small { display: block; margin-top: 8px; color: #D6C9DD; font-size: 11px; }
.empty { padding: 50px 12px; text-align: center; color: #C3B2D1; font-size: 15px; line-height: 1.5; }
.category-select { position: relative; margin: 0 0 22px; }
.category-trigger { border: 0; background: var(--paper); border-radius: 14px; padding: 10px 13px; width: 100%; min-height: 53px; display: flex; align-items: center; gap: 11px; text-align: left; color: var(--deep); font-size: 13px; }
.category-trigger strong { font-weight: 600; flex: 1; }
.category-swatch { width: 24px; height: 24px; border-radius: 7px; background: var(--paper); border: 1px solid rgba(58,43,70,.1); flex-shrink: 0; }
.category-trigger .chevron { font-size: 25px; font-weight: 400; line-height: 1; color: var(--violet); }
.category-options[hidden] { display: none !important; }
.category-options { position: relative; z-index: 3; margin-top: 7px; background: var(--paper); padding: 6px; border-radius: 14px; display: grid; gap: 3px; color: var(--deep); }
.category-helper { color: var(--lav); font-size: 11px; margin: 7px 2px 0; }
.bubble { will-change: left,top,width,height; }
.bubble.returning { animation: plopp-back .52s cubic-bezier(.22,.8,.24,1) both; }
@keyframes plopp-back {
  0% { transform: translate(-50%,-50%) scale(.3); opacity: .1; }
  55% { transform: translate(-50%,-50%) scale(1.08); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}
.open-return { display: inline-block; margin-top: 3px; color: var(--lav); font-weight: 700; font-size: 12px; }
.open-screen .open-detail { white-space: normal; line-height: 1.35; }
.open-screen .sub { margin-bottom: 14px; }
.open-meta { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; color: #C3B2D1; font-size: 12px; font-weight: 600; }
.open-list { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; padding-bottom: 18px; }
.open-item { display: flex; width: 100%; gap: 13px; align-items: center; text-align: left; border: 0; border-radius: 18px; background: #3A333D; color: #ECE8E8; padding: 12px 14px; min-height: 75px; cursor: pointer; transition: background .15s ease; }
.open-item:active { background: #493B50; }
.open-dot { border-radius: 50%; flex-shrink: 0; width: var(--dot-size); height: var(--dot-size); display: flex; align-items: center; justify-content: center; color: var(--dot-text); }
.open-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.open-name { font-weight: 700; font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
.open-detail { font-size: 11px; color: #CFC5D2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.open-empty { padding: 34px 20px; border-radius: 20px; background: #3A2B46; text-align: center; color: #ECE8E8; font-size: 15px; line-height: 1.55; }
.open-project-link { border: 1px solid #7C6989; background: transparent; color: #ECE8E8; min-height: 46px; border-radius: 99px; font-size: 12px; font-weight: 600; margin: 4px 0 22px; }
@media (min-width:600px) {
  .app { border: 1px solid #484149; }
  .brand { font-size: 35px; }
}
@media (max-height:760px) {
  .topbar { padding-top: 13px; }
  .headline { margin-top: 9px; }
  .cloud { min-height: 220px; }
  .capture-area { margin-top: 15px; min-height: 125px; margin-bottom: 12px; }
  .capture-card { min-height: 125px; padding-top: 14px; }
  .capture-card p { margin-bottom: 10px; }
  .cta-bar { margin-top: 0; }
  .screen { padding-top: 3px; }
  .screen .sub { margin-bottom: 17px; }
}
@media (max-height:650px) {
  .app { min-height: 0; }
  .cloud { min-height: 180px; }
  .capture-card { min-height: 115px; }
  .capture-area { min-height: 110px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *:before, *:after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
.project-screen .bubble-grid { gap: 14px 16px; padding: 12px 0 12px; }
.project-screen .project-dot { width: min(31vw,134px); height: min(31vw,134px); }
.project-screen .project-entry small { min-height: 17px; }
.resume-card { background: #3A2B46; border-radius: 19px; padding: 18px 17px 17px; margin: 13px 0 10px; display: flex; flex-direction: column; gap: 10px; }
.resume-kicker { font-size: 11px; font-weight: 700; letter-spacing: .09em; color: #C3B2D1; text-transform: uppercase; }
.resume-content { display: flex; align-items: center; gap: 12px; }
.resume-dot { width: 57px; height: 57px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 57px; font-weight: 800; font-size: 11px; line-height: 1.1; text-align: center; padding: 6px; }
.resume-text { min-width: 0; flex: 1; line-height: 1.35; }
.resume-text strong { display: block; font-size: 15px; margin-bottom: 3px; overflow-wrap: anywhere; }
.resume-text span { display: block; color: #D9CFE0; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.resume-go { align-self: stretch; border: 0; border-radius: 99px; background: #ECE8E8; color: #5A466A; padding: 11px 14px; font-weight: 800; font-size: 14px; }
.new-project-link { align-self: center; border: 0; background: transparent; color: #C3B2D1; text-decoration: underline; text-underline-offset: 4px; font-size: 12px; padding: 9px 16px; margin-bottom: 12px; }
.project-screen .low-nav { margin-top: auto; flex-shrink: 0; }
.new-project-screen .color-palette { background: #ECE8E8; border-radius: 17px; margin-bottom: 20px; }
.new-project-screen input[type=radio]:checked + .color-swatch { outline: 3px solid #5A466A; }
.new-project-screen input[type=radio]:focus-visible + .color-swatch { outline: 3px solid #3D81E5; }
@media (max-height:760px) {
  .project-screen .project-dot { width: min(26vw,115px); height: min(26vw,115px); }
  .project-screen .bubble-grid { gap: 9px 10px; }
  .resume-card { margin-top: 7px; padding: 12px; }
  .resume-dot { width: 45px; height: 45px; flex-basis: 45px; }
}
.color-palette { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px; }
.color-option { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid transparent; border-radius: 50%; background: transparent; padding: 4px; cursor: pointer; flex: 0 0 auto; }
.color-swatch { display: block; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(58,43,70,.15); }
.color-option[aria-pressed="true"] { border-color: var(--deep); }
.color-option:focus-visible { outline: 2px solid #9abef9; outline-offset: 1px; }
.selection { position: absolute; inset: 0; z-index: 50; container-type: size;
  --selection-bottom: calc(var(--primary-action-height) + var(--primary-action-inset));
  --selection-clearance: 36px;
  --selection-height: 100dvh;
  background: rgba(22, 19, 23, .72);
  pointer-events: none; }
@supports (height: 1cqh) {
  .selection { --selection-height: 100cqh; }
}
.selection-dim { position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; background: transparent; pointer-events: auto; }
.selection-stage { position: absolute; z-index: 2;
  top: calc(50% + (var(--selection-top) - var(--selection-bottom)) / 2);
  left: var(--selection-center, 50%);
  width: min(var(--selection-width), calc(var(--selection-height) - var(--selection-top) - var(--selection-bottom) - 2 * var(--selection-clearance)));
  aspect-ratio: 1;
  transform: translate(-50%, -50%); overflow: visible;
  isolation: isolate; pointer-events: none; }
.selection-bubble { position: relative; width: 100%; height: 100%; border-radius: 50%;
  display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; padding: 32px;
  border:0; appearance:none; -webkit-appearance:none; font:inherit;
  cursor:pointer; pointer-events:auto; touch-action:manipulation;
  --preview-title-lines: 3;
  --preview-note-lines: 3;
}
.selection-bubble:focus-visible { outline: 3px solid #fff; outline-offset: 6px; }
.selection.is-parking .selection-bubble,
.selection.is-bursting .selection-bubble { pointer-events:none; }
.selection-bubble .selection-title, .selection-bubble .selection-note {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}
.selection-bubble .selection-title {
  font-size: 29px; line-height: 1.08; margin: 0 0 15px; font-weight: 700;
  -webkit-line-clamp: var(--preview-title-lines); line-clamp: var(--preview-title-lines);
}
.selection-bubble .selection-note {
  margin: 0; font-size: 12px; line-height: 1.4; max-width: 205px;
  -webkit-line-clamp: var(--preview-note-lines); line-clamp: var(--preview-note-lines);
}
@media (max-height: 520px) {
  .selection-bubble { --preview-title-lines: 2; --preview-note-lines: 2; }
}
.selection-edit, .selection-park, .selection-complete { position: absolute; z-index: 5;
  --selection-action-size: calc(var(--top-close-size) + 8px);
  width: var(--selection-action-size); height: var(--selection-action-size);
  border: 0; border-radius: 50%; padding: 0;
  display: grid; place-items: center; pointer-events: auto;
  box-shadow: none; }
.selection-edit { left: -10px; right: auto; top: auto; bottom: 0; background: var(--paper); color: var(--deep); }
.selection-edit svg { width: 23px; height: 23px; }
.selection-park { right: 46px; top: -30px; background: var(--lav); color: var(--deep); }
.selection-park svg { width: 27px; height: 27px; }
.selection-complete { right: -4px; top: 8px; background: var(--paper); color: #84A100; font-size: 30px; font-weight: 800; }
.selection.is-parking .selection-global-close, .selection.is-bursting .selection-global-close, .selection-stage.is-parking .selection-edit, .selection-stage.is-parking .selection-park, .selection-stage.is-parking .selection-complete, .selection-stage.is-bursting .selection-edit, .selection-stage.is-bursting .selection-park, .selection-stage.is-bursting .selection-complete { opacity: 0; pointer-events: none; }
.app:has(.selection) .cta-bar, .app:has(.selection) .capture-area { position: relative; z-index: 51; }
.selection-stage .burst-layer { position: absolute; inset: 0; z-index: 8; overflow: visible; pointer-events: none; transform: scale(1.08); }
.burst-shard { position: absolute; inset: 0; border-radius: 50%; will-change: transform, opacity; }
.burst-drop { position: absolute; border-radius: 55% 45% 60% 40%; will-change: transform, opacity; }
.burst-ripple { position: absolute; inset: 0; border: 5px solid; border-radius: 50%; opacity: 0; will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) {
  .selection-stage .burst-layer { transform: none; }
}
/* Keep the header above the bubble selection overlay. */
.app:has(.selection) .topbar { position: relative; z-index: 51; }
.app:has(.selection) .topbar .icon-btn { opacity: 0; pointer-events: none; }


/* Gemeinsame Gestaltung und Position der oberen Schließen-Buttons */
:root{
  --top-close-size: 48px;
  --top-close-top: 12px;
  --top-close-right: 18px;
  --top-close-icon: 25px;
}
.top-close{
  position:absolute !important;
  top:var(--top-close-top) !important;
  right:var(--top-close-right) !important;
  width:var(--top-close-size) !important;
  height:var(--top-close-size) !important;
  min-width:var(--top-close-size) !important;
  min-height:var(--top-close-size) !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:50% !important;
  display:grid !important;
  place-items:center !important;
  box-sizing:border-box !important;
  background:var(--lav) !important;
  color:var(--violet) !important;
  font-family:Arial,sans-serif;
  font-size:0 !important;
  line-height:1 !important;
  box-shadow:none !important;
}
.top-close svg{
  width:var(--top-close-icon) !important;
  height:var(--top-close-icon) !important;
  display:block !important;
  flex:0 0 auto !important;
}
.topbar .top-close{z-index:7}
.menu-close{z-index:11}
.selection .top-close{z-index:4;pointer-events:auto}

.focus-back{display:inline-flex;align-items:center;justify-content:center;gap:2px;flex:0 0 auto;min-height:44px;padding:6px 15px 6px 10px;border:1px solid #766581;border-radius:99px;background:transparent;color:var(--paper);font-size:12px;font-weight:600}
.focus-back svg{flex:0 0 auto}


/* ===== Desktop 27: eigener Arbeitsraum, mobiles Layout bleibt erhalten. ===== */
.desktop-nav,.desktop-rail{display:none}
@media (min-width:1024px){
  html,body{height:100%;min-height:650px}
  body{background:#242125;overflow:hidden;padding:18px}
  .app{
    --desktop-header-height:86px;
    --nav-width:234px;
    --rail-width:310px;
    --primary-action-height:61px;
    --primary-action-inset:30px;
    --selection-top:var(--desktop-header-height);
    --selection-center:calc((100% + var(--nav-width) - var(--rail-width)) / 2);
    --selection-width:min(calc(100% - var(--nav-width) - var(--rail-width) - 24px),64dvh,740px);
    width:min(100%,1540px);height:min(100%,980px);min-height:630px;
    display:grid;grid-template-columns:var(--nav-width) minmax(0,1fr) var(--rail-width);
    grid-template-rows:var(--desktop-header-height) minmax(0,1fr);border-radius:22px;border:1px solid #464047;
    box-shadow:0 28px 70px rgba(0,0,0,.18);
  }
  .topbar{grid-area:1/1/2/4;display:flex;align-items:center;padding:18px 32px 16px;
    border-bottom:1px solid rgba(195,178,209,.13);background:#302C30;min-width:0}
  .brand{font-size:39px;letter-spacing:-2.5px}
  .topbar .icon-btn:not(.top-close){display:none}
  .topbar .close-pill{display:none!important}
  .desktop-nav{display:flex;flex-direction:column;grid-area:2/1/3/2;min-height:0;
    padding:38px 17px 22px 21px;border-right:1px solid rgba(195,178,209,.11);background:#302C30}
  .desktop-nav-kicker,.rail-label,.nav-mini-title{font-size:10px;font-weight:700;letter-spacing:.15em;color:#B9A8C3}
  .desktop-nav-links{display:flex;flex-direction:column;gap:7px;margin-top:23px}
  .desktop-nav-link{display:flex;align-items:center;gap:13px;width:100%;border:0;border-radius:15px;padding:13px 15px;
    background:transparent;color:#C7BDC8;text-align:left;font-size:13px;font-weight:600;transition:background .16s,color .16s}
  .desktop-nav-link svg{width:21px;height:21px;flex-shrink:0}
  .desktop-nav-link span{flex:1}
  .desktop-nav-link small{font-size:11px;min-width:20px;min-height:20px;padding:1px 5px;border-radius:7px;background:#504458;text-align:center;color:#F0EAF3}
  .desktop-nav-link:hover,.desktop-nav-link.is-current{background:#5A466A;color:#F4EDF8}
  .desktop-new{background:var(--paper);color:var(--violet);border:0;border-radius:99px;padding:14px 13px;
    display:flex;gap:11px;align-items:center;justify-content:center;font-weight:800;font-size:13px;margin-top:26px}
  .desktop-plus{font-size:24px;font-weight:400;line-height:17px}
  .desktop-nav-bottom{margin-top:auto;border-top:1px solid #514752;padding:22px 7px 0}
  .desktop-nav-bottom p{font-size:13px;line-height:1.65;color:#DED5DF;margin:10px 0}
  .desktop-nav-bottom strong{color:var(--paper)}
  .desktop-nav-bottom .nav-footnote{font-size:11px;color:#BBAFC1;line-height:1.9;margin-top:17px}
  .body{grid-area:2/2/3/3;min-width:0;min-height:0;position:relative;overflow:hidden}
  .home{min-width:0;min-height:0}
  .headline{font-size:clamp(35px,3.4vw,54px);letter-spacing:-1.1px;margin:34px 48px 3px;line-height:1.14}
  .cloud{min-height:260px;margin:0 14px;overflow:hidden}
  .cta-bar{width:min(66%,490px);margin:2px auto var(--primary-action-inset);min-height:var(--primary-action-height);line-height:1.25}
  .capture-area{display:none}
  .desktop-rail{display:flex;flex-direction:column;grid-area:2/3/3/4;min-width:0;min-height:0;padding:39px 22px 25px;
    background:#302C30;border-left:1px solid rgba(195,178,209,.11);overflow-y:auto}
  .desktop-rail .capture-card{margin-top:18px;border-radius:21px;padding:23px 20px;min-height:224px}
  .desktop-rail .capture-card h3{font-size:24px;line-height:1.25;margin-bottom:14px}
  .desktop-rail .capture-card p{font-size:12px;line-height:1.6;margin-bottom:25px}
  .desktop-rail .capture-entry{height:47px}
  .rail-foot{margin-top:auto;padding-top:28px;display:flex;gap:12px;align-items:center}
  .rail-foot-dot{width:12px;height:12px;border-radius:50%;background:#C3B2D1;flex-shrink:0}
  .rail-foot p{font-size:12px;line-height:1.7;color:#BFB2C4;margin:0}
  .rail-foot strong{color:#E8DDEA}
  /* Die Hauptinhalte werden auf Desktop nicht künstlich auf Telefonbreite gehalten. */
  .screen{max-width:860px;width:100%;margin:0 auto;padding:38px 52px 42px;min-height:0;overflow-y:auto}
  .screen h1{font-size:37px;margin:12px 0 16px}
  .screen .sub{font-size:15px;max-width:540px;margin-bottom:28px}
  .form-screen form,.edit-screen form,.new-project-screen form{width:min(100%,660px)}
  .form-screen .capture-card,.edit-screen .capture-card,.low-nav{display:none!important}
  .field{max-width:660px}
  .form-actions{padding-top:20px}
  .screen .cta{max-width:660px}
  .project-screen .bubble-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:10px 0 8px}
  .project-screen .project-dot{width:min(12vw,128px);height:min(12vw,128px)}
  .resume-card{max-width:660px}
  .project-screen .new-project-link{margin-bottom:20px}
  .open-screen .open-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start;flex:initial}
  .open-screen .open-item{min-height:95px}
  .ideas-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}
  .focus-screen{max-width:100%;}
  .focus-screen .task-list{max-width:710px}
  .focus-actions{margin-top:auto;max-width:710px;width:100%}
  .focus-screen .focus-capture{display:none}
  /* Die Auswahl bleibt unter der durchgehenden Desktop-Kopfzeile. */
  .selection{z-index:50}
  .app:not(.bubble-fullscreen) .selection .fullscreen-enter{display:none}
  .app:not(.bubble-fullscreen) .selection-global-close{--top-close-top:calc(var(--desktop-header-height) + 16px)}
  .app:has(.selection) .desktop-nav,.app:has(.selection) .desktop-rail{position:relative;z-index:1}
  /* CTA bleibt im Auswahlzustand vor der Abdunklung und klickbar. */
  .app:has(.selection) .cta-bar{position:relative;z-index:52;pointer-events:auto}
  .app:has(.selection) .capture-area{display:none}
  .top-close{--top-close-top:20px;--top-close-right:32px}
  .capture-overlay{z-index:60;align-items:center;justify-content:center}
  .idea-sheet{max-width:520px;margin:0;border-radius:25px;padding:31px}
}
@media (min-width:1024px) and (max-height:780px){
  .app{--primary-action-inset:19px;--primary-action-height:52px}
  .headline{margin-top:24px;font-size:clamp(34px,3vw,45px)}
  .cta-bar{font-size:18px}
  .desktop-rail,.desktop-nav{padding-top:22px}
  .desktop-rail .capture-card{min-height:190px}
}
@media (max-width:1023px){
  .app{display:flex}
}


/* V28: fullscreen desktop without outer frame */
@media (min-width:1024px){
  html,body{height:100%;min-height:100%;margin:0 !important}
  body{background:#242125 !important;overflow:hidden;padding:0 !important;align-items:stretch !important;justify-content:stretch !important}
  .app{
    width:100vw !important;
    height:100vh !important;
    min-height:100vh !important;
    max-width:none !important;
    border-radius:0 !important;
    margin:0 !important;
    box-shadow:none !important;
  }
}


/* V31 — Erledigt: ruhiger Rückblick, bewusst getrennt vom Fokusraum */
.done-screen{gap:0}
.done-kicker{font-size:10px;color:var(--lav);letter-spacing:.15em;font-weight:800}
.done-heading h1{margin:10px 0 6px;font-size:36px;letter-spacing:-1px}
.done-heading .sub{margin-bottom:20px;color:#D9CFDC}
.done-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:19px}
.done-filters{display:flex;gap:3px;padding:4px;border:1px solid #5A4C60;border-radius:99px;background:#39313B}
.done-filter{border:0;border-radius:99px;background:transparent;color:#CEBED6;font-size:12px;font-weight:700;padding:9px 14px;min-height:36px;white-space:nowrap}
.done-filter.is-active{background:var(--lav);color:var(--deep)}
.done-count{color:#C3B2D1;font-size:12px;font-weight:600}
.done-history{display:flex;flex-direction:column;gap:27px;min-height:0;padding-bottom:18px}
.done-day h2{font-size:13px;color:var(--lav);font-weight:700;margin:0 0 11px}
.done-grid{display:flex;flex-direction:column;gap:10px}
.done-item{display:flex;align-items:center;gap:12px;background:#393339;border:1px solid rgba(195,178,209,.12);border-radius:18px;padding:14px;min-height:88px}
.done-dot{flex:0 0 42px;width:42px;height:42px;border-radius:50%;display:grid;place-items:center}
.done-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.done-copy strong{font-size:14px;line-height:1.25;font-weight:750;overflow-wrap:anywhere}
.done-description{font-size:11px;line-height:1.4;color:#D1C6D4;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.done-copy small{color:#AE9DB5;font-size:10px;white-space:normal}
.done-restore{flex:0 0 auto;border:1px solid #766783;background:transparent;color:#E8DDEA;border-radius:99px;padding:10px 12px;min-height:38px;font-size:11px;font-weight:700;white-space:nowrap}
.done-restore:hover{background:#4D4154}
.done-back{align-self:flex-start;border:0;background:transparent;color:var(--lav);font-size:12px;padding:12px 0;font-weight:700;min-height:40px;margin-top:auto}
.done-empty{padding:40px 22px;border-radius:20px;border:1px dashed #65546B;text-align:center;display:flex;flex-direction:column;align-items:center;gap:9px;color:var(--paper)}
.done-empty-icon{display:grid;place-items:center;width:54px;height:54px;background:var(--lav);color:var(--deep);border-radius:50%;font-weight:800;font-size:29px;margin-bottom:4px}
.done-empty strong{font-size:16px}
.done-empty p{font-size:12px;line-height:1.5;color:#C9B9CE;max-width:280px;margin:0}
@media (min-width:1024px){
  .done-screen{max-width:1040px}
  .done-heading h1{font-size:43px}
  .done-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .done-item{min-width:0;min-height:102px;padding:16px}
}
@media (max-width:390px){
  .done-item{gap:10px;padding:12px}
  .done-dot{width:36px;height:36px;flex-basis:36px}
  .done-restore{padding:9px 10px;font-size:10px}
}


/* V32 — Leise Gamification: sichtbar, aber nie aufdringlich. */
.topbar .level-chip{display:flex;align-items:center;gap:7px;margin-left:auto;margin-right:12px;
  border:1px solid rgba(195,178,209,.35);background:#39313D;color:#E6DAEB;border-radius:99px;
  min-height:36px;padding:5px 10px 5px 6px;font-size:11px;font-weight:750;line-height:1;white-space:nowrap}
.level-chip .level-mini{height:25px;width:25px;flex:0 0 25px;border-radius:50%;background:var(--lav);
  color:var(--deep);display:grid;place-items:center;font-size:12px;font-weight:800}
.level-chip-content{display:grid;gap:4px;text-align:left}
.level-chip-track{display:block;width:47px;height:3px;background:#6C5A72;border-radius:99px;overflow:hidden}
.level-chip-fill{display:block;height:100%;background:#D8C4E4;border-radius:99px;transition:width .25s ease}
.level-screen{gap:0}
.level-screen .level-intro{margin:0 0 12px;color:#D5C9DC;font-size:13px;line-height:1.55}
.level-hero{position:relative;display:flex;align-items:center;flex-direction:column;padding:12px 0 22px}
.level-ring-wrap{position:relative;width:196px;height:196px;display:grid;place-items:center}
.level-ring-wrap svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.level-ring-wrap svg .level-ring-base{stroke:#594A60;stroke-width:7;fill:none}
.level-ring-wrap svg .level-ring-progress{stroke:#E3D2EB;stroke-width:7;stroke-linecap:round;fill:none;transition:stroke-dashoffset .35s ease}
.level-orb{width:165px;height:165px;border-radius:50%;background:var(--lav);color:var(--deep);display:flex;flex-direction:column;
 align-items:center;justify-content:center;gap:2px}
.level-orb-kicker{font-size:11px;font-weight:750;letter-spacing:.13em;text-transform:uppercase}
.level-orb-number{font-size:60px;font-weight:800;line-height:1.05;letter-spacing:-4px}
.level-title{max-width:100%;font-size:19px;font-weight:800;margin:13px 0 4px;color:var(--paper);text-align:center;overflow-wrap:anywhere}
.level-subtitle{font-size:12px;color:var(--lav);margin:0;text-align:center}
.level-progress-card{background:#39333D;border:1px solid #58495D;border-radius:20px;padding:18px 20px;margin:0 0 15px}
.level-progress-header{display:flex;justify-content:space-between;align-items:center;gap:9px;font-weight:750;font-size:13px}
.level-progress-header small{color:var(--lav);font-size:11px;font-weight:550}
.level-progress-track{height:9px;background:#5A4B60;border-radius:99px;margin:14px 0 8px;overflow:hidden}
.level-progress-track>span{display:block;background:var(--lav);height:100%;border-radius:99px;transition:width .3s ease}
.level-progress-foot{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#CBBED1}
.level-stats{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-bottom:16px}
.level-stat{padding:16px;background:#403749;border-radius:17px;display:flex;flex-direction:column;gap:2px}
.level-stat strong{font-size:24px;color:#ECE8E8;font-weight:800}
.level-stat span{font-size:11px;color:#CBBED1}
.level-rules{padding:17px 19px 18px;border-radius:18px;border:1px solid #5B5061;color:#ECE8E8}
.level-rules h2{margin:0 0 9px;font-size:14px;font-weight:800}
.level-rules p{font-size:12px;line-height:1.65;margin:0;color:#D8CEDD}
.level-rules p+p{margin-top:8px}
.level-back{background:transparent;border:1px solid #7D6C84;border-radius:99px;color:var(--paper);font-size:12px;font-weight:700;min-height:44px;margin:22px 0 4px}
.level-up-toast{position:absolute;z-index:90;left:50%;top:16%;transform:translateX(-50%);
  width:min(86%,320px);padding:23px 22px 18px;border:1px solid rgba(255,255,255,.2);
  background:var(--lav);color:var(--deep);border-radius:25px;text-align:center;
  box-shadow:0 14px 50px rgba(0,0,0,.24);animation:level-plopp .45s cubic-bezier(.2,.8,.2,1) both}
.level-up-toast .plopp-mark{display:block;font-weight:850;font-size:13px;letter-spacing:.02em;margin-bottom:6px}
.level-up-toast strong{display:block;font-size:29px;letter-spacing:-1px}
.level-up-toast p{font-size:12px;line-height:1.5;margin:5px 0 14px}
.level-up-toast button{border:0;background:var(--deep);color:var(--paper);border-radius:99px;font-size:12px;font-weight:750;padding:10px 20px}
@keyframes level-plopp{0%{opacity:0;transform:translate(-50%,15px) scale(.8)}60%{opacity:1;transform:translate(-50%,0) scale(1.04)}100%{opacity:1;transform:translate(-50%,0) scale(1)}}
@media (max-width:359px){.topbar{padding-left:18px;padding-right:18px}.level-chip{margin-right:5px!important;padding-right:8px!important}.level-chip-track{width:32px}}
@media (min-width:1024px){.level-screen{max-width:760px}.level-hero{padding:14px 0 30px}
  .level-stats{max-width:100%}}
@media (prefers-reduced-motion: reduce){.level-up-toast{animation:none!important}}


/* V33 — Gedanken dürfen optional zu Aufgaben werden. */
.idea-item{display:flex;flex-direction:column;gap:10px}
.idea-item-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.idea-item .idea-origin{margin-top:0}
.idea-task-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:3px}
.idea-to-task{background:var(--paper);color:var(--violet);border:0;border-radius:999px;min-height:42px;padding:9px 15px;font-weight:750;font-size:12px;display:inline-flex;align-items:center;gap:6px}
.idea-task-created{display:inline-flex;align-items:center;gap:6px;color:#F1E9F4;font-size:12px;font-weight:600}
.idea-task-open{background:transparent;border:1px solid #C3B2D1;color:var(--paper);border-radius:999px;min-height:39px;padding:8px 13px;font-size:12px;font-weight:700}
.idea-source-banner{background:var(--violet);border-radius:15px;padding:13px 15px;margin:0 0 16px;font-size:12px;line-height:1.5;color:var(--paper)}
.idea-source-banner strong{display:block;font-size:13px;margin-bottom:3px}
.idea-back-btn{display:block;width:100%;margin-top:12px;padding:11px 16px;border:1px solid #8C7A96;border-radius:999px;background:transparent;color:var(--paper);font-size:13px;font-weight:650;text-align:center;min-height:44px}
@media(min-width:1024px){.idea-to-task:hover{background:#fff}.idea-task-open:hover{background:#6a527d}.idea-back-btn:hover{background:#433649}}



/* V38 – Nur meine Blasen. Die normale Ansicht bleibt unangetastet. */
.bubble span{max-width:74%;max-height:68%;overflow:hidden;line-height:1.13;}
.desktop-bubble-view{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:12px;padding:12px 16px;border-radius:999px;border:1px solid #766581;background:transparent;color:var(--lav);font-size:12px;font-weight:700;min-height:44px}
.desktop-bubble-view:hover{background:#413748}
.fullscreen-enter{position:absolute;z-index:4;bottom:var(--primary-action-inset);left:50%;transform:translateX(-50%);width:min(74%,440px);border:0;border-radius:999px;min-height:var(--primary-action-height);padding:12px 24px;background:var(--paper);color:var(--violet);font-size:19px;line-height:1.25;font-weight:800;pointer-events:auto}
.app.bubble-fullscreen .home{height:100%;min-height:0;display:flex;flex-direction:column}
.app.bubble-fullscreen .headline,
.app.bubble-fullscreen .cta-bar,
.app.bubble-fullscreen .capture-area,
.app.bubble-fullscreen .level-chip{display:none!important}
.app.bubble-fullscreen .cloud{flex:1;min-height:0;height:100%;margin:0 9px 14px;overflow:hidden;touch-action:none}
@media (min-width:1024px){
  .app.bubble-fullscreen{
    --desktop-header-height:80px;
    --primary-action-height:55px;
    --primary-action-inset:42px;
    --selection-center:50%;
    --selection-width:min(58%,68dvh,800px);
    grid-template-columns:minmax(0,1fr);
  }
  .app.bubble-fullscreen .topbar{grid-area:1/1/2/2;background:var(--bg);border:0;padding:16px 38px 11px}
  .app.bubble-fullscreen .topbar .icon-btn:not(.top-close){display:grid!important}
  .app.bubble-fullscreen .body{grid-area:2/1/3/2;min-width:0;min-height:0;overflow:hidden}
  .app.bubble-fullscreen .desktop-nav,.app.bubble-fullscreen .desktop-rail{display:none!important}
  .app.bubble-fullscreen .cloud{margin:0 32px 24px;min-height:0}
  .app.bubble-fullscreen:has(.selection) .topbar{background:transparent;pointer-events:none}
}
@media (max-width:1023px){
  .app.bubble-fullscreen{--topbar-content-height:43px;--topbar-padding-top:21px;--topbar-padding-bottom:9px}
  .app.bubble-fullscreen .topbar .icon-btn{display:grid}
  .app.bubble-fullscreen .cloud{margin:0 8px 18px}
}
@media (max-width:420px){
  .app.bubble-fullscreen{--topbar-padding-top:max(14px,env(safe-area-inset-top));--topbar-padding-bottom:6px}
  .app.bubble-fullscreen .cloud{margin:0 5px 12px}
}
@media (prefers-reduced-motion:reduce){.fullscreen-enter{animation:none!important}}

/* V39: Aufgaben erstellen, ohne die Bubble-Vollbildfläche zu verlassen */
.fullscreen-new-overlay{
  position:absolute;inset:0;z-index:80;display:grid;place-items:center;
  padding:16px;isolation:isolate;
}
.fullscreen-new-backdrop{
  position:absolute;inset:0;border:0;padding:0;margin:0;
  background:rgba(20,17,21,.78);cursor:default;
}
.fullscreen-new-dialog{
  position:relative;z-index:1;display:flex;flex-direction:column;
  width:min(100%,470px);max-height:calc(100% - 6px);min-height:0;
  overflow:hidden;padding:13px 9px 14px;
  background:#362a40;border:1px solid #675473;border-radius:27px;
  box-shadow:0 16px 60px rgba(0,0,0,.28);
}
.fullscreen-new-dialog .screen{
  max-width:none;width:100%;min-height:0;height:auto;max-height:100%;
  margin:0;padding:20px 17px 4px;overflow-y:auto;display:flex;flex-direction:column;
}
.fullscreen-new-dialog .screen h1{font-size:clamp(25px,6vw,31px);line-height:1.12;margin:4px 44px 11px 0}
.fullscreen-new-dialog .screen .sub{margin:0 25px 20px 0;max-width:100%}
.fullscreen-new-dialog .field{margin-bottom:13px;padding:13px 17px;font-size:15px}
.fullscreen-new-dialog .field.notes{height:99px;min-height:90px}
.fullscreen-new-dialog .category-select{margin-bottom:7px}
.fullscreen-new-dialog .form-actions{margin-top:8px;padding-top:0}
.fullscreen-new-dialog .form-actions .cta{min-height:51px;font-size:18px}
.fullscreen-new-dialog .form-screen>.capture-card{display:none!important}
.fullscreen-new-close{
  position:absolute;top:13px;right:13px;z-index:2;
  display:grid;place-items:center;width:41px;height:41px;
  padding:0;border:0;border-radius:50%;background:var(--lav);color:var(--deep);
}
.fullscreen-new-close svg{height:21px;width:21px}
.fullscreen-new-cancel{
  flex-shrink:0;align-self:center;min-height:40px;padding:7px 18px;
  margin-top:4px;border:0;background:transparent;color:var(--lav);
  font-size:13px;font-weight:600;
}
@media(max-width:430px){
  .fullscreen-new-overlay{padding:10px}
  .fullscreen-new-dialog{max-height:calc(100% - 5px);border-radius:23px}
  .fullscreen-new-dialog .screen{padding:22px 15px 0}
  .fullscreen-new-dialog .screen .sub{font-size:12px}
}
@media(max-height:650px){
  .fullscreen-new-overlay{padding:6px}
  .fullscreen-new-dialog{max-height:100%;padding-top:8px;padding-bottom:5px}
  .fullscreen-new-dialog .screen{padding-top:12px}
  .fullscreen-new-dialog .screen h1{margin-bottom:4px}
  .fullscreen-new-dialog .screen .sub{margin-bottom:10px}
  .fullscreen-new-dialog .field.notes{height:68px;min-height:68px}
}

/* V40 — Datei-Backups ohne Cloud-Abhängigkeit */
.backup-screen{gap:0;max-width:740px}
.backup-screen h1{font-size:clamp(29px,5vw,40px);margin:10px 0 7px}
.backup-intro{font-size:13px;line-height:1.65;color:#D5C9DA;margin:0 0 22px}
.backup-summary{display:flex;align-items:center;gap:11px;flex-wrap:wrap;margin-bottom:20px}
.backup-stat{padding:10px 13px;border-radius:13px;background:#43384A;display:flex;align-items:center;gap:8px;font-size:12px;color:#D8CADE}
.backup-stat strong{font-size:17px;color:var(--paper)}
.backup-panel{background:#403548;border:1px solid #65516B;border-radius:23px;padding:20px 19px;margin:0 0 15px}
.backup-panel h2{font-size:18px;margin:0 0 9px;font-weight:800;color:var(--paper)}
.backup-panel p{font-size:12px;line-height:1.65;color:#D9CCDE;margin:0 0 17px}
.backup-primary,.backup-secondary{display:flex;align-items:center;justify-content:center;gap:11px;width:100%;padding:13px 15px;min-height:52px;border-radius:999px;font-size:14px;font-weight:750;text-align:center;cursor:pointer}
.backup-primary{border:0;background:var(--paper);color:var(--deep)}
.backup-secondary{border:1px solid #BAA5C7;background:transparent;color:var(--paper)}
.backup-primary svg,.backup-secondary svg{width:20px;height:20px;flex-shrink:0}
.backup-file-input{position:absolute;opacity:0;width:1px;height:1px;overflow:hidden;pointer-events:none}
.backup-secondary:focus-within,.backup-file-input:focus-visible + .backup-secondary{outline:3px solid #9abef9;outline-offset:3px}
.backup-warning{background:#352E39;border:1px solid #665670;border-radius:17px;padding:14px 16px;margin-bottom:18px;color:#DCD0E0;font-size:12px;line-height:1.6}
.backup-warning strong{display:block;color:var(--paper);margin-bottom:3px}
.backup-return{align-self:flex-start;border:0;background:transparent;color:var(--lav);font-weight:700;font-size:12px;min-height:44px;padding:10px 0;margin-top:auto}
@media(min-width:1024px){.backup-screen{padding-top:36px}.backup-summary{margin-bottom:24px}}
@media(max-width:360px){.backup-panel{padding:18px 15px}.backup-primary,.backup-secondary{font-size:12px}}


/* Menütraube mit zeitversetzt animierten Schaltflächen */
.menu-items,.app.bubble-fullscreen .menu-items{
  position:absolute;z-index:9;width:190px;height:258px;top:14px;right:50px;pointer-events:none;
}
.menu-disc{
  position:absolute;border:0;background:var(--lav);color:var(--violet);font-weight:700;
  padding:0;box-sizing:border-box;border-radius:50%;display:grid;place-items:center;justify-content:center;
  box-shadow:none;pointer-events:auto;transition:filter .14s ease;
  transform-origin:center;
  animation:plopp-grape-in .34s cubic-bezier(.23,.82,.21,1) backwards;
  animation-delay:var(--delay,0ms);
}
.menu-disc:active{transform:scale(.94)}
.menu-disc:hover{filter:brightness(1.08)}
.menu-disc:focus-visible{outline:3px solid #fff;outline-offset:3px}
.menu-add{right:32px;top:40px;width:72px;height:72px;font-size:49px;font-weight:300;--delay:0ms;--enter-x:0px;--enter-y:14px}
.menu-top{right:92px;top:3px;width:52px;height:52px;--delay:40ms;--enter-x:50px;--enter-y:47px}
.menu-done{right:111px;top:56px;width:54px;height:54px;background:var(--paper);--delay:70ms;--enter-x:70px;--enter-y:-7px}
.menu-backup{right:-21px;top:79px;width:52px;height:52px;background:var(--paper);--delay:95ms;--enter-x:-63px;--enter-y:-29px}
.menu-bubble-view{right:81px;top:108px;width:56px;height:56px;--delay:125ms;--enter-x:41px;--enter-y:-60px}
.menu-projects{right:22px;top:118px;width:54px;height:54px;--delay:155ms;--enter-x:-19px;--enter-y:-69px}
.menu-project-index{right:136px;top:165px;width:50px;height:50px;background:var(--paper);--delay:185ms}
.menu-backup svg{width:24px;height:24px}
@media(min-width:1024px){
 .menu-items,.app.bubble-fullscreen .menu-items{right:62px;top:21px}
}
/* V44: text remains inside a safe circular text zone. */
.bubble span{
  display:block;width:76%;max-width:76%;max-height:73%;
  overflow:hidden;white-space:normal;overflow-wrap:anywhere;word-break:normal;
  hyphens:none;line-height:1.11;text-wrap:wrap;
}
/* The trash can belongs to the idea, not to the resulting task. */
.idea-item{position:relative;padding-right:56px}
.idea-delete{
  position:absolute;top:11px;right:11px;width:38px;height:38px;
  display:grid;place-items:center;border:1px solid #8c7897;border-radius:50%;
  color:#E5D8E9;background:rgba(255,255,255,.035);padding:0;
  cursor:pointer;
}
.idea-delete:hover{background:rgba(255,255,255,.13)}
.idea-delete:focus-visible{outline:3px solid #fff;outline-offset:2px}
.idea-delete svg{width:18px;height:18px}
@media(min-width:1024px){
  .selection-bubble{padding:12.5%}
  .selection-bubble .selection-title{font-size:clamp(32px,2.85vw,58px);line-height:1.07;margin-bottom:clamp(14px,1.5vh,22px);overflow-wrap:anywhere}
  .selection-bubble .selection-note{font-size:clamp(14px,1.18vw,20px);line-height:1.36;max-width:78%;overflow-wrap:anywhere}
  .selection-edit{left:0%;bottom:0%}
}
@media(min-width:1024px) and (min-height: 650px) {
  .selection-bubble { --preview-note-lines: 5; }
}


@keyframes plopp-grape-in {
  0%   {opacity:0;filter:blur(5px);transform:translate(var(--enter-x,0px),var(--enter-y,0px)) scale(.23)}
  44%  {opacity:1;filter:blur(.7px)}
  68%  {opacity:1;filter:blur(0);transform:translate(-3px,2px) scale(1.10,.91)}
  84%  {transform:translate(1px,-1px) scale(.965,1.04)}
  100% {opacity:1;filter:none;transform:translate(0,0) scale(1)}
}
@media(prefers-reduced-motion:reduce){
  .menu-disc {animation:none!important}
}


/* V46: Die Desktop-Seitenleiste gehört deinen Ideen, nicht dem Fokus-Verlauf. */
@media (min-width:1024px){
  .desktop-rail{gap:0}
  .rail-ideas{border-top:1px solid #514752;margin-top:27px;padding-top:24px;min-width:0;display:flex;flex-direction:column;gap:13px}
  .rail-ideas-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
  .rail-ideas-count{flex-shrink:0;display:grid;place-items:center;min-width:23px;height:23px;padding:0 7px;border-radius:50px;color:#DCCDE4;background:#4B3B53;font-size:11px;font-weight:700}
  .rail-ideas-list{display:flex;flex-direction:column;gap:9px;min-width:0}
  .rail-idea-card{background:#3D3343;border:1px solid rgba(195,178,209,.13);border-radius:16px;padding:13px 13px 12px;min-width:0}
  .rail-idea-text{font-size:12px;font-weight:450;line-height:1.55;color:#F1EAF4;margin:0 0 9px;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;white-space:pre-wrap}
  .rail-idea-bottom{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap}
  .rail-idea-status{color:#B8A6C0;font-size:10px;white-space:nowrap}
  .rail-idea-action{border:1px solid #74617F;border-radius:99px;padding:7px 10px;background:transparent;color:#F0E8F3;font-size:10px;font-weight:650;min-height:32px;white-space:nowrap}
  .rail-idea-action:hover,.rail-idea-action:focus-visible{background:#5A466A}
  .rail-ideas-empty{font-size:12px;line-height:1.6;color:#C8BAD0;background:#3C3341;border-radius:15px;padding:15px}
  .rail-ideas-all{width:100%;border:1px solid #766581;border-radius:99px;background:transparent;color:#F0E9F2;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:43px;padding:10px 14px;font-size:12px;font-weight:700}
  .rail-ideas-all:hover,.rail-ideas-all:focus-visible{background:#4B3D54}
  .rail-foot{margin-top:auto;padding-top:24px}
}

/* V47: Eigene Notizen pro Blase – innerhalb des bestehenden Fokus-Layouts. */
.task-comments{width:100%;max-width:710px;margin:29px 0 26px;padding:22px 19px 20px;border:1px solid rgba(195,178,209,.18);border-radius:23px;background:#352F37}
.task-comments-heading{display:flex;align-items:center;gap:10px;justify-content:space-between;margin:0 0 3px}
.task-comments-heading h2{font-size:19px;letter-spacing:-.45px;font-weight:800;margin:0;color:var(--paper)}
.task-comments-count{display:grid;place-items:center;background:#504257;color:#DBCAE6;border-radius:99px;min-width:24px;height:24px;font-size:11px;font-weight:700;padding:0 7px}
.task-comments-sub{font-size:12px;line-height:1.5;color:#C9BBCD;margin:0 0 16px}
.task-comment-form{display:flex;flex-direction:column;gap:9px}
.task-comment-field{width:100%;min-height:90px;max-height:350px;resize:vertical;background:#ECE8E8;color:#3A2B46;border:0;border-radius:17px;padding:14px 16px;font-size:13px;line-height:1.6;display:block}
.task-comment-field::placeholder{color:#928793}
.task-comment-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.task-comment-hint{font-size:10px;color:#BBAFC1}
.task-comment-send{background:var(--lav);color:var(--deep);border:0;border-radius:99px;font-size:12px;font-weight:800;padding:10px 17px;min-height:38px}
.task-comment-send:hover{filter:brightness(1.07)}
.task-comment-editing{font-size:11px;color:#E1D1EB;font-weight:700}
.task-comment-cancel{border:0;background:none;color:#D8C6E0;text-decoration:underline;text-underline-offset:3px;font-size:11px;font-weight:600;padding:8px 0}
.task-comment-list{display:flex;flex-direction:column;gap:10px;margin-top:18px}
.task-comment-item{background:#413846;border-radius:16px;padding:13px 15px;min-width:0}
.task-comment-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;margin-bottom:8px}
.task-comment-date{font-size:10px;font-weight:650;color:#CDBBD5}
.task-comment-buttons{display:flex;align-items:center;gap:10px}
.task-comment-action{border:0;background:transparent;color:#E4D9EA;font-size:10px;font-weight:650;padding:4px 2px;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px}
.task-comment-action:hover,.task-comment-action:focus-visible{text-decoration-color:currentColor}
.task-comment-action.remove{color:#E5C4CC}
.task-comment-text{font-size:12px;line-height:1.65;color:#F4EEF5;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.task-comment-empty{margin:0;color:#BFB1C6;font-size:12px;line-height:1.55}
@media(max-width:600px){
 .task-comments{margin-top:24px;padding:17px 14px 18px;border-radius:19px}
 .task-comment-controls{align-items:flex-start}
 .task-comment-send{min-height:42px}
}


/* V49: Alltagstest – Direkt auf die Blase klicken, Gleich/Später, zügiges Menü,
   bessere Desktop-Lesbarkeit. Bestehende Farben und Geometrie bleiben erhalten. */
.task-placement{min-width:0;border:0;padding:0;margin:1px 0 16px}
.task-placement legend{font-size:13px;font-weight:700;color:var(--paper);padding:0;margin:0 0 10px}
.task-placement-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.task-placement-choice{min-width:0;display:block;position:relative;cursor:pointer}
.task-placement-choice input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}
.task-placement-pill{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;min-height:62px;padding:11px 17px;border-radius:18px;border:1px solid #776583;background:#3E3544;color:#DED4E2;transition:border-color .15s,background .15s}
.task-placement-pill strong{font-size:16px;font-weight:750;line-height:1.2}
.task-placement-pill small{font-size:11px;line-height:1.35;color:#CFC2D5}
.task-placement-choice input:checked + .task-placement-pill{background:var(--lav);border-color:var(--lav);color:var(--deep)}
.task-placement-choice input:checked + .task-placement-pill small{color:#4B3B55}
.task-placement-choice input:focus-visible + .task-placement-pill{outline:3px solid #9abef9;outline-offset:3px}
@media(max-width:430px){
  .task-placement-options{gap:8px}
  .task-placement-pill{min-height:57px;padding:10px 13px}
  .task-placement-pill strong{font-size:15px}
  .task-placement-pill small{font-size:10px}
}
@media(min-width:1024px){
  /* Lesbarkeit, ohne das Layout zu verändern oder die Bubble-Typografie anzufassen. */
  .desktop-nav-kicker,.rail-label,.nav-mini-title{font-size:12px}
  .desktop-nav-link,.desktop-new{font-size:15px}
  .desktop-nav-link small{font-size:12px}
  .desktop-nav-bottom p,.desktop-rail .capture-card p{font-size:14px}
  .desktop-nav-bottom .nav-footnote,.rail-foot p{font-size:13px}
  .desktop-bubble-view,.rail-ideas-all{font-size:14px}
  .rail-idea-text{font-size:14px}
  .rail-ideas-empty,.rail-idea-action{font-size:13px}
  .rail-idea-status,.rail-ideas-count{font-size:12px}
  .rail-idea-card{padding:14px}
  .rail-idea-action{padding:8px 11px;min-height:36px}
  .screen .sub{font-size:17px}
  .field,.category-trigger{font-size:17px}
  .category-helper,.edit-screen .edit-hint{font-size:14px}
  .edit-screen .edit-label,.edit-screen .edit-cancel{font-size:15px}
  .task-placement legend{font-size:16px}
  .task-placement-pill strong{font-size:17px}
  .task-placement-pill small{font-size:14px}
  .task-name{font-size:17px}
  .focus-screen .sub{font-size:18px}
  .task-comments-heading h2{font-size:22px}
  .task-comments-sub{font-size:15px}
  .task-comment-field,.task-comment-text{font-size:16px}
  .task-comment-hint{font-size:13px}
  .task-comment-date,.task-comment-editing,.task-comment-cancel,.task-comment-action{font-size:13px}
  .task-comment-send{font-size:15px;min-height:42px}
  .task-comment-empty{font-size:15px}
  .done-copy strong,.idea-item{font-size:16px}
  .done-description,.idea-task-created,.idea-to-task,.idea-task-open{font-size:14px}
  .done-copy small,.done-restore,.done-filter,.done-count{font-size:13px}
  .level-rules p,.level-progress-header,.level-stat span{font-size:14px}
  .level-intro,.level-subtitle{font-size:15px}
}

/* V50 – Leveltitel, Fokus-Flug, Unteraufgabenfilter und Desktop-Levelanzeige */
.focus-step-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 0;max-width:710px;flex-wrap:wrap}
.focus-step-toolbar strong{font-size:14px;font-weight:750}
.step-filter{border:1px solid #786682;background:transparent;color:var(--paper);border-radius:99px;padding:9px 14px;min-height:40px;font-size:12px;font-weight:700;display:flex;align-items:center;gap:8px}
.step-filter[aria-pressed="true"]{background:var(--lav);color:var(--deep);border-color:var(--lav)}
.step-filter .filter-mark{font-size:15px;line-height:1}
.focus-screen .task-list{margin-top:12px}
.task-row.step-plopping{pointer-events:none;animation:step-plopp-out .32s cubic-bezier(.2,.7,.25,1) forwards;transform-origin:center}
@keyframes step-plopp-out{0%{transform:scale(1);opacity:.6;border-radius:24px}35%{transform:scale(1.045,.94);opacity:1}72%{transform:scale(.65,1.12);opacity:.55}100%{transform:scale(.08);opacity:0}}
.focus-flight{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:110;background:transparent}
.focus-flight-dim{position:absolute;inset:0;background:var(--bg);opacity:0}
.focus-flight-orb{position:absolute;border-radius:50%;display:grid;place-items:center;overflow:hidden;transform-origin:center center;will-change:transform,opacity;box-shadow:0 0 0 2px rgba(255,255,255,.05)}
.focus-flight-orb span{font-weight:800;text-align:center;max-width:72%;overflow-wrap:anywhere;line-height:1.15}
@media(min-width:1024px){
 .topbar .level-chip{margin-left:auto;margin-right:16px;min-height:46px;padding:6px 15px 6px 7px;gap:10px}
 .topbar .level-chip .level-mini{width:32px;height:32px;flex-basis:32px;font-size:14px}
 .topbar .level-chip-content{gap:5px;font-size:12px}
 .topbar .level-chip-track{width:106px;height:4px}
 .app.bubble-fullscreen .topbar .level-chip{display:flex!important}
 .app.bubble-fullscreen:has(.selection) .topbar .level-chip{pointer-events:auto}
 .focus-step-toolbar strong{font-size:17px}.step-filter{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.task-row.step-plopping{animation:none!important}}

/* V52 – Responsive, full-bleed: auf dem ORIGINAL V51-Fokusflug aufgebaut. */
html,body{background:var(--bg);max-width:100%;overflow-x:hidden}
@media (max-width:1023px){
  html,body{width:100%;min-width:0;min-height:100%;margin:0;padding:0}
  body{display:block;background:var(--bg);align-items:initial;justify-content:initial}
  .app{
    --app-safe-top:env(safe-area-inset-top,0px);
    --topbar-content-height:44px;
    --topbar-padding-top:clamp(12px,2.4dvh,21px);
    --topbar-padding-bottom:6px;
    --selection-top:calc(var(--app-safe-top) + var(--topbar-padding-top) + var(--topbar-content-height) + var(--topbar-padding-bottom));
    width:100%!important;max-width:none!important;min-width:0;
    height:100vh;height:100dvh;min-height:0!important;max-height:none;
    margin:0;border:0!important;border-radius:0!important;box-shadow:none;
    padding-top:var(--app-safe-top);
    padding-bottom:env(safe-area-inset-bottom,0px);
    overflow:hidden;
  }
  .topbar{padding:var(--topbar-padding-top) clamp(17px,4vw,30px) var(--topbar-padding-bottom);min-width:0}
  .topbar .icon-btn{flex:0 0 var(--topbar-content-height);width:var(--topbar-content-height);height:var(--topbar-content-height)}
  .topbar .close-pill.top-close{--top-close-size:var(--topbar-content-height);position:static!important}
  .brand{font-size:clamp(29px,8vw,38px)}
  .topbar .level-chip{min-width:0;max-width:56vw;overflow:hidden}
  .level-chip-content{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}
  .level-chip-content>span:first-child{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .body{overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;min-height:0}
  .home{min-height:100%;height:auto;flex:1 0 auto;min-width:0}
  .headline{margin:12px clamp(19px,5vw,34px) 2px;font-size:clamp(27px,7vw,40px)}
  .cloud{flex:1 1 auto;min-height:clamp(235px,42dvh,460px);margin:0 7px;touch-action:none;overflow:hidden}
  .cta-bar{display:none!important}
  .capture-area{margin:6px clamp(12px,4vw,22px) 12px;min-height:0;flex-shrink:0}
  .capture-card{min-height:0;padding:14px 19px 16px;border-radius:19px}
  .capture-card h3{font-size:clamp(18px,4.7vw,23px);margin:0 0 10px;line-height:1.2}
  .capture-card p{display:none}
  .capture-entry{height:43px}
  .capture-entry span{font-size:clamp(12px,3.4vw,14px)}
  .app:has(.selection) .capture-area{visibility:hidden;pointer-events:none}
  .selection{z-index:50}
  .selection .fullscreen-enter{z-index:6;width:min(76%,450px)}
  .app.bubble-fullscreen .cloud{min-height:0;margin:0 7px 12px}
  .app.bubble-fullscreen .body{overflow:hidden}
  .screen{max-width:100%;width:100%;min-height:0;overflow-y:visible}
}
@media (min-width:600px) and (max-width:1023px){
  .app{--selection-width:min(60%,430px)}
  .capture-area{margin-left:clamp(22px,5vw,56px);margin-right:clamp(22px,5vw,56px)}
  .selection .fullscreen-enter{width:min(50%,440px)}
}
@media (max-width:1023px) and (max-height:560px){
  .app{
    --topbar-padding-top:8px;
    --topbar-padding-bottom:0px;
    --primary-action-height:44px;
    --primary-action-inset:max(9px,env(safe-area-inset-bottom,0px));
    --selection-width:min(88%,360px,50dvh);
  }
  .headline{margin-top:6px;margin-bottom:2px;font-size:clamp(24px,4.8vw,32px)}
  .cloud{min-height:235px}
  .capture-area{margin-top:6px}
  .capture-card{padding:12px 17px}
  .selection .fullscreen-enter{font-size:16px}
}

/* V53 – Mobile improvements: free bubble scaling, readable type, stable selection background. */
@media (max-width:1023px){
  html,body{height:100%;background-color:#2D2A2A!important;overscroll-behavior:none}
  body{overflow:hidden!important}
  .app{background-color:#2D2A2A!important;overscroll-behavior:none}
  .app:has(.selection){overflow:hidden}
  .app:has(.selection) .body{overflow:hidden!important;overscroll-behavior:none;touch-action:none}
  .app:has(.selection) .selection{position:absolute;inset:0;background:rgba(22,19,23,.79)}
  .app:has(.selection) .topbar{background-color:transparent;pointer-events:none}
  .app:has(.selection) .level-chip{opacity:0;pointer-events:none}
  .capture-entry span{font-size:15px}
  .topbar .level-chip{font-size:12px}
  .selection-bubble .selection-title{font-size:clamp(29px,8vw,38px)}
  .selection-bubble .selection-note{font-size:clamp(15px,4vw,18px);line-height:1.42}
  .screen .sub{font-size:16px;line-height:1.55}
  .focus-screen .sub{font-size:17px}
  .screen .small-note,.small-note{font-size:14px}
  .label,.edit-screen .edit-label,.task-placement legend{font-size:15px}
  .field,.category-trigger{font-size:16px}
  .category-helper,.edit-screen .edit-hint{font-size:13px}
  .task-name,.open-name{font-size:16px}
  .open-detail,.open-meta{font-size:13px}
  .task-comment-field,.task-comment-text{font-size:16px}
  .task-comments-sub,.task-comment-empty{font-size:14px}
  .task-comment-date,.task-comment-action,.task-comment-hint{font-size:13px}
  .task-comment-send,.subtle-btn{font-size:14px}
  .focus-step-toolbar strong{font-size:16px}
  .step-filter{font-size:14px}
  .focus-back{font-size:14px}
  .idea-to-task,.idea-task-open{font-size:14px}
  .idea-item,.rail-idea-text{font-size:15px}
  .idea-item small,.idea-task-created{font-size:13px}
  .done-copy strong{font-size:15px}
  .done-description{font-size:13px}
  .done-copy small,.done-restore{font-size:12px}
  .backup-intro,.backup-panel p,.backup-warning{font-size:14px}
  .screen .focus-title{font-size:clamp(32px,8vw,42px)!important}
}
@media (max-width:390px){
  .selection-bubble .selection-title{font-size:clamp(26px,7.6vw,34px)}
  .selection-bubble .selection-note{font-size:clamp(14px,3.8vw,16px)}
}

/* V54 – Sicherer Online-Sync. Die bestehende Designsprache bleibt unangetastet. */
.sync-pill{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;
  height:36px;min-width:36px;margin-left:6px;margin-right:6px;border:1px solid rgba(195,178,209,.36);
  border-radius:99px;padding:5px 9px;background:#39313D;color:#E6DAEB;font-size:11px;font-weight:700}
.sync-pill svg{width:17px;height:17px;flex:0 0 auto}
.sync-pill i{width:7px;height:7px;border-radius:50%;background:#8ED6B3;flex:0 0 auto}
.sync-pill[data-state="offline"] i,.sync-pill[data-state="checking"] i{background:#EFD28A}
.sync-pill[data-state="conflict"] i,.sync-pill[data-state="error"] i{background:#E9A2A9}
.sync-pill[data-state="login"] i,.sync-pill[data-state="choose"] i{background:#C3B2D1}
.sync-shell{position:absolute;inset:0;z-index:300;background:rgba(22,18,25,.97);
  display:flex;align-items:center;justify-content:center;overflow-y:auto;overscroll-behavior:contain;
  padding:max(22px,env(safe-area-inset-top)) 15px max(22px,env(safe-area-inset-bottom))}
.sync-shell.is-panel{background:rgba(22,18,25,.76)}
.sync-box{width:min(100%,490px);max-height:100%;overflow-y:auto;overscroll-behavior:contain;
  background:#372F3B;border:1px solid #6B5974;border-radius:25px;padding:25px 24px;
  box-shadow:0 18px 60px rgba(0,0,0,.25);color:#ECE8E8}
.sync-box h2{font-size:clamp(23px,4vw,31px);line-height:1.14;letter-spacing:-.7px;margin:0 0 11px;font-weight:800}
.sync-box p{font-size:14px;line-height:1.6;margin:0 0 15px;color:#D7CBDC}
.sync-box .sync-kicker{font-size:12px;letter-spacing:.13em;font-weight:800;color:#C3B2D1;margin:0 0 11px}
.sync-box label{font-size:14px;font-weight:650;display:block;margin:13px 0 7px}
.sync-input{display:block;width:100%;border:0;border-radius:13px;background:#ECE8E8;color:#3A2B46;
  padding:13px 15px;font-size:16px;min-height:48px}
.sync-actions{display:flex;flex-direction:column;gap:9px;margin-top:18px}
.sync-primary,.sync-secondary,.sync-text-btn{width:100%;border:0;border-radius:99px;min-height:48px;
  font-weight:750;font-size:14px;padding:12px 15px;text-align:center}
.sync-primary{background:var(--lav);color:var(--deep)}
.sync-secondary{border:1px solid #9E8AAD;color:#F6EFF8;background:transparent}
.sync-text-btn{background:transparent;color:#CBB9D5;text-decoration:underline;text-underline-offset:4px}
.sync-footnote{font-size:12px!important;line-height:1.5!important;color:#BCAFC4!important;margin-top:15px!important}
.sync-box .app-copyright{display:block;margin-top:12px;color:#BCAFC4;font-size:12px;text-align:center}
.sync-error{background:#653F51;color:#FFF1F4;padding:11px 13px;border-radius:13px;font-size:13px;line-height:1.5;margin:10px 0}
.sync-summary{padding:13px;background:#473A4D;border-radius:13px;font-size:13px;line-height:1.5;margin:13px 0}
.sync-summary strong{display:block;font-size:14px;margin-bottom:4px}
@media(min-width:1024px){.sync-pill{height:41px;margin-right:14px;padding:8px 12px}.sync-pill span{display:inline}}
@media(max-width:1023px){.sync-pill{padding:5px 8px}.sync-pill span{display:none}}
@media(max-width:359px){.sync-pill{margin-left:2px;margin-right:2px;min-width:31px;padding:4px}}
@media(max-height:620px){.sync-shell{align-items:flex-start}.sync-box{max-height:none}}

/* V55: Handy-Level bewusst auf einen kleinen, präzisen Fortschrittsring reduziert.
   Die ausführliche Levelansicht und die Desktop-Anzeige bleiben erhalten. */
.level-mobile-ring{display:none;position:relative;width:42px;height:42px;flex:0 0 42px;place-items:center}
.level-mobile-ring svg{display:block;position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);overflow:visible}
.level-mobile-track,.level-mobile-progress{fill:none;stroke-width:3.4}
.level-mobile-track{stroke:#6C5A72}
.level-mobile-progress{stroke:var(--lav);stroke-linecap:round;transition:stroke-dashoffset .3s ease}
.level-mobile-number{position:relative;color:var(--paper);font-size:14px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
@media(max-width:1023px){
  .topbar .level-chip{
    display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;
    min-width:44px;max-width:44px;min-height:44px;
    margin-left:auto;margin-right:5px;padding:1px;
    border:0;background:transparent;border-radius:50%;overflow:visible;
  }
  .topbar .level-chip .level-mini,
  .topbar .level-chip .level-chip-content{display:none}
  .topbar .level-chip .level-mobile-ring{display:grid}
}
@media(max-width:359px){.topbar .level-chip{margin-right:1px!important}}
@media(prefers-reduced-motion:reduce){.level-mobile-progress{transition:none}}

/* Browserinterne Eingabe statt prompt(). */
.step-composer{width:100%;max-width:710px;padding:14px;background:#3A333D;border:1px solid #685B6D;border-radius:18px;margin:5px 0 12px}
.step-composer label{display:block;color:var(--lav);font-size:13px;font-weight:750;margin-bottom:8px}
.step-composer-row{display:flex;gap:8px;align-items:stretch}
.step-composer input{min-width:0;flex:1;border:0;border-radius:13px;background:var(--paper);color:var(--deep);padding:11px 13px;font-size:16px;min-height:46px}
.step-composer-add{border:0;border-radius:99px;background:var(--lav);color:var(--deep);padding:10px 15px;font-weight:800;font-size:13px}
.step-composer-cancel{border:0;background:transparent;color:var(--lav);font-size:12px;font-weight:700;margin-top:6px;padding:9px 4px 2px}
/* Deutsche Silbentrennung bei langen Komposita statt abgeschnittener Wörter. */
.bubble span,.selection-title,.selection-note,.task-name,.focus-title,.open-name,.done-copy strong,.project-dot{hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word}
/* Status und Level stehen auf einer Grundlinie und sind gleich hoch. */
.topbar .sync-pill{margin-left:auto;flex-shrink:0}
.topbar .level-chip{margin-left:7px;margin-right:6px;align-self:center}
@media(min-width:1024px){
 .topbar .sync-pill,.topbar .level-chip{height:44px;min-height:44px;align-self:center;margin-top:0;margin-bottom:0}
 .topbar .level-chip{margin-right:14px}
 .app.bubble-fullscreen .topbar .sync-pill{display:inline-flex!important}
}
@media(max-width:1023px){.topbar .level-chip{margin-left:3px;margin-right:4px}}
/* Im echten Online-Vollbild nicht die alte Drei-Spalten-Mitte verwenden. */
.app.bubble-fullscreen .topbar{width:100%;min-width:0}
.app.bubble-fullscreen .body,.app.bubble-fullscreen .home{width:100%;min-width:0;min-height:0}
.app.bubble-fullscreen .cloud{width:auto;min-width:0;position:relative}
@media(min-width:1024px){
 .app.bubble-fullscreen .body{width:100%;height:100%;grid-area:2/1/3/2}
 .app.bubble-fullscreen .topbar{grid-area:1/1/2/2}
}

/* V0.57 – optional monochrome task symbols, legible small typography. */
.bubble.has-task-icon{flex-direction:column;gap:clamp(2px,1%,5px)}
.bubble .bubble-symbol{display:grid;place-items:center;width:clamp(13px,19%,34px);height:clamp(13px,19%,34px);max-width:none;max-height:none;flex:0 0 auto;pointer-events:none}
.bubble .bubble-symbol svg{display:block;width:100%;height:100%}
.bubble.has-task-icon .bubble-label{width:82%;max-width:82%;max-height:56%;line-height:1.11}
.bubble.has-task-icon.is-tiny .bubble-symbol{display:none}
.bubble.has-task-icon.is-tiny .bubble-label{max-height:73%}
.selection-symbol{display:grid;place-items:center;width:clamp(21px,8%,33px);height:clamp(21px,8%,33px);margin:0 0 7px;opacity:.8;flex:0 0 auto}
.selection-symbol svg{width:100%;height:100%}
.project-head .focus-task-icon{width:25px;height:25px;display:grid;place-items:center;flex:0 0 25px;color:var(--lav)}
.project-head .focus-task-icon svg{width:100%;height:100%}
.task-icon-picker{border:0;padding:0;margin:2px 0 17px;min-width:0}
.task-icon-picker summary{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #71607C;border-radius:16px;background:#3B3341;color:var(--paper);padding:13px 16px;min-height:49px;list-style:none;font-size:13px;font-weight:750;cursor:pointer}
.task-icon-picker summary::-webkit-details-marker{display:none}
.task-icon-picker summary small{font-size:11px;font-weight:500;color:var(--lav)}
.task-icon-picker .icon-current-name{font-size:12px;color:var(--lav);font-weight:650;white-space:nowrap}
.task-icon-picker[open] summary{border-bottom-left-radius:10px;border-bottom-right-radius:10px}
.task-icon-picker .icon-picker-hint{color:var(--lav);font-size:11px;line-height:1.5;margin:12px 0 10px}
.task-icon-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;max-width:550px}
.task-icon-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:68px;padding:8px 4px;border-radius:14px;border:1px solid #786783;background:#3B3341;color:#D9CDE0;cursor:pointer}
.task-icon-option svg{width:21px;height:21px;flex-shrink:0}
.task-icon-option .task-icon-name{font-size:10px;font-weight:650;line-height:1.2;text-align:center}
.task-icon-option[aria-pressed="true"]{border-color:var(--lav);background:var(--lav);color:var(--deep)}
.task-icon-option:focus-visible{outline:3px solid #9abef9;outline-offset:2px}
@media(max-width:359px){.task-icon-options{gap:5px}.task-icon-option{min-height:61px;padding:6px 2px}.task-icon-option .task-icon-name{font-size:9px}}
@media(min-width:1024px){.task-icon-picker summary{font-size:16px}.task-icon-picker .icon-picker-hint{font-size:13px}.task-icon-option .task-icon-name{font-size:11px}}
.app-version-label{margin-top:13px;color:#8D8291;font-size:10px;font-weight:650;letter-spacing:.065em; text-align: right;}
.app-version-label .app-copyright{color:#BCAFC4;font-size:inherit}
@media(max-width:1023px){.app-version-label{display:none}}

/* V0.57 – Feinschliff: pro Fokustitel genau EIN Farbmarker. */
.focus-screen .project-head{align-items:center}
.focus-screen .project-head .focus-title{margin-top:0!important;margin-bottom:0!important}
.focus-screen .project-head .color-dot{width:19px;height:19px;flex:0 0 19px;margin:0;align-self:center}
.focus-screen .project-head .focus-task-icon{width:23px;height:23px;flex:0 0 23px;margin:0;align-self:center;display:grid;place-items:center}
.focus-screen .project-head .focus-task-icon svg{width:100%;height:100%}
/* Die Desktop-Version bleibt auch bei vielen Ideen unten rechts sichtbar. */
@media (min-width:1024px){
  .desktop-rail{padding:0;overflow:hidden;gap:0}
  .desktop-rail-scroll{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;min-width:0;
    overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:39px 22px 22px}
  .desktop-rail .app-version-label{display:block;flex:0 0 auto;margin:0;align-self:stretch;
    padding:12px 22px 15px;border-top:1px solid rgba(195,178,209,.1);
    background:#302C30;text-align:right}
}
@media (min-width:1024px) and (max-height:780px){
  .desktop-rail-scroll{padding-top:22px}
}

/* V0.57 – „Was bewegen wir heute?“ legt sich dezent über die Bubble-Wolke. */
.home{position:relative}
.home .headline{
  position:absolute;
  z-index:99;
  top:0;
  left:0;
  text-shadow:0 0 25px #2D2A2A;
}
/* Beim Öffnen einer Blase darf die Headline das Auswahl-Overlay nicht überlagern. */
.app:has(.selection) .home .headline{visibility:hidden;pointer-events:none}

/* V0.57.3 – iPhone Safari + installierte Web-App: eine einzige Geometrie.
   Das alte X war um ~60px zu tief, weil es sich auf eine andere Top-Regel
   als der Hamburger bezog. Statt einer geratenen safe-area Zahl messen wir
   die TATSÄCHLICHE Header-Button-Position und verankern beide im Viewport.
   Die Traube bleibt um 15% vergrößert; Desktop bleibt unverändert. */
@media (max-width:1023px){
  .menu-items,
  .app.bubble-fullscreen .menu-items{
    position:fixed !important;
    top:var(--plopp-menu-top, 126px) !important;
    right:var(--plopp-menu-right, 32px) !important;
    width:190px !important;
    height:194px !important;
    transform:scale(1.15);
    transform-origin:top right;
    z-index:12;
  }
  .menu-close.top-close{
    position:fixed !important;
    top:var(--plopp-close-top, 72px) !important;
    right:var(--plopp-close-right, 17px) !important;
    width:55px !important;
    height:55px !important;
    min-width:55px !important;
    min-height:55px !important;
    z-index:13;
  }
  .menu-close.top-close svg{width:29px !important;height:29px !important}
  /* Das X ersetzt den Hamburger, statt als zweiter Button darunter zu liegen. */
  .app:has(.menu-items) .topbar [data-action="menu"]{visibility:hidden;pointer-events:none}
  /* Das gesamte Browserfenster abdunkeln, nicht nur einen zu kurzen App-Container. */
  .app:has(.menu-items) > .scrim{position:fixed;inset:0}
}
/* Kein doppelter iOS-Safe-Area-Versatz beim nicht-transluzenten Statusbalken:
   iOS legt den App-Viewport in diesem Modus unterhalb der Statusleiste an. */
@media (max-width:1023px) and (display-mode: standalone){
  .app{--app-safe-top:0px}
}

/* V0.57.4 – einheitliche Navigation & direkte Aufgabenbearbeitung */
.page-backline{display:flex;align-items:center;justify-content:flex-start;margin:0 0 12px;flex:0 0 auto;min-height:44px}
.page-backline .page-back{margin:0;min-height:44px;gap:5px}
.focus-screen .project-head{margin-top:4px}
.focus-screen .focus-title{min-width:0;line-height:1.15;overflow-wrap:anywhere}
.focus-title-edit{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;width:42px;height:42px;min-width:42px;margin:0 0 0 5px;border:1px solid #766581;border-radius:50%;padding:9px;color:var(--lav);background:transparent;cursor:pointer;position:relative;top:-2px}
.focus-title-edit svg{width:19px;height:19px;flex:0 0 19px}
.focus-title-edit:hover,.focus-title-edit:focus-visible{background:#4E3D57}
.task-row{min-width:0}
.task-row-label{min-width:0;flex:1;display:flex;align-items:center;gap:12px;cursor:pointer;align-self:stretch}
.task-row-label .task-name{min-width:0;flex:1;overflow-wrap:anywhere}
.step-edit-trigger{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:11px;border:0;border-radius:50%;background:transparent;color:var(--violet);cursor:pointer}
.step-edit-trigger svg{width:20px;height:20px}
.step-edit-trigger:hover,.step-edit-trigger:focus-visible{background:#DCD5E0}
.step-inline-form{display:flex;align-items:center;gap:8px;min-width:0;flex:1}
.step-inline-input{flex:1;min-width:0;background:#fff;color:var(--deep);padding:9px 11px;border:1px solid #B9ADBE;border-radius:12px;font-size:15px;min-height:43px}
.step-inline-save{background:var(--violet);color:var(--paper);border:0;border-radius:99px;min-height:41px;padding:9px 13px;font-size:12px;font-weight:750}
.step-inline-cancel{border:0;background:transparent;color:var(--violet);display:grid;place-items:center;width:34px;height:41px;font-size:27px;line-height:1}
@media(min-width:1024px){
  /* Alle Inhaltsseiten nutzen wie die Fokusansicht dieselbe linke Inhaltskante. */
  .body>.screen{max-width:none;width:100%;margin:0;padding-left:52px;padding-right:52px}
  .page-backline{margin-bottom:20px}
}
@media(max-width:599px){
  .page-backline{margin:0 0 14px}
  .focus-title-edit{width:42px;height:42px;min-width:42px;padding:10px;margin-left:2px}
  .step-edit-trigger{flex-basis:44px;width:44px;height:44px}
  .step-inline-form{flex-wrap:wrap}
  .step-inline-input{flex-basis:100%}
  .step-inline-save{flex:1}
}

/* V0.57.4 – private Blase: in Übersichten nur Schloss statt Titel */
.private-choice{display:flex;align-items:center;gap:13px;margin:6px 0 19px;padding:14px 16px;border:1px solid #776583;border-radius:17px;background:#3B3341;color:var(--paper);cursor:pointer}
.private-choice input{appearance:none;-webkit-appearance:none;width:24px;height:24px;flex:0 0 24px;margin:0;border:2px solid var(--lav);border-radius:7px;background:transparent;display:grid;place-items:center;cursor:pointer}
.private-choice input:checked{background:var(--lav)}
.private-choice input:checked:after{content:'✓';font-size:17px;line-height:1;color:var(--deep);font-weight:800}
.private-choice input:focus-visible{outline:3px solid #9abef9;outline-offset:3px}
.private-choice-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.private-choice-text strong{font-size:14px;font-weight:750}
.private-choice-text small{color:var(--lav);font-size:12px;line-height:1.35}
@media(min-width:1024px){.private-choice-text strong{font-size:16px}.private-choice-text small{font-size:13px}}
.bubble .bubble-private-symbol{display:grid;place-items:center;flex:0 0 auto;width:clamp(12px,29%,36px);height:clamp(12px,29%,36px);max-width:none;max-height:none;pointer-events:none}
.bubble .bubble-private-symbol svg{width:100%;height:100%;display:block}
.bubble.is-private{gap:0}
.selection-bubble .selection-symbol{flex-shrink:0}
.resume-dot svg{width:25px;height:25px}

/* V0.57.5 – Edit-Formular: keine zusammengeschrumpfte Beschreibung mehr.
   Der Inhalt darf scrollen, die Textarea behält eine echte mehrzeilige Höhe. */
.edit-screen #edit-note{
  flex:0 0 auto;
  height:160px;
  min-height:145px;
  resize:vertical;
}
/* Leveltitel prominent in der Level-up-Meldung anzeigen. */
.level-up-toast .level-up-name{
  display:block;
  margin:7px 0 6px;
  font-size:clamp(17px,3.2vw,23px);
  font-weight:800;
  line-height:1.2;
  overflow-wrap:anywhere;
}

 /* V0.58.1 – kompakte, unaufdringliche Verwaltung und Projektcontainer */
 .home-empty{position:absolute;inset:31% 8% auto;text-align:center;pointer-events:none;color:var(--lav);font-size:clamp(13px,2.5vw,17px);line-height:1.65}
 .home-extra{font-weight:750;min-height:42px;padding:10px 16px;box-shadow:0 2px 18px rgba(0,0,0,.14);bottom:5px}
 .item-toolrow{display:flex;gap:9px;align-items:center;min-width:0}
 .list-delete,.step-delete-trigger{border:1px solid #786783;border-radius:99px;background:transparent;color:var(--lav);padding:8px 12px;font-size:12px;font-weight:650;min-height:39px;cursor:pointer}
 .list-delete:hover,.step-delete-trigger:hover{background:#544158}
 .step-delete-trigger{width:36px;height:44px;flex:0 0 36px;display:grid;place-items:center;padding:7px;border-color:transparent;color:#806985}
 .step-delete-trigger:hover{background:#E4D9E4;color:#594661}
 .step-delete-trigger svg{width:18px;height:18px}
 .edit-delete{align-self:flex-start;border:0;background:transparent;color:#D9ABBA;font-size:13px;font-weight:650;text-decoration:underline;text-underline-offset:4px;min-height:44px;padding:9px 3px;margin:10px 0 8px}
 .undo-toast{position:absolute;z-index:220;left:50%;bottom:max(17px,env(safe-area-inset-bottom));transform:translateX(-50%);background:var(--paper);color:var(--deep);border-radius:17px;padding:11px 12px 11px 17px;display:flex;align-items:center;gap:12px;box-shadow:0 7px 25px rgba(0,0,0,.18);width:max-content;max-width:calc(100% - 28px);font-size:13px;font-weight:650}
 .undo-toast button{background:var(--violet);border:0;border-radius:99px;color:#fff;padding:10px 14px;white-space:nowrap;font-size:12px;font-weight:800;min-height:42px}
 .project-field-label{display:block;margin:7px 0 8px;font-size:14px;font-weight:750;color:var(--lav)}
 .project-field{width:100%;max-width:660px;border-radius:15px;margin-bottom:16px}
 .project-task-list{display:flex;flex-direction:column;gap:10px;margin:13px 0 22px}
 .project-task-row{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#39313D;border:1px solid #5A4B60;border-radius:17px;padding:13px 14px;min-height:68px}
 .project-task-row button{border:0;background:transparent;color:var(--paper);font-weight:750;text-align:left;padding:7px 0;min-width:0;flex:1;overflow-wrap:anywhere}
 .project-task-row small{display:block;color:var(--lav);font-size:11px;font-weight:500;margin-top:4px}
 .project-task-row .list-delete{border:1px solid #786783;color:var(--lav);flex:0 0 auto;padding:8px 12px;font-weight:650}
 .project-detail-empty{padding:18px;background:#3C3341;color:var(--lav);border-radius:14px;font-size:14px;line-height:1.5}
 .today-card{display:flex;align-items:center;gap:12px;background:#39313D;color:var(--paper);border-radius:17px;padding:13px 16px;border:1px solid #5A4B60;min-height:70px}
 .today-card>button{flex:1;min-width:0;text-align:left;background:transparent;border:0;color:inherit;padding:5px 0;display:flex;align-items:center;gap:12px}
 .today-card .open-dot{width:39px;height:39px;flex:0 0 39px;display:grid;place-items:center}
 .today-card small{display:block;font-size:11px;color:var(--lav);font-weight:500;margin-top:5px}
 .today-card strong{font-size:14px;font-weight:750;overflow-wrap:anywhere}
 .today-list{display:flex;flex-direction:column;gap:10px;margin-bottom:18px}
 @media(min-width:1024px){.today-list,.project-task-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.home-empty{inset:38% 10% auto}.list-delete,.edit-delete{font-size:14px}}

 .done-item .item-toolrow{flex-wrap:wrap;justify-content:flex-end}.done-item .list-delete{color:#DDB8C7}
 @media(max-width:599px){.done-item .item-toolrow{flex-direction:column;gap:4px;align-items:flex-end}.done-item .list-delete{min-height:30px;font-size:11px;padding:6px 8px}.task-row{gap:5px;padding:11px}.task-row-label{gap:8px}}

/* "Später": eigene Karten, damit die Löschaktion auch im Desktop-Grid bleibt. */
.open-card{position:relative;display:flex;min-width:0}
.open-card .open-item{width:100%;min-width:0;padding-right:98px}
.open-card .list-delete{position:absolute;right:12px;bottom:15px;background:#4A3B4E;min-height:39px}
