:root {
  color-scheme: light;
  --bg: #f8f5ff;
  --paper: #fff;
  --ink: #211639;
  --sub: #57496f;
  --line: #e6dff2;
  --purple: #4a32bc;
  --deep: #392491;
  --lime: #e7fa7e;
  --peach: #ffbeaa;
  --date: #df4974;
  --activity: #377527;
  --trip: #7254d7;
  --shadow: 0 12px 34px #33245b0a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.45; }
a { color: inherit; text-decoration: none; }
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #8156e0; outline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.05; letter-spacing: -.035em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3, h4 { font-size: 1.12rem; line-height: 1.2; overflow-wrap: anywhere; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner { width: min(1160px, calc(100% - 56px)); margin: auto; min-height: 76px; display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1rem; font-weight: 800; letter-spacing: -.045em; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; background: var(--purple); color: var(--lime); font-size: 1.45rem; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; padding: 4px; background: #f1ecfa; border-radius: 16px; }
.nav a { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 13px; border-radius: 12px; color: var(--sub); font-weight: 700; font-size: .91rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { background: white; color: var(--deep); box-shadow: 0 2px 10px #22153a14; }
.nav .nav-peach { font-size: 1.2rem; min-width: 46px; }
.account { display: flex; align-items: center; gap: 11px; white-space: nowrap; }
.who { padding: 5px 9px; border-radius: 999px; background: #f0eafa; font-size: .84rem; font-weight: 800; color: var(--deep); }
.text-button { padding: 0; border: 0; background: transparent; color: var(--deep); font-weight: 750; font-size: .91rem; }
.text-button:hover, .item-action:hover, .back:hover, .empty a:hover, :is(h3, h4) a:hover { text-decoration: underline; text-underline-offset: 3px; }
.account .text-button { min-height: 44px; }
.container { width: min(1160px, calc(100% - 56px)); margin: 27px auto 64px; }
.hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 30px; padding: 34px 40px 38px; min-height: 255px; margin-bottom: 24px; }
.hero-calendar { background: #4a32bc; color: white; }
.hero.has-cover { display: grid; align-items: center; grid-template-columns: 1.05fr 1fr; gap: 21px; }
.has-cover .hero-copy { max-width: none; }
.cover-frame { width: min(100%, 390px); justify-self: end; margin: 0 8px 0 0; padding: 6px; border-radius: 18px; background: #fff3f8; box-shadow: 7px 8px 0 #2d1a8470; transform: rotate(3deg); }
.cover-frame img { width: 100%; height: auto; display: block; border-radius: 13px; }
.hero-ideas { background: #e6f881; color: #302049; }
.hero-peach { background: #ffc0ac; color: #422044; }
.hero-copy { position: relative; z-index: 1; max-width: 70%; }
.eyebrow { display: inline-flex; gap: 7px; align-items: center; font-size: .72rem; line-height: 1.3; letter-spacing: .12em; font-weight: 850; }
.hero-calendar .eyebrow { color: var(--lime); }
.eyebrow.dim { color: var(--sub); }
.hero h1 { margin: 7px 0 7px; }
.hero p { font-size: 1.05rem; margin-bottom: 19px; }
.hero .peach-title { line-height: 1.1; }
.button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 46px; border: 1px solid transparent; border-radius: 13px; padding: 9px 15px; font-weight: 800; font-size: .94rem; text-align: center; }
.button.primary { background: var(--deep); color: white; }
.hero-calendar .button.primary { background: var(--lime); color: #2c2250; }
.button.primary:hover { filter: brightness(1.12); }
.hero-art { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); width: clamp(200px, 29vw, 345px); height: 220px; pointer-events: none; }
.art-orbit { position: absolute; inset: 30px 0; border: 1px solid currentColor; opacity: .33; border-radius: 50%; transform: rotate(-26deg); }
.art-sticker { position: absolute; inset: 27px 25% 29px 29%; display: grid; align-content: center; justify-items: center; border: 2px solid #fff8; border-radius: 22px; box-shadow: 8px 12px 0 #29165854; transform: rotate(13deg); background: #ffb9d6; color: #462452; }
.art-sticker span { font-weight: 900; font-size: .66rem; letter-spacing: .09em; white-space: nowrap; }
.art-sticker b { font-size: clamp(3rem, 7vw, 5.4rem); line-height: 1; letter-spacing: -.09em; }
.art-sticker i { position: absolute; font-style: normal; color: white; right: 10px; bottom: 7px; }
.art-ray, .art-sun { position: absolute; line-height: 1; font-size: 2.25rem; }
.ray-one { left: 13%; top: 30px; }
.ray-two { right: 6%; top: 50px; color: var(--lime); }
.art-sun { left: 13%; bottom: 19px; color: #ffb9d6; font-size: 3rem; }
.hero-ideas .art-sticker { background: #b9a2fb; }
.hero-peach .art-sticker { background: #fff1f9; color: #db597e; }
.hero-ideas .art-sun, .hero-peach .art-sun { color: #5734bd; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: 23px; background: var(--paper); box-shadow: var(--shadow); }
.calendar-panel, .day-panel { padding: 20px; min-width: 0; }
.day-panel { scroll-margin-top: 16px; }
.panel-head, .section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-head { margin-bottom: 15px; }
.panel-head h2, .section-head h2 { margin-top: 4px; }
.month-controls { display: flex; align-items: center; gap: 4px; }
.icon-button { display: grid; place-items: center; min-width: 42px; min-height: 42px; border: 1px solid var(--line); border-radius: 11px; color: var(--deep); font-weight: 850; }
.icon-button:hover { background: #f0e9ff; }
.today-button { font-size: .76rem; padding: 0 7px; }
.add-mini { background: #f1e9ff; }
.month { table-layout: fixed; width: 100%; border-spacing: 3px; }
.month th { color: var(--sub); font-size: .76rem; font-weight: 750; height: 22px; }
.month td { padding: 0; }
.day-cell { display: grid; place-items: center; grid-template-rows: 1fr 9px; min-height: 44px; padding: 2px 0 5px; border-radius: 10px; background: #f7f4fc; font-weight: 750; font-size: .91rem; }
.day-cell:hover { background: #eae2fb; }
.day-cell.muted { background: #fff; color: #746685; }
.day-cell.is-today { box-shadow: inset 0 0 0 1.5px var(--purple); }
.day-cell.selected { color: white; background: var(--purple); }
.day-dots, .legend { display: flex; align-items: center; gap: 3px; }
.day-dots b { font-size: .69rem; line-height: 1; }
.day-dots i, .legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.day-dots .date, .legend .date { background: var(--date); }
.day-dots .activity, .legend .activity { background: var(--activity); }
.day-dots .trip, .legend .trip { background: var(--trip); }
.day-cell.selected .day-dots .date { background: #ffc2d5; }
.day-cell.selected .day-dots .activity { background: var(--lime); }
.day-cell.selected .day-dots .trip { background: #e4caff; }
.day-dots .faded { opacity: .45; }
.legend { margin-top: 13px; flex-wrap: wrap; gap: 6px 12px; color: var(--sub); font-size: .76rem; }
.legend span { display: flex; align-items: center; gap: 5px; }
.empty { text-align: center; padding: 26px 12px; background: #faf7ff; border-radius: 14px; color: var(--sub); }
.empty span { display: block; margin-bottom: 6px; color: var(--purple); font-size: 1.8rem; }
.empty p { margin-bottom: 5px; }
.empty a { color: var(--deep); font-weight: 750; font-size: .9rem; }
.empty-wide { min-width: 0; }
.upcoming, .inspiration { margin-top: 29px; }
.section-head { margin-bottom: 13px; }
.time-label { font-size: .78rem; color: var(--sub); }
.quiet { color: var(--sub); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.item-stack { display: grid; gap: 9px; }
.item-card, .inspiration-card { background: var(--paper); border: 1px solid var(--line); border-radius: 17px; padding: 13px; box-shadow: var(--shadow); min-width: 0; }
.item-card { display: flex; align-items: flex-start; gap: 9px; }
.item-card.is-done { border-color: #c8ddbe; }
.plain-list .item-card { border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 13px 16px; }
.plain-list .item-card + .item-card { border-top: 1px solid var(--line); }
.plain-list .item-arrow { width: 44px; height: 44px; }
.idea-sections { display: grid; gap: 10px; }
.idea-section-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 16px; }
.idea-section-head h3 { font-size: 1.22rem; }
.idea-section-head small { margin-left: 5px; padding: 2px 7px; border-radius: 20px; background: #f1eafa; color: var(--sub); font-size: .75rem; letter-spacing: 0; }
.idea-section .item-card { border-top: 1px solid var(--line); }
.list-placeholder { padding: 0 16px 13px; color: var(--sub); font-size: .87rem; }
.item-body { min-width: 0; flex: 1; }
.item-icon { width: 37px; height: 37px; flex: none; border-radius: 11px; display: inline-grid; place-items: center; font-size: 1.03rem; background: #f1eafa; }
.date .item-icon { background: #ffe1ec; }
.activity .item-icon { background: #e9f6cc; }
.trip .item-icon { background: #eee5ff; }
.place .item-icon { background: #ffe6df; color: #972e55; font-weight: 900; }
.is-done.place .item-icon { background: #e9f6cc; color: #2b5c24; }
.item-meta { display: block; color: var(--sub); font-size: .76rem; font-weight: 750; margin-bottom: 3px; }
.item-when, .item-notes { font-size: .88rem; color: var(--sub); margin-top: 6px; overflow-wrap: anywhere; }
.item-notes { white-space: pre-wrap; }
.item-action { display: inline-flex; align-items: center; min-height: 39px; gap: 4px; color: var(--deep); font-size: .82rem; font-weight: 750; }
.item-arrow { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; color: var(--deep); background: #f7f1fe; }
.item-arrow:hover { background: #e9ddfe; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.filters a { display: flex; align-items: center; min-height: 42px; padding: 5px 11px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 750; color: var(--sub); font-size: .86rem; }
.filters a[aria-current], .filters a:hover { background: var(--deep); color: #fff; border-color: var(--deep); }
.inspiration-card { display: grid; justify-items: start; gap: 8px; }
.inspiration-card p { color: var(--sub); font-size: .88rem; }
.inspiration-card form { align-self: end; }
.inspiration-card button { min-height: 44px; }
.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--deep); font-weight: 750; }
.form-panel { max-width: 650px; margin: 4px auto 0; padding: 25px; }
.form-panel h1 { font-size: clamp(1.7rem, 5vw, 2.65rem); margin: 6px 0 15px; }
.entry-form, #unlock-form { display: grid; gap: 13px; }
.entry-form label, #unlock-form label { font-weight: 750; }
input:not([type=hidden],[type=checkbox]), select, textarea { display: block; width: 100%; max-width: 100%; min-width: 0; border: 1px solid #cdc1e0; border-radius: 11px; color: var(--ink); background: #fcfaff; padding: 9px 10px; min-height: 46px; font-size: 1rem; }
.entry-form label > :is(input:not([type=checkbox]), textarea, select) { margin-top: 4px; }
textarea { resize: vertical; }
.field-grid { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-hint { font-size: .82rem; color: var(--sub); margin-top: -6px; }
.check-row { display: flex; align-items: center; min-height: 44px; gap: 9px; }
.check-row input { width: 20px; height: 20px; accent-color: var(--purple); }
.form-actions { display: flex; align-items: center; gap: 17px; }
.delete-form { border-top: 1px solid var(--line); margin-top: 21px; padding-top: 8px; }
.danger { color: #9a204a; min-height: 44px; }
.form-error { border-radius: 11px; background: #ffebf0; color: #8b1740; padding: 8px 11px; font-size: .9rem; }
.entry { min-height: 100svh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at top right, #e6dcff 0%, transparent 57%), var(--bg); }
.entry-card { width: min(100%, 765px); overflow: hidden; display: grid; grid-template-columns: 1fr 1.25fr; border-radius: 26px; border: 1px solid var(--line); background: #fff; box-shadow: 0 20px 60px #30225815; }
.entry-art { position: relative; min-height: 305px; display: grid; place-items: center; overflow: hidden; background: var(--purple); }
.entry-star { color: var(--lime); font-size: clamp(5rem, 16vw, 10rem); line-height: 1; z-index: 1; transform: rotate(-12deg); }
.entry-satellite, .entry-dot { position: absolute; color: #ffb8d0; }
.entry-satellite { font-size: 2.3rem; bottom: 14%; right: 16%; }
.entry-dot { background: #ffb8d0; border-radius: 50%; top: 21%; left: 24%; width: 11px; height: 11px; }
.orbit { position: absolute; width: 74%; height: 40%; border: 1px solid #dbd1ff99; border-radius: 50%; }
.orbit-one { transform: rotate(35deg); }
.orbit-two { transform: rotate(-35deg); }
.entry-body { display: grid; align-content: center; gap: 12px; padding: clamp(22px, 4.5vw, 45px); }
.entry-body .eyebrow { color: var(--deep); }
.entry-body h1 { font-size: clamp(2rem, 5.7vw, 3.75rem); }
.title-period { color: #7950d0; }
.entry-body p { color: var(--sub); }
#unlock-form { gap: 7px; }
#unlock-form input { letter-spacing: .22em; }
#unlock-form .button { justify-self: start; min-width: 120px; margin-top: 4px; }
#unlock-form .form-error { color: #8b1740; }
@media (max-width: 820px) {
  .top-inner, .container { width: calc(100% - 32px); }
  .top-inner { gap: 9px; }
  .calendar-layout { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .top-inner { min-height: 62px; }
  .nav { position: fixed; z-index: 3; bottom: max(8px, env(safe-area-inset-bottom)); left: 12px; right: 12px; justify-content: space-around; background: #f1ecfa; border: 1px solid #d8cce9; box-shadow: 0 4px 25px #22153a30; }
  .nav a { flex: 1; }
  .who { font-size: .75rem; }
  .account { gap: 6px; }
  .account .text-button { font-size: .82rem; }
  .container { width: calc(100% - 24px); margin-top: 13px; margin-bottom: 88px; }
  .hero { margin-bottom: 13px; border-radius: 22px; padding: 22px 15px; min-height: 208px; }
  .hero h1 { font-size: clamp(2.1rem, 9.7vw, 3.1rem); }
  .hero-copy { max-width: 73%; }
  .hero.has-cover { grid-template-columns: 1fr; gap: 17px; }
  .cover-frame { width: min(100%, 370px); margin: 0; justify-self: start; transform: none; }
  .hero p { font-size: .93rem; margin-bottom: 13px; }
  .hero-art { width: 130px; height: 139px; right: -6px; }
  .art-sticker { inset: 35px 17% 36px 30%; border-radius: 11px; box-shadow: 4px 7px 0 #29165854; }
  .art-sticker b { font-size: 2.35rem; }
  .art-sticker span { font-size: .39rem; }
  .art-sticker i { display: none; }
  .art-ray, .art-sun { font-size: 1.3rem; }
  .ray-two { top: 24px; right: 15%; }
  .calendar-layout { gap: 13px; }
  .calendar-panel, .day-panel { padding: 12px; }
  .panel-head { gap: 6px; margin-bottom: 9px; }
  .month-controls .icon-button { min-width: 34px; }
  .month { border-spacing: 2px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .form-panel { padding: 16px; }
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry { padding: 15px; }
  .entry-card { grid-template-columns: 1fr; max-width: 420px; }
  .entry-art { min-height: 150px; }
  .entry-star { font-size: 6rem; }
}
