@import url('/assets/fonts/fonts.css?v=20261111-ga1');
:root{--paper:#faf7f1;--ink:#293d35;--soft:#6b746b;--accent:#a24e38;--line:#deded0;--serif:Georgia,'Times New Roman',serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px 'DM Sans',Arial,sans-serif;padding-bottom:94px}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:4px}input:focus,textarea:focus{outline:2px solid #78917c;outline-offset:2px}.shell{max-width:960px;padding:0 32px;margin:auto}.ribbon{text-align:center;background:#eceee5;color:#526452;font-size:11px;padding:10px 15px}header{display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px solid var(--line);padding:25px 0}.brand{text-decoration:none;font:25px var(--serif);letter-spacing:-.7px}.back{font-size:12px;text-decoration:none;color:var(--soft)}.heading{padding:53px 0 28px;max-width:560px}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:2px;color:var(--accent);font-weight:700}h1{font:normal 57px/1.08 var(--serif);letter-spacing:-2px;margin:17px 0}h1 em{color:var(--accent);font-weight:normal}p{line-height:1.8;color:var(--soft)}.heading p{max-width:420px;font-size:15px}.privacy{display:flex;gap:15px;padding:19px 22px;background:#eeeee4;border-radius:5px;max-width:780px;font-size:12px}.privacy>span{font-size:25px;color:#71856a}.privacy strong{font-weight:600}.privacy p{margin:4px 0 0}.tabs{display:flex;border-bottom:1px solid var(--line);gap:30px;margin:33px 0}.tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:16px 0;color:var(--soft);font-size:12px}.tabs button[aria-current=page]{border-color:var(--accent);color:var(--ink)}h2{font:normal 29px/1.2 var(--serif);letter-spacing:-.5px;margin:12px 0 23px}.panel{background:#fffdf9;border:1px solid #e5e1d6;border-radius:6px;padding:29px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:22px}label{display:block;font-size:12px;font-weight:500}input,textarea{width:100%;border:1px solid #d8d9cb;border-radius:4px;background:#fffefb;color:var(--ink);padding:12px 13px;margin-top:8px;font-size:14px;min-width:0}input::placeholder,textarea::placeholder{color:#8b8c80}textarea{resize:vertical;min-height:118px;line-height:1.7}.list-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:35px 0 20px}.list-heading h2{margin:0 0 7px}.list-heading p{font-size:11px;margin:0}.text-button{background:none;border:0;color:var(--soft);font-size:11px;padding:8px 0;text-decoration:underline;text-underline-offset:4px}.memory{margin-bottom:24px}.card-top{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:17px;margin-bottom:23px}.memory-number{font:italic 19px var(--serif);color:var(--accent)}.card-actions{display:flex;gap:7px}.icon-button{border:1px solid var(--line);background:transparent;border-radius:25px;padding:7px 11px;color:var(--soft);font-size:11px;min-height:33px}.memory-grid{display:grid;grid-template-columns:235px 1fr;gap:26px}.photo-box{border:1px dashed #bfc5b4;background:#f0f0e6;min-height:190px;border-radius:4px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:20px;text-align:center}.photo-box.has-photo{padding:0}.photo-box img{width:100%;height:215px;object-fit:cover;display:block}.photo-box .symbol{font:32px var(--serif);color:#86937b}.photo-box label{cursor:pointer;font-size:12px}.photo-box input{position:absolute;inset:0;opacity:0;cursor:pointer;margin:0;width:100%;height:100%}.photo-box:focus-within{outline:2px solid var(--accent);outline-offset:3px}.photo-box .photo-hint{font-size:10px;color:var(--soft);margin-top:8px;line-height:1.6}.photo-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:9px}.photo-actions .text-button{font-size:10px}.file-name{font-size:10px;color:var(--soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:155px}.memory-fields{display:grid;grid-template-columns:1fr 170px;gap:17px}.full{grid-column:1/-1}.prompt-label{font-size:10px;color:var(--soft);margin:11px 0 6px}.prompts{display:flex;flex-wrap:wrap;gap:6px}.prompts button{background:#f2efe7;border:1px solid #e7e2d6;color:#6e7667;border-radius:20px;font-size:10px;padding:7px 10px}.counter{text-align:right;font-size:10px;color:var(--soft);margin-top:6px}.add{width:100%;border:1px dashed #aebba5;border-radius:5px;background:#eeeee4;color:var(--ink);padding:24px;font-size:14px}.add small{display:block;font-size:10px;color:var(--soft);margin-top:7px}.form-end{display:flex;justify-content:space-between;align-items:center;gap:25px;margin:28px 0 40px}.form-end p{font-size:12px;max-width:390px}.primary{border:0;border-radius:30px;background:var(--ink);color:var(--paper);padding:15px 23px;font-size:12px;white-space:nowrap}.savebar{position:fixed;bottom:0;left:0;right:0;background:#faf7f1f5;backdrop-filter:blur(12px);border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px max(24px,calc((100vw - 896px)/2));z-index:5}.savebar>div{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--soft)}.save-dot{width:6px;height:6px;border-radius:50%;background:#7b8d70;flex-shrink:0}.save-button{background:transparent;border:1px solid #c6ccbc;color:var(--ink);border-radius:25px;padding:12px 17px;font-size:11px}footer{border-top:1px solid var(--line);padding:20px 0;display:flex;justify-content:space-between;gap:20px;align-items:center;color:var(--soft);font-size:10px}.error,.notice{font-size:12px;line-height:1.7;padding:16px 20px;border-radius:4px;margin:20px 0}.error{background:#fae8dd;color:#91432d}.notice{background:#e8ede0;color:#52654b}[hidden]{display:none!important}.review-heading{text-align:center;padding:20px 0 35px}.review-heading h2{font-size:43px;margin:18px 0 10px}.review-heading p{margin:0}.review-card{display:grid;grid-template-columns:280px 1fr;gap:30px;margin-bottom:25px;align-items:center}.review-card img{width:100%;aspect-ratio:1.4;object-fit:cover;border-radius:3px}.review-card h3{font:normal 28px var(--serif);margin:12px 0}.review-card time{font-size:10px;letter-spacing:1px;color:var(--accent)}.review-card p{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.review-end{text-align:center;margin:35px 0}.review-end p{max-width:470px;margin:0 auto 22px;font-size:13px}dialog{border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink);padding:30px;width:min(440px,calc(100% - 32px))}dialog::backdrop{background:#17241dbb;backdrop-filter:blur(4px)}dialog h2{margin-top:0}dialog p{font-size:13px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.danger{border:0;background:var(--accent);color:white;border-radius:25px;padding:12px 19px;font-size:12px}
@media(max-width:700px){.shell{padding:0 20px}header{padding:20px 0}.brand{font-size:22px}.back{font-size:10px}.heading{padding-top:37px}h1{font-size:46px;letter-spacing:-1.7px}.heading p{font-size:13px}.privacy{padding:15px;font-size:11px}.tabs{gap:18px;margin:25px 0}.tabs button{font-size:10px}.panel{padding:21px 17px}h2{font-size:26px}.fields{grid-template-columns:1fr;gap:17px}.list-heading{align-items:flex-start;gap:13px}.list-heading h2{font-size:24px}.list-heading .text-button{font-size:10px;max-width:100px;text-align:right}.memory-grid{grid-template-columns:1fr}.photo-box{min-height:170px}.photo-box img{height:230px}.memory-fields{grid-template-columns:1fr 135px;gap:14px}.card-actions{gap:4px}.icon-button{font-size:10px;padding:7px 8px}.form-end{display:block}.form-end .primary{width:100%;margin-top:10px}.savebar{padding:13px 17px;gap:12px}.savebar>div{font-size:10px;max-width:175px}.save-button{font-size:10px;padding:11px 12px}.review-card{grid-template-columns:1fr;gap:3px}.review-heading h2{font-size:34px}footer{font-size:9px}.file-name{max-width:220px}.review-card h3{font-size:27px}.ribbon{font-size:10px}input,textarea{font-size:16px}.memory-fields>label:first-child{grid-column:1/-1}.memory-fields>label:nth-child(2){grid-column:1/-1}.review-end h2{font-size:26px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.replace-hint{position:absolute;right:10px;bottom:10px;background:#faf7f1ef;padding:7px 11px;border-radius:20px;color:var(--ink);font-size:10px;pointer-events:none}
.timeline-tools{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:18px 0;border-block:1px solid var(--line)}.pdf-status{text-align:center;font-size:11px;margin:15px 0 35px;line-height:1.7}.review-heading{padding:30px 0 35px}.review-heading h2{font-size:52px;line-height:1.12;overflow-wrap:anywhere}.review-heading p{font-size:13px}#review-list{display:grid;grid-template-columns:1fr 1fr;column-gap:75px;row-gap:35px;position:relative;padding:15px 0 40px}#review-list:before{content:'';position:absolute;top:0;bottom:0;left:50%;width:1px;background:var(--line)}.review-card{display:block;position:relative;margin:0;min-width:0;align-self:start}.review-card:nth-child(even){margin-top:150px}.review-card img{aspect-ratio:1.35;width:100%;object-fit:contain;background:#eeeee4;border-radius:4px}.review-card time{display:block;margin-top:21px;letter-spacing:1.3px}.review-card h3{font-size:30px;line-height:1.2;overflow-wrap:anywhere}.review-card p{font-size:13px;line-height:1.9}.timeline-dot{position:absolute;top:14px;width:10px;height:10px;background:var(--accent);border-radius:50%;outline:5px solid var(--paper);right:-43px}.review-card:nth-child(even) .timeline-dot{right:auto;left:-42px}.review-buttons{display:flex;justify-content:center;gap:15px}.review-end{background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;padding:40px 0}.review-end h2{font-size:35px}
@media(max-width:700px){.review-heading h2{font-size:38px}#review-list{display:block;padding:10px 0 15px 23px}#review-list:before{left:2px}.review-card,.review-card:nth-child(even){margin:0 0 35px}.timeline-dot,.review-card:nth-child(even) .timeline-dot{left:-25px;right:auto;top:11px;width:8px;height:8px}.review-card h3{font-size:28px}.review-card time{margin-top:17px}.timeline-tools{gap:10px}.timeline-tools .save-button,.timeline-tools .primary{padding:12px;font-size:10px}.review-buttons{flex-wrap:wrap}.review-end h2{font-size:29px}.review-heading{padding-top:16px}}

#cloud-dialog,#manage-dialog{width:min(650px,calc(100% - 32px));max-height:90vh;overflow:auto}.consent{display:flex;gap:12px;line-height:1.7;font-size:12px;margin:22px 0}.consent input{width:18px;height:18px;flex-shrink:0;margin:2px 0 0}#cloud-status,#manage-status{font-size:12px;overflow-wrap:anywhere}#share-link{font-size:11px}#share-result{margin-top:20px}.cloud-item{border-top:1px solid var(--line);padding:18px 0}.cloud-item small{display:block;margin-top:8px;color:var(--soft)}.cloud-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:15px}.shared-page{padding-bottom:0}.shared-status{text-align:center;padding:55px 0}.share-hint{font-size:11px;color:var(--soft)}.shared-page footer{line-height:1.8}.shared-page h1{overflow-wrap:anywhere}@media(max-width:700px){header>div{max-width:145px;text-align:right}header>div button{font-size:10px}.timeline-tools{flex-wrap:wrap}.timeline-tools>.review-buttons{justify-content:flex-start}}

.print-help{max-width:650px;margin:18px auto 10px;text-align:center;font-size:12px;line-height:1.7;color:var(--soft)}
.package-summary{background:#eceee4;border:1px solid #dce1d2;border-radius:6px;padding:17px 22px;margin:22px 0 10px;text-align:center;font-size:12px;line-height:1.8;color:var(--ink)}
#package-dialog{width:min(560px,calc(100% - 32px));max-height:90vh;overflow:auto;padding:32px}
#package-dialog h2{font-size:35px;margin:15px 0 22px}
.package-price{font:normal 44px var(--serif);margin-bottom:22px}.package-price small{display:block;margin-top:6px;font:11px 'DM Sans',Arial,sans-serif;color:var(--soft)}
.package-includes{list-style:none;padding:0;margin:20px 0;font-size:13px;line-height:1.8}.package-includes li{padding:8px 0 8px 24px;position:relative;border-bottom:1px solid var(--line)}.package-includes li:before{content:'✓';position:absolute;left:0;color:#71856a}
.package-test{font-size:11px!important;background:#eeeee4;border-radius:5px;padding:13px 16px}.package-actions{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-top:23px}.package-actions a{text-align:center;text-decoration:none;white-space:normal}.package-actions button{white-space:normal}#package-status{font-size:12px;overflow-wrap:anywhere;line-height:1.8}
@media(max-width:700px){#package-dialog{padding:25px 22px}#package-dialog h2{font-size:30px}.package-summary{padding:15px;font-size:12px}}
/* The editor stays compact; the shared timeline keeps its existing presentation. */
.editor-page header{padding:18px 0}
.editor-page .heading{padding:18px 0 14px;max-width:none}
.editor-page .heading .eyebrow{display:none}
.editor-page h1{font-size:37px;line-height:1.15;letter-spacing:-1.1px;margin:0 0 8px}
.editor-page .heading p{max-width:none;font-size:13px;margin:0}
summary{cursor:pointer}
summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px;border-radius:5px}
.privacy-note{background:#eeeee4;border-radius:6px;padding:11px 15px;font-size:11px;line-height:1.7}
.privacy-note summary{display:flex;justify-content:space-between;gap:12px;list-style:none;color:var(--ink)}
.privacy-note summary::-webkit-details-marker,.intro summary::-webkit-details-marker,.memory summary::-webkit-details-marker{display:none}
.privacy-note summary>span{color:var(--soft);text-decoration:underline;text-underline-offset:3px}
.privacy-note p{margin:10px 0 2px;max-width:730px;font-size:12px}
.editor-page .tabs{margin:12px 0 15px;gap:26px}
.editor-page .tabs button{padding:13px 0;font-size:12px;min-height:44px}
.intro.panel{padding:0;margin-bottom:23px}
.intro summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 19px;list-style:none}
.intro summary strong{display:block;font-size:12px;font-weight:600}
#timeline-details-label{display:block;color:var(--soft);font-size:11px;line-height:1.6;margin-top:3px;overflow-wrap:anywhere}
.intro .fields{padding:0 19px 19px;margin-top:7px}
.intro .field-error{margin:0 19px 19px}
.details-chevron{font:22px var(--serif);line-height:1;transition:transform .15s;color:var(--soft);flex-shrink:0}
details[open]>summary>.details-chevron{transform:rotate(180deg)}
.editor-page .list-heading{margin:0 0 15px}
.editor-page .list-heading h2{font-size:25px;margin:0 0 6px}
.editor-page .list-heading p{font-size:11px;line-height:1.6}
.memory.panel{padding:0;margin-bottom:14px;border-radius:9px;scroll-margin-top:18px}
.memory>summary{list-style:none;display:grid;grid-template-columns:58px minmax(0,1fr) auto 18px;grid-template-areas:'thumb copy state arrow';align-items:center;gap:16px;padding:15px 19px;border-radius:9px}
.memory[open]>summary{border-bottom:1px solid #e5e1d6;background:#f6f3eb;border-radius:9px 9px 0 0}
.moment-thumb{grid-area:thumb;width:58px;height:63px;border-radius:5px;overflow:hidden;background:#eeeee4;display:flex;align-items:center;justify-content:center;font:27px var(--serif);color:#8d9a80}
.moment-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.moment-summary-copy{grid-area:copy;min-width:0}
.memory-number{display:block;font-size:12px;margin-bottom:4px}
.moment-title{display:block;font:normal 20px/1.25 var(--serif);overflow-wrap:anywhere}
.moment-meta{display:block;color:var(--soft);font-size:10px;line-height:1.7;margin-top:5px}
.moment-status{grid-area:state;color:#875637;background:#f2e9da;border-radius:20px;padding:6px 10px;font-size:10px;white-space:nowrap}
.moment-status[data-complete=true]{color:#52654b;background:#e8ede0}
.memory>summary>.details-chevron{grid-area:arrow}
.memory-body{padding:17px 19px 23px}
.memory .card-top{margin-bottom:17px;padding-bottom:13px;gap:12px}
.card-instruction{font-size:11px;color:var(--soft);line-height:1.6}
.memory .icon-button{min-height:40px;min-width:40px}
.memory-grid{grid-template-columns:250px minmax(0,1fr);gap:24px}
.field-error{font-size:12px;color:#91432d;background:#fae8dd;border-radius:5px;padding:12px 14px;line-height:1.7}
input[aria-invalid=true],textarea[aria-invalid=true]{border-color:var(--accent)}
.editor-page .add{padding:18px}
.editor-page .form-end{margin:20px 0 30px}
.editor-page .savebar{gap:18px;padding-top:13px;padding-bottom:max(13px,env(safe-area-inset-bottom))}
.savebar .savebar-actions{display:flex;gap:10px;flex-shrink:0}
.savebar-actions .primary{font-size:12px;padding:14px 20px;min-height:44px}
.savebar-actions .save-button{min-height:44px}
.review-completeness{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#eeeee4;border:1px solid #deded0;border-radius:7px;padding:16px 18px;margin:0 0 25px}
.review-completeness strong{font-size:12px;font-weight:600}
.review-completeness p{font-size:12px;line-height:1.7;margin:5px 0 0;max-width:530px}
.review-completeness .save-button{flex-shrink:0;font-size:11px;min-height:44px}
.review-photo-placeholder{aspect-ratio:1.35;border:1px dashed #bfc5b4;border-radius:5px;background:#eeeee4;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:25px;text-align:center}
.review-photo-placeholder>span{font:43px var(--serif);color:#8d9a80}
.review-card .review-photo-placeholder p{font-size:12px;max-width:180px;line-height:1.7}
.review-card .placeholder-copy{color:#858b7e;font-style:italic}
.review-card .review-edit{display:inline-flex;gap:13px;align-items:center;margin-top:9px;min-height:44px;padding:10px 15px;font-size:11px;background:#faf7f1}
.review-card .review-edit:hover{border-color:#7b8d70;background:#eeeee4}
.review-empty{grid-column:1/-1;text-align:center;background:var(--paper);position:relative;padding:35px 20px}
.export-help{text-align:center;font-size:11px;color:var(--soft);margin:18px 0}
.export-help summary{min-height:35px;padding:8px}
.editor-page .review-heading{padding:14px 0 27px}
.editor-page #review-list{padding-top:0}
@media(max-width:700px){
 .editor-page{padding-bottom:122px}
 .editor-page header{padding:17px 0;gap:12px}
 .editor-page .heading{padding:22px 0 13px}
 .editor-page h1{font-size:31px;letter-spacing:-.8px;max-width:400px}
 .editor-page .heading p{font-size:12px;line-height:1.7}
 .privacy-note{padding:10px 12px;font-size:10px}
 .privacy-note summary{display:block}
 .privacy-note summary>span{display:block;margin-top:2px}
 .editor-page .tabs{margin:12px 0 15px}
 .intro.panel{margin-bottom:18px}
 .intro summary{padding:12px 14px}
 .intro .fields{padding:0 14px 17px;gap:15px}
 .editor-page .list-heading h2{font-size:23px}
 .editor-page .list-heading p{font-size:10px}
 .memory>summary{grid-template-columns:48px minmax(0,1fr) 15px;grid-template-areas:'thumb copy arrow' 'thumb state arrow';gap:6px 12px;padding:13px 14px}
 .moment-thumb{width:48px;height:63px}
 .moment-title{font-size:19px}
 .moment-status{justify-self:start;padding:3px 8px;font-size:9px}
 .moment-meta{font-size:10px;margin-top:3px}
 .memory-number{font-size:11px;margin-bottom:3px}
 .memory-body{padding:14px 14px 20px}
 .memory .card-top{gap:8px;align-items:center}
 .card-instruction{font-size:10px;max-width:110px}
 .memory-grid{grid-template-columns:1fr;gap:20px}
 .editor-page .savebar{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:10px 17px max(11px,env(safe-area-inset-bottom))}
 .savebar .save-state{font-size:10px;max-width:none}
 .savebar .savebar-actions{max-width:none;gap:9px;width:100%}
 .savebar-actions .primary{flex:1;font-size:12px;padding:12px 15px}
 .savebar-actions .save-button{padding:11px 13px;font-size:11px}
 .review-completeness{align-items:flex-start;flex-direction:column;padding:15px;gap:11px}
 .review-completeness .save-button{font-size:11px}
 .review-photo-placeholder{aspect-ratio:1.4}
 .editor-page .review-heading h2{font-size:34px}
}
.preview-switch{display:flex;align-items:center;gap:5px;background:#eeeee4;border:1px solid #deded0;border-radius:30px;padding:5px;width:fit-content;margin:0 auto 28px}
.preview-switch button{border:0;border-radius:23px;background:transparent;padding:12px 20px;min-height:44px;color:var(--soft);font-size:12px}
.preview-switch button[aria-pressed=true]{background:#fffdf9;color:var(--ink);box-shadow:0 1px 4px #293d3512}
.preview-switch button>span{font-size:9px;border:1px solid #c6ccbc;padding:2px 4px;border-radius:3px;margin-left:5px}
.pdf-page-preview{outline:0;scroll-margin-top:20px;margin-bottom:30px}
.pdf-preview-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:22px;margin:4px 0 20px}
.pdf-preview-heading h3{font:normal 31px/1.2 var(--serif);letter-spacing:-.6px;margin:9px 0 10px}
.pdf-preview-heading p{max-width:550px;font-size:12px;line-height:1.8;margin:0}
.preview-free-label{background:#e8ede0;border:1px solid #d5ddc9;border-radius:20px;padding:8px 12px;color:#52654b;font-size:10px;white-space:nowrap;margin-top:5px}
.pdf-preview-partial{font-size:12px;line-height:1.8;background:#f2e9da;color:#875637;border-radius:5px;padding:12px 16px;margin:0 0 18px}
.pdf-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 12px;scroll-margin-top:15px}
.pdf-preview-paging{display:flex;gap:13px;align-items:center;min-width:0}
.pdf-preview-paging>span{font-size:12px;color:var(--soft);text-align:center;min-width:110px}
.pdf-preview-toolbar .save-button{min-height:44px;min-width:44px}
.pdf-preview-paging .save-button{font-size:17px;padding:8px 12px}
.pdf-preview-status{font-size:11px;line-height:1.7;color:var(--soft);margin:0 0 14px;min-height:20px}
.pdf-preview-status.preview-error{color:#91432d}
#pdf-preview-retry{margin:0 0 15px;min-height:44px}
.pdf-preview-stage{display:flex;align-items:center;justify-content:center;background:#e8e7dc;border:1px solid #dcdccd;border-radius:9px;padding:20px;height:clamp(280px,calc(100svh - 315px),850px);overflow:auto;max-width:100%}
.pdf-preview-stage>img{display:block;width:auto;max-width:100%;height:auto;max-height:100%;object-fit:contain;box-shadow:0 5px 22px #293d3521;background:var(--paper)}
.pdf-preview-stage.is-zoomed{justify-content:flex-start;align-items:flex-start}
.pdf-preview-stage.is-zoomed>img{flex:none;width:744px;max-width:none;max-height:none;margin:0 auto}
.pdf-preview-loading{text-align:center;align-self:center;padding:55px 20px;width:100%}
.pdf-preview-loading>span{font:47px var(--serif);color:#8d9a80}
.pdf-preview-loading p{font-size:13px;line-height:1.8}
.pdf-preview-thumbnails{display:flex;gap:11px;overflow-x:auto;padding:14px 3px 10px;scrollbar-width:thin}
.pdf-preview-thumbnails:empty{display:none}
.pdf-preview-thumbnails button{flex:none;position:relative;border:2px solid transparent;border-radius:4px;background:#eeeee4;padding:3px;min-width:56px;min-height:76px}
.pdf-preview-thumbnails button[aria-current=page]{border-color:var(--accent)}
.pdf-preview-thumbnails img{display:block;width:49px;height:69px;object-fit:contain;background:var(--paper)}
.pdf-preview-thumbnails button>span{display:block;position:absolute;bottom:3px;left:3px;right:3px;background:#faf7f1ed;color:var(--ink);font-size:9px;line-height:17px;text-align:center}
.pdf-preview-footnote{font-size:11px;line-height:1.8;text-align:center;max-width:620px;margin:13px auto 0}
@media(max-width:700px){
 .preview-switch{width:100%;justify-content:center;margin-bottom:22px}
 .preview-switch button{padding:11px 12px;font-size:11px;flex:1;white-space:nowrap}
 .preview-switch button>span{display:none}
 .pdf-preview-heading{display:block;margin-bottom:17px}
 .pdf-preview-heading h3{font-size:28px}
 .preview-free-label{display:inline-block;margin-top:12px}
 .pdf-preview-toolbar{gap:9px}
 .pdf-preview-paging{gap:7px}
 .pdf-preview-paging>span{font-size:10px;min-width:75px}
 .pdf-preview-toolbar .save-button{font-size:10px;padding:10px;min-width:44px}
 .pdf-preview-paging .save-button{font-size:16px}
 .pdf-preview-stage{padding:12px;border-radius:6px;height:clamp(260px,calc(100svh - 340px),650px)}
 .pdf-preview-thumbnails{gap:8px}
 .pdf-preview-footnote{font-size:10px}
}
@page{size:A4 portrait;margin:12mm}
@media print{
 body{padding:0;background:#fff;color:var(--ink);font:11pt/1.6 Arial,sans-serif;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .shell{max-width:none;margin:0;padding:0}
 .ribbon,header,footer,.heading,.privacy,.privacy-note,.tabs,#editor,.savebar,.error,.notice,dialog,.timeline-tools,.print-help,.pdf-status,.review-end,.shared-status,.package-summary,.review-completeness,.review-edit,.export-help,.review-empty,.preview-switch,.pdf-page-preview{display:none!important}
 body.printing-timeline #review[hidden]{display:block!important}
 #review,#shared-content{outline:0}
 .review-heading{padding:0 0 7mm;text-align:center;break-after:avoid-page;page-break-after:avoid}
 .review-heading .eyebrow{font-size:8pt}
 .review-heading h2,.shared-page .review-heading h1{font-size:28pt;line-height:1.15;letter-spacing:-.5pt;margin:4mm 0}
 .review-heading p{font-size:11pt;line-height:1.5;margin:0}
 #review-list,#review-list[hidden]{display:block!important;padding:0}
 #review-list:before,.timeline-dot{display:none}
 .review-card,.review-card:nth-child(even){display:block;margin:0;min-height:0;max-height:none;overflow:visible;break-inside:auto;page-break-inside:auto}
 .review-card+.review-card{break-before:page;page-break-before:always}
 .review-card time{font-size:9pt;margin-top:6mm;break-after:avoid-page;page-break-after:avoid}
 .review-card h3{font-size:22pt;line-height:1.2;margin:3mm 0;break-after:avoid-page;page-break-after:avoid}
 .review-card p{font-size:11pt;line-height:1.6;color:var(--ink);margin:0;orphans:3;widows:3}
 body.package-locked .review-card:after{content:'KOSTENLOSE VORSCHAU';display:block;padding:6mm 0;font:10pt Arial,sans-serif;letter-spacing:2pt;color:var(--accent);text-align:center;border-bottom:1px solid var(--line)}
 body.package-locked .review-heading:after{content:'Vorschau · Das fertige PDF wird mit dem 29-€-Paket freigeschaltet.';display:block;margin-top:5mm;font:9pt/1.5 Arial,sans-serif;color:var(--accent)}
}

/* Local photo import feedback stays beside the affected moment. */
.photo-import-status{margin:12px 0 0;padding:11px 13px;border-radius:12px;font-size:.86rem;line-height:1.5;background:#eef2eb;color:#405547;overflow-wrap:anywhere}
.photo-import-status[hidden]{display:none}
.photo-import-status[data-state="busy"]{background:#f3ede4;color:#6b5745}
.photo-import-status[data-state="error"]{background:#faeae5;color:#8c3f32;border:1px solid #e8c9bf}
.photo-import-status[data-state="success"]{border:1px solid #d8e2d2}

/* Portable draft backups and an untimed, touch-friendly photo undo. */
.draft-backup-dialog.has-backup-selection .backup-options,.draft-backup-dialog.has-backup-selection #draft-backup-description{display:none}
.draft-storage-tools{display:flex;align-items:flex-start;gap:18px;justify-content:space-between}.draft-storage-tools>.privacy-note{flex:1;min-width:0}.backup-open{flex-shrink:0;min-height:44px;margin-top:2px;background:#fffdf8}
.draft-backup-dialog{width:min(650px,calc(100% - 28px));max-height:calc(100dvh - 28px);overflow-y:auto;padding:28px;overscroll-behavior:contain}.backup-heading{display:flex;gap:16px;align-items:flex-start;justify-content:space-between}.backup-heading h2{font-size:35px;line-height:1.12;margin:13px 0 9px}.backup-heading>.save-button{min-width:44px;min-height:44px;flex-shrink:0;padding:10px}.backup-options{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:23px}.backup-option{padding:19px 16px;background:#fffdf8;border:1px solid #e4dfd2;border-radius:15px;min-width:0}.backup-number{font:26px var(--serif);color:var(--accent)}.backup-option h3{font:normal 23px var(--serif);margin:10px 0}.backup-option p{font-size:12px;line-height:1.65;min-height:42px;margin-bottom:16px}.backup-option .primary,.backup-file-picker{width:100%;min-height:46px;white-space:normal;text-align:center;line-height:1.45;padding:12px 14px;display:flex;align-items:center;justify-content:center}.backup-file-picker{position:relative;overflow:hidden;cursor:pointer;background:#f0f0e7}.backup-file-picker input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;padding:0;cursor:pointer}.backup-file-picker:focus-within{outline:3px solid var(--accent);outline-offset:3px}.backup-file-picker:has(input:disabled){opacity:.45;cursor:not-allowed}.backup-extension{white-space:nowrap;color:var(--ink)}.backup-status{margin:16px 0 0;font-size:12px;overflow-wrap:anywhere}.backup-status:empty{display:none}.backup-status[data-state=busy]{background:#f0eee2;padding:12px 14px;border-radius:10px}.backup-status[data-state=error]{background:#faeae5;color:#8c3f32;padding:12px 14px;border:1px solid #e8c9bf;border-radius:10px}.backup-status[data-state=success]{background:#eaf0e4;padding:12px 14px;border-radius:10px;color:#405547}.backup-confirm{border:1px solid #cdd9c4;background:#edf1e7;border-radius:15px;padding:20px;margin-top:18px}.backup-confirm h3{font:normal 25px/1.2 var(--serif);margin:10px 0}.backup-confirm p{font-size:12px;line-height:1.7}.backup-confirm .backup-summary{font-size:14px;color:var(--ink);font-weight:500;white-space:pre-line;overflow-wrap:anywhere}.backup-confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:19px}.backup-confirm .text-button{min-height:44px;text-align:left}.backup-confirm-actions button{min-height:46px;white-space:normal}.backup-footnote{font-size:11px!important;line-height:1.65;margin:19px 0 0}
.photo-undo{position:fixed;z-index:8;left:50%;transform:translateX(-50%);bottom:calc(91px + env(safe-area-inset-bottom,0px));width:min(570px,calc(100% - 32px));padding:14px 17px;border-radius:16px;border:1px solid #c4cebc;background:#f0f2e9;box-shadow:0 6px 22px #293d3520;display:flex;align-items:center;gap:16px}.photo-undo p{flex:1;font-size:13px;line-height:1.55;color:var(--ink);margin:0;overflow-wrap:anywhere}.photo-undo-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}.photo-undo .save-button{background:var(--ink);border-color:var(--ink);color:var(--paper);min-height:44px;padding:11px 15px}.photo-undo .text-button{min-height:44px;min-width:44px;text-decoration:none;font-size:16px}
@media(max-width:700px){.draft-storage-tools{gap:10px;flex-wrap:wrap}.draft-storage-tools>.privacy-note{flex-basis:100%}.backup-open{font-size:12px;margin:0 0 3px;min-height:44px;padding:11px 17px}.draft-backup-dialog{padding:23px 18px;max-height:calc(100dvh - 20px);width:calc(100% - 20px)}.backup-heading h2{font-size:30px}.backup-options{grid-template-columns:1fr;gap:12px;margin-top:18px}.backup-option{padding:16px}.backup-option h3{display:inline;margin:0 0 0 9px}.backup-option p{min-height:0;margin:10px 0 14px}.backup-option .primary,.backup-file-picker{font-size:12px}.backup-confirm{padding:17px 14px}.backup-confirm-actions{flex-direction:column-reverse}.backup-confirm-actions button{width:100%;font-size:12px}.backup-confirm .text-button{font-size:12px}.photo-undo{bottom:calc(112px + env(safe-area-inset-bottom,0px));padding:12px 13px;gap:8px;align-items:flex-start}.photo-undo p{font-size:12px;padding-top:4px}.photo-undo-actions{gap:2px}.photo-undo .save-button{font-size:12px;padding:10px 12px}.photo-undo .text-button{min-width:34px}.backup-footnote{font-size:11px!important}}
@media print{.draft-storage-tools,.photo-undo,.draft-backup-dialog{display:none!important}}
