:root {
  --ink: #452b40; --muted: #6b5666; --canvas: #fff9f4; --surface: #fff;
  --rose: #b94564; --rose-soft: #fce8e8; --lilac: #745b86; --lilac-soft: #f0eaf5;
  --sage: #66734e; --sage-soft: #edf0e6; --amber: #9b5c12; --border: #e9dcd5;
  --shadow: 0 8px 24px rgba(69,43,64,.08); --radius: 18px; --display: Georgia, serif;
  --body: "Nunito Sans", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.45 var(--body); overscroll-behavior: contain; }
button, select { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 5; padding: 10px 14px; color: #fff; background: var(--ink); border-radius: 10px; }
.skip-link:focus { top: 12px; }
.app-shell { max-width: 1120px; min-height: 100vh; margin: auto; padding: 0 20px 104px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 0 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 400 21px/17px var(--display); }
.brand strong, .brand em { display: block; font-style: normal; }
.brand em { color: var(--rose); font-size: 15px; margin-left: 20px; }
.brand-mark { display: grid; width: 39px; height: 39px; place-items: center; color: #fff; background: var(--rose); border-radius: 15px 15px 15px 5px; font: 23px var(--display); }
.avatar { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; color: var(--ink); background: var(--surface-lilac, #f0eaf5); font-weight: 700; }
.demo-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 4px 0 20px; padding: 8px 12px; color: var(--muted); background: #fff5ed; border: 1px dashed #ddc9bc; border-radius: 12px; font-size: 13px; }
.demo-bar label { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
select { min-height: 36px; border: 1px solid var(--border); border-radius: 9px; color: var(--ink); background: var(--surface); }
.view { display: none; animation: settle .22s ease; }
.view.active { display: block; }
@keyframes settle { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.eyebrow { margin: 0 0 5px; color: var(--lilac); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font: 400 clamp(31px, 7vw, 43px)/1.08 var(--display); letter-spacing: -.025em; }
h2 { margin-bottom: 12px; font: 400 25px/1.15 var(--display); }
h3 { margin-bottom: 5px; font-size: 16px; }
.subtitle { margin-bottom: 24px; color: var(--muted); }
.hero { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow); }
.hero-lina { background: linear-gradient(140deg, #fff 55%, var(--lilac-soft)); }
.hero-parent { background: linear-gradient(140deg, #fff 55%, var(--sage-soft)); }
.pill, .status { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pill-lilac { color: #4e3d5b; background: var(--lilac-soft); }.pill-sage { color: #425031; background: var(--sage-soft); }.pill-rose { color: #7b2740; background: var(--rose-soft); }.pill-amber { color: #70400b; background: #fff1dc; }
.section { margin-top: 28px; }.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }.section-head a { color: var(--rose); font-size: 14px; font-weight: 800; }
.grid { display: grid; gap: 14px; }.card { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 3px 12px rgba(69,43,64,.04); }
.mission { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; }.mission-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 15px; background: var(--lilac-soft); font-size: 21px; }.mission.done .mission-icon { background: var(--sage-soft); }.mission p, .task-meta { margin: 0; color: var(--muted); font-size: 14px; }
.mission-action, .button { min-height: 44px; padding: 10px 14px; border: 0; border-radius: 13px; color: #fff; background: var(--rose); font-weight: 800; }.mission-action:hover, .button:hover { background: #93314e; }.mission-action:focus-visible, .button:focus-visible, .nav-item:focus-visible, .toggle:focus-visible, select:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }
.mission-action.done { color: #425031; background: var(--sage-soft); }.button.secondary { color: var(--ink); background: #fff; border: 1px solid var(--border); }.button.quiet { color: var(--lilac); background: var(--lilac-soft); }
.points-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; background: var(--rose-soft); border: 1px solid #f4d1d6; border-radius: var(--radius); }.points-number { font: 400 39px/1 var(--display); }.points-card p { margin: 3px 0 0; color: var(--muted); }.progress { height: 10px; margin-top: 10px; overflow: hidden; background: #f3cfd5; border-radius: 99px; }.progress span { display: block; height: 100%; background: var(--rose); border-radius: inherit; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }.list-row:last-child { border-bottom: 0; }.list-row strong, .list-row small { display: block; }.list-row small { color: var(--muted); }.list-row time { color: var(--muted); font-size: 13px; }
.reward { position: relative; overflow: hidden; min-height: 154px; padding: 18px; background: var(--lilac-soft); border: 1px dashed #b9a8c7; border-radius: var(--radius); }.reward::after { content: "✦"; position: absolute; right: 14px; top: 10px; color: var(--lilac); font-size: 28px; }.reward.locked { color: var(--muted); background: #f8f4f0; border-color: var(--border); }.reward strong { display: block; margin-top: 8px; font-size: 19px; }.reward .button { width: 100%; margin-top: 16px; }
.agenda-day { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }.event { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }.event:last-child { border: 0; }.event time { color: var(--lilac); font-size: 13px; font-weight: 800; }.event.busy .event-title { color: var(--muted); font-style: italic; }
.agenda-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; }.agenda-tabs { margin: 0; }.period-label { color: var(--muted); font-size: 14px; font-weight: 800; white-space: nowrap; }.week-grid { display: grid; gap: 10px; }.week-day { min-height: 96px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }.week-day span, .week-day strong, .week-day small { display: block; }.week-day span { margin-bottom: 8px; color: var(--lilac); font-size: 13px; font-weight: 800; }.week-day small { margin-top: 3px; color: var(--muted); }.week-day.selected, .month-cell.selected { border-color: var(--rose); background: var(--rose-soft); }.presence-week-note { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 10px; padding: 10px 12px; color: #425031; background: var(--sage-soft); border: 1px solid #dce2d1; border-radius: 12px; }.presence-week-note span { color: var(--sage); }.presence-week-note small { color: #586545; }.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }.month-label { padding: 9px 2px; color: var(--lilac); background: var(--lilac-soft); font-size: 12px; font-weight: 800; text-align: center; }.month-cell, .month-empty { min-height: 62px; padding: 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }.month-cell:nth-child(7n), .month-empty:nth-child(7n) { border-right: 0; }.month-cell.lina-week { background: var(--sage-soft); box-shadow: inset 0 3px 0 var(--sage), inset 0 -3px 0 var(--sage); }.month-cell span, .month-cell small { display: block; }.month-cell span { font-size: 13px; font-weight: 800; }.month-cell small { margin-top: 5px; color: var(--rose); font-size: 10px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.month-cell .presence-label { color: #425031; }
.tab-strip { display: flex; gap: 8px; margin: 14px 0; overflow: auto; padding-bottom: 3px; }.filter { min-height: 38px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: #fff; white-space: nowrap; }.filter.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.task-card { display: flex; gap: 13px; align-items: flex-start; }.check { flex: 0 0 auto; width: 24px; height: 24px; margin-top: 1px; border: 2px solid var(--lilac); border-radius: 8px; background: #fff; }.check.checked { display: grid; place-items: center; color: #fff; background: var(--sage); border-color: var(--sage); }.check.checked::after { content: "✓"; font-weight: 800; }.task-card .status { margin-top: 7px; }.task-card .button { margin-left: auto; }
.presence { padding: 18px; background: var(--sage-soft); border: 1px solid #dce2d1; border-radius: var(--radius); }.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }.toggle { width: 54px; height: 32px; padding: 3px; border: 0; border-radius: 99px; background: #b6bda8; }.toggle span { display: block; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .22s ease; }.toggle[aria-pressed="true"] { background: var(--sage); }.toggle[aria-pressed="true"] span { transform: translateX(22px); }
.bottom-nav { position: fixed; z-index: 2; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); max-width: 1120px; margin: auto; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,249,244,.96); border-top: 1px solid var(--border); backdrop-filter: blur(8px); }.nav-item { display: grid; min-height: 56px; place-items: center; gap: 1px; border: 0; border-radius: 12px; color: var(--muted); background: transparent; font-size: 11px; }.nav-item > span:first-child { font-size: 19px; }.nav-item.active { color: var(--rose); background: var(--rose-soft); font-weight: 800; }
.toast { position: fixed; z-index: 6; bottom: 90px; left: 50%; max-width: calc(100% - 32px); padding: 11px 15px; transform: translate(-50%, 20px); border-radius: 12px; color: #fff; background: var(--ink); opacity: 0; pointer-events: none; transition: .2s ease; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }.quick-capture, .weekly-review, .choice-card { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }.quick-capture { background: #fff5ed; border-style: dashed; }.quick-capture h2, .weekly-review h2, .choice-card h2 { margin-bottom: 5px; }.quick-capture p, .weekly-review p, .choice-card p { color: var(--muted); }.quick-row { display: flex; gap: 9px; }.quick-row input { min-width: 0; flex: 1; }.text-button { min-height: 40px; padding: 7px 4px; border: 0; color: var(--rose); background: transparent; font-weight: 800; text-align: left; }.button-group { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }.chips { display: flex; flex-wrap: wrap; gap: 7px; }.choice-list { display: grid; gap: 8px; }.choice-option { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; min-height: 54px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; color: var(--ink); background: #fff; text-align: left; }.choice-option > span { display: grid; width: 24px; height: 24px; place-items: center; color: var(--lilac); border-radius: 50%; background: var(--lilac-soft); font-weight: 800; }.choice-option small { color: var(--muted); }.choice-option.selected { border-color: var(--sage); background: var(--sage-soft); }.choice-option.selected > span { color: #fff; background: var(--sage); }.weekly-review { background: var(--rose-soft); border-color: #f4d1d6; }.review-line, .history-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(69,43,64,.12); }.review-line strong, .history-line strong { white-space: nowrap; }.muted-line { color: var(--muted); }.review-note, .form-note { font-size: 13px; }.private-reward > div:first-child strong, .private-reward > div:first-child small { display: block; }.private-reward > div:last-child { display: grid; justify-items: end; gap: 6px; }.ledger-rose { color: var(--rose); }.ledger-sage { color: var(--sage); }.ledger-lilac { color: var(--lilac); }.event { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; }.event > span, .event small { display: block; }.period-nav { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }.icon-button { display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 11px; color: var(--ink); background: #fff; font-size: 23px; }.sheet-backdrop { position: fixed; z-index: 20; inset: 0; background: rgba(69,43,64,.35); }.sheet { position: fixed; z-index: 21; right: 0; bottom: 0; left: 0; max-height: min(82vh, 720px); overflow: auto; padding: 20px; background: var(--canvas); border-radius: 24px 24px 0 0; box-shadow: 0 -12px 35px rgba(69,43,64,.18); }.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }.sheet-head h2 { margin: 0; } form { display: grid; gap: 14px; } form label { display: grid; gap: 6px; color: var(--ink); font-size: 14px; font-weight: 800; } input, textarea, select { width: 100%; min-height: 44px; padding: 10px 11px; border: 1px solid var(--border); border-radius: 11px; color: var(--ink); background: #fff; } textarea { min-height: 82px; resize: vertical; }.form-grid { display: grid; gap: 12px; }.check-label { display: flex; align-items: center; gap: 9px; }.check-label input { width: 20px; min-height: 20px; }.sheet .form-note { margin: 0; color: var(--muted); }
.mood-accordion { display: grid; gap: 8px; margin-top: 14px; }.mood-accordion h3 { margin: 0; }.mood-option { overflow: hidden; border: 1px solid #edcdd4; border-radius: 12px; background: #fffaf8; }.mood-option summary { min-height: 44px; padding: 11px 12px; cursor: pointer; font-weight: 800; }.mood-option p { margin: 0; padding: 0 12px 4px; }.mood-option .text-button { margin: 0 12px 6px; }.mood-parent { margin-top: 14px; padding: 12px; border: 1px solid #edcdd4; border-radius: 12px; background: #fffaf8; }.mood-parent strong { display: block; }.mood-parent .button { margin-top: 5px; }
@media (min-width: 680px) { .app-shell { padding-right: 32px; padding-left: 32px; }.grid.two { grid-template-columns: repeat(2, 1fr); }.grid.three { grid-template-columns: repeat(3, 1fr); }.grid.four { grid-template-columns: repeat(4, 1fr); }.week-grid { grid-template-columns: repeat(7, 1fr); }.week-day { min-height: 142px; }.form-grid { grid-template-columns: repeat(2, 1fr); }.sheet { right: 50%; left: auto; width: min(560px, calc(100% - 48px)); transform: translateX(50%); border-radius: 24px 24px 0 0; }.bottom-nav { right: auto; left: 50%; width: min(680px, calc(100% - 48px)); bottom: 18px; transform: translateX(-50%); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }.app-shell { padding-bottom: 120px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
