@layer base,flayz,components,responsive;
@layer base {
:root{--serif:Georgia,'Times New Roman',serif;font-family:'Segoe UI',system-ui,-apple-system,sans-serif;font-size:15px;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:wait;opacity:.6}a{color:var(--accent-ink);text-underline-offset:4px}button,input,select,textarea{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid var(--accent-ink);outline-offset:4px}input:focus,textarea:focus,select:focus{outline:2px solid var(--accent-ink);outline-offset:2px}h1,h2,h3,h4,p{margin:0}h1,h2,h3,h4{font-family:var(--serif);font-weight:400;letter-spacing:-.035em;overflow-wrap:anywhere}h1{font-size:clamp(40px,5vw,66px);line-height:1.05}h2{font-size:34px;line-height:1.15}h3{font-size:27px;line-height:1.2}h4{font-size:21px}p{line-height:1.65}small{font-size:12px}svg{width:23px;height:23px;flex-shrink:0}img{display:block;max-width:100%}button{border:0;background:none}input,textarea,select{min-width:0}button,input,select{min-height:44px}textarea{resize:vertical}hr{border:0;border-top:1px solid var(--line);margin:25px 0}[hidden]{display:none!important}.skip{position:fixed;top:-100px;left:20px;background:var(--surface);padding:15px;z-index:200}.skip:focus{top:10px}::selection{background:var(--coral)}
}

@layer components {
.shell{max-width:1120px;margin:auto;padding:37px 38px 130px}.masthead{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:43px}.brand{font-family:var(--serif);font-size:43px;line-height:1;letter-spacing:-2px;color:var(--ink);text-decoration:none;min-height:auto}.wordmark{font-family:var(--serif);font-size:56px;letter-spacing:-3px;line-height:1.1}.overline{font-size:10px;letter-spacing:3px;text-transform:uppercase;font-weight:500;line-height:1.6}.brand-sub{margin-top:9px;color:var(--muted);font-size:9px;letter-spacing:3.5px;text-transform:uppercase}.row{display:flex;align-items:center;gap:13px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.muted{color:var(--muted)}.small{font-size:12px}.icon-btn.subtle{background:transparent}.icon-btn svg{width:22px;height:22px}.sync-status{font-size:11px;color:var(--muted);display:flex;gap:7px;align-items:center}.dot{width:6px;height:6px;background:#778765;border-radius:50%;display:inline-block}.page-head{display:flex;align-items:end;justify-content:space-between;margin:0 0 25px;gap:18px}.page-head p{color:var(--muted);margin-top:11px}.page-head .overline{margin-top:10px}.btn{text-decoration:none}.btn svg{width:19px;height:19px}.btn.full{width:100%}.text-btn{text-decoration:none}.text-btn svg{width:16px}.danger-text{color:#a33848}.card{padding:25px}.stack{display:grid;gap:18px}.space{margin-top:28px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:31px 0 18px}.section-head h2{font-size:29px}.hero{border-radius:30px;overflow:hidden;position:relative;isolation:isolate;background:#f1c9c7;min-height:430px;padding:37px;color:#35162f;display:flex;flex-direction:column;justify-content:space-between}.hero:before{content:'';position:absolute;inset:0;background:url('/landscape.svg') center 62% / cover;z-index:-2}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,#ffe1ce70,transparent 80%);z-index:-1}.hero .couple-name{font-size:13px;letter-spacing:2px;margin-bottom:14px}.hero .duration{font-size:clamp(37px,4.4vw,59px);line-height:1.1;margin-bottom:9px}.hero .since{font-size:14px;color:#74465f}.hero .mantra{font-size:9px;line-height:2.1;letter-spacing:3px;text-transform:uppercase;margin-top:25px}.hero .mantra:after{content:'';display:block;width:35px;height:1px;background:#794d68;margin-top:9px}.milestone-link{margin-top:70px;padding:19px;gap:15px;text-align:left;width:100%}.milestone-link .overline{font-size:8px;color:var(--accent-ink)}.milestone-link h3{font-size:27px;margin:3px 0}.milestone-link p{font-size:12px;color:var(--muted)}.circle{width:50px;height:50px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--coral)}.circle.lavender{background:var(--lavender)}.circle svg{width:23px;height:23px}.home-grid{display:grid;grid-template-columns:1.28fr 1fr;gap:28px;align-items:start}.home-side .section-head{margin-top:0}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.feature{position:relative;overflow:hidden;border-radius:22px;text-align:left;background:var(--coral);padding:20px 16px;min-height:187px;display:flex;flex-direction:column;gap:14px}.feature:nth-child(2){background:var(--lavender)}.feature:nth-child(3){background:var(--sand)}.feature strong{font:24px/1.1 var(--serif);letter-spacing:-1px}.feature p{color:var(--muted);font-size:12px;line-height:1.5}.feature .circle{width:40px;height:40px;background:#ffffff50}.feature .arrow{margin-left:auto;width:22px;margin-top:auto}.feature:after,.list-tile:after{content:'';position:absolute;width:140%;height:65px;bottom:-35px;left:-15%;border-radius:50%;background:#ffffff35;transform:rotate(-12deg);pointer-events:none}.quote{background:linear-gradient(135deg,var(--surface),var(--sand));padding:25px 28px;border-radius:22px;border:1px solid var(--line);position:relative;overflow:hidden;margin-top:25px}.quote p{font:italic 26px/1.3 var(--serif);position:relative;z-index:1}.quote .overline{font-size:8px;color:var(--muted);margin-top:14px}.quote:after{content:'';position:absolute;width:160px;height:80px;border-radius:50%;background:var(--coral);right:-30px;bottom:-30px;transform:rotate(-15deg)}.empty{padding:37px 25px;text-align:center;border:1px dashed var(--line);border-radius:24px;background:var(--surface)}.empty .circle{margin-bottom:18px}.empty h3{font-size:26px;margin-bottom:10px}.empty p{font-size:13px;max-width:360px;margin:0 auto 19px;color:var(--muted)}.activity{display:flex;gap:13px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.activity p{font-size:12px;color:var(--muted)}.activity h4{font-size:20px;letter-spacing:-.4px}.activity .circle{width:40px;height:40px}.bottom-nav{position:fixed;z-index:20;bottom:0;left:0;right:0;border-top:1px solid var(--line);background:var(--paper);padding:9px 20px max(10px,env(safe-area-inset-bottom));display:flex;justify-content:center;gap:clamp(10px,7vw,95px)}.bottom-nav button{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:65px;color:var(--muted);font-size:11px;padding:6px 7px}.bottom-nav svg{width:23px;height:23px}.bottom-nav button.active{color:var(--accent-ink);font-weight:600}.bottom-nav button.active svg{stroke-width:2.2}.notice{font-size:13px;line-height:1.6;margin-bottom:20px}.notice .row{margin-top:8px}.search{display:flex;align-items:center;border:1px solid var(--line);border-radius:99px;background:var(--surface);padding:0 15px;gap:10px;margin:18px 0}.search input{border:0;background:transparent;color:var(--ink);width:100%;min-height:44px}.search svg{width:18px;color:var(--muted)}.featured-memory{display:grid;grid-template-columns:1.1fr 1fr;overflow:hidden;padding:0;margin-bottom:30px}.memory-cover{min-height:260px;background:url('/landscape.svg') center / cover;position:relative}.memory-cover img{width:100%;height:100%;max-height:420px;object-fit:cover;position:absolute;inset:0}.memory-content{padding:30px;display:flex;flex-direction:column;justify-content:center;gap:15px}.memory-content h2{font-size:34px}.meta{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.meta svg{width:17px;height:17px}.timeline{margin-left:9px;padding-left:27px;border-left:1px solid var(--line);display:grid;gap:17px}.timeline-entry{position:relative}.timeline-entry:before{content:'';position:absolute;width:10px;height:10px;border-radius:50%;background:var(--accent);left:-33px;top:31px;box-shadow:0 0 0 6px var(--coral)}.timeline-entry .card{display:flex;gap:18px;align-items:center}.timeline-entry .date{font-size:9px;letter-spacing:2px;text-transform:uppercase;color:var(--muted);margin-bottom:9px}.timeline-entry p{font-size:13px;color:var(--muted);margin-top:8px;white-space:pre-line}.thumb{width:88px;height:96px;object-fit:cover;border-radius:13px}.tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.tag{padding:5px 12px;border-radius:99px;background:var(--lavender);font-size:10px;color:var(--muted)}.tag:nth-child(even){background:var(--coral)}.planner-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:24px}.calendar{background:var(--sand);border-radius:28px;padding:25px}.calendar h2{font-size:29px}.weekdays,.dates{display:grid;grid-template-columns:repeat(7,1fr);text-align:center}.weekdays{font-size:9px;letter-spacing:2px;color:var(--muted);margin:24px 0 10px}.day{min-height:52px;position:relative;font-family:var(--serif);font-size:22px;border-radius:50%;margin:2px;aspect-ratio:1;display:grid;place-items:center}.day.outside{opacity:.4}.day.selected{background:var(--flayz-accent);color:#1e1621}.day.today{box-shadow:inset 0 0 0 1px var(--accent-ink)}.day.has-event:after{content:'';position:absolute;width:4px;height:4px;bottom:8px;left:calc(50% - 2px);border-radius:50%;background:var(--accent-ink)}.day.selected:after{background:currentColor}.event-card{display:flex;align-items:start;gap:15px;text-align:left;width:100%;padding:22px}.event-card h3{font-size:24px;margin-bottom:10px}.event-card .meta{margin-top:5px}.event-card .circle{width:45px;height:45px}.milestone-card{display:flex;align-items:center;gap:24px;background:var(--lavender);border:0}.ring{width:80px;height:80px;border-radius:50%;background:conic-gradient(#8c709a var(--progress),#cfbdd8 0);display:grid;place-items:center;flex-shrink:0}.ring span{width:64px;height:64px;border-radius:50%;background:var(--lavender);display:grid;place-items:center;font:22px var(--serif)}.milestone-card .overline{font-size:8px}.milestone-card h3{font-size:30px;margin:7px 0}.milestone-card p{font-size:12px;color:var(--muted)}.lists-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.list-tile{position:relative;overflow:hidden;min-height:235px;border-radius:26px;padding:28px;background:var(--coral);text-align:left;display:flex;flex-direction:column;align-items:start}.list-tile.lavender{background:var(--lavender)}.list-tile.sage{background:var(--sage)}.list-tile.sand{background:var(--sand)}.list-tile .circle{background:#ffffff45;margin-bottom:24px;width:58px;height:58px}.list-tile h2{font-size:33px}.list-tile p{font-size:13px;color:var(--muted);margin-top:8px}.list-tile .arrow{position:absolute;right:27px;bottom:22px}.progress{height:7px;border-radius:99px;background:var(--line);overflow:hidden;width:100%;margin-top:11px}.list-tile .progress{width:calc(100% - 35px);height:5px;background:#ffffff55;margin-top:20px}.list-summary{max-width:700px;margin-bottom:24px}.filters{display:flex;gap:7px;overflow-x:auto;margin:23px 0 15px;padding-bottom:5px}.filter{white-space:nowrap}.item-row{display:flex;gap:16px;align-items:center;text-align:left;width:100%;padding:17px 20px;border-radius:20px;background:var(--surface);border:1px solid var(--line);margin-bottom:10px}.item-row .circle{width:43px;height:43px;background:var(--sand)}.item-row h3{font-size:23px}.item-row p{font-size:12px;color:var(--muted);margin-top:5px}.status{padding:7px 12px;background:var(--coral);color:var(--accent-ink);font-size:10px;border-radius:99px;white-space:nowrap}.status.doing{background:var(--lavender);color:var(--ink)}.status.done{background:var(--sage);color:var(--ink)}.suggestion{background:var(--coral);padding:28px;border:0;position:relative;overflow:hidden}.suggestion:after{content:'';background:url('/landscape.svg') center / cover;width:40%;height:100%;position:absolute;right:0;top:0;mask-image:linear-gradient(90deg,transparent,#000);pointer-events:none}.suggestion>*{position:relative;z-index:1}.suggestion h3{font-size:30px;max-width:75%;margin:12px 0 8px}.suggestion p{font-size:13px;color:var(--muted);margin-bottom:17px}.profile-hero{min-height:260px;display:flex;align-items:center;justify-content:center;text-align:center;border-radius:28px;background:#f1cac9 url('/landscape.svg') center 58% / cover;color:#35162f;padding:30px;margin-bottom:22px}.avatars{display:flex;justify-content:center;margin-bottom:18px}.avatar{width:71px;height:71px;border-radius:50%;border:2px solid #fff5e7;display:grid;place-items:center;font:32px var(--serif);background:#e8a99fb3;overflow:hidden}.avatar+ .avatar{margin-left:-13px;background:#bba0c9ba}.avatar img{width:100%;height:100%;object-fit:cover}.profile-hero h2{font-size:35px}.profile-hero .overline{margin-top:10px;font-size:9px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.setting-row{width:100%;display:flex;align-items:center;gap:17px;text-align:left;padding:21px;border-radius:21px;background:var(--coral)}.setting-row:nth-child(even){background:var(--lavender)}.setting-row p{font-size:12px;color:var(--muted);margin-top:6px}.setting-row h3{font-size:25px}.setting-row .circle{background:#ffffff40}.setting-row>svg{width:18px}.profile-foot{display:flex;align-items:center;justify-content:space-between;margin:28px 0 10px;font-size:11px;color:var(--muted)}.auth-shell{min-height:100dvh;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:none;margin:0}.auth-art{position:relative;background:#edc4c3 url('/landscape.svg') center / cover;min-height:100dvh;color:#35162f;padding:60px;display:flex;flex-direction:column;justify-content:space-between}.auth-art h1{font-size:clamp(45px,5.2vw,76px);max-width:520px;margin-top:65px}.auth-art p{max-width:340px;color:#704c61;margin-top:22px;font-size:15px}.auth-art .overline{margin-top:12px}.auth-form-wrap{padding:55px 50px;display:flex;align-items:center;justify-content:center}.auth-form{width:100%;max-width:380px}.auth-form h2{font-size:39px;margin:10px 0 14px}.auth-form>p{color:var(--muted);font-size:13px;margin-bottom:26px}.auth-tabs{display:flex;gap:23px;margin-bottom:30px;border-bottom:1px solid var(--line)}.auth-tabs button{padding:8px 0 12px;color:var(--muted);font-size:12px}.auth-tabs .active{border-bottom:2px solid var(--accent-ink);color:var(--ink)}.field{display:grid;gap:8px;font-size:12px;color:var(--muted);margin-bottom:18px}.field input[type=color]{padding:5px;width:60px;height:44px}.field textarea{min-height:95px}.check{display:flex;gap:10px;align-items:start;font-size:12px;color:var(--muted);line-height:1.6;margin:16px 0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.divider-label{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:10px;margin:23px 0}.divider-label:before,.divider-label:after{content:'';height:1px;flex:1;background:var(--line)}.auth-foot{font-size:11px;color:var(--muted);margin-top:25px;line-height:1.7}.local-note{font-size:11px;line-height:1.6;color:var(--muted);margin:13px 0 0}.setup-shell{max-width:600px;margin:0 auto;padding:50px 25px}.setup-shell .brand{display:inline-block;margin-bottom:45px}.setup-shell h1{font-size:48px;margin:13px 0 20px}.setup-shell>p{margin-bottom:25px;color:var(--muted)}.dialog-head{display:flex;gap:15px;justify-content:space-between;align-items:center;padding:23px 26px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--paper);z-index:3}.dialog-head h2{font-size:29px}.dialog-body{padding:24px 26px}.dialog-actions{display:flex;justify-content:end;gap:10px;align-items:center;flex-wrap:wrap;margin-top:24px}.dialog-body>p{font-size:13px;color:var(--muted);margin-bottom:18px}.field-row{padding:16px;border:1px solid var(--line);border-radius:15px;margin-bottom:13px}.field-row .row{margin-bottom:12px}.field-row .field{margin-bottom:12px}.field-row .icon-btn{width:38px;height:38px;min-height:38px}.field-row .check{margin:0}.detail-photo{width:100%;max-height:330px;object-fit:cover;border-radius:15px;margin-bottom:20px}.detail-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:14px}.recovery-code{padding:20px;border:1px solid var(--line);background:var(--surface);border-radius:15px;font-family:monospace;overflow-wrap:anywhere;user-select:all;margin:20px 0}.mode-choices{display:flex;gap:8px;margin-bottom:20px}.mode-choices .btn{flex:1;padding:10px}.mode-choices .selected{border-color:var(--accent-ink);background:var(--coral);color:var(--ink)}#toast:empty{display:none}.loading{display:grid;place-content:center;min-height:100dvh;text-align:center;gap:20px}.upload-preview{width:100px;height:90px;object-fit:cover;border-radius:12px;margin-bottom:15px}.device{padding:15px 0;border-bottom:1px solid var(--line)}.device p{font-size:11px;overflow-wrap:anywhere}.device strong{font-size:13px}.import-summary{padding:18px;background:var(--lavender);border-radius:15px;font-size:13px;margin:18px 0}.privacy-list{display:grid;gap:12px;font-size:13px;line-height:1.7;color:var(--muted);padding-left:20px}.install-banner{margin-top:15px}
@media(prefers-reduced-motion:no-preference){.page-content{animation:enter .2s ease}.btn,.icon-btn,.feature,.list-tile{transition:filter .18s,transform .18s}.btn:hover,.icon-btn:hover{filter:brightness(.96)}.feature:hover,.list-tile:hover{transform:translateY(-2px)}@keyframes enter{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:none}}}
}
@layer responsive {
.milestone-link .circle{background:var(--flayz-accent);color:#1e1621}

@media(min-width:1400px){.shell{padding-top:50px}.masthead{margin-bottom:55px}}
@media(max-width:900px){.shell{padding:30px 26px 125px}.home-grid{grid-template-columns:1fr}.home-side .section-head{margin-top:2px}.hero{min-height:470px}.hero .duration{font-size:60px}.feature{min-height:180px}.settings-grid{grid-template-columns:1fr 1fr}.planner-grid{grid-template-columns:1fr 1fr}.calendar{padding:18px}.day{min-height:37px;font-size:20px}.calendar h2{font-size:24px}.auth-art{padding:40px}.auth-form-wrap{padding:40px 30px}.auth-art h1{font-size:52px}}
@media(max-width:640px){.shell{padding:26px 19px 120px}.masthead{margin-bottom:31px;align-items:start}.brand{font-size:38px}.brand-sub{font-size:8px;letter-spacing:2.7px;margin-top:8px}.masthead>.row{gap:4px}.sync-status{display:none}.icon-btn{width:42px;height:42px;min-height:42px}.page-head{margin-bottom:22px;align-items:center}.page-head h1{font-size:43px}.page-head p{font-size:13px;line-height:1.5}.page-head .btn{padding:11px 15px;font-size:12px}.page-head .btn .button-label{display:none}.page-head .btn svg{width:20px}.hero{padding:29px 26px 18px;min-height:395px;border-radius:25px}.hero .duration{font-size:43px}.hero .couple-name{font-size:12px;letter-spacing:1.5px}.hero .since{font-size:12px}.hero .mantra{font-size:8px;margin-top:23px}.milestone-link{margin-top:65px;padding:16px 13px;gap:12px;border-radius:19px}.milestone-link h3{font-size:25px}.milestone-link .circle{width:44px;height:44px}.milestone-link .overline{letter-spacing:2px;font-size:8px}.milestone-link p{font-size:11px}.home-grid{gap:27px}.section-head h2{font-size:28px}.section-head .text-btn{font-size:11px}.feature-grid{gap:9px}.feature{padding:16px 12px 13px;border-radius:18px;min-height:174px;gap:11px}.feature strong{font-size:21px;letter-spacing:-.7px}.feature p{font-size:11px;line-height:1.5}.feature .circle{width:37px;height:37px}.feature .circle svg{width:20px}.quote{padding:25px 23px;margin-top:22px}.quote p{font-size:24px}.bottom-nav{padding-left:6px;padding-right:6px;justify-content:space-around;gap:0}.bottom-nav button{font-size:10px;min-width:55px;gap:7px}.bottom-nav svg{width:23px;height:23px}.featured-memory{grid-template-columns:1fr}.memory-cover{min-height:205px}.memory-content{padding:24px;gap:13px}.memory-content h2{font-size:32px}.timeline{padding-left:22px}.timeline-entry:before{left:-28px}.timeline-entry .card{padding:22px 18px;gap:10px}.timeline-entry h3{font-size:25px}.timeline-entry p{font-size:12px}.timeline-entry .thumb{width:59px;height:75px}.timeline-entry .icon-btn{width:32px;height:36px;min-height:36px;background:transparent}.planner-grid{grid-template-columns:1fr}.calendar{padding:25px 18px}.calendar h2{font-size:30px}.day{min-height:43px;font-size:24px}.weekdays{margin-top:22px}.event-card h3{font-size:26px}.event-card{padding:23px 19px}.milestone-card{padding:23px}.lists-grid{gap:12px}.list-tile{padding:23px 19px;min-height:235px;border-radius:23px}.list-tile h2{font-size:28px;letter-spacing:-1px}.list-tile .circle{width:54px;height:54px;margin-bottom:23px}.list-tile p{font-size:12px}.list-tile .arrow{right:17px;bottom:17px}.item-row{padding:15px 13px;gap:10px}.item-row h3{font-size:22px}.item-row .circle{width:36px;height:36px}.item-row .circle svg{width:18px}.item-row .status{font-size:9px;padding:7px 9px}.item-row>svg{width:14px}.suggestion{padding:25px}.suggestion h3{font-size:29px}.settings-grid{grid-template-columns:1fr;gap:11px}.setting-row{padding:19px;gap:15px}.setting-row h3{font-size:25px}.profile-hero{min-height:240px}.profile-hero h2{font-size:32px}.auth-shell{display:flex;flex-direction:column}.auth-art{min-height:285px;padding:28px 28px 30px;background-position:center 45%}.auth-art h1{font-size:39px;margin-top:30px;max-width:330px}.auth-art .wordmark{font-size:40px}.auth-art p{display:none}.auth-art>.overline{display:none}.auth-form-wrap{padding:30px 26px 45px}.auth-form{max-width:440px}.auth-form h2{font-size:34px}.setup-shell{padding:30px 23px}.setup-shell h1{font-size:43px}dialog{width:calc(100% - 16px);max-height:94dvh;border-radius:23px}.dialog-head{padding:20px}.dialog-body{padding:22px 20px}.dialog-head h2{font-size:28px}.form-grid{gap:0 11px}.ring{width:75px;height:75px}.ring span{width:59px;height:59px}.page-head .overline{letter-spacing:2px;font-size:9px}.profile-foot{flex-wrap:wrap;gap:10px}.status-inline{font-size:10px}.card{padding:22px}.card.event-card{padding:20px}.sync-info{display:block}}
@media(max-width:360px){.shell{padding-left:14px;padding-right:14px}.feature strong{font-size:19px}.feature{padding:13px 10px}.hero .duration{font-size:36px}.list-tile{padding:20px 15px}.list-tile h2{font-size:25px}.item-row .circle{display:none}.brand{font-size:34px}}
}

/* Startup and authentication share the desktop canvas, but are separate mobile screens. */
@layer responsive {
  .auth-shell > section { min-width: 0; }
  .startup-action, .auth-back { display: none; }
  @media (min-width: 768px) {
    .auth-shell { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 767px) {
    .auth-shell { display: block; min-height: 100svh; }
    .auth-shell[data-auth-screen="startup"] .auth-form-wrap,
    .auth-shell[data-auth-screen="login"] .auth-art { display: none; }
    .auth-art {
      min-height: 100svh;
      padding: max(32px, env(safe-area-inset-top)) 28px max(29px, env(safe-area-inset-bottom));
      background-position: center;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 60px;
    }
    .auth-art .wordmark { font-size: 44px; }
    .auth-art h1 {
      font-size: clamp(40px, 10.5vw, 60px);
      max-width: 520px;
      margin-top: clamp(48px, 8svh, 80px);
    }
    .auth-art p { display: block; font-size: 14px; margin-top: 24px; }
    .auth-art > .overline { display: block; font-size: 8px; letter-spacing: 2.5px; }
    .startup-action { display: block; margin-top: clamp(36px, 7svh, 64px); }
    .startup-action .btn { min-width: 210px; min-height: 52px; justify-content: space-between; }
    .auth-form-wrap {
      min-height: 100svh;
      padding: max(24px, env(safe-area-inset-top)) 26px max(40px, env(safe-area-inset-bottom));
      align-items: center;
    }
    .auth-form { width: 100%; max-width: 440px; }
    .auth-back { display: inline-flex; margin-bottom: 28px; min-height: 44px; }
    #startup-title:focus, #auth-title:focus { outline: none; }
  }
}

@layer responsive {
  .hero.home-hero { min-height: 0; padding: 27px 30px 23px; }
  .home-hero .couple-name { font-size: 21px; letter-spacing: 1px; line-height: 1.35; margin-bottom: 12px; }
  .home-hero .duration { font-size: clamp(38px, 4vw, 55px); margin-bottom: 8px; }
  .home-hero .milestone-link { margin-top: 24px; padding: 15px 18px; }
  .home-hero .milestone-link h3 { font-size: 27px; }
  .home-section .section-head { margin-top: 22px; }
  .home-section .event-card { background: var(--coral); border-color: transparent; }
  .home-list-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .list-tile.home-list-tile { min-height: 180px; padding: 22px; }
  .home-list-tile .circle { width: 43px; height: 43px; margin-bottom: 17px; }
  .home-list-tile h3 { font-size: 29px; }
  .home-list-tile .progress { margin-top: auto; width: calc(100% - 28px); }
  .home-list-tile p { margin-bottom: 20px; }
  .home-memory-card { display: flex; align-items: center; gap: 22px; width: 100%; text-align: left; }
  .home-memory-image { flex-shrink: 0; width: 145px; height: 120px; border-radius: 17px; overflow: hidden; display: grid; place-items: center; background: var(--lavender) url('/landscape.svg') center / cover; color: #35162f; }
  .home-memory-image img { width: 100%; height: 100%; object-fit: cover; }
  .home-memory-image > svg { width: 35px; height: 35px; }
  .home-memory-card h3 { font-size: 30px; margin: 7px 0 10px; }
  .home-memory-card .meta { margin-top: 6px; }
  .home-memory-excerpt { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 12px; }
  .home-recent { margin-top: 30px; }
  .history-entry { width: 100%; text-align: left; padding: 17px 0; }
  .history-entry h3 { font-size: 24px; letter-spacing: -.5px; }
  .activity-author { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
  .activity-details { display: block; color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 5px; }
  .activity-details strong { color: var(--ink); font-weight: 500; }
  .activity-pending { display: block; font-size: 10px; color: var(--accent-ink); margin-top: 5px; }
  .history-link { display: flex; justify-content: flex-end; margin-top: 12px; }
  .history-link .text-btn { min-height: 44px; flex-direction: row-reverse; }
  .history-intro { margin-bottom: 18px; }
  @media (min-width: 768px) {
    .hero.home-hero { flex-direction: row; align-items: center; gap: 30px; padding: 30px; }
    .home-hero .milestone-link { margin-top: 0; max-width: 390px; }
  }
  @media (max-width: 640px) {
    .hero.home-hero { padding: 23px 22px 18px; }
    .home-hero .couple-name { font-size: 19px; margin-bottom: 10px; }
    .home-hero .duration { font-size: 42px; }
    .home-hero .milestone-link { padding: 13px 12px; gap: 11px; margin-top: 22px; }
    .home-hero .milestone-link h3 { font-size: 25px; }
    .home-hero .milestone-link .circle { width: 41px; height: 41px; }
    .home-list-grid { gap: 9px; }
    .list-tile.home-list-tile { padding: 17px 12px; min-height: 183px; border-radius: 19px; }
    .home-list-tile .circle { width: 36px; height: 36px; margin-bottom: 16px; }
    .home-list-tile .circle svg { width: 20px; height: 20px; }
    .home-list-tile h3 { font-size: 23px; }
    .home-list-tile p { font-size: 10px; line-height: 1.6; margin-bottom: 22px; }
    .home-list-tile .arrow { width: 18px; right: 12px; bottom: 15px; }
    .home-memory-card { padding: 19px 16px; gap: 14px; }
    .home-memory-image { width: 78px; height: 96px; border-radius: 13px; }
    .home-memory-card h3 { font-size: 25px; }
    .home-memory-card .overline { font-size: 8px; letter-spacing: 1.8px; }
    .home-memory-card .meta { font-size: 11px; }
    .home-memory-excerpt { display: none; }
    .home-memory-card > svg { width: 16px; }
    .history-entry h3 { font-size: 23px; }
    .home-section .section-head .text-btn { font-size: 11px; }
  }
}
@layer responsive {
  .home-menu { position: relative; z-index: 40; }
  .home-menu-panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 235px; padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 14px 40px #24142825; }
  .home-menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px; text-align: left; border-radius: 11px; font-size: 13px; }
  .home-menu-item:hover, .home-menu-item:focus-visible { background: var(--lavender); }
  .home-menu-item svg { width: 19px; height: 19px; }
  .home-widgets { display: grid; gap: 10px; }
  .home-widget { min-width: 0; }
  .home-widget:first-child .home-section .section-head { margin-top: 0; }
  .home-widget .home-recent { margin-top: 20px; }
  .home-edit-toolbar { position: sticky; top: 8px; z-index: 25; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 20px; margin-bottom: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 6px 24px #21132012; }
  .home-edit-heading { flex: 1; min-width: 180px; }
  .home-edit-heading h2 { font-size: 27px; }
  .home-edit-heading h2:focus { outline: none; }
  .home-edit-heading p { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
  .home-edit-actions { display: flex; align-items: center; justify-content: flex-end; gap: 17px; }
  .home-edit-actions .text-btn { min-height: 44px; }
  .home-edit-error { width: 100%; color: var(--accent-ink); font-size: 12px; line-height: 1.6; }
  .home-editing { gap: 20px; }
  .home-editing .home-widget { border: 1px dashed var(--muted); padding: 15px; border-radius: 24px; }
  .home-widget-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; }
  .home-widget-label { font-size: 12px; color: var(--muted); font-weight: 600; }
  .home-position-controls { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
  .home-position-controls .icon-btn { min-height: 44px; width: 40px; height: 44px; font-size: 20px; background: var(--lavender); border-radius: 12px; }
  .home-position-controls button:disabled { opacity: .3; cursor: default; }
  .home-drag-handle { cursor: grab; display: grid; place-items: center; width: 40px; height: 44px; min-height: 44px; border-radius: 12px; background: var(--lavender); touch-action: none; user-select: none; }
  .home-drag-handle:active { cursor: grabbing; }
  .home-editing .home-widget .section-head { margin-top: 0; }
  .home-editing .home-widget .home-recent { margin-top: 0; }
  .home-editing .home-widget.is-dragging { opacity: .55; outline: 2px solid var(--accent-ink); outline-offset: 2px; background: var(--lavender); }
  .home-widget-off { min-height: 88px; display: flex; align-items: center; gap: 13px; padding: 17px; border-radius: 16px; background: var(--surface); font-size: 12px; color: var(--muted); }
  .home-widget-off .circle { width: 40px; height: 40px; }
  .widget-toggle { position: relative; width: 58px; height: 44px; min-height: 44px; flex-shrink: 0; border-radius: 12px; }
  .widget-toggle:before { content: ''; position: absolute; width: 50px; height: 26px; top: 9px; left: 4px; border-radius: 99px; background: var(--line); }
  .widget-toggle[aria-checked=true]:before { background: var(--accent); }
  .widget-toggle-thumb { position: absolute; top: 12px; left: 7px; width: 20px; height: 20px; border-radius: 50%; background: #fffaf7; box-shadow: 0 1px 3px #0002; }
  .widget-toggle[aria-checked=true] .widget-toggle-thumb { left: 31px; }
  .home-no-widgets { padding: 35px 10px; font-size: 14px; line-height: 1.7; text-align: center; }
  .page-content:has(.home-editing) { animation: none; }
  @media (max-width: 640px) {
    .masthead > .row { gap: 7px; }
    .home-edit-toolbar { padding: 15px; gap: 10px; top: 6px; }
    .home-edit-heading { flex-basis: 100%; }
    .home-edit-heading h2 { font-size: 26px; }
    .home-edit-actions { width: 100%; }
    .home-editing .home-widget { padding: 11px; border-radius: 22px; }
    .home-widget-label { font-size: 11px; }
    .home-editing .home-list-grid { gap: 6px; }
    .home-editing .home-list-tile { padding: 14px 9px; }
    .home-editing .home-list-tile h3 { font-size: 21px; }
  }
}

@layer responsive {
  .home-empty-row { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 24px; background: var(--coral); }
  .home-empty-row > .circle { width: 52px; height: 52px; background: #ffffff20; }
  .home-empty-copy { min-width: 0; }
  .home-empty-copy h3 { font-size: 25px; line-height: 1.25; letter-spacing: -.5px; }
  .home-empty-copy p { font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 7px; }
  .home-empty-action { padding: 11px 16px; font-size: 12px; white-space: nowrap; }
  .home-empty-action svg { width: 17px; height: 17px; }
  :root[data-dark=true] .home-empty-row { background: var(--coral); }
  :root[data-dark=true] .home-empty-action { background: var(--flayz-accent); color: #1e1621; }
  @media (max-width: 640px) {
    .home-empty-row { grid-template-columns: 40px minmax(0,1fr) auto; gap: 12px; padding: 18px 15px; border-radius: 21px; }
    .home-empty-row > .circle { width: 40px; height: 40px; }
    .home-empty-row > .circle svg { width: 21px; height: 21px; }
    .home-empty-copy h3 { font-size: 19px; }
    .home-empty-copy p { font-size: 11px; margin-top: 5px; line-height: 1.55; }
    .home-empty-action { padding: 10px 11px; gap: 6px; font-size: 10px; min-height: 44px; }
    .home-empty-action svg { width: 15px; height: 15px; }
  }
  @media (max-width: 360px) {
    .home-empty-row { grid-template-columns: 32px minmax(0,1fr) auto; padding: 16px 12px; gap: 8px; }
    .home-empty-row > .circle { width: 32px; height: 32px; }
    .home-empty-copy h3 { font-size: 17px; }
    .home-empty-action { padding: 9px; font-size: 10px; }
  }
}

@layer responsive {
  .history-action { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; color: var(--ink); background: var(--lavender); }
  .history-action svg { width: 18px; height: 18px; }
  .history-action[data-history-action=created], .history-action[data-history-action=imported] { background: var(--sage); }
  .history-action[data-history-action=deleted], .history-action[data-history-action=joined] { background: var(--coral); }
  .history-action[data-history-action=initial] { background: var(--sand); }
}

@layer responsive {
  .notifications { position: relative; z-index: 45; }
  .notifications-panel { position: absolute; right: 0; top: calc(100% + 12px); width: 410px; max-width: calc(100vw - 36px); max-height: min(650px, calc(100dvh - 135px)); display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 23px; background: var(--surface); box-shadow: 0 15px 50px #21132630; overflow: hidden; }
  .notifications-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
  .notifications-head h2 { font-size: 26px; }
  .notifications-head h2:focus { outline: none; }
  .notifications-head p { font-size: 11px; color: var(--muted); margin-top: 6px; }
  .notifications-head .icon-btn { width: 36px; min-height: 44px; height: 44px; background: transparent; }
  .notifications-content { overflow-y: auto; overscroll-behavior: contain; padding: 0 20px; }
  .notifications-content .history-entry { gap: 11px; }
  .notifications-content .history-entry h3 { font-size: 21px; }
  .notifications-content .history-entry > .circle { width: 34px; height: 34px; }
  .notifications-content .history-entry > .circle svg { width: 18px; height: 18px; }
  .notifications-content .history-action { width: 30px; height: 30px; }
  .notifications-content .history-entry:last-child { border-bottom: 0; }
  .notifications-empty { padding: 25px 0; font-size: 13px; color: var(--muted); }
  .notifications-footer { padding: 8px 20px; display: flex; justify-content: flex-end; border-top: 1px solid var(--line); }
  .notifications-footer .text-btn { min-height: 44px; flex-direction: row-reverse; }
  @media (max-width: 640px) {
    .notifications-panel { position: fixed; top: calc(94px + env(safe-area-inset-top)); left: 16px; right: 16px; width: auto; max-width: none; max-height: calc(100dvh - 130px - env(safe-area-inset-top)); }
    .notifications-head { padding: 17px 16px 14px; }
    .notifications-head h2 { font-size: 24px; }
    .notifications-content { padding: 0 16px; }
    .notifications-content .activity-details { font-size: 10px; }
  }
  @media (max-width: 360px) {
    .masthead { gap: 8px; }
    .masthead .brand { font-size: 32px; }
    .masthead .brand-sub { font-size: 7px; letter-spacing: 2px; }
    .masthead > .row { gap: 4px; }
    .notifications-head h2 { font-size: 21px; }
  }
}

/* Keep Home widget titles secondary to the section headings. */
@layer responsive {
  .home-section .event-card h3, .home-memory-card h3 {
    font-size: 23px;
    line-height: 1.25;
    letter-spacing: -.35px;
    overflow-wrap: anywhere;
  }
  .home-list-tile h3 { font-size: 23px; line-height: 1.25; letter-spacing: -.3px; overflow-wrap: anywhere; }
  .home-list-tile p { margin-bottom: 25px; }
  @media (max-width: 640px) {
    .home-section .event-card h3, .home-memory-card h3 { font-size: 20px; }
    .home-list-tile h3, .home-editing .home-list-tile h3 { font-size: 19px; }
  }
}

@layer responsive {
  .home-event-card { position: relative; isolation: isolate; overflow: hidden; width: 100%; display: grid; grid-template-columns: 56px minmax(0,1fr) 34px; gap: 18px; align-items: center; text-align: left; padding: 18px; border-radius: 20px; background: var(--coral); }
  .home-event-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: #ffffff24; }
  .home-event-icon svg { width: 26px; height: 26px; }
  .home-event-copy { min-width: 0; }
  .home-event-title { font-size: 22px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.025em; margin-bottom: 6px; }
  .home-event-copy .meta { font-size: 12px; gap: 7px; margin-top: 3px; }
  .home-event-copy .meta svg { width: 14px; height: 14px; }
  .home-event-chevron { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #ffffff24; }
  .home-event-chevron svg { width: 19px; height: 19px; }
  .home-event-flourish { position: absolute; z-index: -1; pointer-events: none; width: 100%; height: 70px; left: 0; bottom: 0; }
  .home-event-hill { fill: #ffffff0b; }
  .home-event-line { fill: none; stroke: var(--accent-ink); stroke-width: 1.3; opacity: .75; vector-effect: non-scaling-stroke; }
  @media (max-width: 640px) {
    .home-event-card { grid-template-columns: 48px minmax(0,1fr) 28px; gap: 16px; padding: 14px; border-radius: 17px; }
    .home-event-icon { width: 48px; height: 48px; border-radius: 13px; }
    .home-event-icon svg { width: 23px; height: 23px; }
    .home-event-title { font-size: 17px; margin-bottom: 5px; }
    .home-event-copy .meta { font-size: 10px; gap: 6px; }
    .home-event-copy .meta svg { width: 13px; height: 13px; }
    .home-event-chevron { width: 28px; height: 28px; }
    .home-event-chevron svg { width: 17px; height: 17px; }
  }
}

@layer responsive {
  .list-tile.home-list-tile { min-height: 165px; padding: 18px 16px 15px; border-radius: 19px; gap: 0; }
  .home-list-tile .circle { width: 40px; height: 40px; margin-bottom: 12px; background: #ffffff24; }
  .home-list-tile .circle svg { width: 21px; height: 21px; }
  .home-list-tile h3 { font-size: 21px; line-height: 1.15; letter-spacing: -.35px; position: relative; z-index: 1; }
  .home-list-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: auto; padding-top: 8px; position: relative; z-index: 1; color: var(--muted); font-size: 11px; line-height: 1.4; }
  .home-list-footer .arrow { position: static; width: 18px; height: 18px; color: var(--ink); }
  .home-list-tile:after { height: 45px; bottom: -26px; background: #ffffff20; transform: rotate(-9deg); }
  @media (max-width: 640px) {
    .home-list-grid { gap: 8px; }
    .list-tile.home-list-tile { min-height: 130px; padding: 12px 11px 11px; border-radius: 14px; }
    .home-list-tile .circle { width: 35px; height: 35px; margin-bottom: 9px; }
    .home-list-tile .circle svg { width: 19px; height: 19px; }
    .home-list-tile h3, .home-editing .home-list-tile h3 { font-size: 16px; line-height: 1.15; }
    .home-list-footer { font-size: 9px; gap: 4px; padding-top: 7px; }
    .home-list-footer .arrow { width: 15px; height: 15px; }
  }
}

/* Floating navigation shared by all five tabs. */
@layer responsive {
  .bottom-nav {
    left: 50%; right: auto; bottom: calc(10px + env(safe-area-inset-bottom));
    transform: translateX(-50%); width: min(560px, calc(100% - 16px));
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px; padding: 7px; border: 1px solid var(--line); border-radius: 24px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 8px 28px #21132624, inset 0 1px 0 #ffffff0c;
  }
  .bottom-nav button {
    min-width: 0; min-height: 58px; padding: 7px 2px 6px; gap: 5px;
    border-radius: 19px; font-size: 12px; line-height: 1.2;
    color: var(--muted); transition: background-color .18s, color .18s;
  }
  .bottom-nav svg { width: 24px; height: 24px; }
  .bottom-nav button.active { background: var(--coral); color: var(--accent-ink); font-weight: 600; }
  .bottom-nav button:hover:not(.active) { background: var(--lavender); }
  .bottom-nav button:focus-visible { outline-offset: -2px; }
  :root[data-dark=true] .bottom-nav { background: #2a232de8; border-color: #51404e; }
  :root[data-dark=true] .bottom-nav button.active { background: #533340; color: #ffc0b2; }
  .shell { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
  @media (max-width: 360px) {
    .bottom-nav { gap: 1px; padding: 6px; border-radius: 22px; }
    .bottom-nav button { font-size: 10px; border-radius: 17px; }
    .bottom-nav svg { width: 22px; height: 22px; }
  }
  @media (prefers-reduced-motion: reduce) { .bottom-nav button { transition: none; } }
}

@layer responsive {
  .card.home-memory-card {
    --memory-panel: var(--surface);
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; grid-template-columns: minmax(0,1fr) 42px; align-items: center;
    min-height: 210px; width: 100%; padding: 28px 22px 28px 54%; gap: 16px;
    border: 1px solid var(--line); border-radius: 25px; background: var(--memory-panel); text-align: left;
  }
  .home-memory-card .home-memory-image {
    position: absolute; z-index: -1; inset: 0 auto 0 0; width: 64%; height: 100%;
    border-radius: 0; background: url('/landscape.svg') center / cover;
    mask-image: linear-gradient(90deg, #000 55%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 100%);
  }
  .home-memory-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .home-memory-copy { min-width: 0; }
  .home-memory-card .overline { display: block; font-size: 9px; letter-spacing: 2.5px; color: var(--muted); }
  .home-memory-card h3 { font-size: 25px; line-height: 1.2; margin: 7px 0 16px; letter-spacing: -.6px; overflow-wrap: anywhere; }
  .home-memory-card .meta { font-size: 12px; gap: 8px; margin-top: 7px; }
  .home-memory-card .meta svg { width: 18px; height: 18px; }
  .home-memory-chevron { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--flayz-accent); color: #1e1621; }
  .home-memory-chevron svg { width: 23px; height: 23px; }
  :root[data-dark=true] .home-memory-card { --memory-panel: var(--flayz-card); }
  :root[data-dark=true] .home-memory-chevron { background: var(--accent); }
  @media (max-width: 640px) {
    .card.home-memory-card { min-height: 170px; padding: 22px 14px 22px 49%; grid-template-columns: minmax(0,1fr) 32px; gap: 8px; border-radius: 22px; }
    .home-memory-card .home-memory-image { width: 62%; }
    .home-memory-card .overline { font-size: 7px; letter-spacing: 1.6px; }
    .home-memory-card h3 { font-size: 20px; margin: 6px 0 12px; }
    .home-memory-card .meta { font-size: 10px; gap: 6px; margin-top: 6px; }
    .home-memory-card .meta svg { width: 15px; height: 15px; }
    .home-memory-chevron { width: 32px; height: 32px; }
    .home-memory-chevron svg { width: 19px; height: 19px; }
  }
}

@layer responsive {
  .card.home-memory-card { padding-left: 48%; gap: 12px; }
  .home-memory-card h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 23px; }
  .home-memory-card .home-memory-image { width: 58%; }
  @media (max-width: 640px) {
    .card.home-memory-card { padding-left: 41%; padding-right: 13px; min-height: 160px; gap: 8px; }
    .home-memory-card .home-memory-image { width: 54%; }
    .home-memory-card h3 { font-size: 18px; letter-spacing: -.4px; }
    .home-memory-card .overline { font-size: 7px; letter-spacing: 1.2px; }
  }
}

@layer responsive {
  .home-section .section-head h2 { font-size: 25px; line-height: 1.2; }
  @media (max-width: 640px) {
    .home-section .section-head h2 { font-size: 23px; }
  }
}

@layer responsive {
  .hero.home-hero { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; min-height: 266px; padding: 20px 28px; border-radius: 26px; }
  .hero.home-hero:before { background-position: center 55%; }
  .hero.home-hero:after { background: linear-gradient(100deg, #ffe1ce25, transparent 70%); }
  .home-hero .couple-name { font-size: 18px; line-height: 1.35; letter-spacing: 1px; margin-bottom: 7px; }
  .home-hero .duration { font-size: clamp(36px, 5vw, 52px); line-height: 1.05; letter-spacing: -2px; margin-bottom: 5px; }
  .home-hero .since { font-size: 14px; line-height: 1.5; color: #69435b; }
  .home-hero .milestone-link { width: 100%; max-width: none; margin-top: 16px; padding: 14px 17px; gap: 16px; border-radius: 21px; }
  .home-hero .milestone-link .circle { width: 50px; height: 50px; }
  .home-hero .milestone-link .circle svg { width: 26px; height: 26px; }
  .home-hero .milestone-link .overline { font-size: 9px; letter-spacing: 2.5px; }
  .home-hero .milestone-link h3 { font-size: 31px; line-height: 1.15; margin: 5px 0 3px; }
  .home-hero .milestone-link p { font-size: 13px; line-height: 1.4; color: var(--muted); }
  .home-hero .milestone-link > svg { width: 22px; height: 22px; }
  @media (max-width: 640px) {
    .hero.home-hero { min-height: 0; padding: 20px 20px 18px; border-radius: 24px; }
    .home-hero .couple-name { font-size: 17px; margin-bottom: 7px; }
    .home-hero .duration { font-size: clamp(32px, 10vw, 46px); letter-spacing: -1.5px; }
    .home-hero .since { font-size: 12px; }
    .home-hero .milestone-link { margin-top: 16px; padding: 13px 12px; gap: 12px; border-radius: 19px; }
    .home-hero .milestone-link .circle { width: 43px; height: 43px; }
    .home-hero .milestone-link .circle svg { width: 24px; height: 24px; }
    .home-hero .milestone-link .overline { font-size: 7px; letter-spacing: 2px; }
    .home-hero .milestone-link h3 { font-size: 27px; margin: 5px 0 3px; }
    .home-hero .milestone-link p { font-size: 11px; }
    .home-hero .milestone-link > svg { width: 18px; }
  }
}
.page-widget-stack{display:grid;gap:24px}.page-widget{min-width:0}.page-widget>.list-tile{width:100%;height:100%}.page-widget.is-editing{border:1px dashed var(--accent);border-radius:22px;padding:12px}.page-widget.is-hidden-widget{opacity:.65}.page-widget .home-widget-controls{margin-bottom:12px;gap:12px}.status-group{margin:24px 0}.status-group-heading{display:flex;gap:12px;align-items:center;font-size:19px;margin:0 0 12px}.page-widget .home-widget-controls strong{font-size:14px}.home-menu-panel{z-index:30}.page-widget-stack .featured-memory{margin-bottom:0}
.home-edit-toolbar>h2{font-size:clamp(20px,3vw,28px);margin:0}.home-edit-toolbar>p{font-size:13px;flex:1;min-width:160px;margin:0}.home-edit-toolbar{flex-wrap:wrap}.page-widget-stack{padding-bottom:12px}@media(max-width:600px){.home-edit-toolbar>h2{flex-basis:100%}.home-edit-toolbar>.home-edit-actions{width:100%;justify-content:flex-end}.page-widget.is-editing{padding:10px}}
.actionable-item{display:flex;align-items:center;gap:12px}.item-open{display:flex;align-items:center;gap:14px;flex:1;min-width:0;border:0;background:none;color:inherit;text-align:left;padding:0;cursor:pointer}.item-open .grow{min-width:0}.item-open h3{overflow-wrap:anywhere}.status-action{border:0;cursor:pointer;display:inline-flex;align-items:center;gap:5px;min-height:44px;flex-shrink:0}.status-action svg{width:13px;height:13px}.status-action:focus-visible,.item-open:focus-visible{outline:2px solid var(--accent);outline-offset:4px}@media(max-width:450px){.actionable-item{gap:8px}.actionable-item .circle{display:none}.actionable-item>.text-btn{font-size:12px}.status-action{max-width:45%;white-space:normal;text-align:left}}

.masthead-copy{min-width:0;flex:1}.masthead>.row{flex-shrink:0}.masthead .section-title{margin:0;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.15}.section-subtitle{margin:9px 0 0;font-size:12px;line-height:1.5;color:var(--muted);max-width:520px}.page-tools{justify-content:space-between;gap:12px}.page-tools .btn .button-label{display:inline}@media(max-width:640px){.section-subtitle{font-size:10px;margin-top:7px}.masthead .section-title{font-size:clamp(24px,7.5vw,36px);letter-spacing:-1px}.page-tools .btn .button-label{display:inline}.page-tools .btn{font-size:12px;padding:10px 13px}}

.page-tools>.page-create{width:100%;min-height:48px;justify-content:center;padding:13px 20px;font-size:14px}.page-tools>.page-create svg{width:20px;height:20px}.page-tools:has(>.page-create){display:block;margin-bottom:24px}

.widget-picker-button{justify-content:flex-start;text-align:left}.widget-picker-button span{display:flex;flex:1;justify-content:space-between;gap:12px;align-items:center}.widget-picker-button small{font-weight:400;white-space:nowrap;color:var(--muted)}

/* Listen-Kacheln quadratisch; Meilenstein-Editor im Profil */
.lists-grid>.page-widget{aspect-ratio:1/1;min-width:0}
.lists-grid>.page-widget>.list-tile{min-height:0;height:100%;padding:16px;justify-content:flex-start;overflow:hidden}
.lists-grid .list-tile .circle{width:44px;height:44px;margin-bottom:auto}
.lists-grid .list-tile h2{font-size:21px;line-height:1.15;letter-spacing:-.4px;overflow-wrap:anywhere;margin:14px 0 0}
.lists-grid .list-tile p{font-size:12px;line-height:1.35;margin:4px 0 10px}
.lists-grid .list-tile .progress{width:calc(100% - 32px);margin-top:0}
.lists-grid .list-tile .arrow{top:16px;right:16px;bottom:auto}
.timeline-months{margin-top:24px;display:grid;gap:28px}
.timeline-month{position:relative;padding-left:28px}
.timeline-month:before{content:'';position:absolute;left:6px;top:14px;bottom:-28px;width:1px;background:var(--line)}
.timeline-month:last-child:before{display:none}
.timeline-month-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}
.timeline-month-head h2{font-size:26px;display:flex;align-items:center;gap:10px}
.timeline-dot{position:absolute;left:0;top:12px;width:13px;height:13px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px var(--coral)}
.timeline-cards{display:grid;gap:12px}
.memory-shell .masthead{display:none}
.timeline-cards{display:grid;gap:14px}
@media(min-width:760px){.timeline-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
.memory-page{display:grid;gap:18px;max-width:720px;margin:0 auto}
.memory-page-bar{display:flex;align-items:center}
.memory-hero img{width:100%;height:100%;object-fit:cover;display:block}
.memory-hero-empty{height:100%;display:grid;place-items:center}
.memory-hero-empty svg{width:56px;height:56px;color:var(--accent-ink)}
.memory-strip{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 6px}
.memory-strip-item{flex:0 0 76px;height:92px;border-radius:16px;overflow:hidden;padding:0;border:2px solid transparent;background:var(--sand)}
.memory-strip-item.is-active{border-color:var(--accent-ink)}
.memory-strip-item img{width:100%;height:100%;object-fit:cover;display:block}
.memory-main-hint{display:flex;justify-content:center}
.memory-body{display:grid;gap:10px}
.memory-body h1{font-size:clamp(34px,8vw,46px);line-height:1.05}
.memory-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px;padding-top:18px;border-top:1px solid var(--line)}
.memory-actions .row{gap:8px}
.memory-photos-field{border:0;padding:0;margin:0 0 16px}
.memory-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;margin:12px 0 16px}
.memory-photo-item{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface)}
.memory-photo-item.is-main{border-color:var(--accent-ink)}
.memory-photo-item img{width:100%;height:110px;object-fit:cover;display:block}
.memory-photo-tools{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:6px 8px;flex-wrap:wrap;font-size:11px}
.moment-card{display:grid;grid-template-columns:118px minmax(0,1fr);gap:16px;align-items:stretch;height:124px;padding:10px;width:100%;text-align:left;overflow:hidden}

.moment-cover{position:relative;display:block;height:100%;min-height:0;border-radius:16px;overflow:hidden;background:var(--sand)}
.moment-cover img{width:100%;height:100%;object-fit:cover;display:block}
.moment-badge{position:absolute;right:6px;bottom:6px;display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:99px;background:rgba(18,12,20,.6);color:#fff;font-size:10px}
.moment-badge svg{width:12px;height:12px}
.moment-body{display:grid;gap:6px;min-width:0;align-content:center;overflow:hidden}
.moment-body h3{font-size:17px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.moment-date{font-size:9px;letter-spacing:2px;text-transform:uppercase;color:var(--muted)}
.moment-place{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.moment-place svg{width:14px;height:14px}
.moment-excerpt{font-size:12px;line-height:1.4;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:640px){.moment-card{grid-template-columns:96px minmax(0,1fr);gap:12px;height:118px}}
.memory-title{display:grid;gap:10px;min-width:0}
.memory-title h1{font-size:clamp(28px,7vw,40px);line-height:1.08;overflow-wrap:anywhere}
.memory-text{display:grid;gap:12px}
.memory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.memory-grid-item{position:relative;padding:0;aspect-ratio:4/5;border-radius:16px;overflow:hidden;background:var(--sand)}
.memory-grid-item img{width:100%;height:100%;object-fit:cover;display:block}
.memory-grid-main{position:absolute;left:6px;bottom:6px;padding:3px 8px;border-radius:99px;background:rgba(18,12,20,.6);color:#fff;font-size:10px}
/* Startseite: zwei Termin-Plätze, einheitliche Platzhalter, Fortschritt auf Listen */
.home-event-grid{display:grid;gap:12px}
.home-event-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.home-event-grid .home-event-card{min-height:118px;grid-template-columns:minmax(0,1fr);align-content:start;gap:10px;padding:14px}
.home-event-grid .home-event-icon{width:40px;height:40px;border-radius:12px}
.home-event-grid .home-event-icon svg{width:20px;height:20px}
.home-event-grid .home-event-chevron{display:none}
.home-event-grid .home-event-title{font-size:16px;margin-bottom:4px}
.home-event-grid .home-event-copy .meta{font-size:11px}
.home-placeholder{display:grid;justify-items:start;align-content:start;gap:10px;min-height:118px;padding:20px;border-radius:24px;border:1.5px dashed var(--line);background:linear-gradient(160deg,var(--surface),var(--sand) 135%)}
.home-placeholder-icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--coral)}
.home-placeholder-icon svg{width:20px;height:20px}
.home-placeholder-copy{display:grid;gap:4px;min-width:0}
.home-placeholder h3{font-size:19px;line-height:1.2}
.home-placeholder p{font-size:12px;line-height:1.5;color:var(--muted)}
.home-placeholder-action{margin-top:auto;min-height:38px;padding:8px 14px;font-size:12px}
.home-list-progress{display:block;width:100%;height:5px;margin:auto 0 10px;border:0;border-radius:99px;overflow:hidden;appearance:none;-webkit-appearance:none;background:#ffffff55}
.home-list-progress::-webkit-progress-bar{background:#ffffff55;border-radius:99px}
.home-list-progress::-webkit-progress-value{background:var(--ink);border-radius:99px}
.home-list-progress::-moz-progress-bar{background:var(--ink);border-radius:99px}
/* Startseite: Listen-Kacheln haben immer dieselbe Größe, auch leere */
.home-list-grid .home-list-tile,.home-list-grid .home-list-tile.is-empty{height:172px;min-height:0;overflow:hidden}
.home-list-grid .home-list-tile h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.5em}
@media(max-width:640px){.home-list-grid .home-list-tile,.home-list-grid .home-list-tile.is-empty{height:150px}}
/* Startseite: Haupt-Widget (Zähler, Beziehungsstart, nächster Meilenstein) */
section.hero.home-hero{display:flex;flex-direction:column;justify-content:space-between;gap:22px;min-height:0;padding:26px 24px 20px;border-radius:30px;color:#fff6f3;background:linear-gradient(140deg,#3b1c3a 0%,#7d3f66 52%,#d98a8a 100%);box-shadow:0 22px 44px -22px rgba(59,28,58,.6)}
section.hero.home-hero:before{background:url('/landscape.svg') center 62% / cover;opacity:.2}
section.hero.home-hero:after{background:radial-gradient(120% 90% at 100% 0%,rgba(255,220,200,.32),transparent 60%)}
.home-hero .home-hero-copy{display:grid;gap:12px}
.home-hero .couple-name{justify-self:start;margin:0;padding:6px 12px;border-radius:99px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);font-size:11px;letter-spacing:2px;text-transform:uppercase;color:#fff6f3}
.home-hero .duration{margin:0;font-family:var(--serif);font-size:clamp(46px,13vw,68px);line-height:1;letter-spacing:-1.5px;color:#fff}
.home-hero .since{margin:0;font-size:13px;color:rgba(255,246,243,.82)}
.home-hero .milestone-link{display:grid;grid-template-columns:44px minmax(0,1fr) 18px;gap:14px;align-items:center;width:100%;margin:0;padding:14px 16px;border-radius:20px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#fff6f3;text-align:left}
.home-hero .milestone-link .circle{width:44px;height:44px;background:rgba(255,255,255,.2)}
.home-hero .milestone-link .circle svg{color:#fff}
.home-hero .milestone-link .overline{color:rgba(255,246,243,.75);font-size:9px;letter-spacing:2px}
.home-hero .milestone-link h3{margin:3px 0 2px;font-size:20px;color:#fff}
.home-hero .milestone-link p{margin:0;font-size:12px;color:rgba(255,246,243,.82)}
.home-hero .milestone-link>svg{width:18px;height:18px;color:#fff}
/* Kopfzeile: Logo/Seitentitel und Schaltflächen auf gleicher Mittellinie */
.masthead{align-items:center !important}
.masthead-copy{display:flex;align-items:center;min-height:44px;min-width:0;flex:1}
.masthead .brand,.masthead .section-title{margin:0;line-height:1.1}
.masthead>.row{align-items:center;min-height:44px}
/* Startseite: Haupt-Widget mit Profilbildern, großem Zähler und Pille für den Beziehungsstart */
section.hero.home-hero .home-hero-top{display:flex;align-items:center;gap:12px}
.home-hero-avatars{display:flex;flex-shrink:0}
.home-hero-avatar{width:50px;height:50px;border-radius:50%;border:2px solid rgba(255,246,243,.9);background:rgba(255,255,255,.2);display:grid;place-items:center;font-family:var(--serif);font-size:20px;color:#fff;overflow:hidden}
.home-hero-avatar+.home-hero-avatar{margin-left:-14px}
.home-hero-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.home-hero .couple-name{margin:0;padding:0;background:none;border:0;border-radius:0;justify-self:auto;font-size:12px;letter-spacing:1.6px;text-transform:uppercase;color:rgba(255,246,243,.92);min-width:0;overflow-wrap:anywhere}
.home-hero .duration-label{margin:0;font-size:11px;letter-spacing:2.5px;text-transform:uppercase;color:rgba(255,246,243,.75)}
.home-hero .duration{display:flex;align-items:baseline;flex-wrap:wrap;gap:10px;margin:0}
.home-hero .duration-num{font-family:var(--serif);font-size:clamp(68px,20vw,100px);line-height:.9;letter-spacing:-3px;color:#fff}
.home-hero .duration-unit{font-family:var(--serif);font-size:clamp(22px,6vw,30px);color:#fff6f3}
.home-hero .duration-sub{margin:0;font-size:13px;color:rgba(255,246,243,.8)}
.home-hero .since-pill{justify-self:start;display:inline-flex;align-items:center;gap:8px;padding:7px 14px;border-radius:99px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.26);font-size:12px;color:#fff6f3}
.home-hero .since-pill svg{width:14px;height:14px;color:#ffd6d3}
/* Startseite nach Mockup: Hero, Kennzahlen, Termine, Listen, Schnellaktionen */
section.hero.home-hero .home-hero-heart{position:absolute;top:20px;right:20px;width:92px;height:92px;fill:none;stroke:rgba(255,235,240,.5);stroke-width:1.1;pointer-events:none;z-index:0}
.home-hero-avatar{width:60px;height:60px}
.home-hero .duration{display:block;margin:0;font-family:var(--serif);font-size:clamp(24px,7vw,34px);font-weight:400;line-height:1.2;letter-spacing:-.4px;color:#fff6f3}
.home-hero .duration-num{font-size:1.9em;line-height:.8;color:#fff;margin:0 2px}
.home-hero .duration-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.home-hero .duration-sub{font-size:14px;color:rgba(255,246,243,.85)}
.home-hero .duration-divider{width:1px;height:18px;background:rgba(255,246,243,.4)}
.home-hero .milestone-link{grid-template-columns:60px minmax(0,1fr) 34px;padding:16px 18px;gap:16px}
.home-hero .milestone-link .circle{width:60px;height:60px;border-radius:18px}
.home-hero .milestone-link h3{font-family:var(--serif);font-size:26px;font-weight:400;line-height:1.1;margin:4px 0}
.home-hero .milestone-link>svg{width:34px;height:34px;padding:8px;box-sizing:border-box;border-radius:50%;background:rgba(255,255,255,.18)}
.home-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
.home-stat{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:12px;row-gap:2px;align-items:center;padding:14px;border-radius:22px;background:var(--surface);border:1px solid var(--line)}
.home-stat-icon{grid-row:1 / span 2;width:40px;height:40px;border-radius:14px;display:grid;place-items:center;background:var(--coral)}
.home-stat-icon svg{width:18px;height:18px}
.home-stat strong{font-family:var(--serif);font-size:26px;font-weight:400;line-height:1}
.home-stat>span:last-child{font-size:11px;line-height:1.25;color:var(--muted)}
.home-list-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.home-list-count{display:inline-flex;align-self:flex-start;margin-top:auto;padding:6px 12px;border-radius:99px;background:rgba(255,255,255,.2);font-size:11px}
.home-event-grid .home-event-card{grid-template-columns:44px minmax(0,1fr);align-content:center;align-items:center;gap:12px;padding:14px}
.home-event-grid .home-event-icon{width:44px;height:44px;border-radius:14px}
.home-event-grid .home-event-icon svg{width:20px;height:20px}
.home-event-grid .home-event-copy .meta{font-size:11px}
.home-quick-section{display:grid;gap:12px;margin-top:28px}
.home-quick-label{margin:0;letter-spacing:3px;color:var(--muted)}
.home-quick{display:flex;gap:10px;overflow-x:auto;flex-wrap:wrap;padding-bottom:4px}
.home-quick-pill{flex:0 0 auto;min-height:48px;padding:12px 18px;border-radius:99px;background:var(--surface);border:1px solid var(--line);font-size:13px;white-space:nowrap}
/* Startseite Mobil: Hero, Kennzahlen, Termine, Schnellaktionen (Korrektur nach Gerätetest) */
section.hero.home-hero{flex-direction:column!important;align-items:stretch!important;padding:22px 20px 18px}
.home-hero .home-hero-copy{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:12px;width:100%;min-width:0}
.home-hero .duration{width:100%;font-size:clamp(22px,6.4vw,30px);white-space:normal;overflow-wrap:normal;word-break:normal}
.home-hero .duration-num{font-size:1.7em}
section.hero.home-hero .home-hero-heart{width:64px;height:64px;top:14px;right:14px}
.home-hero .milestone-link{grid-template-columns:52px minmax(0,1fr) 28px;padding:14px}
.home-hero .milestone-link .circle{width:52px;height:52px;border-radius:16px}
.home-hero .milestone-link h3{font-size:22px}
.home-stats{gap:8px}
.home-stat{grid-template-columns:minmax(0,1fr);row-gap:6px;padding:12px 10px;border-radius:18px}
.home-stat-icon{grid-row:auto;width:34px;height:34px;border-radius:12px}
.home-stat strong{font-size:24px}
.home-stat>span:last-child{font-size:10.5px;overflow-wrap:break-word;hyphens:auto}
.home-event-grid{gap:10px}
.home-event-grid .home-event-card{grid-template-columns:minmax(0,1fr);justify-items:start;gap:8px;padding:12px;min-height:0}
.home-event-grid .home-event-icon{width:36px;height:36px;border-radius:12px}
.home-event-grid .home-event-icon svg{width:18px;height:18px}
.home-event-grid .home-event-copy{width:100%}
.home-event-grid .home-event-title{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-event-grid .home-event-copy .meta{font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.home-event-grid .home-event-flourish{display:none}
.home-quick{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;overflow:visible}
.home-quick-pill{display:inline-flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:48px;padding:12px 18px;text-align:left}
.home-quick-pill svg{flex:0 0 auto;width:18px;height:18px}
/* Startseite Mobil nach Mockup (zweite Schärfung) */
.home-stat{grid-template-columns:auto minmax(0,1fr);column-gap:10px;row-gap:4px;align-items:start;padding:12px}
.home-stat-icon{grid-row:auto;width:32px;height:32px;border-radius:11px}
.home-stat-icon svg{width:16px;height:16px}
.home-stat strong{justify-self:end;font-size:24px;line-height:1}
.home-stat>span:last-child{grid-column:1 / -1;font-size:10.5px;line-height:1.3;hyphens:none;overflow-wrap:normal;word-break:normal}
.home-event-grid .home-event-card{grid-template-columns:40px minmax(0,1fr);align-items:center;justify-items:stretch;gap:10px;padding:12px}
.home-event-grid .home-event-icon{width:40px;height:40px;border-radius:13px}
.home-event-grid .home-event-icon svg{width:19px;height:19px}
.home-event-grid .home-event-flourish{display:block;opacity:.55}
.home-quick{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:10px;padding-bottom:4px;scrollbar-width:none}
.home-quick::-webkit-scrollbar{display:none}
.home-quick-pill{width:auto;flex:0 0 auto;justify-content:center;white-space:nowrap}
.home-hero .milestone-link h3{font-size:28px}
.home-hero .milestone-link p{font-size:13px}
.home-hero .milestone-link .overline{font-size:9px;letter-spacing:1.6px}
/* Startseite Mobil: Maße nach Mockup (kompakt, ca. 390 px Breite) */
@media(max-width:640px){
.shell .masthead{margin-bottom:12px}
.shell .masthead .brand{font-size:24px;letter-spacing:-1px}
.shell .masthead .icon-btn{width:34px;height:34px;min-height:34px}
.shell .masthead .icon-btn svg{width:17px;height:17px}
section.hero.home-hero{padding:14px 14px 12px;gap:10px;border-radius:22px}
.home-hero-avatar{width:44px;height:44px;font-size:17px;border-width:2px}
.home-hero-avatar+.home-hero-avatar{margin-left:-10px}
.home-hero .couple-name{font-size:11px;letter-spacing:2px}
.home-hero .home-hero-copy{gap:6px}
.home-hero .duration{font-size:19px;line-height:1.15}
.home-hero .duration-num{font-size:2.1em;line-height:.7}
.home-hero .duration-meta{gap:10px}
.home-hero .duration-sub{font-size:12px}
.home-hero .since-pill{padding:4px 10px;font-size:11px;gap:6px}
.home-hero .since-pill svg{width:12px;height:12px}
section.hero.home-hero .home-hero-heart{width:64px;height:64px;top:10px;right:12px}
.home-hero .milestone-link{grid-template-columns:36px minmax(0,1fr) 24px;gap:10px;padding:10px 12px;border-radius:16px}
.home-hero .milestone-link .circle{width:36px;height:36px;border-radius:12px}
.home-hero .milestone-link .circle svg{width:17px;height:17px}
.home-hero .milestone-link .overline{font-size:8px;letter-spacing:1.4px}
.home-hero .milestone-link h3{font-size:20px;margin:1px 0}
.home-hero .milestone-link p{font-size:11px}
.home-hero .milestone-link>svg{width:24px;height:24px;padding:5px}
.home-stats{gap:6px;margin-top:8px}
.home-stat{grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:7px;row-gap:0;align-items:center;padding:7px 8px;border-radius:14px}
.home-stat-icon{grid-row:1 / span 2;width:26px;height:26px;border-radius:9px}
.home-stat-icon svg{width:13px;height:13px}
.home-stat strong{justify-self:start;font-size:18px;line-height:1}
.home-stat>span:last-child{grid-column:2;font-size:9px;line-height:1.15}
.home-section .section-head{margin:16px 0 8px}
.home-section .section-head h2{font-size:19px}
.home-section .section-head .text-btn{font-size:11px;min-height:0}
.home-event-grid{gap:8px}
.home-event-grid .home-event-card{grid-template-columns:30px minmax(0,1fr);gap:8px;padding:9px 10px;border-radius:14px}
.home-event-grid .home-event-icon{width:30px;height:30px;border-radius:10px}
.home-event-grid .home-event-icon svg{width:15px;height:15px}
.home-event-grid .home-event-title{font-size:14px;margin-bottom:2px}
.home-event-grid .home-event-copy .meta{font-size:10px;white-space:normal;gap:5px;margin-top:2px}
.home-event-grid .home-event-copy .meta svg{width:11px;height:11px}
.home-list-grid{gap:8px}
.home-list-grid .home-list-tile,.home-list-grid .home-list-tile.is-empty{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:10px;row-gap:3px;height:auto;min-height:0;padding:9px 10px;border-radius:14px}
.home-list-grid .home-list-tile>.circle{grid-row:1 / span 2;width:32px;height:32px;margin:0}
.home-list-grid .home-list-tile>.circle svg{width:16px;height:16px}
.home-list-grid .home-list-tile h3{grid-column:2;font-size:14px;min-height:0;margin:0;-webkit-line-clamp:2}
.home-list-grid .home-list-tile .home-list-count{grid-column:2;margin:0;padding:2px 8px;font-size:9.5px}
.home-quick-section{margin-top:18px;gap:8px}
.home-quick-label{font-size:8px;letter-spacing:2.5px}
.home-quick{gap:8px}
.home-quick-pill{min-height:30px;padding:6px 12px;font-size:11px;gap:6px}
.home-quick-pill svg{width:14px;height:14px}
}

.moment-cover.is-placeholder{display:grid;place-items:center;background:linear-gradient(150deg,var(--sand),var(--coral))}

.moment-cover.is-placeholder svg{width:30px;height:30px;color:var(--accent-ink);opacity:.8}
/* Mehr-Tab, Termine-Ansicht, Idee-Seite (Schärfung) */
.more-page{display:grid;gap:22px}
.more-group{display:grid;gap:10px}
.more-group>.overline{margin:0 4px;color:var(--muted);letter-spacing:2.5px}
.more-list{display:grid;gap:10px}
.more-item{display:flex;align-items:center;gap:14px;width:100%;padding:14px 16px;text-align:left}
.more-item .circle{width:42px;height:42px}
.more-item strong{display:block;font-family:var(--serif);font-size:19px;font-weight:400}
.more-item>svg{width:18px;height:18px;margin-left:auto;color:var(--muted)}
.planner-head{display:grid;gap:12px;margin-bottom:12px}
.row.between .btn{margin-left:auto}
.calendar-views{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border-radius:99px;background:var(--surface);border:1px solid var(--line)}
.calendar-view-btn{border-radius:99px;padding:8px 0;font-size:13px;background:transparent;color:var(--muted)}
.calendar-view-btn.active{background:var(--coral);color:var(--ink)}
.calendar-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0 10px}
.calendar-nav h2{font-size:21px;text-align:center}
.calendar-step{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--surface);border:1px solid var(--line)}
.calendar-step svg{width:17px;height:17px}
.planner-calendar{display:grid;gap:18px}
.week-list{display:grid;gap:10px}
.week-day{display:grid;grid-template-columns:52px minmax(0,1fr);gap:10px;align-items:start;padding:10px;border-radius:18px;background:var(--surface);border:1px solid var(--line)}
.week-day.is-today{border-color:var(--accent-ink)}
.week-day-head{display:grid;justify-items:center;gap:2px;padding:8px 0;border-radius:14px;background:transparent}
.week-day-name{font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted)}
.week-day-num{font-family:var(--serif);font-size:22px}
.agenda{display:grid;gap:12px}
.agenda .event-card{margin:0}
.agenda-heading{font-size:22px;margin:0 0 12px}
.milestone-entry .circle{background:var(--lavender)}
.item-page .memory-title h1{font-size:clamp(28px,7vw,36px)}
.item-fields{display:grid;gap:10px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.item-page-state{display:grid;gap:8px}
/* Profil: gruppierte Karten (Schärfung) */
.profile-hero{display:grid;justify-items:center;gap:8px;padding:24px 18px;border-radius:26px;text-align:center;background:linear-gradient(150deg,var(--surface),var(--coral))}
.profile-hero h2{font-family:var(--serif);font-size:26px;font-weight:400;margin:4px 0 0}
.profile-since{margin:0;font-size:12px;color:var(--muted)}
.profile-avatars{display:flex;justify-content:center}
.profile-avatar{width:64px;height:64px;border-radius:50%;border:2px solid var(--paper);background:var(--lavender);display:grid;place-items:center;font-family:var(--serif);font-size:24px;overflow:hidden}
.profile-avatar+.profile-avatar{margin-left:-14px}
.profile-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.profile-group{display:grid;gap:8px;margin-top:22px}
.profile-group>.overline{margin:0 6px;color:var(--muted);letter-spacing:2.5px}
.profile-card{display:grid;border-radius:22px;background:var(--surface);border:1px solid var(--line);overflow:hidden}
.profile-row{display:flex;align-items:center;gap:14px;width:100%;padding:14px 16px;text-align:left;background:transparent;border-bottom:1px solid var(--line)}
.profile-row:last-child{border-bottom:0}
.profile-row-icon{width:38px;height:38px;flex:0 0 auto;border-radius:13px;display:grid;place-items:center;background:var(--coral)}
.profile-row-icon svg{width:18px;height:18px}
.profile-row strong{display:block;font-size:15px;font-weight:600}
.profile-row small{display:block;margin-top:2px;font-size:12px;line-height:1.35;color:var(--muted)}
.profile-row>svg{width:16px;height:16px;color:var(--muted);flex:0 0 auto}
.profile-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:24px 4px 8px;font-size:11px;color:var(--muted)}
/* Profil-Kopf: kontrastreich und flacher */
.profile-hero{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;align-content:center;align-items:center;column-gap:14px;row-gap:2px;justify-items:start;text-align:left;padding:16px 18px;border-radius:22px;color:#fff6f3;background:linear-gradient(140deg,#3b1c3a 0%,#7d3f66 55%,#d98a8a 100%);box-shadow:0 16px 32px -20px rgba(59,28,58,.6)}
.profile-hero .profile-avatars{grid-row:1 / span 2}
.profile-hero .profile-avatar{width:50px;height:50px;font-size:20px;border-color:rgba(255,246,243,.9);color:#fff;background:rgba(255,255,255,.2)}
.profile-hero .profile-avatar+.profile-avatar{margin-left:-12px}
.profile-hero h2{grid-column:2;margin:0;font-size:21px;line-height:1.15;color:#fff}
.profile-hero .profile-since{grid-column:2;margin:0;font-size:12px;color:rgba(255,246,243,.88)}
/* Profil-Kopf: Mindesthöhen der älteren Regeln aufheben */
.profile-hero{min-height:0!important;height:auto;margin-bottom:0;padding:14px 16px}
@media(max-width:640px){.profile-hero{min-height:0!important;padding:14px 16px}}
/* Termine: Agenda, Woche, Monat (modernisiert) */
.cal-top{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.cal-views{flex:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border-radius:99px;background:var(--surface);border:1px solid var(--line);min-width:0}
.cal-view-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:9px 4px;border-radius:99px;font-size:12.5px;background:transparent;color:var(--muted);white-space:nowrap}
.cal-view-btn svg{width:14px;height:14px}
.cal-view-btn.active{background:var(--coral);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.cal-add{flex:0 0 auto;min-height:44px;padding:0 16px;font-size:13px}
.cal-nav{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:8px;margin:8px 0 12px}
.cal-step{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:transparent;border:1px solid var(--line)}
.cal-step svg{width:17px;height:17px}
.cal-nav-title{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0}
.cal-nav-title h2{font-size:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cal-today{flex:0 0 auto;padding:5px 12px;border-radius:99px;font-size:12px;border:1px solid var(--line);background:var(--surface)}
.cal-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-bottom:16px}
.cal-chip{display:grid;justify-items:center;gap:2px;min-width:0;padding:8px 0 7px;border-radius:16px;background:var(--surface);border:1px solid var(--line)}
.cal-chip-name{font-size:11px;color:var(--muted)}
.cal-chip-num{font-family:var(--serif);font-size:20px;line-height:1.1}
.cal-chip-dots{display:flex;gap:3px;min-height:6px}
.cal-chip-dots i{width:5px;height:5px;border-radius:50%;background:var(--accent-ink)}
.cal-chip.is-today{border-color:var(--accent-ink)}
.cal-chip.is-selected{background:var(--coral);box-shadow:0 0 0 1px var(--accent-ink)}
.cal-dayhead{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:2px 2px 12px}
.cal-dayhead h3{font-family:var(--serif);font-size:21px;font-weight:400}
.cal-dayhead p{margin:0;font-size:12px;color:var(--muted)}
.cal-rows{display:grid;gap:10px}
.cal-row{display:grid;grid-template-columns:48px 36px minmax(0,1fr) 16px;align-items:center;gap:12px;width:100%;padding:12px;border-radius:18px;background:var(--surface);border:1px solid var(--line);text-align:left}
.cal-time{font-size:13px;font-weight:600;line-height:1.2}
.cal-time small{font-size:10px;font-weight:400;color:var(--muted)}
.cal-row-icon{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:var(--coral)}
.cal-row-icon svg{width:17px;height:17px}
.cal-row strong{display:block;font-family:var(--serif);font-size:17px;font-weight:400;overflow-wrap:anywhere}
.cal-row .grow small{display:flex;align-items:center;gap:5px;margin-top:2px;font-size:11px;color:var(--muted)}
.cal-row .grow small svg{width:12px;height:12px}
.cal-row>svg{width:16px;height:16px;color:var(--muted)}
.cal-row.is-milestone .cal-row-icon{background:var(--lavender)}
.cal-month-card{padding:12px 10px;border-radius:24px;background:var(--surface);border:1px solid var(--line);margin-bottom:18px}
.cal-month-card .day{min-height:40px;font-size:18px}
.cal-week{display:grid;gap:10px}
.cal-week-day{display:grid;grid-template-columns:46px minmax(0,1fr);gap:12px;align-items:start;padding:12px;border-radius:20px;background:var(--surface);border:1px solid var(--line)}
.cal-week-day.is-today{border-color:var(--accent-ink)}
.cal-week-head{display:grid;justify-items:center;gap:2px;padding:6px 0;border-radius:14px;background:transparent}
.cal-week-head span{font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted)}
.cal-week-head strong{font-family:var(--serif);font-size:22px;font-weight:400}
.cal-week-day .cal-row{grid-template-columns:44px 32px minmax(0,1fr) 14px;padding:10px;background:var(--paper)}
.cal-free{margin:10px 0 0}
.cal-upcoming{margin-top:26px}
.cal-upcoming h2{font-size:22px;margin:0 2px 12px}
.cal-upcoming-card{display:grid;grid-template-columns:54px minmax(0,1fr) 16px;gap:14px;align-items:center;width:100%;padding:12px;border-radius:20px;background:linear-gradient(135deg,var(--surface),var(--coral));border:1px solid var(--line);text-align:left}
.cal-date{display:grid;place-items:center;gap:0;padding:8px 0;border-radius:14px;background:var(--surface);border:1px solid var(--line)}
.cal-date small{font-size:11px;color:var(--muted)}
.cal-date strong{font-family:var(--serif);font-size:21px;font-weight:400;line-height:1.1}
.cal-upcoming-card strong{display:block;font-family:var(--serif);font-size:18px;font-weight:400}
.cal-upcoming-card .grow small{display:flex;align-items:center;gap:6px;margin-top:3px;font-size:11px;color:var(--muted)}
.cal-upcoming-card .grow small svg{width:12px;height:12px}
.cal-upcoming-card>svg{width:16px;height:16px;color:var(--muted)}
/* Termine: Umschalter und Abstände nachgeschärft */
.cal-top{align-items:stretch}
.cal-views{min-height:44px;align-items:stretch;padding:3px;gap:3px;background:var(--surface)}
.cal-view-btn{min-height:36px;font-size:13px;font-weight:500;transition:background-color .2s ease,color .2s ease}
.cal-view-btn.active{font-weight:600;box-shadow:0 2px 8px -4px rgba(0,0,0,.35)}
.cal-add{min-height:44px;border-radius:99px}
/* Termine: kompakter Leerzustand (ca. halbe Höhe) */
.cal-empty{display:flex;align-items:center;gap:12px;width:100%;padding:10px 14px;border-radius:16px;border:1.5px dashed var(--line);background:transparent;text-align:left}
.cal-empty-icon{width:30px;height:30px;flex:0 0 auto;border-radius:10px;display:grid;place-items:center;background:var(--coral)}
.cal-empty-icon svg{width:15px;height:15px}
.cal-empty-copy{display:grid;gap:1px;min-width:0}
.cal-empty-copy strong{font-family:var(--serif);font-size:15px;font-weight:400}
.cal-empty-copy small{font-size:11px;color:var(--muted)}
/* Startseite: mehr Abstand zwischen Haupt-Widget und Kennzahlen */
.home-widgets .home-hero+.home-stats,.home-widgets section.hero.home-hero+.home-stats{margin-top:22px}
.home-stats{margin-top:22px}
@media(max-width:640px){.home-stats{margin-top:18px}.home-widgets section.hero.home-hero+.home-stats{margin-top:18px}}
/* Termine vs. Meilensteine klar unterscheidbar */
.cal-kind{display:inline-block;align-self:start;margin-bottom:4px;padding:2px 8px;border-radius:99px;font-size:9px;font-weight:600;letter-spacing:1px;text-transform:uppercase;background:var(--coral);color:var(--ink)}
.cal-kind.is-milestone{background:var(--lavender)}
.cal-row{border-left:4px solid var(--coral)}
.cal-row.is-milestone{border-left-color:var(--lavender);background:linear-gradient(120deg,var(--surface),var(--lavender))}
.cal-upcoming-card{border-left:4px solid var(--coral)}
.cal-upcoming-card.is-milestone{border-left-color:var(--lavender);background:linear-gradient(135deg,var(--surface),var(--lavender))}
.cal-upcoming-card .cal-kind{margin-bottom:3px}
/* Erfolge: Titel oben, Zahl darunter */
.achievement-card{display:grid;gap:8px;align-content:start}
.achievement-card>h3{margin:0;font-size:17px;line-height:1.2}
.achievement-count{font-family:var(--serif);font-size:22px;line-height:1}
/* Startseite: Termin-Karten mit Datumsblock */
.home-event-grid .home-event-card{display:grid;grid-template-columns:50px minmax(0,1fr);align-items:center;gap:12px;min-height:112px;padding:12px;border-radius:20px;text-align:left}
.home-event-date{display:grid;justify-items:center;gap:0;padding:6px 0;border-radius:14px;background:var(--surface);border:1px solid var(--line)}
.home-event-date small{font-size:9px;letter-spacing:1px;text-transform:uppercase;color:var(--muted)}
.home-event-date strong{font-family:var(--serif);font-size:22px;font-weight:400;line-height:1.1}
.home-event-copy{display:grid;gap:3px;min-width:0}
.home-event-copy .cal-kind{justify-self:start;margin:0;font-size:8.5px;padding:2px 7px}
.home-event-grid .home-event-title{font-family:var(--serif);font-size:16px;font-weight:400;line-height:1.2;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}
.home-event-meta{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.home-event-meta svg{width:12px;height:12px;flex:0 0 auto}
.home-event-grid.is-single{grid-template-columns:minmax(0,1fr)}
/* Zusatzinhalte nur für die Desktop-Variante (desktop.css); mobil ausgeblendet */
.desktop-extra{display:none}
/* Filterzeile: immer einzeilig, bei Platzmangel seitlich scrollen (design-system.css erlaubte Umbruch) */
.page-content .filters{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.page-content .filters::-webkit-scrollbar{display:none}
.page-content .filters .filter{flex:0 0 auto}
/* Album: alle Fotos chronologisch */
.album-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 6px}
.album-month{display:grid;gap:12px;margin-top:22px}
.album-month h2{font-size:22px;font-weight:400;margin:0 2px}
.album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.album-tile{position:relative;padding:0;aspect-ratio:4/5;border-radius:14px;overflow:hidden;background:var(--sand);text-align:left}
.album-tile img{width:100%;height:100%;object-fit:cover;display:block}
.album-caption{position:absolute;left:0;right:0;bottom:0;padding:18px 8px 6px;font-size:11px;line-height:1.2;color:#fff;background:linear-gradient(transparent,rgba(18,12,20,.7));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(min-width:1100px){.album-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}}
/* Foto-Ansicht als mittleres Fenster */
.photo-viewer{position:relative;display:grid;gap:12px;justify-items:center}
.photo-viewer-stage{width:100%;display:grid;place-items:center;min-height:200px;touch-action:pan-y;user-select:none}
.photo-viewer-img{max-width:100%;max-height:68vh;width:auto;height:auto;object-fit:contain;border-radius:18px;background:var(--sand)}
.photo-viewer-nav{position:absolute;top:40%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:rgba(18,12,20,.55);color:#fff;border:0}
.photo-viewer-nav svg{width:20px;height:20px}
.photo-viewer-nav.prev{left:6px}
.photo-viewer-nav.next{right:6px}
.photo-viewer-nav.prev svg{transform:none}
.photo-viewer-count{margin:0;font-size:12px;color:var(--muted)}
.photo-viewer-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
/* Titelbilder für Listen und Listenpunkte */
.list-cover{position:absolute;inset:0;border-radius:inherit;overflow:hidden;z-index:0}
.list-cover img{width:100%;height:100%;object-fit:cover;display:block}
.list-cover::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(18,12,20,.15),rgba(18,12,20,.72))}
.list-tile>*:not(.list-cover){position:relative;z-index:1}
.list-tile:has(.list-cover) h2,.list-tile:has(.list-cover) h3,.list-tile:has(.list-cover) p,.list-tile:has(.list-cover) small{color:#fff6f3}
.list-tile:has(.list-cover) .circle{background:rgba(255,255,255,.2)}
.item-thumb{width:52px;height:52px;flex:0 0 auto;border-radius:14px;overflow:hidden;background:var(--sand)}
.item-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.item-cover{margin:0 0 18px;border-radius:22px;overflow:hidden;aspect-ratio:16/10;background:var(--sand)}
.item-cover img{width:100%;height:100%;object-fit:cover;display:block}
.cover-field{display:grid;gap:8px;margin:6px 0 14px}
.cover-preview{border-radius:16px;overflow:hidden;background:var(--sand);min-height:70px;display:grid;place-items:center;aspect-ratio:16/9}
.cover-preview img{width:100%;height:100%;object-fit:cover;display:block}
/* Formatierter Text: Editor, Werkzeugleiste, Notizseite wie im Mockup */
.rich-editor{outline:none;overflow-wrap:anywhere;font-size:16px;line-height:1.65;color:var(--ink)}
.rich-editor:empty::before,.rich-editor>br:only-child::before{content:attr(data-placeholder);color:var(--muted);pointer-events:none}
.rich-editor h2{font:400 24px/1.25 var(--serif);margin:18px 0 8px}
.rich-editor h3{font:400 19px/1.3 var(--serif);margin:14px 0 6px}
.rich-editor ul,.rich-editor ol{padding-left:22px;margin:8px 0}
.rich-editor p,.rich-editor div{margin:0}
.rich-toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.rich-cmd{min-width:44px;min-height:44px;padding:0 12px;border-radius:14px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-size:15px}
.rich-cmd[aria-pressed=true]{background:var(--coral)}
.rich-cmd-bold{font-weight:700}
.rich-cmd-italic{font-style:italic;font-family:var(--serif)}
.note-toolbar{position:sticky;bottom:0;z-index:4;justify-content:space-between;padding:8px 0 calc(8px + env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--line)}
.notes-page{max-width:none;margin:0;display:flex;flex-direction:column;min-height:calc(100dvh - 120px)}
.note-rich{flex:1;min-height:52dvh;padding:14px 0 22px}
.memory-toolbar{margin:4px 0 10px}
.memory-rich-box{min-height:220px;padding:14px 16px;border-radius:18px;border:1px solid var(--line);background:var(--surface)}
.rich-text{font-size:16px}
.rich-text h2{font:400 24px/1.25 var(--serif);margin:14px 0 6px}
.rich-text ul,.rich-text ol{padding-left:22px}
/* Notizseite wie Bild 2: Kopfzeile mit Titel, große Schreibfläche, Werkzeuge unten */
.shell:has(.notes-page){padding-top:10px;padding-bottom:0}
.notes-page{max-width:none;margin:0;min-height:calc(100dvh - 20px);display:flex;flex-direction:column;gap:6px}
.notes-page .note-topbar{display:flex;align-items:center;gap:8px;min-height:52px}
.notes-page .note-topbar .icon-btn{flex:0 0 auto}
.notes-page .note-title-input{flex:1;min-width:0;border:0;background:transparent;color:var(--ink);font:400 22px/1.2 var(--serif);padding:6px 4px;margin:0;border-radius:0;box-shadow:none}
.notes-page .note-title-input::placeholder{color:var(--muted)}
.notes-page .note-title-input:focus,.note-title-input:focus-visible{outline:none;box-shadow:none}
.notes-page .note-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted);padding:0 4px}
.notes-page .note-meta .note-scope-label{display:inline-flex;align-items:center;gap:6px}
.notes-page .note-meta svg{width:14px;height:14px}
.notes-page .note-rich{flex:1;min-height:58dvh;padding:14px 4px 24px;border:0;border-radius:0;box-shadow:none;background:transparent;font-size:17px;line-height:1.6}
.notes-page .note-rich:focus,.note-rich:focus-visible{outline:none;box-shadow:none}
.notes-page .note-bottombar{position:sticky;bottom:0;z-index:4;background:var(--paper);border-top:1px solid var(--line);padding:6px 0 calc(6px + env(safe-area-inset-bottom))}
.notes-page .note-toolbar{justify-content:space-around;flex-wrap:nowrap;gap:4px}
.notes-page .note-toolbar .rich-cmd{border:0;background:transparent;min-width:48px;min-height:48px;padding:0}
.notes-page .note-toolbar .rich-cmd svg{width:22px;height:22px}
.rich-cmd{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0;border-radius:14px;border:1px solid var(--line);background:var(--surface);color:var(--ink)}
.rich-cmd svg{width:20px;height:20px}
.rich-cmd[aria-pressed=true]{background:var(--coral);border-color:var(--accent-ink)}
.rich-cmd:focus-visible{outline:2px solid var(--accent-ink);outline-offset:2px}
.memory-toolbar{justify-content:flex-start;margin:4px 0 8px}
.notes-page .note-editor-footer{font-size:11px;color:var(--muted);display:flex;justify-content:space-between;padding:0 4px 8px}
/* Schriftgröße und Schriftfarbe im Text */
.size-s{font-size:.85em}
.size-l{font-size:1.25em}
.size-xl{font-size:1.6em}
.color-coral{color:#c4685c}
.color-lavender{color:#8f6fb0}
.color-sage{color:#5f8a6b}
.rich-toolbar{position:relative}
.rich-menu-wrap{position:relative}
.rich-menu{position:absolute;bottom:calc(100% + 8px);left:0;z-index:20;display:grid;gap:4px;min-width:176px;padding:8px;border-radius:16px;background:var(--surface);border:1px solid var(--line);box-shadow:0 12px 32px -12px rgba(0,0,0,.45)}
.rich-menu[hidden]{display:none}
.rich-menu-item{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 10px;border-radius:12px;background:transparent;color:var(--ink);text-align:left;font-size:14px}
.rich-menu-item:hover,.rich-menu-item:focus-visible{background:var(--coral)}
.rich-swatch{width:16px;height:16px;border-radius:50%;display:inline-block;background:var(--ink);flex:0 0 auto}
.rich-swatch.color-coral{background:#c4685c}.rich-swatch.color-lavender{background:#8f6fb0}.rich-swatch.color-sage{background:#5f8a6b}
.rich-glyph{font-family:var(--serif);font-size:17px}
.rich-size-sample{font-family:var(--serif);min-width:26px}
/* Fotos im Moment: Kacheln mit Hauptbild-Kennzeichnung und Aktionen in den Ecken */
.memory-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 14px}
.memory-photo-item{position:relative;aspect-ratio:4/5;border-radius:16px;overflow:hidden;background:var(--sand);border:0}
.memory-photo-item.is-main{box-shadow:0 0 0 2px var(--accent-ink)}
.memory-photo-item img{width:100%;height:100%;object-fit:cover;display:block}
.memory-photo-badge{position:absolute;left:8px;bottom:8px;padding:3px 9px;border-radius:99px;font-size:10.5px;background:rgba(18,12,20,.62);color:#fff}
.memory-photo-main-btn,.memory-photo-remove{position:absolute;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:rgba(18,12,20,.6);color:#fff;border:0}
.memory-photo-main-btn{left:8px;bottom:8px}
.memory-photo-remove{right:8px;top:8px}
.memory-photo-main-btn svg,.memory-photo-remove svg{width:16px;height:16px}
.memory-photo-add{aspect-ratio:4/5;display:grid;place-items:center;align-content:center;justify-items:center;gap:6px;border-radius:16px;border:1.5px dashed var(--line);background:var(--surface);color:var(--muted);font-size:12px}
.memory-photo-add svg{width:22px;height:22px;color:var(--accent-ink)}
.rich-toolbar{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.rich-toolbar::-webkit-scrollbar{display:none}
.rich-toolbar>*{flex:0 0 auto}
/* Startseite: Platzhalter-Karten halb so hoch */
.home-widgets .home-placeholder{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;justify-items:start;gap:10px;min-height:0;padding:10px 12px;border-radius:18px}
.home-widgets .home-placeholder-icon{width:30px;height:30px}
.home-widgets .home-placeholder-icon svg{width:15px;height:15px}
.home-widgets .home-placeholder-copy{gap:1px}
.home-widgets .home-placeholder h3{font-size:15px}
.home-widgets .home-placeholder p{font-size:11px;line-height:1.35}
.home-widgets .home-placeholder-action{margin-top:0;min-height:34px;padding:6px 12px;font-size:12px;white-space:nowrap}
/* Startseite nach neuem Mockup (Mobil) */
@media (max-width: 1099px) {
.home-hero .duration-num{color:#ffc4d2}
.home-hero .milestone-link{background:transparent;border:0;border-top:1px solid rgba(255,246,243,.2);border-radius:0;padding:16px 0 0;margin-top:4px;backdrop-filter:none;-webkit-backdrop-filter:none;grid-template-columns:52px minmax(0,1fr) 28px}
.home-hero .milestone-link .circle{background:rgba(255,255,255,.14);border-radius:16px}
.home-stats{gap:10px}
.home-widgets .home-stat{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center;align-items:center;gap:8px;padding:18px 8px;border-radius:24px}
.home-widgets .home-stat-icon{grid-row:auto;width:40px;height:40px;border-radius:14px}
.home-widgets .home-stat-icon svg{width:18px;height:18px}
.home-widgets .home-stat strong{justify-self:center;font-size:30px;line-height:1}
.home-widgets .home-stat>span:last-child{grid-column:1;font-size:12px;line-height:1.3}
.home-widgets .home-placeholder{display:grid;grid-template-columns:minmax(0,1fr);justify-items:start;align-items:start;gap:12px;min-height:0;padding:22px;border-radius:26px}
.home-widgets .home-placeholder-icon{width:56px;height:56px;border-radius:18px}
.home-widgets .home-placeholder-icon svg{width:24px;height:24px}
.home-widgets .home-placeholder-copy{gap:6px}
.home-widgets .home-placeholder h3{font-family:var(--serif);font-size:26px;font-weight:400;line-height:1.15}
.home-widgets .home-placeholder p{font-size:14px;line-height:1.5}
.home-widgets .home-placeholder-action{margin-top:6px;min-height:48px;padding:12px 22px;font-size:15px;white-space:nowrap}
}
/* Startseite Mobil: Feinabstimmung auf das Mockup (Größen, Farben, Karten) */
@media (max-width: 640px) {
.shell .masthead .brand{font-size:28px}
.shell .masthead .icon-btn{width:38px;height:38px;min-height:38px}
.shell:has(.home-hero){padding-left:16px;padding-right:16px}
}
@media (max-width: 1099px) {
:root[data-dark=true] body{background-image:radial-gradient(110% 45% at 85% 0%,rgba(176,84,128,.30),transparent 62%),radial-gradient(90% 40% at 0% 38%,rgba(122,60,104,.24),transparent 64%);background-attachment:fixed}
section.hero.home-hero{padding:20px 20px 16px;border-radius:30px;gap:12px;background:radial-gradient(70% 55% at 88% 100%,rgba(255,176,206,.38),transparent 70%),linear-gradient(160deg,#a35a7e 0%,#7b3d63 55%,#69305a 100%);box-shadow:0 24px 48px -26px rgba(120,50,95,.7),inset 0 1px 0 rgba(255,255,255,.22)}
section.hero.home-hero:before{opacity:.12}
section.hero.home-hero .home-hero-heart{width:46px;height:46px;top:18px;right:20px;stroke:#ffc4d6;stroke-width:1.4;filter:drop-shadow(0 0 8px rgba(255,150,190,.55))}
.home-hero-avatar{width:46px;height:46px}
.home-hero .couple-name{font-size:13px;letter-spacing:3px}
.home-hero .duration{font-size:24px;font-weight:500;line-height:1.1}
.home-hero .duration-num{font-size:2.5em;line-height:.75;margin:0 4px}
.home-hero .duration-sub{font-size:14px}
.home-hero .since-pill{padding:6px 12px;font-size:12.5px}
.home-hero .milestone-link{grid-template-columns:48px minmax(0,1fr) 30px;gap:14px;padding:14px 0 0}
.home-hero .milestone-link .circle{width:48px;height:48px}
.home-hero .milestone-link .overline{font-size:10px;letter-spacing:2.4px}
.home-hero .milestone-link h3{font-size:26px;font-weight:500;margin:2px 0}
.home-hero .milestone-link p{font-size:14px}
.home-hero .milestone-link>svg{width:30px;height:30px;padding:7px}
.home-widgets .home-stat{padding:12px 6px;border-radius:20px;gap:6px}
.home-widgets .home-stat-icon{width:32px;height:32px;border-radius:11px}
.home-widgets .home-stat-icon svg{width:16px;height:16px}
.home-widgets .home-stat strong{font-size:26px}
.home-widgets .home-stat>span:last-child{font-size:11px}
.home-section .section-head h2{font-size:22px}
.home-section .section-head .text-btn{color:#f2a8c0;font-weight:500}
.home-widgets .home-placeholder{padding:20px;border:1px solid rgba(255,255,255,.12);border-radius:26px;background:radial-gradient(60% 70% at 92% 8%,rgba(236,140,176,.28),transparent 70%),linear-gradient(150deg,rgba(214,126,164,.2),rgba(80,36,68,.4))}
.home-widgets .home-placeholder h3{font-size:22px}
.home-widgets .home-placeholder p{font-size:13px}
.home-widgets .home-placeholder-action{background:linear-gradient(135deg,#e88fab,#b85d7e);color:#fff;border:0;min-height:46px;padding:10px 22px;font-size:15px;box-shadow:0 10px 22px -12px rgba(220,100,150,.8)}
}
/* Meilenstein im Haupt-Widget: gerade Trennlinie, quadratisches Symbol (Mockup) */
section.hero.home-hero .milestone-link{position:relative;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;outline:0}
section.hero.home-hero .milestone-link::before{content:'';position:absolute;left:0;right:0;top:0;height:1px;background:rgba(255,246,243,.22)}
section.hero.home-hero .milestone-link .circle,section.hero.home-hero .milestone-link .flayz-milestone-icon{width:48px!important;height:48px!important;border-radius:14px!important;aspect-ratio:1/1;background:rgba(255,255,255,.14)}
/* Feinschliff: Meilenstein-Beschriftung, quadratische Kennzahlen, kompaktere Platzhalter */
@media (max-width: 1099px) {
section.hero.home-hero .milestone-link .overline{font-size:11px;font-weight:500;letter-spacing:3px;text-transform:uppercase;color:rgba(255,200,216,.92);line-height:1.3}
.home-widgets .home-stat{aspect-ratio:1/1;align-content:center;justify-items:center;padding:8px 6px;gap:4px}
.home-widgets .home-stat-icon{width:30px;height:30px;border-radius:10px}
.home-widgets .home-stat strong{font-size:26px;line-height:1.05}
.home-widgets .home-stat>span:last-child{font-size:11px;line-height:1.25}
.home-widgets .home-placeholder{padding:14px 16px;gap:8px;border-radius:22px}
.home-widgets .home-placeholder-icon{width:42px;height:42px;border-radius:14px}
.home-widgets .home-placeholder-icon svg{width:20px;height:20px}
.home-widgets .home-placeholder-copy{gap:3px}
.home-widgets .home-placeholder h3{font-size:19px}
.home-widgets .home-placeholder p{font-size:12.5px;line-height:1.4}
.home-widgets .home-placeholder-action{min-height:40px;padding:8px 18px;font-size:14px;margin-top:2px}
}
@media (max-width: 1099px) {
section.hero.home-hero .milestone-link .overline{letter-spacing:1.6px}
}
/* Schnellaktionen etwas größer */
@media (max-width: 1099px) {
.home-quick-section{gap:10px;margin-top:22px}
.home-quick-label{font-size:10px;letter-spacing:2.6px}
.home-quick{gap:10px}
.home-quick-pill{min-height:42px;padding:10px 16px;font-size:13px;gap:8px}
.home-quick-pill svg{width:17px;height:17px}
}
/* Haupt-Widget etwas kompakter */
@media (max-width: 1099px) {
section.hero.home-hero{padding:16px 18px 14px;gap:9px}
section.hero.home-hero .home-hero-avatars .home-hero-avatar{width:40px;height:40px;font-size:15px}
.home-hero .home-hero-copy{gap:5px}
.home-hero .milestone-link{padding:11px 0 0;gap:12px}
.home-hero .milestone-link .circle{width:44px;height:44px}
}
/* Avatare wieder 46 px, Zähler-Satz etwas kleiner */
@media (max-width: 1099px) {
section.hero.home-hero .home-hero-avatars .home-hero-avatar{width:46px;height:46px;font-size:17px}
.home-hero .duration{font-size:21px;line-height:1.15}
.home-hero .duration-num{font-size:2.3em}
}
.notes-page .note-toolbar{border-top:0;padding:0}
.notes-page .note-bottombar{padding:4px 0 calc(4px + env(safe-area-inset-bottom))}
@media(max-width:480px){.notes-page .note-toolbar{gap:0}.notes-page .note-toolbar .rich-cmd{min-width:0;flex:1 1 0;min-height:44px}}
.shell .masthead .icon-btn{width:44px;height:44px;min-height:44px}
.cal-views button,.cal-views .filter{min-height:44px}
@media(max-width:1099px){.memory-shell + .bottom-nav{display:none}}
.gs-results{display:grid;gap:8px;margin-top:14px}
.gs-hit{display:grid;grid-template-columns:auto 1fr;gap:2px 12px;align-items:center;text-align:left;padding:12px 14px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);min-height:48px}
.gs-hit small{grid-column:2;color:var(--muted)}
.on-this-day{display:flex;align-items:center;gap:12px;width:100%;padding:16px 18px;text-align:left;color:var(--ink)}
.on-this-day strong{flex:1;font-family:var(--serif);font-size:20px}
@media(max-width:1099px){.home-hero .duration{font-size:19px}.home-hero .duration-num{font-size:2.1em}}
@media(max-width:1099px){.masthead{flex-wrap:nowrap;gap:8px}.masthead-copy{min-width:0;flex:1 1 auto}.masthead>.row{flex-wrap:nowrap;flex:0 0 auto;gap:2px}.masthead>.row>*{flex:0 0 auto}.shell .masthead .icon-btn{width:40px;height:44px;min-height:44px}}
.page-widget[data-page-widget="timeline"]:has(> .empty){display:flex;flex-direction:column;align-items:stretch;gap:16px}
.page-widget[data-page-widget="timeline"]:has(> .empty) > .page-create{width:100%}
@media(max-width:1099px){.masthead>.row{flex-wrap:nowrap !important;max-width:none !important;width:auto !important}}
@media(max-width:420px){.shell .masthead .icon-btn{width:38px;height:38px;min-height:38px}.masthead>.row{gap:2px}}
.location-fields{border:1px solid var(--line);border-radius:18px;padding:14px 14px 6px;margin:0 0 16px;display:grid;gap:10px}
.location-fields legend{padding:0 6px;font-family:var(--serif);font-size:17px}
.location-fields .small{margin:0}
.location-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.location-actions .btn{min-height:44px;width:auto}
.location-actions .text-btn{min-height:44px}
.home-distance-entry{margin-top:28px}
.distance-card{position:relative;overflow:hidden;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;padding:22px 16px 40px;border-radius:28px;background:linear-gradient(160deg,rgba(233,154,178,.26),var(--surface,#fff5f7) 70%);border:1px solid var(--line)}
.distance-wave{position:absolute;left:0;right:0;bottom:0;width:100%;height:56px;pointer-events:none}
.distance-wave path{fill:rgba(233,154,178,.38)}
.distance-person{display:grid;justify-items:center;gap:4px;text-align:center;min-width:0;position:relative;z-index:1}
.distance-person strong{font-family:var(--serif);font-weight:400;font-size:17px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.distance-person small{display:flex;align-items:center;gap:3px;color:var(--muted);font-size:12px;max-width:100%}
.distance-person small svg{width:12px;height:12px;flex:0 0 auto}
.distance-avatar{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;overflow:hidden;border:2px solid var(--paper);background:var(--lavender,#efd9e6);color:var(--ink,#1e1621);font-family:var(--serif);font-size:24px;box-shadow:0 4px 14px rgba(0,0,0,.12)}
.distance-avatar img{width:100%;height:100%;object-fit:cover}
.distance-center{display:grid;justify-items:center;gap:2px;text-align:center;position:relative;z-index:1;padding-top:6px}
.distance-center strong{font-family:var(--serif);font-weight:400;font-size:36px;line-height:1;color:var(--ink)}
.distance-center > span:last-child{font-size:12px;color:var(--muted)}
.distance-heart svg{width:18px;height:18px;color:var(--accent-ink)}
.distance-big{font-family:var(--serif);font-weight:400;font-size:36px;line-height:1;color:var(--ink,#1e1621)}
.distance-big.is-same,.distance-big.is-missing{font-size:22px}
.distance-card[data-mood="same"]{box-shadow:0 0 0 2px rgba(233,154,178,.45)}
.mood-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}
.mood-bubble{display:grid;justify-items:center;gap:4px;padding:14px 10px;border-radius:22px;background:var(--surface,#ffffff);border:1px solid var(--line,#e8d5de);text-align:center;min-width:0}
.mood-bubble small{color:var(--muted,#685a6e);font-size:12px}
.mood-emoji{font-size:34px;line-height:1}
.mood-bubble strong{font-family:var(--serif);font-weight:400;font-size:16px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mood-group{border:1px solid var(--line,#e8d5de);border-radius:18px;padding:12px 12px 8px;margin:0 0 14px;min-width:0}
.mood-group legend{padding:0 6px;font-family:var(--serif);font-size:16px}
.mood-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.mood-chip{position:relative;display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid var(--line,#e8d5de);border-radius:999px;background:var(--surface,#ffffff);color:var(--ink,#1e1621);font-size:14px;cursor:pointer}
.mood-chip input{position:absolute;opacity:0;pointer-events:none}
.mood-chip span{font-size:20px}
.mood-chip:has(input:checked){background:var(--coral);border-color:var(--accent-ink)}
.mood-chip:has(input:focus-visible){outline:2px solid var(--accent-ink);outline-offset:2px}
.touch-card{margin-top:16px;display:grid;gap:6px;background:linear-gradient(160deg,rgba(233,154,178,.22),var(--surface,#fff5f7) 70%)}
.touch-card h2{margin:0;font-family:var(--serif);font-weight:400;font-size:22px}
.touch-card p{margin:0}
.touch-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:8px}
.touch-reply{grid-template-columns:repeat(2,minmax(0,1fr))}
.touch-btn{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 10px;border-radius:999px;border:1px solid var(--line,#e8d5de);background:var(--surface,#ffffff);color:var(--ink,#1e1621);font-size:14px;white-space:nowrap}
.touch-btn span{font-size:16px}
.touch-btn:disabled{opacity:.45}
@media(max-width:380px){.touch-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
.touch-card{gap:10px}
.touch-count{display:grid;place-items:center;min-width:44px;height:44px;border-radius:999px;background:var(--coral,#f19eb2);font-family:var(--serif);font-size:20px;color:var(--ink,#1e1621)}
.touch-log{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.touch-line{display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:center;padding:10px 12px;border-radius:16px;background:var(--surface,#fff);border:1px solid var(--line,#e8d5de)}
.touch-who{font-size:12px;color:var(--muted,#685a6e)}
.touch-what{font-size:15px;font-weight:600}
.touch-line small{grid-column:1 / -1;font-size:11px}
.touch-status-row{display:grid;gap:6px}
.touch-status{font-size:13px;color:var(--muted,#685a6e)}
.touch-status.is-done{color:var(--accent-ink,#a8405e)}
.touch-btn.is-primary{background:var(--coral,#f19eb2);border-color:var(--accent-ink,#a8405e);font-weight:600}
.touch-card.is-empty .touch-actions{margin-top:4px}
.touch-card .touch-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
.touch-card .touch-btn{white-space:normal;text-align:center;line-height:1.2;font-size:13px;padding:8px 6px}
.mood-action{min-height:44px;margin-top:8px}
