:root {
  color-scheme: light;
  --bg: #f6f4f1;
  --bg-2: #f6f4f1;
  --card: #fffcf9;
  --bar: rgba(246, 244, 241, 0.94);
  --label: #2c2926;
  --secondary: #7a746c;
  --separator: #e6e1d8;
  --accent: #6d7f62;
  --accent-soft: #e7eee3;
  --on-accent: #ffffff;
  --cta: #6d7f62;
  --cta-ink: #ffffff;
  --red: #c45c4a;
  --fill: #f1eee8;
  --dock: #fffcf9;
  --dock-ink: #8a847b;
  --dock-on: #5f7056;
  --shadow: 0 1px 2px rgba(16, 18, 24, 0.04);
  --shadow-soft: none;
  --radius: 12px;
  --radius-sm: 8px;
  --blue: var(--accent);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--label);
  font-family: "Golos Text", "Golos Text", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body { padding-top: env(safe-area-inset-top); }

.app {
  min-height: 100vh;
  max-width: 720px;
  margin: 0 auto;
}

.has-nav { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.form-page { padding-bottom: 36px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  padding: 18px 20px 10px;
  background: transparent;
}
.topbar-main {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px;
  min-height: 56px;
}

.topbar.compact {
  min-height: 56px;
  padding: 8px 12px;
  background: var(--bar);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--separator);
}
.topbar.compact .topbar-main {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 40px;
}
.topbar.with-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px 12px;
  background: var(--card);
  border-bottom: 1px solid var(--separator);
}
.topbar.with-search .topbar-main {
  align-items: center;
  min-height: 0;
}
.topbar.with-search h1 { font-size: 22px; }
.topbar.with-search .list-search { margin: 0; }
.topbar.with-search .icon-btn { background: transparent; box-shadow: none; }

.topbar h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.topbar.compact h1 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}

.topbar .tools {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-self: end;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--card);
  color: var(--label);
  box-shadow: var(--shadow-soft);
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
}
.topbar.compact .icon-btn {
  background: transparent;
  box-shadow: none;
}
.icon-btn:hover { background: var(--accent-soft); color: var(--accent); }
.icon-btn.danger { color: var(--red); }
.icon-btn svg, .tabbar svg { width: 20px; height: 20px; stroke-width: 1.7; }

.flash { margin: 0 20px 12px; color: var(--red); font-size: 14px; font-weight: 500; }
main { padding-top: 2px; }

.card, .view-card {
  background: var(--card);
  border-radius: var(--radius);
  margin: 0 16px 14px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--separator);
}
.card { overflow: hidden; }
.view-card { padding: 22px 20px 24px; }

.view-title {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.view-meta { margin: 0 0 16px; color: var(--secondary); font-size: 14px; font-weight: 500; }
.view-body { font-size: 16px; line-height: 1.55; }
.view-body.ql-editor { padding: 0; min-height: 0; }
.view-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 16px 16px; }

.kv { display: grid; gap: 10px; margin-top: 8px; }
.kv-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--fill);
}
.kv-row .kv-label { flex: none; width: 78px; color: var(--secondary); font-size: 13px; font-weight: 600; }
.kv-row .kv-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.kv-row .kv-value.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; }

.empty {
  margin: 56px 28px;
  text-align: center;
  color: var(--secondary);
  font-size: 16px;
  font-weight: 500;
}
.empty-cta {
  display: inline-flex;
  margin-top: 18px;
  min-height: 48px;
  align-items: center;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--cta);
  color: var(--cta-ink);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.list-search { margin: 4px 16px 12px; }
.list-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--separator);
  border-radius: 10px;
  background: var(--card);
  color: var(--label);
  padding: 0 16px 0 44px;
  font: inherit;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%237A746C' stroke-width='1.8'%3E%3Ccircle cx='9' cy='9' r='6'/%3E%3Cpath d='M14 14l4 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
}

.tasks {
  list-style: none;
  margin: 0;
  padding: 0 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tasks li.row-item {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 64px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--separator);
  animation: rise 200ms ease both;
}

.row-icon {
  width: 44px;
  height: 44px;
  margin-left: 14px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}
.row-icon svg { width: 20px; height: 20px; }

.tasks a.row-link {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 14px 16px 14px 12px;
  color: inherit;
  text-decoration: none;
}
.tasks a.done .list-title {
  color: var(--secondary);
  text-decoration: line-through;
  font-weight: 500;
}

.list-title {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.list-sub, .hint {
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
}
.badge {
  align-self: flex-start;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.check-form { display: flex; align-items: center; padding-left: 10px; }
.check-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.circle {
  width: 22px;
  height: 22px;
  border: 2px solid var(--secondary);
  border-radius: 50%;
  display: block;
}
.circle.checked {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--card);
}

.form { padding-bottom: 4px; }
.field, fieldset.field {
  display: block;
  margin: 0;
  padding: 14px 16px 16px;
  border: 0;
  border-bottom: 1px solid var(--separator);
}
legend, .field > span:first-child {
  display: block;
  margin-bottom: 8px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
input, textarea, button, select { font: inherit; }
.field input, .field textarea, .field select, .qr-card input {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--fill);
  color: inherit;
  padding: 10px 14px;
  resize: vertical;
  font-weight: 500;
}
.field-row { display: flex; align-items: center; gap: 8px; }
.field-row input { flex: 1; min-width: 0; }

.copy, .secondary, .primary, .danger, .linkish {
  min-height: 48px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}
.copy, .secondary, .danger {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0 4px;
}
.danger { color: var(--red); width: 100%; }
.primary {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  width: 100%;
  padding: 0 16px;
}
.secondary.linkish, button.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: var(--accent-soft);
  color: var(--accent);
}

.actions, .inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px 18px;
}
.actions .primary { flex: 1; }
.hint { margin: 0; padding: 0 16px 12px; }

.segment {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 10px;
  background: var(--fill);
}
.segment label {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 650;
}
.segment-3 label { font-size: 13px; }
.segment input { position: absolute; inset: 0; margin: 0; opacity: 0; }
.segment label:has(input:checked) {
  background: var(--card);
  color: var(--label);
  box-shadow: var(--shadow-soft);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label {
  position: relative;
  min-width: 44px;
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--fill);
  font-weight: 650;
}
.chips input { position: absolute; inset: 0; opacity: 0; margin: 0; }
.chips label:has(input:checked) {
  background: var(--accent);
  color: var(--on-accent);
}

.sheet {
  display: flex;
  flex-direction: column;
  margin: 8px 16px 12px;
  background: var(--fill);
  border-radius: var(--radius);
  overflow: hidden;
}
.sheet a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--accent);
  text-decoration: none;
  background: var(--card);
  border-bottom: 1px solid var(--separator);
  font-weight: 650;
}

.qr-card { padding: 18px; text-align: center; }
.qr-card h2 { margin: 8px 0; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--secondary); }
.qr { display: inline-block; padding: 14px; background: #fff; border-radius: 8px; }
.qr img, .qr canvas { display: block; }

.tabbar {
  position: fixed;
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(720px, 100%);
  height: calc(58px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  background: var(--dock);
  border-top: 1px solid var(--separator);
}
.tabbar a {
  flex: 1;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--dock-ink);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  border-radius: 0;
}
.tabbar a.on { color: var(--dock-on); }
.tabbar a.on svg { stroke: var(--dock-on); }

.add-dock {
  position: fixed;
  z-index: 15;
  right: max(18px, calc(50% - 344px));
  bottom: calc(74px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.add-task {
  pointer-events: auto;
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(80, 96, 72, 0.28);
}
.add-task:active { transform: scale(0.96); }
.add-task .add-label { display: none; }
.add-task .add-plus {
  display: flex;
  width: 28px;
  height: 28px;
}
.add-task .add-plus svg {
  width: 28px;
  height: 28px;
  display: block;
  stroke: currentColor;
  stroke-width: 2.4;
}

.viewbar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 2px 16px 14px;
  overflow-x: auto;
}
.viewbar button, .viewbar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--card);
  color: var(--secondary);
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
}
.viewbar button.on {
  background: var(--accent);
  color: var(--on-accent);
}
.viewbar a:last-child {
  background: transparent;
  color: var(--accent);
  border-color: var(--separator);
}

.filter-bar {
  display: flex;
  gap: 8px;
  padding: 0 16px 10px;
  overflow-x: auto;
}
.filter-bar button {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--separator);
  background: transparent;
  color: var(--secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.filter-bar button.on {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}

.folders { padding-bottom: 8px; }
.folder-block {
  margin: 0 16px 12px;
  background: var(--card);
  border: 1px solid var(--separator);
  border-radius: 12px;
  overflow: hidden;
}
.folder-block.nested { margin: 8px 10px 10px; }
.folders.is-tree .folder-block.nested { margin-left: 22px; }
.folder-head {
  display: flex;
  align-items: stretch;
  background: var(--card);
  color: var(--label);
}
.folder-block.is-open > .folder-head { border-bottom: 1px solid var(--separator); }
.folder-toggle {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 8px 0 14px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.folder-chevron { color: var(--secondary); font-size: 12px; transition: transform 160ms ease; }
.folder-block.is-open > .folder-head .folder-chevron { transform: rotate(180deg); }
.folder-edit {
  width: 44px;
  display: grid;
  place-items: center;
  color: var(--secondary);
  text-decoration: none;
}
.folder-edit svg { width: 18px; height: 18px; }
.folder-mark { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.folder-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--fill);
  color: var(--secondary);
  font-size: 12px;
  font-weight: 650;
}
.folder-body .tasks { padding: 0; gap: 0; }
.folder-body .tasks li.row-item {
  min-height: 60px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--separator);
  box-shadow: none;
}
.folder-body .tasks li.row-item:last-child { border-bottom: 0; }
.folder-empty { margin: 0; padding: 14px 16px 16px; color: var(--secondary); font-size: 14px; }
.folder-title { margin: 18px 20px 8px; font-size: 13px; color: var(--secondary); font-weight: 650; }

.date-open, .cal {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--fill);
  color: var(--label);
}
.date-open { min-height: 52px; text-align: left; padding: 0 16px; font: inherit; font-size: 16px; font-weight: 650; }
.cal { margin-top: 12px; padding: 14px 10px 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.cal-head button {
  width: 40px;
  height: 40px;
  flex: none;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 18px;
}
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); align-items: center; }
.cal-week span { text-align: center; min-height: 32px; font-size: 12px; color: var(--secondary); font-weight: 650; }
.cal-grid button, .cal-grid span {
  width: 40px;
  height: 40px;
  margin: 2px auto;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--label);
  font: inherit;
  font-weight: 600;
}
.cal-grid button.on { background: var(--accent); color: var(--on-accent); }
.time-step { display: flex; justify-content: center; gap: 28px; margin-top: 16px; flex-wrap: wrap; }
.time-unit { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.time-unit > span { font-size: 12px; color: var(--secondary); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.time-ctrl { display: flex; align-items: center; gap: 8px; }
.time-ctrl b { min-width: 52px; text-align: center; font-size: 28px; line-height: 1; }
.time-ctrl button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--cta);
  color: var(--cta-ink);
  font-size: 22px;
}

.swatches, .icon-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch, .icon-pick label { position: relative; }
.swatch { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; cursor: pointer; }
.swatch input, .icon-pick input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.swatch:has(input:checked) { outline: 3px solid var(--accent); outline-offset: 2px; }
.icon-pick label {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--separator);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
}
.icon-pick label:has(input:checked) { border-color: var(--accent); outline: 2px solid var(--accent); }

.editor-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  overflow: visible;
}
.editor-bar .tool {
  min-width: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--label);
  font: inherit;
  cursor: pointer;
}
.editor-bar .tool:hover, .editor-bar .tool:focus-visible { background: var(--fill); color: var(--accent); }
.pop {
  position: absolute;
  z-index: 5;
  top: 42px;
  left: 0;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--separator);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.pop button {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--label);
  text-align: left;
  padding: 0 10px;
  font: inherit;
  cursor: pointer;
}
.pop button:hover { background: var(--fill); }

#quill-editor { min-height: 140px; }
.ql-toolbar { display: none; }
.ql-container.ql-snow { border: 0; font-size: 16px; color: var(--label); }
.ql-editor { min-height: 160px; padding: 8px 0 12px; }
.ql-editor.ql-blank::before { color: var(--secondary); font-style: normal; }

.field select {
  appearance: none;
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  padding: 0 44px 0 14px;
  border: 0;
  border-radius: 8px;
  background-color: var(--fill);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A746C' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  color: var(--label);
  font: inherit;
  font-weight: 500;
}

.file-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  margin-top: 6px;
  padding: 6px;
  border-radius: 10px;
  background: var(--fill);
}
.file-picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.file-btn, .file-caption { position: relative; pointer-events: none; }
.file-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 700;
}
.file-caption { color: var(--secondary); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.attach-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.attach-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--fill);
  color: var(--accent);
  text-decoration: none;
  font-weight: 650;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(100px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--label);
  color: #fff;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 650;
  z-index: 20;
}

[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-color-scheme: dark) {
  :root:not(.theme-light) {
    color-scheme: dark;
    --bg: #1c1a18;
    --bg-2: #1c1a18;
    --card: #262320;
    --bar: rgba(28, 26, 24, 0.94);
    --label: #f4f0ea;
    --secondary: #b0a89e;
    --separator: #3a352f;
    --accent: #c5d2bc;
    --accent-soft: #32382e;
    --on-accent: #1c1a18;
    --cta: #c5d2bc;
    --cta-ink: #1c1a18;
    --red: #f0a090;
    --fill: #2e2b27;
    --dock: #221f1c;
    --dock-ink: #b0a89e;
    --dock-on: #c5d2bc;
    --shadow: none;
    --shadow-soft: none;
  }
  :root:not(.theme-light) .ql-stroke { stroke: #f4f0ea; }
  :root:not(.theme-light) .ql-fill { fill: #f4f0ea; }
  :root:not(.theme-light) .add-task { color: #1c1a18; box-shadow: none; }
}

:root.theme-light {
  color-scheme: light;
  --bg: #f6f4f1;
  --bg-2: #f6f4f1;
  --card: #fffcf9;
  --bar: rgba(246, 244, 241, 0.94);
  --label: #2c2926;
  --secondary: #7a746c;
  --separator: #e6e1d8;
  --accent: #6d7f62;
  --accent-soft: #e7eee3;
  --on-accent: #ffffff;
  --cta: #6d7f62;
  --cta-ink: #ffffff;
  --red: #c45c4a;
  --fill: #f1eee8;
  --dock: #fffcf9;
  --dock-ink: #8a847b;
  --dock-on: #5f7056;
}

:root.theme-dark {
  color-scheme: dark;
  --bg: #1c1a18;
  --bg-2: #1c1a18;
  --card: #262320;
  --bar: rgba(28, 26, 24, 0.94);
  --label: #f4f0ea;
  --secondary: #b0a89e;
  --separator: #3a352f;
  --accent: #c5d2bc;
  --accent-soft: #32382e;
  --on-accent: #1c1a18;
  --cta: #c5d2bc;
  --cta-ink: #1c1a18;
  --red: #f0a090;
  --fill: #2e2b27;
  --dock: #221f1c;
  --dock-ink: #b0a89e;
  --dock-on: #c5d2bc;
  --shadow: none;
  --shadow-soft: none;
}
:root.theme-dark .ql-stroke { stroke: #f4f0ea; }
:root.theme-dark .ql-fill { fill: #f4f0ea; }
:root.theme-dark .add-task { color: #1c1a18; box-shadow: none; }
