/* Local, soft handwritten typography; no network font dependency. */
:root {
  --desk: #f8f4e9;
  --paper: #fffdf7;
  --paper-warm: #fff9ef;
  --paper-pink: #fff7f9;
  --paper-mint: #f4fbf6;
  --ink: #4b5d50;
  --ink-strong: #34473a;
  --ink-soft: #7d8d80;
  --line: #dfe9df;
  --line-strong: #c9dccf;
  --pink: #f293ad;
  --pink-deep: #db718f;
  --pink-dark: #bd5875;
  --pink-soft: #ffe7ef;
  --pink-pale: #fff2f6;
  --pink-line: #f2b9c9;
  --mint: #7ec596;
  --mint-deep: #559b6c;
  --mint-dark: #3d7c53;
  --mint-soft: #e7f6ec;
  --mint-pale: #f3fbf5;
  --mint-line: #b8ddc4;
  --butter: #ffe4a2;
  --butter-deep: #d7a84e;
  --butter-soft: #fff6dc;
  --sky: #d8edf4;
  --sky-deep: #5d9bb1;
  --lavender: #e9e3fb;
  --lavender-deep: #8172bd;
  --orange: #f3ad78;
  --danger: #d9657b;
  --outline: #5b6d5f;
  --outline-soft: #7f9283;
  --font-display: "YouYuan", "幼圆", "ZCOOL KuaiLe", "KaiTi", "Microsoft YaHei", sans-serif;
  --font-body: "Nunito", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-hand: "Segoe Print", "Comic Sans MS", "YouYuan", cursive;
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --shadow-paper: 0 14px 34px rgba(94, 108, 88, .09), 0 2px 0 rgba(255, 255, 255, .85) inset;
  --shadow-sticker: 5px 6px 0 rgba(161, 178, 158, .15);
  --sidebar-w: 258px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  background-color: var(--desk);
  background-image:
    radial-gradient(circle at 13% 8%, rgba(255, 205, 220, .28), transparent 23rem),
    radial-gradient(circle at 89% 12%, rgba(186, 230, 202, .34), transparent 27rem),
    radial-gradient(circle at 72% 86%, rgba(255, 230, 170, .18), transparent 22rem),
    radial-gradient(rgba(126, 154, 132, .14) 1px, transparent 1.35px);
  background-size: auto, auto, auto, 20px 20px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; }
[hidden] { display: none !important; }
::selection { background: #ffd5e1; color: var(--ink-strong); }
:focus-visible { outline: 3px solid rgba(240, 143, 172, .42); outline-offset: 2px; }

.icon {
  width: 20px;
  height: 20px;
  display: block;
  flex: none;
  stroke-width: 1.8;
}
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: #d7e5da transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #d7e5da; border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* =========================================================
   Shell & sidebar
   ========================================================= */

.app {
  width: min(1660px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
  margin: 16px 0 16px 16px;
  padding: 22px 17px 16px;
  display: flex;
  flex-direction: column;
  border: 2px solid #f2d4dc;
  border-radius: 30px 26px 32px 24px / 26px 32px 26px 30px;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(160, 180, 158, .12) 1px, transparent 1.1px),
    linear-gradient(180deg, rgba(255, 245, 248, .8), rgba(255, 253, 247, .6) 38%, rgba(245, 252, 246, .7));
  background-size: 16px 16px, auto;
  box-shadow: 7px 8px 0 rgba(241, 190, 203, .22), var(--shadow-paper);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  z-index: 5;
}
.sidebar::-webkit-scrollbar { display: none; }
.sidebar-tape {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 92px;
  height: 23px;
  transform: translateX(-50%) rotate(-2deg);
  background: repeating-linear-gradient(45deg, rgba(247, 179, 198, .54) 0 8px, rgba(255, 230, 238, .66) 8px 16px);
  border-left: 1px dashed rgba(219, 138, 160, .35);
  border-right: 1px dashed rgba(219, 138, 160, .35);
  clip-path: polygon(3% 7%, 98% 0, 94% 92%, 6% 100%, 0 55%);
  opacity: .9;
  pointer-events: none;
}
.sidebar-doodle {
  position: absolute;
  color: #e9b1c0;
  font-family: var(--font-hand);
  font-size: 22px;
  pointer-events: none;
  opacity: .55;
}
.sidebar-doodle-star { top: 82px; right: 14px; transform: rotate(12deg); }
.sidebar-doodle-heart { top: 236px; left: 8px; color: #a9d6b6; font-size: 24px; transform: rotate(-14deg); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px 15px;
  border-bottom: 1.5px dashed #eccbd4;
}
.brand-mark {
  width: 51px;
  height: 51px;
  flex: none;
  display: grid;
  place-items: center;
  background: #fff9f2;
  border: 1.7px dashed #f0bcca;
  border-radius: 19px 16px 18px 17px;
  transform: rotate(-4deg);
  box-shadow: 3px 3px 0 #ffe0e8;
}
.brand-mark svg { width: 43px; height: 43px; overflow: visible; }
.brand-mark img { width: 47px; height: 47px; object-fit: contain; display: block; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-copy strong {
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: .3px;
  color: var(--ink-strong);
  white-space: nowrap;
}
.brand-copy span {
  margin-top: 3px;
  font-family: var(--font-hand);
  font-size: 10px;
  letter-spacing: 2.2px;
  color: var(--pink-deep);
}

.new-task-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 15px 0 13px;
  padding: 9px 12px 9px 9px;
  border: 1.8px dashed #e5a8b8;
  border-radius: 17px 20px 16px 19px;
  background: #ffe7ee;
  color: #8a5361;
  font-family: var(--font-display);
  font-size: 15px;
  box-shadow: 3px 4px 0 rgba(237, 182, 195, .45);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.new-task-btn:hover { transform: translate(-1px, -2px) rotate(-.4deg); background: #ffe0ea; box-shadow: 4px 6px 0 rgba(237, 182, 195, .45); }
.new-task-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(237, 182, 195, .4); }
.new-task-plus {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  border: 1.5px dashed #e5a8b8;
  background: #fffdf7;
}
.new-task-plus .icon { width: 17px; height: 17px; }
.new-task-spark { margin-left: auto; color: #db8fa1; font-family: var(--font-hand); font-size: 18px; }

.main-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  border: 1.6px dashed transparent;
  border-radius: 15px 17px 14px 18px;
  background: transparent;
  color: #637266;
  text-align: left;
  font-family: var(--font-display);
  font-size: 15px;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}
.nav-item:hover {
  background: #fff6f8;
  border-color: #f3ced9;
  color: var(--ink-strong);
  transform: translateX(2px) rotate(-.2deg);
}
.nav-item.is-active {
  background: #ffe5ed;
  border-color: #e9aabb;
  color: #7d4d5b;
  transform: rotate(-.45deg);
  box-shadow: 3px 3px 0 rgba(241, 194, 206, .5);
}
.nav-icon {
  width: 33px;
  height: 33px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px dashed #d7e4d9;
  background: #fffdf8;
  color: var(--mint-deep);
  transition: transform .18s ease, background .18s ease;
}
.nav-icon .icon { width: 17px; height: 17px; }
.nav-item:hover .nav-icon { transform: rotate(-7deg) scale(1.04); }
.nav-item.is-active .nav-icon { border-color: #e4b5c1; background: #fffaf6; color: var(--pink-deep); transform: rotate(-5deg); }
.nav-item[data-view="today"] .nav-icon { color: #c99a3f; background: #fff9e8; }
.nav-item[data-view="routines"] .nav-icon { color: var(--mint-deep); background: #effaf2; }
.nav-item[data-view="ledger"] .nav-icon { color: #a98731; background: #fff9e9; }
.nav-item[data-view="timer"] .nav-icon { color: #c27588; background: #fff2f6; }
.nav-item[data-view="inbox"] .nav-icon { color: var(--lavender-deep); background: #f6f2ff; }
.nav-item[data-view="important"] .nav-icon { color: var(--pink-deep); background: #fff3f6; }
.nav-item[data-view="completed"] .nav-icon { color: var(--sky-deep); background: #f0fafd; }
.nav-label { flex: 1; min-width: 0; white-space: nowrap; }
.nav-count {
  min-width: 23px;
  height: 21px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  border: 1px solid #e0eadd;
  background: rgba(255, 253, 246, .8);
  color: #879487;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
}
.nav-item.is-active .nav-count { border-color: #e9b5c1; background: #fffaf6; color: var(--pink-deep); }
.nav-count.is-zero { opacity: .6; }

.sidebar-section {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1.5px dashed #dbe8dc;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 7px 7px;
  color: #97a29a;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .7px;
}
.section-doodle { color: #e2a9b7; font-size: 14px; }
.category-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 6px 9px;
  border: 1.5px dashed transparent;
  border-radius: 12px;
  background: transparent;
  color: #708075;
  font-family: var(--font-display);
  font-size: 14px;
  text-align: left;
  transition: background .16s ease, border-color .16s ease;
}
.category-nav:hover { background: #fbfdf9; border-color: #d8e8dc; }
.category-nav.is-active { background: #effaf2; border-color: #b9dec5; color: #4f765b; transform: rotate(.25deg); }
.category-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; border: 1px solid rgba(75, 93, 80, .18); }
.dot-study { background: #9bd8ae; }
.dot-work { background: #f3adc0; }
.dot-life { background: #f2d488; }
.dot-idea { background: #bfb3ea; }
.category-count { margin-left: auto; color: #a5afa6; font-family: var(--font-body); font-size: 10px; font-weight: 800; }
.category-nav.is-active .category-count { color: #6e8a76; }

.sidebar-bottom { margin-top: auto; padding-top: 18px; }
.streak-card {
  position: relative;
  min-height: 130px;
  padding: 13px 12px;
  overflow: hidden;
  border: 1.7px dashed #efc0cc;
  border-radius: 20px 17px 21px 18px;
  background: #fff3f6;
  box-shadow: 3px 4px 0 rgba(239, 195, 204, .32);
  transform: rotate(-.45deg);
}
.streak-card::after {
  content: "✦";
  position: absolute;
  top: 8px;
  right: 11px;
  color: #e8b5c1;
  font-family: var(--font-hand);
  font-size: 14px;
}
.streak-copy { position: relative; z-index: 2; width: 72%; }
.streak-kicker {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #c38394;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
}
.streak-kicker .icon { width: 12px; height: 12px; }
.streak-copy strong {
  display: block;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  color: #72545b;
  line-height: 1.35;
}
.streak-copy strong b { color: var(--pink-deep); font-size: 20px; }
.streak-copy p { margin-top: 4px; font-size: 9.5px; line-height: 1.5; color: #ad8f95; }
.streak-bunny {
  position: absolute;
  right: -4px;
  bottom: -5px;
  width: 86px;
  height: 75px;
  opacity: .95;
  transform: rotate(2deg);
}
.streak-bunny svg { width: 100%; height: 100%; overflow: visible; }
.streak-bunny img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sidebar-sign {
  margin: 10px 0 0;
  text-align: center;
  color: #b0aba1;
  font-family: var(--font-hand);
  font-size: 10.5px;
  letter-spacing: .4px;
}
.sidebar-sign span { color: #e2a4b4; font-size: 13px; }

/* =========================================================
   Main + topbar
   ========================================================= */

.main {
  min-width: 0;
  padding: 20px 28px 28px;
}
.topbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.breadcrumb {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #919c93;
  font-size: 12px;
  white-space: nowrap;
}
.breadcrumb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f4b3c3;
  border: 1px solid rgba(99, 114, 101, .2);
  box-shadow: 0 0 0 4px rgba(255, 227, 234, .55);
}
.breadcrumb strong { color: var(--ink-strong); font-family: var(--font-display); font-weight: 400; font-size: 14px; }
.breadcrumb-chevron { width: 12px; height: 12px; color: #c2cdc3; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.search-box {
  width: 260px;
  height: 39px;
  padding: 0 10px 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1.6px dashed #cfdfd2;
  border-radius: 14px 17px 14px 16px;
  background: rgba(255, 253, 246, .84);
  color: #8b998e;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.search-box:focus-within { border-color: #e8adbd; background: #fffdf8; box-shadow: 0 0 0 4px rgba(255, 229, 237, .55); }
.search-box .icon { width: 17px; height: 17px; color: #9caa9e; }
.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
  color: var(--ink);
}
.search-box input::placeholder { color: #a3ada4; }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-box kbd {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid #e3eae1;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #fbf7ed;
  color: #a7b0a7;
  font-family: var(--font-hand);
  font-size: 10px;
}
.icon-button {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1.6px dashed #e5cfd4;
  border-radius: 50%;
  background: #fffaf4;
  color: #8f9b90;
  transition: transform .18s ease, background .18s ease;
}
.icon-button:hover { transform: rotate(-6deg); background: #fff2f6; }
.icon-button .icon { width: 18px; height: 18px; }
.bell-button { position: relative; }
.bell-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  border: 1.4px solid #fffaf4;
}
.sync-button {
  position: relative;
  width: auto;
  min-width: 65px;
  padding: 0 11px 0 9px;
  display: inline-flex;
  gap: 5px;
  border-radius: 14px 16px 13px 15px;
}
.sync-button .icon { width: 16px; height: 16px; color: #7c9e85; }
.sync-label {
  color: #7d8f81;
  font-family: var(--font-display);
  font-size: 10px;
  line-height: 1;
}
.sync-status-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #fffaf4;
  background: #c6d0c6;
  transition: background .2s ease, transform .2s ease;
}
.sync-status-dot.is-synced { background: #78c38f; }
.sync-status-dot.is-syncing { background: #e6b85e; animation: syncPulse 1.2s ease-in-out infinite; }
.sync-status-dot.is-error, .sync-status-dot.is-conflict { background: #df7c92; }
.sync-status-dot.is-local { background: #c6d0c6; }
.profile-chip {
  height: 44px;
  padding: 3px 10px 3px 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.6px dashed #e2d9c9;
  border-radius: 23px;
  background: rgba(255, 252, 244, .88);
}
.profile-avatar { width: 36px; height: 36px; flex: none; }
.profile-avatar svg { width: 100%; height: 100%; display: block; }
.profile-avatar img { width: 100%; height: 100%; display: block; object-fit: contain; }
.profile-copy { display: flex; flex-direction: column; line-height: 1.15; }
.profile-copy b { font-family: var(--font-display); font-size: 12.5px; font-weight: 400; color: var(--ink-strong); }
.profile-copy small { margin-top: 3px; font-size: 8.5px; color: #a0aa9f; }
.profile-chevron { width: 12px; height: 12px; color: #a9b2a9; }

/* =========================================================
   Hello / day overview
   ========================================================= */

.hello-card {
  position: relative;
  min-height: 216px;
  margin-top: 5px;
  padding: 26px 29px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  align-items: center;
  gap: 12px;
  border: 2px solid #e1d9c7;
  border-radius: 34px 30px 36px 27px / 29px 36px 28px 34px;
  background-color: #fffdf6;
  background-image:
    radial-gradient(rgba(150, 176, 152, .15) 1px, transparent 1.1px),
    linear-gradient(112deg, rgba(255, 248, 231, .92) 0%, rgba(238, 250, 241, .9) 48%, rgba(255, 237, 243, .94) 100%);
  background-size: 17px 17px, auto;
  box-shadow: 7px 8px 0 rgba(200, 193, 164, .16), var(--shadow-paper);
  overflow: hidden;
}
.hello-card::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 38px;
  width: 84px;
  height: 24px;
  transform: rotate(-2deg);
  background: repeating-linear-gradient(90deg, rgba(255, 227, 166, .62) 0 7px, rgba(255, 244, 209, .76) 7px 14px);
  clip-path: polygon(2% 12%, 98% 0, 96% 92%, 3% 100%);
  border-left: 1px solid rgba(214, 185, 120, .28);
  border-right: 1px solid rgba(214, 185, 120, .28);
  z-index: 2;
}
.hello-card::after {
  content: "";
  position: absolute;
  right: 215px;
  bottom: 16px;
  width: 88px;
  height: 20px;
  transform: rotate(-4deg);
  background: repeating-linear-gradient(45deg, rgba(188, 229, 201, .25) 0 6px, transparent 6px 12px);
  border-radius: 50%;
  opacity: .8;
}
.hello-copy { position: relative; z-index: 3; }
.hello-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b9853f;
  font-family: var(--font-hand);
  font-size: 12px;
  letter-spacing: .8px;
  background: #fff4c9;
  padding: 2px 9px 1px;
  border-radius: 6px 9px 6px 8px;
  transform: rotate(-1deg);
  box-shadow: 2px 2px 0 rgba(233, 203, 132, .2);
}
.hello-date .icon { width: 14px; height: 14px; }
.hello-copy h1 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(33px, 3.2vw, 46px);
  line-height: 1.17;
  letter-spacing: -.5px;
  color: var(--ink-strong);
}
.hello-copy h1 em {
  position: relative;
  display: inline-block;
  padding: 0 6px 1px;
  color: #c75f7e;
  font-style: normal;
  z-index: 1;
}
.hello-copy h1 em::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 5px;
  height: 13px;
  border-radius: 50%;
  background: #ffd8e3;
  transform: rotate(-1.2deg);
  z-index: -1;
}
.title-sprout { display: inline-block; margin-left: 3px; font-size: 22px; transform: rotate(-9deg); vertical-align: 8px; }
.hello-sub {
  margin-top: 7px;
  color: #7d897d;
  font-size: 13px;
  letter-spacing: .1px;
}
.hello-chips { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 8px; }
.soft-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  border-radius: 10px 13px 9px 12px;
  border: 1.3px dashed;
  font-size: 10.5px;
  color: #6d7e70;
  transform: rotate(-.5deg);
}
.soft-chip .icon { width: 13px; height: 13px; }
.soft-chip b { font-family: var(--font-body); font-size: 13px; margin-left: 2px; }
.chip-mint { border-color: #bfdec7; background: #f1fbf4; }
.chip-mint .icon, .chip-mint b { color: var(--mint-deep); }
.chip-pink { border-color: #edc3ce; background: #fff5f8; transform: rotate(.6deg); }
.chip-pink .icon, .chip-pink b { color: var(--pink-deep); }
.hero-progress-wrap { width: min(335px, 90%); margin-top: 17px; }
.hero-progress-label { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 5px; color: #8b978b; font-size: 10px; }
.hero-progress-label strong { font-family: var(--font-hand); font-size: 12px; color: #78937f; letter-spacing: .5px; }
.hero-progress {
  position: relative;
  height: 15px;
  padding: 3px;
  border: 1.5px dashed #e9bfca;
  border-radius: 99px;
  background: #fffdf8;
}
.hero-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: repeating-linear-gradient(120deg, #f6a9bd 0 8px, #f7b7c8 8px 15px);
  transition: width .55s cubic-bezier(.22, .8, .35, 1);
}
.progress-pig {
  position: absolute;
  top: 50%;
  left: 0;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  transform: translate(-45%, -50%) rotate(-4deg);
  background: #fff7f3;
  border: 1.5px solid #e0a0b0;
  box-shadow: 0 2px 0 rgba(96, 119, 99, .15);
  transition: left .55s cubic-bezier(.22, .8, .35, 1);
  pointer-events: none;
  display: grid;
  place-items: center;
}
.progress-pig img { width: 25px; height: 25px; object-fit: contain; display: block; }
.hello-doodle { position: absolute; pointer-events: none; font-family: var(--font-hand); }
.doodle-star { top: 22px; right: 31px; color: #e4ba55; font-size: 27px; transform: rotate(12deg); opacity: .85; }
.doodle-heart { bottom: 20px; left: 47%; color: #e7a3b4; font-size: 20px; transform: rotate(-12deg); opacity: .7; }
.hero-art {
  position: relative;
  align-self: end;
  justify-self: center;
  width: 100%;
  max-width: 470px;
  margin-bottom: -29px;
  margin-right: -12px;
}
.hero-art::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 2%;
  bottom: 12%;
  height: 58%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 220, 229, .62), rgba(255, 238, 241, 0) 70%);
  filter: blur(14px);
  z-index: 0;
  pointer-events: none;
}
.hero-art-svg { display: none; }
.hero-pig-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: saturate(1.16) contrast(1.04) drop-shadow(4px 7px 1px rgba(209, 167, 166, .09));
}
.hero-speech {
  position: absolute;
  top: 2px;
  right: 4px;
  z-index: 2;
  padding: 8px 12px 7px;
  border: 1.6px dashed #eab5c2;
  border-radius: 14px 12px 14px 4px;
  background: #fffaf6;
  color: #9d6b77;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  transform: rotate(2deg);
  box-shadow: 3px 3px 0 rgba(239, 193, 205, .26);
}
.hero-speech::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -7px;
  width: 10px;
  height: 10px;
  border-right: 1.6px dashed #eab5c2;
  border-bottom: 1.6px dashed #eab5c2;
  background: #fffaf6;
  transform: rotate(45deg);
}
.hero-speech span { color: var(--pink-deep); }
.hero-tomato { transform-origin: 322px 185px; animation: tomatoBob 5s ease-in-out infinite; }
.cloud-one { animation: floatCloud 8s ease-in-out infinite; }
.cloud-two { animation: floatCloud 10s ease-in-out infinite reverse; }

/* =========================================================
   Shared content + panel headers
   ========================================================= */

.content-grid {
  margin-top: 23px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 344px;
  gap: 23px;
  align-items: start;
}
.todo-panel, .routine-panel, .ledger-panel {
  position: relative;
  min-width: 0;
  border: 2px solid #c4dfcd;
  border-radius: 30px 26px 32px 25px / 26px 31px 25px 30px;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(146, 171, 149, .12) 1px, transparent 1.1px),
    linear-gradient(180deg, #fffdf7 0%, #fffdf8 100%);
  background-size: 17px 17px, auto;
  box-shadow: 6px 7px 0 rgba(184, 208, 189, .17), var(--shadow-paper);
  padding: 25px 25px 17px;
}
.todo-panel::before, .routine-panel::before, .ledger-panel::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 48%;
  width: 78px;
  height: 24px;
  transform: translateX(-50%) rotate(-1.5deg);
  background: repeating-linear-gradient(45deg, rgba(250, 199, 212, .55) 0 7px, rgba(255, 237, 242, .7) 7px 14px);
  border-left: 1px dashed rgba(223, 161, 177, .35);
  border-right: 1px dashed rgba(223, 161, 177, .35);
  clip-path: polygon(2% 8%, 98% 0, 95% 94%, 4% 100%);
  z-index: 3;
}
.routine-panel::before { background: repeating-linear-gradient(45deg, rgba(181, 225, 196, .55) 0 7px, rgba(237, 250, 241, .78) 7px 14px); }
.ledger-panel::before { background: repeating-linear-gradient(45deg, rgba(255, 222, 148, .6) 0 7px, rgba(255, 244, 210, .8) 7px 14px); }

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.section-kicker {
  font-family: var(--font-hand);
  font-size: 10.5px;
  letter-spacing: 1.8px;
  color: #a3afa4;
  line-height: 1.2;
}
.panel-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 3px; }
.panel-title-line h2, .routine-panel h2, .ledger-panel h2 {
  position: relative;
  display: inline-block;
  padding: 0 4px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: .2px;
  color: var(--ink-strong);
  z-index: 1;
}
.panel-title-line h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 11px;
  background: #ffe9a9;
  border-radius: 3px 6px 4px 5px;
  transform: rotate(-.8deg);
  z-index: -1;
  opacity: .8;
}
.list-date-pill {
  display: inline-block;
  padding: 3px 9px 2px;
  border: 1.3px dashed #d8e5d8;
  border-radius: 8px 10px 7px 9px;
  background: #f7fbf5;
  color: #8a9a8c;
  font-size: 9.5px;
  white-space: nowrap;
  transform: rotate(.6deg);
}
.panel-sub { margin-top: 6px; color: #939f94; font-size: 11.5px; }
.panel-actions { display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border: 1.5px dashed #c9dfd0;
  border-radius: 10px 13px 10px 12px;
  background: #f5fcf6;
  color: #6e8e76;
  font-size: 10.5px;
  transition: background .16s ease, transform .16s ease;
}
.ghost-button:hover { background: #ecf9ef; transform: rotate(-1deg); }
.ghost-button .icon { width: 14px; height: 14px; }
.round-action {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1.7px dashed #e9b4c2;
  border-radius: 50% 46% 52% 45%;
  background: #fff2f6;
  color: #c26c83;
  box-shadow: 2px 3px 0 rgba(239, 195, 204, .28);
  transform: rotate(3deg);
  transition: transform .18s ease, background .18s ease;
}
.round-action:hover { transform: rotate(-8deg) scale(1.05); background: #ffe8f0; }
.round-action .icon { width: 18px; height: 18px; }
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 37px;
  padding: 7px 14px;
  border: 1.7px dashed #dc9eb0;
  border-radius: 13px 16px 12px 15px;
  background: #ffe5ed;
  color: #95596a;
  font-family: var(--font-display);
  font-size: 12.5px;
  box-shadow: 3px 4px 0 rgba(239, 195, 204, .36);
  transition: transform .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.primary-button:hover { transform: translateY(-1px) rotate(-.6deg); box-shadow: 4px 5px 0 rgba(239, 195, 204, .36); }
.primary-button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(239, 195, 204, .36); }
.primary-button .icon { width: 15px; height: 15px; }

/* =========================================================
   Quick add + task toolbar
   ========================================================= */

.quick-add {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 19px;
  padding: 8px 9px 8px 11px;
  border: 1.8px dashed #b8ddc4;
  border-radius: 18px 21px 17px 20px;
  background: #f8fdf8;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.quick-add:focus-within { border-color: #e8aebb; background: #fffdf9; box-shadow: 0 0 0 5px rgba(255, 234, 240, .55); }
.quick-add-icon {
  width: 29px;
  height: 29px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.4px dashed #d8e6d9;
  border-radius: 50%;
  background: #fffdf7;
  color: var(--mint-deep);
}
.quick-add-icon .icon { width: 16px; height: 16px; }
.quick-input {
  flex: 1;
  min-width: 90px;
  height: 29px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12.5px;
  color: var(--ink);
}
.quick-input::placeholder { color: #a7b3a8; }
.quick-select-wrap {
  position: relative;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 23px 0 9px;
  border: 1.3px dashed #e4d5c3;
  border-radius: 9px 12px 9px 11px;
  background: #fff9ef;
  color: #8c8776;
  cursor: pointer;
  flex: none;
}
.quick-cat-dot { width: 7px; height: 7px; border-radius: 50%; background: #f2d488; flex: none; }
.quick-select-wrap select {
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #777f6f;
  font-size: 10.5px;
  cursor: pointer;
  max-width: 52px;
}
.quick-select-wrap select option { color: var(--ink); background: #fffdf7; }
.quick-select-chevron { position: absolute; right: 7px; width: 11px; height: 11px; color: #a5a694; pointer-events: none; }
.add-submit {
  height: 33px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  border: 1.6px dashed #de9eb0;
  border-radius: 10px 13px 10px 12px;
  background: #ffdbe6;
  color: #955568;
  font-family: var(--font-display);
  font-size: 11.5px;
  box-shadow: 2px 3px 0 rgba(238, 184, 198, .35);
  transition: transform .16s ease, box-shadow .16s ease;
}
.add-submit:hover { transform: translateY(-1px) rotate(-1deg); box-shadow: 3px 4px 0 rgba(238, 184, 198, .35); }
.add-submit:active { transform: translate(1px, 2px); box-shadow: 0 0 0 rgba(0,0,0,0); }
.add-submit .icon { width: 12px; height: 12px; }
.quick-hint { margin: 7px 2px 0; color: #abb5aa; font-size: 9.5px; }
.quick-hint span { color: #d8a24d; }

.task-toolbar {
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1.5px dashed #dce8dd;
}
.filter-tabs { display: flex; align-items: center; gap: 4px; }
.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1.3px dashed transparent;
  border-radius: 9px 11px 8px 10px;
  background: transparent;
  color: #96a197;
  font-family: var(--font-display);
  font-size: 11.5px;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.filter-tab b { font-family: var(--font-body); font-size: 9.5px; font-weight: 700; opacity: .75; }
.filter-tab:hover { color: #647468; background: #f6fbf7; }
.filter-tab.is-active { border-color: #ecc5ce; background: #fff2f6; color: #a05f72; transform: rotate(-.6deg); }
.toolbar-note { color: #b0b6ad; font-size: 9.5px; white-space: nowrap; display: flex; gap: 5px; align-items: center; }
.mini-flower { color: #e8aebb; font-size: 12px; }

/* =========================================================
   Task list
   ========================================================= */

.task-list { min-height: 90px; padding-top: 4px; }
.task-group + .task-group { margin-top: 8px; }
.task-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px 1px;
  color: #a0aaa1;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .5px;
}
.task-group-label::after { content: ""; height: 1px; flex: 1; border-top: 1px dashed #e2ebe2; }
.task-group-label b { color: #c48394; font-family: var(--font-body); font-size: 9px; }
.task-item {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 5px 10px 3px;
  border-bottom: 1.4px dashed #e4ece4;
  border-radius: 12px;
  transition: background .16s ease, transform .16s ease;
}
.task-item:last-child { border-bottom-color: transparent; }
.task-item:hover { background: #fbfefb; transform: translateX(2px); }
.task-item.is-new { animation: taskIn .45s ease both; }
.task-item.is-done { opacity: .62; }
.task-check {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1.7px solid #a9bcae;
  border-radius: 50% 46% 53% 47%;
  background: #fffdf7;
  color: transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.task-check:hover { transform: rotate(-7deg) scale(1.06); border-color: #e193a9; background: #fff4f7; }
.task-check .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.task-check.is-checked { border-color: #dc8ca2; background: #f7a5b9; color: #fff; transform: rotate(-3deg); box-shadow: 2px 2px 0 rgba(230, 166, 183, .35); }
.task-check.is-checked:hover { background: #f39bb1; }
.task-check.pop { animation: checkPop .3s ease; }
.task-body { min-width: 0; cursor: pointer; }
.task-title-line { display: flex; align-items: center; gap: 7px; min-width: 0; }
.task-title-line h3 {
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: #4c5a4f;
  overflow-wrap: anywhere;
}
.task-title-text { padding: 0 1px; background-image: linear-gradient(transparent 62%, rgba(255, 226, 154, .6) 62%); background-repeat: no-repeat; }
.task-item.priority-high .task-title-text { background-image: linear-gradient(transparent 61%, rgba(255, 198, 212, .75) 61%); }
.task-item.priority-medium .task-title-text { background-image: linear-gradient(transparent 62%, rgba(255, 228, 164, .66) 62%); }
.task-item.priority-low .task-title-text { background-image: linear-gradient(transparent 62%, rgba(197, 235, 207, .72) 62%); }
.task-item.is-done .task-title-text { text-decoration: line-through; text-decoration-thickness: 1.3px; text-decoration-color: #b8c4ba; background-image: none; }
.priority-stamp {
  flex: none;
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  border: 1.2px solid;
  border-radius: 5px 7px 5px 6px;
  font-family: var(--font-display);
  font-size: 9px;
  line-height: 1;
  transform: rotate(-3deg);
}
.priority-stamp.p-high { color: #b65c73; border-color: #e8a5b5; background: #ffe6ed; }
.priority-stamp.p-medium { color: #a17e38; border-color: #e6ce92; background: #fff4d3; }
.priority-stamp.p-low { color: #618f70; border-color: #b9dcc2; background: #eef9f1; }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-top: 4px; color: #9ba69c; font-size: 9.5px; }
.meta-chip { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.meta-chip .icon { width: 10px; height: 10px; }
.task-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 5px 7px 5px 6px;
  border: 1px dashed;
  font-size: 9px;
  line-height: 1.45;
}
.task-cat i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .8; }
.cat-study { color: #55966b; background: #f0faf3; border-color: #c8e5d1; }
.cat-work { color: #b4657a; background: #fff3f6; border-color: #f0c9d3; }
.cat-life { color: #a8863b; background: #fffaec; border-color: #ead8a8; }
.cat-idea { color: #7e72af; background: #f7f3ff; border-color: #d9d1ef; }
.meta-date { color: #b29a76; }
.meta-repeat { color: #6a9d7a; }
.meta-note { color: #b6a1aa; }
.task-actions { display: flex; align-items: center; gap: 1px; opacity: 0; transform: translateX(3px); transition: opacity .16s ease, transform .16s ease; }
.task-item:hover .task-actions, .task-item:focus-within .task-actions { opacity: 1; transform: none; }
.task-action {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1.3px dashed transparent;
  border-radius: 8px;
  background: transparent;
  color: #abb6ac;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.task-action .icon { width: 14px; height: 14px; }
.task-action:hover { color: #b0667a; background: #fff3f6; border-color: #f0c7d1; }
.task-action.is-starred { color: #d99243; }
.task-action.is-starred .icon { fill: #ffdf9c; }

.empty-state { padding: 30px 10px 25px; text-align: center; }
.empty-art { width: 164px; height: 128px; margin: 0 auto 5px; opacity: .95; }
.empty-art svg, .empty-art img { width: 100%; height: 100%; object-fit: contain; }
.empty-state strong { display: block; color: #68776a; font-family: var(--font-display); font-weight: 400; font-size: 17px; }
.empty-state p { margin-top: 4px; color: #a0ada2; font-size: 11px; }

.list-footer {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1.5px dashed #dfe9df;
}
.list-progress-copy { display: flex; align-items: center; gap: 5px; white-space: nowrap; color: #8c998e; font-size: 9.5px; }
.list-progress-copy b { font-family: var(--font-hand); font-size: 11px; color: #719078; }
.mini-progress { flex: 1; height: 8px; padding: 2px; border: 1.2px dashed #e2bfc8; border-radius: 99px; background: #fffaf4; }
.mini-progress span { display: block; width: 0; height: 100%; border-radius: 99px; background: repeating-linear-gradient(120deg, #f1a1b6 0 6px, #f6b5c6 6px 11px); transition: width .45s ease; }
.list-cheer { color: #b0b7ae; font-size: 9px; white-space: nowrap; }
.list-cheer::before { content: "✦"; color: #e0aa6a; margin-right: 4px; }

/* =========================================================
   Side cards
   ========================================================= */

.side-stack { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.calendar-card, .garden-card, .note-card {
  position: relative;
  border-radius: 26px 22px 27px 23px / 23px 27px 22px 26px;
  box-shadow: 5px 6px 0 rgba(197, 198, 170, .14), var(--shadow-paper);
}
.calendar-card {
  padding: 19px 18px 13px;
  border: 1.9px solid #efc1cd;
  background-color: #fffaf5;
  background-image:
    radial-gradient(rgba(184, 158, 149, .1) 1px, transparent 1.1px),
    linear-gradient(160deg, #fffaf4, #fff5f8);
  background-size: 15px 15px, auto;
}
.calendar-card::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 31px;
  width: 58px;
  height: 20px;
  background: repeating-linear-gradient(90deg, rgba(252, 205, 218, .62) 0 6px, rgba(255, 238, 243, .8) 6px 12px);
  clip-path: polygon(2% 10%, 98% 0, 95% 95%, 0 100%);
  transform: rotate(3deg);
  border-left: 1px dashed rgba(219, 142, 160, .25);
  border-right: 1px dashed rgba(219, 142, 160, .25);
}
.strawberry-sticker { position: absolute; top: -17px; left: 13px; width: 47px; height: 47px; transform: rotate(-9deg); filter: drop-shadow(2px 3px 0 rgba(196, 170, 144, .12)); }
.strawberry-sticker svg { width: 100%; height: 100%; }
.calendar-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.calendar-head h3 { margin-top: 3px; font-family: var(--font-display); font-weight: 400; font-size: 19px; color: #5b6a5e; }
.calendar-nav { display: flex; gap: 4px; margin-top: 2px; }
.tiny-round {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1.3px dashed #dacdc1;
  border-radius: 50%;
  background: #fffdf7;
  color: #9b9385;
  transition: transform .16s ease, background .16s ease;
}
.tiny-round:hover { transform: rotate(-7deg); background: #fff3f6; color: #b46a7c; }
.tiny-round .icon { width: 13px; height: 13px; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: 12px; padding-bottom: 5px; border-bottom: 1px dashed #eadfd7; }
.calendar-weekdays span { text-align: center; color: #b1a296; font-family: var(--font-display); font-size: 9px; }
.calendar-weekdays span:nth-child(6), .calendar-weekdays span:nth-child(7) { color: #d596a5; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding-top: 7px; }
.calendar-day {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 36px;
  display: grid;
  place-items: center;
  border: 1.2px solid transparent;
  border-radius: 9px 11px 9px 10px;
  background: transparent;
  color: #7e8b7f;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  transition: background .14s ease, transform .14s ease, border-color .14s ease;
}
.calendar-day:hover { background: #fff0f4; transform: rotate(-2deg); }
.calendar-day.is-outside { color: #d4d7ce; opacity: .65; }
.calendar-day.is-weekend { color: #c78b9a; }
.calendar-day.is-today { border: 1.4px dashed #e29cac; color: #bb5e75; font-weight: 800; }
.calendar-day.is-selected {
  background: #f8a9bc;
  border-color: #dc849a;
  color: #fff;
  transform: rotate(-3deg);
  box-shadow: 2px 2px 0 rgba(222, 150, 168, .35);
}
.calendar-day.is-selected.is-today { border-style: solid; }
.calendar-day.has-tasks::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #e88ca4;
}
.calendar-day.is-selected.has-tasks::after { background: #fff; }
.calendar-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #eadfd7; color: #aead9f; font-size: 9px; }
.calendar-footer > span { display: inline-flex; align-items: center; gap: 4px; }
.legend-dot { width: 5px; height: 5px; border-radius: 50%; background: #e88ca4; display: inline-block; }
.calendar-today-btn { border: 1.2px dashed #d9cdc1; border-radius: 7px; background: #fffdf7; color: #a28e7d; padding: 2px 8px; font-family: var(--font-display); font-size: 9px; }
.calendar-today-btn:hover { background: #fff3f6; border-color: #ecc3cd; }

.garden-card {
  padding: 18px;
  border: 1.9px solid #b9ddc5;
  background-color: #f9fdf8;
  background-image:
    radial-gradient(rgba(129, 162, 136, .1) 1px, transparent 1.1px),
    linear-gradient(150deg, #f4fbf5, #fdf8e9);
  background-size: 15px 15px, auto;
}
.garden-card::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 37px;
  width: 54px;
  height: 18px;
  background: rgba(192, 231, 202, .68);
  clip-path: polygon(2% 10%, 98% 0, 96% 95%, 0 100%);
  transform: rotate(-2deg);
}
.garden-head, .note-head, .category-card-head, .budget-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.garden-head h3, .note-card h3, .category-card h3, .budget-head h3 { margin-top: 2px; font-family: var(--font-display); font-weight: 400; font-size: 18px; color: #59695c; }
.garden-badge { padding: 2px 8px; border: 1.2px dashed #b8d9c2; border-radius: 7px 9px 7px 8px; background: #f4fbf4; color: #7d9f85; font-size: 9px; transform: rotate(1deg); }
.garden-scene { position: relative; height: 91px; margin: 3px -4px 0; overflow: hidden; }
.garden-plants {
  position: absolute;
  left: 8px;
  bottom: 0;
  width: 178px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px 5px;
  align-items: end;
}
.garden-plant { width: 38px; height: 42px; position: relative; display: grid; place-items: end center; opacity: .55; filter: grayscale(.15); transition: transform .2s ease, opacity .2s ease; }
.garden-plant.is-ripe { opacity: 1; filter: none; animation: plantSway 4s ease-in-out infinite; }
.garden-plant:nth-child(2n).is-ripe { animation-delay: -1.2s; }
.garden-plant:nth-child(3n).is-ripe { animation-delay: -2.3s; }
.garden-plant svg { width: 100%; height: 100%; overflow: visible; }
.garden-bunny { position: absolute; right: -2px; bottom: -4px; width: 106px; height: 98px; opacity: .95; transform: rotate(1deg); }
.garden-bunny svg { width: 100%; height: 100%; overflow: visible; display: none; }
.garden-bunny img { width: 100%; height: 100%; object-fit: contain; display: block; }
.garden-meter { height: 9px; margin-top: 5px; padding: 2px; border: 1.2px dashed #bddcc5; border-radius: 99px; background: #fffdf8; }
.garden-meter span { display: block; width: 0; height: 100%; border-radius: 99px; background: repeating-linear-gradient(120deg, #8bce9f 0 6px, #a8dbb6 6px 11px); transition: width .5s ease; }
.garden-caption { margin-top: 5px; color: #93a196; font-size: 9.5px; }
.garden-caption strong { color: #6d9d79; font-family: var(--font-hand); font-size: 12px; }

.note-card {
  padding: 18px;
  border: 1.9px solid #ecd0b8;
  background-color: #fff9ef;
  background-image:
    radial-gradient(rgba(188, 159, 127, .09) 1px, transparent 1.1px),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(206, 185, 155, .18) 23px 24px);
  background-size: 15px 15px, auto;
}
.washi-tape {
  position: absolute;
  top: -10px;
  right: 24px;
  width: 61px;
  height: 20px;
  background: repeating-linear-gradient(45deg, rgba(246, 194, 178, .6) 0 7px, rgba(255, 237, 224, .8) 7px 14px);
  clip-path: polygon(3% 6%, 97% 0, 100% 90%, 0 100%);
  transform: rotate(2deg);
}
.note-doodle { color: #dfa2b0; font-family: var(--font-hand); font-size: 18px; }
.note-quote { margin: 8px 0 13px; color: #786d5f; font-family: var(--font-display); font-size: 14.5px; line-height: 1.7; letter-spacing: .2px; }
.mood-label-row { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px dashed #ead8c4; color: #a39587; font-size: 9.5px; }
.mood-label-row b { color: #b87583; font-family: var(--font-display); font-weight: 400; font-size: 10.5px; }
.mood-row { display: flex; gap: 8px; margin-top: 8px; }
.mood-btn {
  width: 38px;
  height: 38px;
  padding: 2px;
  display: grid;
  place-items: center;
  border: 1.5px dashed transparent;
  border-radius: 50%;
  background: transparent;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.mood-btn svg { width: 100%; height: 100%; overflow: visible; }
.mood-btn:hover { transform: translateY(-3px) rotate(-4deg); }
.mood-btn.is-selected { border-color: #e4a7b5; background: #fff5f7; transform: rotate(-5deg); box-shadow: 2px 2px 0 rgba(227, 181, 191, .28); }
.mood-helper { margin-top: 5px; color: #b3a99b; font-size: 8.5px; }
.page-footer {
  margin: 21px 2px 0;
  display: flex;
  justify-content: space-between;
  color: #aaa998;
  font-family: var(--font-hand);
  font-size: 10.5px;
  letter-spacing: .4px;
}
.page-footer i { color: #e2a1b1; font-style: normal; }
.footer-doodle { color: #c2bba5; letter-spacing: 3px; }

/* =========================================================
   Routine plans
   ========================================================= */

.routine-panel { padding-bottom: 17px; }
.routine-panel-head .panel-title-line h2::after { background: #ccefd7; }
.routine-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 12px 19px 12px 13px;
  border: 1.7px dashed #c4dfc9;
  border-radius: 20px 24px 19px 23px;
  background: linear-gradient(100deg, #f4fcf5, #fffaf0);
  overflow: hidden;
}
.routine-banner::after {
  content: "";
  position: absolute;
  right: 42px;
  top: 11px;
  width: 50px;
  height: 13px;
  border-radius: 50%;
  border-top: 2px dashed #f1c9d2;
  transform: rotate(-5deg);
}
.routine-banner-art { width: 121px; height: 91px; flex: none; margin: -4px 0 -10px; }
.routine-banner-art svg { display: none; }
.routine-banner-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.routine-banner-copy { min-width: 0; flex: 1; }
.routine-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #dff4e5;
  color: #5f926e;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .3px;
}
.routine-banner-tag i { width: 5px; height: 5px; border-radius: 50%; background: #66bb82; animation: blink 2.4s ease-in-out infinite; }
.routine-banner-copy strong { display: block; margin-top: 5px; color: #5d6b5f; font-family: var(--font-display); font-weight: 400; font-size: 15px; }
.routine-banner-copy strong b { color: #d07990; font-size: 19px; }
.routine-banner-copy p { max-width: 510px; margin-top: 3px; color: #98a397; font-size: 9.5px; line-height: 1.55; }
.routine-banner-spark { align-self: flex-start; margin-top: 4px; color: #e3b950; font-family: var(--font-hand); font-size: 20px; }
.routine-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-bottom: 9px; border-bottom: 1.5px dashed #dce8dd; }
.routine-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.routine-tab {
  padding: 4px 11px;
  border: 1.3px dashed transparent;
  border-radius: 9px 11px 8px 10px;
  background: transparent;
  color: #96a197;
  font-family: var(--font-display);
  font-size: 11.5px;
}
.routine-tab b { margin-left: 2px; font-family: var(--font-body); font-size: 9px; opacity: .7; }
.routine-tab:hover { background: #f4fbf5; color: #6d7d70; }
.routine-tab.is-active { border-color: #b8ddc3; background: #effaf2; color: #5c8a68; transform: rotate(-.6deg); }
.routine-toolbar-note { color: #b1b8ae; font-size: 9px; white-space: nowrap; }
.routine-toolbar-note span { color: #d8a966; margin-right: 3px; }
.routine-list { padding-top: 5px; }
.routine-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  padding: 11px 10px;
  border: 1.5px dashed #e3ece3;
  border-radius: 16px 19px 15px 18px;
  background: #fffefa;
  transition: transform .17s ease, border-color .17s ease, box-shadow .17s ease;
}
.routine-item:nth-child(2n) { transform: rotate(.12deg); }
.routine-item:hover { border-color: #b9ddc4; box-shadow: 3px 4px 0 rgba(187, 218, 195, .22); transform: translateX(2px) rotate(-.12deg); }
.routine-item.is-paused { opacity: .63; background: #fbfaf5; }
.routine-icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px 12px 15px 11px;
  border: 1.4px dashed;
  position: relative;
  transform: rotate(-3deg);
}
.routine-icon .icon { width: 19px; height: 19px; }
.routine-icon-day { color: #b28934; border-color: #ead8a8; background: #fff7df; }
.routine-icon-week { color: #61966f; border-color: #c2e0ca; background: #eefaf1; }
.routine-icon-month { color: #b2697e; border-color: #efc6d0; background: #fff3f6; }
.routine-icon::after { content: ""; position: absolute; width: 5px; height: 5px; right: 4px; top: 4px; border-radius: 50%; background: currentColor; opacity: .4; }
.routine-main { flex: 1; min-width: 0; }
.routine-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.routine-title-line h3 { font-family: var(--font-display); font-weight: 400; font-size: 14px; color: #526357; overflow-wrap: anywhere; }
.routine-pill { padding: 1px 6px; border: 1px solid #dfb5bf; border-radius: 5px 7px 5px 6px; background: #fff4f7; color: #b06b7e; font-size: 8.5px; white-space: nowrap; }
.routine-status { color: #ad8c7b; font-size: 8.5px; background: #f7f2e9; padding: 1px 5px; border-radius: 4px; }
.routine-meta { margin-top: 3px; color: #9ba69c; font-size: 9.5px; display: flex; flex-wrap: wrap; gap: 3px 8px; }
.routine-meta i { font-style: normal; color: #d0aa6b; }
.routine-next { margin-top: 2px; color: #b2ada0; font-size: 8.5px; }
.routine-next b { color: #799a82; font-weight: 700; }
.routine-actions { display: flex; align-items: center; gap: 3px; flex: none; }
.routine-icon-button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1.3px dashed transparent;
  border-radius: 8px;
  background: transparent;
  color: #aeb8ae;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.routine-icon-button .icon { width: 14px; height: 14px; }
.routine-icon-button:hover { background: #fff4f7; border-color: #efc7d1; color: #ae6678; }
.sketch-switch { position: relative; display: inline-flex; width: 36px; height: 20px; flex: none; margin-right: 2px; }
.sketch-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.sketch-switch span { position: absolute; inset: 0; border: 1.3px dashed #c5d5c7; border-radius: 99px; background: #f4f2e9; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.sketch-switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border: 1.2px solid #b3c5b5; border-radius: 50%; background: #fffdf7; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.sketch-switch input:checked + span { background: #ddf3e3; border-color: #a9d4b4; }
.sketch-switch input:checked + span::after { transform: translateX(15px); background: #82c797; border-color: #5da575; }
.sketch-switch input:focus-visible + span { outline: 3px solid rgba(240, 143, 172, .35); outline-offset: 2px; }
.routine-empty { padding: 31px 10px; text-align: center; }
.routine-empty-art { font-size: 38px; line-height: 1; filter: saturate(.8); }
.routine-empty strong { display: block; margin-top: 5px; font-family: var(--font-display); font-weight: 400; font-size: 16px; color: #657568; }
.routine-empty p { margin-top: 4px; color: #a1ada2; font-size: 10px; }
.routine-empty .text-button { margin-top: 7px; }
.routine-footer { justify-content: space-between; }
.routine-footer-doodle { color: #c9b98f; font-size: 10px; letter-spacing: 2px; }
.text-button { border: 0; background: transparent; padding: 2px; color: #bc7587; font-size: 10px; text-decoration: underline dotted #e5b1be; text-underline-offset: 3px; }
.text-button:hover { color: #a35469; }

/* =========================================================
   Ledger / bookkeeping
   ========================================================= */

.ledger-panel { grid-column: 1 / -1; padding-bottom: 16px; }
.ledger-head { align-items: center; }
.ledger-month-nav { display: flex; align-items: center; gap: 6px; padding: 4px; border: 1.3px dashed #e8d8c4; border-radius: 12px 15px 12px 14px; background: #fff9ef; }
.ledger-month-nav strong { min-width: 96px; text-align: center; font-family: var(--font-display); font-weight: 400; font-size: 12px; color: #7a7e69; }
.ledger-this-month { border: 1.2px dashed #e4b9c3; border-radius: 7px; background: #fff3f6; color: #ae6c7e; padding: 2px 7px; font-size: 8.5px; white-space: nowrap; }
.ledger-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 19px; }
.summary-note {
  position: relative;
  min-height: 104px;
  padding: 13px 15px 12px;
  border: 1.6px dashed;
  border-radius: 17px 21px 16px 20px;
  overflow: hidden;
}
.summary-note:nth-child(1) { background: #fff2f5; border-color: #edc4ce; transform: rotate(-.35deg); }
.summary-note:nth-child(2) { background: #f1faf3; border-color: #c1dfc8; transform: rotate(.3deg); }
.summary-note:nth-child(3) { background: #fff9e8; border-color: #e8d6a8; transform: rotate(-.2deg); }
.summary-top { display: flex; align-items: center; justify-content: space-between; color: #8e9688; font-family: var(--font-display); font-size: 11px; }
.summary-icon { width: 25px; height: 25px; display: grid; place-items: center; border: 1.2px dashed; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.summary-icon .icon { width: 14px; height: 14px; }
.summary-expense .summary-icon { border-color: #e7b0be; color: #c2687c; }
.summary-income .summary-icon { border-color: #b6d9bf; color: #5d9b70; }
.summary-balance .summary-icon { border-color: #e3cf9d; color: #a7863c; }
.summary-note > strong {
  display: block;
  margin-top: 3px;
  color: #5a5f50;
  font-family: var(--font-body);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.3;
}
.summary-expense > strong { color: #ba5d73; }
.summary-income > strong { color: #4e9164; }
.summary-balance > strong { color: #9b7934; }
.summary-note > p { margin-top: 1px; color: #a3a293; font-size: 9px; }
.summary-scribble { position: absolute; right: 9px; bottom: 8px; width: 28px; height: 8px; border-top: 1.5px dashed currentColor; border-radius: 50%; opacity: .25; transform: rotate(-8deg); }

.ledger-body { display: grid; grid-template-columns: minmax(0, 1fr) 326px; gap: 20px; margin-top: 18px; align-items: start; }
.ledger-main { min-width: 0; }
.ledger-entry-card {
  padding: 13px 14px;
  border: 1.7px dashed #ecc4ce;
  border-radius: 18px 21px 17px 20px;
  background: #fff9f5;
}
.ledger-entry-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.mini-note-badge { display: inline-flex; align-items: center; gap: 4px; color: #b3717f; font-family: var(--font-display); font-size: 11px; }
.mini-note-badge .icon { width: 13px; height: 13px; }
.ledger-entry-head > span:last-child { color: #b7a79a; font-size: 8.5px; }
.ledger-form {
  display: grid;
  grid-template-columns: 108px 130px 122px minmax(130px, 1fr);
  grid-template-areas:
    "type amount category note"
    "date date . submit";
  gap: 8px;
  align-items: center;
}
.ledger-type-toggle { grid-area: type; display: flex; height: 34px; padding: 3px; border: 1.3px dashed #e4bfc8; border-radius: 10px 12px 9px 11px; background: #fffdf8; }
.ledger-type-toggle label { flex: 1; position: relative; display: grid; place-items: center; cursor: pointer; }
.ledger-type-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.ledger-type-toggle span { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 7px; color: #a3a095; font-family: var(--font-display); font-size: 10px; transition: background .15s ease, color .15s ease; }
.ledger-type-toggle input:checked + span { background: #f8b4c3; color: #fff; box-shadow: 1px 1px 0 rgba(205, 127, 146, .35); transform: rotate(-1deg); }
.ledger-type-toggle input[value="income"]:checked + span { background: #8dcaa0; box-shadow: 1px 1px 0 rgba(98, 154, 112, .35); }
.ledger-type-toggle input:focus-visible + span { outline: 3px solid rgba(240, 143, 172, .3); outline-offset: 1px; }
.ledger-amount-field { grid-area: amount; height: 34px; display: flex; align-items: center; gap: 2px; padding: 0 9px; border: 1.3px dashed #ead0b4; border-radius: 9px 12px 9px 11px; background: #fffdfa; color: #b18a4e; }
.ledger-amount-field > span { font-family: var(--font-hand); font-size: 16px; }
.ledger-amount-field input { width: 100%; border: 0; outline: 0; background: transparent; font-family: var(--font-body); font-weight: 800; font-size: 14px; color: #7d683e; }
.ledger-amount-field input::placeholder { color: #c3b8a4; font-weight: 600; }
.ledger-category-field, .ledger-date-field, .ledger-note-field { position: relative; height: 34px; display: flex; align-items: center; gap: 5px; padding: 0 8px; border: 1.3px dashed #dcdaca; border-radius: 9px 12px 9px 11px; background: #fffdf8; color: #9a9b8b; }
.ledger-category-field { grid-area: category; }
.ledger-category-field select { flex: 1; min-width: 0; appearance: none; border: 0; outline: 0; background: transparent; color: #7d826f; font-size: 10px; cursor: pointer; }
.ledger-category-field .icon { width: 11px; height: 11px; pointer-events: none; }
.entry-cat-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #f2acbb; }
.ledger-note-field { grid-area: note; }
.ledger-note-field .icon { width: 13px; height: 13px; color: #b2a999; }
.ledger-note-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 10px; color: #6f796d; }
.ledger-note-field input::placeholder { color: #b6b7a8; }
.ledger-date-field { grid-area: date; width: 148px; }
.ledger-date-field .icon { width: 13px; height: 13px; color: #b2a999; }
.ledger-date-field input { width: 100%; border: 0; outline: 0; background: transparent; color: #8f8f7e; font-size: 9.5px; }
.ledger-submit {
  grid-area: submit;
  justify-self: end;
  height: 34px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1.6px dashed #d9a2ae;
  border-radius: 10px 13px 9px 12px;
  background: #f9b4c3;
  color: #fffdf8;
  font-family: var(--font-display);
  font-size: 11px;
  box-shadow: 2px 3px 0 rgba(223, 159, 173, .35);
  transition: transform .16s ease, box-shadow .16s ease;
}
.ledger-submit:hover { transform: translateY(-1px) rotate(-.8deg); box-shadow: 3px 4px 0 rgba(223, 159, 173, .35); }
.ledger-submit:active { transform: translate(1px, 2px); box-shadow: none; }
.ledger-submit .icon { width: 12px; height: 12px; }
.ledger-list-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 15px; padding-bottom: 8px; border-bottom: 1.5px dashed #e1e9df; }
.ledger-sort-note { color: #b4b8ad; font-size: 8.5px; white-space: nowrap; }
.ledger-sort-note span { color: #d4ab6c; margin-right: 2px; }
.ledger-list { min-height: 80px; }
.ledger-day { padding-top: 8px; }
.ledger-day + .ledger-day { margin-top: 2px; }
.ledger-day-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 3px; color: #a3aa9e; font-family: var(--font-display); font-size: 9px; }
.ledger-day-head i { flex: 1; height: 1px; border-top: 1px dashed #e4ece2; }
.ledger-day-head b { color: #b1a488; font-family: var(--font-body); font-size: 8.5px; font-weight: 600; }
.ledger-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 5px;
  border-bottom: 1.3px dashed #e8ede4;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.ledger-entry:hover { background: #fbfdf8; transform: translateX(2px); }
.ledger-entry:last-child { border-bottom-color: transparent; }
.ledger-entry-icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px 9px 12px 9px;
  border: 1.3px dashed color-mix(in srgb, var(--cat) 42%, white);
  background: var(--cat-bg);
  color: var(--cat);
  font-family: var(--font-display);
  font-size: 12px;
  transform: rotate(-2deg);
}
.ledger-entry-main { min-width: 0; flex: 1; }
.ledger-entry-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #59685b; font-family: var(--font-display); font-weight: 400; font-size: 12.5px; }
.ledger-entry-main span { display: block; margin-top: 1px; color: #aab1a5; font-size: 8.5px; }
.ledger-entry-amount { flex: none; font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: -.2px; }
.ledger-entry-amount.expense { color: #c1697c; }
.ledger-entry-amount.income { color: #5b9e70; }
.ledger-entry-actions { display: flex; opacity: 0; transition: opacity .15s ease; }
.ledger-entry:hover .ledger-entry-actions, .ledger-entry:focus-within .ledger-entry-actions { opacity: 1; }
.ledger-entry-del { width: 25px; height: 25px; display: grid; place-items: center; border: 1.2px dashed transparent; border-radius: 7px; background: transparent; color: #b8bfb5; }
.ledger-entry-del:hover { color: #bd677a; border-color: #efc6d0; background: #fff4f6; }
.ledger-entry-del .icon { width: 12px; height: 12px; }
.ledger-empty { padding: 25px 10px 22px; text-align: center; }
.ledger-empty-art { width: 140px; height: 96px; margin: 0 auto 4px; }
.ledger-empty-art svg { width: 100%; height: 100%; }
.ledger-empty strong { display: block; color: #6b796c; font-family: var(--font-display); font-weight: 400; font-size: 15px; }
.ledger-empty p { color: #a4aea4; font-size: 9.5px; margin-top: 3px; }
.ledger-footer { justify-content: space-between; }
.ledger-footer-total { color: #9e9d8c; font-family: var(--font-hand); font-size: 9.5px; white-space: nowrap; }

.ledger-side { display: flex; flex-direction: column; gap: 15px; }
.budget-card, .category-card {
  position: relative;
  padding: 15px;
  border: 1.7px dashed;
  border-radius: 20px 24px 18px 22px;
  background-color: #fffdf7;
}
.budget-card { border-color: #e9ccb0; background: linear-gradient(150deg, #fffaf0, #fff5ef); }
.budget-card::before { content: ""; position: absolute; top: -8px; left: 32px; width: 47px; height: 17px; background: repeating-linear-gradient(45deg, rgba(255, 219, 148, .6) 0 6px, rgba(255, 243, 208, .8) 6px 12px); clip-path: polygon(2% 10%, 98% 0, 95% 95%, 0 100%); transform: rotate(-2deg); }
.budget-head { align-items: center; }
.budget-head h3 { font-size: 16px; }
.budget-edit-btn { font-size: 9px; }
.budget-art { position: absolute; right: 9px; top: 41px; width: 48px; height: 44px; opacity: .86; }
.budget-art svg { width: 100%; height: 100%; overflow: visible; }
.budget-numbers { display: flex; justify-content: space-between; margin-top: 11px; padding-right: 52px; color: #9d9889; font-size: 8.5px; }
.budget-numbers b { color: #84775e; font-family: var(--font-body); font-size: 10px; }
.budget-progress { height: 9px; margin-top: 5px; padding: 2px; border: 1.2px dashed #e3cbaa; border-radius: 99px; background: #fffdf8; }
.budget-progress span { display: block; width: 0; height: 100%; border-radius: 99px; background: repeating-linear-gradient(120deg, #f5bf85 0 6px, #ffdaa8 6px 11px); transition: width .5s ease; }
.budget-progress.is-over span { background: repeating-linear-gradient(120deg, #ed91a6 0 6px, #f6b0bf 6px 11px); }
.budget-left { margin-top: 5px; color: #ae9f87; font-size: 8.5px; }
.budget-edit { display: flex; align-items: center; gap: 4px; margin-top: 7px; }
.budget-edit > span { color: #ae8e59; font-family: var(--font-hand); }
.budget-edit input { min-width: 0; flex: 1; height: 26px; padding: 0 7px; border: 1.2px dashed #e0c9aa; border-radius: 7px; background: #fffdf7; font-size: 10px; outline: 0; }
.budget-edit button { height: 26px; padding: 0 8px; border: 1.2px dashed #dcaab6; border-radius: 7px; background: #fff0f4; color: #ac6c7d; font-size: 9px; }
.category-card { border-color: #c9dfcd; background: linear-gradient(150deg, #f6fcf6, #fffdf7); }
.category-card-head h3 { font-size: 16px; }
.category-card-doodle { color: #e6acb9; font-size: 17px; }
.donut-wrap { display: flex; align-items: center; gap: 13px; margin-top: 8px; }
.donut {
  width: 119px;
  height: 119px;
  flex: none;
  border-radius: 50%;
  padding: 13px;
  background: conic-gradient(#f2d488 0 100%);
  border: 1.4px dashed #dce7da;
  position: relative;
  box-shadow: 2px 3px 0 rgba(182, 205, 187, .2);
}
.donut-hole {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fffdf6;
  border: 1.2px dashed #d8e5d8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.donut-hole strong { font-family: var(--font-body); font-size: 14px; font-weight: 800; color: #667568; }
.donut-hole span { margin-top: 0; font-size: 8px; color: #a5afa3; }
.category-legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.category-legend li { display: flex; align-items: center; gap: 5px; color: #8f9a90; font-size: 8.5px; }
.legend-color { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.category-legend li span:nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-legend li b { color: #778375; font-family: var(--font-body); font-size: 8.5px; }
.ledger-tip {
  position: relative;
  padding: 14px 15px;
  border: 1.6px dashed #efc0ca;
  border-radius: 17px 20px 15px 19px;
  background: #fff5f8;
  transform: rotate(.35deg);
}
.ledger-tip-tape { position: absolute; top: -8px; right: 18px; width: 42px; height: 14px; background: rgba(249, 208, 195, .6); transform: rotate(3deg); clip-path: polygon(2% 0, 98% 9%, 95% 100%, 0 92%); }
.ledger-tip-icon { position: absolute; right: 12px; bottom: 12px; width: 47px; height: 47px; opacity: .55; }
.ledger-tip-icon svg { width: 100%; height: 100%; }
.ledger-tip .section-kicker { color: #c5a8b0; }
.ledger-tip > p:not(.section-kicker) { margin-top: 4px; padding-right: 37px; color: #8f7b80; font-size: 9.5px; line-height: 1.6; }
.ledger-tip-sign { display: block; margin-top: 6px; color: #c4949f; font-family: var(--font-hand); font-size: 9px; }

/* =========================================================
   Focus timer
   ========================================================= */

.timer-panel {
  --timer-accent: #ef95ac;
  --timer-tint: #ffe9ef;
  --timer-deep: #b8667c;
  position: relative;
  grid-column: 1 / -1;
  min-width: 0;
  padding: 25px 25px 20px;
  border: 2px solid #e6cfc9;
  border-radius: 30px 26px 32px 25px / 26px 31px 25px 30px;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(146, 171, 149, .12) 1px, transparent 1.1px),
    linear-gradient(125deg, #fffdf7 0%, #fff5f7 50%, #f3fbf5 100%);
  background-size: 17px 17px, auto;
  box-shadow: 6px 7px 0 rgba(184, 208, 189, .17), var(--shadow-paper);
}
.timer-panel::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 47%;
  width: 82px;
  height: 24px;
  transform: translateX(-50%) rotate(1deg);
  background: repeating-linear-gradient(45deg, rgba(188, 231, 201, .65) 0 7px, rgba(238, 251, 242, .82) 7px 14px);
  border-left: 1px dashed rgba(156, 204, 170, .35);
  border-right: 1px dashed rgba(156, 204, 170, .35);
  clip-path: polygon(2% 8%, 98% 0, 95% 94%, 4% 100%);
  z-index: 2;
}
.timer-panel[data-mode="short"] { --timer-accent: #7ec596; --timer-tint: #eaf8ee; --timer-deep: #5a8e69; }
.timer-panel[data-mode="long"] { --timer-accent: #b5a4e5; --timer-tint: #f1edfc; --timer-deep: #7d6dae; }
.timer-panel[data-mode="custom"] { --timer-accent: #e8b15b; --timer-tint: #fff5dc; --timer-deep: #a0803e; }
.timer-panel .panel-title-line h2::after { background: #ffdbe5; }
.timer-today-badge {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 8px 13px;
  border: 1.5px dashed #e6bdc8;
  border-radius: 14px 17px 13px 16px;
  background: #fff8fa;
  color: #a88c92;
  transform: rotate(1deg);
  white-space: nowrap;
}
.timer-today-badge span { font-size: 9px; }
.timer-today-badge strong { color: var(--timer-deep); font-family: var(--font-body); font-size: 23px; line-height: 1; font-weight: 800; }
.timer-today-badge small { font-size: 8.5px; }

.timer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) 336px;
  gap: 20px;
  margin-top: 18px;
  align-items: start;
}
.timer-stage {
  position: relative;
  min-width: 0;
  padding: 15px 18px 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1.5px dashed #e9d5da;
  border-radius: 23px 26px 21px 25px;
  background: linear-gradient(155deg, rgba(255, 251, 247, .76), rgba(246, 253, 248, .7));
  overflow: hidden;
}
.timer-stage::after {
  content: "☁";
  position: absolute;
  right: 19px;
  top: 54px;
  color: #cfe5d5;
  font-size: 23px;
  opacity: .7;
  pointer-events: none;
}
.timer-mode-tabs {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}
.timer-mode {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 12px;
  border: 1.3px dashed #e2e5d9;
  border-radius: 9px 12px 8px 11px;
  background: #fffdf8;
  color: #969e91;
  font-family: var(--font-display);
  font-size: 10.5px;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.timer-mode b { font-family: var(--font-body); font-size: 9px; font-weight: 700; opacity: .72; }
.timer-mode:hover { background: #fbfdf8; color: #69786c; transform: translateY(-1px); }
.timer-mode.is-active {
  border-color: var(--timer-accent);
  background: var(--timer-tint);
  color: var(--timer-deep);
  transform: rotate(-.7deg);
  box-shadow: 2px 2px 0 rgba(179, 159, 132, .13);
}
.timer-custom-panel {
  width: min(462px, 100%);
  margin-top: 9px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  border: 1.4px dashed #bcdcc4;
  border-radius: 12px 15px 11px 14px;
  background: #f4fcf6;
}
.timer-custom-copy { display: flex; flex-direction: column; gap: 1px; margin-right: 2px; }
.timer-custom-copy span { color: #6e8f76; font-family: var(--font-display); font-size: 10px; }
.timer-custom-copy small { color: #a9b5a8; font-size: 8px; }
.timer-custom-stepper { display: flex; align-items: center; gap: 4px; }
.timer-step-btn {
  width: 26px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1.2px dashed #cfdfcd;
  border-radius: 7px;
  background: #fffdf8;
  color: #809280;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1;
}
.timer-step-btn:hover { background: #fff2f5; border-color: #ecc4ce; color: #b36d7e; }
.timer-custom-input {
  height: 28px;
  padding: 0 7px;
  display: flex;
  align-items: center;
  gap: 3px;
  border: 1.2px dashed #d8c8a9;
  border-radius: 7px;
  background: #fffdf8;
  color: #9b8c71;
}
.timer-custom-input input {
  width: 45px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #776647;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}
.timer-custom-input input::-webkit-outer-spin-button,
.timer-custom-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.timer-custom-input span { font-size: 8.5px; white-space: nowrap; }
.timer-custom-apply {
  min-height: 28px;
  margin-left: auto;
  padding: 0 9px;
  border: 1.2px dashed #dfa9b5;
  border-radius: 7px 9px 7px 8px;
  background: #fff0f4;
  color: #ae6879;
  font-family: var(--font-display);
  font-size: 9px;
}
.timer-custom-apply:hover { background: #ffe5ec; }
.timer-quick-times {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
}
.timer-quick-times > span { margin-right: 2px; color: #b1af9e; font-size: 8.5px; }
.timer-quick-times button {
  padding: 2px 7px;
  border: 1px dashed #e5dcc8;
  border-radius: 6px;
  background: #fffdf8;
  color: #9e957e;
  font-family: var(--font-display);
  font-size: 8.5px;
}
.timer-quick-times button:hover, .timer-quick-times button.is-active { border-color: #e6bdc8; background: #fff4f7; color: #b2697c; }

.timer-dial-wrap { position: relative; width: min(372px, 74vw); margin: 13px auto 7px; }
.timer-dial { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.timer-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.timer-ring-track, .timer-ring-progress { fill: none; stroke-width: 13; }
.timer-ring-track { stroke: #e9f0e6; }
.timer-ring-progress {
  stroke: var(--timer-accent);
  stroke-linecap: round;
  transition: stroke-dashoffset .28s linear, stroke .3s ease;
  filter: drop-shadow(0 2px 2px rgba(162, 146, 139, .1));
}
.timer-dial::before {
  content: "";
  position: absolute;
  inset: 19px;
  border-radius: 50%;
  border: 1.5px dashed #ebcdd3;
  background:
    radial-gradient(circle at 34% 20%, rgba(255, 255, 255, .95), transparent 35%),
    radial-gradient(circle at 62% 78%, var(--timer-tint), transparent 68%),
    #fffaf5;
  box-shadow: 0 8px 20px rgba(154, 139, 130, .08), inset 0 0 0 8px rgba(255, 255, 255, .35);
  transition: background .3s ease;
}
.timer-face {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  pointer-events: none;
}
.timer-state-label {
  color: var(--timer-deep);
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: .7px;
}
.timer-digits {
  color: #4e5d51;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: clamp(47px, 5.2vw, 67px);
  line-height: 1;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, .9);
}
.timer-caption {
  max-width: 190px;
  color: #a39d91;
  font-size: 9px;
  line-height: 1.45;
}
.timer-pig {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 19px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1.4px dashed #e2b3bf;
  border-radius: 50%;
  background: #fffdf7;
  transform: rotate(5deg);
  box-shadow: 2px 3px 0 rgba(225, 178, 188, .22);
  pointer-events: none;
}
.timer-pig img { width: 86%; height: 86%; object-fit: contain; }
.timer-doodle { position: absolute; z-index: 1; color: var(--timer-accent); font-family: var(--font-hand); pointer-events: none; opacity: .6; }
.timer-doodle-one { top: 8px; right: 10px; font-size: 19px; transform: rotate(11deg); }
.timer-doodle-two { left: 3px; bottom: 44px; font-size: 19px; transform: rotate(-12deg); }
.timer-controls { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 3px; }
.timer-primary {
  min-width: 150px;
  min-height: 39px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.6px dashed color-mix(in srgb, var(--timer-accent) 75%, #9e7f88);
  border-radius: 12px 15px 11px 14px;
  background: var(--timer-accent);
  color: #fffdf8;
  font-family: var(--font-display);
  font-size: 12px;
  box-shadow: 3px 4px 0 var(--timer-tint);
  transition: transform .16s ease, box-shadow .16s ease, background .2s ease;
}
.timer-primary .icon { width: 14px; height: 14px; }
.timer-primary:hover { transform: translateY(-1px) rotate(-.5deg); box-shadow: 4px 5px 0 var(--timer-tint); }
.timer-primary:active { transform: translate(1px, 2px); box-shadow: 0 0 0 transparent; }
.timer-primary.is-running { background: var(--timer-tint); color: var(--timer-deep); }
.timer-panel[data-mode="custom"] .timer-primary { color: #6f5934; }
.timer-reset {
  min-height: 36px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1.3px dashed #dfd8c8;
  border-radius: 10px 12px 9px 11px;
  background: #fffdf8;
  color: #aaa18f;
  font-family: var(--font-display);
  font-size: 9.5px;
}
.timer-reset .icon { width: 12px; height: 12px; }
.timer-reset:hover { background: #fff7ef; color: #a78e6e; }
.timer-progress-meta {
  width: min(462px, 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1.2px dashed #e5ddd2;
}
.timer-rounds { display: flex; align-items: center; gap: 6px; color: #a29d91; font-size: 8.5px; }
.timer-round-dots { display: flex; gap: 4px; }
.timer-round-dots span {
  width: 14px;
  height: 14px;
  border: 1.2px dashed #e4c4ca;
  border-radius: 50% 46% 52% 47%;
  background: #fffdf8;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.timer-round-dots span.is-done { border-style: solid; border-color: var(--timer-accent); background: var(--timer-accent); transform: rotate(-5deg); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55); }
.timer-rounds b { color: var(--timer-deep); font-family: var(--font-body); font-size: 8.5px; }
.timer-hint { color: #b2ad9e; font-size: 8px; white-space: nowrap; }
.timer-hint span { color: #e3b087; margin-right: 2px; }

.timer-side { display: flex; flex-direction: column; gap: 14px; }
.timer-focus-card, .timer-history-card {
  padding: 15px;
  border: 1.5px dashed #e2d7c8;
  border-radius: 19px 23px 18px 22px;
  background: linear-gradient(150deg, #fffdf8, #fffaf1);
}
.timer-focus-card { border-color: #e8c7d0; background: linear-gradient(150deg, #fff8fa, #fffdf7); }
.timer-history-card { border-color: #c5dfcc; background: linear-gradient(150deg, #f6fcf6, #fffdf7); }
.timer-card-head { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.timer-mini-badge { display: inline-flex; align-items: center; gap: 4px; color: #b37785; font-size: 8px; white-space: nowrap; }
.timer-mini-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--timer-accent); animation: timerBreathe 2.8s ease-in-out infinite; }
.timer-focus-card h3, .timer-history-card h3 { margin-top: 5px; color: #5d6c5f; font-family: var(--font-display); font-weight: 400; font-size: 15px; }
.timer-task-select-wrap {
  position: relative;
  height: 37px;
  margin-top: 9px;
  padding: 0 29px 0 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1.4px dashed #e2c8ce;
  border-radius: 9px 12px 9px 11px;
  background: #fffdf8;
  color: #a9a290;
}
.timer-task-select-wrap > .icon { width: 13px; height: 13px; flex: none; color: #b5a99d; }
.timer-task-select-wrap select {
  flex: 1;
  min-width: 0;
  height: 100%;
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #7e7b6d;
  font-size: 9.5px;
  cursor: pointer;
}
.timer-task-select-wrap select:disabled { cursor: default; color: #b9b3a7; }
.timer-select-chevron { position: absolute; right: 9px; width: 11px; height: 11px; pointer-events: none; color: #b1a79a; }
.timer-current-task {
  margin-top: 8px;
  padding: 8px 10px;
  border-left: 2px dashed var(--timer-accent);
  border-radius: 0 9px 9px 0;
  background: var(--timer-tint);
}
.timer-current-task > span { display: block; color: var(--timer-deep); font-family: var(--font-hand); font-size: 8.5px; letter-spacing: .3px; }
.timer-current-task strong { display: block; margin-top: 2px; color: #6a6d5e; font-family: var(--font-display); font-weight: 400; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.timer-current-task p { margin-top: 2px; color: #a4a08f; font-size: 8px; line-height: 1.45; }
.timer-minutes { color: #7f9b85; font-family: var(--font-hand); font-size: 9px; white-space: nowrap; }
.timer-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 8px; }
.timer-stats-row > div { padding: 6px 3px 5px; text-align: center; border: 1px dashed #dae7d9; border-radius: 7px 9px 7px 8px; background: #fffdf8; }
.timer-stats-row strong { display: block; color: #70927a; font-family: var(--font-body); font-size: 15px; font-weight: 800; line-height: 1.1; }
.timer-stats-row span { display: block; margin-top: 2px; color: #a8b0a4; font-size: 7.5px; }
.timer-history-list { min-height: 35px; margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.timer-history-item { display: flex; align-items: center; gap: 6px; padding: 5px 2px; border-bottom: 1px dashed #e7ede1; }
.timer-history-item:last-child { border-bottom: 0; }
.timer-history-pig { width: 23px; height: 23px; flex: none; display: grid; place-items: center; border: 1px dashed #e3c0c8; border-radius: 50%; background: #fff7f5; }
.timer-history-pig img { width: 20px; height: 20px; object-fit: contain; }
.timer-history-item > div { flex: 1; min-width: 0; }
.timer-history-item strong { display: block; color: #728173; font-family: var(--font-display); font-weight: 400; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer-history-item > div span { display: block; margin-top: 1px; color: #aab0a4; font-size: 7.5px; }
.timer-history-item > i { color: #89b597; font-family: var(--font-display); font-size: 10px; font-style: normal; }
.timer-history-empty { padding: 9px 4px 3px; text-align: center; color: #adb2a5; }
.timer-history-empty span { color: #e1b07e; font-family: var(--font-hand); font-size: 13px; }
.timer-history-empty p { margin-top: 2px; font-size: 8.5px; line-height: 1.5; }
.timer-note-card {
  position: relative;
  padding: 14px 15px;
  border: 1.5px dashed #e8cfb5;
  border-radius: 17px 21px 16px 20px;
  background: #fff9ee;
  background-image: repeating-linear-gradient(0deg, transparent 0 22px, rgba(206, 185, 155, .13) 22px 23px);
  transform: rotate(.3deg);
}
.timer-note-tape { position: absolute; top: -8px; right: 20px; width: 48px; height: 15px; background: rgba(250, 204, 174, .55); transform: rotate(3deg); clip-path: polygon(2% 0, 98% 9%, 95% 100%, 0 92%); }
.timer-note-card .section-kicker { color: #c2a98d; }
.timer-note-card > p:not(.section-kicker) { margin-top: 4px; color: #8f7f6d; font-family: var(--font-display); font-size: 11.5px; line-height: 1.65; }
.timer-note-sign { display: block; margin-top: 6px; color: #b69088; font-family: var(--font-hand); font-size: 8.5px; }

@keyframes timerBreathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }

/* =========================================================
   Modal: task & ledger
   ========================================================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(58, 71, 60, .32);
  backdrop-filter: blur(5px);
  animation: backdropIn .2s ease both;
}
.task-modal, .ledger-modal {
  position: relative;
  width: min(638px, 100%);
  max-height: min(90vh, 880px);
  overflow-y: auto;
  padding: 24px 27px 19px;
  border: 2px solid #e9c8d0;
  border-radius: 30px 26px 31px 25px / 26px 31px 25px 30px;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(151, 174, 150, .12) 1px, transparent 1.1px),
    linear-gradient(145deg, #fffdf7, #fffaf3);
  background-size: 17px 17px, auto;
  box-shadow: 9px 10px 0 rgba(67, 82, 68, .16), 0 24px 80px rgba(46, 58, 48, .2);
  animation: modalIn .28s cubic-bezier(.2, .8, .3, 1) both;
}
.task-modal::before, .ledger-modal::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 31px;
  width: 72px;
  height: 21px;
  transform: rotate(-2deg);
  background: repeating-linear-gradient(90deg, rgba(255, 224, 157, .6) 0 7px, rgba(255, 245, 207, .8) 7px 14px);
  clip-path: polygon(2% 10%, 98% 0, 95% 94%, 0 100%);
}
.modal-sticker { position: absolute; top: -26px; right: 24px; width: 64px; height: 64px; transform: rotate(7deg); filter: drop-shadow(2px 3px 0 rgba(185, 154, 142, .12)); pointer-events: none; }
.modal-sticker svg, .modal-sticker img { width: 100%; height: 100%; object-fit: contain; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 13px; padding-top: 4px; }
.modal-head h2 { margin-top: 2px; font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--ink-strong); }
.modal-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1.5px dashed #e3bcc7;
  border-radius: 50%;
  background: #fff6f8;
  color: #b5808d;
  transition: transform .17s ease, background .17s ease;
}
.modal-close:hover { transform: rotate(8deg); background: #ffedf2; }
.modal-close .icon { width: 15px; height: 15px; }

.field-block { display: block; margin-top: 11px; }
.field-label { display: block; margin-bottom: 5px; color: #7f8c80; font-family: var(--font-display); font-size: 11px; }
.field-label small { color: #b1b7ad; font-family: var(--font-body); font-size: 8px; font-weight: 500; }
.title-field input {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  border: 1.7px dashed #c2dec9;
  border-radius: 12px 16px 12px 15px;
  background: #fbfefb;
  outline: 0;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink-strong);
  transition: border-color .17s ease, box-shadow .17s ease;
}
.title-field input:focus { border-color: #e7adbb; background: #fffdf8; box-shadow: 0 0 0 4px rgba(255, 232, 238, .55); }
.title-field input.has-error { border-color: #df7e92; background: #fff5f7; animation: shake .3s ease; }
.field-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input-with-icon { position: relative; display: flex; align-items: center; height: 38px; border: 1.4px dashed #dedcca; border-radius: 10px 13px 10px 12px; background: #fffdf8; color: #a8a693; }
.input-with-icon > .icon { position: absolute; left: 10px; width: 14px; height: 14px; pointer-events: none; }
.input-with-icon input, .input-with-icon select { width: 100%; height: 100%; padding: 0 10px 0 31px; border: 0; outline: 0; background: transparent; font-size: 11px; color: #707b6d; }
.input-with-icon input[type="date"] { padding-right: 6px; }
.input-with-icon input[type="time"] { padding-right: 6px; }
select-icon-wrap select { appearance: none; }
.input-with-icon .arrow-icon { left: auto; right: 9px; }
.inbox-link { display: inline-block; margin-top: 2px; font-size: 8.5px; color: #b19a89; }
.inbox-link:hover { color: #b87383; }

.repeat-fieldset { margin-top: 12px; padding-top: 10px; border-top: 1.4px dashed #e2eade; }
.repeat-picker { display: flex; gap: 5px; flex-wrap: wrap; }
.repeat-choice { position: relative; cursor: pointer; }
.repeat-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.repeat-choice span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 28px;
  padding: 0 8px;
  border: 1.3px dashed #dfe5d9;
  border-radius: 8px 10px 8px 9px;
  background: #fffdf8;
  color: #959b8e;
  font-family: var(--font-display);
  font-size: 9.5px;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.repeat-choice span .icon { width: 11px; height: 11px; }
.repeat-choice input:checked + span { border-color: #d9a6b3; background: #fff0f4; color: #b16476; transform: rotate(-1deg); }
.repeat-choice input:focus-visible + span { outline: 3px solid rgba(240, 143, 172, .3); outline-offset: 1px; }
.repeat-extra { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; padding: 7px 9px; border: 1.3px dashed #c7e0cd; border-radius: 9px 12px 9px 11px; background: #f4fcf5; }
.repeat-extra-label { display: none; }
.repeat-select-wrap { position: relative; display: inline-flex; align-items: center; height: 25px; padding: 0 19px 0 7px; border: 1.1px dashed #bddbc5; border-radius: 6px; background: #fffdf7; }
.repeat-select-wrap select { appearance: none; border: 0; outline: 0; background: transparent; font-size: 9px; color: #6f8a76; cursor: pointer; }
.repeat-select-wrap .icon { position: absolute; right: 5px; width: 9px; height: 9px; color: #9aab9b; pointer-events: none; }
.repeat-extra-hint { color: #95a496; font-size: 8.5px; }
.repeat-extra-hint b { color: #6f9378; font-weight: 700; }
.routine-form-hint { margin-top: 6px; color: #9aaf9c; font-size: 8.5px; }
.routine-form-hint span { margin-right: 3px; }
.category-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.category-choice { position: relative; cursor: pointer; }
.category-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.category-choice > span:last-child { display: flex; align-items: center; justify-content: center; gap: 4px; height: 31px; border: 1.3px dashed; border-radius: 8px 10px 8px 9px; font-family: var(--font-display); font-size: 10px; transition: transform .15s ease, box-shadow .15s ease; }
.choice-dot { width: 6px; height: 6px; border-radius: 50%; }
.choice-study > span:last-child { color: #5e956b; border-color: #cae5d1; background: #f3fbf5; }
.choice-study .choice-dot { background: #7ec596; }
.choice-work > span:last-child { color: #b36b7d; border-color: #edcad3; background: #fff5f7; }
.choice-work .choice-dot { background: #f09ab0; }
.choice-life > span:last-child { color: #9d823f; border-color: #e8d8aa; background: #fff9e9; }
.choice-life .choice-dot { background: #f0d486; }
.choice-idea > span:last-child { color: #7d72ae; border-color: #dad3ef; background: #f8f5ff; }
.choice-idea .choice-dot { background: #b8a9e8; }
.category-choice input:checked + .choice-dot + span { box-shadow: 2px 2px 0 rgba(152, 153, 128, .14); transform: rotate(-1.2deg); border-style: solid; }
.category-choice input:focus-visible + .choice-dot + span { outline: 3px solid rgba(240, 143, 172, .3); outline-offset: 1px; }
.priority-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.priority-choice { position: relative; cursor: pointer; }
.priority-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.priority-choice > span:last-child { display: flex; align-items: center; justify-content: center; gap: 5px; height: 30px; border: 1.3px dashed #e2e6db; border-radius: 8px 10px 7px 9px; background: #fffdf8; color: #9a9f91; font-family: var(--font-display); font-size: 9.5px; }
.priority-dot { width: 6px; height: 6px; border-radius: 50%; }
.p-low { background: #a3d5b0; }
.p-medium { background: #efd48d; }
.p-high { background: #ef9fb0; }
.priority-choice input:checked + .priority-dot + span { border-color: #dabcc4; background: #fff4f5; color: #8a6a6f; transform: rotate(-.7deg); }
.priority-choice input:focus-visible + .priority-dot + span { outline: 3px solid rgba(240, 143, 172, .3); outline-offset: 1px; }
.field-block textarea, .field-block > input[type="text"] { width: 100%; padding: 8px 10px; border: 1.3px dashed #dedcca; border-radius: 9px 12px 9px 11px; background: #fffdf8; outline: 0; resize: vertical; font-size: 10.5px; line-height: 1.5; color: #6e796c; }
.field-block textarea:focus, .field-block > input[type="text"]:focus { border-color: #e5adb9; background: #fffefa; }
.field-block textarea::placeholder, .field-block > input[type="text"]::placeholder { color: #b4b8aa; }

.subtask-field { margin-top: 13px; padding-top: 10px; border-top: 1.4px dashed #e2eade; }
.subtask-head { display: flex; justify-content: space-between; align-items: center; }
.subtask-count { color: #b0b5a9; font-size: 8.5px; }
.subtask-list { display: flex; flex-direction: column; gap: 3px; margin-top: 3px; }
.subtask-item { display: flex; align-items: center; gap: 7px; padding: 3px 4px; border-radius: 7px; }
.subtask-item:hover { background: #fbfdf8; }
.subtask-check { width: 17px; height: 17px; flex: none; display: grid; place-items: center; border: 1.3px solid #b9c8ba; border-radius: 50%; background: #fffdf7; color: transparent; }
.subtask-check .icon { width: 10px; height: 10px; }
.subtask-item.is-done .subtask-check { background: #f1a8ba; border-color: #db91a3; color: #fff; }
.subtask-item span:nth-child(2) { flex: 1; font-size: 10px; color: #7d877b; }
.subtask-item.is-done span:nth-child(2) { color: #a4aca1; text-decoration: line-through; }
.subtask-del { width: 21px; height: 21px; display: grid; place-items: center; border: 0; border-radius: 5px; background: transparent; color: #c2c7bd; }
.subtask-del:hover { background: #fff2f5; color: #b96b7c; }
.subtask-del .icon { width: 11px; height: 11px; }
.subtask-add { display: flex; align-items: center; gap: 5px; height: 32px; margin-top: 5px; padding: 0 7px; border: 1.2px dashed #dfe6db; border-radius: 8px 10px 8px 9px; background: #fffdf9; }
.subtask-add .icon { width: 12px; height: 12px; color: #a8b2a5; }
.subtask-add input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 9.5px; color: #6f796c; }
.subtask-add input::placeholder { color: #b1b6ac; }
.subtask-add button { border: 0; background: transparent; color: #ba7c8a; font-size: 9px; white-space: nowrap; }
.modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; padding-top: 12px; border-top: 1.5px dashed #dedfd4; }
.modal-footer-left { display: flex; align-items: center; gap: 6px; }
.modal-footer-right { display: flex; align-items: center; gap: 7px; }
.delete-button, .skip-button, .cancel-button, .save-button {
  height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 9px 12px 9px 11px;
  font-family: var(--font-display);
  font-size: 10px;
  border: 1.4px dashed;
  transition: transform .16s ease, background .16s ease;
}
.delete-button { border-color: #ecc4cb; background: #fff5f6; color: #b66f7e; }
.delete-button .icon, .skip-button .icon { width: 12px; height: 12px; }
.skip-button { border-color: #d9c8ae; background: #fffaf0; color: #a8895d; }
.delete-button:hover, .skip-button:hover { transform: rotate(-1deg); background: #ffedf1; }
.cancel-button { border-color: #dfe3d8; background: #fffdf8; color: #9a9e91; }
.cancel-button:hover { background: #fafcf7; }
.save-button { border-color: #de9dab; background: #f7aebf; color: #fffdf9; box-shadow: 2px 3px 0 rgba(211, 143, 159, .3); }
.save-button .icon { width: 13px; height: 13px; }
.save-button:hover { transform: translateY(-1px) rotate(-.5deg); background: #f5a3b7; }

.ledger-modal { width: min(480px, 100%); border-color: #e5caae; }
.ledger-modal::before { background: repeating-linear-gradient(45deg, rgba(255, 220, 148, .6) 0 7px, rgba(255, 243, 208, .8) 7px 14px); }
.ledger-modal-tape { display: none; }
.ledger-modal-heading { display: flex; align-items: center; gap: 9px; }
.ledger-modal-icon { width: 43px; height: 43px; display: grid; place-items: center; flex: none; border: 1.4px dashed #e3c58f; border-radius: 15px 12px 16px 12px; background: #fff7df; color: #b48a3d; transform: rotate(-3deg); }
.ledger-modal-icon .icon { width: 21px; height: 21px; }
.ledger-modal .modal-head { margin-bottom: 8px; }
.ledger-modal-type { margin-bottom: 7px; }
.ledger-modal-amount { height: 48px; display: flex; align-items: center; gap: 5px; margin-top: 7px; padding: 0 12px; border: 1.5px dashed #e6cfb0; border-radius: 11px 14px 11px 13px; background: #fffdf7; color: #b3884c; }
.ledger-modal-amount > span { font-family: var(--font-hand); font-size: 25px; }
.ledger-modal-amount input { width: 100%; border: 0; outline: 0; background: transparent; font-family: var(--font-body); font-weight: 800; font-size: 24px; color: #75613d; }
.ledger-modal-amount input::placeholder { color: #c8b99e; }
.ledger-modal .field-two { margin-top: 10px; }
.ledger-modal .field-block { margin-top: 9px; }
.ledger-modal .modal-footer { margin-top: 15px; }

/* Sync */
.sync-modal {
  position: relative;
  width: min(488px, 100%);
  max-height: min(91vh, 900px);
  overflow-y: auto;
  padding: 24px 25px 18px;
  border: 2px solid #e5c8b4;
  border-radius: 30px 26px 31px 25px / 26px 31px 25px 30px;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(151, 174, 150, .12) 1px, transparent 1.1px),
    linear-gradient(145deg, #fffdf7, #fffaf3);
  background-size: 17px 17px, auto;
  box-shadow: 9px 10px 0 rgba(67, 82, 68, .16), 0 24px 80px rgba(46, 58, 48, .2);
  animation: modalIn .28s cubic-bezier(.2, .8, .3, 1) both;
}
.sync-modal::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 29px;
  width: 71px;
  height: 21px;
  transform: rotate(-2deg);
  background: repeating-linear-gradient(90deg, rgba(198, 232, 207, .65) 0 7px, rgba(237, 250, 241, .84) 7px 14px);
  clip-path: polygon(2% 10%, 98% 0, 95% 94%, 0 100%);
}
.sync-modal-tape { display: none; }
.sync-modal-head { margin-bottom: 10px; align-items: center; }
.sync-modal-heading { display: flex; align-items: center; gap: 9px; }
.sync-modal-icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.4px dashed #b8dcc2;
  border-radius: 15px 12px 16px 12px;
  background: #f1fbf4;
  color: #679675;
  transform: rotate(-3deg);
}
.sync-modal-icon .icon { width: 22px; height: 22px; }
.sync-modal .modal-head h2 { font-size: 24px; }
.sync-content { min-height: 150px; }
.sync-lead { margin: 5px 0 13px; color: #8b978c; font-size: 10.5px; line-height: 1.65; }
.sync-lead b { color: #827460; font-weight: 700; }
.sync-mode-grid { display: grid; gap: 9px; }
.sync-card {
  position: relative;
  padding: 13px 14px;
  border: 1.5px dashed #dce8da;
  border-radius: 15px 18px 14px 17px;
  background: #fbfef9;
}
.sync-card.create-card { background: #f4fcf5; border-color: #bdddc5; }
.sync-card.join-card { background: #fffaf2; border-color: #ead8ba; }
.sync-card h3 { display: flex; align-items: center; gap: 5px; color: #657467; font-family: var(--font-display); font-weight: 400; font-size: 14px; }
.sync-card h3 span { width: 24px; height: 24px; display: grid; place-items: center; border: 1.2px dashed #c9dfcd; border-radius: 50%; background: #fffdf8; color: #74a482; font-family: var(--font-hand); font-size: 13px; }
.sync-card.join-card h3 span { border-color: #e7d0a8; color: #b38b43; }
.sync-card p { margin: 4px 0 9px; color: #9ca79b; font-size: 9.5px; line-height: 1.55; }
.sync-button-row { display: flex; gap: 7px; flex-wrap: wrap; }
.sync-primary, .sync-secondary, .sync-danger, .sync-soft {
  min-height: 32px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 9px 12px 9px 11px;
  font-family: var(--font-display);
  font-size: 10px;
  border: 1.4px dashed;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.sync-primary:disabled, .sync-secondary:disabled, .sync-danger:disabled, .sync-soft:disabled {
  opacity: .55;
  cursor: wait;
  transform: none;
}
.sync-primary { border-color: #dca6b3; background: #f7b0c1; color: #fffdf8; box-shadow: 2px 3px 0 rgba(211, 143, 159, .25); }
.sync-primary:hover { transform: translateY(-1px) rotate(-.4deg); background: #f5a4b8; }
.sync-secondary { border-color: #b9d9c2; background: #effaf2; color: #628f6d; }
.sync-secondary:hover { background: #e4f7e9; transform: rotate(-.4deg); }
.sync-soft { border-color: #e7d6bd; background: #fffaf0; color: #a18b6a; }
.sync-soft:hover { background: #fff4df; }
.sync-danger { border-color: #edc2ca; background: #fff4f6; color: #af6b7a; }
.sync-danger:hover { background: #ffebf0; }
.sync-button-row .sync-primary, .sync-button-row .sync-secondary { flex: 1; }
.sync-join-form { display: flex; gap: 6px; align-items: stretch; }
.sync-code-input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  border: 1.3px dashed #dfc8a8;
  border-radius: 8px 10px 8px 9px;
  background: #fffdf8;
  outline: 0;
  color: #756849;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.sync-code-input::placeholder { color: #c1b49b; font-weight: 500; letter-spacing: .4px; }
.sync-code-input:focus { border-color: #dfaab7; background: #fffefa; box-shadow: 0 0 0 3px rgba(255, 232, 238, .55); }
.sync-error { margin-top: 7px; padding: 6px 8px; border-radius: 6px; background: #fff1f4; color: #b9687b; font-size: 9px; }
.sync-hint { margin-top: 7px; color: #aaa596; font-size: 8.5px; line-height: 1.5; }
.sync-connected {
  padding: 13px;
  border: 1.5px dashed #bcdcc4;
  border-radius: 17px 20px 15px 19px;
  background: linear-gradient(150deg, #f4fcf5, #fffdf8);
}
.sync-status-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sync-status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; background: #ebf8ee; color: #659274; font-size: 9px; font-weight: 700; }
.sync-status-pill i { width: 6px; height: 6px; border-radius: 50%; background: #73c08a; }
.sync-status-pill.state-syncing { background: #fff7e2; color: #a18343; }
.sync-status-pill.state-syncing i { background: #e4b85a; animation: syncPulse 1.2s ease-in-out infinite; }
.sync-status-pill.state-conflict, .sync-status-pill.state-error { background: #fff1f4; color: #b56879; }
.sync-status-pill.state-conflict i, .sync-status-pill.state-error i { background: #dd7b91; }
.sync-status-pill.state-local { background: #f4f6ef; color: #9aa497; }
.sync-status-pill.state-local i { background: #b9c4b9; }
.sync-code-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 3px 0 7px;
  padding: 9px 10px;
  border: 1.5px dashed #e3c4a8;
  border-radius: 10px 13px 10px 12px;
  background: #fff9ed;
}
.sync-code-value { flex: 1; min-width: 0; color: #8e764d; font-family: var(--font-body); font-size: 16px; font-weight: 800; letter-spacing: 2px; }
.sync-copy-btn {
  flex: none;
  height: 26px;
  padding: 0 8px;
  border: 1.2px dashed #dfb3bd;
  border-radius: 6px 8px 6px 7px;
  background: #fff4f7;
  color: #b06d7d;
  font-size: 9px;
}
.sync-copy-btn:hover { background: #ffeaf0; }
.sync-meta-row { display: flex; justify-content: space-between; gap: 8px; color: #a4ad9f; font-size: 8.5px; }
.sync-meta-row b { color: #849383; font-weight: 600; }
.sync-actions-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 9px; border-top: 1.2px dashed #dfeadd; }
.sync-conflict {
  margin-top: 10px;
  padding: 10px 11px;
  border: 1.4px dashed #e8b7c0;
  border-radius: 11px 14px 10px 13px;
  background: #fff5f7;
}
.sync-conflict strong { display: block; color: #a65e71; font-family: var(--font-display); font-weight: 400; font-size: 11px; }
.sync-conflict p { margin-top: 3px; color: #ab8b92; font-size: 8.5px; line-height: 1.5; }
.sync-conflict .sync-button-row { margin-top: 7px; }
.sync-join-preview {
  margin-top: 8px;
  padding: 10px;
  border: 1.3px dashed #b9dcc1;
  border-radius: 10px 13px 10px 12px;
  background: #f5fcf6;
}
.sync-join-preview strong { display: block; color: #648d6e; font-family: var(--font-display); font-weight: 400; font-size: 11px; }
.sync-join-preview p { margin-top: 3px; color: #92a294; font-size: 8.5px; }
.sync-join-preview .sync-button-row { margin-top: 7px; }
.sync-counts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.sync-counts span { padding: 2px 6px; border: 1px dashed #d6e6d8; border-radius: 5px; background: #fffdf7; color: #829085; font-size: 8px; }
.sync-code-tip { margin-top: 3px; color: #a9a38f; font-size: 8.5px; }
.sync-footnote { margin-top: 13px; padding-top: 9px; border-top: 1.2px dashed #e1e6db; color: #afb0a2; font-size: 8.5px; line-height: 1.5; text-align: center; }

@keyframes syncPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }

/* =========================================================
   Floating checklist widget
   ========================================================= */

.floating-widget {
  position: fixed;
  right: 25px;
  bottom: 23px;
  z-index: 80;
  width: 312px;
  filter: drop-shadow(0 18px 30px rgba(70, 89, 73, .16));
}
.float-card {
  position: relative;
  padding: 14px 14px 12px;
  border: 2px solid #edbdc9;
  border-radius: 23px 20px 24px 19px / 20px 24px 19px 23px;
  background-color: #fffdf7;
  background-image:
    radial-gradient(rgba(158, 177, 149, .13) 1px, transparent 1.1px),
    linear-gradient(160deg, #fffdf7, #fff8f2);
  background-size: 16px 16px, auto;
  box-shadow: 6px 7px 0 rgba(238, 188, 199, .34);
  transform-origin: 100% 100%;
  animation: floatIn .32s cubic-bezier(.2, .8, .3, 1) both;
}
.float-tape { position: absolute; top: -8px; left: 50%; width: 61px; height: 16px; transform: translateX(-50%) rotate(-2deg); background: repeating-linear-gradient(45deg, rgba(255, 220, 170, .66) 0 6px, rgba(255, 241, 209, .8) 6px 12px); clip-path: polygon(2% 10%, 98% 0, 95% 95%, 0 100%); }
.float-head { display: flex; align-items: center; gap: 8px; }
.float-mascot { width: 39px; height: 39px; flex: none; }
.float-mascot svg, .float-mascot img { width: 100%; height: 100%; overflow: visible; object-fit: contain; }
.float-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.float-title strong { font-family: var(--font-display); font-weight: 400; font-size: 15px; color: #58675b; }
.float-title span { margin-top: 2px; font-family: var(--font-hand); font-size: 8.5px; color: #b0a494; letter-spacing: .3px; }
.float-count { min-width: 23px; height: 23px; display: grid; place-items: center; border: 1.3px dashed #e5b2be; border-radius: 50%; background: #fff0f4; color: #b96e80; font-family: var(--font-body); font-size: 10px; font-weight: 800; }
.float-minimize { width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #a9b1a6; }
.float-minimize:hover { background: #fff0f4; color: #b56e80; }
.float-minimize .icon { width: 13px; height: 13px; }
.float-progress-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; color: #a3aaa0; font-size: 8px; }
.float-progress-row b { font-family: var(--font-hand); font-size: 9px; color: #8b9c8f; }
.float-progress { height: 7px; margin-top: 3px; padding: 2px; border: 1px dashed #e7c8d0; border-radius: 99px; background: #fffaf4; }
.float-progress span { display: block; width: 0; height: 100%; border-radius: 99px; background: repeating-linear-gradient(120deg, #f09fb4 0 5px, #f7b9c8 5px 9px); transition: width .4s ease; }
.float-list { margin-top: 7px; }
.float-task { display: flex; align-items: center; gap: 7px; padding: 5px 2px; border-bottom: 1.2px dashed #ebe9df; }
.float-task:last-child { border-bottom: 0; }
.float-check { width: 19px; height: 19px; flex: none; display: grid; place-items: center; border: 1.3px solid #b5c4b6; border-radius: 50% 45% 52% 47%; background: #fffdf7; color: transparent; }
.float-check:hover { border-color: #e195a8; background: #fff2f5; }
.float-check .icon { width: 11px; height: 11px; }
.float-task-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; }
.float-task-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-weight: 400; font-size: 10.5px; color: #5f6d60; }
.float-rep { flex: none; color: #8aad93; font-size: 9px; }
.float-task-time { color: #b5ac9b; font-size: 8px; flex: none; }
.float-empty { padding: 12px 0 8px; text-align: center; color: #9bab9c; }
.float-empty span { font-family: var(--font-hand); color: #e3b380; font-size: 15px; }
.float-empty p { margin-top: 2px; font-size: 9px; line-height: 1.5; }
.float-footer { display: flex; gap: 6px; margin-top: 6px; padding-top: 7px; border-top: 1.2px dashed #eadfd6; }
.float-open-btn { flex: 1; height: 29px; display: flex; align-items: center; justify-content: center; gap: 2px; border: 1.2px dashed #d4e3d5; border-radius: 8px 10px 8px 9px; background: #f5fbf6; color: #73937b; font-family: var(--font-display); font-size: 9.5px; }
.float-open-btn:hover { background: #ecf9ef; }
.float-open-btn .icon { width: 10px; height: 10px; }
.float-add-btn { width: 31px; height: 29px; display: grid; place-items: center; border: 1.3px dashed #dfa5b1; border-radius: 8px 10px 8px 9px; background: #ffe8ef; color: #b66b7e; }
.float-add-btn:hover { background: #ffdde8; }
.float-add-btn .icon { width: 13px; height: 13px; }
.floating-widget.is-collapsed .float-card { display: none; }
.float-bubble {
  display: none;
  position: relative;
  width: 72px;
  height: 72px;
  padding: 6px 3px 3px;
  border: 1.7px solid #dd9cae;
  border-radius: 50% 46% 52% 47%;
  background: #fff6f3;
  box-shadow: 4px 5px 0 rgba(223, 166, 181, .35);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9e6070;
  transform: rotate(-2deg);
  transition: transform .2s ease;
  animation: bubbleWobble 5s ease-in-out infinite;
}
.float-bubble:hover { transform: rotate(2deg) scale(1.04); }
.floating-widget.is-collapsed .float-bubble { display: flex; }
.float-bubble-mascot { width: 42px; height: 38px; margin-top: -3px; }
.float-bubble-mascot svg, .float-bubble-mascot img { width: 100%; height: 100%; overflow: visible; object-fit: contain; }
.float-bubble-label { font-family: var(--font-display); font-size: 8px; line-height: 1.2; }
.float-bubble-count { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 4px; display: grid; place-items: center; border: 1.4px solid #fffaf3; border-radius: 50%; background: #f27f9f; color: #fff; font-family: var(--font-body); font-size: 9px; font-weight: 800; }

/* =========================================================
   Toast + confetti
   ========================================================= */

.toast-region { position: fixed; left: 50%; bottom: 23px; z-index: 120; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: min(92vw, 460px); }
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 9px 13px 9px 10px;
  border: 1.6px dashed #e5b8c4;
  border-radius: 13px 16px 12px 15px;
  background: #fffdf7;
  color: #6c7a6d;
  font-size: 10.5px;
  box-shadow: 4px 5px 0 rgba(120, 140, 121, .13), 0 8px 25px rgba(70, 84, 71, .12);
  animation: toastIn .25s ease both;
}
.toast.is-leaving { animation: toastOut .22s ease both; }
.toast-icon { width: 24px; height: 24px; display: grid; place-items: center; flex: none; border-radius: 50%; background: #fff0f4; color: #c37184; font-size: 12px; }
.toast p { flex: 1; min-width: 0; }
.toast-action { flex: none; border: 0; border-bottom: 1px dotted #d69aa8; background: transparent; color: #b06678; font-size: 9.5px; padding: 0; }
.confetti-piece { position: fixed; z-index: 130; width: 7px; height: 9px; border-radius: 2px; pointer-events: none; animation: confettiFall .8s ease-out forwards; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1280px) {
  :root { --sidebar-w: 238px; }
  .main { padding: 18px 21px 26px; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 318px; gap: 19px; }
  .search-box { width: 225px; }
  .hello-card { grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); padding: 24px; }
  .hero-art { max-width: 420px; }
  .ledger-body { grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
  .ledger-form { grid-template-columns: 98px 116px 112px minmax(110px, 1fr); }
  .ledger-submit { padding: 0 11px; }
}

@media (max-width: 1120px) {
  .hero-art { max-width: 370px; }
  .hello-card { grid-template-columns: minmax(0, 1fr) minmax(280px, .82fr); }
  .hello-copy h1 { font-size: 35px; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .side-stack { gap: 16px; }
  .garden-bunny { width: 91px; height: 84px; }
  .garden-plants { width: 154px; }
  .garden-plant { width: 34px; height: 38px; }
  .calendar-day { font-size: 9.5px; }
  .ledger-summary { gap: 9px; }
  .ledger-body { grid-template-columns: minmax(0, 1fr); }
  .ledger-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .ledger-tip { grid-column: 1 / -1; }
  .donut-wrap { justify-content: flex-start; }
}

@media (max-width: 980px) {
  .app { grid-template-columns: 218px minmax(0, 1fr); }
  .sidebar { margin-left: 11px; padding-left: 13px; padding-right: 13px; }
  .brand-copy strong { font-size: 22px; }
  .brand-mark { width: 45px; height: 45px; }
  .brand-mark svg { width: 38px; height: 38px; }
  .main { padding: 16px 17px 24px; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 286px; gap: 15px; }
  .hello-card { display: block; min-height: 190px; padding: 23px 23px 21px; }
  .hello-copy { max-width: 63%; }
  .hero-art { position: absolute; right: -3px; bottom: -10px; width: 41%; max-width: 340px; margin: 0; opacity: .96; }
  .hero-speech { top: -2px; right: 0; font-size: 10px; padding: 6px 8px 5px; }
  .hello-chips { gap: 6px; }
  .hero-progress-wrap { width: min(310px, 100%); }
  .profile-copy, .profile-chevron { display: none; }
  .profile-chip { padding: 3px; border-radius: 50%; }
  .search-box { width: 195px; }
  .panel-head { gap: 10px; }
  .panel-title-line h2 { font-size: 27px; }
  .panel-actions { flex-direction: column; align-items: flex-end; }
  .routine-banner-art { width: 96px; height: 79px; }
  .ledger-form { grid-template-columns: 96px 116px 1fr; grid-template-areas: "type amount category" "note note note" "date date submit"; }
  .ledger-submit { justify-self: end; }
  .ledger-note-field { grid-area: note; }
  .ledger-date-field { grid-area: date; }
}

@media (max-width: 820px) {
  body { padding-bottom: 78px; }
  .app { display: block; }
  .sidebar {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    top: auto;
    height: 64px;
    margin: 0;
    padding: 6px 8px;
    flex-direction: row;
    align-items: center;
    border-radius: 20px 19px 22px 18px;
    border-color: #e8cbd3;
    box-shadow: 0 -3px 20px rgba(90, 106, 92, .1), 4px 5px 0 rgba(241, 190, 203, .22);
    z-index: 90;
    overflow: visible;
  }
  .sidebar-tape, .sidebar-doodle, .brand, .new-task-btn, .sidebar-section, .sidebar-bottom { display: none; }
  .main-nav { flex-direction: row; width: 100%; height: 100%; gap: 1px; justify-content: space-between; }
  .nav-item { flex-direction: column; justify-content: center; gap: 1px; height: 100%; padding: 2px 1px; border-radius: 11px; }
  .nav-item:nth-child(3), .nav-item:nth-child(6), .nav-item:nth-child(7) { display: none; }
  .nav-label { flex: none; font-size: 8px; line-height: 1.2; white-space: nowrap; }
  .nav-icon { width: 27px; height: 27px; border-style: solid; border-color: transparent; background: transparent; }
  .nav-icon .icon { width: 18px; height: 18px; }
  .nav-item.is-active { transform: none; box-shadow: none; border-radius: 11px; }
  .nav-item.is-active .nav-icon { transform: none; background: #fffaf6; border-color: #e4b5c1; }
  .nav-count { display: none; }
  .main { padding: 14px 14px 26px; }
  .topbar { height: 48px; gap: 10px; }
  .breadcrumb { font-size: 10px; gap: 5px; }
  .breadcrumb > span:first-of-type, .breadcrumb-chevron { display: none; }
  .search-box { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; }
  .search-box input, .search-box kbd { display: none; }
  .search-box.is-expanded { position: absolute; left: 14px; right: 14px; top: 14px; width: auto; z-index: 30; border-radius: 14px; justify-content: flex-start; padding: 0 10px 0 12px; }
  .search-box.is-expanded input { display: block; }
  .search-box.is-expanded .icon { display: block; }
  .search-box.is-expanded kbd { display: none; }
  .bell-button { width: 37px; height: 37px; }
  .profile-avatar { width: 34px; height: 34px; }
  .hello-card { min-height: 220px; padding: 22px 20px; border-radius: 26px; }
  .hello-copy { max-width: 100%; padding-right: 108px; }
  .hello-copy h1 { font-size: clamp(28px, 7vw, 37px); }
  .hello-sub { font-size: 11.5px; }
  .hero-art { width: 47%; right: -31px; bottom: -6px; opacity: .8; }
  .hero-speech { display: none; }
  .hero-progress-wrap { width: 100%; max-width: 290px; }
  .doodle-star { font-size: 20px; }
  .content-grid { display: block; margin-top: 17px; }
  .side-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 17px; }
  .calendar-card { grid-column: 1; grid-row: 1 / span 2; }
  .garden-card { grid-column: 2; grid-row: 1; }
  .note-card { grid-column: 2; grid-row: 2; }
  .todo-panel, .routine-panel, .ledger-panel { padding: 21px 17px 15px; border-radius: 24px; }
  .panel-title-line h2 { font-size: 26px; }
  .quick-add { flex-wrap: wrap; padding: 8px; }
  .quick-input { flex-basis: calc(100% - 44px); }
  .quick-select-wrap { margin-left: 37px; }
  .add-submit { margin-left: auto; }
  .task-toolbar { align-items: flex-start; }
  .toolbar-note { display: none; }
  .list-cheer { display: none; }
  .task-actions { opacity: 1; transform: none; }
  .task-action { width: 24px; }
  .routine-item { align-items: flex-start; padding: 10px 8px; }
  .routine-actions { flex-wrap: wrap; justify-content: flex-end; width: 70px; }
  .routine-banner { display: block; padding: 10px 13px 12px; }
  .routine-banner-art { float: right; width: 88px; height: 72px; margin: -5px -7px -3px 4px; }
  .routine-banner-copy p { max-width: 100%; }
  .routine-toolbar-note, .routine-footer-doodle { display: none; }
  .ledger-panel { display: block; }
  .ledger-summary { grid-template-columns: 1fr 1fr; }
  .summary-note:last-child { grid-column: 1 / -1; min-height: 82px; }
  .ledger-side { display: grid; grid-template-columns: 1fr 1fr; }
  .ledger-entry-actions { opacity: 1; }
  .ledger-form { grid-template-columns: 1fr 1fr; grid-template-areas: "type type" "amount category" "note note" "date submit"; }
  .ledger-submit { justify-self: stretch; }
  .ledger-date-field { width: 100%; }
  .ledger-entry-card { padding: 12px; }
  .floating-widget { right: 12px; bottom: 82px; width: min(310px, calc(100vw - 24px)); }
  .toast-region { bottom: 84px; }
  .page-footer { display: none; }
  .modal-backdrop { padding: 10px; align-items: end; }
  .task-modal, .ledger-modal, .sync-modal { width: 100%; max-height: 91vh; padding: 21px 18px 16px; border-radius: 24px 22px 0 0; animation: sheetIn .3s ease both; }
  .modal-sticker { top: -17px; right: 15px; width: 51px; height: 51px; }
  .modal-head h2 { font-size: 23px; }
  .field-two { gap: 7px; }
  .category-picker { grid-template-columns: 1fr 1fr; }
  .priority-picker { gap: 4px; }
  .modal-footer { flex-wrap: wrap; }
  .modal-footer-left { order: 2; }
  .modal-footer-right { width: 100%; justify-content: flex-end; }
  .modal-footer-right .save-button { margin-left: auto; }
}

@media (max-width: 600px) {
  .main { padding: 10px 10px 24px; }
  .hello-card { min-height: 230px; padding: 19px 17px; }
  .hello-copy { padding-right: 0; }
  .hello-copy h1 { font-size: 29px; }
  .hello-sub { max-width: 82%; line-height: 1.5; }
  .hello-chips { max-width: 79%; }
  .soft-chip { font-size: 9px; padding: 3px 7px; }
  .hero-progress-wrap { width: 78%; margin-top: 13px; }
  .hero-art { width: 51%; right: -37px; opacity: .55; }
  .content-grid { margin-top: 14px; }
  .side-stack { display: flex; flex-direction: column; gap: 14px; }
  .calendar-card, .garden-card, .note-card { width: 100%; }
  .calendar-card { order: 1; }
  .garden-card { order: 2; }
  .note-card { order: 3; }
  .panel-head { flex-wrap: wrap; gap: 6px; }
  .panel-title-line h2 { font-size: 24px; }
  .panel-sub { max-width: 100%; }
  .panel-actions { padding-top: 0; flex-direction: row; }
  .round-action { width: 33px; height: 33px; }
  .quick-hint { font-size: 8.5px; line-height: 1.5; }
  .quick-hint span { display: none; }
  .quick-select-wrap { margin-left: 0; order: 2; }
  .add-submit { order: 3; }
  .quick-input { flex: 1 1 100%; order: 1; border-bottom: 1px dashed #e3ece4; padding-bottom: 3px; }
  .quick-add { gap: 6px; }
  .quick-add-icon { display: none; }
  .task-item { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; padding: 8px 2px; }
  .task-title-line h3 { font-size: 13px; }
  .task-actions { gap: 0; }
  .task-action { width: 22px; height: 24px; }
  .task-meta { gap: 4px 6px; }
  .task-group-label { padding-left: 1px; }
  .empty-state { padding: 21px 7px 18px; }
  .empty-art { width: 122px; height: 96px; }
  .routine-panel-head .primary-button { padding: 6px 9px; font-size: 10px; }
  .routine-banner-art { display: none; }
  .routine-tabs { gap: 1px; }
  .routine-tab { padding: 4px 8px; font-size: 10px; }
  .routine-item { grid-template-columns: 36px minmax(0, 1fr); display: grid; gap: 8px; }
  .routine-icon { width: 36px; height: 36px; }
  .routine-actions { width: auto; grid-column: 2; justify-content: flex-end; }
  .routine-actions .sketch-switch { margin-right: auto; }
  .ledger-panel .panel-head { display: flex; flex-direction: column; align-items: flex-start; }
  .ledger-month-nav { align-self: stretch; justify-content: space-between; }
  .ledger-month-nav strong { flex: 1; }
  .ledger-summary { grid-template-columns: 1fr 1fr; gap: 7px; }
  .summary-note { min-height: 88px; padding: 10px; }
  .summary-note > strong { font-size: 21px; }
  .summary-note > p { font-size: 8px; }
  .summary-note:last-child { min-height: 76px; }
  .ledger-entry-head > span:last-child { display: none; }
  .ledger-list-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .ledger-side { display: flex; }
  .donut-wrap { justify-content: center; }
  .category-legend { max-width: 135px; }
  .ledger-day-head b { font-size: 8px; }
  .ledger-entry-main strong { font-size: 11.5px; }
  .ledger-entry-amount { font-size: 11px; }
  .ledger-footer { flex-direction: column; align-items: flex-start; gap: 5px; }
  .nav-label { font-size: 7.5px; }
  .search-box.is-expanded { top: 10px; }
  .floating-widget { right: 10px; bottom: 80px; width: calc(100vw - 20px); }
  .float-bubble { width: 64px; height: 64px; }
  .float-bubble-mascot { width: 37px; height: 33px; }
  .float-bubble-label { font-size: 7.5px; }
  .float-card { padding: 12px 12px 10px; }
  .toast-region { width: 92vw; bottom: 82px; }
  .toast { font-size: 9.5px; }
}

@media (max-width: 390px) {
  .hello-copy h1 { font-size: 25px; }
  .hello-sub { max-width: 100%; }
  .hello-chips { max-width: 74%; }
  .hero-progress-wrap { width: 67%; }
  .soft-chip { padding: 3px 6px; }
  .soft-chip .icon { display: none; }
  .filter-tab { padding: 4px 7px; font-size: 10.5px; }
  .routine-tab { padding: 4px 6px; }
  .ledger-type-toggle { height: 32px; }
}

/* =========================================================
   Motion
   ========================================================= */

@keyframes tomatoBob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(.6deg); } }
@keyframes floatCloud { 0%,100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
@keyframes plantSway { 0%,100% { transform: rotate(-1deg); } 50% { transform: rotate(2deg); } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes taskIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes checkPop { 0% { transform: scale(.8) rotate(-3deg); } 55% { transform: scale(1.15) rotate(3deg); } 100% { transform: scale(1) rotate(-3deg); } }
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes floatIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bubbleWobble { 0%,100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(1deg) translateY(-4px); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px) scale(.97); } }
@keyframes confettiFall { 0% { opacity: 1; transform: translate(0,0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

@media (max-width: 1120px) {
  .timer-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 15px; }
  .timer-dial-wrap { width: min(340px, 72vw); }
  .timer-side { gap: 12px; }
}

@media (max-width: 900px) {
  .timer-layout { grid-template-columns: 1fr; }
  .timer-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .timer-note-card { grid-column: 1 / -1; }
  .timer-dial-wrap { width: min(370px, 68vw); }
}

@media (max-width: 820px) {
  body.is-timer-view .hello-card { display: none; }
  body.is-timer-view .timer-panel { margin-top: 8px; }
  .sync-button {
    width: 39px;
    min-width: 0;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .sync-label { display: none; }
  .sync-status-dot { top: 7px; right: 8px; }
  .timer-panel { padding: 21px 17px 17px; border-radius: 24px; }
  .timer-layout { margin-top: 14px; }
  .timer-stage { padding: 13px 11px 15px; border-radius: 19px; }
  .timer-side { grid-template-columns: 1fr 1fr; gap: 12px; }
  .timer-mode { padding: 0 9px; font-size: 10px; }
  .timer-quick-times { gap: 4px; }
  .timer-custom-panel { margin-top: 8px; }
  .timer-today-badge { padding: 6px 10px; }
}

@media (max-width: 600px) {
  .timer-head { flex-wrap: wrap; row-gap: 8px; }
  .timer-today-badge { margin-left: auto; }
  .timer-stage { padding: 11px 8px 13px; }
  .timer-mode-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .timer-mode { justify-content: center; min-height: 31px; }
  .timer-custom-panel { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 8px; }
  .timer-custom-copy { grid-column: 1 / -1; }
  .timer-custom-stepper { grid-column: 1; }
  .timer-custom-apply { grid-column: 2; margin-left: 0; white-space: nowrap; }
  .timer-quick-times { justify-content: flex-start; padding-left: 2px; }
  .timer-dial-wrap { width: min(325px, 86vw); margin-top: 10px; }
  .timer-digits { font-size: clamp(42px, 13vw, 57px); }
  .timer-pig { right: 10px; bottom: 8px; width: 47px; height: 47px; }
  .timer-dial::before { inset: 16px; }
  .timer-choice-note { display: none; }
  .timer-controls { width: 100%; }
  .timer-primary { flex: 1; min-width: 0; }
  .timer-reset { flex: none; }
  .timer-progress-meta { justify-content: center; text-align: center; }
  .timer-hint { white-space: normal; }
  .timer-side { display: flex; }
  .timer-note-card { grid-column: auto; }
  .timer-focus-card, .timer-history-card { padding: 13px; }
}

@media (max-width: 390px) {
  .timer-mode { font-size: 9.5px; }
  .timer-quick-times button { font-size: 8px; }
  .timer-custom-copy small { display: none; }
  .timer-custom-stepper { gap: 3px; }
  .timer-step-btn { width: 24px; }
  .timer-custom-input { padding: 0 5px; }
  .timer-custom-input input { width: 38px; }
}

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

/* =========================================================
   Life tools
   ========================================================= */
.nav-icon-life { background: #f8e6ef; border-color: #edc9d6; color: #c87992; }
.nav-item[data-view="life"].is-active .nav-icon { background: #fff0f5; }

.life-panel {
  grid-column: 1 / -1;
  position: relative;
  min-width: 0;
  border: 2px solid #c4dfcd;
  border-radius: 30px 26px 32px 25px / 26px 31px 25px 30px;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(146, 171, 149, .12) 1px, transparent 1.1px),
    linear-gradient(180deg, #fffdf7 0%, #fffdf8 100%);
  background-size: 17px 17px, auto;
  box-shadow: 6px 7px 0 rgba(184, 208, 189, .17), var(--shadow-paper);
  padding: 25px 25px 22px;
  overflow: hidden;
}
.life-panel::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 18%;
  width: 86px;
  height: 24px;
  transform: translateX(-50%) rotate(-2deg);
  background: repeating-linear-gradient(45deg, rgba(248, 198, 214, .55) 0 7px, rgba(255, 240, 245, .72) 7px 14px);
  border-left: 1px dashed rgba(223, 161, 177, .35);
  border-right: 1px dashed rgba(223, 161, 177, .35);
  clip-path: polygon(2% 8%, 98% 0, 95% 94%, 4% 100%);
  z-index: 3;
}
.life-panel::after {
  content: "";
  position: absolute;
  top: 25px;
  right: 25px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f1bdcb;
  box-shadow: 14px 9px 0 #e5d2a7, -8px 16px 0 #b9d8c2;
  opacity: .55;
}
.life-head { align-items: flex-start; }
.life-head .primary-button { flex: none; margin-top: 4px; }
.life-widgets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin: 17px 0 15px;
}
.life-widget {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 11px 13px;
  border: 1.5px dashed #e2d7bd;
  border-radius: 17px 14px 18px 15px;
  overflow: hidden;
}
.life-widget::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -14px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
}
.life-widget-icon { width: 34px; height: 34px; display: grid; place-items: center; font-size: 21px; border-radius: 12px; background: rgba(255, 255, 255, .55); flex: none; }
.life-widget > div { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.life-widget > div span { font-size: 9.5px; color: #7f8c80; line-height: 1.35; white-space: nowrap; }
.life-widget > div strong { font-family: var(--font-display); font-size: 16px; color: var(--ink-strong); line-height: 1.35; white-space: nowrap; }
.life-widget > i { position: absolute; right: 10px; top: 8px; color: rgba(255, 255, 255, .7); font-style: normal; font-size: 16px; }
.widget-savings { background: #fbe9dd; border-color: #efcdb6; }
.widget-habits { background: #eaf5e4; border-color: #c9e2c4; }
.widget-focus { background: #e8f2f8; border-color: #c4dfe9; }
.widget-balance { background: #f9edf1; border-color: #edccd7; }
.life-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid #eadfd1;
  border-radius: 14px;
  background: #fffaf2;
  overflow-x: auto;
  scrollbar-width: none;
}
.life-tabs::-webkit-scrollbar { display: none; }
.life-tab {
  flex: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  padding: 7px 8px;
  color: #8d9a8d;
  font-family: var(--font-display);
  font-size: 11px;
  transition: .2s ease;
}
.life-tab span { margin-right: 3px; opacity: .8; }
.life-tab:hover { color: #b56f83; background: #fff5f2; }
.life-tab.is-active { color: #a6546b; border-color: #efc3d0; background: #fff1f4; box-shadow: 0 2px 0 rgba(239, 195, 204, .3); }
.life-content { margin-top: 16px; }

.life-section-head, .savings-head, .stats-toolbar, .timetable-summary, .task-view-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.life-section-head { margin: 19px 0 11px; }
.life-section-head h3, .savings-head h3, .stats-toolbar h3, .timetable-summary h3 { margin-top: 1px; font-family: var(--font-display); font-size: 19px; color: var(--ink-strong); font-weight: 500; }
.life-section-head h3 span { color: #c18896; font-size: 12px; margin-left: 3px; }
.life-empty { min-height: 235px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 5px; border: 1.5px dashed #e0dccb; border-radius: 19px; background: #fffdf8; padding: 20px; }
.life-empty img { width: 96px; height: 90px; object-fit: contain; margin-bottom: 4px; }
.life-empty strong { font-family: var(--font-display); font-size: 16px; color: #6e806f; font-weight: 500; }
.life-empty p { color: #a3ada2; font-size: 10px; }
.life-empty .primary-button { margin-top: 7px; }
.life-empty-small { min-height: 160px; }
.life-empty-small img { width: 72px; height: 64px; }

/* Savings */
.savings-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  min-height: 150px;
  overflow: hidden;
  padding: 21px 22px;
  border: 1.5px solid #f0d7b9;
  border-radius: 21px 17px 24px 18px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .55), transparent 8rem),
    linear-gradient(115deg, #fff3df, #fce6e7 58%, #eaf4e4);
}
.savings-hero::before { content: "✦"; position: absolute; right: 30%; top: 16px; color: #e2ba83; opacity: .55; font-size: 22px; }
.savings-hero-copy { position: relative; z-index: 1; max-width: 65%; }
.savings-hero-copy h3 { margin-top: 3px; font-family: var(--font-display); font-size: clamp(22px, 2.5vw, 29px); font-weight: 500; color: #665345; line-height: 1.35; letter-spacing: .5px; }
.savings-hero-copy > p:not(.section-kicker) { margin-top: 6px; color: #927d6b; font-size: 10.5px; }
.savings-hero-copy > p b { color: #bd6d79; }
.savings-hero-chips { display: flex; gap: 6px; margin-top: 10px; }
.savings-hero-chips span { padding: 3px 8px; border: 1px solid rgba(217, 165, 158, .45); border-radius: 20px; color: #a06f6e; font-size: 9px; background: rgba(255, 255, 255, .42); }
.savings-hero > img { width: 165px; height: 145px; object-fit: contain; align-self: flex-end; margin: -10px -2px -21px 8px; filter: drop-shadow(0 5px 2px rgba(177, 144, 125, .08)); }
.saving-template-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.saving-template { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 8px 8px 7px; border: 1px solid #eadfce; border-radius: 11px; background: #fffdf7; text-align: left; color: #7d897b; transition: .18s ease; }
.saving-template:hover { transform: translateY(-2px) rotate(-.5deg); border-color: #ecc4cf; background: #fff7f4; box-shadow: 0 3px 0 #f5e8dd; }
.saving-template-icon { font-size: 18px; flex: none; }
.saving-template-copy { display: flex; flex-direction: column; min-width: 0; }
.saving-template strong { font-size: 9.5px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saving-template small { display: block; margin-top: -1px; color: #b2b3a5; font-size: 7.5px; line-height: 1.4; white-space: nowrap; }
.saving-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.saving-goal { position: relative; border: 1.5px solid #ead6d1; border-radius: 17px 13px 18px 14px; padding: 13px 14px 11px; background: linear-gradient(160deg, #fffdf9, #fff8f5); box-shadow: 3px 4px 0 rgba(222, 192, 184, .13); }
.saving-goal.is-finished { border-color: #b9ddc3; background: linear-gradient(160deg, #fbfff9, #eff8ef); }
.saving-goal-top { display: flex; align-items: center; gap: 7px; }
.saving-goal-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 11px 9px 12px 10px; background: color-mix(in srgb, var(--saving-color, #f4a6b8) 24%, #fff); font-size: 19px; }
.saving-plan-tag { padding: 2px 7px; border-radius: 20px; background: #fff4f1; color: #b48a80; font-size: 8px; }
.saving-edit, .habit-edit { margin-left: auto; border: 0; background: transparent; color: #b8aa9e; letter-spacing: 1px; font-size: 15px; line-height: 1; padding: 0 2px; }
.saving-goal h3 { margin-top: 7px; font-family: var(--font-display); font-size: 15px; font-weight: 500; color: #566757; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saving-note { margin-top: 2px; color: #a5aa9e; font-size: 8.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saving-amount-row { display: flex; align-items: baseline; gap: 4px; margin-top: 9px; }
.saving-amount-row strong { color: #bf7384; font-family: var(--font-display); font-size: 17px; font-weight: 500; }
.saving-amount-row span { color: #b4b5a9; font-size: 8.5px; }
.saving-amount-row b { margin-left: auto; color: #b17c65; font-size: 9px; font-weight: 500; }
.saving-bar { height: 7px; margin-top: 6px; overflow: hidden; border-radius: 20px; background: #f2eae4; }
.saving-bar span { display: block; height: 100%; border-radius: inherit; background: repeating-linear-gradient(110deg, var(--saving-color, #f4a6b8) 0 7px, color-mix(in srgb, var(--saving-color, #f4a6b8) 65%, #fff) 7px 14px); transition: width .45s ease; }
.saving-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 7px; color: #a6a99b; font-size: 8px; }
.saving-deposit-btn { border: 1px solid #ecc7ce; border-radius: 8px; padding: 4px 8px; background: #fff8f3; color: #b66e80; font-family: var(--font-display); font-size: 9px; transition: .18s ease; }
.saving-deposit-btn:hover { background: #ffeef1; transform: translateY(-1px); }
.saving-goal.is-finished .saving-deposit-btn { border-color: #b8ddc4; color: #609174; background: #f4fbf4; }

/* Habits */
.habit-summary { display: flex; align-items: center; gap: 22px; min-height: 82px; padding: 12px 18px; border: 1.5px solid #d7e8d3; border-radius: 18px 15px 20px 16px; background: linear-gradient(115deg, #f4fbf0, #fffaf1 60%, #fdf0f3); }
.habit-summary > div { display: flex; flex-direction: column; gap: 1px; }
.habit-summary > div span { color: #91a08f; font-size: 9px; }
.habit-summary > div strong { color: #5f7762; font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.habit-summary-pig { margin-left: auto; flex-direction: row !important; align-items: center; gap: 8px !important; }
.habit-summary-pig img { width: 42px; height: 42px; object-fit: contain; }
.habit-summary-pig p { color: #a5ad9e; font-size: 8.5px; max-width: 80px; line-height: 1.5; }
.habit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.habit-card { position: relative; padding: 12px 13px 11px; border: 1.5px solid color-mix(in srgb, var(--habit-color, #d8ecd9) 55%, #e5dccd); border-radius: 17px 13px 18px 14px; background: linear-gradient(150deg, #fffdf9, color-mix(in srgb, var(--habit-color, #d8ecd9) 11%, #fff)); }
.habit-top { display: flex; align-items: center; gap: 8px; }
.habit-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 12px 9px 13px 10px; background: var(--habit-color, #d8ecd9); font-size: 20px; flex: none; box-shadow: 2px 2px 0 rgba(255, 255, 255, .65) inset; }
.habit-title-wrap { min-width: 0; }
.habit-title-wrap h3 { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: #5a6d5b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.habit-title-wrap p { margin-top: 1px; color: #a0a698; font-size: 8.5px; }
.habit-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: 11px; }
.habit-week span { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 3px 1px 2px; border-radius: 7px; color: #b4b7aa; font-size: 7px; }
.habit-week span i { font-style: normal; font-size: 7px; line-height: 1.4; }
.habit-week span b { font-size: 9px; font-weight: 500; line-height: 1.5; }
.habit-week span.is-done { color: #63866b; background: color-mix(in srgb, var(--habit-color, #d8ecd9) 62%, #fff); }
.habit-week span.is-today b { text-decoration: underline dotted #d19aa6; text-underline-offset: 2px; }
.habit-toggle { width: 100%; margin-top: 9px; border: 1px dashed #d9c9aa; border-radius: 8px; padding: 5px; background: rgba(255, 253, 246, .65); color: #9c8f74; font-family: var(--font-display); font-size: 9px; transition: .18s ease; }
.habit-toggle:hover { background: #fff7e9; border-color: #d6b995; }
.habit-toggle.is-done { border-style: solid; border-color: #b9dcc2; color: #5f9070; background: #edf8ee; }

/* Timetable */
.timetable-summary { align-items: center; margin-bottom: 12px; }
.timetable-summary p:not(.section-kicker) { color: #9da89d; font-size: 9px; }
.timetable-scroll { overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: #e3cfc2 transparent; }
.timetable-board {
  display: grid;
  grid-template-columns: 48px repeat(7, minmax(82px, 1fr));
  grid-template-rows: 33px repeat(12, 43px);
  min-width: 730px;
  position: relative;
  border: 1px solid #e9dfd1;
  border-radius: 13px;
  overflow: hidden;
  background: #fffdf8;
}
.tt-corner, .tt-day-head {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff8ec;
  border-bottom: 1px solid #ebdfd2;
  color: #a08870;
  font-family: var(--font-display);
  font-size: 10px;
}
.tt-corner { grid-column: 1; grid-row: 1; font-size: 8px; color: #b4a895; }
.tt-day-head { border-left: 1px dotted #eadfd1; }
.tt-period { grid-column: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-top: 1px dotted #eee4d7; color: #a9a397; }
.tt-period b { font-family: var(--font-hand); font-size: 9px; font-weight: 500; color: #9a9181; line-height: 1.1; }
.tt-period small { margin-top: 1px; font-size: 7px; color: #bbb7aa; line-height: 1.1; }
.tt-cell { border-top: 1px dotted #eee4d7; border-left: 1px dotted #eee4d7; }
.tt-cell:nth-child(even) { background: rgba(250, 246, 237, .38); }
.tt-course {
  z-index: 2;
  margin: 2px;
  padding: 5px 6px;
  border: 1px solid color-mix(in srgb, var(--course-color, #f3b8c7) 70%, #d9c2c3);
  border-radius: 7px 5px 8px 6px;
  background: color-mix(in srgb, var(--course-color, #f3b8c7) 45%, #fff);
  color: #5b6258;
  text-align: left;
  overflow: hidden;
  box-shadow: 1px 2px 0 rgba(157, 132, 120, .08);
  transition: .18s ease;
}
.tt-course:hover { filter: saturate(1.1); transform: translateY(-1px); }
.tt-course strong { display: block; font-family: var(--font-display); font-size: 9px; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-course small { display: block; margin-top: 2px; color: color-mix(in srgb, #667366 74%, #fff); font-size: 7px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timetable-tip { margin-top: 8px; color: #b2aa9b; font-size: 8.5px; display: flex; align-items: center; gap: 4px; }
.timetable-tip span { color: #c995a6; }
.life-empty-course { min-height: 260px; }

/* Stats */
.stats-range-tabs, .task-view-tabs, .task-view-nav { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid #e8ddcf; border-radius: 9px; background: #fffaf1; }
.stats-range-tabs button, .task-view-tabs button, .task-view-nav button {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  padding: 4px 10px;
  color: #a0a598;
  font-family: var(--font-display);
  font-size: 9.5px;
  transition: .18s ease;
}
.stats-range-tabs button:hover, .task-view-tabs button:hover, .task-view-nav button:hover { color: #b06d7e; background: #fff5f2; }
.stats-range-tabs button.is-active, .task-view-tabs button.is-active { color: #a95e73; border-color: #ecc4ce; background: #fff1f3; }
.stats-range-label { margin-top: 7px; color: #aaa99b; font-size: 8.5px; }
.stats-range-label b { color: #9b7d68; font-weight: 500; }
.stats-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.stat-metric { min-height: 73px; padding: 10px 12px; border: 1px solid #eadfd0; border-radius: 12px 10px 13px 11px; background: #fffdf8; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.stat-metric:nth-child(1) { background: #fff4f4; border-color: #eed4d4; }
.stat-metric:nth-child(2) { background: #f1f8fa; border-color: #d6e7e9; }
.stat-metric:nth-child(3) { background: #fff9e9; border-color: #f0e3c8; }
.stat-metric:nth-child(4) { background: #f4faf1; border-color: #dcebd7; }
.stat-metric span { color: #9ca598; font-size: 8.5px; }
.stat-metric strong { margin-top: 1px; color: #5f7162; font-family: var(--font-display); font-size: 23px; font-weight: 500; line-height: 1.2; }
.stat-metric small { color: #b4b5a8; font-size: 7.5px; }
.stats-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 10px; margin-top: 10px; }
.stats-card { min-width: 0; padding: 14px; border: 1.5px solid #e7dfd2; border-radius: 13px 11px 14px 12px; background: #fffdf9; }
.stats-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; }
.stats-card-head h4 { margin-top: 1px; font-family: var(--font-display); font-size: 13px; color: #617062; font-weight: 500; }
.stats-badge { padding: 2px 6px; border: 1px solid #ecdfcb; border-radius: 20px; color: #ae957a; font-size: 7.5px; background: #fff9eb; white-space: nowrap; }
.donut-wrap { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 12px 3px 8px; }
.stats-donut { position: relative; width: 137px; height: 137px; border-radius: 50%; flex: none; display: grid; place-items: center; transform: rotate(-7deg); }
.stats-donut::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fffdf9; box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset; }
.stats-donut > div { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; transform: rotate(7deg); }
.stats-donut strong { color: #5d6d5f; font-family: var(--font-display); font-size: 25px; font-weight: 500; line-height: 1.1; }
.stats-donut span { color: #a5a99c; font-size: 8px; }
.stats-legend { display: flex; flex-direction: column; gap: 7px; min-width: 0; flex: 1; }
.stats-legend p { display: flex; align-items: center; gap: 5px; color: #909a8d; font-size: 8px; white-space: nowrap; }
.stats-legend p i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--dot); }
.stats-legend p span { overflow: hidden; text-overflow: ellipsis; }
.stats-legend p b { margin-left: auto; color: #7c8779; font-weight: 500; font-size: 8px; }
.stats-legend p b small { color: #b3b4a8; font-size: 7px; font-weight: 400; }
.stats-empty-note { padding: 7px 0 0; color: #b4b2a5; font-size: 8.5px; text-align: center; }
.stats-bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 5px; height: 168px; padding: 22px 4px 0; }
.stats-bar-item { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; }
.stats-bar-item > b { color: #9e8e7d; font-size: 8px; font-weight: 500; height: 10px; }
.stats-bar-track { width: min(23px, 70%); height: 100%; display: flex; align-items: flex-end; border-radius: 5px 5px 2px 2px; background: #fbf6ed; }
.stats-bar-track span { display: block; width: 100%; min-height: 4px; border-radius: 5px 5px 2px 2px; background: repeating-linear-gradient(160deg, #eab4c0 0 4px, #f5ccd4 4px 8px); transition: height .45s ease; }
.stats-bar-item:nth-child(3n) .stats-bar-track span { background: repeating-linear-gradient(160deg, #b8d9c1 0 4px, #d5ebd9 4px 8px); }
.stats-bar-item:nth-child(3n+1) .stats-bar-track span { background: repeating-linear-gradient(160deg, #f2d296 0 4px, #f8e4b8 4px 8px); }
.stats-bar-item small { color: #b0b0a3; font-size: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.stats-foot-note { margin-top: 7px; padding-top: 7px; border-top: 1px dotted #eee5d9; color: #b1ad9f; font-size: 8px; text-align: center; }
.stats-foot-note span { color: #d39fac; margin-right: 3px; }

/* Task views */
.task-view-toolbar { align-items: center; margin-bottom: 7px; }
.task-view-nav { padding: 2px; }
.task-view-nav button { padding: 3px 7px; font-size: 12px; line-height: 1.1; }
.task-view-nav button.task-view-today { font-size: 8.5px; color: #a17d6a; }
.task-view-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 10px 0 9px; }
.task-view-title h3 { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: #5e705f; }
.task-view-title span { color: #b5b1a5; font-size: 8px; }
.life-calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.life-calendar-weekdays span { text-align: center; color: #ac9e8b; font-family: var(--font-display); font-size: 8.5px; }
.life-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.life-calendar-day { min-height: 88px; display: flex; flex-direction: column; align-items: stretch; text-align: left; padding: 5px 4px 4px; border: 1px solid #ece1d4; border-radius: 8px; background: #fffdf8; color: #7e8b7d; transition: .18s ease; overflow: hidden; }
.life-calendar-day:hover { border-color: #e4bfc8; background: #fff8f5; }
.life-calendar-day.is-outside { opacity: .42; background: #fdfbf5; }
.life-calendar-day.is-today { border-color: #e4b4c2; box-shadow: 0 0 0 1px #f4d6dd inset; }
.life-calendar-day.is-selected { background: #fff3f1; border-color: #e5aebe; }
.life-cal-day-num { font-family: var(--font-display); font-size: 9px; color: #a6937e; line-height: 1.4; }
.life-calendar-day.is-today .life-cal-day-num { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #f1b9c7; color: #fff; margin: -1px 0 1px -1px; }
.life-cal-chips { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.task-view-chip { display: block; max-width: 100%; padding: 2px 4px; border-left: 2px solid var(--chip-color, #d8ecd9); border-radius: 2px 4px 4px 2px; background: color-mix(in srgb, var(--chip-color, #d8ecd9) 26%, #fff); color: #777d70; font-size: 7px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-view-chip.is-done { text-decoration: line-through; opacity: .6; }
.life-cal-more { color: #b09085; font-size: 7px; margin-top: 1px; }
.life-week-scroll { overflow-x: auto; padding-bottom: 4px; }
.life-week-grid { display: grid; grid-template-columns: repeat(7, minmax(100px, 1fr)); gap: 5px; min-width: 720px; }
.life-week-day { min-height: 245px; border: 1px solid #e9dfd2; border-radius: 9px; background: #fffdf9; overflow: hidden; }
.life-week-day.is-today { border-color: #e6b9c5; }
.life-week-day.is-selected { background: #fff8f5; }
.life-week-day-head { display: flex; align-items: baseline; gap: 4px; width: 100%; padding: 6px 7px; border: 0; border-bottom: 1px dotted #ece2d6; background: #fff9f1; color: #ab9a86; text-align: left; }
.life-week-day-head span { font-size: 8px; }
.life-week-day-head b { font-family: var(--font-display); font-size: 13px; color: #8d7866; font-weight: 500; }
.life-week-tasks { display: flex; flex-direction: column; gap: 3px; padding: 5px; }
.life-week-task { border: 0; border-left: 2px solid var(--chip-color, #d8ecd9); border-radius: 3px; padding: 3px 4px; background: color-mix(in srgb, var(--chip-color, #d8ecd9) 22%, #fff); color: #778274; font-size: 8px; line-height: 1.35; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.life-week-task.is-done { text-decoration: line-through; opacity: .55; }
.life-week-empty { color: #c1b9ab; font-size: 7.5px; }
.task-day-wrap { border: 1px solid #e9dfd2; border-radius: 12px; background: #fffdf9; padding: 13px; }
.task-day-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 7px; }
.task-day-head h4 { margin-top: 1px; color: #5f7161; font-family: var(--font-display); font-size: 15px; font-weight: 500; }
.task-day-head > span { color: #b09f8c; font-size: 8px; padding-top: 4px; }
.task-day-list { display: flex; flex-direction: column; gap: 4px; }
.task-day-item { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; border-bottom: 1px dotted #f0e6da; background: transparent; padding: 7px 4px; text-align: left; }
.task-day-item:last-child { border-bottom: 0; }
.task-day-item:hover { background: #fff8f3; }
.task-day-check { width: 17px; height: 17px; border: 1.2px dashed #d8c8b6; border-radius: 5px; display: grid; place-items: center; color: #fff; font-size: 11px; flex: none; }
.task-day-item.is-done .task-day-check { border-style: solid; border-color: #9bc5a4; background: #9bc5a4; }
.task-day-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0; }
.task-day-info strong { color: #6d796a; font-size: 10px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-day-item.is-done .task-day-info strong { text-decoration: line-through; color: #a2a79d; }
.task-day-info small { color: #b4b1a4; font-size: 7.5px; }
.task-day-item > i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--chip-color, #d8ecd9); }
.task-view-tabs { flex-wrap: wrap; }

/* Life modal forms */
.life-modal { width: min(540px, calc(100vw - 32px)); max-height: min(88vh, 760px); overflow-y: auto; padding: 22px 23px 18px; border: 2px solid #d8e2d3; border-radius: 25px 21px 27px 22px; background: var(--paper); background-image: radial-gradient(rgba(146, 171, 149, .1) 1px, transparent 1.1px); background-size: 17px 17px; box-shadow: 7px 8px 0 rgba(171, 193, 172, .17), var(--shadow-paper); position: relative; animation: modalIn .26s ease both; }
.life-modal-small { width: min(445px, calc(100vw - 32px)); }
.life-modal-heading { display: flex; align-items: center; gap: 10px; }
.life-modal-icon { width: 41px; height: 41px; display: grid; place-items: center; border-radius: 14px 10px 15px 11px; background: #fbe9dc; font-size: 23px; flex: none; }
.life-modal-heading h2 { margin-top: 2px; font-family: var(--font-display); font-size: 22px; font-weight: 500; color: #526455; }
.life-modal .modal-head { align-items: flex-start; margin-bottom: 2px; }
.life-modal .field-block { margin-top: 10px; }
.life-modal .field-two { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.input-with-icon { display: flex; align-items: center; gap: 5px; border: 1.2px dashed #dedcca; border-radius: 9px 12px 9px 11px; background: #fffdf8; padding: 0 8px; color: #bbae9a; }
.input-with-icon .icon { width: 14px; height: 14px; flex: none; }
.input-with-icon input, .input-with-icon select { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 8px 0; color: #6e796c; font-size: 10.5px; }
.inline-yen { color: #b3917d; font-family: var(--font-hand); font-size: 14px; }
.plain-select { width: 100%; padding: 8px 9px; border: 1.2px dashed #dedcca; border-radius: 9px 12px 9px 11px; background: #fffdf8; color: #6e796c; font-size: 10.5px; outline: 0; }
.saving-plan-picker { display: flex; flex-wrap: wrap; gap: 4px; }
.saving-plan-choice { position: relative; display: inline-flex; }
.saving-plan-choice input { position: absolute; opacity: 0; pointer-events: none; }
.saving-plan-choice span { border: 1px solid #e7ddce; border-radius: 8px; padding: 4px 8px; color: #9d9f92; font-size: 8.5px; background: #fffdf8; transition: .18s ease; }
.saving-plan-choice:has(input:checked) span { border-color: #e7b7c5; background: #fff1f4; color: #ad6879; }
.emoji-picker { display: flex; flex-wrap: wrap; gap: 5px; }
.emoji-picker label { position: relative; cursor: pointer; }
.emoji-picker input { position: absolute; opacity: 0; pointer-events: none; }
.emoji-picker span { display: grid; place-items: center; width: 32px; height: 32px; border: 1.2px dashed #e5dccd; border-radius: 10px 8px 11px 9px; background: #fffdf8; font-size: 17px; transition: .18s ease; }
.emoji-picker label:hover span { transform: translateY(-2px); border-color: #e7c2ca; }
.emoji-picker label:has(input:checked) span { border-style: solid; border-color: #e8afbe; background: #fff1f4; box-shadow: 0 2px 0 #f4dfe4; transform: rotate(-2deg); }
.color-picker { display: flex; gap: 7px; }
.color-picker label { position: relative; cursor: pointer; }
.color-picker input { position: absolute; opacity: 0; pointer-events: none; }
.color-picker span { display: block; width: 25px; height: 25px; border-radius: 50%; background: var(--swatch); border: 2px solid #fffdf8; box-shadow: 0 0 0 1px #e4d9c9; transition: .18s ease; }
.color-picker label:has(input:checked) span { box-shadow: 0 0 0 2px #cc899b, 0 0 0 4px #fffdf8; transform: scale(1.04); }
.deposit-goal-line { margin: 1px 0 3px; color: #a09c8e; font-size: 10px; }
.deposit-goal-line b { color: #b37280; font-weight: 500; }
.deposit-big-input { display: flex; align-items: center; gap: 4px; padding: 9px 11px; margin-top: 9px; border: 1.5px solid #efd3c2; border-radius: 13px 10px 14px 11px; background: #fff9ed; }
.deposit-big-input > span { color: #b68670; font-family: var(--font-display); font-size: 22px; }
.deposit-big-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #a35f71; font-family: var(--font-display); font-size: 26px; font-weight: 500; line-height: 1.2; }
.deposit-big-input input::placeholder { color: #d5b8b0; }
.deposit-big-input button { border: 1px dashed #ddc7aa; border-radius: 7px; background: #fffdf8; color: #a58c70; font-size: 8px; padding: 4px 6px; white-space: nowrap; }
.deposit-tip { color: #c1ab96; font-size: 8.5px; }
.life-modal .modal-footer { margin-top: 15px; padding-top: 10px; border-top: 1px dotted #eadfd2; }
.life-modal .delete-button { font-size: 9px; }

/* responsive life */
@media (max-width: 820px) {
  body.is-life-view .hello-card { display: none; }
  body.is-life-view .life-panel { margin-top: 8px; }
  .nav-item:nth-child(3), .nav-item:nth-child(7), .nav-item:nth-child(8) { display: none; }
  .nav-item:nth-child(6) { display: flex; }
  .life-panel { padding: 20px 16px 17px; border-radius: 24px; }
  .life-panel::after { display: none; }
  .life-head { flex-wrap: wrap; gap: 8px; }
  .life-head .primary-button { margin-top: 0; }
  .life-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 13px; }
  .life-widget { min-height: 60px; padding: 9px 10px; gap: 7px; }
  .life-widget-icon { width: 30px; height: 30px; font-size: 18px; }
  .life-widget > div strong { font-size: 14px; }
  .life-tabs { justify-content: flex-start; }
  .life-tab { flex: 0 0 auto; padding: 7px 10px; }
  .life-content { margin-top: 13px; }
  .savings-hero { min-height: 137px; padding: 16px 15px; }
  .savings-hero-copy { max-width: 67%; }
  .savings-hero-copy h3 { font-size: 22px; }
  .savings-hero > img { width: 125px; height: 115px; margin-right: -13px; }
  .saving-template-row { display: flex; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .saving-template-row::-webkit-scrollbar { display: none; }
  .saving-template { flex: 0 0 120px; }
  .saving-grid, .habit-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .donut-wrap { gap: 12px; }
  .stats-bars { height: 155px; }
  .task-view-toolbar { flex-wrap: wrap; gap: 7px; }
  .task-view-title { margin-top: 8px; }
  .life-calendar-day { min-height: 70px; padding: 4px 3px; }
  .life-calendar-grid { gap: 3px; }
  .task-view-chip { font-size: 6.5px; padding: 2px 3px; }
  .life-week-grid { min-width: 690px; }
  .life-modal { padding: 19px 16px 14px; border-radius: 22px 18px 0 0; width: 100%; max-height: 92vh; }
  .life-modal-small { width: 100%; }
  .modal-backdrop { align-items: end; }
}

@media (max-width: 600px) {
  .life-panel { padding: 18px 13px 15px; }
  .life-head .panel-sub { font-size: 9.5px; max-width: 88%; }
  .life-head .primary-button { padding: 7px 9px; font-size: 9px; }
  .life-widget > div span { font-size: 8.5px; }
  .life-widget > div strong { font-size: 13px; }
  .life-tabs { gap: 2px; padding: 3px; flex-wrap: wrap; overflow: visible; }
  .life-tab { font-size: 9.5px; padding: 6px 8px; flex: 1 0 28%; }
  .saving-template { flex-basis: 108px; }
  .saving-grid { gap: 8px; }
  .saving-goal { padding: 11px 11px 9px; }
  .saving-hero > img { width: 110px; height: 100px; margin-right: -20px; opacity: .9; }
  .savings-hero-copy > p:not(.section-kicker) { font-size: 9px; }
  .savings-hero-chips span { font-size: 8px; }
  .habit-summary { gap: 14px; padding: 10px 12px; }
  .habit-summary > div strong { font-size: 19px; }
  .habit-summary-pig { display: none; }
  .habit-card { padding: 11px; }
  .timetable-summary { align-items: flex-start; }
  .timetable-summary .primary-button { flex: none; padding: 7px 9px; font-size: 8.5px; }
  .stats-toolbar h3, .timetable-summary h3, .life-section-head h3 { font-size: 17px; }
  .stats-range-tabs button { padding: 4px 8px; }
  .stats-metrics { gap: 6px; }
  .stat-metric { min-height: 65px; padding: 8px 10px; }
  .stat-metric strong { font-size: 20px; }
  .stats-card { padding: 12px 10px; }
  .donut-wrap { flex-direction: column; gap: 8px; }
  .stats-donut { width: 125px; height: 125px; }
  .stats-legend { width: 100%; }
  .stats-legend p { font-size: 7.5px; }
  .stats-bars { height: 145px; }
  .life-calendar-day { min-height: 58px; border-radius: 6px; }
  .life-cal-day-num { font-size: 8px; }
  .task-view-chip { font-size: 0; height: 5px; padding: 0; border-left-width: 0; border-radius: 3px; background: var(--chip-color, #d8ecd9); opacity: .7; }
  .life-cal-chips { gap: 2px; }
  .life-cal-more { font-size: 6px; }
  .task-view-title h3 { font-size: 16px; }
  .task-view-title span { display: none; }
  .life-week-grid { min-width: 630px; }
  .life-week-day { min-height: 210px; }
  .life-empty { min-height: 210px; }
}

/* =========================================================
   Keypad ledger
   ========================================================= */
.ledger-entry-head #ledgerEntryHint { color: #b7a79a; font-size: 8.5px; margin-left: auto; }
.ledger-keypad-open {
  margin-left: 0;
  border: 1px dashed #dccbb6;
  border-radius: 7px;
  background: #fffbf3;
  color: #b08d70;
  font-family: var(--font-display);
  font-size: 8.5px;
  padding: 3px 7px;
  white-space: nowrap;
  transition: .18s ease;
}
.ledger-keypad-open span { margin-right: 2px; color: #ca8a9c; }
.ledger-keypad-open:hover { border-color: #e1b6c2; background: #fff4f3; transform: translateY(-1px); }
.quick-ledger-modal {
  width: min(390px, calc(100vw - 32px));
  max-height: min(92vh, 730px);
  overflow-y: auto;
  padding: 17px 18px 15px;
  border: 2px solid #e5d8bd;
  border-radius: 24px 20px 26px 21px;
  background: #fffdf5;
  background-image: radial-gradient(rgba(158, 170, 147, .11) 1px, transparent 1.1px);
  background-size: 16px 16px;
  box-shadow: 7px 8px 0 rgba(204, 183, 143, .18), var(--shadow-paper);
  position: relative;
  animation: modalIn .26s ease both;
}
.keypad-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.keypad-head h2 { margin-top: 1px; font-family: var(--font-display); font-size: 23px; font-weight: 500; color: #5a6956; }
.keypad-type-toggle { display: flex; gap: 4px; margin-top: 9px; padding: 3px; border: 1px solid #e7dccb; border-radius: 9px; background: #fff8eb; }
.keypad-type-toggle button { flex: 1; border: 1px solid transparent; border-radius: 6px; padding: 5px; background: transparent; color: #aaa18d; font-family: var(--font-display); font-size: 10px; }
.keypad-type-toggle button.is-active { color: #b26378; border-color: #efc5cf; background: #fff1f3; box-shadow: 0 2px 0 rgba(239, 195, 204, .25); }
.keypad-type-toggle button[data-keypad-type="income"].is-active { color: #55886b; border-color: #b8ddc3; background: #eff9f1; box-shadow: 0 2px 0 rgba(180, 216, 188, .25); }
.keypad-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; max-height: 160px; overflow-y: auto; padding: 2px; scrollbar-width: thin; }
.keypad-category { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 44px; padding: 3px 1px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #929988; transition: .16s ease; }
.keypad-category span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--category-bg, #f6f2e8); font-size: 15px; }
.keypad-category small { font-size: 7.5px; line-height: 1.3; white-space: nowrap; }
.keypad-category:hover { background: #fff9ef; transform: translateY(-1px); }
.keypad-category.is-active { border-color: color-mix(in srgb, var(--category-color, #e2aab8) 38%, #f0e6d8); background: color-mix(in srgb, var(--category-bg, #fff4f1) 75%, #fff); color: var(--category-color, #bd7586); box-shadow: 0 2px 0 rgba(220, 198, 181, .18); }
.keypad-note-row { display: flex; align-items: center; gap: 5px; margin-top: 9px; padding: 6px 9px; border: 1px dashed #e6dac6; border-radius: 9px; background: #fffbf1; color: #b6a993; }
.keypad-note-row > .icon { width: 14px; height: 14px; flex: none; }
.keypad-note-row > input[type="text"] { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; color: #8c877a; font-size: 10px; }
.keypad-note-row > input[type="text"]::placeholder { color: #c5b9a5; }
.keypad-date { display: flex; align-items: center; gap: 2px; border-left: 1px dotted #e3d4c0; padding-left: 5px; color: #b8a389; }
.keypad-date .icon { width: 13px; height: 13px; }
.keypad-date input { width: 87px; border: 0; background: transparent; outline: 0; color: #a18e77; font-size: 8.5px; }
.keypad-amount-display { display: flex; align-items: baseline; justify-content: flex-end; gap: 3px; min-height: 48px; padding: 2px 6px 0; border-bottom: 1.5px dashed #e6d7bd; }
.keypad-amount-display > span { color: #bc9578; font-family: var(--font-display); font-size: 20px; }
.keypad-amount-display strong { color: #bc6679; font-family: var(--font-display); font-size: 34px; font-weight: 500; line-height: 1.2; letter-spacing: .5px; max-width: 74%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.keypad-amount-display strong.is-expression { font-size: 25px; color: #a98a67; }
.keypad-amount-display small { margin-left: auto; padding: 2px 6px; border-radius: 20px; background: #fff3ed; color: #c68a7e; font-size: 8px; white-space: nowrap; }
.keypad-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 8px; }
.keypad-grid button { height: 43px; border: 1.4px solid #e8dcc8; border-radius: 9px; background: #fffdf7; color: #8e887b; font-family: var(--font-display); font-size: 17px; line-height: 1; box-shadow: 0 2px 0 rgba(202, 184, 151, .15); transition: .12s ease; }
.keypad-grid button:hover { border-color: #e6c6bd; background: #fff8f3; }
.keypad-grid button:active { transform: translateY(2px); box-shadow: 0 0 0 rgba(0,0,0,0); }
.keypad-grid .keypad-fn { color: #b08b72; background: #fff8ea; font-size: 17px; }
.keypad-grid .keypad-clear { color: #b08d94; background: #fff6f4; font-size: 10px; }
.keypad-grid .keypad-done { grid-column: span 1; border-color: #e6aebb; background: #f7b8c5; color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 2px 0 #d993a4; }
.keypad-grid .keypad-done:hover { background: #f3a9b8; }
.keypad-tip { margin-top: 7px; color: #b7a58f; font-size: 8px; text-align: center; }
.keypad-tip span { color: #d09cab; margin-right: 3px; }

@media (max-width: 820px) {
  .quick-ledger-modal { width: 100%; max-height: 94vh; padding: 16px 14px 13px; border-radius: 22px 18px 0 0; }
  .keypad-grid button { height: 44px; }
  .keypad-category-grid { max-height: 158px; }
}



