:root{color-scheme:light;--ink:#321e30;--muted:#695661;--plum:#392337;--dark:#251a26;--rose:#f0dada;--cream:#f8f3ef;--white:#fffdfa;--line:#eadfdf;--accent:#713a59;--sidebar:226px;font:16px system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--cream);min-height:100dvh}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #bc6f93;outline-offset:3px}button:disabled{cursor:default;opacity:.65}.symbols{position:absolute;width:0;height:0}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.sidebar{position:fixed;z-index:2;left:0;top:0;bottom:0;width:var(--sidebar);display:flex;flex-direction:column;padding:30px 17px 23px;background:var(--dark);color:#fff6f8}.brand{border:0;background:none;color:inherit;display:flex;gap:13px;align-items:center;text-align:left;padding:4px 12px 34px;font:29px/.87 Georgia,serif}.brand small{font-size:18px;color:#e0b8cb;white-space:nowrap}.brand-icon{background:#4b3048;width:44px;height:45px;border-radius:17px;display:grid;place-items:center;color:#f2cbd9}.brand-icon svg{width:23px;height:23px}.nav,.side-bottom{display:grid;gap:9px}.nav button,.side-bottom button{display:flex;align-items:center;gap:12px;text-align:left;border:0;border-radius:12px;background:none;color:#e8d4df;padding:12px;font-size:.91rem;white-space:nowrap}.nav button:hover,.side-bottom button:hover{background:#402c3f}.nav button.active{background:#553951;color:#fff}.side-bottom{margin-top:auto;border-top:1px solid #4b3949;padding-top:14px}
main{margin-left:var(--sidebar)}.top{height:69px;padding:0 clamp(22px,5vw,64px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;background:#fffaf6}.top-actions{display:flex;gap:9px;align-items:center}.demo,.tag{display:inline-flex;align-items:center;border-radius:999px;background:#f0e4eb;color:#644059;padding:5px 10px;font-size:.78rem;font-weight:650}.top-letter,.top-plus{display:none!important}
.page{max-width:1184px;margin:auto;padding:32px clamp(22px,4vw,55px) 60px}.hero{position:relative;min-height:325px;overflow:hidden;border-radius:28px;background:#392538;color:#fff8f3;display:flex;align-items:center;isolation:isolate}.hero img{position:absolute;z-index:-2;right:0;top:0;width:59%;height:100%;object-fit:cover;object-position:center 56%}.hero:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#392538 26%,#392538 42%,rgba(57,37,56,.72) 53%,rgba(57,37,56,0) 76%)}.hero-content{padding:39px 42px;max-width:530px}.hero .eyebrow{color:#f3c9d6}.eyebrow{font-size:.76rem;letter-spacing:.13em;text-transform:uppercase;font-weight:740;color:#814a66;margin:0 0 12px}h1,h2,h3,p{margin-top:0}h1{font:normal clamp(2.45rem,5vw,4rem)/.99 Georgia,serif;margin-bottom:15px;letter-spacing:-.045em}.hero p:not(.eyebrow){max-width:29ch;color:#f1e2e9;margin-bottom:23px}p{line-height:1.5}.section{margin-top:30px}.section-header{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px}.section-header h2,h2{font:normal 1.8rem/1.12 Georgia,serif;margin-bottom:0}.page-title p{max-width:50ch;color:var(--muted)}.page-title{margin-bottom:26px}.page-title h1{margin-bottom:10px}
.feature-grid{display:grid;grid-template-columns:1.14fr 1fr;gap:16px}.panel{border:1px solid var(--line);border-radius:20px;background:var(--white);padding:21px}.feature{display:flex;align-items:flex-start;gap:15px}.feature h3,.entry h3{margin:0 0 6px;font-size:1.04rem}.feature p,.entry p{color:var(--muted);margin:0 0 10px}.badge{width:39px;height:39px;border-radius:13px;display:grid;place-items:center;background:#f2e3e9;color:#783d5b;flex-shrink:0}.feature:nth-child(2) .badge{background:#f3e6d7;color:#775433}.feature h3+p{margin-bottom:13px}
.primary,.secondary,.text-button,.icon-button,.chip{border:0;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;font-size:.89rem;font-weight:670}.primary{background:#562d49;color:white;padding:9px 14px}.primary:hover{background:#6d3d5e}.hero .primary{background:#f3d6e0;color:#42263b}.hero .primary:hover{background:#ffebf2}.secondary{background:#f3e8ed;color:#542c48;padding:9px 14px}.secondary:hover,.chip:hover{background:#ead6e2}.text-button{color:#672f53;background:none;padding:3px 0;min-height:28px;text-align:left}.text-button:hover{text-decoration:underline}.icon-button{height:39px;width:39px;background:#f3e8ed;color:#542c48;padding:0}.chip{padding:9px 13px;background:#f1e6eb;color:#5d3c50}.chip.selected{background:#562d49;color:#fff}.chip-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.stack{display:grid;gap:12px}.entry{display:flex;gap:15px;align-items:flex-start}.entry div{flex:1;min-width:0}.entry small{display:block;color:var(--muted);margin:0 0 5px}.entry h3,.entry p,.response{white-space:pre-wrap;overflow-wrap:anywhere}.entry img{display:block;width:min(100%,450px);max-height:300px;object-fit:cover;border-radius:14px;margin-top:12px}.entry .response{font-size:1rem}.empty{color:var(--muted);margin:0}.question{max-width:735px;min-height:250px;background:#f1dddd;border-color:#ead0d7;padding:clamp(23px,5vw,44px);margin-bottom:16px}.question h2{font-size:clamp(1.85rem,5vw,3rem);margin:12px 0 21px;max-width:30ch}.question-actions,.actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}.next-plan{margin-top:10px}.done{color:#66536b}.line-item{display:flex;align-items:flex-start;gap:14px;padding:13px 0;border-bottom:1px solid var(--line)}.line-item:last-child{border:0}.line-item input{width:20px;height:20px;accent-color:#713a59;flex:none}.line-item>div{flex:1;overflow-wrap:anywhere}.line-item small{display:block;color:var(--muted);margin-top:5px}.line-item .cross{text-decoration:line-through;color:var(--muted)}.pricing{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.pricing h3{margin-bottom:8px}.pricing ul{padding-left:19px;line-height:1.55;margin-bottom:0}.price{font:1.6rem Georgia,serif}.note{color:var(--muted);font-size:.875rem}
dialog{width:min(645px,calc(100% - 28px));max-height:calc(100dvh - 34px);overflow:auto;border:1px solid var(--line);border-radius:22px;background:#fffaf7;color:var(--ink);padding:24px;box-shadow:0 20px 85px #23172340}dialog::backdrop{background:#261b28aa}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.close{font-size:1.5rem;flex-shrink:0}.letter-art{display:block;width:100%;height:170px;object-fit:cover;object-position:center 56%;border-radius:13px;margin-bottom:16px}.field{display:grid;gap:7px;margin-bottom:13px;font-size:.94rem;font-weight:650}.field input,.field textarea{width:100%;border:1px solid #d9c6d2;border-radius:10px;background:#fffdfc;color:var(--ink);padding:9px 10px}.field textarea{min-height:86px;resize:vertical}#toast{position:fixed;z-index:4;right:20px;bottom:20px;background:#392538;color:white;border-radius:12px;padding:12px 16px;max-width:calc(100% - 40px);opacity:0;pointer-events:none}#toast.show{opacity:1}
@media(max-width:850px){:root{--sidebar:180px}.hero-content{padding:30px}.feature-grid{grid-template-columns:1fr}}
@media(max-width:660px), (pointer:coarse) and (max-height:520px){main{margin:0}.sidebar{top:auto;bottom:0;width:100%;padding:6px 8px calc(6px + env(safe-area-inset-bottom));border-top:1px solid #5b4057}.brand,.side-bottom{display:none}.nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.nav button{justify-content:center;flex-direction:column;gap:3px;font-size:.74rem;padding:6px 1px}.nav button svg{width:19px;height:19px}.top{height:58px;padding:0 16px}.top-letter,.top-plus{display:inline-flex!important;width:33px;height:33px;min-height:33px}.page{padding:18px 16px 95px}.hero{min-height:420px;align-items:flex-end;border-radius:23px}.hero img{width:100%;height:76%;object-position:center 55%}.hero:after{background:linear-gradient(0deg,#392538 17%,#392538 31%,rgba(57,37,56,.75) 47%,rgba(57,37,56,0) 75%)}.hero-content{padding:25px}.hero-content p:not(.eyebrow){margin-bottom:16px}.section-header h2,.modal-head h2{font-size:1.55rem}.pricing{grid-template-columns:1fr}#toast{bottom:76px}}
:root{--ink:#302733;--muted:#716674;--cream:#f5f2f4;--white:#fffdfd;--line:#e6dfe5;--accent:#75516b;--soft:#eee6ec;--dark:#302633;--deep:#513a50;--tint:#e8d9e1;font-family:-apple-system,BlinkMacSystemFont,"Inter","Segoe UI",Roboto,Arial,sans-serif}
:root[data-theme="berry"]{--accent:#8e375c;--soft:#f6e6ed;--dark:#38232f;--deep:#70384f;--tint:#f1cada;--cream:#faf4f6;--line:#eddee4}
:root[data-theme="sage"]{--accent:#476454;--soft:#e6ede6;--dark:#26322b;--deep:#3d5446;--tint:#cedfd1;--cream:#f2f5f1;--line:#dfe7df}
h1,h2,.brand,.price,.section-header h2,.question h2{font-family:inherit;font-weight:650;letter-spacing:-.035em}
h1{font-size:clamp(2rem,4vw,3.2rem);line-height:1.08}h2,.section-header h2{font-size:1.42rem}.page-title p,.feature p{font-size:.96rem}.top{background:var(--white);height:61px}.top-actions .icon-button{width:42px;height:42px}.hero,.sidebar{background:var(--dark)}.feature:nth-child(2) .badge,.badge,.secondary,.chip,.tag,.icon-button,.brand-icon{background:var(--soft);color:var(--accent)}.nav button.active,.nav button:hover,.side-bottom button:hover,.chip.selected,.primary{background:var(--deep);color:white}.text-button,.eyebrow{color:var(--accent)}
.hero{background:var(--soft);color:var(--ink);display:grid;grid-template-columns:1fr 160px;min-height:0;padding:23px 26px;gap:24px;align-items:center;border-radius:22px}.hero img,.intro-photo{grid-column:2;grid-row:1;position:static;z-index:0;height:auto;width:100%;object-fit:contain;border-radius:15px}.hero img{max-height:200px;width:auto;max-width:100%;justify-self:end}.hero-content{grid-column:1;grid-row:1;padding:0;max-width:460px}.hero:after{display:none}.hero .eyebrow,.hero-content .eyebrow{color:var(--accent)}.hero .primary,.primary:hover{background:var(--deep);color:white}.hero p:not(.eyebrow){color:var(--muted);max-width:36ch;margin-bottom:18px}.eyebrow{letter-spacing:.07em}.panel{border-color:var(--line);border-radius:16px}.question{background:var(--soft)}.stack .entry img{width:100%;height:auto;max-height:none;object-fit:contain;border-radius:13px}.section{margin-top:23px}.feature{padding:17px}.question h2{font-size:clamp(1.5rem,4vw,2.45rem)}.question-actions,.actions{gap:10px}.brand{font-size:24px}.brand small{font-size:16px}.brand-icon{background:var(--deep);color:white}.brand{line-height:1.05}.primary,.secondary,.chip,.text-button{min-height:44px}.primary{text-decoration:none}.add-all,.demo-link{margin-top:12px}.demo-link{display:block}.welcome{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,220px);align-items:center;gap:clamp(16px,4vw,52px);padding:clamp(20px,5vw,54px);background:var(--white);border:1px solid var(--line);border-radius:22px;max-width:820px;margin:0 auto}.welcome>div{grid-column:1;grid-row:1}.welcome p{color:var(--muted)}.welcome h1{max-width:12ch}.welcome .intro-photo{width:100%;max-height:360px}.theme-choices{display:grid;gap:10px}.theme-choice{display:flex;align-items:center;gap:12px;padding:12px;background:var(--white);color:var(--ink);border:1px solid var(--line);border-radius:13px;font:inherit}.theme-choice[aria-pressed=true]{border-color:var(--accent);font-weight:650}.swatch{width:32px;height:32px;border-radius:50%}.swatch.plum{background:#765569}.swatch.berry{background:#93395f}.swatch.sage{background:#59745f}.text-button:hover,.secondary:hover{color:var(--accent)}.field input,.field textarea{font-size:16px}#invite-url{font-size:1rem}.line-item input[type=checkbox]{width:23px;height:23px;accent-color:var(--accent)}.letter-art{object-fit:contain;background:var(--soft);height:240px}.sizes-tile{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:15px 18px;margin:16px 0;color:var(--ink);font-weight:620}.sizes-tile span:last-child{margin-left:auto;color:var(--muted)}
@media(max-width:660px), (pointer:coarse) and (max-height:520px){.top{padding:0 14px;height:56px}.top-actions{gap:4px}.top-actions .icon-button{width:36px;min-height:36px;height:36px}.hero{grid-template-columns:minmax(0,1fr) minmax(76px,29%);gap:10px;border-radius:18px;padding:18px 15px}.hero img{width:100%;align-self:center}.hero h1{font-size:1.75rem}.hero p:not(.eyebrow){font-size:.9rem;line-height:1.35}.hero .eyebrow{font-size:.72rem;margin-bottom:6px}.hero .primary{font-size:.82rem;padding:8px 10px}.page{padding:16px 12px calc(90px + env(safe-area-inset-bottom))}.feature-grid{gap:8px}.panel{padding:15px}.entry{gap:10px}.entry:has(img){display:block}.entry:has(img)>.badge{display:none}.entry:has(img) img{margin-top:10px}.nav button{min-height:50px}.nav{gap:2px}.welcome{padding:18px 16px;grid-template-columns:1fr}.welcome .intro-photo{grid-row:1;grid-column:1;max-height:195px;background:var(--soft)}.welcome>div{grid-column:1;grid-row:2}.welcome h1{max-width:none;font-size:1.65rem}.chip-row{gap:6px}.chip{padding:7px 10px}.section-header h2{font-size:1.27rem}.modal-head h2{font-size:1.3rem}dialog{max-height:calc(100dvh - 28px);padding:19px}.nav button.active{border-radius:9px}.sidebar{background:var(--white);border-top:1px solid var(--line)}.nav button{color:var(--muted)}.nav button.active{background:var(--soft);color:var(--accent)}}

:root[data-theme="light"]{--ink:#202124;--muted:#686b70;color-scheme:light;--cream:#fff;--white:#fff;--line:#dedfe2;--accent:#37393e;--soft:#edeef0;--dark:#202124;--deep:#35373c;--tint:#dadce0}
.swatch.light{background:linear-gradient(135deg,#202124 50%,#d8dade 50%)}
.row-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.row-actions .secondary{border:1px solid var(--line);border-radius:10px;padding:8px 13px}
.completed{border-color:#9cccad;background:#f1f9f3}.completed small,.completed .badge{color:#21633a}.completed .badge{background:#d9efdf}
.choice{display:flex;align-items:center;gap:9px;min-height:44px}.choice input{width:19px;height:19px}
.movie-photo{display:block;width:min(100%,260px);height:auto;margin-top:10px}.line-item>div{min-width:0}
svg:not(.symbols){stroke-width:1.55}.badge{background:transparent}.nav button svg{width:20px;height:20px}
@media(max-width:660px), (pointer:coarse) and (max-height:520px){.stack .memory:has(img){margin-inline:-12px;border:0;border-radius:0;padding:14px 0 0}.memory:has(img)>div>:not(.open-photo):not(img){margin-inline:16px}.stack .memory img{display:block;width:100%;max-width:none;height:auto;border-radius:0}}

.crop[hidden]{display:none}
.crop{margin:12px 0;padding:12px;background:var(--soft);border-radius:15px}
.crop canvas{display:block;width:100%;height:auto;aspect-ratio:3/4;touch-action:none;cursor:grab;border-radius:8px}
.crop p,.crop label{font-size:.88rem;color:var(--ink)}
.crop label{display:grid;grid-template-columns:8em 1fr;align-items:center;min-height:34px}
.crop input{min-width:0;width:100%;accent-color:var(--accent)}
.stack .memory img{aspect-ratio:3/4;object-fit:cover}
input[type=checkbox]{appearance:none!important;display:inline-grid;place-content:center;border:1.5px solid var(--muted);border-radius:6px;background:var(--white);margin:2px;cursor:pointer;width:22px;height:22px;padding:0}
input[type=checkbox]:checked{background:var(--accent);border-color:var(--accent)}
input[type=checkbox]:checked::after{content:"";width:6px;height:11px;border:solid white;border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg)}
.actions:has(>button:nth-child(2)),.row-actions:has(>button:nth-child(2)),.question-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.actions button,.row-actions button,.question-actions button{white-space:normal;line-height:1.2;margin:0;min-width:0}
.primary,.secondary,.row-actions .secondary{border-radius:13px;font-weight:630;transition:transform .12s,background .12s}
.primary:active,.secondary:active{transform:scale(.97)}
.secondary,.row-actions .secondary{background:var(--white);border:1px solid var(--line);color:var(--ink)}
.secondary:hover,.chip:hover{background:var(--soft)}
dialog,.field input,.field textarea{background:var(--white);border-color:var(--line)}
dialog::backdrop{background:rgb(16 17 19 / .55)}
#toast{background:var(--dark)}.question{border-color:var(--line)}
.brand small,.sidebar .nav button:not(.active),.side-bottom button{color:#dedee0}
.side-bottom{border-color:var(--deep)}
:focus-visible{outline-color:var(--accent)!important}
.hero .primary:hover{background:var(--dark);color:white}
@media(max-width:760px){.sidebar .nav button:not(.active){color:var(--muted)}}

:root[data-theme="night"]{
  color-scheme:dark;
  --ink:#f1f2f4;--muted:#b1b6bd;--cream:#17191d;--white:#212429;
  --line:#3d4149;--accent:#dce1e8;--soft:#2b3037;--dark:#181b20;
  --deep:#424a55;--tint:#535b67;--plum:var(--ink);--rose:var(--soft)
}
.swatch.night{background:#202329;border:1px solid #626771}
[data-theme="night"] .completed{background:#20362a;border-color:#3b654b}
[data-theme="night"] .completed small,[data-theme="night"] .completed .badge{color:#a1e3b9}
[data-theme="night"] .completed .badge{background:#2a4936}
[data-theme="night"] input[type=checkbox]:checked::after{border-color:#202329}
[data-theme="night"] .hero .eyebrow,[data-theme="night"] .hero h1{color:var(--ink)}

.memory{position:relative}
.memory .edit-post{position:absolute;top:2px;right:4px;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:12px;background:transparent;color:var(--muted);cursor:pointer}
.memory .edit-post:hover,.memory .edit-post:focus-visible{color:var(--ink);background:var(--soft)}
.edit-post svg{width:16px;height:16px}
.memory small,.memory h3{padding-right:36px}
.post-preview{display:block;width:96px;height:auto;border-radius:8px;margin:10px 0}

.memory .edit-post{top:6px;right:8px;z-index:1;background:transparent;color:var(--ink);border:0;border-radius:12px;box-shadow:none}
.memory .edit-post svg{width:21px;height:21px;stroke-width:2}
.memory .edit-post:hover,.memory .edit-post:focus-visible{background:var(--deep);color:white}
.memory small,.memory h3{padding-right:53px}
.post-preview[hidden],.clear-photo[hidden]{display:none}
.delete-post{display:block;margin-top:20px;padding:10px 14px;border:1px solid currentColor;border-radius:12px;background:transparent;color:#a62e3d;min-height:44px}
[data-theme="night"] .delete-post{color:#ffa4ad}

.photo-sources{display:grid;gap:12px;margin:16px 0}
.photo-sources label{display:grid;gap:6px;color:var(--ink);font-weight:600}
.photo-sources input[type=file]{display:block;width:100%;min-width:0;min-height:44px;font:inherit;color:var(--muted);cursor:pointer}
.photo-sources input::file-selector-button{min-height:44px;border:1px solid var(--line);border-radius:10px;padding:7px 14px;margin-right:8px;background:var(--soft);color:var(--ink);font:inherit;cursor:pointer}
@media (pointer:fine) and (hover:hover){.photo-sources .camera-source{display:none}}
.delete-post-trigger[hidden],.delete-confirm[hidden]{display:none}
.delete-confirm .delete-post{margin:0}

.open-photo{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}.full-photo{display:block;width:100%;height:auto;max-height:80dvh;object-fit:contain}dialog:has(.full-photo){width:min(96vw,1050px)}

.memory .open-photo + .response{margin-block:12px}

.edit-icon{display:inline-grid;place-items:center;width:44px;height:44px;padding:0;background:transparent;border:0;border-radius:12px;color:var(--ink)}.edit-icon svg{width:21px;height:21px}.edit-icon:hover{background:var(--soft)}
.row-actions:has(.edit-icon){display:flex;align-items:center}
.wish-open{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;font:inherit;color:var(--ink);text-align:left;border:0;background:transparent;padding:0}.wish-open img{width:52px;height:52px;object-fit:cover;border-radius:10px}.wish-row>div:first-of-type{flex:1}.wish-row{cursor:pointer}.wish-detail{overflow-wrap:anywhere;white-space:pre-wrap}.wish-detail a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.wish-picture img{max-width:100%;max-height:48dvh;display:block;object-fit:contain;margin:12px auto}
.stars{border:0;margin:12px 0;padding:0;display:flex;width:fit-content}.stars legend{font-weight:600}.stars label{position:relative;cursor:pointer;font-size:2.1rem;color:var(--muted);padding:4px}.stars input{position:absolute;opacity:0;width:1px;height:1px}.stars label span{opacity:.45}.stars label:has(:checked) span,.stars label:has(~label :checked) span{opacity:1;color:var(--ink)}.stars label:has(:focus-visible){outline:2px solid var(--accent)}
.conversation{max-width:740px}#messages{max-height:48dvh;min-height:20vh;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:0 2px 12px}.bubble{align-self:flex-start;background:var(--soft);border-radius:16px 16px 16px 4px;padding:9px 14px;max-width:82%;overflow-wrap:anywhere}.bubble.mine{align-self:flex-end;border-radius:16px 16px 4px 16px;border:1px solid var(--line);background:var(--white)}.bubble p{margin:4px 0;white-space:pre-wrap}.bubble small{color:var(--muted)}.chat-tools{display:flex;justify-content:space-between;align-items:start;gap:10px}.chat-tools summary{padding:10px;cursor:pointer}.sticker-tray{display:flex;flex-wrap:wrap;gap:4px}.sticker-tray button{border:0;background:var(--soft);color:var(--ink);border-radius:12px}.sticker-art{display:grid;justify-items:center;gap:3px;padding:7px;font-size:.8rem;font-weight:650}.sticker-art b{font-size:2.3rem}.wish-row>div:last-child{flex:0}
@media(max-width:660px), (pointer:coarse) and (max-height:520px){.nav{grid-template-columns:repeat(5,minmax(0,1fr))}.nav button{font-size:.68rem}}

:root[data-theme="night"]{
  --cream:#111b24;--white:#1a2733;--soft:#243644;--dark:#14202a;
  --deep:#356888;--line:#304351;--ink:#edf3f7;--muted:#a3b5c3;--accent:#81c4ee;
  --tint:#365367;--plum:var(--ink);--rose:var(--soft);color-scheme:dark
}
:root{--love:#c34467}
:root[data-theme="night"]{--love:#ff98ab}
.swatch.night{background:linear-gradient(135deg,#192632 55%,#528eb3 55%);border-color:#455e70}
[data-theme="night"] .top{background:var(--dark)}
[data-theme="night"] .field input,[data-theme="night"] .field textarea{color:var(--ink);background:var(--cream)}
[data-theme="night"] .primary,[data-theme="night"] .hero .primary{background:#83c9f0;color:#10232f}
[data-theme="night"] .primary:hover{background:#a0d8f7}
[data-theme="night"] .chip.selected,[data-theme="night"] .nav button.active{background:#2b4356;color:#acdcfa}
[data-theme="night"] .chip:not(.selected){background:transparent}
.chip-row{gap:5px}.chip{border-radius:22px}
.item-tools{display:flex;align-items:center;gap:0;flex:none;margin-left:auto}
.item-tools .edit-icon,.item-tools .close{width:38px;height:40px;min-height:40px;border:0;background:transparent;line-height:1}
.item-tools .close{font-size:21px;color:var(--muted)}.item-tools .edit-icon{color:var(--accent)}
.item-tools button:hover{background:var(--soft)}.line-item>div:first-of-type{padding-top:5px}
.wish-open{min-height:32px}.wish-row>div:first-of-type{padding-top:2px}
.plan-entry{position:relative}.plan-entry>.edit-icon{position:absolute;right:8px;top:8px;color:var(--accent)}.plan-entry>div{flex:1;min-width:0}.plan-entry h3{padding-right:42px}.modal-head h2{flex:1;margin-right:auto}.modal-head{gap:4px}
.reaction{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:40px;min-height:34px;border:0;border-radius:20px;padding:5px 9px;background:transparent;color:var(--muted);font:600 .8rem/1 inherit;cursor:pointer}
.reaction svg{width:18px;height:18px;stroke:currentColor;fill:none}
.reaction[aria-pressed=true]{color:var(--love)}
.reaction[aria-pressed=true] svg{fill:currentColor}.reaction span:empty{display:none}
.memory .reaction{margin-top:4px}.conversation{padding:0;overflow:visible;background:var(--cream)}
#messages{height:clamp(240px,52dvh,640px);max-height:none;gap:12px;padding:18px}
.bubble{min-width:74px;border:1px solid var(--line);background:var(--white)}
.bubble.mine{background:var(--soft);border-color:transparent}
[data-theme="night"] .bubble.mine{background:#28475e}.bubble small{font-size:.72rem;font-weight:620}
.bubble .reaction{min-height:30px;margin:1px -5px -4px auto;display:flex;width:fit-content}
.bubble.with-sticker{border:0;background:transparent}.bubble.with-sticker.mine{background:transparent}
.sticker-art{padding:0;display:inline-block}.sticker-art img{display:block;width:125px;height:125px;object-fit:contain}
#chat-form{position:relative;display:flex;align-items:center;gap:4px;border-top:1px solid var(--line);padding:8px;background:var(--white);border-radius:0 0 16px 16px}
.chat-input{flex:1;min-width:0}.chat-input textarea{width:100%;resize:vertical;min-height:44px;max-height:120px;border:0;background:transparent;color:var(--ink);font:inherit;line-height:22px;padding:11px 8px}
.chat-tools{align-items:center;gap:4px}.chat-tools summary,.send-button{cursor:pointer;width:42px;height:42px;display:grid;place-items:center;padding:0;border:0;border-radius:50%}
.chat-tools summary{list-style:none;color:var(--muted)}.chat-tools summary::-webkit-details-marker{display:none}.send-button{background:var(--accent);color:var(--white)}
.chat-tools svg{width:22px;height:22px}.sticker-tray{position:absolute;bottom:calc(100% + 5px);right:8px;z-index:2;padding:9px;border:1px solid var(--line);border-radius:16px;background:var(--white);box-shadow:0 8px 24px #0003}
.sticker-tray button{display:grid;justify-items:center;gap:3px;padding:6px;background:transparent;font:inherit;font-size:.8rem}.sticker-tray button:hover{background:var(--soft)}.sticker-tray img{width:86px;height:86px}
@media(max-width:660px), (pointer:coarse) and (max-height:520px){.conversation{padding:0}.item-tools{gap:0}.line-item{gap:7px}.memory:has(img) .reaction{margin-block:3px 8px}}
:root[data-theme=night]{--cream:#191c20;--white:#23272c;--soft:#2d3239;--dark:#1d2025;--deep:#414850;--line:#353b42;--ink:#eeeff1;--muted:#abb0b7;--accent:#ccd2da;--tint:#4e555d}
[data-theme=night] .primary,[data-theme=night] .hero .primary{background:#dadde1;color:#24272b}
[data-theme=night] .primary:hover{background:#edeff2}
[data-theme=night] .nav button.active,[data-theme=night] .chip.selected{color:#f2f3f4;background:#393f46}
[data-theme=night] .icon-button,[data-theme=night] .edit-icon{background:transparent;color:#c1c5cc}
[data-theme=night] .top{border-color:var(--line)}.primary,.secondary,.row-actions .secondary{border-radius:12px;box-shadow:none}
.hero-cover{grid-column:2;grid-row:1;justify-self:end;display:block;max-width:100%;padding:0;background:transparent;border:0;border-radius:15px}
.hero .hero-cover img{display:block;width:auto;height:auto;max-width:100%;max-height:200px;object-fit:contain}
.cover-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cover-grid button{display:grid;gap:5px;text-align:left;padding:6px;color:var(--ink);font:inherit;background:var(--soft);border:1px solid transparent;border-radius:12px}.cover-grid button[aria-pressed=true]{border-color:var(--accent)}.cover-grid img{width:100%;height:100px;object-fit:contain;border-radius:8px}.cover-upload{display:grid;gap:8px;margin:16px 0}
.bell{position:relative}.bell.unread:after{content:"";position:absolute;top:5px;right:5px;width:8px;height:8px;border-radius:50%;background:#e5ad9b}
#activity-list article{border-bottom:1px solid var(--line);padding:12px 0}#activity-list p{margin:3px 0;overflow-wrap:anywhere}#activity-list small{color:var(--muted)}.push-setting{margin-top:16px}
.thread-header{display:flex;align-items:center;gap:11px;margin:0 0 14px}.thread-header img{width:46px;height:46px;object-fit:cover;background:var(--soft);border-radius:50%}.thread-header h1{font-size:1.2rem;line-height:1.25;letter-spacing:-.02em;margin:0}.thread-header small{color:var(--muted)}
.conversation{border:0;background:transparent;max-width:none}.chat-screen .page{max-width:850px}
#messages{padding:10px 2px 14px;gap:8px}.bubble{border:0;border-radius:16px 16px 16px 5px;min-width:68px}.bubble.mine,[data-theme=night] .bubble.mine{border:0;background:var(--soft);border-radius:16px 16px 5px 16px}
[data-theme=night] .bubble.mine{background:#373d42}.bubble.with-sticker,.bubble.mine.with-sticker,[data-theme=night] .bubble.mine.with-sticker{background:transparent}
.chat-screen #chat-form{border:1px solid var(--line);border-radius:26px;background:var(--white);padding:3px 5px;align-items:center}
.chat-screen .chat-input{padding-left:41px}.chat-tools details summary{position:absolute;left:4px;top:50%;transform:translateY(-50%);color:var(--muted)}.chat-input textarea{resize:none;vertical-align:middle}
.send-button{width:36px;height:36px;background:var(--soft);color:var(--ink)}.send-button svg{width:19px;height:19px}
.sticker-tray{left:0;right:auto;max-width:100%;width:min(340px,100%);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));max-height:min(40dvh,300px);overflow:auto;gap:2px}
.chat-tools details:not([open]) .sticker-tray{display:none}.sticker-tray button{min-width:0;padding:4px}.sticker-tray button>span:last-child{display:none}.sticker-tray img{width:100%;height:60px}
@media(max-width:660px), (pointer:coarse) and (max-height:520px){.chat-screen .page{height:calc(100dvh - 56px - 70px - env(safe-area-inset-bottom));padding:10px 12px;display:flex;flex-direction:column}.thread-header{margin:0 0 6px}.conversation{display:flex;flex-direction:column;min-height:0;flex:1}.conversation #messages{flex:1;height:auto;min-height:0}.top-actions{gap:6px;flex:none}}

:root[data-theme=night]{
  --cream:#000;--white:#191919;--soft:#292929;--dark:#101010;--deep:#414141;--line:#383838;
  --ink:#f4f4f4;--muted:#aaa;--accent:#ddd;--tint:#555;
}
[data-theme=night] .sidebar,[data-theme=night] .top{background:var(--dark)}
[data-theme=night] .nav button.active,[data-theme=night] .chip.selected{background:#303030;color:#fff}
[data-theme=night] .swatch.night{background:linear-gradient(135deg,#0c0c0c 50%,#393939 50%);border-color:#555}
[data-theme=night] .bubble{background:transparent;color:#eee;padding-left:3px}
[data-theme=night] .bubble.mine{background:var(--soft);color:var(--ink);border-radius:20px;padding-left:14px}
[data-theme=night] .bubble.mine.with-sticker{background:transparent}
[data-theme=night] .bubble:not(.with-sticker) {
  background: var(--deep);
  color: var(--ink);
  padding-inline: 14px;
}
[data-theme=night] .bubble.mine:not(.with-sticker) {
  background: var(--ink);
  color: var(--cream);
}
[data-theme=night] .chat-screen .top{background:var(--dark)}
.chat-screen .thread-header{margin-bottom:10px}
.chat-screen #chat-form{
  display:flex;flex-flow:column nowrap;align-items:stretch;gap:3px;flex:none;
  padding:10px 11px 8px;border:1px solid var(--line);border-radius:26px;background:var(--soft)
}
[data-theme=night] .chat-screen #chat-form{background:var(--soft);border-color:var(--line)}
.chat-screen .chat-input{display:block;flex:none;padding:0}
.chat-screen .chat-input textarea{
  display:block;min-height:34px;max-height:min(28dvh,154px);padding:4px 5px 7px;
  line-height:1.45;font-size:1rem;resize:none;overflow-y:auto;appearance:none;border:0;border-radius:0;
  outline:0;box-shadow:none;background:transparent;color:var(--ink)
}
.chat-screen .chat-input textarea:focus-visible{outline:0;box-shadow:none}
.chat-screen #chat-form:focus-within{border-color:var(--muted)}
.chat-screen .chat-tools{display:flex;justify-content:space-between;align-items:center}
.chat-screen .chat-tools summary{position:static;transform:none;color:var(--ink);width:42px;height:42px}
.chat-screen .chat-tools summary svg{width:23px;height:23px}
.chat-screen .send-button{width:40px;height:40px;background:#416be8;color:#fff}
.chat-screen .send-button svg{width:21px;height:21px;stroke-width:2.3}
.chat-screen .send-button:disabled{background:var(--deep);color:var(--muted);opacity:1}
:is(button,a[href],summary,[role="button"]),.chat-screen textarea{-webkit-tap-highlight-color:transparent}
.chat-screen :is(button,summary):focus:not(:focus-visible){outline:0}
.push-setting{margin:0 0 16px}.push-setting .secondary{width:100%}

.photo-stream{max-width:620px;margin-inline:auto}
[data-action="more-memories"]{display:block;margin:16px auto 0}
[data-action="more-memories"][hidden]{display:none}
.feed-post{color:var(--ink)}
.post-header{min-height:56px;display:flex;align-items:center;gap:10px;padding:4px 12px}
.post-header strong,.post-caption strong{font-size:.95rem;font-weight:660}
.post-header .edit-icon{margin-left:auto;color:var(--muted)}
.post-avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;background:var(--soft)}
.feed-post .open-photo{border:0;border-radius:0;overflow:hidden}
.feed-post .open-photo img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover}
.post-details{padding:2px 12px 15px}
.post-details .reaction{min-width:44px;min-height:44px;padding:0 6px 0 0;background:transparent;color:var(--ink);border:0;gap:6px;font-size:.94rem;font-weight:600}
.post-details .reaction svg{width:25px;height:25px;stroke-width:1.8}
.post-details .reaction[aria-pressed=true]{color:#ed5973;background:transparent}
.post-caption{margin:1px 0 5px;font-size:.97rem;line-height:1.48;white-space:pre-wrap;overflow-wrap:anywhere}
.caption-toggle{font:inherit;background:none;color:var(--muted);border:0;padding:0 3px;cursor:pointer}
.post-date{display:block;color:var(--muted);font-size:.8rem}
@media(max-width:660px), (pointer:coarse) and (max-height:520px){.photo-stream{max-width:none;margin-inline:-12px}.post-details,.post-header{padding-inline:14px}}

.page:has(.photo-stream) .hero-content h1{font-family:inherit;font-weight:650;font-size:clamp(2rem,5vw,3rem);line-height:1.12;margin:0 0 8px}
:root[data-theme=night]{--dark:#191816;--deep:#454039;--accent:#dfd8cb;--cream:#141312;--white:#201f1c;--soft:#292722;--line:#35322d;--ink:#f3efe8;--muted:#ada69a;background:var(--cream)}
[data-theme=night] .hero:has(.hero-cover){background:linear-gradient(115deg,#282520,#201f1c);color:var(--ink)}
.album-month{margin:28px 12px 6px;color:var(--muted);font-size:.88rem;font-weight:500;letter-spacing:.02em}
.album-month::first-letter{text-transform:uppercase}
.photo-stream .feed-post+.feed-post{margin-top:16px}

.top-actions .icon-button{flex:none;background:transparent;color:var(--ink)}
.top-actions .icon-button:focus-visible,.top-actions .icon-button:active{background:var(--soft)}
@media(max-width:660px), (pointer:coarse) and (max-height:520px){.top-actions .icon-button{width:36px;height:40px}}

.cover-caption{display:block;border:0;background:transparent;color:var(--muted);padding:0;margin:0 0 16px;text-align:left;font:inherit;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.cover-caption:hover{color:var(--ink)}

.cover-title{display:block;max-width:100%;border:0;background:transparent;padding:0;text-align:left;color:inherit;font:inherit;letter-spacing:inherit;overflow-wrap:anywhere}


.signin-actions{display:grid;gap:.65rem;width:100%;max-width:340px;margin-top:1.25rem}
.signin-actions :is(button,a){width:100%;min-height:46px;box-sizing:border-box;text-align:center;text-decoration:none}
.top-actions [data-action="theme"] svg{width:27px;height:27px}
#modal:is([data-kind="account-settings"],[data-kind="account-delete"]){
  --account-danger:#a32e44;--account-danger-button:#a02c40;--account-danger-hover:#852236;
  --account-danger-disabled:#f5e7e9;--account-danger-text:#853b49;--account-verified:#35644d;
  inset:0;margin:auto;width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 32px);
  padding:24px;border-radius:22px;
  box-shadow:0 24px 65px rgb(15 12 14 / .22);
}
[data-theme="night"] #modal:is([data-kind="account-settings"],[data-kind="account-delete"]){
  --account-danger:#ff9bab;--account-danger-button:#ac334b;--account-danger-hover:#932b41;
  --account-danger-disabled:#4d2e35;--account-danger-text:#edb3bd;--account-verified:#a7dbb8;
}
#modal:is([data-kind="account-settings"],[data-kind="account-delete"]) .modal-head{margin-bottom:16px;gap:12px}
#modal:is([data-kind="account-settings"],[data-kind="account-delete"]) .modal-head h2{
  font-family:inherit;font-size:1.45rem;line-height:1.2;letter-spacing:-.035em;margin:0;
}
#modal:is([data-kind="account-settings"],[data-kind="account-delete"]) .modal-head .close{
  flex:0 0 44px;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;padding:0;
  background:var(--soft);color:var(--ink);
}
#modal .modal-head .close svg{width:19px;height:19px}
.account-settings,.delete-account-form{display:grid;gap:16px}
.account-email{
  display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;align-items:start;
  padding:14px;border-radius:14px;background:var(--soft);
}
.account-email-icon{
  display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:var(--white);color:var(--accent);
}
.account-settings svg{width:20px;height:20px;flex:none}
.account-email-details{min-width:0;display:grid;justify-items:start;gap:4px}
.account-label{font-size:.875rem;color:var(--muted);line-height:1.35}
.account-email .account-address{font-size:1rem;font-weight:650;line-height:1.35;margin:0;overflow-wrap:anywhere}
.account-verified{display:inline-flex;align-items:center;gap:5px;color:var(--account-verified);font-size:.875rem;font-weight:600;line-height:1.35}
.account-verified svg{width:15px;height:15px}
.account-verify{
  padding:0;min-height:44px;border:0;background:transparent;color:var(--accent);font:inherit;font-size:.875rem;
  font-weight:650;text-decoration:underline;text-underline-offset:3px;cursor:pointer;
}
.account-rows{border:1px solid var(--line);border-radius:14px;padding:0 12px}
.account-row{
  display:flex;align-items:center;gap:11px;width:100%;min-height:49px;padding:9px 2px;border:0;
  background:transparent;color:var(--ink);font:inherit;font-size:.9375rem;font-weight:600;text-align:left;cursor:pointer;
}
.account-row svg{color:var(--muted)}
.account-row+.account-row,.account-session .account-remove{border-top:1px solid var(--line)}
.account-row:hover,.account-row:hover svg{color:var(--accent)}
.account-session .account-remove,.account-session .account-remove svg{color:var(--account-danger)}
.delete-account-form p{margin:0;font-size:.9375rem;line-height:1.5}
.delete-account-form .account-intro{color:var(--muted)}
.delete-account-form .delete-history{padding:11px 13px;border-radius:12px;background:var(--soft);color:var(--ink)}
.delete-account-form .field{margin:0;gap:7px;font-size:.9375rem}
.delete-account-form .field input{min-height:46px;padding:10px 12px;border-radius:11px}
.delete-account-form .account-error{color:var(--account-danger)}
.delete-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:2px}
.delete-actions button{min-height:46px;padding:9px 10px;border-radius:11px;font-size:.9375rem;font-weight:650}
.delete-actions .account-danger{border:0;background:var(--account-danger-button);color:#fff;font-family:inherit;cursor:pointer}
.delete-actions .account-danger:enabled:hover{background:var(--account-danger-hover)}
.delete-actions .account-danger:disabled{background:var(--account-danger-disabled);color:var(--account-danger-text);cursor:default}
#modal:is([data-kind="account-settings"],[data-kind="account-delete"]) :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:540px){
  #modal:is([data-kind="account-settings"],[data-kind="account-delete"]){
    padding:16px 20px 20px;
  }
}
@media(max-width:400px){.top-actions{gap:2px}.top-actions .icon-button{width:32px}}

.chat-screen .send-button{width:44px;height:44px;background:var(--deep);color:white;transition:background-color 280ms ease-in-out,color 280ms ease-in-out}
.chat-screen .send-button svg{width:25px;height:25px}
.chat-screen .send-button:disabled{background:var(--muted);background:color-mix(in srgb,var(--deep) 78%,var(--white));color:#f5f1f4}
@media(prefers-reduced-motion:reduce){.chat-screen .send-button{transition:none}}
.chat-screen .send-button:enabled:active{transform:scale(.94)}
.question-deck{max-width:735px;padding:4px 2px}
.question-deck .question{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;min-height:15rem;margin:0;touch-action:pan-y;user-select:none;transform-origin:50% 80%}
.prompt-post footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.question-deck h2{margin:1rem 0 1.5rem;text-wrap:balance}
.question-deck .question:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.card-respond{min-height:44px}
.prompt-post{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:clamp(16px,4vw,26px);overflow-wrap:anywhere}
.prompt-kicker,.card-reply strong,.card-reply small,.waiting-reply{font-size:.875rem;color:var(--muted)}
.prompt-kicker{display:flex;align-items:center;gap:7px}
.prompt-kicker svg{width:18px;height:18px}
.prompt-post h3{font-size:1.25rem;line-height:1.25;margin:10px 0 16px}
.card-reply{padding:12px 14px;background:var(--soft);border-radius:12px;margin-top:6px}
.card-reply p{margin:4px 0 0;white-space:pre-wrap;line-height:1.45}
.waiting-reply{margin:10px 0 0}
.prompt-post footer{border-top:1px solid var(--line);margin-top:8px;padding-top:6px}

.card-reply-head{display:flex;align-items:center;justify-content:space-between;min-height:24px}
.card-reply-head .edit-icon{margin:-8px -8px -8px 0;flex:none}

:root {
  --system-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --system-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  --system-left: var(--safe-area-inset-left, env(safe-area-inset-left, 0px));
  --system-right: var(--safe-area-inset-right, env(safe-area-inset-right, 0px));
}
.compact-list-label { display: none; }
@media(max-width:660px), (pointer:coarse) and (max-height:520px) {
  :root {
    --island-gap: 6px;
    --header-height: 48px;
    --tabs-height: 60px;
    --header-end: calc(var(--system-top) + var(--header-height));
    --tabs-end: calc(var(--system-bottom) + var(--island-gap) + var(--tabs-height));
  }
  main { padding-top: var(--header-end); }
  .page {
    padding-left: calc(12px + var(--system-left));
    padding-right: calc(12px + var(--system-right));
    padding-bottom: calc(var(--tabs-end) + 16px);
  }
  html, body { scrollbar-width: none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
  body::after {
    content: ""; position: fixed; z-index: 2; left: 0; right: 0; pointer-events: none;
    bottom: 0; height: var(--system-bottom);
    background: linear-gradient(to top, var(--cream), transparent);
  }
  :root body .sidebar {
    position: fixed; z-index: 3;
    left: calc(var(--system-left) + 9px); right: calc(var(--system-right) + 9px);
    width: auto; max-width: 540px; margin-inline: auto;
    border: 1px solid var(--line); border-radius: 32px;
    background: var(--white);
    background: color-mix(in srgb, var(--white) 88%, transparent);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: 0 3px 14px rgb(30 20 25 / 12%);
  }
  :root body .top, :root .chat-screen .top {
    position: fixed; z-index: 3; inset: 0 0 auto;
    height: var(--header-end);
    padding: var(--system-top) calc(var(--system-right) + 12px) 0 calc(var(--system-left) + 16px);
    border: 0; border-bottom: 1px solid var(--line);
    background: var(--white);
    background: color-mix(in srgb, var(--white) 76%, transparent);
    -webkit-backdrop-filter: blur(20px) saturate(120%); backdrop-filter: blur(20px) saturate(120%);
  }
  .top-actions { gap: clamp(0px, 0.6vw, 4px); }
  .top-actions .icon-button { width: clamp(28px, 8.6vw, 42px); height: 42px; }
  html body .sidebar {
    top: auto; bottom: calc(var(--system-bottom) + var(--island-gap));
    height: var(--tabs-height); padding: 4px;
  }
  .sidebar .nav { height: 100%; gap: 1px; }
  .sidebar .nav button {
    min-height: 0; min-width: 0; padding: 3px 0; gap: 3px;
    line-height: 1.15; border-radius: 26px;
  }
  .nav .list-label { display: none; }
  .nav .compact-list-label { display: inline; }
  .chat-screen .page {
    height: calc(100dvh - var(--header-end) - var(--tabs-end));
    padding: 8px calc(12px + var(--system-right)) 8px calc(12px + var(--system-left));
  }
  #toast { bottom: calc(var(--tabs-end) + 10px); }
  dialog[open] {
    top: var(--system-top); bottom: var(--system-bottom);
    max-height: calc(100dvh - var(--system-top) - var(--system-bottom) - 24px);
  }
}
@media(min-width:661px) and (min-height:521px) {
  body { padding: var(--system-top) var(--system-right) var(--system-bottom) var(--system-left); }
  .sidebar { top: var(--system-top); bottom: var(--system-bottom); left: var(--system-left); }
}

.top-label {
  min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 1rem; font-weight: 650; letter-spacing: -.025em; color: var(--ink);
}
.pair-indicator {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; flex: none; color: var(--muted);
}
.pair-indicator svg { width: 21px; height: 21px; }
.pair-indicator.connected svg { color: var(--accent); fill: currentColor; }
@media(max-width:360px) {
  .top-label { font-size: .9rem; }
  .pair-indicator { width: 22px; }
  .top-actions { gap: 1px; }
}

:root {
  --card-shadow: 0 3px 12px rgb(43 30 42 / 8%), 0 1px 3px rgb(43 30 42 / 5%);
  --header-shadow: 0 4px 14px rgb(43 30 42 / 8%);
  --island-shadow: 0 4px 16px rgb(43 30 42 / 14%);
}
:root[data-theme=plum] { --cream: #f0edf0; }
:root[data-theme=night] {
  --card-shadow: 0 4px 14px rgb(0 0 0 / 34%);
  --header-shadow: 0 4px 15px rgb(0 0 0 / 32%);
  --island-shadow: 0 5px 18px rgb(0 0 0 / 45%);
}

.panel:not(.conversation), .prompt-post, .welcome, .hero, .sticker-tray, .account-rows {
  border: 0;
  box-shadow: var(--card-shadow);
}
dialog { border: 0; }
.top, [data-theme=night] .top {
  position: relative;
  z-index: 1;
  border: 0;
  box-shadow: var(--header-shadow);
}
.question-deck {
  margin: -6px -10px 0;
  padding: 10px 12px 18px;
}
.page:has(.question-deck) { overflow-x: clip; }
.prompt-post footer { border: 0; }
.secondary, .row-actions .secondary {
  border: 0;
  background: var(--soft);
}
.chat-screen #chat-form, [data-theme=night] .chat-screen #chat-form {
  border: 0;
  box-shadow: var(--card-shadow);
}
.chat-screen #chat-form:focus-within {
  box-shadow: var(--card-shadow), 0 5px 18px rgb(46 32 45 / 16%);
}

@media(max-width:660px), (pointer:coarse) and (max-height:520px) {
  :root body .sidebar {
    border: 0;
    box-shadow: var(--island-shadow);
  }
  :root body .top, :root .chat-screen .top {
    border: 0;
    box-shadow: var(--header-shadow);
  }
  .photo-stream .prompt-post { margin-inline: 12px; }
}

:root[data-theme=plum] :is(.hero, .question-deck .question) {
  background: var(--soft);
  box-shadow: 0 0 16px rgb(65 39 63 / 14%), 0 6px 16px rgb(65 39 63 / 12%);
}

:root[data-theme=plum] {
  --raised-control: #e5d9e5;
  --raised-shadow: 0 2px 7px rgb(65 39 63 / 15%);
}

[data-theme=plum] .chip-row .chip,
[data-theme=plum] .chip-row + .actions > button {
  box-shadow: var(--raised-shadow);
}
[data-theme=plum] .chip-row .chip:not(.selected),
[data-theme=plum] .chip-row + .actions > [data-action="bought"] {
  background: var(--raised-control);
  color: var(--deep);
}
[data-theme=plum] .chip-row .chip:not(.selected):hover,
[data-theme=plum] .chip-row + .actions > [data-action="bought"]:enabled:hover {
  background: #dbccdc;
}
[data-theme=plum] .chip-row .chip.selected:hover { background: var(--deep); }

[data-theme=plum] #messages { padding-inline: 8px; }
[data-theme=plum] .bubble.mine:not(.with-sticker) {
  background: #e4d5e5;
  box-shadow: var(--raised-shadow);
}
[data-theme=plum] .bubble.mine:not(.with-sticker) small { color: var(--deep); }

.feature-grid .feature .badge {
  background: var(--soft);
  color: var(--accent);
}
[data-theme=night] :is(.primary, .hero .primary) {
  background: var(--ink);
  color: var(--cream);
}
[data-theme=night] :is(.primary, .hero .primary):hover {
  background: var(--accent);
}
[data-theme=night] :is(.top-actions .icon-button, .edit-icon) {
  color: var(--ink);
}
[data-theme=night] :is(.nav button.active, .chip.selected) {
  color: var(--ink);
}

#messages .bubble[data-message] { touch-action: manipulation; }
#messages .bubble:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bubble:not(.with-sticker) > p:first-child { margin-top: 0; }
.bubble > p:last-of-type { margin-bottom: 0; }
.bubble .reaction[hidden] { display: none; }
.reaction .reaction-emoji { display: none; }
.reaction.has-heart svg { display: none; }
.reaction.has-heart .reaction-emoji { display: inline-block; font-size: 17px; line-height: 1; }
.reaction.mutual-heart .reaction-emoji {
  font-size: 24px;
  filter: drop-shadow(0 1px 3px color-mix(in srgb, var(--love) 55%, transparent));
}

.pair-indicator.partner-online svg {
  color:var(--love);
  animation:partner-glow 3.8s ease-in-out infinite;
}
@keyframes partner-glow {
  0%,100% { filter:drop-shadow(0 0 2px color-mix(in srgb,var(--love) 30%,transparent)); }
  50% { filter:drop-shadow(0 0 5px color-mix(in srgb,var(--love) 65%,transparent)); }
}
.floating-hearts {
  position:fixed; inset:0; width:100%; height:100%; margin:0; border:0;
  padding:0; background:transparent; pointer-events:none; overflow:hidden; z-index:9999;
}
.floating-hearts::backdrop { background:transparent; pointer-events:none; }
.floating-hearts span {
  position:absolute; bottom:5%; display:block; opacity:0; line-height:1;
  font-family:system-ui,sans-serif; text-shadow:0 2px 6px rgb(120 43 70 / .12);
  animation:heart-flight 2.7s cubic-bezier(.18,.52,.48,.94) both;
}
@keyframes heart-flight {
  0% { opacity:0; transform:translateY(0) scale(.65); }
  14% { opacity:.94; }
  72% { opacity:.83; }
  100% { opacity:0; transform:translate(var(--drift),-86dvh) rotate(var(--tilt)) scale(1.07); }
}
@media(prefers-reduced-motion:reduce) {
  .pair-indicator.partner-online svg { animation:none; filter:drop-shadow(0 0 3px var(--love)); }
  .floating-hearts span { bottom:24%; animation:quiet-heart 1.4s ease-in-out both; }
  @keyframes quiet-heart { 0%,100% {opacity:0} 25%,75% {opacity:.95} }
}

.plus-offer { display:grid; gap:14px; }
.plus-summary { padding:clamp(16px,4vw,24px); background:var(--soft); }
.plus-summary .price { margin:0; color:var(--ink); font-size:clamp(1.8rem,6vw,2.5rem); }
.plus-summary .price small { font-size:.9rem; font-weight:500; }
.plus-summary ul { padding-inline-start:1.2rem; line-height:1.55; }
.plus-summary li + li { margin-top:6px; }
.plus-summary .primary { padding-inline:14px; text-decoration:none; }
.plus-summary .actions { flex-wrap:wrap; }
.plus-summary .plus-active { font-weight:650; }
.plus-summary .note { font-size:.88rem; }

:root[data-theme="amber"] {
  --ink:#382a20; --muted:#6e5746; --accent:#875231; --soft:#f1e1cf;
  --dark:#39291d; --deep:#673f28; --tint:#ebd2b3; --cream:#f7f0e6;
  --white:#fffaf3; --line:#e7d8c7;
}
:root[data-theme="sage"] { --ink:#29362e; --muted:#54645a; --white:#fbfdfb; }
:root[data-theme="berry"] { --ink:#3b2731; --muted:#735764; --white:#fffafd; }
[data-theme="amber"] .hero,[data-theme="sage"] .hero,[data-theme="berry"] .hero {
  background:var(--soft);
}
[data-theme="amber"] .top,[data-theme="sage"] .top,[data-theme="berry"] .top {
  background:color-mix(in srgb,var(--white) 92%,transparent);
}
.swatch.amber { background:linear-gradient(135deg,#8e5533 50%,#e9c9a4 50%); }
.theme-lock { margin-left:auto; display:flex; align-items:center; gap:5px; font-size:.76rem; color:var(--muted); }
.theme-lock svg { width:15px; height:15px; }
.sticker-tray button { position:relative; }
.sticker-tray .sticker-lock {
  position:absolute; inset:2px 2px auto auto; width:19px; height:19px; display:grid;
  place-items:center; border-radius:50%; color:var(--ink); background:var(--white);
}
.sticker-tray .sticker-lock svg { width:13px; height:13px; }
.nora-plus-active .sticker-tray .sticker-lock { display:none; }
.support-link { text-decoration:none; }

.promo-form { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:6px 8px; margin:14px 0; }
.promo-form .field { margin:0; }
.promo-form input { width:100%; min-width:0; }
.promo-form .account-error { grid-column:1/-1; margin:0; }
.plus-summary button:disabled { opacity:.52; cursor:default; }
.support-title { margin:0 0 8px; color:var(--ink); font-size:1.2rem; }

.support-panel button:disabled { opacity:.52; cursor:default; }
.support-panel .note { margin:0; font-size:.88rem; }
.support-panel .actions { align-items:center; flex-wrap:wrap; gap:8px 12px; }
