/* Lamplight — warm paper by day, a lit lamp by night. */
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces.woff2) format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-ext.woff2) format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-italic.woff2) format("woff2"); font-weight: 300 600; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-italic-ext.woff2) format("woff2"); font-weight: 300 600; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree.woff2) format("woff2"); font-weight: 300 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-ext.woff2) format("woff2"); font-weight: 300 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #F7EADA;
  --paper-deep: #F0DEC8;
  --card: #FCF5EB;
  --line: #E6D2BA;
  --ink: #3A2A22;
  --ink-2: #6B5547;
  --muted: #8E7868;
  --clay: #A9532F;
  --clay-soft: #E9C3AE;
  --sage: #6F7F5C;
  --sage-soft: #DCE0CC;
  --plum: #7A5A72;
  --ochre: #C98E2E;
  --lamp: #E8A64C;
  --on-clay: #FFF7EE;
  --shadow: 0 1px 0 rgba(90, 60, 40, .05), 0 8px 24px -12px rgba(90, 60, 40, .22);
  --r-s: 12px; --r-m: 18px; --r-l: 26px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", -apple-system, "Segoe UI", sans-serif;
  --top: env(safe-area-inset-top, 0px);
  --bottom: env(safe-area-inset-bottom, 0px);
  --nav-h: 64px;
  color-scheme: light;
}
:root[data-theme="night"] {
  --paper: #1E1814;
  --paper-deep: #261E19;
  --card: #2A211B;
  --line: #3B2F27;
  --ink: #F3E5D2;
  --ink-2: #CDB9A3;
  --muted: #9C8775;
  --clay: #E2925F;
  --clay-soft: #4A3125;
  --sage: #A9B78F;
  --sage-soft: #2F3427;
  --plum: #C6A2BA;
  --on-clay: #241A14;
  --shadow: 0 0 0 1px rgba(255, 220, 170, .03), 0 10px 30px -14px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  transition: background-color .6s ease, color .6s ease;
}
/* paper grain, like the illustrations */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="night"] body::before { opacity: .35; }

#app { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; min-height: 100%; }
@media (min-width: 560px) {
  #app { box-shadow: 0 0 0 1px var(--line), 0 30px 80px -40px rgba(60,40,20,.35); background: var(--paper); min-height: 100vh; }
  body { background: var(--paper-deep); }
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin: 0; font-variation-settings: "SOFT" 100, "WONK" 0; text-wrap: balance; }
h1 { font-size: 34px; line-height: 1.1; }
h2 { font-size: 25px; line-height: 1.18; }
h3 { font-size: 19px; line-height: 1.25; }
em { font-style: italic; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 10px; }
.serif { font-family: var(--serif); font-variation-settings: "SOFT" 100; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; letter-spacing: .02em; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- screens ---------- */
.screen { min-height: 100vh; min-height: 100dvh; padding: calc(var(--top) + 8px) 22px calc(var(--nav-h) + var(--bottom) + 28px); animation: enter .42s cubic-bezier(.2,.7,.2,1) both; }
.screen.has-fab { padding-bottom: calc(var(--nav-h) + var(--bottom) + 100px); }
.screen.bare { padding-bottom: calc(var(--bottom) + 28px); }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin: 0 -8px 6px; }
.topbar .title { font-family: var(--serif); font-size: 18px; font-variation-settings: "SOFT" 100; flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); transition: background .2s; flex: none; }
.icon-btn:active { background: var(--paper-deep); }
.icon-btn svg { width: 22px; height: 22px; }
.exit-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border-radius: 99px; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); background: var(--card); }
.exit-btn svg { width: 16px; height: 16px; }

/* ---------- buttons ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; border-radius: 99px; font-weight: 600; font-size: 16.5px; letter-spacing: .005em; transition: transform .15s ease, background .2s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--clay); color: var(--on-clay); box-shadow: 0 10px 24px -12px rgba(169,83,47,.7); }
.btn-ghost { color: var(--ink-2); min-height: 48px; font-weight: 500; }
.btn-soft { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn svg { width: 20px; height: 20px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: all .2s; white-space: nowrap; }
.pill.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill svg { width: 16px; height: 16px; }
.link { color: var(--clay); font-weight: 600; font-size: 15px; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); }
.pad { padding: 20px; }
.stack > * + * { margin-top: var(--gap, 14px); }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.section { margin-top: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }

/* illustrations — on paper they sit straight on the page; at night they become lit windows */
/* art has a transparent background: by day it sits on the paper; by night each one becomes a warm lit window */
.art, .thumb { display: block; user-select: none; -webkit-user-drag: none; }
.art { width: 100%; height: auto; }
.thumb { background: var(--paper-deep); object-fit: contain; }
:root[data-theme="night"] .art { background: #EBDCC6; border-radius: 28px; filter: brightness(.92); box-shadow: 0 0 70px -12px rgba(232,166,76,.35); }
:root[data-theme="night"] .thumb { background: #EBDCC6; filter: brightness(.92); }
.art-frame { border-radius: var(--r-l); overflow: hidden; }

/* ---------- onboarding ---------- */
.ob { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: calc(var(--top) + 12px) 26px calc(var(--bottom) + 22px); animation: enter .5s cubic-bezier(.2,.7,.2,1) both; }
.ob-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line); transition: all .35s; }
.dots i.on { width: 22px; background: var(--clay); }
.ob-body { flex: 1; display: flex; flex-direction: column; }
.ob-foot { padding-top: 18px; display: grid; gap: 6px; }
.ob h1 { margin-top: 8px; }
.ob .lead { font-size: 17.5px; color: var(--ink-2); margin-top: 12px; line-height: 1.55; }
.hero-art { width: min(78%, 330px); margin: 8px auto 4px; }
.welcome-mark { font-family: var(--serif); font-size: 52px; line-height: 1; letter-spacing: -.02em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.welcome-mark em { color: var(--clay); }

.promise { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.promise:last-child { border-bottom: 1px solid var(--line); }
.promise .glyph { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--sage-soft); color: var(--sage); }
.promise .glyph svg { width: 20px; height: 20px; }
.promise b { font-weight: 600; display: block; margin-bottom: 2px; }
.promise p { color: var(--ink-2); font-size: 15px; }

.stage-list { display: grid; gap: 10px; margin-top: 22px; }
.stage { display: grid; grid-template-columns: 64px 1fr 26px; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 22px; background: var(--card); border: 1.5px solid var(--line); text-align: left; transition: border-color .2s, background .2s, transform .15s; }
.stage:active { transform: scale(.99); }
.stage img { width: 64px; height: 64px; border-radius: 16px; }
.stage b { display: block; font-family: var(--serif); font-weight: 400; font-size: 18px; font-variation-settings: "SOFT" 100; }
.stage span { display: block; font-size: 14px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.stage .tick { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; transition: all .2s; }
.stage.on { border-color: var(--clay); background: color-mix(in oklab, var(--card) 85%, var(--clay)); }
.stage.on .tick { background: var(--clay); border-color: var(--clay); color: var(--on-clay); }
.tick svg { width: 14px; height: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-group { margin-top: 22px; }
.sub-group h3 { font-size: 17px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.sub-group h3 img { width: 32px; height: 32px; border-radius: 10px; }

.toggle-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); text-align: left; width: 100%; }
.toggle-row:last-child { border-bottom: 1px solid var(--line); }
.toggle-row b { display: block; font-weight: 600; }
.toggle-row span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.switch { width: 50px; height: 30px; border-radius: 99px; background: var(--line); position: relative; flex: none; transition: background .25s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .25s cubic-bezier(.3,.7,.3,1.2); }
.switch.on { background: var(--sage); }
.switch.on::after { transform: translateX(20px); }

/* pebble avatars */
.pebble { display: inline-block; flex: none; width: var(--s, 40px); height: calc(var(--s, 40px) * .86); border-radius: 58% 42% 52% 48% / 55% 50% 50% 45%; background: var(--c); position: relative; box-shadow: inset -3px -4px 0 rgba(0,0,0,.08), inset 3px 3px 0 rgba(255,255,255,.18); }
.pebble.anon { background: transparent; border: 1.5px dashed var(--muted); box-shadow: none; }
.name-card { text-align: center; padding: 34px 20px 26px; margin-top: 26px; }
.name-card .pebble { --s: 96px; animation: settle .6s cubic-bezier(.3,.7,.3,1.3) both; }
@keyframes settle { from { transform: translateY(-14px) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.name-card .the-name { font-family: var(--serif); font-size: 32px; margin-top: 18px; font-variation-settings: "SOFT" 100; animation: fade .4s both; }
.stones { display: flex; justify-content: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.stones button { padding: 4px; border-radius: 50%; border: 2px solid transparent; transition: border-color .2s; }
.stones button.on { border-color: var(--ink); }
.stones .pebble { --s: 30px; }

/* passcode */
.pin-dots { display: flex; justify-content: center; gap: 16px; margin: 30px 0 26px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink-2); transition: all .15s; }
.pin-dots i.on { background: var(--ink); border-color: var(--ink); transform: scale(1.1); }
.pin-dots.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px 26px; justify-content: center; }
.keypad button { width: 76px; height: 76px; border-radius: 50%; font-family: var(--serif); font-size: 28px; background: var(--card); border: 1px solid var(--line); transition: background .15s; }
.keypad button:active { background: var(--paper-deep); }
.keypad button.plain { background: none; border: 0; font-family: var(--sans); font-size: 14px; color: var(--ink-2); }

/* ---------- today ---------- */
.greet { margin: 6px 0 4px; }
.greet .eyebrow { margin-bottom: 8px; }
.greet h1 { font-size: 32px; }
.greet h1 em { color: var(--clay); }
.awake { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.awake i { width: 8px; height: 8px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 0 rgba(232,166,76,.6); animation: glow 2.4s infinite; }
@keyframes glow { 0% { box-shadow: 0 0 0 0 rgba(232,166,76,.55); } 70% { box-shadow: 0 0 0 10px rgba(232,166,76,0); } 100% { box-shadow: 0 0 0 0 rgba(232,166,76,0); } }

.weather { padding: 20px 18px 18px; }
.weather-q { font-family: var(--serif); font-size: 20px; font-variation-settings: "SOFT" 100; }
.weather-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 14px; }
.wx { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 8px; border-radius: 16px; font-size: 12.5px; color: var(--ink-2); transition: background .2s, transform .15s; }
.wx svg { width: 34px; height: 34px; }
.wx:active { transform: scale(.94); }
.wx.on { background: var(--paper-deep); color: var(--ink); font-weight: 600; }
.weather-reply { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 15px; color: var(--ink-2); animation: fade .5s both; display: flex; gap: 12px; align-items: center; }
.weather-reply .link { white-space: nowrap; }

.word { display: grid; grid-template-columns: 1fr 108px; align-items: center; gap: 8px; padding: 22px 16px 22px 22px; overflow: hidden; }
.word q { font-family: var(--serif); font-size: 21px; line-height: 1.3; font-style: italic; font-variation-settings: "SOFT" 100; quotes: none; display: block; margin-top: 8px; }
.word img { width: 108px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { padding: 16px 16px 14px; text-align: left; display: flex; flex-direction: column; gap: 4px; min-height: 172px; transition: transform .15s; }
.tile:active { transform: scale(.98); }
.tile img { width: 76px; margin: -4px 0 4px -4px; }
.tile b { font-family: var(--serif); font-weight: 400; font-size: 18px; font-variation-settings: "SOFT" 100; }
.tile span { font-size: 13.5px; color: var(--muted); line-height: 1.35; }

.install-card { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 14px; padding: 14px 14px 14px 14px; }
.install-card img { width: 54px; height: 54px; border-radius: 14px; }

/* ---------- posts ---------- */
.post { padding: 18px 18px 8px; }
.post + .post { margin-top: 12px; }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-head .pebble { --s: 30px; }
.who { font-weight: 600; font-size: 14.5px; }
.when { font-size: 13px; color: var(--muted); }
.post-circle { font-size: 12.5px; color: var(--sage); font-weight: 600; letter-spacing: .02em; }
.post-body { margin-top: 12px; font-size: 16.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-body.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.post-actions { display: flex; align-items: center; gap: 4px; margin: 8px -8px 0; }
.act { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px; border-radius: 99px; font-size: 14px; color: var(--ink-2); transition: background .2s, color .2s; }
.act svg { width: 20px; height: 20px; }
.act.on { color: var(--clay); }
.act.on svg .flame { fill: var(--lamp); stroke: var(--lamp); }
.act:active { background: var(--paper-deep); }
.act.pop svg { animation: pop .5s cubic-bezier(.3,.7,.3,1.6); }
@keyframes pop { 40% { transform: scale(1.35) rotate(-6deg); } }
.cw { margin-top: 12px; padding: 16px; border-radius: 16px; background: var(--paper-deep); display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; }
.cw svg { width: 22px; height: 22px; color: var(--plum); flex: none; }
.cw b { display: block; font-weight: 600; font-size: 14.5px; }
.cw span { font-size: 13.5px; color: var(--muted); }
.cw-tag { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--paper-deep); color: var(--plum); margin-top: 10px; }

.reply { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); animation: enter .4s both; }
.reply .pebble { --s: 26px; margin-top: 2px; }
.reply p { font-size: 15.5px; margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }

.composer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 14px calc(var(--bottom) + 10px); background: var(--paper); border-top: 1px solid var(--line); }
.composer-inner { max-width: 452px; margin: 0 auto; display: flex; align-items: flex-end; gap: 10px; }
.composer textarea { flex: 1; resize: none; min-height: 46px; max-height: 140px; padding: 12px 16px; border-radius: 23px; border: 1px solid var(--line); background: var(--card); outline: none; line-height: 1.4; font-size: 16px; }
.composer textarea:focus { border-color: var(--clay); }
.send { width: 46px; height: 46px; border-radius: 50%; background: var(--clay); color: var(--on-clay); display: grid; place-items: center; flex: none; transition: opacity .2s, transform .15s; }
.send:active { transform: scale(.92); }
.send[disabled] { opacity: .35; }
.send svg { width: 20px; height: 20px; }

/* ---------- circles ---------- */
.circle-row { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 12px 14px 12px 12px; text-align: left; width: 100%; transition: transform .15s; }
.circle-row + .circle-row { margin-top: 10px; }
.circle-row:active { transform: scale(.99); }
.circle-row img { width: 76px; height: 76px; border-radius: 18px; }
.circle-row b { font-family: var(--serif); font-weight: 400; font-size: 19px; display: block; font-variation-settings: "SOFT" 100; }
.circle-row span { font-size: 13.5px; color: var(--muted); display: block; margin-top: 3px; line-height: 1.35; }
.joined-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--sage); font-weight: 600; margin-top: 6px; }
.joined-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }

.circle-hero { text-align: center; padding: 0 8px; }
.circle-hero img { width: 200px; margin: -4px auto 0; }
.circle-hero h1 { font-size: 30px; margin-top: 6px; }
.circle-hero p { color: var(--ink-2); margin-top: 10px; font-size: 15.5px; }
.circle-meta { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.rules { padding: 16px 18px; margin-top: 22px; }
.rules ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.rules li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.rules li svg { width: 18px; height: 18px; color: var(--sage); margin-top: 2px; }

.fab { position: fixed; z-index: 15; right: max(20px, calc(50% - 240px + 20px)); bottom: calc(var(--nav-h) + var(--bottom) + 18px); height: 56px; padding: 0 22px 0 18px; border-radius: 99px; background: var(--clay); color: var(--on-clay); display: flex; align-items: center; gap: 8px; font-weight: 600; box-shadow: 0 14px 30px -12px rgba(120,60,30,.65); transition: transform .15s; animation: enter .5s .15s both; }
.fab:active { transform: scale(.95); }
.fab svg { width: 20px; height: 20px; }

/* ---------- compose ---------- */
.compose-area { width: 100%; min-height: 220px; border: 0; outline: none; background: transparent; resize: none; font-family: var(--serif); font-size: 21px; line-height: 1.45; font-variation-settings: "SOFT" 100; padding: 0; margin-top: 10px; }
.compose-area::placeholder { color: var(--muted); opacity: .8; }
.field { width: 100%; height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); outline: none; font-size: 16px; }
.field:focus { border-color: var(--clay); }
.hscroll { display: flex; gap: 8px; overflow-x: auto; margin: 0 -22px; padding: 2px 22px 6px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }

/* ---------- journal ---------- */
.journal-hero { display: grid; grid-template-columns: 1fr 120px; align-items: end; gap: 6px; }
.journal-hero img { width: 120px; }
.private-note { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sage); font-weight: 600; margin-top: 10px; }
.private-note svg { width: 14px; height: 14px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 16px; text-align: center; }
.week div { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.week i { width: 30px; height: 30px; border-radius: 50%; background: var(--paper-deep); display: grid; place-items: center; }
.week i svg { width: 22px; height: 22px; }
.week .today-d { color: var(--ink); font-weight: 600; }
.entry { padding: 18px; display: block; width: 100%; text-align: left; transition: transform .15s; }
.entry + .entry { margin-top: 10px; }
.entry:active { transform: scale(.99); }
.entry .prompt { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 15px; margin-bottom: 6px; font-variation-settings: "SOFT" 100; }
.entry .txt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.entry .meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.entry .meta svg { width: 18px; height: 18px; }
.prompt-card { padding: 18px 18px 14px; background: var(--sage-soft); border-color: transparent; box-shadow: none; }
.prompt-card q { display: block; quotes: none; font-family: var(--serif); font-size: 20px; font-style: italic; line-height: 1.35; margin-top: 6px; font-variation-settings: "SOFT" 100; }
.empty { text-align: center; padding: 10px 20px 0; }
.empty img { width: 180px; margin: 0 auto; }
.empty p { color: var(--ink-2); margin-top: 6px; }

/* ---------- breathe ---------- */
.breathe-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; flex: 1; padding: 20px 0; }
.orb { width: 240px; height: 240px; border-radius: 50%; position: relative; display: grid; place-items: center; margin: 34px 0 30px; }
.orb::before, .orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 45%, color-mix(in oklab, var(--lamp) 55%, var(--paper)), color-mix(in oklab, var(--clay-soft) 70%, var(--paper)) 70%); transform: scale(var(--k, .55)); transition: transform var(--t, 4s) cubic-bezier(.45,.05,.55,.95); }
.orb::after { background: none; border: 1.5px solid var(--clay-soft); transform: scale(1); }
.orb span { position: relative; font-family: var(--serif); font-size: 26px; font-variation-settings: "SOFT" 100; color: var(--ink); }
.breathe-count { font-size: 14px; color: var(--muted); }

/* ---------- you ---------- */
.me { display: flex; align-items: center; gap: 16px; padding: 20px; }
.me .pebble { --s: 64px; }
.me h2 { font-size: 24px; }
.list { overflow: hidden; }
.li { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 12px 18px; text-align: left; border-top: 1px solid var(--line); transition: background .2s; }
.li:first-child { border-top: 0; }
.li:active { background: var(--paper-deep); }
.li > svg { width: 22px; height: 22px; color: var(--ink-2); flex: none; }
.li .grow b { font-weight: 500; display: block; }
.li .grow span { display: block; font-size: 13.5px; color: var(--muted); }
.li .chev { width: 18px; height: 18px; color: var(--muted); }
.li.danger { color: #A33A2A; }
:root[data-theme="night"] .li.danger { color: #F08A75; }
.li.danger > svg { color: inherit; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 14px; background: var(--paper-deep); gap: 4px; }
.seg button { height: 38px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: all .2s; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.help-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 16px 18px; border-top: 1px solid var(--line); }
.help-item:first-child { border-top: 0; }
.help-item .where { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.help-item b { display: block; font-weight: 600; margin-top: 2px; }
.help-item p { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.call { height: 42px; padding: 0 16px; border-radius: 99px; background: var(--sage); color: #fff; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; text-decoration: none; }
:root[data-theme="night"] .call { color: #1E1814; }
.call svg { width: 16px; height: 16px; }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: var(--paper); border-top: 1px solid var(--line); padding-bottom: var(--bottom); transition: background-color .6s; }
.nav-inner { max-width: 480px; margin: 0 auto; height: var(--nav-h); display: grid; grid-template-columns: repeat(4, 1fr); }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); transition: color .2s; position: relative; }
.nav a svg { width: 24px; height: 24px; }
.nav a.on { color: var(--clay); }
.nav a.on::before { content: ""; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: var(--clay); }
.badge { position: absolute; top: 9px; left: calc(50% + 6px); width: 8px; height: 8px; border-radius: 50%; background: var(--clay); border: 2px solid var(--paper); }

/* ---------- sheet + toast ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(40, 25, 15, .35); animation: fade .25s both; }
.sheet { position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; background: var(--paper); border-radius: 28px 28px 0 0; padding: 10px 22px calc(var(--bottom) + 22px); animation: up .35s cubic-bezier(.2,.8,.2,1) both; max-height: 88vh; overflow-y: auto; }
.sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 16px; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.sheet h2 { margin-bottom: 8px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; font-size: 15.5px; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.steps svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--clay); }
#toast { position: fixed; z-index: 60; left: 50%; top: calc(var(--top) + 14px); transform: translate(-50%, -140%); max-width: min(92vw, 420px); padding: 12px 18px; border-radius: 18px; background: var(--ink); color: var(--paper); font-size: 14.5px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); transition: transform .45s cubic-bezier(.2,.8,.2,1); display: flex; gap: 10px; align-items: center; }
#toast.show { transform: translate(-50%, 0); }
#toast .pebble { --s: 22px; }

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