/* A little workshop: bright controls, quiet paper, and the child's own work. */
@font-face{font-family:Rounded;src:url('/assets/mplus-rounded-medium.woff2') format('woff2');font-style:normal;font-weight:400 500;font-display:swap}
@font-face{font-family:Rounded;src:url('/assets/mplus-rounded-bold.woff2') format('woff2');font-style:normal;font-weight:600 900;font-display:swap}
:root{--paper:#fffdf8;--white:#fff;--ink:#354348;--muted:#68797c;--line:#dce7e5;--yellow:#ffcc45;--yellow-soft:#fff1bd;--green:#247687;--green-soft:#e8f5f6;--coral:#ca664e;--font:Rounded,'Hiragino Maru Gothic ProN','Yu Gothic',sans-serif}
html{font-family:var(--font);background:#f0f5f3;scroll-behavior:auto}
body{font-weight:500;min-width:320px;background:var(--paper)}
button{font-weight:700;transition:transform .12s,background .12s}
button:active:not(:disabled){transform:translateY(2px)}
button:disabled{opacity:.48}
.app-shell{max-width:680px;background:var(--paper)}
.icon{stroke-width:2.1}
h1,h2,h3{letter-spacing:0;line-height:1.45}
p{line-height:1.75}
.primary,.secondary{min-height:54px;font-size:16px;border-radius:19px;padding:12px 20px;gap:9px;letter-spacing:0;line-height:1.5}
.primary{background:var(--yellow);color:var(--ink);border:2px solid var(--ink);border-bottom-width:4px}
.primary:hover{background:#ffd76d}
.primary:active:not(:disabled){border-bottom-width:2px;padding-bottom:14px}
.secondary{background:var(--white);border:2px solid #b9d0d1;color:var(--green)}
.secondary:hover{background:var(--green-soft)}
.text-button{font-size:14px;font-weight:700;color:var(--green);min-height:44px}
.small{font-size:13px}
.eyebrow{font-size:12px;letter-spacing:.04em;color:var(--green);margin:0 0 6px;font-weight:700}
.subtle{font-size:12px;color:var(--muted)}
.icon-button{border-radius:15px;width:44px;height:44px}
.page-top{min-height:70px;padding:10px 16px;gap:10px}
.page-top h1{font-size:17px;letter-spacing:0}
.page-top>.icon-button:first-child{background:var(--green-soft);border:1.5px solid #b9d0d1}
.brand{font-size:19px;letter-spacing:0}
.brand-continue{color:var(--green)}

/* Gallery. The first work is visible before any explanatory content. */
.gallery-main{padding:25px 22px 120px}
.gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:25px}
.gallery-heading h1{font-size:28px;letter-spacing:.005em;position:relative;white-space:nowrap}
.gallery-heading .eyebrow{font-size:11px;margin-bottom:4px;color:var(--muted)}
.heading-dot{display:inline-block;width:9px;height:9px;background:var(--yellow);border-radius:50%;margin:0 0 3px 6px}
.count-badge{width:57px;height:62px;background:var(--green-soft);color:var(--green);border:1.5px solid #bed9da;border-radius:18px;font-size:10px;line-height:1.2;transform:none;gap:2px}
.count-badge strong{font-size:27px;font-weight:700;color:var(--ink)}
.first-words{text-align:left;margin:0 0 20px}
.first-words h2{font-size:20px;letter-spacing:.01em}
.first-words p{font-size:13px;margin:6px 0 0;color:var(--muted)}
.first-invite{text-align:center;font-size:12px;margin:20px 0 0;color:var(--muted)}
.filter-row{margin:0 0 20px;gap:8px}
.chip{font-size:13px;border:1.5px solid transparent;color:var(--muted);min-height:42px;border-radius:15px;padding:8px 15px}
.chip.selected{background:var(--green-soft);border-color:#b2d2d5;color:var(--green)}
.works-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 15px}
.work-card{background:transparent}
.card-image{border-radius:19px;background:#f2f4ec;border:2px solid var(--ink);aspect-ratio:1;overflow:hidden}
.card-image>img{object-fit:cover;transition:transform .18s}
.card-caption{padding:9px 1px 0;display:flex;align-items:center;gap:6px}
.card-caption h3{font-size:14px;line-height:1.6;min-width:0;flex:1}
.card-favorite{width:15px;height:15px;color:var(--coral);fill:currentColor}
.card-number{position:absolute;left:0;top:0;min-width:35px;padding:4px 8px 5px;background:var(--yellow);color:var(--ink);font-size:11px;border-right:1.5px solid var(--ink);border-bottom:1.5px solid var(--ink);border-radius:0 0 12px 0}
.step-badge{bottom:7px;left:7px;background:#ffffffed;border:1px solid #c8d9d7;border-radius:9px;font-size:10px;gap:4px;padding:4px 6px;color:var(--ink)}
.step-badge .icon{width:13px;height:13px}
.gallery-end{font-size:12px;color:var(--muted);margin:26px 0 5px}
.no-favorites{padding:55px 0;font-size:14px}
.draft-banner{background:var(--yellow-soft);border:1.5px solid #e4c779;margin-bottom:20px;border-radius:17px;padding:12px 14px;font-size:11px}
.draft-banner strong{font-size:14px}
.new-card{animation:new-page .5s cubic-bezier(.2,.8,.2,1) both}

/* A working sample, with six real states and no pretend saved work. */
.playground{border:2px solid var(--ink);border-radius:25px;background:var(--white);overflow:hidden}
.playground-heading{display:flex;align-items:center;justify-content:space-between;padding:13px 15px 10px;gap:8px;font-size:12px}
.sample-label{padding:4px 8px;background:var(--yellow-soft);border-radius:8px;font-size:10px;font-weight:700;white-space:nowrap}
.demo-switch{display:flex;gap:6px;padding:0 15px 10px}
.demo-tab{min-height:36px;padding:6px 13px;border-radius:12px;font-size:12px;color:var(--muted);border:1.5px solid transparent}
.demo-tab.selected{background:var(--green-soft);border-color:#b9d5d7;color:var(--green)}
.demo-stage{padding:0;display:block;position:relative;margin:0 12px;width:calc(100% - 24px);height:205px;border-radius:15px;overflow:hidden;background:#f5eadd;isolation:isolate}
.demo-stage img{width:100%;height:100%;object-fit:contain}
.demo-page{position:absolute;top:10px;left:11px;padding:3px 7px;border-radius:7px;background:#fffdf8e8;font-size:10px;color:var(--muted)}
.demo-play-cue{position:absolute;bottom:10px;right:10px;display:grid;place-items:center;border:1.5px solid var(--ink);border-radius:50%;width:34px;height:34px;background:var(--white)}
.demo-play-cue .icon{width:16px;height:16px;fill:var(--yellow);stroke-width:2}
.demo-slider{display:flex;align-items:center;gap:9px;padding:8px 15px 0;color:var(--muted);font-size:10px;white-space:nowrap}
.demo-slider input{min-width:0;flex:1;margin:0;height:44px;accent-color:var(--green);cursor:grab}
.playground-bottom{display:flex;align-items:center;justify-content:space-between;gap:2px;padding:0 10px 5px 15px}
.playground-bottom>span{font-size:11px;color:var(--green)}
.playground-bottom .text-button{padding:8px 4px;font-size:12px;gap:1px;flex-direction:row-reverse;flex:none}
.playground-bottom .icon{width:14px;height:14px}

/* The camera stays in the same place on every library screen. */
.bottom-nav{height:calc(82px + env(safe-area-inset-bottom));max-width:600px;background:var(--white);border-top:2px solid var(--ink);padding:0 16px calc(7px + env(safe-area-inset-bottom));border-radius:25px 25px 0 0;grid-template-columns:1fr 1.1fr 1fr}
.nav-item{font-size:11px;min-height:65px;gap:4px;padding:9px 0 5px;color:var(--muted)}
.nav-item .icon{width:25px;height:25px}
.nav-item.active{color:var(--green)}
.nav-item.active:after{display:none}
.nav-item.active .icon{fill:var(--green-soft)}
.nav-create{margin-top:-16px;gap:3px;font-size:12px;color:var(--ink)}
.create-circle{width:64px;height:64px;background:var(--yellow);border:0;box-shadow:none}
.create-circle .icon{width:30px;height:30px;stroke-width:2.1}

/* Full work pages retain room for the object and one main action. */
.detail-main{max-width:520px;padding:6px 22px 30px}
.detail-photo{border:2px solid var(--ink);border-radius:24px;aspect-ratio:1.08;max-height:49svh;background:#f2f3eb}
.detail-photo>img{object-fit:contain}
.photo-expand{background:var(--white);border:1px solid #b9d0d1;color:var(--ink);border-radius:12px;padding:6px;width:34px;height:34px}
.demo-ribbon{transform:none;border-radius:8px;background:var(--green);font-size:11px;padding:5px 9px;top:12px;left:12px}
.detail-heading{margin:16px 0 20px;gap:10px}
.detail-heading h2{font-size:23px;line-height:1.5;overflow-wrap:anywhere}
.detail-heading .eyebrow{font-size:11px;font-weight:500}
.favorite{width:46px;height:46px;border:1.5px solid var(--line);border-radius:16px;background:var(--white)}
.favorite.is-favorite{background:#fff0e9;color:var(--coral);border-color:#e9b5a5}
.detail-actions>.primary{width:100%}
.detail-actions>p{font-size:12px;margin:10px 0 20px;color:var(--muted)}
.step-peek{gap:8px;margin-bottom:18px}
.step-peek button{border:1.5px solid #b9d0d1;border-radius:12px}
.detail-main>.subtle{font-size:11px}
.photo-only{background:var(--green-soft);border-radius:20px;padding:20px}

/* Capture. An introduction and a camera button, without a second guide. */
.editor-main{max-width:520px;padding:5px 22px 155px}
.editor-main:has(.capture-empty){padding-bottom:20px}
.capture-empty{min-height:calc(100svh - 105px);gap:12px;justify-content:center}
.capture-illustration{position:relative;width:180px;height:156px;margin-bottom:14px;border-radius:25px;background:#e8f5f6;padding:5px 20px}
.capture-illustration img{width:100%;height:100%;object-fit:contain;border-radius:18px}
.capture-bracket{position:absolute;inset:12px;border:2px dashed #79b0b8;border-radius:19px}
.capture-tag{position:absolute;bottom:-9px;left:50%;transform:translateX(-50%);padding:5px 14px;border:1.5px solid var(--ink);border-radius:9px;background:var(--yellow-soft);font-size:10px;white-space:nowrap}
.capture-empty h2{font-size:25px;margin:0 0 1px}
.capture-empty>p{font-size:14px;color:var(--muted);line-height:1.8;margin:0 0 8px}
.capture-empty>.primary,.capture-empty>.secondary{max-width:350px;width:100%}
.capture-empty>small{font-size:11px;margin:0;color:var(--muted)}
.cover-edit{height:230px;border:2px solid var(--ink);border-radius:22px;background:#eff3ec}
.cover-label{background:var(--yellow-soft);color:var(--ink);font-size:11px}
.cover-replace{font-size:12px;border:1px solid #c8d9d7;background:#fff}
.name-field{margin:20px 0}
.name-field>span{font-size:14px}
.name-field input{border:2px solid #b9d0d1;background:white;min-height:52px;border-radius:15px;font-size:16px}
.name-field small{font-size:11px}
.video-saved{padding:15px;border:1.5px solid #b9d5d7;border-radius:18px}
.video-saved strong{font-size:14px}
.video-saved div>span{font-size:11px}
.video-edit-actions .text-button{font-size:12px}
.photo-options summary{font-size:13px;font-weight:700;min-height:46px;list-style-position:inside}
.steps-start{background:var(--green-soft)}
.steps-start>p,.steps-start>.text-button{font-size:13px}
.editor-footer{background:var(--paper);border-top:1.5px solid var(--line);padding:12px 22px calc(8px + env(safe-area-inset-bottom));max-width:520px}
.draft-status{font-size:11px;margin:18px 0 0}
.step-list li{background:var(--white);border:1.5px solid var(--line)}
.editor-footer>.text-button{font-size:11px;min-height:38px}
.camera-sheet .sheet-heading h2{font-size:17px}
.camera-view{border:2px solid var(--ink);background:#25383e;border-radius:20px}
.camera-view>p{color:white}
.camera-caption{font-size:14px}
.record-status{font-size:12px}
.record-status strong{font-weight:700}
.recording{font-weight:700}

/* A short celebration appears only after the IndexedDB transaction commits. */
.saved-main,.done-main{min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 25px;text-align:center}
.saved-heading p{font-size:13px;color:var(--green);margin:10px 0 7px;font-weight:700}
.saved-heading h1{font-size:28px}
.saved-check{width:44px;height:44px;margin:auto;display:grid;place-items:center;border-radius:15px;background:var(--green-soft);color:var(--green);border:1.5px solid #b3d5d8}
.saved-check .icon{width:25px;height:25px}
.saved-book{width:min(69vw,290px);margin:25px 0 17px;background:var(--white);border:2px solid var(--ink);border-radius:10px 23px 23px 10px;padding:12px 12px 12px 22px;position:relative;animation:page-arrive .55s cubic-bezier(.2,.8,.2,1) both}
.saved-book:before{content:'';position:absolute;left:0;top:0;bottom:0;width:10px;background:var(--yellow);border-right:2px solid var(--ink);border-radius:7px 0 0 7px}
.saved-photo{aspect-ratio:1;overflow:hidden;border-radius:13px;background:var(--green-soft)}
.saved-photo img{width:100%;height:100%;object-fit:contain}
.saved-caption{display:block;font-size:14px;padding:12px 0 0;overflow-wrap:anywhere}
.saved-copy{font-size:13px;color:var(--muted);margin:0 0 20px}
.saved-main>.primary{width:100%;max-width:330px}
.saved-main>.text-button{margin-top:10px}
.done-main h1{font-size:33px;color:var(--ink)}
.done-main>.eyebrow{font-size:13px}
.done-picture{transform:none;border:2px solid var(--ink);border-radius:22px;padding:10px;margin:22px 0;background:var(--white);animation:page-arrive .5s both}
.done-main>p:not(.eyebrow){font-size:13px}
.done-sparkles{color:#d39c16}

/* Playback is an instrument a small finger can stop and move. */
.building{min-height:0;max-width:620px;height:100svh}
.building .page-top{min-height:65px;padding:9px 12px}
.building .page-top h1{font-size:14px}
.building .page-top .text-button{font-size:12px}
.build-main{padding:6px 20px 10px}
.build-status{font-size:12px}
.build-status b{font-weight:700}
.progress-track{background:#deeaeb;height:6px;margin-bottom:13px}
.progress-track>span{background:var(--green)}
.build-photo,.reverse-screen{border:2px solid var(--ink);border-radius:22px;background:#eef4ee}
.build-note{font-size:14px;margin:12px 0}
.build-thumbs>button{width:45px;height:45px;opacity:.65}
.build-thumbs>button.current{outline-color:var(--green)}
.build-footer{padding:10px 20px calc(16px + env(safe-area-inset-bottom));grid-template-columns:1fr 1.4fr;gap:12px}
.build-footer>*{min-height:55px;font-size:16px}
.video-build-main{padding:6px 20px max(12px,env(safe-area-inset-bottom))}
.video-build-main .build-status{font-size:12px;margin-bottom:10px}
.video-build-main .build-status strong{font-size:12px}
.video-hint{font-size:12px;margin:12px 0 4px}
.video-timeline input{height:44px;accent-color:var(--green)}
.timeline-labels{font-size:11px}
.video-controls{grid-template-columns:1fr 1.4fr 1fr;gap:9px;margin-top:14px}
.video-controls>.small{font-size:12px;gap:2px;padding:10px 5px}
.video-controls>.primary{font-size:16px;gap:5px}
.video-controls .icon{width:18px;height:18px}
.video-lower{margin-top:5px}
.video-lower .text-button{font-size:13px}
.video-loading{background:var(--green-soft);font-size:13px}

/* Parent information uses the same lettering, at a readable size. */
.settings-main{padding:8px 22px 120px;max-width:540px}
.storage-card{background:var(--green-soft);border:1.5px solid #bdd8db;padding:22px 18px;border-radius:23px}
.storage-card h2{font-size:20px}
.storage-card p{font-size:13px;color:var(--muted)}
.storage-count{margin:19px 0}
.storage-count strong{font-size:30px;font-weight:700}
.storage-card .storage-note{font-size:12px;border-color:#c5dddf}
.storage-card>.primary,.storage-card>.secondary{font-size:14px}
.storage-card>.subtle{font-size:11px}
.section-kicker{font-size:12px}
.settings-section{margin:27px 0;padding-bottom:24px}
.settings-section>h2{font-size:18px}
.settings-section>p{font-size:14px}
.settings-section>.secondary{font-size:13px;white-space:normal}
.settings-section>.subtle{font-size:12px}
.how-list>li{font-size:14px}
.how-list span{font-size:13px}
.how-list>li:before{background:var(--green-soft);border:1px solid #b9d0d1}
.compass-link{background:var(--yellow-soft);border:1.5px solid #e1cb82;color:var(--ink);border-radius:19px}
.compass-link small{font-size:11px}
.settings-brand{margin-top:30px}
.settings-brand>span{font-size:10px}
.modal-backdrop{background:#253b465e;backdrop-filter:none}
.sheet,.camera-sheet,.zoom-sheet{background:var(--paper);border:2px solid var(--ink);border-bottom:0;border-radius:25px 25px 0 0}
.sheet-heading h2{font-size:19px}
.sheet>p{font-size:14px}
.menu-button{font-size:14px;min-height:60px}
.camera-instructions{font-size:14px}
#toast{background:var(--ink);color:var(--white);border-radius:16px;font-size:13px}
@keyframes page-arrive{from{transform:translateY(18px) rotate(-4deg);opacity:0}to{transform:none;opacity:1}}
@keyframes new-page{from{transform:translateY(-8px);opacity:.45}to{transform:none;opacity:1}}
@media(min-width:650px){body{background:#f0f5f3}.app-shell{border-left:1px solid var(--line);border-right:1px solid var(--line)}.gallery-main{padding:30px 34px 130px}.playground{max-width:440px;margin:auto}.first-words,.first-invite{text-align:center}.demo-stage{height:270px}.bottom-nav{border:2px solid var(--ink);border-bottom:0}.sheet,.camera-sheet,.zoom-sheet{border-bottom:2px solid var(--ink);border-radius:25px}.works-grid{gap:28px 22px}.card-caption h3{font-size:16px}.detail-main{padding-top:12px}}
@media(max-width:370px){.gallery-main{padding:19px 16px 110px}.gallery-heading{margin-bottom:18px}.gallery-heading h1{font-size:24px}.count-badge{width:48px;height:55px;font-size:9px;border-radius:16px}.count-badge strong{font-size:24px}.first-words h2{font-size:18px}.first-words{margin-bottom:16px}.first-words p{font-size:12px}.playground-heading{padding:10px 11px 8px;font-size:11px}.demo-stage{height:165px}.playground-bottom{padding-left:10px}.playground-bottom>span{font-size:10px}.demo-slider{padding-left:11px;padding-right:11px;gap:5px;font-size:9px}.demo-switch{padding-left:11px;padding-bottom:8px}.demo-tab{min-height:32px;font-size:11px}.first-invite{font-size:11px;margin-top:14px}.card-caption h3{font-size:12px}.works-grid{gap:20px 12px}.detail-main,.editor-main,.settings-main{padding-left:16px;padding-right:16px}.detail-heading h2{font-size:21px}.capture-empty h2{font-size:23px}.capture-empty>p{font-size:13px}.capture-illustration{width:150px;height:130px}.video-controls{gap:6px}.video-controls>.small{font-size:10px}.video-controls>.primary{font-size:14px}.saved-heading h1{font-size:25px}.storage-card{padding:19px 14px}.storage-card h2{font-size:18px}}
@media(max-height:700px){.gallery-main{padding-top:16px}.gallery-heading{margin-bottom:17px}.first-words{margin-bottom:14px}.demo-stage{height:156px}.playground-heading{padding-top:9px}.playground-bottom{padding-bottom:1px}.first-invite{margin-top:13px}.capture-empty{min-height:0;padding-top:3px;gap:8px}.capture-illustration{width:150px;height:115px;margin-bottom:13px}.capture-empty h2{font-size:22px}.capture-empty>p{margin-bottom:5px;font-size:13px}.capture-empty>small{font-size:10px}.capture-empty>.text-button{min-height:38px}.saved-main,.done-main{padding-top:20px;padding-bottom:20px}.saved-book{width:min(58vw,225px);margin:17px 0 14px}.saved-check{width:36px;height:36px;border-radius:12px}.saved-copy{margin-bottom:15px;font-size:12px}.saved-heading h1{font-size:25px}.build-note{margin:9px 0;font-size:12px}.build-thumbs>button{width:38px;height:38px}.build-footer>*{min-height:50px}.video-controls{margin-top:10px}.video-controls>*{min-height:50px}.video-hint{margin-top:8px}.video-timeline input{height:38px}.video-lower .text-button{min-height:40px}.cover-edit{height:180px}.camera-sheet{padding-top:10px}.camera-sheet .sheet-heading{margin-bottom:8px}.camera-caption{margin:10px 0 7px}.record-status{margin-top:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep the sample controls above the navigation on short phones. */
@media(max-height:650px) and (max-width:649px){
  .gallery-main{padding-top:12px;padding-bottom:104px}
  .gallery-heading{margin-bottom:12px}
  .first-words{margin-bottom:10px}
  .first-words h2{font-size:17px}
  .first-words p{font-size:11px;margin-top:3px}
  .demo-stage{height:112px}
  .playground-heading{padding-top:7px;padding-bottom:6px}
  .demo-switch{padding-bottom:6px}
  .playground-bottom{padding-bottom:0}
  .playground-bottom>span{font-size:10px}
  .first-invite{margin-top:8px;font-size:10px}
}
