/* Only pet-specific preview content. Shared V2 stylesheets are copied unchanged. */
.pet-cover{width:230px;height:230px;border-radius:3px 8px 8px 3px;background:var(--cover);margin:24px auto;box-shadow:5px 9px 20px #3332,inset 8px 0 4px #0002;text-align:center;padding:25px;color:#fff}.pet-cover .portrait{width:100px;height:115px;margin:0 auto 14px;border-radius:50% 50% 0 0;background:#ede8de;display:grid;place-items:center;color:var(--sage)}.pet-cover .portrait svg{width:38px;height:38px}.pet-cover h2{font-family:Georgia,serif}.pet-cover small{font-size:7px;letter-spacing:2px}.reading-page{aspect-ratio:1;background:#fffef9;padding:25px;overflow:auto;margin:20px 0;box-shadow:var(--shadow)}.reading-page h2{text-align:center;font-family:Georgia,serif}.reading-page p{white-space:pre-wrap;font:15px/1.7 Georgia,serif;margin:10px 0 20px}.reading-page small{font-size:9px;color:var(--muted)}.pet-photo-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.pet-photo-list img{width:100%;aspect-ratio:1;object-fit:cover}.pet-choice.selected{border-color:var(--sage);background:var(--sage-light)}.pet-choice[aria-pressed=true]{border:2px solid var(--sage)}.pet-summary{display:flex;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid var(--line);font-size:13px}.pet-summary strong{text-align:right;font-weight:500}.pet-summary span{color:var(--muted)}.pet-actions{margin-top:24px;display:grid;gap:12px}.pet-upload input{display:none}
.pet-slot-page{aspect-ratio:1}.pet-slot-page .source-slot{transform-origin:top left}.pet-slot-page canvas{width:100%;height:100%;display:block}.pet-dialog{border:0;border-radius:22px;padding:24px;width:min(94vw,520px);max-height:90dvh;overflow:auto;color:var(--ink);background:var(--paper,#faf8f5)}.pet-dialog::backdrop{background:#23282e88}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.pet-photo-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:20px}.pet-photo-picker button{padding:3px;border:1px solid var(--line);border-radius:10px;background:white}.pet-photo-picker img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}.pet-dialog .crop-stage canvas{max-height:50vh;object-fit:contain;display:block;margin:auto}.pet-dialog .crop-footer{display:grid;gap:12px;margin-top:20px}.pet-dialog .crop-tools{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.pet-dialog .crop-tools button{min-height:44px}.proof canvas{display:block}.pet-dialog .pet-upload input{display:none}#proof-status{padding:10px 0;font-size:13px;color:var(--muted)}
/* Pet interiors are square; the inherited baby proof is landscape. */
.proof:has(#pet-proof){aspect-ratio:1;min-height:0;display:block;height:auto}.proof #pet-proof{width:100%;height:auto;display:block}

/* Pet product palette; unchanged V2 base styles remain the baby palette. */
:root[data-book-family="pet"]{--paper:#faf8f5;--ink:#24364a;--sage:#722f40;--sage-light:#f4e9ec;--rose:#24364a;--rose-light:#e7ecf1;--blue:#536d88;--muted:#68717c;--line:#dfe3e7;--pet-accent:#24364a;--pet-action:#722f40}
[data-book-family="pet"] .primary{background:var(--pet-action);color:#fff;box-shadow:0 5px 12px #722f4018}
[data-book-family="pet"] .secondary{border-color:var(--pet-action);color:var(--pet-action);background:#fff}
[data-book-family="pet"] .soft-btn{background:var(--sage-light);color:var(--pet-action)}
[data-book-family="pet"] .icon-btn{color:var(--pet-accent);background:var(--rose-light)}
[data-book-family="pet"] .back{background:#fff}
[data-book-family="pet"] .progress-large{background:#dce4ec;color:var(--pet-accent)}
[data-book-family="pet"] .progress-large>i{background:#a9bbcd}
[data-book-family="pet"] .tile-circle,[data-book-family="pet"] .book-selector>span{color:var(--pet-accent);border-color:var(--line)}
[data-book-family="pet"] .book-selector.selected>span{outline-color:var(--pet-accent)}
[data-book-family="pet"] .add-book>span{color:var(--pet-accent)}
[data-book-family="pet"] .nav-item.active{color:var(--pet-accent)}
[data-book-family="pet"] .nav-item.active:before{background:var(--pet-accent)}
[data-book-family="pet"] .layout-option.active{border-color:var(--pet-accent);background:var(--rose-light)}
[data-book-family="pet"] .source-slot{color:var(--pet-accent);background:#f0f3f6;outline-color:#a9bbcd}
[data-book-family="pet"] input:focus,[data-book-family="pet"] textarea:focus,[data-book-family="pet"] select:focus{outline-color:var(--pet-action)}
[data-book-family="pet"] .brand img,[data-book-family="pet"] .welcome .logo{filter:brightness(0) saturate(100%) invert(17%) sepia(21%) saturate(1030%) hue-rotate(170deg) brightness(95%) contrast(91%)}
.proof #pet-proof[hidden]{display:none}
.proof:has(#pet-proof[hidden]){display:grid;place-items:center}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}}
/* Print fit feedback stays beside its question; drafts are never truncated. */
.fit-hint{line-height:1.5}.fit-hint.fit-error{color:#922d40}[aria-invalid="true"]{border-color:#922d40!important}.question-field textarea{overflow-wrap:anywhere}
#book-photo-dialog .book-photo-crop canvas{display:block;width:min(100%,350px);max-height:none;aspect-ratio:1;border-radius:50%;margin:auto;touch-action:none}#book-photo-dialog .avatar-status{font-size:13px;line-height:1.5;color:var(--muted);text-align:center;margin:12px 0}.book-selector>span>img{display:block;width:100%;height:100%;object-fit:cover}

.print-section-control{margin:0 0 22px}.print-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;font-weight:550;cursor:pointer}.print-toggle input{appearance:none;flex:0 0 46px;width:46px;height:28px;margin:0;border:2px solid var(--muted);border-radius:20px;background:var(--line);position:relative;cursor:pointer}.print-toggle input:before{content:"";display:block;width:20px;height:20px;border-radius:50%;background:white;position:absolute;top:2px;left:2px;box-shadow:0 1px 3px #0002;transition:transform .15s}.print-toggle input:checked{background:var(--sage);border-color:var(--sage)}.print-toggle input:checked:before{transform:translateX(18px)}.print-section-control .setting-help{margin-top:10px}

#save-warning{position:sticky;top:0;z-index:100;background:#fff2e9;color:#542c23;border-bottom:2px solid #722f40;padding:12px 20px;font-size:15px}#save-warning[hidden]{display:none}#save-warning p{margin:0 0 10px}#save-warning>div{display:flex;gap:8px;flex-wrap:wrap}#save-warning button{width:auto;min-height:44px;padding:8px 16px;font-size:14px}.backup-body{padding:0 24px 24px}.backup-body a{display:block;text-align:center;text-decoration:none}.backup-body a[hidden]{display:none}

/* Shared-app Pet onboarding */
.pet-onboarding{max-width:520px;margin:auto;padding:16px 8px 36px}.pet-onboarding h1{text-align:center;font-family:Georgia,serif;font-weight:400;font-size:32px}.pet-onboarding .eyebrow{text-align:center}.setup-progress{display:flex;gap:8px;max-width:240px;margin:0 auto 18px}.setup-progress i{height:5px;flex:1;background:#e7e6e4;border-radius:8px}.setup-progress .done{background:#747c5b}.setup-choices{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 24px}.setup-choices button{flex:1;min-height:48px;border-radius:28px;border:1px solid #d8d6cf;background:transparent;padding:10px 14px;display:flex;align-items:center;justify-content:center;gap:8px;transition:background .18s,color .18s}.setup-choices button svg{width:23px;height:23px}.setup-choices button[aria-pressed=true]{background:#747c5b;color:white;border-color:#747c5b}.setup-swatch{display:inline-block;width:20px;height:20px;border-radius:50%;border:1px solid #fff8}.pet-onboarding .primary{width:100%;margin-top:20px}.pet-onboarding .baby-photo-control{text-align:center;margin:26px 0}.setup-book{width:240px;min-height:270px;margin:28px auto;padding:24px;background:var(--cover);color:#fff8e7;border-radius:3px 12px 12px 3px;box-shadow:inset 7px 0 9px #0002,8px 12px 22px #0002;transition:background .22s;text-align:center}.setup-book h2{font-family:Georgia,serif;color:inherit;overflow-wrap:anywhere}.setup-book-photo{width:150px;height:175px;border-radius:80px 80px 0 0;overflow:hidden;margin:auto;background:#ffffff18;display:grid;place-items:center}.setup-book-photo canvas{width:100%;height:100%;object-fit:cover}.setup-book-photo svg{width:60px;height:60px}.pet-onboarding form{animation:setup-enter .2s ease-out}body:has(.pet-onboarding) .bottom-nav{display:none}@keyframes setup-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.pet-onboarding form{animation:none}.setup-choices button,.setup-book{transition:none}}

/* Wrapped hardcover mockup: smooth printed boards, hinge and paper block. */
.setup-book{position:relative;isolation:isolate;box-sizing:border-box;width:min(270px,calc(100% - 44px));min-height:290px;padding:27px 23px 24px 34px;border-radius:4px 8px 8px 4px;transform:perspective(1100px) rotateY(-9deg) rotateZ(-1deg);background-color:var(--cover);background-image:linear-gradient(90deg,#0003 0%,#fff1 6%,#0000 11%,#0000 93%,#ffffff14 100%);box-shadow:inset 0 1px 1px #ffffff40,inset 0 -2px 2px #0003,1px 2px 0 var(--cover),13px 16px 22px #25231e24,3px 4px 6px #0002;transition:background-color .22s;}
.setup-book::before{content:"";position:absolute;pointer-events:none;inset:0 auto 0 0;width:21px;border-radius:4px 0 0 4px;background:linear-gradient(90deg,#0004 0%,#ffffff1c 18%,#00000010 47%,#0005 68%,#ffffff40 76%,#0000 90%);box-shadow:1px 0 1px #00000020;}
.setup-book::after{content:"";position:absolute;pointer-events:none;z-index:-1;right:-9px;top:7px;bottom:5px;width:10px;border:1px solid #d2caba;border-left:0;border-radius:0 5px 5px 0;background:repeating-linear-gradient(0deg,#f6f0e5 0px,#f6f0e5 2px,#dcd5c8 2px,#fffaf0 3px);box-shadow:2px 1px 0 var(--cover),3px 2px 1px #0002;}
.setup-book-photo{box-shadow:0 0 0 1px #ffffff60,0 1px 3px #0002;background:#ffffff12;}
.setup-book h2{font-size:29px;line-height:1.15;text-shadow:0 1px 1px #0002;letter-spacing:.02em;}
.setup-book small{font-size:8px;letter-spacing:.18em;color:#f8f1dc;}
@media(prefers-reduced-motion:reduce){.setup-book{transition:none}}

/* Source-matched wrapped hardcover: transparent book art, live photo/name only. */
@font-face{font-family:"LLB Pet Cover";src:url("fonts/CormorantGaramond-MediumItalic.ttf") format("truetype");font-style:italic;font-weight:500;font-display:swap}
.pet-reference-cover{position:relative;isolation:isolate;width:100%;max-width:380px;aspect-ratio:620/630;margin:20px auto 16px;background:transparent}
.pet-reference-art{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:hidden}
.pet-reference-art text{font-family:"LLB Pet Cover",Georgia,serif;font-style:italic;font-weight:500;fill:#dec9a4;stroke:none;font-synthesis:none}
.pet-reference-photo{position:absolute;overflow:hidden;border-radius:50% 50% 0 0 / 49% 49% 0 0;background:#dcd4c4;display:grid;place-items:center}
.pet-reference-photo canvas,.pet-reference-photo img{display:block;width:100%;height:100%;object-fit:cover;border-radius:0}
.pet-reference-photo>svg{width:42px;height:42px;color:#7c776c}
.app-shell:has(.pet-reference-cover) main,.pet-onboarding:has(.pet-reference-cover) form{animation:none}
