:root {
  --bg: #f7f6f3;
  --paper: #ffffff;
  --paper-soft: #fbfaf8;
  --ink: #23211e;
  --ink-2: #5c5751;
  --ink-3: #96908a;
  --line: #e8e4de;
  --line-strong: #d8d2ca;
  --accent: #4f7a63;
  --accent-soft: #eaf1ec;
  --accent-ink: #ffffff;
  --danger: #c2603f;
  --danger-soft: #fbeee9;
  --gold: #b08a4b;
  --gold-soft: #f7efe1;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(40, 35, 25, 0.04), 0 6px 18px rgba(40, 35, 25, 0.045);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

:root[data-theme="dark"] {
  --bg: #1e1e20;
  --paper: #2c2c2e;
  --paper-soft: #262628;
  --ink: #f2f1ef;
  --ink-2: #b9b5b0;
  --ink-3: #807b76;
  --line: #3a3a3d;
  --line-strong: #4a4a4e;
  --accent: #8fc0a4;
  --accent-soft: #223028;
  --accent-ink: #14231b;
  --danger: #e08a6c;
  --danger-soft: #3a2823;
  --gold: #d3b078;
  --gold-soft: #332b1f;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 6px 18px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  padding-bottom: calc(76px + var(--safe-b));
}

.hidden {
  display: none !important;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: 16px; /* iOS 不放大 */
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ============ 顶部 ============ */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.top-in {
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.brand .date {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0;
  margin-left: 10px;
}

.top-act {
  display: flex;
  gap: 4px;
  align-items: center;
}


.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  font-size: 16px;
  transition: background 0.15s;
}

.icon-btn:hover {
  background: var(--paper);
}

/* ============ 主体 ============ */
.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 22px 20px 40px;
}

.zone-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.zone-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.zone-head .sub {
  margin-top: 2px;
  font-size: 13px;
  color: var(--ink-3);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============ 表单 ============ */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > label {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.4;
}

.inline-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 1 auto;
}

.inline-field > label {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.4;
}

.inline-field > .btn,
.inline-field > input {
  height: 42px;
}

.inline-field > input {
  padding: 0 12px;
}

input[type="text"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--paper-soft);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  font-size: 16px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  background: var(--paper);
}

textarea {
  resize: vertical;
  line-height: 1.7;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.row > .field {
  flex: 1 1 140px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14.5px;
  font-weight: 500;
  transition: opacity 0.15s, transform 0.06s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.985);
}

.btn:hover {
  opacity: 0.92;
}

.btn.ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
}

.btn.ghost:hover {
  background: var(--paper-soft);
  opacity: 1;
}

.btn.sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 8px;
}

.btn.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.btn:disabled {
  opacity: 0.45;
  cursor: default;
}

/* ============ 存钱 ============ */
.total {
  background: linear-gradient(135deg, var(--accent-soft), var(--paper) 72%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
}

.total .lbl {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}

.total .num {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  margin-top: 4px;
}

.total .num small {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-2);
  margin-right: 2px;
}

.total .meta {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 4px;
}

.sv-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
}

.sv-item:last-child {
  border-bottom: none;
}

.sv-day {
  font-size: 12.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  width: 74px;
  flex: none;
}

.sv-note {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sv-note em {
  font-style: normal;
  color: var(--ink-3);
  font-size: 13px;
}

.sv-amt {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--gold);
  flex: none;
}

.sv-del {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--ink-3);
  display: grid;
  place-items: center;
  font-size: 15px;
}

.sv-del:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.empty {
  text-align: center;
  color: var(--ink-3);
  font-size: 13.5px;
  padding: 26px 10px;
  line-height: 1.9;
}

/* ============ 当日 ============ */
.day-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.day-switch .today-badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}

#daily-text {
  min-height: 140px;
}

.save-hint {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 20px;
}

.save-hint .ok {
  color: var(--accent);
}

.todo-add {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.todo-add input {
  flex: 1;
}

.todo-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.todo {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
}

.todo:last-child {
  border-bottom: none;
}

.chk {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.6px solid var(--line-strong);
  margin-top: 3px;
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 13px;
  transition: all 0.15s;
}

.todo.done .chk {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.todo-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  padding-top: 1px;
}

.todo.done .todo-text {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: var(--line-strong);
}

.todo-act {
  flex: none;
  display: flex;
  gap: 2px;
  opacity: 0.7;
}

.todo-act button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--ink-3);
  font-size: 13px;
  display: grid;
  place-items: center;
}

.todo-act button:hover {
  background: var(--paper-soft);
  color: var(--ink);
}

.todo-act button.del:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.todo-progress {
  font-size: 12.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* ============ 计划 ============ */
.plan {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--paper-soft);
  margin-bottom: 10px;
}

.plan:last-child {
  margin-bottom: 0;
}

.plan-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.plan-title {
  flex: 1;
  font-weight: 600;
  font-size: 15px;
  word-break: break-word;
}

.plan.finished .plan-title {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: var(--line-strong);
}

.plan-detail {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-top: 4px;
  white-space: pre-wrap;
  word-break: break-word;
}

.plan-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

@media (max-width: 520px) {
  .plan-meta {
    flex-wrap: nowrap;
  }
  .plan-meta .chip {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .plan-meta .bar {
    flex: 0 1 60px;
    min-width: 40px;
  }
}

.chip {
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.chip.warn {
  color: var(--danger);
  border-color: var(--danger-soft);
  background: var(--danger-soft);
}

.chip.done-chip {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: transparent;
}

.bar {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  flex: 1;
  min-width: 90px;
}

.bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.3s;
}

.plan-pct {
  font-size: 12.5px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  width: 40px;
  text-align: right;
}

.plan-acts {
  display: flex;
  gap: 2px;
  flex: none;
}

.plan-acts button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--ink-3);
  font-size: 13px;
  display: grid;
  place-items: center;
}

.plan-acts button:hover {
  background: var(--paper);
  color: var(--ink);
}

.plan-acts button.del:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

details.plan-edit {
  margin-top: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

details.plan-edit summary {
  font-size: 12.5px;
  color: var(--ink-3);
  cursor: pointer;
  list-style: none;
}

details.plan-edit summary::-webkit-details-marker {
  display: none;
}

details.plan-edit .body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
}

/* ============ 感悟 ============ */
.notes-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: start;
}

.folder-panel {
  position: sticky;
  top: 84px;
}

.folder-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.folder-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.folder-item {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--ink-2);
  text-align: left;
  transition: background 0.15s;
}

.folder-item:hover {
  background: var(--paper-soft);
}

.folder-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.folder-item .nm {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-item .ct {
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.folder-del {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 7px;
  color: var(--ink-3);
  font-size: 13px;
  opacity: 0;
  display: grid;
  place-items: center;
}

.folder-list li:hover .folder-del {
  opacity: 1;
}

.folder-del:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.folder-add {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.folder-add input {
  padding: 7px 10px;
  font-size: 14px;
}

.notes-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.notes-toolbar input[type="search"] {
  flex: 1;
  min-width: 140px;
  border: 1px solid var(--line-strong);
  background: var(--paper-soft);
  border-radius: 10px;
  padding: 9px 12px;
  outline: none;
}

.note-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.note-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow);
}

.note-card:hover {
  border-color: var(--line-strong);
}

.note-card h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  word-break: break-word;
}

.note-card .preview {
  font-size: 13.5px;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}

.note-card .meta {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 8px;
  display: flex;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}

.date-group {
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 18px 0 10px;
  padding-left: 2px;
  letter-spacing: 0.03em;
}

.date-group:first-child {
  margin-top: 0;
}

/* 编辑器 */
.editor-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  overflow-y: auto;
  padding: 0;
}

.editor {
  max-width: 760px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px 20px calc(24px + var(--safe-b));
}

.editor-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  padding: 4px 0 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.editor-head .spacer {
  flex: 1;
}

.editor-head .row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.editor input.title-input {
  border: none;
  background: transparent;
  font-size: 22px;
  font-weight: 600;
  padding: 4px 0;
  border-radius: 0;
  border-bottom: 1px solid transparent;
}

.editor input.title-input:focus {
  border-bottom-color: var(--line-strong);
  background: transparent;
}

.editor textarea.body-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  line-height: 1.85;
  padding: 12px 0;
  min-height: 32vh;
  resize: none;
}

.editor textarea.body-input:focus {
  background: transparent;
}

.editor-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-variant-numeric: tabular-nums;
}

.editor-meta select {
  width: auto;
  padding: 5px 8px;
  font-size: 13px;
  border-radius: 8px;
}

/* ============ 感悟图片 ============ */
.note-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0 6px;
  border-top: 1px dashed var(--line);
  margin-top: 8px;
}

.note-images:empty {
  display: none;
}

.note-img {
  position: relative;
  width: 116px;
  height: 116px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  flex: none;
}

.note-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.note-img .rm {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(20, 18, 16, 0.55);
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
  backdrop-filter: blur(2px);
}

.note-img .rm:hover {
  background: var(--danger);
}

.note-img.uploading::after {
  content: "上传中…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  color: var(--ink-2);
}

:root[data-theme="dark"] .note-img.uploading::after {
  background: rgba(30, 30, 32, 0.72);
}

.img-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px 0 12px;
}

.img-tools .btn {
  cursor: pointer;
}

.img-tip {
  font-size: 12px;
  color: var(--ink-3);
}

/* 卡片上的图片角标 */
.note-card .meta .imgs {
  color: var(--accent);
}

/* 大图浏览 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 13, 12, 0.92);
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  object-fit: contain;
}

.lb-close {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 16px;
  display: grid;
  place-items: center;
}

/* ============ 底部导航 ============ */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}

.tabbar-in {
  display: flex;
  width: 100%;
  max-width: 520px;
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 9px 4px 8px;
  color: var(--ink-3);
  font-size: 11.5px;
  transition: color 0.15s;
}

.tab svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.7;
}

.tab.active {
  color: var(--accent);
  font-weight: 600;
}

/* 深色下主题色偏亮，按钮文字改用深色 */
:root[data-theme="dark"] .btn:not(.ghost) {
  color: var(--accent-ink);
}

/* ============ 弹层 ============ */
.cfm {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(28, 25, 22, 0.28);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fade 0.16s ease;
}

.cfm-box {
  background: var(--paper);
  border-radius: 16px;
  padding: 22px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 20px 50px rgba(20, 15, 10, 0.2);
}

.cfm-box p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
}

.cfm-box .acts {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cfm-box .acts .btn {
  flex: 1;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + var(--safe-b));
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 999px;
  z-index: 120;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  max-width: 80vw;
  text-align: center;
}

.toast.show {
  opacity: 0.94;
  transform: translateX(-50%) translateY(-4px);
}

/* ============ 登录 ============ */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-box {
  width: 100%;
  max-width: 340px;
  text-align: center;
}

.login-box .mark {
  font-size: 34px;
  margin-bottom: 10px;
}

.login-box h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
}

.login-box p.sub {
  font-size: 13.5px;
  color: var(--ink-3);
  margin: 0 0 24px;
}

.login-box input {
  text-align: center;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.login-box .btn {
  width: 100%;
}

.login-err {
  color: var(--danger);
  font-size: 13px;
  min-height: 20px;
  margin-top: 10px;
}

/* ============ 响应式 ============ */
@media (max-width: 720px) {
  .wrap {
    padding: 18px 14px 30px;
  }
  .top-in {
    padding: 12px 14px;
  }
  .brand .date {
    display: none;
  }
  .notes-layout {
    grid-template-columns: 1fr;
  }
  .folder-panel {
    position: static;
  }
  .folder-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .folder-list li {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
  }
  .folder-item {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 999px;
  }
  .folder-del {
    opacity: 1;
    width: 20px;
  }
  .total .num {
    font-size: 29px;
  }
  .row.stack-sm {
    flex-direction: column;
  }
  .row.stack-sm > .field,
  .row.stack-sm > .inline-field {
    flex: 1 1 auto;
    width: 100%;
  }
  .row > .inline-field.save-line > .btn {
    width: 100%;
  }
  .sv-day {
    width: 62px;
  }
  .editor {
    padding: 14px 16px calc(24px + var(--safe-b));
  }
  .editor input.title-input {
    font-size: 19px;
  }
}

@media (min-width: 721px) {
  .tab .lbl-short {
    display: none;
  }
}
