/* Kindness. Soft purple, white cards, round corners, orange accents. */

@font-face {
  font-family: 'InterVar';
  src: url('/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --purple: #7b61ff;
  --purple-2: #9a86ff;
  --purple-deep: #5f44ee;
  --lav: #f5f3ff;
  --lav-2: #ece8ff;
  --lav-3: #ddd6ff;
  --ink: #1f1d3a;
  --ink-2: #4b4970;
  --muted: #9b99b8;
  --line: #eeecf8;
  --orange: #ff9f43;
  --orange-soft: #fff1e3;
  --green: #22c38e;
  --green-soft: #e3f8f0;
  --red: #ff5d7a;
  --red-soft: #ffe8ed;
  --pink: #ff7eb6;
  --blue: #4aa8ff;
  --card: #ffffff;
  --shadow: 0 12px 32px rgba(86, 62, 214, 0.12);
  --shadow-sm: 0 6px 18px rgba(86, 62, 214, 0.08);
  --r: 22px;
  --r-sm: 15px;
  --grad: linear-gradient(155deg, #a08dff 0%, #7b61ff 52%, #6a4ef4 100%);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-h: 66px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'InterVar', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(140deg, #e9e4ff 0%, #cfc4ff 55%, #bcaeff 100%) fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.4;
}
button, input, textarea, select { font-family: inherit; font-size: 16px; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }
a { color: var(--purple); text-decoration: none; }
a.tile, a.item, a.card, button.item, button.card { color: var(--ink); }
img { max-width: 100%; }

.boot { min-height: 100vh; display: grid; place-items: center; }
.boot img { border-radius: 22px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(0.94); opacity: 0.8; } }

/* The phone shaped column */
.shell {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--lav);
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 18px);
  overflow-x: hidden;
}
@media (min-width: 560px) {
  body { padding: 28px 0; }
  .shell { min-height: calc(100vh - 56px); border-radius: 38px; box-shadow: 0 30px 80px rgba(70, 45, 190, 0.25); overflow: hidden; }
  .nav { border-radius: 26px 26px 38px 38px; }
  .lock, .setup { max-width: 480px; margin: 0 auto; min-height: calc(100vh - 56px) !important; border-radius: 38px; overflow: hidden; box-shadow: 0 30px 80px rgba(70, 45, 190, 0.25); }
}

/* Purple header */
.hdr {
  background: var(--grad);
  color: #fff;
  padding: calc(var(--safe-top) + 18px) 20px 22px;
  border-radius: 0 0 32px 32px;
  position: relative;
  overflow: hidden;
}
.hdr::before, .hdr::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}
.hdr::before { width: 220px; height: 220px; right: -70px; top: -90px; }
.hdr::after { width: 140px; height: 140px; left: -50px; bottom: -80px; }
.hdr > * { position: relative; z-index: 1; }
.hdr-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hdr-hello { font-size: 15px; opacity: 0.85; font-weight: 500; }
.hdr-name { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.1; }
.hdr-title { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; text-align: center; flex: 1; }
.hdr-sub { font-size: 13px; opacity: 0.85; text-align: center; margin-top: 2px; }
.hdr-btn {
  width: 40px; height: 40px; border-radius: 13px; background: rgba(255, 255, 255, 0.18);
  display: grid; place-items: center; color: #fff; flex: none;
}
.hdr-btn:active { transform: scale(0.95); }
.hdr-back { display: inline-flex; align-items: center; gap: 2px; color: #fff; font-weight: 600; font-size: 15px; min-width: 64px; }
.hdr-spacer { min-width: 64px; display: flex; justify-content: flex-end; }

.avatar {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 14px;
  font-weight: 800; color: #fff; font-size: 17px; letter-spacing: 0.3px;
  background: var(--purple);
}
.avatar.lg { width: 76px; height: 76px; border-radius: 24px; font-size: 28px; }
.avatar.sm { width: 34px; height: 34px; border-radius: 11px; font-size: 13px; }
.avatar.glass { background: rgba(255, 255, 255, 0.22); border: 2px solid rgba(255, 255, 255, 0.45); }

/* Week strip */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 18px; }
.day {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 0 7px; border-radius: 16px; color: #fff;
}
.day small { font-size: 12px; opacity: 0.8; font-weight: 500; }
.day b { font-size: 17px; font-weight: 700; }
.day i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); opacity: 0; }
.day.has i { opacity: 1; }
.day.on { background: #fff; color: var(--purple); box-shadow: 0 8px 20px rgba(40, 20, 120, 0.18); }
.day.on small { opacity: 1; }
.day.on i { background: var(--purple); }
.day.today:not(.on) b { text-decoration: underline; text-underline-offset: 4px; }

/* Layout */
.page { padding: 18px 18px 8px; }
.sec { margin-top: 22px; }
.sec:first-child { margin-top: 4px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 12px; }
.sec-h h2 { font-size: 19px; font-weight: 800; margin: 0; letter-spacing: -0.3px; }
.sec-h a, .sec-h button { font-size: 14px; color: var(--purple); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pre { white-space: pre-wrap; }
.hidden { display: none !important; }

/* Cards */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 16px; position: relative; }
.card + .card { margin-top: 12px; }
.grid2 > .card + .card { margin-top: 0; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card.tap:active { transform: scale(0.985); }
.card h3 { margin: 0; font-size: 16px; font-weight: 750; letter-spacing: -0.2px; }
.card .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

.tile {
  background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 15px 15px 14px;
  min-height: 168px; position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.tile h3 { margin: 0; font-size: 16px; font-weight: 750; }
.tile .sub { font-size: 13px; color: var(--muted); margin-top: 1px; }
.tile .art {
  margin-top: auto; height: 74px; border-radius: 18px; display: grid; place-items: center; font-size: 38px;
  background: radial-gradient(circle at 30% 30%, #f1edff, #e4ddff);
}
.tile .art.orange { background: radial-gradient(circle at 30% 30%, #fff4e8, #ffe2c4); }
.tile .art.green { background: radial-gradient(circle at 30% 30%, #e8fbf4, #c9f1e2); }
.tile .art.pink { background: radial-gradient(circle at 30% 30%, #fff0f6, #ffd6e8); }
.tile .corner { position: absolute; top: 12px; right: 12px; }
.tile:active { transform: scale(0.98); }

/* Search */
.search {
  display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 0 14px;
  height: 50px; box-shadow: var(--shadow-sm); color: var(--muted);
}
.search input { border: none; outline: none; flex: 1; background: transparent; color: var(--ink); height: 100%; }
.search input::placeholder { color: #b3b1cc; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 18px; border-radius: 15px; font-weight: 700; font-size: 15px;
  background: var(--purple); color: #fff; box-shadow: 0 8px 18px rgba(123, 97, 255, 0.28);
  transition: transform 0.08s ease, opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn.block { width: 100%; }
.btn.sm { height: 36px; padding: 0 13px; border-radius: 12px; font-size: 14px; box-shadow: none; }
.btn.soft { background: var(--lav-2); color: var(--purple); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--purple); box-shadow: none; }
.btn.white { background: #fff; color: var(--purple); box-shadow: 0 8px 20px rgba(40, 20, 120, 0.18); }
.btn.orange { background: var(--orange); box-shadow: 0 8px 18px rgba(255, 159, 67, 0.3); }
.btn.green { background: var(--green); box-shadow: 0 8px 18px rgba(34, 195, 142, 0.25); }
.btn.danger { background: var(--red-soft); color: var(--red); box-shadow: none; }
.btn.line { background: #fff; color: var(--ink-2); border: 1px solid var(--line); box-shadow: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--lav-2); color: var(--purple); flex: none; }
.icon-btn.sq { background: var(--purple); color: #fff; box-shadow: 0 8px 18px rgba(123, 97, 255, 0.3); }
.icon-btn.plain { background: transparent; }
.link { color: var(--purple); font-weight: 650; }

/* Chips and pills */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px;
  background: var(--lav-2); color: var(--ink-2); font-size: 14px; font-weight: 600; line-height: 1.2;
}
.chip.on { background: var(--purple); color: #fff; }
.chip.orange { background: var(--orange-soft); color: #c96a10; }
.chip.green { background: var(--green-soft); color: #11895f; }
.chip.red { background: var(--red-soft); color: #d23a58; }
.chip.white { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.chip .x { opacity: 0.6; display: inline-grid; place-items: center; }
.pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--lav-2); color: var(--purple); }
.pill.orange { background: var(--orange-soft); color: #d07015; }
.pill.green { background: var(--green-soft); color: #11895f; }
.pill.red { background: var(--red-soft); color: #d23a58; }
.pill.gray { background: #f1f0f7; color: var(--muted); }
.scroll-x { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 0 -18px; padding-left: 18px; padding-right: 18px; scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x > * { flex: none; }

/* Lists */
.list { background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--line); background: #fff; }
.item:last-child { border-bottom: none; }
.item.tap:active { background: var(--lav); }
.item .t { font-weight: 650; font-size: 15px; }
.item .s { font-size: 13px; color: var(--muted); margin-top: 1px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--purple); flex: none; }

.badge-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; font-size: 19px; background: var(--lav-2); color: var(--purple); }
.badge-ic.orange { background: var(--orange-soft); color: var(--orange); }
.badge-ic.green { background: var(--green-soft); color: var(--green); }
.badge-ic.pink { background: #ffe9f3; color: var(--pink); }
.badge-ic.blue { background: #e6f3ff; color: var(--blue); }

/* Progress */
.bar { height: 6px; border-radius: 6px; background: var(--lav-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: var(--purple); }
.bar.orange > i { background: var(--orange); }

/* Forms */
.field { display: block; }
.field + .field { margin-top: 12px; }
.field > span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin: 0 2px 6px; }
.input, .textarea, .select {
  width: 100%; border: 1.5px solid var(--line); background: #fbfaff; border-radius: 14px; padding: 12px 14px;
  outline: none; transition: border-color 0.15s, background 0.15s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--purple-2); background: #fff; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
.textarea.big { min-height: 220px; }
.select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two .field + .field { margin-top: 0; }

.toggle { position: relative; width: 50px; height: 30px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle i { position: absolute; inset: 0; border-radius: 30px; background: #dcd9ea; transition: background 0.2s; }
.toggle i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); transition: transform 0.2s; }
.toggle input:checked + i { background: var(--purple); }
.toggle input:checked + i::after { transform: translateX(20px); }

/* Bottom nav */
.nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px;
  background: #fff; box-shadow: 0 -8px 30px rgba(86, 62, 214, 0.1); border-radius: 26px 26px 0 0;
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 6px calc(8px + var(--safe-bottom)); z-index: 30;
}
@media (min-width: 560px) { .nav { bottom: 28px; } }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #b2b0cb; font-size: 11px; font-weight: 650; padding: 4px 0; }
.nav a.on { color: var(--purple); }
.nav a.mid span.ic { width: 46px; height: 46px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; margin-top: -24px; box-shadow: 0 10px 22px rgba(123, 97, 255, 0.4); }
.nav a.mid { color: var(--purple); }

/* Sheet */
.sheet-bg { position: fixed; inset: 0; background: rgba(28, 18, 70, 0.38); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade 0.18s ease; }
.sheet {
  width: 100%; max-width: 480px; background: #fff; border-radius: 28px 28px 0 0; padding: 10px 18px calc(22px + var(--safe-bottom));
  max-height: 92vh; overflow-y: auto; animation: up 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.sheet .grab { width: 42px; height: 5px; border-radius: 5px; background: #e1def0; margin: 2px auto 14px; }
.sheet h2 { margin: 0 0 4px; font-size: 21px; font-weight: 800; letter-spacing: -0.3px; }
.sheet .lead { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
@keyframes up { from { transform: translateY(40px); opacity: 0.5; } }
@keyframes fade { from { opacity: 0; } }

/* Toast */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-bottom) + 18px);
  background: #262344; color: #fff; padding: 12px 16px; border-radius: 16px; z-index: 80; font-weight: 600; font-size: 14px;
  box-shadow: 0 14px 30px rgba(20, 10, 60, 0.3); display: flex; gap: 14px; align-items: center; max-width: calc(100% - 40px);
  animation: up 0.2s ease;
}
.toast button { color: #c9bcff; font-weight: 800; }

/* Lock screen */
.lock {
  min-height: 100vh; min-height: 100dvh; background: var(--grad); color: #fff; display: flex; flex-direction: column;
  align-items: center; padding: calc(var(--safe-top) + 54px) 24px calc(var(--safe-bottom) + 28px); position: relative; overflow: hidden;
}
.lock::before { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); top: -160px; right: -140px; }
.lock::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); bottom: -120px; left: -110px; }
.lock > * { position: relative; z-index: 1; }
.lock-icon { width: 78px; height: 78px; border-radius: 24px; box-shadow: 0 16px 34px rgba(30, 10, 120, 0.35); }
.lock h1 { margin: 18px 0 4px; font-size: 28px; font-weight: 800; letter-spacing: -0.4px; }
.lock p { margin: 0; opacity: 0.85; }
.dots { display: flex; gap: 14px; margin: 30px 0 26px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.85); }
.dots i.on { background: #fff; }
.dots.shake { animation: shake 0.38s; }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 16px 24px; }
.pad button { width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 30px; font-weight: 500; display: grid; place-items: center; }
.pad button:active { background: rgba(255, 255, 255, 0.34); }
.pad button.plain { background: transparent; font-size: 15px; font-weight: 650; }
.lock .err { min-height: 22px; margin-top: 10px; font-weight: 600; color: #ffe1e8; text-align: center; }

/* Setup */
.setup { min-height: 100vh; min-height: 100dvh; background: var(--lav); }
.setup .hdr { padding-bottom: 34px; }
.steps { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.steps i { width: 26px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.35); }
.steps i.on { background: #fff; }
.codebox { letter-spacing: 10px; font-size: 26px; text-align: center; font-weight: 800; }

/* Chat */
.chat-wrap { display: flex; flex-direction: column; min-height: calc(100vh - 210px); min-height: calc(100dvh - 210px); }
.msgs { padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 84%; padding: 11px 14px; border-radius: 20px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.msg.me { align-self: flex-end; background: var(--purple); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 8px 18px rgba(123, 97, 255, 0.22); }
.msg.ai { align-self: flex-start; background: #fff; color: var(--ink); border-bottom-left-radius: 6px; box-shadow: var(--shadow-sm); }
.msg.ai.err { background: #fff6f8; color: #b03050; }
.msg.dump { background: #efeaff; color: var(--ink); border: 1px dashed var(--purple-2); box-shadow: none; }
.msg .when { display: block; font-size: 11px; opacity: 0.6; margin-top: 4px; }
.acts { align-self: flex-start; display: flex; flex-direction: column; gap: 6px; max-width: 88%; }
.act { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 7px 10px; font-size: 13px; color: var(--ink-2); }
.act.undone { opacity: 0.5; text-decoration: line-through; }
.act button { margin-left: auto; color: var(--purple); font-weight: 700; font-size: 13px; }
.draft { align-self: flex-start; background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow-sm); max-width: 88%; border-left: 4px solid var(--green); }
.typing { align-self: flex-start; display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; padding: 4px 6px; }
.typing span { display: inline-flex; gap: 3px; }
.typing span i { width: 6px; height: 6px; border-radius: 50%; background: var(--purple-2); animation: blink 1.2s infinite; }
.typing span i:nth-child(2) { animation-delay: 0.15s; }
.typing span i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
.dock { position: sticky; bottom: calc(var(--nav-h) + var(--safe-bottom) + 6px); z-index: 5; padding-top: 10px; background: linear-gradient(to top, var(--lav) 65%, rgba(245, 243, 255, 0)); }
.composer {
  margin: 0 12px; display: flex; gap: 8px; align-items: flex-end;
  background: #fff; border-radius: 20px; padding: 7px; box-shadow: var(--shadow);
}
.composer textarea { flex: 1; border: none; outline: none; resize: none; max-height: 140px; min-height: 40px; padding: 9px 6px; background: transparent; line-height: 1.35; }
.composer .icon-btn { width: 40px; height: 40px; border-radius: 50%; }
.quick { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex: none; background: #fff; border: 1px solid var(--line); color: var(--ink-2); padding: 8px 12px; border-radius: 14px; font-size: 13.5px; font-weight: 650; }

/* Rings */
.ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring .lbl { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 13px; }

/* Plans */
.plan { border-top: 5px solid var(--purple); }
.plan.k-date_night { border-top-color: var(--pink); }
.plan.k-break, .plan.k-me_time { border-top-color: var(--green); }
.plan.k-getaway, .plan.k-holiday { border-top-color: var(--blue); }
.plan.k-swim { border-top-color: var(--blue); }
.plan.k-gift { border-top-color: var(--orange); }
.plan .why { font-size: 13.5px; color: var(--ink-2); background: var(--lav); border-radius: 12px; padding: 8px 10px; margin-top: 10px; }
.plan .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.plan .meta span { display: inline-flex; align-items: center; gap: 5px; }
.plan .acts-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14.5px; }
.step input { width: 20px; height: 20px; accent-color: var(--purple); }
.step.done span { text-decoration: line-through; color: var(--muted); }

/* Mood */
.faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.face { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 8px; border-radius: 16px; background: var(--lav); font-size: 28px; border: 2px solid transparent; }
.face small { font-size: 11.5px; color: var(--muted); font-weight: 650; }
.face.on { background: #fff; border-color: var(--purple); box-shadow: var(--shadow-sm); }
.face:active { transform: scale(0.95); }
.chart { width: 100%; height: auto; display: block; }

/* Digest */
.digest { background: linear-gradient(140deg, #fff 0%, #f7f4ff 100%); border: 1px solid #ebe5ff; }
.digest .txt { white-space: pre-wrap; font-size: 15px; line-height: 1.5; margin-top: 8px; }

.empty { text-align: center; color: var(--muted); padding: 22px 12px; font-size: 14px; }
.empty .big { font-size: 34px; margin-bottom: 6px; }

.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(123, 97, 255, 0.25); border-top-color: var(--purple); animation: spin 0.8s linear infinite; display: inline-block; }
.spinner.white { border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.banner { display: flex; gap: 12px; align-items: flex-start; background: #fff7ec; border: 1px solid #ffe0bd; color: #8a4b0d; border-radius: 18px; padding: 12px 14px; font-size: 14px; }
.banner.purple { background: #f3f0ff; border-color: #e2dbff; color: var(--ink-2); }
.banner.red { background: #fff1f4; border-color: #ffd3dd; color: #a8304b; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14.5px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; }

.divider { height: 1px; background: var(--line); margin: 14px 0; }
code.copy { display: block; background: var(--lav); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; word-break: break-all; color: var(--ink-2); }
