@font-face{font-family:JournalHand;src:url('assets/fonts/Caveat.ttf') format('truetype');font-weight:400 700;font-style:normal;font-display:swap}
:root{--ink:#3b302b;--green:#965441;--muted:#80756c;--paper:#faf7ef;--line:#e6ded0;--accent:#9b6349;background:#faf7ef}body{background-color:#faf7ef;background-image:radial-gradient(#c4b49620 .6px,transparent .6px),repeating-linear-gradient(0deg,#ffffff15,#ffffff15 2px,transparent 2px,transparent 5px);background-size:5px 5px,auto;color:#3b302b}.primary{background:#965441;color:#fffaf2}.primary:hover{background:#7d4333}.secondary{background:#fffdf8;border-color:#d9cdbc}.secondary:hover{background:#f4ebdd}.button{border-radius:5px}.eyebrow{font-family:JournalHand,cursive!important;font-size:1.4rem!important;font-weight:500;letter-spacing:0!important;text-transform:lowercase;color:#9b775e!important;margin-bottom:17px}.topbar{background:#fffdf6f5;border-color:#e7dece;box-shadow:0 2px 10px #6f543007}.nav-button.active,.tab.active{color:#965441;border-color:#965441}.beta-label{background:#f3ecdf;border-color:#e4d6bf;color:#88715c}.avatar{background:#eee5d6;border-color:#dfd0ba;color:#805a40}.account-menu{background:#fffdf6;border-color:#e2d6c4}.library-heading h1,.editor-heading h1,.section-heading h2,.theme-group-heading h3,.empty-library h2{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.045em;line-height:1.1;color:#43332a}.library-heading h1{font-size:clamp(2.7rem,4.3vw,4rem)}.library-heading>div>p{color:#8b7c70}.library{padding-top:55px}.library-tabs{border-color:#dfd5c6}.storage-usage{color:#9b8b7b}.album-info h3{font-family:Georgia,serif;font-size:1.2rem;letter-spacing:-.02em;font-weight:400}.album-info p{color:#8b7c70}.album-card-actions{border-color:#e4dacb}.album-management-button{color:#8b6b50}.album-management-button.delete-album{color:#9c4d4d}.album-entry{position:relative}.album-grid{gap:38px 30px}.album-card .album-cover{box-shadow:0 7px 13px #60492513}.template-section{border-color:#e2d8c8}.theme-preview-link{color:#965441}.section-heading h2{font-size:2.7rem}.theme-group-heading{border-color:#e4d7c3}.theme-group-heading h3{font-size:1.9rem}.theme-group-heading p{color:#8d7a6c}.template-card>h3{font-family:Georgia,serif;font-weight:400;font-size:1.2rem}.template-card>p{color:#8d7a6c}.archive-note,.empty-library{background:#f3ebdc;border-color:#e0d2bd}.editor-heading h1{font-size:2.7rem}.editor-heading p{color:#958272}.back-link{font-family:JournalHand,cursive;font-size:1.1rem;color:#997458}.design-panel{background:#fffdf6;border:1px solid #e1d4c0;box-shadow:0 5px 18px #654b2e08;border-radius:7px}.design-panel input,.design-panel select{background:#fdfbf6;border-color:#ddcfba;border-radius:4px;color:#493b31}.retention-panel{border-color:#e6dac8}.retention-panel strong{color:#876b54}.footer-help{display:block;font-size:.74rem;line-height:1.65;font-weight:400;color:#9b8470;margin-top:9px}.dropzone{background:#f2eadb;border:1px dashed #c8ad87;border-radius:7px;position:relative;overflow:visible}.dropzone:before{content:'';position:absolute;width:84px;height:22px;background:#e7d0a68c;top:-10px;left:calc(50% - 42px);transform:rotate(-4deg);border-inline:1px dashed #ceba93a0}.dropzone h2{font-family:Georgia,serif;font-weight:400;font-size:1.9rem;letter-spacing:-.035em;color:#6b4e37}.dropzone p{color:#9b8169}.upload-icon{background:#fff9ee;border-color:#dec6a5;border-radius:50%;color:#a06a44}.photo-card{background:#fffdf8;border-color:#e6dac7;border-radius:5px;box-shadow:0 4px 13px #6d512c0d}.photo-image{padding:12px;background:#f6f0e5}.photo-image img{background:#e9e2d7}.photo-body input,.photo-body textarea{background:#fefcf7;border-color:#ddd0bc;border-radius:4px}.photo-body label{color:#78604d}.photo-expiry{color:#ac9581}.photo-badge{color:#7c624a;background:#fffaf0ed}.photo-card.featured{border-color:#b48b60}.collection-heading h2{font-family:Georgia,serif;font-weight:400;font-size:1.2rem;color:#755b45}.collection-heading>span{color:#a18b76}.photo-card-actions button{color:#926d50}.mobile-actions{background:#fffdf6f7;border-color:#e3d6c2;box-shadow:0 -4px 18px #7253300b}.desktop-action-label{font-family:JournalHand,cursive;font-size:1.2rem;color:#9c7758}.modal{background:#fffdf7;border-color:#dfceb4;border-radius:8px}.modal-header h2{font-family:Georgia,serif;font-weight:400;letter-spacing:-.04em;color:#694c36}.modal input,.modal select{background:#fdfbf5;border-color:#d9cab1;border-radius:4px}.pdf-toolbar{background:#fffcf5;border-color:#e4d8c6}.pdf-canvas-wrap{background:#eae3d6}.toast{background:#6b4f3c;color:#fff9ee}.app-footer{border-color:#e3d8c5;color:#9d8a79}.auth-shell{background:#fcf9f2}.auth-form-panel{background:#fffcf6}.auth-content h1{font-family:Georgia,serif;font-weight:400;letter-spacing:-.045em;font-size:clamp(2.8rem,3.7vw,3.7rem);line-height:1.05;color:#4e3829}.auth-content>p{color:#a08a77}.auth-content input{background:#fffdf8;border-color:#dccbb2;border-radius:4px}.password-control{background:#fffdf8;border-color:#dccbb2;border-radius:4px}.auth-content .eyebrow{font-size:1.45rem!important}.privacy-note{border-color:#e9dfcf;color:#a18b78}.privacy-note svg{color:#ab855e}.auth-footer{color:#a38c77}.studio-auth-art{background:#efe4d0;background-image:radial-gradient(#ac8e5c16 .7px,transparent .7px),linear-gradient(130deg,#f4ecdd,#ece0cb);background-size:5px 5px,auto;border-left:1px solid #e7d9c2}.studio-auth-label{color:#aa8c6b;letter-spacing:1px}.studio-auth-heading{margin-top:60px}.studio-auth-heading h2{font-family:Georgia,serif;font-weight:400;letter-spacing:-.045em;font-size:3.4rem;color:#6c4c32}.studio-auth-heading h2 span{font-family:JournalHand,cursive;font-size:1.24em;color:#aa7151;font-weight:500}.studio-auth-heading>p{color:#aa8c72}.studio-auth-board{background:#f8f0e1;border:1px solid #e0caaa;box-shadow:0 12px 25px #8a67321a;border-radius:3px;transform:rotate(1deg);position:relative}.studio-auth-board:before{content:'';position:absolute;top:-12px;left:25%;width:100px;height:26px;background:#d5b98380;transform:rotate(-6deg);border-inline:1px dashed #b89563a0}.studio-board-top,.studio-board-bottom{color:#ab9070;border-color:#e3d4bc}.studio-auth-book{transform:rotate(-9deg);box-shadow:6px 6px 0 #e8ddc7,7px 7px 0 #c3ac85,14px 21px 30px #80603430}.studio-auth-features{font-family:JournalHand,cursive;font-size:1rem;color:#a5805e}.studio-auth-features span:before{content:none}.studio-auth-heading:after{content:'a little record of a life together';font-family:JournalHand,cursive;font-size:1.25rem;color:#b08b68;display:block;margin-bottom:15px}.button:focus-visible,.nav-button:focus-visible,.tab:focus-visible{outline-color:#c9aa7a}input:focus,textarea:focus,select:focus{outline-color:#c3a67e}.password-control:focus-within{outline-color:#c3a67e}@media(max-width:1050px){.studio-auth-heading h2{font-size:2.8rem}.studio-auth-features{font-size:.9rem}.studio-auth-heading:after{font-size:1.1rem}}@media(max-width:760px){.auth-shell,.auth-form-panel{background:#fffcf6}.studio-auth-art{display:none}.auth-content h1{font-size:2.9rem}.library-heading h1{font-size:2.7rem}.editor-heading h1{font-size:2.3rem}.dropzone h2{font-size:1.65rem}.section-heading h2{font-size:2.35rem}.theme-group-heading h3{font-size:1.75rem}.album-info h3{font-size:1.05rem}.album-grid{gap:28px 17px}.design-panel{padding:23px}.footer-help{font-size:.75rem}}
:root{--muted:#75685c}.library-heading>div>p,.editor-heading p,.auth-content>p,.studio-auth-heading>p,.template-card>p,.theme-group-heading p{color:#806a58}.design-panel label,.photo-body label,.collection-heading h2{color:#715943}.footer-help,.photo-expiry,.storage-usage,.auth-footer,.privacy-note,.app-footer{color:#806c58}.eyebrow{color:#8b6747!important}.auth-content .eyebrow{color:#8b6747!important}.dropzone p{color:#88705a}.desktop-action-label{color:#8c6948}.studio-auth-label,.studio-board-top,.studio-board-bottom,.studio-auth-features{color:#8b6948}

/* Keep mobile fields readable and prevent focus zoom on iOS. */
@media(max-width:760px){input:not([type=checkbox]):not([type=radio]),textarea,select{font-size:16px;min-width:0}input[type=checkbox],input[type=radio]{min-width:20px;min-height:20px}button,input,select,textarea{touch-action:manipulation}}

/* Keep the way back to the album collection explicit and within reach. */
.editor-heading .back-link{font:600 .875rem/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;min-height:44px;padding:10px 16px;margin-bottom:20px;color:#71523d;background:#fffdf8;border-color:#d8c5ac;text-decoration:none}.editor-heading .back-link:hover{background:#efe3d1}.mobile-actions #quickBackToAlbums{flex:none}
@media(max-width:760px){.mobile-actions{grid-template-columns:.8fr 1fr 1.1fr;gap:8px;padding-inline:4%}.mobile-actions .button{padding:10px 8px;min-width:0;font-size:.85rem}.mobile-actions #quickBackToAlbums{font-weight:600}.editor-heading .back-link{margin-bottom:18px}}

.templates-only .template-section{margin-top:0;padding-top:0;border-top:0}.templates-only .library-heading{margin-bottom:28px}.templates-only .theme-group-heading:first-child{margin-top:0}

/* Preview a design before creating an album. */
.create-album-modal{width:min(94vw,820px)}.create-album-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:30px;align-items:start;margin-bottom:24px}.create-design-preview{background:#f2eadc;border:1px solid #e0d2be;border-radius:6px;padding:18px;text-align:center;min-width:0}.create-design-preview>strong{display:block;font-size:.875rem;font-weight:500;margin-bottom:18px}.create-design-preview .album-cover{width:100%;max-width:230px;height:310px;margin:auto;padding:24px 20px;text-align:center}.create-design-preview .cover-name{font-size:1.6rem;margin:18px 0 10px;max-height:78px}.create-design-preview .cover-meta{font-size:.4rem}.create-design-preview .cover-bottom{font-size:.4rem;margin-top:17px}.create-design-preview .cover-window{height:105px;min-height:70px}.create-design-preview .album-cover:not(.keepsake-cover)>img{height:130px;object-fit:contain}.create-design-preview>p{font-size:.8rem;line-height:1.6;margin:18px 0 0;color:#806a58}.create-album-modal form{min-width:0}
@media(max-width:600px){.create-album-modal{padding:24px}.create-album-layout{grid-template-columns:1fr;gap:8px}.create-design-preview .album-cover{max-width:190px;height:260px;padding:22px 18px}.create-design-preview .cover-name{font-size:1.45rem}.create-design-preview .cover-window{height:90px}.create-design-preview .album-cover:not(.keepsake-cover)>img{height:100px}}

.pdf-publish-controls{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;background:#fbf5e9;border-bottom:1px solid #e2d3bc}.pdf-publish-controls>div{min-width:0}.pdf-publish-controls>div:last-child{display:flex;flex-direction:column;gap:8px;flex:none}.pdf-publish-controls strong{font-size:.9rem}.pdf-publish-controls p{font-size:.85rem;line-height:1.6;max-width:620px;margin:7px 0;color:#735b46}.pdf-publish-controls small,.pdf-publish-controls [role=status]{font-size:.8rem;color:#846d56}.published-pdf-row{display:flex;justify-content:space-between;gap:20px;padding:22px 0;border-top:1px solid var(--line)}.published-pdf-row>div{display:flex;flex-direction:column;gap:10px;min-width:0;overflow-wrap:anywhere}.published-pdf-row span{font-size:.8rem;color:var(--muted)}.pdf-list-pages{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:20px;font-size:.85rem}.maintenance-dialog{width:min(92vw,570px);max-height:92dvh;background:#fffaf0;color:#49362b;border:1px solid #decdb0;border-radius:10px;text-align:center;padding:40px}.maintenance-dialog img{width:140px;height:50px;object-fit:contain}.maintenance-dialog div>span{display:block;font-size:40px;color:#ad8153;margin:20px 0}.maintenance-eyebrow{font-size:12px;letter-spacing:.1em;color:#8b6a4d}.maintenance-dialog h2{font:400 42px/1.1 Georgia,serif;letter-spacing:-.04em;color:#69472f}.maintenance-dialog p{line-height:1.7;overflow-wrap:anywhere}.maintenance-dialog .small{font-size:14px;color:#806b54}@media(max-width:600px){.pdf-publish-controls{align-items:stretch;flex-direction:column;padding:16px;gap:14px}.pdf-publish-controls>div:last-child{flex-direction:row;flex-wrap:wrap;align-items:center}.published-pdf-row{flex-direction:column}.published-pdf-row>div:last-child{flex-direction:row;flex-wrap:wrap;align-items:center}.maintenance-dialog{padding:28px 22px}.maintenance-dialog h2{font-size:34px}.pdf-list-pages{flex-wrap:wrap}}

.verification-actions{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:12px 0}.verification-actions button{min-height:44px}#authCode{font-size:1.6rem;letter-spacing:.35em;max-width:100%}#authIntro{overflow-wrap:anywhere}#verificationStatus{min-height:1.5em}button:disabled{cursor:wait;opacity:.6}
/* Immigration evidence: restrained botanical corners, generous photo space. */
.template-immigration{--cloth:#142b40;--foil:#f2e4c6;--frame:#b89b62}.template-immigration:after{content:'';position:absolute;inset:0;background:url('assets/themes/whitegreen.webp') right 8px bottom 8px/25% no-repeat;pointer-events:none;z-index:0}.template-immigration .cover-name{font-style:normal}.template-immigration .botanical-top{display:none}#createEvidenceHelp{line-height:1.6}#evidenceGuide p{line-height:1.6}
#evidenceGuide{background:#fffaf1;border-left:3px solid #b89b62;border-bottom:0;margin-bottom:18px}
