/* Adapted from the four private Stitch screens in docs/stitch-reference.
   All content remains owned by the application; only visual tokens and layout are shared. */
@font-face{font-family:"Playfair Display";src:url("/assets/fonts/playfair-regular.woff2") format("woff2");font-style:normal;font-weight:400 700;font-display:swap}
@font-face{font-family:"Playfair Display";src:url("/assets/fonts/playfair-italic.woff2") format("woff2");font-style:italic;font-weight:400 700;font-display:swap}
@font-face{font-family:"Nunito Sans";src:url("/assets/fonts/nunito-sans.woff2") format("woff2");font-style:normal;font-weight:400 700;font-display:swap}
@font-face{font-family:"Material Symbols Outlined";src:url("/assets/fonts/material-symbols.woff2") format("woff2");font-style:normal;font-weight:100 700;font-display:block}
:root{--cream:#fff8f3;--paper:#fff;--surface:#fff;--subtle:#f3ede8;--border:#dcc0c4;--line:#eee7e2;--ink:#1d1b18;--muted:#844f60;--accent:#a23354;--berry:#a23354;--rose:#fdb9ce;--blush:#ffd9df;--lav:#eaddff;--peach:#f9f2ed;--stitch-primary:#a23354;--stitch-secondary:#844f60;--stitch-tertiary:#65518e;--stitch-soft:#f9f2ed;--stitch-white:#fff;--shadow:0 10px 30px rgba(73,52,59,.065);font-family:"Nunito Sans",system-ui,sans-serif;color:var(--ink);background:var(--cream)}
html{background:var(--cream)}body{font-family:"Nunito Sans",system-ui,sans-serif;font-size:15px;line-height:1.48;background:var(--cream)}
.material-symbols-outlined{font-family:"Material Symbols Outlined";font-weight:normal;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:"liga";font-variation-settings:"FILL" 0,"wght" 350,"GRAD" 0,"opsz" 24;-webkit-font-smoothing:antialiased}
.app-frame{max-width:1280px;padding:0 clamp(16px,3vw,40px) 135px}.main-content{max-width:1040px;padding-top:28px}.topbar{position:sticky;top:0;height:82px;z-index:80;padding:env(safe-area-inset-top) 0 0;border:0;background:color-mix(in srgb,var(--cream) 93%,transparent);backdrop-filter:blur(20px);box-shadow:0 1px 12px rgba(73,52,59,.035)}.brand{gap:10px;color:var(--ink);font-size:inherit;letter-spacing:0}.brand>img{display:block;width:36px;height:36px;object-fit:contain}.brand-copy{display:flex;flex-direction:column;gap:1px}.brand-copy strong{font:600 23px/1.1 "Playfair Display",Georgia,serif;letter-spacing:-.02em}.brand-copy small{font:600 11px/1.3 "Nunito Sans",sans-serif;color:var(--stitch-secondary);letter-spacing:.03em}.brand-copy small::before{content:"";display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:var(--stitch-primary)}.privacy-note{display:inline-flex;align-items:center;gap:5px;color:var(--stitch-secondary);font-size:12px}.privacy-note .material-symbols-outlined{font-size:21px}
h1,h2,h3{font-family:"Playfair Display",Georgia,serif;font-weight:600;color:var(--ink);letter-spacing:-.018em;line-height:1.2}h1{font-size:clamp(30px,4.5vw,48px)}h2{font-size:clamp(23px,3vw,32px)}h3{font-size:clamp(19px,2.4vw,26px)}h1 em,h2 em,h3 em{font-weight:400;color:var(--stitch-primary)}p{overflow-wrap:anywhere}.eyebrow{display:inline-flex;align-items:center;gap:5px;padding:6px 13px;border-radius:999px;background:var(--blush);color:#851d3f;font:700 11px/1.2 "Nunito Sans",sans-serif;letter-spacing:.055em;margin-bottom:14px}.intro{color:var(--stitch-secondary);font-size:17px;line-height:1.55}
.card{border:0;border-radius:32px;background:var(--paper);box-shadow:var(--shadow)}.panel{padding:clamp(20px,3vw,32px);margin:20px 0}.card p{color:var(--stitch-secondary)}.card h2,.card h3{color:var(--ink)}.card .eyebrow{color:#851d3f}.home-columns{gap:20px}.home-columns .panel{height:auto}.row{gap:10px}.row>button{flex:0 1 auto}
button,.button{font-family:"Nunito Sans",sans-serif;font-size:14px;font-weight:700;border-radius:999px;border:0;background:#f3ede8;color:var(--stitch-secondary);min-height:44px;padding:10px 19px;box-shadow:0 2px 5px rgba(73,52,59,.03);transition:background .16s,transform .16s,color .16s}button:hover,.button:hover{background:#ffd9df;color:#851d3f;filter:none}button:active,.button:active{transform:scale(.98)}button:disabled{opacity:.6}.button-primary,button[type=submit],form>button:not([type]),.fields>button:not([type]){background:var(--stitch-primary);color:#fff;box-shadow:0 8px 18px rgba(162,51,84,.18)}.button-primary:hover,button[type=submit]:hover,form>button:not([type]):hover,.fields>button:not([type]):hover{background:#851d3f;color:#fff}.button-soft{background:#fdb9ce;color:#7a4658}.button-quiet{background:transparent;color:var(--stitch-primary);box-shadow:none}a{color:var(--stitch-primary)}a:hover{text-decoration-color:#c24c6c}
input,textarea,select,.fields input,.fields textarea,.fields select{font:inherit;color:var(--ink);background:#f9f2ed;border:1px solid transparent;border-radius:18px;min-height:46px;padding:11px 14px}input:focus,textarea:focus,select:focus{background:#fff;border-color:#c24c6c}label{font-weight:600;color:var(--stitch-secondary)}fieldset{border:1px solid var(--line);border-radius:24px;padding:18px}legend{font-family:"Playfair Display",Georgia,serif;font-size:19px;color:var(--ink);padding:0 7px}:focus-visible{outline:3px solid #65518e;outline-offset:3px}.entry{border-bottom:1px solid var(--line)}.entry small,small,.sc-meta{color:var(--stitch-secondary)}
.bottom-nav{display:flex;position:fixed;left:50%;right:auto;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(640px,calc(100% - 26px));justify-content:space-around;align-items:center;gap:3px;padding:8px;border:0;border-radius:999px;background:color-mix(in srgb,var(--cream) 97%,transparent);box-shadow:0 12px 34px rgba(73,52,59,.09);backdrop-filter:blur(18px);z-index:900}.bottom-nav button{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:56px;min-width:0;padding:6px 4px;border:0;border-radius:999px;background:transparent;box-shadow:none;font-size:11px;font-weight:500;color:var(--stitch-secondary)}.bottom-nav button .material-symbols-outlined{font-size:25px}.bottom-nav button[aria-current=page]{background:#ffebeb;color:var(--stitch-primary);font-weight:700}.bottom-nav button[aria-current=page] .material-symbols-outlined{font-variation-settings:"FILL" 1,"wght" 450,"GRAD" 0,"opsz" 24}
/* Home dashboard: the stitched editorial hierarchy with real relationship data. */
.home-greeting{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:4px 0 25px}.home-greeting h1{margin:0 0 3px}.home-greeting p{margin:0;color:var(--stitch-secondary)}.home-greeting .button{flex:0 0 auto}.love-story{position:relative;overflow:hidden;text-align:center;padding:30px clamp(20px,5vw,52px);background:radial-gradient(circle at 90% 8%,#ffe9ed 0,transparent 34%),radial-gradient(circle at 5% 100%,#fceaf0 0,transparent 28%),#fff}.love-story .eyebrow{background:#f3ede8;color:var(--stitch-secondary)}.love-story .love-stat{font:600 clamp(52px,8vw,80px)/1 "Playfair Display",Georgia,serif;letter-spacing:-.035em;color:var(--stitch-primary);margin:18px 0 3px}.love-story .love-stat span{font-size:clamp(22px,3vw,32px);font-weight:500;color:var(--ink)}.love-story .love-caption{font:italic 400 20px/1.4 "Playfair Display",Georgia,serif;color:var(--stitch-secondary);margin-bottom:25px}.partner-ribbon{display:flex;align-items:center;justify-content:space-between;gap:12px;width:min(450px,100%);margin:20px auto 28px;position:relative}.partner-ribbon::before{content:"";position:absolute;top:36px;left:15%;right:15%;border-top:3px dashed #f7b4c8;z-index:0}.partner-ribbon .partner-chip{position:relative;z-index:1;display:flex;flex-direction:column;gap:6px;min-width:92px;background:none;padding:0;color:var(--ink);font-size:15px;font-weight:700}.partner-ribbon .partner-chip img,.partner-ribbon .partner-chip .avatar-initial{display:grid;place-items:center;width:72px;height:72px;object-fit:cover;border-radius:50%;background:#f3ede8;border:5px solid #f3ede8;box-shadow:0 3px 9px #49343b14;font:600 28px "Playfair Display",serif;color:var(--stitch-primary)}.partner-ribbon .ribbon-heart{position:relative;z-index:2;display:grid;place-items:center;width:39px;height:39px;border-radius:50%;background:#c24c6c;color:#fff;box-shadow:0 4px 10px #a2335433}.milestone-progress{background:#f3ede8;border-radius:999px;padding:14px 18px;color:var(--stitch-secondary)}.milestone-progress p{display:flex;justify-content:space-between;gap:10px;margin:0 0 8px;font-size:13px}.milestone-progress strong{color:var(--stitch-primary)}.milestone-progress progress{display:block;width:100%;height:8px;accent-color:var(--stitch-primary);border-radius:99px}.home-section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:36px 3px 12px}.home-section-title h2{margin:0}.home-section-title button{background:transparent;box-shadow:none;color:var(--stitch-primary)}.home-quick-actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.home-quick-actions button{flex:1;min-width:125px;background:#fff;color:var(--stitch-primary);box-shadow:0 3px 12px #49343b0d}.home-quick-actions button:first-child{background:#fdb9ce;color:#7a4658}.home-location .card{background:#f9f2ed}.home-daily .card{background:#fff}.home-daily h2{font-size:clamp(24px,3.3vw,36px);line-height:1.27}.home-moods .card{background:#f9f2ed}.home-countdown .card{background:#a23354;color:#fff}.home-countdown .card h2,.home-countdown .card p,.home-countdown .card .eyebrow{color:#fff}.home-countdown .card .eyebrow{background:#ffffff30}.home-memories .card{background:transparent;box-shadow:none;padding:0}.home-memories .memory-grid article{background:#fff;padding:14px 14px 23px;box-shadow:0 8px 15px #49343b15;transform:rotate(-.6deg)}.home-memories .memory-grid article:nth-child(even){transform:rotate(.8deg)}.home-memories .memory-grid img{width:100%;aspect-ratio:1.3;object-fit:cover;border-radius:2px}.home-memories .memory-grid h3{font-size:20px;margin:12px 4px 3px}.home-memories .memory-grid p{margin:0 4px;color:var(--stitch-secondary)}
/* The same keepsake treatment covers connection, memories, chat, calendar, and account flows. */
#connection-body>.card:first-child{background:#f9f2ed}#connection-body fieldset,#connection-body .card{box-shadow:var(--shadow)}#connection-body .home-columns{gap:12px}#connection-body .home-columns p{background:#fff;border-radius:20px;padding:16px}.sc-toolbar{align-items:center}.sc-toolbar button[data-sc-new],.sc-toolbar button[data-sc-mode="list"]{background:var(--stitch-primary);color:#fff}.sc-toolbar button[data-sc-layout],.sc-toolbar button[data-sc-mode]{box-shadow:none}.sc-grid{gap:20px}.sc-grid .sc-entry{border-radius:32px;background:#fff;box-shadow:0 8px 25px #49343b0c}.sc-grid .sc-photo{max-height:420px;aspect-ratio:1.16;object-fit:cover;border-radius:18px}.sc-grid .sc-entry:has(.sc-photo){position:relative}.sc-grid .sc-entry h2,.sc-grid .sc-entry h3{font-size:26px}.sc-calendar{border-left-color:#f7b4c8}.chat-message{background:#fff;border:0;border-radius:26px;box-shadow:0 5px 14px #49343b0a}.calendar-day{background:#fff;border:0;border-radius:18px;box-shadow:0 2px 8px #49343b0a}.account-wrap{box-shadow:0 16px 45px #49343b12;border-radius:32px}.account-art{background:linear-gradient(145deg,#ffd9df,#f9f2ed 65%,#eaddff)}.account-panel{background:#fff}.settings-list{background:#fff}.letter{border-radius:24px}.map-preview,.couple-map{border:0;border-radius:26px}
[data-theme=dark]{--cream:#241d23;--paper:#30262c;--surface:#30262c;--subtle:#44313b;--border:#6b5060;--line:#56414e;--ink:#f3e6e9;--muted:#d7b6c2;--accent:#efb4c7;--berry:#efb4c7;--stitch-primary:#d78ca6;--stitch-secondary:#d7b6c2;--stitch-soft:#382b33;--stitch-white:#30262c;--blush:#573c49;--shadow:0 10px 28px #0002;color:var(--ink);background:var(--cream)}[data-theme=dark] .topbar,[data-theme=dark] .bottom-nav{background:#241d23ee}[data-theme=dark] .card,[data-theme=dark] .home-daily .card,[data-theme=dark] .love-story,[data-theme=dark] .sc-grid .sc-entry,[data-theme=dark] .chat-message,[data-theme=dark] .calendar-day{background:#30262c!important}[data-theme=dark] .home-location .card,[data-theme=dark] .home-moods .card,[data-theme=dark] #connection-body>.card:first-child{background:#382b33!important}[data-theme=dark] .home-countdown .card{background:#913654!important}[data-theme=dark] .card h2,[data-theme=dark] .card h3,[data-theme=dark] h1,[data-theme=dark] h2,[data-theme=dark] h3{color:var(--ink)}[data-theme=dark] .home-countdown .card h2{color:#fff}[data-theme=dark] button,[data-theme=dark] input,[data-theme=dark] textarea,[data-theme=dark] select{color:var(--ink);background:#44313b}[data-theme=dark] .button-primary,[data-theme=dark] button[type=submit],[data-theme=dark] form>button:not([type]){background:#a54b6b;color:#fff}[data-theme=dark] .bottom-nav button[aria-current=page]{background:#513544;color:#f8d7e3}[data-theme=dark] .partner-ribbon .partner-chip{background:transparent}[data-theme=dark] .home-quick-actions button{background:#382b33;color:#f1becd}
@media(max-width:760px){.app-frame{padding:0 16px 115px}.topbar{height:76px}.main-content{padding-top:20px;padding-bottom:75px}.privacy-note{font-size:0}.privacy-note .material-symbols-outlined{font-size:24px}.brand-copy strong{font-size:21px}.brand-copy small{font-size:10px}.panel{padding:23px;margin:16px 0;border-radius:30px}.home-greeting h1{font-size:30px}.home-greeting .button{font-size:12px;padding:8px 12px}.home-columns{display:block}.home-columns .panel{height:auto}.home-section-title{margin-top:30px}.love-story{padding:27px 18px}.love-story .love-stat{font-size:56px}.love-story .love-caption{font-size:17px}.partner-ribbon .partner-chip img,.partner-ribbon .partner-chip .avatar-initial{width:58px;height:58px}.partner-ribbon::before{top:29px}.bottom-nav{bottom:max(10px,env(safe-area-inset-bottom));padding:7px}.bottom-nav button{font-size:10px;min-height:53px}.bottom-nav button .material-symbols-outlined{font-size:23px}.sc-grid{grid-template-columns:1fr}.sc-entry{padding:18px}.home-memories .memory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-memories .memory-grid h3{font-size:16px}.home-memories .memory-grid p{font-size:11px}}
@media(max-width:420px){.app-frame{padding-left:13px;padding-right:13px}.topbar .brand>img{width:31px;height:31px}.brand-copy strong{font-size:19px}.home-greeting{align-items:flex-start}.home-greeting .button{min-width:85px}.partner-ribbon .partner-chip{min-width:68px;font-size:12px}.milestone-progress p{font-size:11px}.home-memories .memory-grid{gap:10px}.bottom-nav{width:calc(100% - 16px)}.bottom-nav button{font-size:9px}.bottom-nav button .material-symbols-outlined{font-size:21px}}
@media(prefers-reduced-motion:reduce){button,.button{transition:none!important}}

/* Mobile hierarchy and shared control sizing. Keep this block last so the
   feature-specific styles above inherit one consistent surface system. */
:root{--cream:#fff8f3;--paper:#fffdfb;--surface:#fff;--subtle:#f6efeb;--border:#e8d8d5;--line:#e8d8d5;--ink:#49343b;--muted:#705d64;--stitch-secondary:#70505c;--stitch-tertiary:#8b5268;--focus:#8b5268;--shadow:0 10px 28px rgba(73,52,59,.08);color-scheme:light}
[data-theme=dark]{--cream:#241d23;--paper:#30262c;--surface:#30262c;--subtle:#44313b;--border:#725a67;--line:#5e4854;--ink:#f3e6e9;--muted:#d7b6c2;--stitch-secondary:#e1c6cf;--stitch-tertiary:#f1b7cb;--focus:#f1b7cb;color-scheme:dark}
button,a,summary,input,textarea,select{min-height:44px}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline-color:var(--focus)}
.bottom-nav[hidden]{display:none!important}
.bottom-nav{padding-bottom:max(8px,env(safe-area-inset-bottom));box-shadow:0 8px 32px rgba(73,52,59,.15);border:1px solid color-mix(in srgb,var(--border) 80%,transparent)}
.bottom-nav button{min-height:52px}
.life-mobile-picker{display:none}
.life-section-nav{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;padding:4px 0 10px;margin:0 0 15px}
.life-section-nav button{flex:0 0 auto;min-height:46px}
.life-section-nav button[aria-pressed=true]{background:var(--stitch-primary);color:#fff}
.account-section{margin:12px 0;border:1px solid var(--border);border-radius:20px;background:var(--paper);overflow:hidden}
.account-section>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:12px 17px;color:var(--ink);font-weight:700;cursor:pointer;list-style:none}
.account-section>summary::-webkit-details-marker{display:none}
.account-section>summary::after{content:'expand_more';font:24px/1 'Material Symbols Outlined';color:var(--stitch-secondary)}
.account-section[open]>summary::after{content:'expand_less'}
.account-section>section{margin:0;padding:18px;border:0;border-top:1px solid var(--border);border-radius:0;box-shadow:none}
.life-paper{background:var(--paper)!important;border-color:var(--border)}
.life-paper-rose,.life-paper-lavender,.life-paper-peach{background:var(--subtle)!important}
.life-entry-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.life-entry-actions button,.life-section-nav button,.sc-toolbar button{min-height:46px}
.chat-actions button{min-height:44px!important}
.chat-composer textarea{font-size:16px;line-height:1.45}
.chat-history{scroll-behavior:smooth;overscroll-behavior:contain}
.sc-toolbar{display:flex;flex-wrap:wrap;gap:8px}
.sc-toolbar button{min-height:44px}
.sc-grid img,.sc-photo{background:var(--subtle)}
.main-content img{height:auto}
.sc-meta,.privacy-note,.muted-note{color:var(--stitch-secondary)}
#notice:not(:empty){position:sticky;top:8px;z-index:850;padding:12px 15px;border:1px solid var(--border);background:var(--paper);color:var(--ink);box-shadow:var(--shadow)}
@media(max-width:760px){
 .app-frame{padding-bottom:calc(112px + env(safe-area-inset-bottom))}
 .main-content{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
 .life-mobile-picker{display:block;margin:8px 0 12px;font-weight:700;color:var(--stitch-secondary)}
 .life-mobile-picker select{display:block;width:100%;margin-top:6px;min-height:48px;border:1px solid var(--border);border-radius:14px;padding:8px 12px;background:var(--paper);color:var(--ink)}
 .life-section-nav{display:none}
 .life-calendar-grid{display:none!important}
 .life-calendar-agenda{display:grid;gap:10px}
 .life-agenda-day{display:grid;gap:8px;padding:14px;border:1px solid var(--border);border-radius:16px;background:var(--paper)}
 .sc-toolbar[aria-label="Scrapbook collections"]{position:relative;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none;padding:2px 1px 8px}
 .sc-toolbar[aria-label="Scrapbook collections"]::-webkit-scrollbar{display:none}
 .sc-toolbar[aria-label="Scrapbook collections"]>*{flex:0 0 auto}
 .sc-toolbar[data-sc-search]{display:grid;grid-template-columns:1fr;align-items:stretch}
 .sc-toolbar[data-sc-search]>*{min-width:0}
 .chat-composer{padding:12px!important}
 .chat-composer textarea{min-height:48px}
 .chat-composer button[type=submit]{min-height:48px}
 .account-section>section{padding:16px}
}
@media(max-width:380px){
 .bottom-nav{gap:1px;padding:5px;width:calc(100% - 12px)}
 .bottom-nav button{font-size:9px;min-height:50px;padding:4px 2px}
 .bottom-nav button .material-symbols-outlined{font-size:21px}
 .home-greeting .button{min-width:0}
}
@media(pointer:coarse){button,.button,a,summary,select{min-height:48px}.bottom-nav button{min-height:52px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}button:active,.button:active{transform:none}}
[data-theme=dark] .life-section-nav button[aria-pressed=true],[data-theme=dark] .bottom-nav button[aria-current=page]{background:#513544;color:#f8d7e3}
[data-theme=dark] .sc-toolbar button[data-sc-new],[data-theme=dark] .sc-toolbar button[data-sc-mode="list"]{background:#a54b6b;color:#fff}
.life-calendar-agenda{display:none}
.connection-tabs button[aria-pressed=true]{background:var(--stitch-primary);color:#fff}
@media(max-width:760px){.life-calendar-grid{display:none!important}.life-calendar-agenda{display:grid;gap:10px}}
[data-theme=dark] .connection-tabs button[aria-pressed=true]{background:#513544;color:#f8d7e3}
.connection-chat>.eyebrow,.connection-chat>h1,.connection-chat>.intro{display:none}.connection-chat .connection-tabs{position:sticky;top:78px;z-index:50;margin:0 -13px 10px;padding:7px 13px;background:var(--cream)}.connection-chat .connection-tabs button[aria-selected=true]{background:var(--stitch-primary);color:#fff}.connection-chat #connection-body .eyebrow{display:none}.connection-chat #connection-body h1{font-size:30px;margin:12px 0 3px}.connection-chat .chat-subtitle{margin:0 0 12px;color:var(--stitch-secondary)}.connection-chat .chat-tools{margin:0 0 10px}.connection-chat .chat-tools summary{font-size:13px;color:var(--stitch-secondary);font-weight:700}.connection-chat .chat-tools form{padding:14px 0}.connection-chat .chat-history{min-height:45vh;max-height:53vh;border-radius:20px;background:color-mix(in srgb,var(--cream) 65%,var(--paper));padding:10px}.connection-chat [data-chat-state]{font-size:12px;color:var(--stitch-secondary);margin:4px 0}.connection-chat .chat-composer{margin:10px 0 0;padding:18px;border-radius:25px}.connection-chat .chat-composer textarea{min-height:64px}.connection-chat [data-chat-gallery-panel]:empty{display:none}
.connection-chat #connection-body>section{display:flex;flex-direction:column;height:calc(100dvh - 243px);min-height:360px;overflow:hidden}.connection-chat .chat-history{flex:1;min-height:0;max-height:none;overflow:auto}.connection-chat .chat-composer{flex:none;padding:12px 14px}.connection-chat .chat-composer form{gap:7px}.connection-chat .chat-composer label{font-size:12px}.connection-chat .chat-composer textarea{min-height:55px;max-height:110px}.connection-chat .chat-composer button[type=submit]{min-height:43px}.connection-chat .chat-send-options summary{font-size:13px;font-weight:700;color:var(--stitch-primary)}.connection-chat .chat-send-options[open]{max-height:180px;overflow:auto}.connection-chat .chat-send-options label{display:block;margin:9px 0}.connection-chat .chat-send-options p{font-size:11px}.connection-chat [data-chat-pending]:empty{display:none}.connection-chat [data-chat-older][hidden]{display:none}
.chat-bubble-tools{margin-top:7px}.chat-bubble-tools summary{width:max-content;color:var(--stitch-primary);font-size:12px;font-weight:700}.chat-bubble-tools .chat-actions{padding-top:8px}.chat-bubble p:empty{display:none}
.connection-chat #connection-body h1,.connection-chat .chat-subtitle{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.connection-chat .chat-tools{margin-top:5px}
.chat-expiry{display:block;margin:3px 0 6px;color:var(--stitch-primary);font-size:11px;font-weight:700}
.eyebrow .material-symbols-outlined{font-size:16px}.connection-tabs{margin:18px 0 24px;overflow-x:auto;flex-wrap:nowrap;padding-bottom:5px}.connection-tabs button{flex:0 0 auto;background:#f3ede8;color:var(--stitch-secondary)}.connection-tabs button:hover,.connection-tabs button:focus-visible{background:#fdb9ce;color:#7a4658}.activity-intro{background:#f9f2ed}.activity-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:20px}.activity-tile{display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-height:220px;white-space:normal;padding:22px;background:#fff;border-radius:24px;box-shadow:0 5px 15px #49343b0a;color:var(--ink)}.activity-tile:nth-child(even){background:#f3ede8}.activity-tile>.material-symbols-outlined{display:grid;place-items:center;width:48px;height:48px;margin-bottom:18px;border-radius:50%;background:#ffd9df;color:#a23354;font-size:28px}.activity-tile:nth-child(3n)>.material-symbols-outlined{background:#eaddff;color:#65518e}.activity-tile strong{font:600 21px/1.2 "Playfair Display",Georgia,serif;color:var(--ink)}.activity-tile small{display:block;margin:8px 0 14px;color:var(--stitch-secondary);font:400 13px/1.45 "Nunito Sans",sans-serif}.activity-tile .tile-action{margin-top:auto;color:var(--stitch-primary);font-size:12px;font-weight:700}.activity-tile:hover{background:#ffd9df;transform:translateY(-2px)}#questions-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(380px,100%),1fr));gap:16px}#questions-list .card{margin:0}#questions-list .card small:first-child{display:inline-block;margin-bottom:10px;padding:5px 11px;border-radius:999px;background:#f3ede8;color:var(--stitch-secondary)}#questions-list .card h2{font-size:25px}#questions-list .card .row button{font-size:12px}#activity-sessions>.card{background:#fff}.mood-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mood-pair p{margin:0;padding:16px;background:#fff;border-radius:18px;color:var(--stitch-secondary)}[data-theme=dark] .activity-intro,[data-theme=dark] .activity-tile:nth-child(even),[data-theme=dark] .mood-pair p{background:#382b33!important}[data-theme=dark] .activity-tile{background:#30262c;color:var(--ink)}
@media(max-width:900px){.activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.activity-grid{gap:10px}.activity-tile{min-height:196px;padding:17px}.activity-tile strong{font-size:18px}.activity-tile small{font-size:12px}.activity-tile>.material-symbols-outlined{width:42px;height:42px;font-size:25px;margin-bottom:13px}.mood-pair{grid-template-columns:1fr}}
#questions-list .questions-more{grid-column:1/-1;justify-self:center;background:#a23354;color:#fff;padding:12px 25px}
.relationship-panel>.eyebrow{margin-bottom:8px}.milestone-hero{text-align:center;position:relative;overflow:hidden;margin:22px 0 32px;padding:28px 20px;border-radius:32px;background:radial-gradient(circle at 90% 8%,#ffe9ed,transparent 35%),#fff;box-shadow:0 7px 20px #49343b09}.milestone-hero .eyebrow{background:#f3ede8}.milestone-day-count{font:600 clamp(56px,8vw,80px)/1 "Playfair Display",Georgia,serif;letter-spacing:-.03em;color:var(--stitch-primary)}.milestone-hero>p:not(.eyebrow){font:italic 18px/1.4 "Playfair Display",Georgia,serif;color:var(--stitch-secondary)}.milestone-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:16px;margin-top:22px;border-radius:20px;background:#f9f2ed;color:var(--stitch-secondary)}.milestone-stats span{display:flex;flex-direction:column;font-size:12px}.milestone-stats strong{font-size:22px;color:var(--ink)}.milestone-timeline{position:relative;display:grid;gap:13px;padding-left:30px;margin:22px 0 28px}.milestone-timeline::before{content:"";position:absolute;left:15px;top:0;bottom:0;border-left:2px solid #f7b4c8}.milestone-item{position:relative;display:flex;gap:15px;padding:18px;border-radius:20px;background:#fff;box-shadow:0 3px 10px #49343b0a}.milestone-item>.material-symbols-outlined{position:absolute;left:-34px;top:17px;display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#ffd9df;color:#a23354;font-size:18px}.milestone-item strong{display:block;color:var(--stitch-primary);font-size:13px;letter-spacing:.04em;text-transform:uppercase}.milestone-item p{margin:4px 0 0}.milestone-item.upcoming{background:#f3ede8}.milestone-item.upcoming>.material-symbols-outlined{background:#eee7e2;color:#897175}.milestone-item button{margin-top:8px;font-size:12px}.relationship-panel details{margin:24px 0}[data-theme=dark] .milestone-hero,[data-theme=dark] .milestone-item{background:#382b33}[data-theme=dark] .milestone-stats,[data-theme=dark] .milestone-item.upcoming{background:#44313b}@media(max-width:500px){.milestone-stats strong{font-size:18px}.milestone-stats span{font-size:10px}.milestone-timeline{padding-left:25px}.milestone-timeline::before{left:11px}.milestone-item>.material-symbols-outlined{left:-30px}}
.home-location #location-partners{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.home-location #location-partners .entry{padding:14px;background:#fff;border:0;border-radius:18px;font-size:13px}.home-location #location-partners .entry p{margin:3px 0 0}.home-location #location-partners .distance-count{grid-column:1/-1;font:600 21px/1.3 "Playfair Display",Georgia,serif;color:var(--stitch-primary);margin:3px 0}.home-location #location-map-details{margin-top:13px;border-top:1px solid #dcc0c4}.home-location #location-map-details summary{color:var(--stitch-primary)}.home-location .row{margin:14px 0}.home-location .row button{font-size:12px;padding:8px 12px}.connection-tabs{scrollbar-width:none}.connection-tabs::-webkit-scrollbar{display:none}.relationship-panel{scroll-margin-top:95px}[data-theme=dark] .home-location #location-partners .entry{background:#44313b}@media(max-width:420px){.home-location #location-partners{grid-template-columns:1fr}}
.milestone-progress progress{appearance:none;-webkit-appearance:none;border:0;background:#e8e1dc}.milestone-progress progress::-webkit-progress-bar{background:#e8e1dc;border-radius:99px}.milestone-progress progress::-webkit-progress-value{background:#a23354;border-radius:99px}.milestone-progress progress::-moz-progress-bar{background:#a23354;border-radius:99px}

/* Touch and chat details: familiar phone-sized targets without hiding controls. */
html{overscroll-behavior-y:none;-webkit-text-size-adjust:100%}button,a,summary,select{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button,.button{transition:transform .12s ease,background-color .16s ease,box-shadow .16s ease}button:active,.button:active{transform:scale(.97)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--stitch-tertiary);outline-offset:3px}.bottom-nav{padding-bottom:max(8px,env(safe-area-inset-bottom))}.bottom-nav button{min-height:58px}.chat-history{scrollbar-width:thin;scroll-padding-bottom:20px}.chat-bubble{border:0!important;box-shadow:0 3px 14px #49343b10;border-radius:20px 20px 20px 6px!important}.chat-bubble.mine{border-radius:20px 20px 6px 20px!important;background:#f9e1e9!important}.chat-composer{box-shadow:0 8px 28px #49343b14}.chat-composer textarea{resize:vertical;min-height:76px}.chat-composer button[type=submit]{width:100%}.chat-timer-note{font-size:12px;color:var(--stitch-secondary);margin:0}.chat-pending{gap:8px}.chat-pending span{position:relative}.chat-pending img{border-radius:12px}.chat-actions button{min-height:38px!important;padding:7px 11px;font-size:12px}[data-theme=dark] .chat-bubble.mine{background:#603b4a!important}@media(max-width:500px){.chat-bubble{max-width:90%;padding:12px 14px}.chat-history{max-height:min(52vh,510px)}input,textarea,select{font-size:16px}}
@media(prefers-reduced-motion:reduce){button,.button{transition:none!important}}
