:root{--bg:#f8f7f2;--paper:#fffefa;--green:#48614e;--ink:#353d35;--muted:#737a6e;--line:#e2e5da;--sage:#e7eadf;--pink:#f4e9e3;--serif:'Songti SC','Noto Serif CJK SC','STSong',Georgia,serif;--radius:18px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.65 -apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif}button,input,textarea,select{font:inherit;color:inherit}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #9baa8c;outline-offset:3px}button{min-height:44px}p,h1,h2,h3{overflow-wrap:anywhere}h1,h2,h3{line-height:1.4}h1{font:600 28px/1.5 var(--serif);margin:0}h2{font-size:18px;margin:0}h3{font-size:17px;margin:0 0 12px}small,.hint{font-size:13px;color:var(--muted)}.hint{line-height:1.7}.icon{width:21px;height:21px;flex-shrink:0;vertical-align:middle}.person-avatar,.dog-avatar{width:40px;height:40px;object-fit:contain;display:block}.primary,.secondary,.text-button{border-radius:12px;padding:11px 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:500}.primary{background:var(--green);color:#fff;border:1px solid var(--green)}.secondary{background:var(--paper);border:1px solid #ccd5c4;color:var(--green)}.text-button{border:0;background:none;color:var(--green);padding:10px 8px}.danger{color:#a14b40!important}.close{border:0;background:#eeefe6;border-radius:50%;width:44px;min-width:44px;height:44px;font:25px/1 sans-serif}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;padding:34px 22px;background:#f0f1e9;border-right:1px solid var(--line);display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px}.brand-icon{white-space:nowrap;display:block!important;text-align:center;line-height:44px!important;flex-shrink:0;border:1px solid #c7cfbf;border-radius:50%;height:44px;width:44px;display:grid;place-content:center;font:24px Georgia;letter-spacing:-2px;position:relative}.brand-icon span{position:absolute;top:-12px;left:17px;font:16px Georgia;color:#9d7469}.brand strong{font:600 17px var(--serif)}.brand small{display:block;font:10px/2.6 sans-serif;letter-spacing:1.8px}.sidebar-note{font-size:12px;color:var(--muted);margin:20px 0 28px}#desktop-nav{display:flex;flex-direction:column;gap:8px}#desktop-nav a,#desktop-nav button{display:flex;align-items:center;gap:14px;border:0;padding:14px 16px;border-radius:12px;text-align:left;background:none;color:#697663;font-size:15px}#desktop-nav .active{background:#dfe6d7;color:var(--green);font-weight:600}#desktop-nav .nav-compose{background:var(--green);color:#fff;order:6;margin-top:12px}.side-bottom{margin-top:auto;text-align:center;padding-top:24px}.couple{display:flex;align-items:center;justify-content:center;gap:12px}.couple b{color:#a87969}.couple img{width:40px;height:40px}.side-bottom p{margin:12px 0 4px;font:19px Georgia}.side-bottom small{font-size:12px}.side-bottom button{margin-top:18px}.app{margin-left:224px}header{height:78px;margin:0 40px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}#header-location{font-weight:600;font-size:15px}.header-right{display:flex;align-items:center;gap:18px}#today{font-size:13px;color:var(--muted)}.avatar{background:var(--sage);border:1px solid #d6dfcb;border-radius:50%;width:44px;height:44px;padding:3px}.avatar img{width:36px;height:36px}main{max-width:1200px;margin:auto;padding:30px 40px 56px}footer{padding:10px 24px 28px;text-align:center;font:12px Georgia;color:#89917f}footer span{color:#ac8273;margin-left:6px}#mobile-nav,.fab{display:none}.hero{background:var(--sage);border:1px solid #dce2d2;border-radius:22px;padding:24px 28px;display:flex;justify-content:space-between;align-items:center;overflow:hidden;position:relative;min-height:170px}.hero-content{z-index:1}.hero .couple-label{font:17px Georgia;color:var(--green);margin:0 0 7px}.couple-label span{color:#a87969;margin:0 6px}.hero h1{font-size:22px;font-weight:500}.hero strong{font:48px/1.1 Georgia;color:var(--green);margin:0 3px}.hero p:not(.couple-label){margin:12px 0 0;font-size:13px;color:#697663}.hero-art{width:185px;min-width:185px;height:130px;position:relative}.hero-art .person-avatar{width:99px;height:99px;position:absolute;bottom:5px;left:0;transform:rotate(-7deg)}.hero-art .person-avatar:last-child{left:84px;transform:rotate(8deg)}.hero-art .heart{position:absolute;top:-8px;left:85px;color:#aa7e6b;font:35px Georgia}.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0 28px}.quick-actions button{border:1px solid var(--line);border-radius:16px;background:var(--paper);padding:17px 18px;display:flex;align-items:center;gap:14px;text-align:left}.quick-actions button>.icon:first-child{color:var(--green);width:25px;height:25px}.quick-actions button>.icon:last-child{margin-left:auto;width:17px;color:#819071}.quick-actions strong{display:block;font-size:15px;font-weight:500}.quick-actions small{display:block;margin-top:3px;font-size:12px}.content-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:28px}.content-grid>*,.cards-grid>*,.settings-grid>*{min-width:0}.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 16px}.section-head h2{font-size:17px}.section-head a{font-size:13px;color:var(--green);display:flex;align-items:center;gap:6px}.section-head .icon{width:16px}.home-aside>.section-head:not(:first-child){margin-top:28px}.memory,.anniv-card,.wish-card,.settings-card{padding:22px;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);overflow:hidden}.card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-4px 0 16px}.byline{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--green)}.byline img{width:34px;height:34px}.byline small{display:block;font-size:11px;color:var(--muted);line-height:1.5}.card-more{background:none;border:0;padding:10px;color:#818b77;border-radius:10px;width:44px;flex-shrink:0;margin-right:-10px}.card-more .icon{stroke-width:4}.record-text{font-size:15px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 14px}.record-text:last-child{margin-bottom:0}.tag{display:inline-block;padding:3px 10px;border-radius:6px;background:#f0f2e8;color:#75826c;font-size:12px;margin-top:8px}.category-label{display:flex;align-items:center;gap:8px;color:var(--green);font-size:13px}.category-label .icon{width:18px;height:18px}.anniv-card{background:#f3f3e9}.countdown{font:38px/1.5 Georgia;color:var(--green);margin:14px 0}.countdown small{margin-left:10px;font:13px sans-serif}.anniv-foot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px;color:var(--muted);font-size:12px}.wish-card{background:#fcf9f2}.wish-done{background:#f0f3e9}.wish-date{font-size:12px;color:var(--muted);margin-top:16px}.wish-controls{border-top:1px solid var(--line);padding-top:12px;margin-top:14px}.wish-controls .secondary{font-size:13px}.wish-controls .text-button{padding:0;font-size:13px}.wish-controls .icon{width:17px}.welcome{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 24px}.welcome p{margin:7px 0 0;font-size:14px;color:var(--muted)}.welcome .primary{flex-shrink:0}.search{width:100%;border:1px solid var(--line);background:var(--paper);border-radius:12px;padding:12px 16px;margin-bottom:18px;min-height:48px;font-size:16px}.filters{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:20px}.filters button{border:1px solid transparent;background:none;border-radius:10px;padding:8px 14px;font-size:14px;color:var(--muted)}.filters button.active{background:#e4e9dc;color:var(--green);border-color:#d4dec9;font-weight:500}.filters button span{font-size:12px;opacity:.8;padding-left:4px}.cards-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.empty{background:#f4f4ec;border:1px dashed #d7ddcc;border-radius:var(--radius);padding:28px 20px;text-align:center;color:var(--muted);grid-column:1/-1}.empty>.icon{width:30px;height:30px;color:#839574;margin-bottom:12px}.empty h3{font-size:16px;color:var(--green);margin:0 0 10px}.empty p{font-size:13px;max-width:300px;margin:0 auto 18px}.empty button{font-size:13px}.timeline-date{font-size:12px;color:#7a856e;margin:20px 0 12px;letter-spacing:.5px}.timeline-date:first-child{margin-top:0}.timeline-entry{position:relative;margin-bottom:16px;padding-left:17px;border-left:1px solid #d6decb}.timeline-entry:before{content:'';width:7px;height:7px;background:#a8b697;border-radius:50%;position:absolute;left:-4px;top:8px;border:2px solid var(--bg)}.timeline-kind{display:block;font-size:12px;color:var(--green);margin:0 0 9px}.timeline-entry .memory{border-radius:15px}.timeline-tools{margin-bottom:24px}.timeline-tools .search{margin-bottom:12px}.month-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.month-row>span{margin-left:auto}.month-filter{display:flex;gap:10px;align-items:center;font-size:13px}.month-filter input{min-width:145px;min-height:44px;border:1px solid var(--line);background:var(--paper);border-radius:9px;padding:8px;font-size:14px}.load-more{display:flex;margin:28px auto 0;flex-wrap:wrap}.load-more small{font-size:11px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.settings-card h2{margin-bottom:18px;font-size:17px}.profile-row{display:flex;align-items:center;gap:14px;margin-bottom:20px}.profile-row .person-avatar{width:50px;height:50px}.profile-row p{margin:4px 0 0;font-size:12px;color:var(--muted)}.settings-card>button,.menu-actions>button{display:flex;width:100%;justify-content:space-between;align-items:center;gap:12px;text-align:left;background:transparent;border:0;border-top:1px solid var(--line);padding:16px 0;font-size:14px;min-height:54px}.settings-card>button small{display:block;margin-top:6px}.settings-card .hint{margin:10px 0 16px}.settings-card>button:last-child{padding-bottom:0}.settings-card .icon{width:17px}.connection-banner,.migration-banner{border:1px solid #e5caa4;background:#fff4e4;border-radius:12px;padding:14px 18px;font-size:13px;margin-bottom:20px}.connection-banner button{border:0;background:none;text-decoration:underline;color:var(--green);margin-left:8px}.draft-banner{width:100%;border:1px solid #dce3d3;background:#eef1e6;border-radius:12px;padding:12px 16px;text-align:left;margin-bottom:20px;font-size:13px;color:var(--green);display:flex;justify-content:space-between;gap:12px}.draft-banner span{white-space:nowrap}.migration-banner p{margin:6px 0}.migration-banner .primary{margin-top:6px}dialog{border:1px solid var(--line);border-radius:22px;background:var(--paper);color:var(--ink);padding:26px;width:min(560px,calc(100% - 32px));max-height:calc(var(--viewport-height,100dvh) - 40px);overflow:auto;overscroll-behavior:contain;box-shadow:0 24px 100px #25382326}dialog::backdrop{background:#303d3270;backdrop-filter:blur(3px)}body:has(dialog[open]){overflow:hidden}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}.dialog-head small{font-size:10px;letter-spacing:1.5px;color:#8c987f}.dialog-head h2{font-size:21px;margin-top:4px}.compose-options{display:grid;gap:10px}.compose-options button{display:flex;align-items:center;gap:16px;width:100%;border:1px solid var(--line);border-radius:14px;background:#f5f5ee;padding:17px;text-align:left}.compose-options button>span{width:30px;font-size:25px;color:var(--green)}.compose-options button>b{margin-left:auto;color:#859577;font-weight:400}.compose-options strong{display:block;font-size:15px;font-weight:500}.compose-options small{display:block;font-size:12px;margin-top:4px}.field{display:block;font-size:14px;margin:0 0 20px;font-weight:500}.field input,.field textarea,.field select{display:block;width:100%;border:1px solid #dce2d3;border-radius:10px;background:#fffefa;padding:11px 13px;margin-top:8px;min-height:46px;font-size:16px;font-weight:400}.field textarea{min-height:140px;resize:vertical;line-height:1.8}.field input[type=date]{min-width:0;max-width:100%}.field input:focus,.field textarea:focus,.field select:focus{border-color:#91a17e}.repeat-label{display:flex;align-items:center;gap:8px;font-size:14px;min-height:44px;margin-bottom:16px}.repeat-label input{width:20px;height:20px;accent-color:var(--green)}.optional-fields{border-top:1px solid var(--line);padding-top:6px;margin-top:14px}.optional-fields summary{cursor:pointer;font-size:14px;min-height:48px;padding:12px 0;color:var(--green)}.optional-fields summary span{font-size:12px;margin-left:8px;color:var(--muted)}.optional-fields[open] summary{margin-bottom:12px}.save-location{font-size:12px;color:var(--muted);margin:18px 0 8px;line-height:1.8}.save-location span{display:block}.form-actions{display:flex;justify-content:flex-end;gap:10px;position:sticky;bottom:-26px;background:var(--paper);padding:16px 0 2px;margin:12px 0 0;border-top:1px solid var(--line);z-index:2}.form-actions button{flex:1}.photo-upload{border:1px dashed #b9c6aa;border-radius:12px;padding:14px 16px;background:#f0f3e8;cursor:pointer;position:relative;overflow:hidden;display:block;text-align:center;margin-bottom:12px;min-height:76px}.photo-upload strong{display:block;color:var(--green);font-size:14px;font-weight:500}.photo-upload small{display:block;font-size:11px;margin-top:5px}.photo-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0}.photo-upload:focus-within{outline:3px solid #9baa8c}.photo-drafts{display:flex;gap:10px;flex-wrap:wrap}.draft-photo{position:relative;width:calc((100% - 20px)/3);background:var(--sage);border-radius:10px;overflow:hidden}.draft-photo>img{width:100%;height:130px;object-fit:cover;display:block}.draft-photo>button{position:absolute;top:0;right:0;width:44px;height:44px;background:#fffefae6;border:0;border-radius:0 0 0 12px;font-size:24px}.photo-order{display:flex;justify-content:center;gap:4px}.photo-order button{border:0;background:none;flex:1;color:var(--green)}.chat-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));gap:8px;margin-top:16px}.photo-thumb{padding:0;border:1px solid #e3e6da;border-radius:10px;overflow:hidden;background:#e9ede2;position:relative;min-width:0}.photo-thumb img{display:block;width:100%;height:175px;object-fit:cover;object-position:top}.photo-thumb:only-child img{height:240px}.photo-thumb.failed{min-height:120px}.photo-thumb.failed:after{content:'图片暂时无法加载，点击重试';position:absolute;inset:0;display:grid;place-content:center;padding:14px;background:#eef0e6;font-size:12px}.upload-item{background:#eff2e9;border-radius:10px;padding:12px;font-size:12px;margin:8px 0;overflow-wrap:anywhere}.upload-item progress{display:block;width:100%;height:5px;accent-color:var(--green);margin:8px 0}.upload-item button{border:0;background:none;color:var(--green);padding:6px 12px;min-height:44px}.upload-item .error{color:#9f5146}#photo-viewer{width:min(1000px,calc(100% - 24px));padding:16px;background:var(--bg)}.viewer-toolbar{position:sticky;top:-16px;display:flex;gap:6px;align-items:center;background:var(--bg);z-index:2;padding:8px 0;margin-bottom:12px;font-size:13px}.viewer-toolbar button,.viewer-toolbar a{min-width:44px;min-height:44px;border:0;background:var(--sage);border-radius:9px;display:grid;place-content:center;padding:5px 9px;font-size:13px}.viewer-toolbar .close{margin-left:auto}.viewer-toolbar #photo-download{background:var(--green);color:white;font-size:12px}#photo-full{display:block;width:100%;height:auto;border-radius:6px}#photo-full.zoomed{width:auto;max-width:none}#photo-viewer .hint{text-align:center}.panel-record{border-top:1px solid var(--line);padding:20px 0}.panel-record p{font-size:13px;color:var(--muted)}.panel-record strong{overflow-wrap:anywhere}.panel-record button{margin-right:8px}#confirm-message{font-size:17px;line-height:1.8;font-weight:500;margin-bottom:24px}#record-menu-title{font-size:18px}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);background:#364b3e;color:white;padding:12px 20px;border-radius:12px;font-size:14px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:100;max-width:calc(100vw - 32px);width:max-content;box-shadow:0 6px 20px #283a3020}#toast.show{opacity:1;transform:translate(-50%,0)}.just-saved{animation:saved 1.6s ease-out}@keyframes saved{0%{box-shadow:0 0 0 3px #90a17d}100%{box-shadow:0 0 0 0 transparent}}.auth-screen{min-height:100dvh;display:grid;place-items:center;padding:32px 20px;background:radial-gradient(ellipse at 50% 0,#e3e9d9,transparent 70%),var(--bg)}.auth-card{width:min(390px,100%);text-align:center;background:var(--paper);border:1px solid var(--line);border-radius:24px;padding:30px}.auth-pair{display:flex;justify-content:center;align-items:center;gap:10px;margin-bottom:22px}.auth-pair img{width:76px;height:76px}.auth-pair span{color:#b08c79;font-size:26px}.eyebrow{font-size:10px;letter-spacing:2px;color:#879579}.auth-card h1{font:28px Georgia;margin:12px 0 15px}.auth-card>p{font-size:13px;color:var(--muted)}.auth-card form{text-align:left;margin-top:24px}.auth-card .primary{width:100%}.password-field{display:flex;align-items:center;border:1px solid #dce2d3;border-radius:10px;margin-top:8px;background:var(--paper)}.password-field input{border:0;margin:0;background:transparent;min-width:0}.password-field button{border:0;background:none;font-size:12px;color:var(--green);padding:8px 12px;flex-shrink:0}.password-field:focus-within{outline:2px solid #9baa8c}.password-field input:focus-visible{outline:0}.transport-note{font-size:11px!important}.signed-out>.sidebar,.signed-out>.app,.signed-out>#mobile-nav,.signed-out>.fab{display:none!important}[hidden]{display:none!important}
@media(hover:hover){.primary:hover{background:#3b5140}.secondary:hover,.quick-actions button:hover,.card-more:hover,.compose-options button:hover{background:#eef2e5}.settings-card>button:hover,.text-button:hover{color:#273f2c}.photo-thumb:hover img{filter:brightness(.96)}}
@media(min-width:1100px){.timeline-tools~.timeline{max-width:760px}.cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){.sidebar{width:190px;padding:28px 16px}.brand{gap:8px}.brand strong{font-size:15px}.brand-icon{width:36px;height:36px}.sidebar-note{font-size:10px}.app{margin-left:190px}header{margin:0 26px}main{padding:24px 26px 40px}.hero{padding:24px}.hero-art{width:130px;min-width:130px}.hero-art .person-avatar{width:76px;height:76px}.hero-art .person-avatar:last-child{left:56px}.hero-art .heart{left:60px;top:8px}.hero h1{font-size:20px}.hero strong{font-size:42px}.content-grid{grid-template-columns:1fr}.home-aside{display:grid;grid-template-columns:1fr 1fr;gap:16px}.home-aside>.section-head{grid-row:1;margin:0!important}.home-aside>.section-head:nth-of-type(2){grid-column:2}.home-aside>.anniv-card,.home-aside>.empty,.home-aside>.wish-card{grid-row:2}.cards-grid,.settings-grid{grid-template-columns:1fr}.quick-actions button{padding:14px;gap:10px}.quick-actions button>.icon:last-child{display:none}}
@media(max-width:700px){body{font-size:15px}.sidebar{display:none}.app{margin-left:0}header{height:64px;margin:0 20px;border:0}#header-location{font-size:16px;font-family:var(--serif)}.header-right{gap:12px}#today{display:none}.avatar{width:44px;height:44px;min-height:44px;padding:5px}.avatar img{width:32px;height:32px}main{padding:8px 20px 28px}footer{padding:0 20px 104px;font-size:11px}#mobile-nav{position:fixed;inset:auto 0 0;display:flex;justify-content:space-around;align-items:center;padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:#fafbf5f5;border-top:1px solid #e0e5d8;z-index:20;backdrop-filter:blur(12px)}#mobile-nav a,#mobile-nav button{display:flex;flex:1;min-width:0;min-height:54px;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:none;border:0;margin:0;padding:4px;color:#7b8871;font-size:11px;border-radius:12px}#mobile-nav .icon{width:21px;height:21px}#mobile-nav .active{color:var(--green);font-weight:600;background:#e9eedf}#mobile-nav .nav-compose .icon{background:var(--green);color:#fff;border-radius:12px;padding:7px;width:36px;height:34px;margin-top:-9px}#mobile-nav .nav-compose{color:var(--green)}.hero{min-height:157px;padding:20px;border-radius:19px}.hero .couple-label{font-size:16px;margin-bottom:12px}.hero h1{font:500 17px/1.4 var(--serif);white-space:nowrap}.hero strong{font-size:38px;margin:0 2px}.hero p:not(.couple-label){font-size:10px;margin-top:13px;white-space:nowrap}.hero-art{width:80px;min-width:80px;height:100px;margin-left:4px}.hero-art .person-avatar{width:54px;height:54px;bottom:12px;left:-5px}.hero-art .person-avatar:last-child{left:35px;bottom:6px}.hero-art .heart{left:32px;top:2px;font-size:25px}.quick-actions{gap:10px;margin:14px 0 24px}.quick-actions button{padding:14px 10px;border-radius:13px;gap:8px;min-height:78px}.quick-actions button>.icon:first-child{width:20px;height:20px}.quick-actions strong{font-size:13px;white-space:nowrap}.quick-actions small{font-size:10px;white-space:nowrap}.section-head{margin-bottom:14px}.section-head h2{font-size:16px}.section-head a{font-size:12px}.content-grid{gap:24px}.home-aside{display:flex;flex-direction:column;gap:14px}.home-aside>.section-head:nth-of-type(2){margin-top:12px!important}.memory,.anniv-card,.wish-card,.settings-card{padding:18px;border-radius:15px}.card-top{margin-bottom:12px}.record-text{font-size:15px;line-height:1.9}h3{font-size:16px}.welcome{margin:8px 0 22px;align-items:flex-start;flex-wrap:wrap;gap:14px}.welcome h1{font-size:25px}.welcome p{font-size:12px;margin-top:6px}.welcome .primary{padding:9px 14px;font-size:13px}.cards-grid{gap:16px}.filters{gap:4px;margin-bottom:16px}.filters button{font-size:13px;padding:8px 12px}.timeline-entry{padding-left:12px}.timeline-date{font-size:11px}.timeline-kind{font-size:11px}.timeline-entry .memory{padding:16px}.empty{padding:24px 16px}.empty p{font-size:12px}.draft-banner{font-size:12px;padding:12px;margin-bottom:14px}.settings-grid{gap:16px}.month-row{gap:8px}.month-filter{font-size:12px}.month-row>span{font-size:11px}.chat-photos .photo-thumb img{height:140px}.chat-photos .photo-thumb:only-child img{height:225px}dialog{padding:22px 20px;width:calc(100% - 24px);max-height:calc(var(--viewport-height,100dvh) - 24px);border-radius:20px;margin:auto}dialog .dialog-head{margin-bottom:20px}.dialog-head h2{font-size:20px}.dialog-head small{font-size:9px}.form-actions{bottom:-22px;padding:14px 0 calc(3px + env(safe-area-inset-bottom));gap:8px}.form-actions button{font-size:13px;padding:11px 10px}.field{font-size:13px;margin-bottom:18px}.field textarea{min-height:130px}.photo-upload small{font-size:10px}.optional-fields summary{font-size:13px}.save-location{font-size:11px}.draft-photo>img{height:105px}.viewer-toolbar{gap:4px;flex-wrap:wrap}.viewer-toolbar #photo-download{padding:6px;font-size:11px}.viewer-toolbar button{font-size:12px;padding:4px}.viewer-toolbar .close{font-size:22px;width:44px}#photo-count{font-size:11px}#toast{bottom:calc(88px + env(safe-area-inset-bottom));font-size:13px;padding:12px 16px}.auth-card{padding:26px}.auth-screen{padding:24px}.auth-card h1{font-size:27px}}
@media(max-width:374px){main{padding-left:14px;padding-right:14px}header{margin:0 14px}.hero{padding:18px 16px}.hero-art{width:70px;min-width:70px}.hero-art .person-avatar:last-child{left:27px}.hero h1{font-size:16px}.hero strong{font-size:34px}.quick-actions button{padding:12px 8px}.quick-actions small{font-size:9px}.quick-actions strong{font-size:12px}.filters button{padding:8px 10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

dialog{position:fixed;inset:auto;left:50%;top:calc(var(--viewport-top,0px) + var(--viewport-height,100dvh)/2);margin:0;transform:translate(-50%,-50%)}

/* The cover and loose journal pages share the paper and sage tones of the journal. */
.hero {
  background: radial-gradient(ellipse at 90% 12%, #f5f3df 0%, transparent 41%), linear-gradient(112deg,#e0e8d8,#edf0e2);
  box-shadow: inset 0 0 0 6px #ffffff40;
}
.hero-content { padding-left: 14px; border-left: 2px solid #b6c3a6; }
.hero-art::before {
  content: ''; position: absolute; inset: 9% 1% 1%; border-radius: 60% 60% 20% 20%;
  background: repeating-linear-gradient(0deg, transparent 0 15px,#dadcc533 15px 16px),#faf6e4;
  border: 1px solid #d9ddc6; box-shadow: 3px 4px 0 #bac7ae55; transform:rotate(3deg);
}
.hero-art .heart { z-index: 1; }
#desktop-nav {margin-top:28px}
.page-end {height:50px}
.drawer-entry {
  width:100%; display:flex; gap:16px; align-items:center; padding:18px 20px; text-align:left;
  background:#f3ede2; border:1px solid #ded8ca; border-radius:16px; color:var(--green);
}
.drawer-entry span {flex:1;font:600 17px var(--serif)}
.drawer-entry small {display:block;font:13px/1.6 sans-serif;margin-top:5px}
.journal-leaf {background:#f8f6ec;border-radius:4px 14px 14px 4px;border-left:3px solid #aeba9e;padding:20px;overflow-wrap:anywhere}
.journal-leaf time {display:block;font:14px Georgia;color:var(--green);margin-bottom:18px}
.journal-leaf>img {display:block;max-height:45dvh;width:100%;object-fit:contain;margin-bottom:14px}
.leaf-signature {display:flex;align-items:center;justify-content:flex-end;gap:6px;font:italic 16px Georgia;margin-top:18px}
.leaf-signature img {width:32px;height:32px}
#keepsake-next {margin:16px 0 0 auto;display:flex}
@media(max-width:700px){.hero-content{padding-left:8px}.page-end{height:100px}}

.anniversary-link{display:flex;align-items:center;gap:15px;margin:16px 0;padding:10px 18px 10px 10px;border:1px solid #dfd3bf;border-radius:18px;background:#fbf5e9;color:#494e3e;text-decoration:none}
.anniversary-link img{width:74px;height:56px;object-fit:cover;border-radius:10px}
.anniversary-link strong,.anniversary-link small{display:block}.anniversary-link strong{font-family:"Songti SC",serif;font-size:18px}.anniversary-link small{font-size:12px;color:#755d4d;margin-bottom:3px}.anniversary-link b{margin-left:auto}
