/* =========================================================
   薇薇的日子 · a quiet planner
   ========================================================= */

:root {
  --bg: #f4f8fc;
  --paper: #ffffff;
  --paper-solid: #ffffff;
  --ink: #2f3b46;
  --ink-soft: #52616f;
  --muted: #7f8e9d;
  --muted-2: #a9b7c4;
  --line: rgba(47, 59, 70, 0.075);
  --line-strong: rgba(47, 59, 70, 0.13);
  --accent: #6f9dc2;
  --accent-deep: #4f7fa5;
  --accent-soft: #e4eff8;
  --butter: #eaf1f7;
  --mint: #e5f0ed;
  --shadow-card: 0 1px 2px rgba(47, 70, 92, 0.03), 0 14px 32px -26px rgba(47, 70, 92, 0.28);
  --shadow-float: 0 8px 26px -12px rgba(47, 70, 92, 0.24), 0 2px 6px rgba(47, 70, 92, 0.04);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background-color: var(--bg);
  background-image: linear-gradient(180deg, #eaf2f9 0, rgba(244, 248, 252, 0) 250px);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body.sheet-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  margin: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible {
  outline: 2.5px solid rgba(111, 157, 194, 0.7);
  outline-offset: 3px;
}

input {
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

svg {
  display: block;
}

.ambient {
  display: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(54px);
  opacity: 0.55;
}

.blob-a {
  width: 300px;
  height: 300px;
  top: -130px;
  right: -90px;
  background: #ffd9c8;
}

.blob-b {
  width: 330px;
  height: 330px;
  bottom: -160px;
  left: -130px;
  background: #d5ead8;
  opacity: 0.48;
}

.blob-c {
  width: 180px;
  height: 180px;
  top: 38%;
  left: -120px;
  background: #fbeec4;
  opacity: 0.4;
}

.app {
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(10px + env(safe-area-inset-top)) 16px calc(108px + env(safe-area-inset-bottom));
}

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 2px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.mascot {
  flex: 0 0 auto;
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: #ffe8dc;
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 12px -6px rgba(160, 94, 67, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.mascot-svg {
  width: 42px;
  height: 42px;
  overflow: visible;
}

.mascot-face {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 6.5s infinite;
}

.mascot-leaf {
  transform-box: fill-box;
  transform-origin: 20% 90%;
  animation: leafSway 4.4s ease-in-out infinite;
}

.brand-copy {
  min-width: 0;
}

.brand h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.today-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(70, 56, 43, 0.06);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
  transition: transform 0.18s var(--ease-out), background 0.18s;
}

.today-btn:active {
  transform: scale(0.94);
}

.today-btn.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fffdf8;
  box-shadow: 0 4px 12px -5px rgba(57, 54, 50, 0.42);
}

.round-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(70, 56, 43, 0.06);
  transition: transform 0.18s var(--ease-out), background 0.18s;
}

.round-btn:active {
  transform: scale(0.9);
}

.round-btn svg {
  width: 22px;
  height: 22px;
}

/* ---------- views ---------- */

.view {
  animation: viewIn 0.32s var(--ease-out) both;
}

/* ---------- calendar ---------- */

.calendar-card {
  position: relative;
  padding: 13px 11px 9px;
  background: rgba(255, 253, 248, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card), inset 0 1px 0 #fff;
  overflow: hidden;
}

.calendar-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -48px;
  top: -54px;
  border-radius: 50%;
  background: #fff0e6;
  opacity: 0.65;
  pointer-events: none;
}

.cal-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 2px;
  padding: 0 1px 7px;
}

.month-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-soft);
  background: transparent;
  transition: background 0.18s, transform 0.16s var(--ease-out);
}

.month-arrow svg {
  width: 21px;
  height: 21px;
}

.month-arrow:active {
  transform: scale(0.88);
  background: #f6f0e7;
}

@media (hover: hover) {
  .month-arrow:hover {
    background: #f6f0e7;
  }
}

.month-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 43px;
  justify-content: center;
  border-radius: 15px;
}

.month-label strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.month-label span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 2px 0 5px;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 650;
  text-align: center;
  letter-spacing: 0.04em;
}

.weekdays span {
  display: grid;
  place-items: center;
}

.weekdays .weekend {
  color: #c79d8d;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px 0;
  touch-action: pan-y;
}

.calendar-grid.slide-next {
  animation: slideNext 0.28s var(--ease-out);
}

.calendar-grid.slide-prev {
  animation: slidePrev 0.28s var(--ease-out);
}

.day {
  position: relative;
  height: clamp(43px, 11.4vw, 50px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 14px;
  transition: background 0.16s ease;
}

.day .day-num {
  width: clamp(30px, 8.2vw, 34px);
  height: clamp(30px, 8.2vw, 34px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: clamp(13.5px, 3.6vw, 15px);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.2s var(--ease-spring);
}

.day.has-events:not(.is-selected) .day-num {
  background: var(--tint, #f5eee4);
}

.day.is-today:not(.is-selected) .day-num {
  color: var(--accent-deep);
  box-shadow: inset 0 0 0 1.5px rgba(239, 116, 86, 0.72);
}

.day.is-selected {
  background: #fff2eb;
}

.day.is-selected .day-num {
  color: #fffdf8;
  background: var(--ink);
  box-shadow: 0 4px 10px -4px rgba(57, 54, 50, 0.55);
  transform: scale(1.02);
}

.day.is-out {
  opacity: 0.32;
}

.day.is-out.is-selected {
  opacity: 1;
}

.day:active .day-num {
  transform: scale(0.9);
}

@media (hover: hover) {
  .day:not(.is-selected):hover {
    background: #fbf5ec;
  }
}

.day-dots {
  height: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
}

.day-dot {
  width: 4.6px;
  height: 4.6px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.5);
}

.day-more {
  font-size: 7.5px;
  line-height: 1;
  font-weight: 800;
  color: var(--muted);
  transform: translateY(-0.5px);
}

.day.is-selected .day-more {
  color: var(--ink-soft);
}

.cal-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 2px;
  color: #b0a395;
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.caption-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* ---------- selected day ---------- */

.day-panel {
  padding: 22px 3px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 3px 13px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #b09a87;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head h2,
.list-heading h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1.25;
}

.count-pill {
  flex: 0 0 auto;
  min-width: 43px;
  height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  margin-bottom: 1px;
}

.event-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.event-card {
  --cat: #ef7456;
  --soft: #ffe4da;
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 13px 10px 10px;
  border-radius: 21px;
  background: rgba(255, 253, 248, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 2px rgba(70, 56, 43, 0.03), 0 12px 26px -22px rgba(70, 56, 43, 0.32);
  text-align: left;
  animation: cardIn 0.36s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 36ms);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s;
}

.event-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  bottom: 17px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--cat);
  opacity: 0.55;
}

.event-card:active {
  transform: scale(0.985);
}

@media (hover: hover) {
  .event-card:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 28px -18px rgba(70, 56, 43, 0.4);
  }
}

.event-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--soft);
  font-size: 21px;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

.event-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.event-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.event-meta svg {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  opacity: 0.78;
}

.event-meta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-left: 3px;
}

.event-time {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.015em;
}

.event-cat {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.event-past .event-title {
  color: var(--muted);
}

.event-past {
  opacity: 0.72;
}

/* ---------- empty states ---------- */

.empty-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 16px 18px;
  border-radius: 24px;
  border: 1.5px dashed rgba(160, 140, 118, 0.24);
  background: rgba(255, 253, 248, 0.55);
}

.empty-art {
  width: 132px;
  height: 96px;
  margin: -3px 0 1px;
}

.empty-art svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.empty-art .float-heart {
  transform-box: fill-box;
  transform-origin: center;
  animation: floatHeart 3.4s ease-in-out infinite;
}

.empty-art .float-heart.two {
  animation-delay: -1.5s;
}

.empty-title {
  margin: 2px 0 3px;
  font-size: 15px;
  font-weight: 750;
}

.empty-sub {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
}

.ghost-btn {
  height: 38px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: var(--ink);
  color: #fffdf8;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 18px -10px rgba(57, 54, 50, 0.6);
  transition: transform 0.18s var(--ease-out);
}

.ghost-btn:active {
  transform: scale(0.95);
}

.ghost-btn svg {
  width: 14px;
  height: 14px;
}

/* ---------- list view ---------- */

.list-view {
  padding-top: 4px;
}

.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 3px 15px;
}

.list-heading h2 {
  font-size: 24px;
}

.big-count {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fffdf8;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 9px 20px -10px rgba(217, 91, 61, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.filter-row {
  display: flex;
  gap: 7px;
  margin: 0 -16px;
  padding: 1px 16px 15px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  height: 35px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 7px rgba(70, 56, 43, 0.045);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, transform 0.16s var(--ease-out);
}

.filter-chip:active {
  transform: scale(0.94);
}

.filter-chip .chip-emoji {
  font-size: 13px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

.filter-chip .chip-count {
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fffdf8;
  box-shadow: 0 5px 14px -7px rgba(57, 54, 50, 0.5);
}

.filter-chip.is-active .chip-count {
  color: rgba(255, 253, 248, 0.6);
}

.filter-chip.is-active .chip-emoji {
  transform: scale(1.02);
}

.upcoming-list,
.past-list {
  display: flex;
  flex-direction: column;
  gap: 23px;
}

.day-group {
  animation: cardIn 0.36s var(--ease-out) both;
}

.group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 3px 9px;
}

.date-badge {
  flex: 0 0 auto;
  width: 44px;
  height: 47px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 7px rgba(70, 56, 43, 0.05);
  line-height: 1;
}

.date-badge .badge-num {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.date-badge .badge-mon {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.date-badge.is-today {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 6px 14px -7px rgba(217, 91, 61, 0.65);
}

.date-badge.is-today .badge-num {
  color: #fffdf8;
}

.date-badge.is-today .badge-mon {
  color: rgba(255, 253, 248, 0.74);
}

.group-copy {
  min-width: 0;
}

.group-copy h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
}

.group-copy p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.015em;
}

.group-count {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.list-empty {
  padding: 8px 0 14px;
}

.list-empty .empty-day {
  padding: 24px 20px 26px;
}

/* ---------- past ---------- */

.past-wrap {
  margin-top: 26px;
}

.past-toggle {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.past-toggle svg {
  width: 15px;
  height: 15px;
  transition: transform 0.22s var(--ease-out);
}

.past-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.past-list {
  padding-top: 6px;
  animation: viewIn 0.26s var(--ease-out);
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 3px 14px;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- dock ---------- */

.dock {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100% - 28px), 456px);
  height: 66px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 58px;
  align-items: center;
  gap: 2px;
  padding: 0 6px;
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.87);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 40px -18px rgba(70, 56, 43, 0.35), 0 2px 8px rgba(70, 56, 43, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
  backdrop-filter: blur(22px) saturate(1.45);
}

.dock-tab {
  height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 18px;
  color: #a79b8e;
  transition: color 0.2s, transform 0.16s var(--ease-out);
}

.dock-tab svg {
  width: 22px;
  height: 22px;
}

.dock-tab span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dock-tab.is-active {
  color: var(--ink);
}

.dock-tab.is-active svg {
  animation: tabPop 0.35s var(--ease-spring);
}

.dock-tab:active {
  transform: scale(0.93);
}

.fab {
  justify-self: center;
  align-self: center;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, #f98567, var(--accent));
  color: #fffdf8;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 16px -8px rgba(217, 91, 61, 0.65), 0 2px 5px rgba(217, 91, 61, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}

.fab svg {
  width: 24px;
  height: 24px;
}

.fab:active {
  transform: scale(0.9) rotate(90deg);
}

/* ---------- sheets ---------- */

.sheet-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.26s ease, visibility 0.26s;
}

.sheet-root.is-open {
  visibility: visible;
  opacity: 1;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(47, 40, 34, 0.3);
  -webkit-backdrop-filter: blur(5px) saturate(0.9);
  backdrop-filter: blur(5px) saturate(0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sheet-root.is-open .sheet-backdrop {
  opacity: 1;
}

.sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, 520px);
  max-height: 93dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -20px 60px -20px rgba(47, 40, 34, 0.4), 0 -1px 0 rgba(255, 255, 255, 0.9) inset;
  transform: translate(-50%, 104%);
  transition: transform 0.42s var(--ease-out);
  overflow: hidden;
}

.sheet-root.is-open .sheet {
  transform: translate(-50%, 0);
}

.sheet-grab {
  flex: 0 0 auto;
  width: 38px;
  height: 5px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: #ddd0c1;
}

.sheet-head {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  padding: 9px 16px 7px;
}

.sheet-head h2 {
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.sheet-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.95);
  color: var(--ink-soft);
  transition: transform 0.16s var(--ease-out);
}

.sheet-close:active {
  transform: scale(0.9);
}

.sheet-close svg {
  width: 19px;
  height: 19px;
}

.head-spark {
  justify-self: end;
  width: 38px;
  text-align: center;
  color: #ddb39f;
  font-size: 21px;
  line-height: 1;
}

.sheet-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px 20px 18px;
  scrollbar-width: none;
}

.sheet-scroll::-webkit-scrollbar {
  display: none;
}

.sheet-footer {
  flex: 0 0 auto;
  display: flex;
  gap: 9px;
  padding: 9px 18px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(250, 246, 239, 0), var(--bg) 34%);
}

.save-btn {
  flex: 1 1 auto;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 19px;
  background: linear-gradient(145deg, #f98567, var(--accent));
  color: #fffdf8;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 12px 24px -10px rgba(217, 91, 61, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.16s var(--ease-out), filter 0.16s;
}

.save-btn svg {
  width: 19px;
  height: 19px;
}

.save-btn:active {
  transform: scale(0.975);
  filter: brightness(0.97);
}

.delete-btn {
  flex: 0 0 auto;
  min-width: 73px;
  height: 54px;
  padding: 0 14px;
  border-radius: 19px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(220, 190, 178, 0.55);
  color: #c45f4b;
  font-size: 13px;
  font-weight: 750;
  transition: background 0.18s, color 0.18s, transform 0.16s;
}

.delete-btn:active {
  transform: scale(0.96);
}

.delete-btn.is-confirming {
  background: #c94732;
  border-color: #c94732;
  color: #fff;
}

/* ---------- editor ---------- */

.title-wrap {
  position: relative;
  padding: 8px 2px 0;
}

.title-input {
  width: 100%;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.005em;
  color: var(--ink);
  caret-color: var(--accent);
}

.title-input::placeholder {
  color: #c8baac;
  font-weight: 750;
}

.title-input:focus {
  outline: none;
}

.title-underline {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(239, 116, 86, 0.55), rgba(239, 116, 86, 0.06) 72%, transparent);
}

.title-hint {
  margin: 5px 0 0;
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.01em;
}

.field-label {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 21px 2px 10px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.field-label .field-action {
  margin-left: auto;
  color: var(--accent-deep);
  font-size: 9.5px;
  font-weight: 500;
}

.field-label span {
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px 4px;
  padding: 0;
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 2px 0 4px;
  border-radius: 14px;
  transition: transform 0.16s var(--ease-out);
}

.cat-item:active {
  transform: scale(0.92);
}

.cat-bubble {
  position: relative;
  width: clamp(44px, 12.2vw, 51px);
  height: clamp(44px, 12.2vw, 51px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  font-size: clamp(19px, 5.2vw, 22px);
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  transition: box-shadow 0.2s, transform 0.22s var(--ease-spring), background 0.2s;
}

.cat-item.is-selected .cat-bubble {
  box-shadow: 0 0 0 2.2px var(--bg), 0 0 0 4px var(--cat), 0 5px 12px -6px rgba(70, 56, 43, 0.35);
  transform: translateY(-1px) scale(1.03);
}

.cat-check {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--bg);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.18s, transform 0.24s var(--ease-spring);
}

.cat-check svg {
  width: 9px;
  height: 9px;
}

.cat-item.is-selected .cat-check {
  opacity: 1;
  transform: scale(1);
}

.cat-name {
  color: var(--muted);
  font-size: clamp(9.5px, 2.6vw, 10.5px);
  font-weight: 650;
  letter-spacing: 0.02em;
}

.cat-item.is-selected .cat-name {
  color: var(--ink);
  font-weight: 750;
}

/* date + time cards */

.picker-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 9px;
  margin-top: 20px;
}

.picker-card {
  position: relative;
  height: 92px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border-radius: 21px;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 5px rgba(70, 56, 43, 0.035), 0 14px 26px -24px rgba(70, 56, 43, 0.35);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.16s var(--ease-out), box-shadow 0.18s;
}

.picker-card:active {
  transform: scale(0.975);
}

.picker-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff0e9;
  color: var(--accent-deep);
}

.picker-icon svg {
  width: 19px;
  height: 19px;
}

.picker-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.picker-kicker {
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.09em;
}

.picker-copy strong {
  font-size: clamp(15px, 4vw, 17px);
  font-weight: 800;
  line-height: 1.28;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.picker-sub {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.picker-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.picker-input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px 1px 0;
}

.quick-chip {
  height: 31px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background 0.16s, color 0.16s, transform 0.14s;
}

.quick-chip:active {
  transform: scale(0.92);
}

.quick-chip.is-active {
  background: #ffe7de;
  border-color: #ffd3c4;
  color: var(--accent-deep);
}

.time-quick {
  padding-top: 6px;
}

.time-quick .quick-chip {
  height: 28px;
  padding: 0 11px;
  font-size: 10px;
}

/* location */

.location-field {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 17px;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 5px rgba(70, 56, 43, 0.03);
  transition: box-shadow 0.18s, border-color 0.18s;
}

.location-field:focus-within {
  border-color: rgba(239, 116, 86, 0.32);
  box-shadow: 0 0 0 3.5px rgba(239, 116, 86, 0.08);
}

.location-pin {
  flex: 0 0 auto;
  color: var(--accent);
  opacity: 0.85;
}

.location-pin svg {
  width: 19px;
  height: 19px;
}

.location-field input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink);
}

.location-field input:focus {
  outline: none;
}

.location-field input::placeholder {
  color: var(--muted-2);
  font-weight: 500;
}

.clear-location {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3ede4;
  color: var(--muted);
}

.clear-location svg {
  width: 14px;
  height: 14px;
}

.recent-places {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px 1px 0;
}

.place-chip {
  height: 29px;
  max-width: 100%;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: rgba(207, 232, 216, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #5e7768;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.place-chip span {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.place-chip svg {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  opacity: 0.75;
}

.tiny-note {
  margin: 21px 0 2px;
  text-align: center;
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

/* ---------- settings ---------- */

.settings-sheet {
  max-height: 89dvh;
}

.settings-scroll {
  padding-top: 3px;
}

.settings-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff1e8, #fdf8ef 70%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(70, 56, 43, 0.03);
}

.mini-mascot {
  flex: 0 0 auto;
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background: #ffe6d9;
}

.mini-mascot svg {
  width: 48px;
  height: 48px;
}

.settings-hero strong {
  display: block;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.settings-hero p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.install-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 11px;
  padding: 12px 13px;
  border-radius: 18px;
  background: rgba(207, 232, 216, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.install-icon {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fffdf8;
  color: #5f7c6a;
}

.install-icon svg {
  width: 18px;
  height: 18px;
}

.install-tip strong {
  display: block;
  font-size: 11px;
  font-weight: 750;
  color: #506d5b;
}

.install-tip p {
  margin: 2px 0 0;
  color: #6c8475;
  font-size: 9.5px;
  line-height: 1.5;
}

.settings-list {
  margin-top: 16px;
  background: var(--paper);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(70, 56, 43, 0.035);
  overflow: hidden;
}

.settings-row {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  transition: background 0.16s;
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-row:active {
  background: #fbf6ee;
}

.settings-ico {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
}

.settings-ico svg {
  width: 20px;
  height: 20px;
}

.settings-ico.peach {
  background: #ffe6da;
  color: #b8644b;
}

.settings-ico.mint {
  background: #e1f0e5;
  color: #557565;
}

.settings-ico.blush {
  background: #fbe2e2;
  color: #b45b5b;
}

.settings-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-copy strong {
  font-size: 12.5px;
  font-weight: 700;
}

.settings-copy small {
  color: var(--muted);
  font-size: 9.5px;
}

.settings-chev {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 20px;
  line-height: 1;
}

.settings-row.danger .settings-copy strong {
  color: #b4513f;
}

.settings-row.is-confirming {
  background: #fdeceb;
}

.settings-row.is-confirming .settings-copy strong {
  color: #b12f22;
}

.settings-foot {
  margin: 22px 0 8px;
  text-align: center;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.035em;
  line-height: 1.6;
}

/* =========================================================
   成长 · growth
   ========================================================= */

.growth-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 3px 15px;
}

.growth-heading h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1.2;
}

.growth-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.025em;
}

.growth-badge {
  flex: 0 0 auto;
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #e9f3e1, #fff8ec);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px -6px rgba(92, 112, 70, 0.3);
  font-size: 24px;
  transform: rotate(4deg);
}

.growth-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  padding: 4px;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(70, 56, 43, 0.045);
}

.growth-tab {
  height: 38px;
  padding: 0 2px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, transform 0.15s var(--ease-out);
}

.growth-tab:active {
  transform: scale(0.95);
}

.growth-tab.is-active {
  background: var(--ink);
  color: #fffdf8;
  box-shadow: 0 5px 13px -7px rgba(57, 54, 50, 0.55);
}

.growth-panel {
  padding-top: 17px;
  animation: viewIn 0.3s var(--ease-out) both;
}

.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 0 3px 13px;
}

.panel-title-row h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.panel-title-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.panel-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mini-add {
  flex: 0 0 auto;
  height: 33px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 7px rgba(70, 56, 43, 0.05);
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.16s var(--ease-out), background 0.18s;
}

.mini-add:active {
  transform: scale(0.94);
}

.mini-add.soft {
  background: rgba(207, 232, 216, 0.5);
  color: #56725f;
  border-color: rgba(255, 255, 255, 0.7);
}

.growth-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 30px;
  border-radius: 26px;
  border: 1.5px dashed rgba(160, 140, 118, 0.24);
  background: rgba(255, 253, 248, 0.58);
  text-align: center;
}

.growth-empty-emoji {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
  border-radius: 22px;
  background: #fff1e7;
  font-size: 30px;
  transform: rotate(-3deg);
}

.growth-empty p {
  margin: 0 0 3px;
  font-size: 14.5px;
  font-weight: 750;
}

.growth-empty span {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

/* ---------- annual flags ---------- */

.flags-card {
  padding: 14px;
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-card), inset 0 1px 0 #fff;
}

.year-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.year-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-soft);
  transition: background 0.16s, transform 0.15s;
}

.year-arrow:active {
  background: #f6f0e7;
  transform: scale(0.9);
}

.year-arrow svg {
  width: 19px;
  height: 19px;
}

.year-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.year-label small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.year-chip {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ffe8dd;
  color: #b15e45;
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.flag-progress {
  margin-top: 13px;
  padding: 11px 12px 12px;
  border-radius: 17px;
  background: #fbf6ee;
}

.flag-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 650;
}

.flag-progress-label strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.flag-seg-row {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.flag-seg {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: #eadfd1;
  transition: background 0.25s, transform 0.25s var(--ease-spring);
}

.flag-seg.is-on {
  background: var(--accent);
  transform: scaleY(1.12);
}

.flag-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 13px;
}

.flag-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 57px;
  padding: 8px 9px 8px 10px;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(70, 56, 43, 0.028);
  transition: background 0.2s, transform 0.16s var(--ease-out);
}

.flag-row:active {
  transform: scale(0.992);
}

.flag-row.is-done {
  background: #f7fbf5;
  border-color: rgba(225, 240, 226, 0.9);
}

.flag-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.flag-num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--soft);
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.flag-row.is-done .flag-num {
  background: #e3f1e5;
  color: #5c7e65;
}

.flag-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flag-text {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flag-row.is-done .flag-text {
  color: #6e826f;
  text-decoration: line-through;
  text-decoration-color: rgba(110, 130, 111, 0.45);
}

.flag-note {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flag-check {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid #ded2c4;
  background: transparent;
  color: transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.18s var(--ease-spring);
}

.flag-check svg {
  width: 15px;
  height: 15px;
}

.flag-check.is-done {
  background: #77b28b;
  border-color: #77b28b;
  color: #fff;
  transform: scale(1.02);
}

.flag-add {
  width: 100%;
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 9px;
  border-radius: 16px;
  border: 1.5px dashed rgba(170, 150, 128, 0.32);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
  background: rgba(255, 253, 248, 0.4);
}

.flag-add:active {
  background: #fbf5ec;
}

.flag-add .plus {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffe8de;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.flag-footnote {
  margin: 10px 2px 0;
  text-align: center;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.flag-complete {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #eaf5e8;
  color: #55755d;
  font-size: 10.5px;
  font-weight: 650;
}

/* ---------- mainline ---------- */

.focus-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 11px 13px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff0e6, #fbf7ed);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.focus-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 253, 248, 0.8);
  font-size: 17px;
}

.focus-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.focus-copy strong {
  font-size: 11px;
  font-weight: 750;
  color: #845b49;
}

.focus-copy span {
  color: #a57f6d;
  font-size: 9px;
}

.mainline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.mainline-card {
  position: relative;
  min-height: 154px;
  display: flex;
  flex-direction: column;
  padding: 11px 11px 10px;
  border-radius: 21px;
  background: linear-gradient(145deg, var(--soft), #fffdf8 78%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 5px rgba(70, 56, 43, 0.03);
  overflow: hidden;
  animation: cardIn 0.34s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 28ms);
}

.mainline-card::after {
  content: "";
  position: absolute;
  width: 63px;
  height: 63px;
  right: -25px;
  top: -28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  pointer-events: none;
}

.ml-edit {
  position: absolute;
  z-index: 2;
  top: 7px;
  right: 7px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(57, 54, 50, 0.45);
  font-size: 17px;
  line-height: 1;
  transition: background 0.16s;
}

.ml-edit:active {
  background: rgba(255, 255, 255, 0.6);
}

.ml-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.7);
  font-size: 19px;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

.ml-name {
  margin: 8px 0 0;
  padding-right: 13px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.005em;
}

.ml-note {
  margin: 2px 0 0;
  color: rgba(80, 71, 62, 0.58);
  font-size: 9px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ml-week {
  display: flex;
  gap: 3px;
  margin-top: auto;
  padding-top: 10px;
}

.ml-day {
  width: 6px;
  height: 9px;
  border-radius: 3px;
  background: rgba(57, 54, 50, 0.11);
}

.ml-day.is-on {
  background: var(--c);
}

.ml-day.is-today {
  box-shadow: 0 0 0 1.5px rgba(255, 253, 248, 0.9), 0 0 0 2.5px rgba(57, 54, 50, 0.18);
}

.ml-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 6px;
}

.ml-total {
  color: rgba(80, 71, 62, 0.52);
  font-size: 8.5px;
  font-weight: 650;
  white-space: nowrap;
}

.ml-check {
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(57, 54, 50, 0.17);
  background: rgba(255, 253, 248, 0.62);
  color: rgba(57, 54, 50, 0.5);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.18s var(--ease-spring);
}

.ml-check svg {
  width: 14px;
  height: 14px;
}

.ml-check.is-done {
  background: var(--c);
  border-color: var(--c);
  color: #fff;
  transform: scale(1.04);
}

.mainline-add {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 21px;
  border: 1.5px dashed rgba(170, 150, 128, 0.3);
  background: rgba(255, 253, 248, 0.4);
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.mainline-add .plus {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffe8de;
  color: var(--accent-deep);
  font-size: 20px;
  font-weight: 300;
}

/* ---------- skills ---------- */

.skills-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 -16px 11px;
  padding: 0 16px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.skills-toolbar::-webkit-scrollbar {
  display: none;
}

.mini-filter {
  flex: 0 0 auto;
  height: 31px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
  transition: background 0.16s, color 0.16s;
}

.mini-filter b {
  font-size: 8.5px;
  font-weight: 800;
  color: var(--muted-2);
}

.mini-filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fffdf8;
}

.mini-filter.is-active b {
  color: rgba(255, 253, 248, 0.6);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.skill-card {
  min-width: 0;
  min-height: 147px;
  display: flex;
  flex-direction: column;
  padding: 11px;
  border-radius: 21px;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 5px rgba(70, 56, 43, 0.03);
  overflow: hidden;
  animation: cardIn 0.34s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 26ms);
}

.skill-card.is-learned {
  background: linear-gradient(145deg, #f0f8ef, #fffdf8 82%);
}

.skill-main {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}

.skill-head {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5px;
}

.skill-emoji {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #f6efe4;
  font-size: 19px;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

.skill-status {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 750;
  white-space: nowrap;
}

.skill-status.want {
  background: #f4eddc;
  color: #95783f;
}

.skill-status.learning {
  background: #e0f0e5;
  color: #537b60;
}

.skill-status.learned {
  background: #ffe3d8;
  color: #ab573e;
}

.skill-name {
  margin-top: 7px;
  max-width: 100%;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-note {
  margin-top: 2px;
  max-width: 100%;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-meta {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.skill-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding-top: 7px;
}

.skill-log-btn {
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fbf5ec;
  color: var(--ink-soft);
  font-size: 8.5px;
  font-weight: 700;
  white-space: nowrap;
}

.skill-learn {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid #ded2c4;
  color: transparent;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s var(--ease-spring);
}

.skill-learn svg {
  width: 13px;
  height: 13px;
}

.skill-learn.is-learned {
  background: #77b28b;
  border-color: #77b28b;
  color: #fff;
  transform: scale(1.03);
}

.skill-add-card {
  min-height: 147px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 21px;
  border: 1.5px dashed rgba(170, 150, 128, 0.3);
  background: rgba(255, 253, 248, 0.4);
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.skill-add-card .plus {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffe8de;
  color: var(--accent-deep);
  font-size: 20px;
  font-weight: 300;
}

/* ---------- travel ---------- */

.travel-summary {
  display: flex;
  gap: 6px;
  padding: 0 2px 11px;
}

.travel-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.travel-pill b {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
}

.travel-section + .travel-section {
  margin-top: 19px;
}

.travel-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 3px 9px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}

.travel-section-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.85);
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.travel-card {
  position: relative;
  min-height: 146px;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 21px;
  background: linear-gradient(145deg, var(--soft), #fffdf8 82%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 5px rgba(70, 56, 43, 0.03);
  overflow: hidden;
  animation: cardIn 0.34s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 24ms);
}

.travel-card::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 39px;
  border-top: 1px dashed rgba(57, 54, 50, 0.1);
  pointer-events: none;
}

.travel-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.travel-stamp {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px dashed rgba(120, 100, 80, 0.28);
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.04em;
  background: rgba(255, 253, 248, 0.45);
}

.travel-card.is-visited .travel-stamp {
  border-style: solid;
  border-color: rgba(100, 150, 114, 0.3);
  background: rgba(255, 253, 248, 0.72);
  color: #61836a;
}

.travel-name {
  margin-top: 7px;
  max-width: 100%;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.travel-region {
  margin-top: 2px;
  max-width: 100%;
  color: var(--muted);
  font-size: 8.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.travel-note {
  margin-top: 4px;
  max-width: 100%;
  color: rgba(80, 71, 62, 0.55);
  font-size: 8.5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.travel-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  padding-top: 7px;
}

.travel-date {
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 650;
  padding-bottom: 4px;
}

.travel-check {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(57, 54, 50, 0.16);
  background: rgba(255, 253, 248, 0.65);
  color: transparent;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s var(--ease-spring);
}

.travel-check svg {
  width: 13px;
  height: 13px;
}

.travel-check.is-visited {
  background: #77b28b;
  border-color: #77b28b;
  color: #fff;
}

.travel-add-card {
  min-height: 146px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 21px;
  border: 1.5px dashed rgba(170, 150, 128, 0.3);
  background: rgba(255, 253, 248, 0.4);
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.travel-add-card .plus {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffe8de;
  color: var(--accent-deep);
  font-size: 20px;
  font-weight: 300;
}

/* ---------- growth forms ---------- */

.sheet-root-stack {
  z-index: 120;
}

.mini-sheet {
  max-height: 84dvh;
}

.sheet-kicker {
  margin: 5px 2px 11px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.editor-input {
  width: 100%;
  height: 51px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1.5px solid rgba(239, 116, 86, 0.24);
  background: transparent;
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.005em;
  caret-color: var(--accent);
}

.editor-input::placeholder {
  color: #c8baac;
  font-weight: 750;
}

.editor-input:focus {
  outline: none;
  border-bottom-color: rgba(239, 116, 86, 0.7);
}

.soft-input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  background: var(--paper);
  box-shadow: 0 2px 5px rgba(70, 56, 43, 0.03);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  caret-color: var(--accent);
}

.soft-input::placeholder {
  color: var(--muted-2);
  font-weight: 450;
}

.soft-input:focus {
  outline: none;
  border-color: rgba(239, 116, 86, 0.3);
  box-shadow: 0 0 0 3.5px rgba(239, 116, 86, 0.08);
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

.emoji-btn {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.82);
  border: 1.5px solid transparent;
  font-size: 19px;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  transition: transform 0.16s var(--ease-out), background 0.16s, border-color 0.16s;
}

.emoji-btn:active {
  transform: scale(0.9);
}

.emoji-btn.is-selected {
  background: #fff0e7;
  border-color: rgba(239, 116, 86, 0.5);
  transform: scale(1.03);
}

.seg-row {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.seg-btn {
  flex: 1;
  height: 36px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  transition: background 0.18s, color 0.18s;
}

.seg-btn.is-active {
  background: var(--ink);
  color: #fffdf8;
  box-shadow: 0 4px 10px -6px rgba(57, 54, 50, 0.45);
}

.secondary-btn {
  flex: 0 0 auto;
  min-width: 73px;
  height: 54px;
  padding: 0 14px;
  border-radius: 19px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 2px 5px rgba(70, 56, 43, 0.04);
}

.bulk-textarea {
  width: 100%;
  min-height: 185px;
  padding: 13px 14px;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  background: var(--paper);
  box-shadow: 0 2px 5px rgba(70, 56, 43, 0.03);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  resize: vertical;
  caret-color: var(--accent);
}

.bulk-textarea:focus {
  outline: none;
  border-color: rgba(239, 116, 86, 0.3);
  box-shadow: 0 0 0 3.5px rgba(239, 116, 86, 0.08);
}

.log-date-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  padding: 11px 3px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.date-field {
  height: 36px;
  padding: 0 9px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

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

.minute-chip {
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.94);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  transition: background 0.16s, color 0.16s, transform 0.14s;
}

.minute-chip:active {
  transform: scale(0.93);
}

.minute-chip.is-active {
  background: #ffe7de;
  border-color: #ffd3c4;
  color: var(--accent-deep);
}

/* ---------- skill detail ---------- */

.skill-detail-sheet {
  max-height: 90dvh;
}

.skill-detail-hero {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 4px 2px 15px;
}

.sd-emoji {
  flex: 0 0 auto;
  width: 67px;
  height: 67px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, #f7ead9, #fff8ee);
  font-size: 32px;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sd-copy {
  min-width: 0;
}

.sd-copy h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.sd-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.sd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.sd-meta span {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f8f2e9;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 650;
}

.detail-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 2px 9px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}

.detail-label span {
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 650;
}

.log-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.log-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
}

.log-date {
  flex: 0 0 auto;
  min-width: 47px;
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}

.log-date small {
  display: block;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 650;
}

.log-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.log-copy strong {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-soft);
}

.log-copy span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
  word-break: break-word;
}

.log-del {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted-2);
  font-size: 13px;
}

.empty-logs {
  padding: 17px 15px;
  border-radius: 17px;
  border: 1.5px dashed rgba(160, 140, 118, 0.22);
  background: rgba(255, 253, 248, 0.45);
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  line-height: 1.65;
}

.detail-note {
  margin: 2px 0 0;
  padding: 11px 12px;
  border-radius: 15px;
  background: #fbf5ec;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.6;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: calc(94px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100vw - 40px);
  padding: 11px 17px;
  border-radius: 999px;
  background: rgba(57, 54, 50, 0.94);
  color: #fffdf8;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 30px -10px rgba(47, 40, 34, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translate(-50%, 10px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.28s var(--ease-spring);
  white-space: nowrap;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.toast .toast-check {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #9ed4ae;
  color: #2f4d38;
  font-size: 10px;
  font-weight: 900;
}

/* ---------- confetti ---------- */

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: fixed;
  width: 7px;
  height: 10px;
  border-radius: 2px;
  opacity: 0;
  animation: confettiFly var(--dur, 0.9s) cubic-bezier(0.1, 0.7, 0.3, 1) forwards;
}

/* ---------- keyframes ---------- */

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideNext {
  from {
    opacity: 0.25;
    transform: translateX(15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slidePrev {
  from {
    opacity: 0.25;
    transform: translateX(-15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes tabPop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.16);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes blink {
  0%,
  91%,
  100% {
    transform: scaleY(1);
  }
  94% {
    transform: scaleY(0.1);
  }
}

@keyframes leafSway {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

@keyframes floatHeart {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-5px) rotate(4deg);
    opacity: 1;
  }
}

@keyframes confettiFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(0.65);
  }
}

/* ---------- responsive ---------- */

@media (min-width: 560px) {
  .app {
    padding-top: 24px;
  }

  .sheet {
    bottom: 18px;
    border-radius: 30px;
    max-height: calc(100dvh - 52px);
  }

  .sheet-root.is-open .sheet {
    transform: translate(-50%, 0);
  }

  .dock {
    bottom: 18px;
  }
}

@media (max-width: 374px) {
  .app {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand p {
    display: none;
  }

  .mascot {
    width: 43px;
    height: 43px;
  }

  .mascot-svg {
    width: 38px;
    height: 38px;
  }

  .brand h1 {
    font-size: 20px;
  }

  .today-btn {
    padding: 0 11px;
  }

  .calendar-card {
    padding-left: 8px;
    padding-right: 8px;
  }

  .cat-bubble {
    width: 42px;
    height: 42px;
  }

  .picker-card {
    height: 86px;
    padding: 9px;
    gap: 7px;
  }

  .picker-icon {
    width: 29px;
    height: 29px;
  }

  .picker-icon svg {
    width: 17px;
    height: 17px;
  }

  .filter-row,
  .skills-toolbar {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .sheet-scroll {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sheet-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .dock {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 48px;
    padding: 0 4px;
  }

  .fab {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .fab svg {
    width: 22px;
    height: 22px;
  }

  .growth-tab {
    font-size: 9.5px;
  }

  .panel-title-row h3 {
    font-size: 16px;
  }

  .mini-add {
    padding: 0 9px;
    font-size: 9.5px;
  }

  .mainline-card {
    min-height: 146px;
  }

  .skill-card,
  .skill-add-card {
    min-height: 140px;
  }
}

@media (max-height: 700px) {
  .sheet {
    max-height: 96dvh;
  }

  .title-input {
    height: 42px;
    font-size: 22px;
  }

  .field-label {
    margin-top: 15px;
  }

  .picker-card {
    height: 82px;
  }
}


/* =========================================================
   Quiet blue theme
   ========================================================= */

.logo-mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #dceaf5;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(111, 157, 194, 0.12);
}

.logo-mark svg {
  width: 40px;
  height: 40px;
}

.mascot {
  display: none;
}

.brand {
  gap: 10px;
}

.brand h1 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.topbar {
  padding-top: 7px;
  padding-bottom: 14px;
}

.today-btn,
.round-btn {
  background: #ffffff;
  border: 1px solid #e2ecf5;
  box-shadow: 0 1px 2px rgba(47, 70, 92, 0.03);
  color: var(--ink-soft);
}

.today-btn {
  font-weight: 600;
}

.today-btn.is-current {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 12px -7px rgba(79, 127, 165, 0.6);
}

.round-btn svg {
  width: 21px;
  height: 21px;
}

.calendar-card {
  background: #ffffff;
  border: 1px solid #e4edf5;
  border-radius: 22px;
  box-shadow: 0 10px 28px -26px rgba(47, 70, 92, 0.3);
}

.calendar-card::after {
  display: none;
}

.cal-head {
  grid-template-columns: 40px 1fr 40px;
  padding-bottom: 4px;
}

.month-arrow {
  color: var(--ink-soft);
}

.month-arrow:active,
.month-arrow:hover {
  background: #f1f7fb;
}

.month-label strong {
  font-size: 18px;
  font-weight: 700;
}

.month-label span {
  color: var(--muted);
}

.weekdays {
  color: #a1afbc;
  font-size: 10px;
  font-weight: 500;
}

.weekdays .weekend {
  color: #a1afbc;
}

.day {
  height: clamp(43px, 11.4vw, 50px);
  border-radius: 10px;
}

.day .day-num {
  width: clamp(30px, 8.2vw, 34px);
  height: clamp(30px, 8.2vw, 34px);
  font-size: clamp(13.5px, 3.6vw, 14.5px);
  font-weight: 600;
}

.day.has-events:not(.is-selected) .day-num {
  background: #f1f7fb;
}

.day.is-today:not(.is-selected) .day-num {
  color: var(--accent-deep);
  box-shadow: inset 0 0 0 1.4px rgba(111, 157, 194, 0.58);
}

.day.is-selected {
  background: #eaf3fa;
}

.day.is-selected .day-num {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 5px 12px -6px rgba(79, 127, 165, 0.55);
}

.day:not(.is-selected):hover {
  background: #f5f9fc;
}

.day-dot {
  width: 5px;
  height: 5px;
}

.day-more {
  color: var(--muted);
}

.cal-caption {
  color: #a6b4c0;
  font-size: 9px;
  letter-spacing: 0.02em;
}

.caption-dot {
  background: var(--accent);
  opacity: 0.75;
}

.day-panel {
  padding-top: 19px;
}

.eyebrow {
  color: #92a1af;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.section-head h2,
.list-heading h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.count-pill {
  background: #ffffff;
  border: 1px solid #e3edf5;
  color: var(--muted);
  font-weight: 600;
}

.event-card {
  background: #ffffff;
  border: 1px solid #e6eef5;
  box-shadow: 0 1px 2px rgba(47, 70, 92, 0.02);
  border-radius: 16px;
  padding: 10px 12px 10px 11px;
}

.event-card::before {
  width: 2px;
  top: 18px;
  bottom: 18px;
  opacity: 0.55;
}

.event-card:hover {
  box-shadow: 0 7px 22px -20px rgba(47, 70, 92, 0.4);
}

.event-icon {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  font-size: 20px;
}

.event-icon,
.cat-bubble,
.ml-icon,
.skill-emoji,
.sd-emoji {
  filter: saturate(0.78);
}

.event-title {
  font-size: 14.5px;
  font-weight: 600;
}

.event-meta {
  color: var(--muted);
  font-size: 10.5px;
}

.event-time {
  font-size: 12.5px;
  font-weight: 600;
}

.event-cat {
  background: var(--soft);
  color: var(--ink-soft);
  font-weight: 600;
}

.empty-day {
  border: 1px dashed #d7e4ef;
  background: #ffffff;
  border-radius: 18px;
}

.empty-title {
  font-size: 14px;
  font-weight: 600;
}

.empty-sub {
  color: var(--muted);
  font-size: 11px;
}

.empty-art {
  width: 112px;
  height: 78px;
  margin-bottom: 2px;
}

.ghost-btn {
  background: var(--accent);
  border-radius: 11px;
  box-shadow: none;
  font-weight: 600;
  font-size: 11.5px;
}

.list-heading h2 {
  font-size: 22px;
}

.big-count {
  width: 46px;
  height: 46px;
  background: var(--accent);
  box-shadow: none;
  font-size: 17px;
  font-weight: 700;
}

.filter-chip {
  background: #ffffff;
  border: 1px solid #e5eef6;
  box-shadow: none;
  color: var(--ink-soft);
  font-weight: 600;
}

.filter-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}

.filter-chip.is-active .chip-count {
  color: rgba(255, 255, 255, 0.7);
}

.date-badge {
  background: #ffffff;
  border: 1px solid #e5eef6;
  box-shadow: none;
  border-radius: 11px;
}

.date-badge.is-today {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}

.group-copy h3 {
  font-size: 13.5px;
  font-weight: 600;
}

.group-copy p {
  color: var(--muted);
}

.dock {
  height: 64px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e4edf5;
  box-shadow: 0 14px 32px -20px rgba(47, 70, 92, 0.3), 0 1px 3px rgba(47, 70, 92, 0.04);
}

.dock-tab {
  color: #9aa9b7;
}

.dock-tab.is-active {
  background: #edf5fa;
  color: var(--accent-deep);
}

.dock-tab.is-active svg {
  animation: none;
}

.fab {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--accent);
  box-shadow: 0 7px 16px -8px rgba(79, 127, 165, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.sheet {
  background: #f7fafd;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -16px 48px -24px rgba(38, 56, 73, 0.35);
}

.sheet-backdrop {
  background: rgba(37, 49, 61, 0.28);
}

.sheet-grab {
  background: #cfdde9;
}

.sheet-head h2 {
  font-size: 15px;
  font-weight: 700;
}

.sheet-close {
  background: #ffffff;
  border: 1px solid #e3edf5;
}

.head-spark {
  visibility: hidden;
}

.sheet-footer {
  background: linear-gradient(180deg, rgba(247, 250, 253, 0), #f7fafd 34%);
}

.save-btn {
  height: 52px;
  border-radius: 14px;
  background: var(--accent);
  box-shadow: 0 8px 18px -12px rgba(79, 127, 165, 0.65);
  font-size: 14px;
  font-weight: 600;
}

.delete-btn,
.secondary-btn {
  height: 52px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e3edf5;
  color: #9b646c;
  box-shadow: none;
  font-weight: 600;
}

.secondary-btn {
  color: var(--ink-soft);
}

.delete-btn.is-confirming {
  background: #ad5c66;
  border-color: #ad5c66;
  color: #ffffff;
}

.title-input {
  font-size: 24px;
  font-weight: 700;
}

.title-input::placeholder {
  color: #aab8c4;
  font-weight: 600;
}

.title-underline {
  background: linear-gradient(90deg, rgba(111, 157, 194, 0.45), rgba(111, 157, 194, 0.04) 72%, transparent);
}

.field-label {
  color: var(--ink-soft);
  font-weight: 600;
}

.cat-bubble {
  background: var(--soft);
  box-shadow: inset 0 0 0 1px rgba(47, 59, 70, 0.05);
}

.cat-item.is-selected .cat-bubble {
  box-shadow: 0 0 0 2px #f7fafd, 0 0 0 3.5px var(--accent);
  transform: none;
}

.cat-check {
  background: var(--accent);
  border-color: #f7fafd;
}

.cat-name {
  font-weight: 500;
}

.cat-item.is-selected .cat-name {
  font-weight: 600;
}

.picker-card {
  border: 1px solid #e4edf5;
  border-radius: 16px;
  box-shadow: none;
}

.picker-icon {
  background: #edf4fa;
  color: var(--accent-deep);
  border-radius: 10px;
}

.picker-kicker {
  color: #a6b4c0;
}

.picker-copy strong {
  font-weight: 700;
}

.picker-sub {
  color: var(--muted);
}

.quick-chip {
  background: #ffffff;
  border: 1px solid #e5eef6;
  color: var(--muted);
  font-weight: 600;
}

.quick-chip.is-active {
  background: #e8f1f9;
  border-color: #cfe1ef;
  color: var(--accent-deep);
}

.location-field {
  border: 1px solid #e4edf5;
  border-radius: 14px;
  box-shadow: none;
}

.location-field:focus-within {
  border-color: rgba(111, 157, 194, 0.55);
  box-shadow: 0 0 0 3px rgba(111, 157, 194, 0.1);
}

.location-pin {
  color: var(--accent);
}

.clear-location {
  background: #eef5fa;
  color: var(--muted);
}

.place-chip {
  background: #edf5f9;
  color: #5b7b8f;
  border: 1px solid #e1edf5;
  font-weight: 500;
}

.tiny-note {
  color: #a6b4c0;
}

.sheet-kicker {
  color: #a6b4c0;
}

.editor-input {
  font-size: 21px;
  font-weight: 700;
  border-bottom-color: #dbe7f1;
  caret-color: var(--accent);
}

.editor-input:focus {
  border-bottom-color: var(--accent);
}

.soft-input,
.bulk-textarea {
  border: 1px solid #e4edf5;
  box-shadow: none;
  background: #ffffff;
}

.soft-input:focus,
.bulk-textarea:focus {
  border-color: rgba(111, 157, 194, 0.55);
  box-shadow: 0 0 0 3px rgba(111, 157, 194, 0.1);
}

.emoji-btn {
  background: #ffffff;
  border: 1px solid #e7eff6;
}

.emoji-btn.is-selected {
  background: #e8f1f9;
  border-color: var(--accent);
}

.seg-row {
  background: #eef5fa;
  border: 1px solid #e4edf5;
}

.seg-btn {
  color: var(--muted);
  font-weight: 600;
}

.seg-btn.is-active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: none;
}

.date-field {
  border: 1px solid #e4edf5;
  background: #ffffff;
}

.minute-chip {
  background: #ffffff;
  border: 1px solid #e5eef6;
  color: var(--muted);
  font-weight: 600;
}

.minute-chip.is-active {
  background: #e8f1f9;
  border-color: #cfe1ef;
  color: var(--accent-deep);
}

.growth-heading h2 {
  font-size: 24px;
  font-weight: 700;
}

.growth-sub {
  color: var(--muted);
}

.growth-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e4edf5;
  box-shadow: none;
  transform: none;
  font-size: 0;
}

.growth-badge svg {
  width: 26px;
  height: 26px;
}

.growth-tabs {
  background: #ffffff;
  border: 1px solid #e4edf5;
  box-shadow: none;
  border-radius: 14px;
}

.growth-tab {
  height: 37px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
}

.growth-tab.is-active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: none;
}

.panel-title-row h3 {
  font-size: 16px;
  font-weight: 700;
}

.panel-title-row p {
  color: var(--muted);
}

.mini-add {
  background: #ffffff;
  border: 1px solid #e4edf5;
  box-shadow: none;
  border-radius: 10px;
  font-weight: 600;
}

.mini-add.soft {
  background: #edf5fa;
  color: var(--accent-deep);
  border-color: #e0ebf4;
}

.growth-empty {
  background: #ffffff;
  border: 1px dashed #d7e4ef;
  border-radius: 18px;
  padding: 26px 20px;
}

.growth-empty-emoji {
  display: none;
}

.growth-empty p {
  font-weight: 600;
}

.growth-empty span {
  color: var(--muted);
}

.flags-card {
  background: #ffffff;
  border: 1px solid #e4edf5;
  border-radius: 18px;
  box-shadow: none;
}

.year-label {
  font-size: 20px;
  font-weight: 700;
}

.year-chip {
  background: #e8f1f9;
  color: var(--accent-deep);
  font-weight: 600;
}

.flag-progress {
  background: #f4f8fc;
  border-radius: 12px;
}

.flag-seg {
  background: #dfeaf3;
}

.flag-seg.is-on {
  background: var(--accent);
}

.flag-row {
  background: #ffffff;
  border: 1px solid #e5eef6;
  box-shadow: none;
  border-radius: 14px;
}

.flag-row.is-done {
  background: #f5faf8;
  border-color: #e1eee9;
}

.flag-num {
  border-radius: 9px;
  font-weight: 700;
}

.flag-text {
  font-weight: 600;
}

.flag-note {
  color: var(--muted);
}

.flag-check {
  border-color: #c9d8e4;
}

.flag-check.is-done {
  background: #7fa99f;
  border-color: #7fa99f;
}

.flag-add {
  background: #ffffff;
  border: 1px dashed #cfdfea;
  color: var(--muted);
  border-radius: 13px;
}

.flag-add .plus {
  background: #e8f1f9;
  color: var(--accent-deep);
}

.flag-complete {
  background: #eef5f2;
  color: #50796a;
}

.flag-footnote {
  color: #a6b4c0;
}

.focus-summary {
  background: #ffffff;
  border: 1px solid #e4edf5;
  border-radius: 14px;
}

.focus-icon {
  background: #eef5fa;
  font-size: 0;
}

.focus-icon::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.focus-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.focus-copy span {
  color: var(--muted);
}

.mainline-card {
  background: #ffffff;
  border: 1px solid #e5eef6;
  box-shadow: none;
  border-radius: 16px;
}

.mainline-card::after {
  display: none;
}

.ml-edit {
  color: #a6b4c0;
}

.ml-icon {
  background: var(--soft);
  border-radius: 10px;
  font-size: 18px;
}

.ml-name {
  font-weight: 700;
}

.ml-note {
  color: var(--muted);
}

.ml-day {
  background: #e3ebf3;
  height: 9px;
  width: 5px;
}

.ml-day.is-today {
  box-shadow: 0 0 0 1.5px #ffffff, 0 0 0 2.5px #d3e2ee;
}

.ml-total {
  color: #8e9dac;
}

.ml-check {
  background: #ffffff;
  border-color: #c9d8e4;
  color: #8fa0af;
}

.ml-check.is-done {
  background: var(--c);
  border-color: var(--c);
  color: #ffffff;
}

.mainline-add,
.skill-add-card,
.travel-add-card {
  background: #ffffff;
  border: 1px dashed #cfdfea;
  border-radius: 16px;
  color: var(--muted);
}

.mainline-add .plus,
.skill-add-card .plus,
.travel-add-card .plus {
  background: #e8f1f9;
  color: var(--accent-deep);
}

.mini-filter {
  background: #ffffff;
  border: 1px solid #e5eef6;
  color: var(--muted);
  font-weight: 600;
}

.mini-filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.mini-filter.is-active b {
  color: rgba(255, 255, 255, 0.7);
}

.skill-card {
  background: #ffffff;
  border: 1px solid #e5eef6;
  box-shadow: none;
  border-radius: 16px;
}

.skill-card.is-learned {
  background: #f5faf8;
}

.skill-emoji {
  background: #eef5fa;
  border-radius: 10px;
  font-size: 18px;
}

.skill-status.want {
  background: #eef4f9;
  color: #6b7f90;
}

.skill-status.learning {
  background: #e4f0f7;
  color: #4f7fa5;
}

.skill-status.learned {
  background: #e7f2ee;
  color: #50796a;
}

.skill-name {
  font-weight: 700;
}

.skill-note {
  color: var(--muted);
}

.skill-meta {
  color: #a1afbc;
}

.skill-log-btn {
  background: #f2f6fa;
  color: var(--ink-soft);
  font-weight: 600;
}

.skill-learn {
  border-color: #c9d8e4;
}

.skill-learn.is-learned {
  background: #7fa99f;
  border-color: #7fa99f;
}

.travel-card {
  background: #ffffff;
  border: 1px solid #e5eef6;
  box-shadow: none;
  border-radius: 16px;
}

.travel-card.is-visited {
  background: #f6fafc;
}

.travel-card::after {
  border-top-color: #e8f0f6;
}

.travel-stamp {
  color: #7d90a1;
  border-color: #d7e4ef;
  background: #f7fafd;
}

.travel-card.is-visited .travel-stamp {
  border-color: #cde1dc;
  background: #eef7f4;
  color: #50796a;
}

.travel-name {
  font-weight: 700;
}

.travel-region,
.travel-note {
  color: var(--muted);
}

.travel-date {
  color: #a6b4c0;
}

.travel-check {
  border-color: #c9d8e4;
  background: #ffffff;
  color: transparent;
}

.travel-check.is-visited {
  background: #7fa99f;
  border-color: #7fa99f;
  color: #ffffff;
}

.travel-section-title {
  color: var(--ink-soft);
  font-weight: 600;
}

.travel-section-title span {
  background: #ffffff;
  border: 1px solid #e5eef6;
}

.skill-detail-hero .sd-emoji {
  background: #eef5fa;
  box-shadow: none;
}

.sd-copy h3 {
  font-size: 21px;
  font-weight: 700;
}

.sd-copy p {
  color: var(--muted);
}

.sd-meta span {
  background: #eef5fa;
  color: var(--muted);
}

.log-row {
  background: #ffffff;
  border: 1px solid #e5eef6;
}

.log-date {
  font-weight: 700;
}

.log-copy strong {
  font-weight: 600;
}

.log-copy span {
  color: var(--muted);
}

.log-del {
  color: #a6b4c0;
}

.empty-logs {
  background: #ffffff;
  border-color: #d7e4ef;
  color: var(--muted);
}

.detail-note {
  background: #f2f6fa;
  color: var(--ink-soft);
}

.settings-hero {
  background: #ffffff;
  border: 1px solid #e4edf5;
  box-shadow: none;
}

.mini-logo {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #e8f1f9;
}

.mini-logo svg {
  width: 44px;
  height: 44px;
}

.settings-hero strong {
  font-weight: 600;
}

.settings-hero p {
  color: var(--muted);
}

.install-tip {
  background: #edf5fa;
  border: 1px solid #e1edf5;
}

.install-icon {
  background: #ffffff;
  color: var(--accent-deep);
}

.install-tip strong {
  color: var(--ink-soft);
}

.install-tip p {
  color: var(--muted);
}

.settings-list {
  background: #ffffff;
  border: 1px solid #e4edf5;
  box-shadow: none;
}

.settings-row {
  border-bottom-color: #eef3f8;
}

.settings-row:active {
  background: #f5f9fc;
}

.settings-ico.peach {
  background: #e8f1f9;
  color: #4f7fa5;
}

.settings-ico.mint {
  background: #e8f3f0;
  color: #50796a;
}

.settings-ico.blush {
  background: #f4eaec;
  color: #9b646c;
}

.settings-copy strong {
  font-weight: 600;
}

.settings-row.danger .settings-copy strong {
  color: #9b5f67;
}

.settings-row.is-confirming {
  background: #fbf0f1;
}

.settings-foot {
  color: #a6b4c0;
}

.toast {
  background: rgba(47, 59, 70, 0.94);
  border-radius: 12px;
  font-weight: 500;
  box-shadow: 0 10px 26px -12px rgba(38, 56, 73, 0.5);
}

.toast-check {
  background: #cfe3d9;
  color: #3f6254;
}

.year-arrow:active {
  background: #f1f7fb;
}

.flag-add:active {
  background: #f5f9fc;
}

.confetti-layer {
  display: none;
}

@media (min-width: 560px) {
  .sheet {
    border-radius: 22px;
  }
}


/* =========================================================
   Ideas + custom categories
   ========================================================= */

.dock {
  grid-template-columns: repeat(4, minmax(0, 1fr)) 54px;
}

.dock-tab span {
  font-size: 8.5px;
}

.view-sub {
  margin: -3px 3px 12px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.idea-add-btn {
  width: 100%;
  height: 43px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px dashed #cfdfea;
  background: #ffffff;
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 600;
}

.ideas-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.idea-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 15px;
  background: #ffffff;
  border: 1px solid #e5eef6;
}

.idea-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.idea-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--soft);
  font-size: 19px;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  filter: saturate(0.78);
}

.idea-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.idea-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.idea-meta {
  color: var(--muted);
  font-size: 9.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.idea-schedule {
  flex: 0 0 auto;
  height: 29px;
  padding: 0 10px;
  border-radius: 9px;
  background: #eef5fa;
  color: var(--accent-deep);
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}

.idea-empty {
  padding: 26px 18px;
  border-radius: 16px;
  border: 1px dashed #d7e4ef;
  background: #ffffff;
  text-align: center;
}

.idea-empty svg {
  width: 42px;
  height: 42px;
  margin: 0 auto 9px;
  color: #a9c0d3;
}

.idea-empty p {
  margin: 0 0 3px;
  font-size: 13.5px;
  font-weight: 600;
}

.idea-empty span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10px;
}

.idea-empty .ghost-btn {
  height: 34px;
}

.cat-manager-add {
  width: 100%;
  height: 43px;
  border-radius: 12px;
  border: 1px dashed #cfdfea;
  background: #ffffff;
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 600;
}

.cat-manager-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
}

.cat-manager-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5eef6;
}

.cat-manager-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--soft);
  font-size: 18px;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  filter: saturate(0.78);
}

.cat-manager-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cat-manager-copy strong {
  font-size: 12px;
  font-weight: 600;
}

.cat-manager-copy small {
  color: var(--muted);
  font-size: 9px;
}

.cat-manager-edit {
  flex: 0 0 auto;
  height: 29px;
  padding: 0 10px;
  border-radius: 8px;
  background: #f2f6fa;
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 600;
}

.cat-manager-empty {
  padding: 24px 16px;
  border-radius: 14px;
  border: 1px dashed #d7e4ef;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  line-height: 1.6;
}

.cat-manager-note {
  margin: 10px 0 0;
  color: var(--muted-2);
  font-size: 9px;
  text-align: center;
}

.category-preview {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 16px;
  padding: 11px;
  border-radius: 15px;
  background: #ffffff;
  border: 1px solid #e4edf5;
}

.category-preview-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #e8f1f9;
  font-size: 23px;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

.category-preview-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.category-preview-copy strong {
  font-size: 11px;
  font-weight: 600;
}

.category-preview-copy small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.cat-add .cat-bubble {
  background: #f4f8fc;
  border: 1.5px dashed #c9d8e4;
  color: var(--accent-deep);
  font-family: var(--font);
  font-size: 21px;
  font-weight: 300;
}

.cat-add .cat-name {
  color: var(--accent-deep);
}

.unscheduled-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid #e4edf5;
  background: #ffffff;
  text-align: left;
}

.switch-track {
  flex: 0 0 auto;
  width: 34px;
  height: 20px;
  padding: 2px;
  border-radius: 999px;
  background: #dce7f0;
  transition: background 0.2s;
}

.switch-thumb {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(47, 70, 92, 0.18);
  transition: transform 0.2s var(--ease-out);
}

.unscheduled-toggle.is-active {
  border-color: #cfe1ef;
  background: #f4f9fd;
}

.unscheduled-toggle.is-active .switch-track {
  background: var(--accent);
}

.unscheduled-toggle.is-active .switch-thumb {
  transform: translateX(14px);
}

.unscheduled-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.unscheduled-copy strong {
  font-size: 11px;
  font-weight: 600;
}

.unscheduled-copy small {
  color: var(--muted);
  font-size: 9px;
}

#editorRoot.is-unscheduled .picker-row,
#editorRoot.is-unscheduled .quick-row {
  display: none;
}

#editorRoot.is-unscheduled .unscheduled-toggle {
  margin-top: 17px;
}

@media (max-width: 374px) {
  .dock {
    grid-template-columns: repeat(4, minmax(0, 1fr)) 48px;
  }

  .dock-tab span {
    font-size: 8px;
  }

  .dock-tab svg {
    width: 20px;
    height: 20px;
  }
}


/* =========================================================
   Cloud sync
   ========================================================= */

.cloud-sheet {
  max-height: 86dvh;
}

.cloud-status-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e4edf5;
  border-radius: 14px;
  background: #ffffff;
}

.cloud-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: #b8c6d3;
}

.cloud-dot.is-online {
  background: #7fa99f;
}

.cloud-dot.is-busy {
  background: var(--accent);
  animation: cloudPulse 1.2s ease-in-out infinite;
}

.cloud-dot.is-offline {
  background: #c49a6a;
}

.cloud-dot.is-conflict {
  background: #b46f78;
}

.cloud-status-copy {
  min-width: 0;
}

.cloud-status-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.cloud-status-copy p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.cloud-login {
  margin-top: 16px;
}

.cloud-login .soft-input {
  margin-bottom: 10px;
}

.cloud-login .save-btn {
  width: 100%;
}

.cloud-error {
  margin: 0 0 9px;
  color: #a85d66;
  font-size: 10px;
}

.cloud-connected {
  margin-top: 17px;
}

.cloud-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 10px;
}

.cloud-actions {
  display: flex;
  gap: 7px;
}

.cloud-actions .secondary-btn {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
}

.cloud-actions .delete-btn {
  flex: 0 0 auto;
  min-width: 82px;
  height: 46px;
}

.cloud-conflict {
  margin-top: 17px;
  padding: 12px;
  border: 1px solid #ead9dd;
  border-radius: 14px;
  background: #fdf7f8;
}

.cloud-conflict .field-label {
  margin-top: 0;
}

.cloud-conflict-copy {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.cloud-conflict .save-btn {
  width: 100%;
  height: 44px;
  margin-bottom: 7px;
}

.cloud-conflict .secondary-btn {
  width: 100%;
  height: 44px;
}

@keyframes cloudPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

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