/* Notizzettel Web – modernes, ruhiges UI (hell/dunkel automatisch) */
:root {
  --bg: #f7f7f5;
  --bg-glow-1: rgba(250, 204, 21, .16);
  --bg-glow-2: rgba(129, 140, 248, .10);
  --surface: rgba(255, 255, 255, .78);
  --surface-solid: #ffffff;
  --surface-2: #f1f1ee;
  --text: #18181b;
  --text-2: #52525b;
  --muted: #8a8a93;
  --line: rgba(24, 24, 27, .08);
  --line-strong: rgba(24, 24, 27, .14);
  --accent: #facc15;
  --accent-2: #f59e0b;
  --accent-ink: #1c1917;
  --accent-soft: rgba(250, 204, 21, .18);
  --danger: #e11d48;
  --danger-soft: rgba(225, 29, 72, .1);
  --ok: #16a34a;
  --due: #d97706;
  --due-soft: rgba(217, 119, 6, .12);
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, .05), 0 1px 1px rgba(24, 24, 27, .03);
  --shadow: 0 1px 2px rgba(24, 24, 27, .04), 0 8px 24px -8px rgba(24, 24, 27, .12);
  --shadow-lg: 0 24px 60px -20px rgba(24, 24, 27, .35);
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0e;
    --bg-glow-1: rgba(250, 204, 21, .07);
    --bg-glow-2: rgba(129, 140, 248, .08);
    --surface: rgba(24, 24, 27, .72);
    --surface-solid: #18181b;
    --surface-2: #232327;
    --text: #f4f4f5;
    --text-2: #c4c4cc;
    --muted: #8b8b95;
    --line: rgba(255, 255, 255, .07);
    --line-strong: rgba(255, 255, 255, .13);
    --accent-soft: rgba(250, 204, 21, .14);
    --danger: #fb7185;
    --danger-soft: rgba(251, 113, 133, .12);
    --due: #fbbf24;
    --due-soft: rgba(251, 191, 36, .12);
    --shadow-sm: 0 1px 0 rgba(255, 255, 255, .03) inset;
    --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background:
    radial-gradient(1200px 600px at 0% -10%, var(--bg-glow-1), transparent 60%),
    radial-gradient(900px 500px at 110% 0%, var(--bg-glow-2), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.5 "Inter var", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
::selection { background: var(--accent-soft); }
.ico { flex: none; display: block; }

/* ---------- Grundelemente ---------- */
button, input, select, textarea { font: inherit; color: inherit; }
button {
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 500;
  transition: background .15s, border-color .15s, color .15s, transform .15s var(--ease), box-shadow .15s;
}
button:hover { border-color: var(--muted); }
button:active { transform: scale(.97); }
button:disabled { opacity: .45; cursor: default; transform: none; }
button.primary, button[type=submit], .button {
  background: linear-gradient(180deg, #fde047, var(--accent) 60%, #eab308);
  border-color: rgba(161, 98, 7, .35);
  color: var(--accent-ink);
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 6px 16px -6px rgba(234, 179, 8, .55);
}
button.primary:hover, button[type=submit]:hover { filter: brightness(1.03); border-color: rgba(161, 98, 7, .5); }
button.danger, .pill-btn.danger { color: var(--danger); }
button.link { border: 0; background: none; padding: 4px 6px; color: var(--muted); border-radius: 8px; }
button.link:hover { color: var(--text); background: var(--surface-2); }
.icon-btn { border: 0; background: transparent; padding: 7px; border-radius: 10px; color: var(--muted); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.small { padding: 4px; border-radius: 8px; }
.icon-btn.danger-hover:hover { color: var(--danger); background: var(--danger-soft); }
.pill-btn { padding: 6px 12px; font-size: 13.5px; background: var(--surface-2); border-color: transparent; }
.pill-btn:hover { border-color: var(--line-strong); }

input, select, textarea {
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); }
select {
  appearance: none; -webkit-appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a93' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
label { display: block; margin: 12px 0; font-size: 13px; font-weight: 500; color: var(--text-2); }
label input:not([type=radio]):not([type=checkbox]) { display: block; width: 100%; margin-top: 6px; font-size: 15px; color: var(--text); }
label.inline { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.muted { color: var(--muted); font-size: 13px; }
.error { color: var(--danger); font-size: 14px; }
.ok { color: var(--ok); font-weight: 600; }
code.token {
  display: block; word-break: break-all; padding: 10px 12px; margin-top: 6px;
  background: var(--surface-2); border-radius: var(--r-sm); user-select: all;
  font: 13px/1.5 ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--text);
}
.button { display: inline-flex; padding: 9px 18px; border-radius: 999px; text-decoration: none; }

/* ---------- Login / Setup ---------- */
.center-page { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.card {
  background: var(--surface); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
  animation: rise .5s var(--ease);
}
.card h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.02em; }
.login-card button[type=submit] { width: 100%; padding: 11px; margin-top: 6px; font-size: 15px; }
.brand {
  display: inline-block; width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, #fde68a, var(--accent) 45%, var(--accent-2));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 4px 12px -3px rgba(245, 158, 11, .55);
  position: relative;
}
.brand::after { content: ""; position: absolute; right: 0; bottom: 0; width: 9px; height: 9px; border-top-left-radius: 4px; background: rgba(0, 0, 0, .12); }
.brand.big { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 16px; }
.brand.big::after { width: 14px; height: 14px; border-top-left-radius: 6px; }
fieldset { border: 1px solid var(--line-strong); border-radius: var(--r); margin: 14px 0; padding: 8px 14px 12px; }
legend { font-size: 13px; font-weight: 600; color: var(--text-2); padding: 0 6px; }
.mysql-fields { display: none; }
fieldset:has(input[value=mysql]:checked) .mysql-fields { display: block; }

/* ---------- App-Rahmen ---------- */
#app { display: flex; flex-direction: column; height: 100%; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: var(--surface); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--line);
}
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: 12px; margin-right: auto; }
.tabs button { border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 9px; }
.tabs button:hover { color: var(--text); }
.tabs button.active { background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow-sm), 0 1px 3px rgba(0, 0, 0, .08); }
.sync-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.sync-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(22, 163, 74, .15); }
.sync-status.busy::before { background: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-soft); animation: pulse 1s ease-in-out infinite; }
.sync-status.error { color: var(--danger); }
.sync-status.error::before { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: 42px; z-index: 40; min-width: 200px;
  background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 6px; animation: pop .18s var(--ease);
}
.menu button { display: flex; justify-content: flex-start; width: 100%; border: 0; background: none; border-radius: 9px; padding: 8px 12px; font-weight: 500; }
.menu button:hover { background: var(--surface-2); }
.menu button[data-action=logout] { color: var(--danger); }
#view { flex: 1; overflow: hidden; display: flex; min-height: 0; }

/* ---------- Aufgaben ---------- */
.todos { flex: 1; overflow-y: auto; padding: 28px 20px 96px; }
.todos > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 32px; line-height: 1.1; letter-spacing: -.03em; font-weight: 750; }
.eyebrow { margin: 0 0 4px; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stats { display: flex; gap: 6px; }
.stat { font-size: 13px; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.stat b { color: var(--text); }
.stat.warn { color: var(--due); background: var(--due-soft); border-color: transparent; }
.stat.warn b { color: var(--due); }

.quick-add {
  background: var(--surface); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; margin-bottom: 18px;
  box-shadow: var(--shadow); transition: box-shadow .2s, border-color .2s;
}
.quick-add:focus-within { border-color: var(--line-strong); box-shadow: var(--shadow), 0 0 0 4px var(--accent-soft); }
.qa-main { display: flex; gap: 8px; align-items: center; }
.qa-main input { flex: 1; border: 0; background: transparent; font-size: 16px; padding: 10px; }
.qa-main input:focus { box-shadow: none; }
.add-btn { padding: 9px 16px; }
.qa-meta { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 4px 2px; border-top: 1px solid var(--line); margin-top: 4px; }
.field { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0 0 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.field select, .field input { border: 0; background-color: transparent; padding: 6px 10px 6px 2px; font-size: 13.5px; color: var(--text-2); box-shadow: none !important; margin: 0 !important; }
.field select { padding-right: 28px; background-position: right 8px center; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.chip { border-radius: 999px; padding: 5px 12px; font-size: 13.5px; font-weight: 500; background: var(--surface); border-color: var(--line); color: var(--text-2); }
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip .count { opacity: .55; margin-left: 2px; font-variant-numeric: tabular-nums; }
.chip.ghost { border-style: dashed; background: transparent; color: var(--muted); }

.todo-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; margin-top: 0; margin-bottom: 0; }
.todo {
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px;
  background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease), border-color .2s;
  animation: rise .35s var(--ease) both;
}
.todo:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.todo input[type=checkbox] {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 22px; height: 22px; margin: 0; border-radius: 50%; padding: 0;
  border: 2px solid var(--line-strong); background: transparent; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.todo input[type=checkbox]:hover { border-color: var(--accent-2); }
.todo input[type=checkbox]:checked {
  border-color: transparent;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center no-repeat;
  animation: tick .3s var(--ease);
}
.todo .title { flex: 1; min-width: 0; overflow-wrap: anywhere; cursor: text; font-weight: 500; }
.todo.done { background: transparent; box-shadow: none; }
.todo.done .title { text-decoration: line-through; text-decoration-color: var(--muted); color: var(--muted); font-weight: 400; }
.todo .meta { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.todo .edit-title { flex: 1; padding: 6px 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 500; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-2); border: 1px solid transparent; white-space: nowrap; line-height: 1.5;
}
select.badge { padding: 3px 26px 3px 10px; background-position: right 8px center; }
select.badge.empty { color: var(--muted); background-color: transparent; border: 1px dashed var(--line-strong); }
input[type=date] { font-weight: 400; }
.field input[type=date] { color: var(--muted); }
.field input[type=date]:focus, .field input[type=date]:valid:not(:placeholder-shown) { color: var(--text-2); }
button.badge, label.badge { cursor: pointer; }
button.badge:hover, label.badge:hover, select.badge:hover { border-color: var(--line-strong); }
.badge.due { color: var(--due); background: var(--due-soft); }
.badge.overdue { background: var(--due); color: #fff; }
label.badge { position: relative; margin: 0; }
.sr-date { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; padding: 0; border: 0; }
.section-head { display: flex; align-items: center; gap: 8px; margin-top: 26px; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.section-head .grow { flex: 1; }
.section-head .toggle { font-weight: 600; color: var(--text-2); }
.section-head .toggle .ico { transition: transform .2s var(--ease); }
.section-head .toggle.open .ico { transform: rotate(90deg); }
.section-head .count { background: var(--surface-2); border-radius: 999px; padding: 0 7px; font-size: 12px; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; list-style: none; }

/* ---------- Notizen ---------- */
.notes { display: flex; flex: 1; min-height: 0; }
.note-list {
  width: 340px; flex: none; display: flex; flex-direction: column;
  border-right: 1px solid var(--line); background: var(--surface);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.note-list .filters { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.note-list .filters .row { display: flex; gap: 8px; }
.note-list .filters .row select { flex: 1; }
.search { position: relative; display: flex; align-items: center; }
.search .ico { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; padding-left: 36px; background: var(--surface-2); border-color: transparent; }
.search input:focus { background: var(--surface-solid); }
.note-items { overflow-y: auto; flex: 1; list-style: none; margin: 0; padding: 0 8px 16px; display: flex; flex-direction: column; gap: 2px; }
.note-item { padding: 10px 12px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.note-item:hover { background: var(--surface-2); }
.note-item.active { background: var(--surface-solid); box-shadow: var(--shadow); }
.note-item .t { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
.note-item .tt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-item .fav { color: var(--accent-2); }
.note-item .fav .ico { fill: currentColor; }
.note-item .s { font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; margin-top: 2px; padding-left: 18px; }
.note-item .due { display: inline-flex; align-items: center; gap: 3px; color: var(--due); }
.dot { width: 10px; height: 10px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08) inset; }
.dot-gelb { background: #f5e97a; } .dot-gruen { background: #b8e8a0; } .dot-blau { background: #a9cff5; }
.dot-rosa { background: #f7b4cf; } .dot-lila { background: #cbb5f7; } .dot-grau { background: #d2d2d2; } .dot-dunkel { background: #3f3f46; }

.editor { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.editor-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.editor-bar .grow { flex: 1; }
.editor-bar select, .editor-bar input[type=date] { padding: 6px 10px; font-size: 13.5px; border-radius: 999px; background-color: var(--surface-2); border-color: transparent; }
.editor-bar select { padding-right: 28px; }
.editor textarea, .preview { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 28px 32px 80px; }
.editor textarea {
  border: 0; border-radius: 0; resize: none; background: transparent;
  font: 15px/1.7 ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace; color: var(--text);
}
.editor textarea:focus { box-shadow: none; }
.preview { overflow-y: auto; overflow-wrap: anywhere; font-size: 16px; line-height: 1.7; }
.preview h1, .preview h2, .preview h3 { margin: 1.2em 0 .4em; line-height: 1.2; letter-spacing: -.02em; }
.preview h1 { font-size: 30px; }
.preview h2 { font-size: 22px; }
.preview h1:first-child, .preview h2:first-child, .preview h3:first-child { margin-top: 0; }
.preview a { color: var(--accent-2); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.preview pre { background: var(--surface-2); padding: 14px 16px; border-radius: var(--r-sm); overflow-x: auto; font-size: 13.5px; }
.preview code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .88em; }
.preview pre code { padding: 0; background: none; }
.preview blockquote { margin: 1em 0; padding: 4px 16px; border-left: 3px solid var(--accent); color: var(--text-2); background: var(--accent-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.preview li.task { list-style: none; margin-left: -1.3em; }
.preview li.task input { accent-color: var(--ok); margin-right: 6px; }
.preview img { max-width: 100%; border-radius: var(--r-sm); }
.preview hr { border: 0; border-top: 1px solid var(--line-strong); margin: 2em 0; }
.preview table { border-collapse: collapse; font-size: 14px; }
.preview td, .preview th { border: 1px solid var(--line-strong); padding: 6px 10px; }
.preview .missing-image { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; background: var(--surface-2); padding: 3px 10px; border-radius: 999px; }
.star.on { color: var(--accent-2); }
.star.on .ico { fill: currentColor; }
.no-note { margin: auto; color: var(--muted); padding: 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.no-note .ico { opacity: .4; }
.back-button { display: none; }

/* ---------- Toast & Dialog ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: rgba(24, 24, 27, .92); color: #fafafa; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 999px; padding: 10px 18px; display: flex; gap: 14px; align-items: center; font-size: 14px;
  box-shadow: var(--shadow-lg); z-index: 50; max-width: calc(100% - 24px);
  animation: toast-in .3s var(--ease);
}
.toast button { background: none; border: 0; color: var(--accent); font-weight: 600; padding: 0; box-shadow: none; }
.toast.error { background: var(--danger); }
.toast.error button { color: #fff; }

dialog {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-solid); color: var(--text);
  padding: 24px; width: min(460px, calc(100% - 24px)); box-shadow: var(--shadow-lg);
}
dialog[open] { animation: pop .22s var(--ease); }
dialog::backdrop { background: rgba(9, 9, 11, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog h2 { margin: 0 0 12px; font-size: 19px; letter-spacing: -.01em; }
dialog p { margin: 0 0 8px; }
dialog input[name=v] { width: 100%; }
dialog .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }

/* ---------- Animationen ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes tick { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Mobil ---------- */
@media (max-width: 720px) {
  .topbar { padding-left: 12px; padding-right: 8px; gap: 8px; }
  .topbar > .brand { display: none; }
  .tabs button { padding: 6px 12px; }
  .tabs button .ico { display: none; }
  .todos { padding: 20px 14px 96px; }
  .page-head h1 { font-size: 28px; }
  .add-btn span { display: none; }
  .add-btn { padding: 10px; width: 42px; height: 42px; }
  .note-list { width: 100%; border-right: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .notes.has-open .note-list { display: none; }
  .notes:not(.has-open) .editor { display: none; }
  .back-button { display: inline-flex; margin-left: -6px; }
  .editor textarea, .preview { padding: 20px 18px 80px; }
  .todo { flex-wrap: wrap; row-gap: 6px; }
  .todo .meta { width: 100%; padding-left: 34px; justify-content: flex-start; }
}
@media (min-width: 721px) {
  .todo .meta .icon-btn.danger-hover { opacity: 0; transition: opacity .15s; }
  .todo:hover .meta .icon-btn.danger-hover, .todo:focus-within .meta .icon-btn.danger-hover { opacity: 1; }
}
