:root{--paper:#fffdf6;--paper-shade:#f8f6eb;--ink:#3e493a;--muted:#717564;--green:#5c764f;--green-dark:#3c583b;--green-wash:#eaf0df;--coral:#ab5a43;--rule:#dfdfcd;--ease-out:cubic-bezier(.23,1,.32,1);--ease-move:cubic-bezier(.77,0,.175,1);--shadow:0 18px 55px #3c493a19;--hand:'Segoe Print','Bradley Hand',cursive;font-family:'Segoe UI',system-ui,sans-serif;color:var(--ink);background:#f0f0e7;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:default}button,a,input,select{touch-action:manipulation}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid #9c643e;outline-offset:4px}button{border:0;background:none}::selection{background:#d9e6c9}a{color:var(--green-dark);text-underline-offset:3px}h1,h2,h3,p{margin-top:0}p{line-height:1.65}.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-thumb{background:#c7ceb9;border-radius:7px}::-webkit-scrollbar-track{background:transparent}.boot{height:100vh;display:grid;place-content:center;text-align:center}.boot h1{font:48px var(--hand);color:var(--green)}.app-frame{height:100dvh;min-height:550px;display:flex;flex-direction:column;max-width:1800px;margin:auto;padding:0 28px}.top{height:96px;display:flex;align-items:center;gap:20px;flex-shrink:0}.brand{font:34px var(--hand);color:var(--green-dark);display:flex;align-items:center;gap:12px;letter-spacing:-1px;white-space:nowrap}.brand>.icon{width:31px;height:31px;transform:rotate(-12deg)}.tagline{font-size:12px;letter-spacing:.03em;color:var(--muted);border-left:1px solid #cfd4c4;padding-left:22px;margin-left:4px;line-height:1.6}.top-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.quiet-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:13px;min-height:40px;padding:10px 12px;border-radius:6px;color:#59664d;transition:background .15s ease,color .15s ease}.quiet-btn[aria-pressed=true],.quiet-btn.active{background:var(--green-wash);color:var(--green-dark)}.square{width:40px;padding:10px}.primary{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:var(--green);color:#fffdf6;padding:12px 20px;border-radius:7px;min-height:44px;font-size:14px;transition:background .15s ease,transform .12s ease}.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #bcc8ad;background:#fffef8;padding:11px 17px;border-radius:7px;min-height:44px;font-size:14px;transition:background .15s ease}.text-btn{color:var(--green-dark);padding:8px 0;text-decoration:underline;text-underline-offset:4px;font-size:13px}.danger{color:#9e4839;border-color:#d6afa0}.notebook{flex:1;min-height:0;position:relative;display:grid;grid-template-columns:minmax(0,1fr) 360px;background:var(--paper);border:1px solid #dddcc9;border-radius:11px 11px 5px 5px;box-shadow:0 6px 0 -2px #faf8ed,0 7px 0 -2px #dcdcc9,0 15px 35px #3d493213;isolation:isolate}.left-page{position:relative;min-width:0;display:flex;flex-direction:column;border-right:1px solid #d9dbc7}.left-page:after{position:absolute;z-index:-1;right:0;top:0;bottom:0;width:22px;content:'';background:linear-gradient(90deg,transparent,#d2d0b612);pointer-events:none}.page-heading{padding:25px 30px 0;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:50px}.page-heading>span{font:17px var(--hand);color:#8b8c72}.save-status{font-size:11px;color:#6a795c;display:flex;gap:6px;align-items:center}.save-status .icon{width:13px;height:13px}.save-status.error{color:#a34e38}.canvas{position:relative;flex:1;min-height:240px;overflow:hidden;outline:none;touch-action:none}.canvas-empty{position:absolute;top:42%;left:50%;transform:translate(-50%,-50%);text-align:center;width:85%;pointer-events:none}.canvas-empty h1{font:clamp(24px,2.4vw,36px) var(--hand);font-weight:400;color:#7b866a;margin:0 0 18px}.canvas-empty p{font-size:14px;color:#888b78;line-height:1.8}.canvas-empty .empty-mark{width:70px;height:70px;opacity:.4;color:#82976a;margin-bottom:22px}.canvas-item{position:absolute;width:112px;height:118px;margin:-59px 0 0 -56px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;border-radius:10px;user-select:none;touch-action:none;padding:5px;z-index:2;transition:background .14s ease,box-shadow .14s ease;border:1px solid transparent}.canvas-item .item-name{font:16px var(--hand);max-width:125px;line-height:1.35;white-space:normal}.canvas-item.selected{border-color:#a5b88d;background:#f2f5e9aa}.canvas-item.target{border-color:#7c9764;background:#e6efdb99;box-shadow:0 0 0 3px #aabc9433}.canvas-item.dragging{z-index:30;cursor:grabbing;background:#fffdf6dc;box-shadow:0 9px 20px #3d4b2722}.canvas-item.locked{pointer-events:none}.art{display:block;flex-shrink:0;width:78px;height:78px;background-image:url('/assets/items-notebook-pencil.9905ec68f84a7377.png');background-size:600% 500%;background-position:var(--art-x) var(--art-y);background-repeat:no-repeat}.art.large{width:142px;height:142px}.art.tiny{width:36px;height:36px}.workspace-actions{min-height:71px;margin:0 24px;border-top:1px solid var(--rule);display:flex;align-items:center;gap:3px;position:relative}.workspace-actions .spacer{flex:1}.workspace-actions .quiet-btn{font-size:12px;padding:9px}.selection-bar{position:absolute;bottom:78px;left:24px;z-index:8;display:flex;gap:4px;background:#fffdf6f5;border:1px solid #d5ddc9;border-radius:9px;padding:5px;box-shadow:0 5px 15px #3d493212}.selection-bar .quiet-btn{font-size:12px}.right-page{background:#fbfaf1;border-radius:0 11px 5px 0;display:flex;flex-direction:column;min-height:0;position:relative}.right-top{padding:22px 24px 12px}.right-title{display:flex;justify-content:space-between;align-items:baseline}.right-title h2{font:25px var(--hand);font-weight:400;color:#425c40;margin:0 0 14px}.right-title .count{font-size:12px;color:#677654}.count strong{font-size:20px;font-weight:500}.book-tabs{display:flex;border-bottom:1px solid var(--rule);padding:0 24px;gap:22px;flex-shrink:0}.book-tabs button{font-size:13px;padding:13px 0;color:#747c66;position:relative}.book-tabs button.active{color:#3c5b37;font-weight:600}.book-tabs button.active:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#779562}.search{position:relative;display:flex;align-items:center;margin-top:10px}.search>.icon{position:absolute;left:12px;width:17px;color:#7c846c}.search input{width:100%;padding:11px 37px;border:1px solid #d9ddcc;border-radius:6px;background:#fffef8;font-size:13px;min-height:42px;outline-offset:1px}.search button{position:absolute;right:5px;min-width:30px;min-height:32px}.filters{display:flex;gap:5px;flex-wrap:wrap;margin-top:13px}.filter{font-size:11px;color:#69725d;padding:6px 8px;border-radius:5px}.filter.active{background:#e4ecd8;color:#3f5b36}.sortbar{display:flex;align-items:center;justify-content:space-between;margin-top:12px}.sortbar select{background:transparent;border:0;font-size:11px;color:#737a65;max-width:145px;cursor:pointer}.sortbar .quiet-btn{min-height:30px;font-size:11px;padding:5px}.collection-list{overflow:auto;flex:1;padding:8px 18px 24px;overscroll-behavior:contain}.item-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px 5px}.library-entry{position:relative;text-align:center;min-width:0}.library-item{width:100%;min-height:112px;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:3px;border:1px solid transparent;border-radius:9px;padding:5px 2px;transition:background .15s ease}.library-item .item-name{font:13px var(--hand);line-height:1.35;max-width:100%;overflow-wrap:break-word}.library-item .art{width:65px;height:65px}.item-info{position:absolute;right:0;top:0;width:25px;height:25px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#fafbf2eb;color:#7c886d;opacity:0;transition:opacity .15s ease}.item-info .icon{width:14px;height:14px}.library-entry:focus-within .item-info{opacity:1}.new-dot{position:absolute;left:5px;top:6px;width:5px;height:5px;border-radius:50%;background:#b26f53}.favorite-mark{position:absolute;bottom:1px;right:2px;color:#9a8552}.favorite-mark .icon{width:12px;height:12px;fill:#b8a06333}.library-hint{padding:12px 20px;border-top:1px solid #e3e3d3;font-size:10px;text-align:center;color:#808673}.empty-list{text-align:center;padding:35px 15px;color:#7c826d;font-size:13px;line-height:1.7}.empty-list .icon{width:30px;height:30px;margin-bottom:12px;opacity:.55}.foot{height:44px;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#7a816c;padding:0 8px;gap:12px}.foot .text-btn{font-size:10px;color:#7a816c}.discovery-note{position:absolute;z-index:12;bottom:90px;left:50%;transform:translateX(-50%);width:350px;max-width:calc(100% - 34px);background:#f5f0dc;border-radius:9px;box-shadow:0 15px 32px #48452820;padding:24px;text-align:left}.discovery-note:before{content:'';position:absolute;width:76px;height:20px;top:-10px;left:calc(50% - 38px);background:#bbcea591;transform:rotate(-3deg)}.discovery-head{display:flex;align-items:center;gap:12px}.discovery-head .art{width:70px;height:70px}.discovery-note h2{font:27px var(--hand);margin:0;color:#69532f}.discovery-note p{font-size:13px;line-height:1.6;margin:8px 0}.stamp{font:11px var(--hand);color:#a65740;border:1px solid #b36950;border-radius:3px;padding:4px 7px;display:inline-block;transform:rotate(-5deg)}.recipe-line{font-size:12px;color:#6f704f;line-height:1.6;margin:12px 0}.discovery-note .note-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:16px}.discovery-note .primary{font-size:12px;padding:10px 15px;min-height:38px}.discovery-note .quiet-btn{font-size:12px;min-height:38px}.compact-note{padding:12px 16px;display:flex;align-items:center;gap:12px;width:360px}.compact-note .art{width:48px;height:48px}.compact-note h2{font-size:20px}.compact-note button{margin-left:auto}.tutorial{position:absolute;bottom:88px;left:28px;width:330px;max-width:calc(100% - 56px);padding:20px 24px;background:#f0f2e4;border-radius:8px;border:1px solid #dbe2cd;z-index:7}.tutorial h2{font:20px var(--hand);color:#5e744f;margin:0 0 10px}.tutorial p{font-size:12px;line-height:1.7;color:#68735c;margin:0 0 12px}.tutorial-foot{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#7d866b}.tutorial .text-btn{font-size:11px}.pair-tray{position:absolute;z-index:10;bottom:85px;left:50%;transform:translateX(-50%);width:360px;max-width:calc(100% - 24px);background:#f6f6ea;padding:18px;border:1px solid #d2dcc4;border-radius:10px;box-shadow:0 12px 25px #4c58351a}.pair-tray h3{font:18px var(--hand);margin:0 0 12px;text-align:center;color:#586d45}.pair-slots{display:flex;justify-content:center;align-items:center;gap:12px}.pair-slot{min-width:80px;min-height:80px;border:1px dashed #b8c5a6;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:11px;color:#737e60}.pair-slot .art{width:45px;height:45px}.pair-actions{display:flex;justify-content:center;gap:10px;margin-top:12px}.pair-actions button{font-size:12px;min-height:36px;padding:8px 15px}.pinned-goal{font-size:11px;display:flex;align-items:center;gap:6px;background:#edf1e3;padding:8px 12px;border-radius:5px;color:#6e7d56}.pinned-goal .icon{width:13px;height:13px}.persistent-warning{position:absolute;top:12px;left:18px;right:18px;z-index:15;background:#f5e7dc;border:1px solid #e2c5ae;border-radius:8px;padding:12px 16px;display:flex;align-items:center;gap:12px;font-size:12px;color:#8b5035}.persistent-warning p{margin:0;flex:1}.persistent-warning button{font-size:11px}.rays{position:absolute;width:100px;height:100px;margin:-50px;pointer-events:none;z-index:4}.ray{position:absolute;left:50%;top:50%;width:2px;height:14px;background:#b3aa62;border-radius:2px;transform-origin:center 50px}.footer-note{font-size:11px;color:#768268}.journal-list{display:flex;flex-direction:column;padding:0 5px}.journal-row{padding:12px 4px;border-bottom:1px solid #e3e4d4;display:flex;align-items:center;gap:12px;text-align:left;width:100%;border-radius:3px}.journal-row .art{width:48px;height:48px}.journal-row strong{display:block;font:15px var(--hand);font-weight:400}.journal-row small{font-size:10px;color:#7b826b;display:block;margin-top:4px}.journal-row .icon{margin-left:auto;width:15px;color:#889276}.locked-entry{color:#959a85;font-size:12px;padding:23px 12px;text-align:center;line-height:1.7}.right-subnav{display:flex;gap:10px;margin-top:10px}.right-subnav button{font-size:11px;color:#6d775e;padding:7px 0}.right-subnav button.active{color:#425c3a;text-decoration:underline;text-underline-offset:5px}.progress-small{height:3px;background:#e2e5d5;margin:12px 0 0;border-radius:2px}.progress-small i{display:block;height:100%;background:#91a275;border-radius:2px;transition:width .2s ease}.large-labels .item-name{font-size:17px}.large-labels .library-item .item-name{font-size:15px}.mobile-collection{display:none}#toast{position:fixed;z-index:80;bottom:24px;left:50%;transform:translate(-50%,8px);padding:12px 20px;max-width:calc(100vw - 32px);background:#3e533af2;color:#fafcf3;border-radius:8px;box-shadow:0 8px 25px #33462b22;font-size:13px;opacity:0;pointer-events:none;transition:opacity .16s ease,transform .16s var(--ease-out)}#toast.visible{opacity:1;transform:translate(-50%,0)}dialog{border:0;padding:0;background:#fffdf5;border-radius:12px;color:var(--ink);box-shadow:0 25px 100px #20361f33;width:560px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 70px);overflow:hidden}dialog::backdrop{background:#3946384d}dialog .sheet-layout{display:flex;flex-direction:column;max-height:calc(100dvh - 70px)}.sheet-head{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:25px 28px 19px;border-bottom:1px solid var(--rule);flex-shrink:0}.sheet-head h2{font:25px var(--hand);font-weight:400;color:#4f6845;margin:0;line-height:1.35}.sheet-body{padding:24px 28px 28px;overflow:auto;overscroll-behavior:contain;font-size:14px}.sheet-body p{color:#6a705e;font-size:13px}.sheet-body h3{font:20px var(--hand);color:#61784d;margin:24px 0 12px}.sheet-body h3:first-child{margin-top:0}.sheet-body .actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px;align-items:center}.sheet-body .actions>*{flex:1}.entry-hero{display:flex;align-items:center;justify-content:center;flex-direction:column;margin:0 0 20px}.entry-hero .art{width:160px;height:160px}.entry-category{font-size:10px;color:#92927a;text-transform:uppercase;letter-spacing:.12em;margin-top:10px}.entry-description{text-align:center;font:17px var(--hand)!important;color:#7c775a!important;line-height:1.8!important;padding:0 16px}.recipe-entry{display:flex;align-items:center;justify-content:center;gap:8px;border-bottom:1px solid #e4e5d4;padding:10px 0;min-height:48px;font-size:12px}.recipe-part{display:flex;flex-direction:column;align-items:center;text-align:center;flex:1;font-size:11px}.recipe-part .art{width:52px;height:52px}.recipe-arrow{color:#b0b49d}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 0;border-bottom:1px solid #e3e6d5;font-size:13px}.setting-row small{display:block;font-size:11px;color:#7b846a;margin-top:5px}.setting-row select{padding:8px;border:1px solid #d3dbc7;border-radius:6px;background:#fffef9;max-width:155px}.setting-row input[type=checkbox]{width:19px;height:19px;accent-color:var(--green)}.hint-card{background:#f3f0df;padding:22px;border-radius:7px;margin:15px 0}.hint-card p{font:17px var(--hand);color:#7a704f;line-height:1.8;margin:0}.folded{padding:17px;border-bottom:1px dashed #d3d9c4;color:#8b927c;font-size:12px}.notice{background:#edf2e4;padding:14px 17px;border-radius:7px;color:#557045;font-size:12px;line-height:1.7;margin:16px 0}.notice.error{background:#f6e8df;color:#9b543a}.stat-pair{display:flex;gap:36px;justify-content:center;margin:15px 0 28px}.stat-pair>div{text-align:center}.stat-pair strong{display:block;font:36px var(--hand);color:#657d4c}.stat-pair span{font-size:11px;color:#81886f}.goal-card{padding:20px 0;border-bottom:1px solid #e0e4d2;display:grid;grid-template-columns:60px 1fr;gap:16px}.goal-card .art{width:60px;height:60px}.goal-card h3{font-size:19px;margin:0 0 4px}.goal-card p{font-size:12px;margin:0 0 12px}.goal-card .quiet-btn{min-height:30px;font-size:11px;padding:6px 9px}.goal-card.done{opacity:.8}.goal-card .stamp{margin-top:8px}.history-row{padding:15px 0;border-bottom:1px solid #e1e4d5;display:flex;justify-content:space-between;align-items:center;gap:12px}.history-row p{font-size:12px;margin:0}.history-row small{font-size:10px;color:#869076}.history-row button{font-size:11px;flex-shrink:0}.form-field{display:block;font-size:12px;color:#69775d;margin:17px 0}.form-field input{display:block;width:100%;min-height:44px;border:1px solid #cdd7bf;border-radius:6px;background:#fffef9;padding:11px 13px;margin-top:7px;font-size:14px}.form-field input[type=file]{font-size:12px}.password-line{display:flex;align-items:center;gap:8px;margin:10px 0;font-size:12px}.password-line input{accent-color:var(--green)}.demo-label{background:#f0eedf;padding:10px 12px;border-radius:5px;font-size:11px!important;color:#7f785b!important;line-height:1.6!important}.demo-code{font:22px var(--hand);letter-spacing:.15em;margin:8px 0;color:#8c6d3e}.form-error{color:#a34e37;font-size:12px;min-height:16px}.menu-list{display:grid;gap:4px}.menu-list button{display:flex;gap:12px;align-items:center;min-height:48px;text-align:left;padding:10px 4px;border-bottom:1px solid #e3e6d7;font-size:14px}.menu-list .icon{color:#82956b}.menu-list small{display:block;font-size:11px;color:#8a927a;margin-top:4px}.menu-list button>.icon:last-child{margin-left:auto;width:14px}.completion-hero{text-align:center;padding:8px 0}.completion-hero .art{width:160px;height:160px;margin:auto}.completion-hero h3{font-size:28px}.dev-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.dev-grid button{font-size:12px}.art-credit{font-size:11px!important}.offline-ready{display:inline-flex;align-items:center;gap:5px}.offline-ready .icon{width:11px;height:11px}.busy{opacity:.6;pointer-events:none}.drawer-close{display:none}.account-chip{font-size:11px}.page-number{position:absolute;bottom:16px;right:14px;pointer-events:none;font:11px var(--hand);color:#aaa78b}.notebook .page-number{display:none}
@media(hover:hover) and (pointer:fine){.quiet-btn:hover,.secondary:hover{background:#e9efdf}.primary:hover{background:#4c6840}.library-item:hover{background:#f0f2e5;border-color:#d7dfc8}.library-entry:hover .item-info{opacity:1}.item-info:hover{color:#395a32;background:#e3ecd7}.canvas-item:hover{background:#f1f4e5aa}.journal-row:hover{background:#eff2e5}.menu-list button:hover{background:#f1f3e8}.filter:hover{background:#edf1e3}}.primary:active,.secondary:active{transform:translateY(1px)}
@media(min-width:1500px){.notebook{grid-template-columns:minmax(0,1fr) 400px}.item-grid{gap:20px 10px}.library-item .art{width:75px;height:75px}.library-item{min-height:124px}}
@media(max-width:1050px){.app-frame{padding:0 16px}.tagline{display:none}.notebook{grid-template-columns:minmax(0,1fr) 310px}.top{height:78px}.brand{font-size:29px}.right-top{padding:20px 18px 10px}.book-tabs{padding:0 18px}.workspace-actions .quiet-btn{font-size:0;gap:0;width:35px;padding:8px}.workspace-actions .quiet-btn.mobile-collection{font-size:12px;width:auto;gap:8px}.workspace-actions .quiet-btn .icon{width:18px}.selection-bar .quiet-btn{font-size:11px;width:auto}.collection-list{padding:8px 10px 20px}.filters{gap:2px}.filter{font-size:10px;padding:6px}.library-item .art{width:59px;height:59px}.library-item .item-name{font-size:12px}.library-item{min-height:103px}.page-heading{padding:20px 20px 0}.top-actions{gap:0}.top-actions .quiet-btn{font-size:12px;padding:9px}.top-actions .account-chip{display:none}}
@media(max-width:700px),(max-height:500px) and (pointer:coarse){.app-frame{min-height:460px;padding:0 10px}.top{height:70px;gap:5px}.brand{font-size:26px;gap:6px}.brand>.icon{width:25px}.top-actions .labeled{font-size:0;gap:0;width:36px}.top-actions .labeled .icon{width:19px}.top-actions{gap:2px}.top-actions .square{width:34px}.notebook{display:block}.left-page{height:100%;border-right:0}.page-heading{padding:16px 18px 0}.page-heading>span{font-size:14px}.save-status{font-size:10px}.canvas-empty h1{font-size:25px}.canvas-empty p{font-size:12px}.right-page{display:none;position:fixed;inset:140px 8px 8px;border-radius:16px;z-index:40;box-shadow:0 -10px 80px #33452e33;border:1px solid #d3dbc2}.right-page.open{display:flex}.right-top{padding:18px 20px 8px}.drawer-close{display:inline-flex}.item-grid{grid-template-columns:repeat(3,1fr);gap:13px}.library-item{min-height:105px}.library-item .art{width:70px;height:70px}.library-item .item-name{font-size:14px}.item-info{opacity:1}.collection-list{padding:10px 18px 20px}.filters{gap:7px}.filter{font-size:11px}.right-title h2{font-size:24px}.workspace-actions{margin:0 13px;min-height:66px;gap:1px}.workspace-actions .quiet-btn{width:34px}.workspace-actions .mobile-collection{display:inline-flex}.mobile-collection{display:inline-flex}.foot{height:35px;font-size:9px;padding:0 5px}.foot .text-btn{font-size:9px}.foot .footer-note{display:none}.canvas-item{width:100px;height:108px;margin:-54px 0 0 -50px}.canvas-item .art{width:69px;height:69px}.canvas-item .item-name{font-size:14px}.selection-bar{bottom:73px;left:12px}.selection-bar .quiet-btn{font-size:10px;padding:6px;min-height:32px}.tutorial{bottom:76px;left:18px;max-width:calc(100% - 36px);padding:16px 18px}.tutorial h2{font-size:18px}.discovery-note{bottom:79px;width:310px;padding:20px}.discovery-note h2{font-size:24px}.discovery-note p{font-size:12px}.discovery-head .art{width:60px;height:60px}.pair-tray{bottom:76px;width:320px}.pair-tray h3{font-size:16px}.pair-slot{min-height:66px}.sheet-head{padding:21px 20px 16px}.sheet-head h2{font-size:23px}.sheet-body{padding:20px}.sheet-body p{font-size:13px}.sheet-body .actions{gap:8px}.sheet-body .actions>*{min-width:100px}.entry-hero .art{width:130px;height:130px}.entry-description{font-size:16px!important}.persistent-warning{font-size:11px;padding:10px;gap:5px;left:10px;right:10px}.persistent-warning .secondary{font-size:10px;padding:6px;min-height:34px}.pinned-goal{font-size:10px;padding:5px 8px}.page-heading>span:has(+.pinned-goal){display:none}dialog{max-height:calc(100dvh - 32px)}dialog .sheet-layout{max-height:calc(100dvh - 32px)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition-duration:0s!important;animation-duration:0s!important;scroll-behavior:auto!important}}.reduce-motion *{transition-duration:0s!important;animation-duration:0s!important}
.drag-ghost{position:fixed;width:104px;height:104px;transform:translate(-50%,-50%) rotate(-3deg);pointer-events:none;z-index:100;display:grid;place-items:center;background:#fffdf5db;border-radius:12px;box-shadow:0 12px 22px #3d4b2722}.drag-ghost .art{width:90px;height:90px}.canvas-item .art{width:86px;height:86px}.library-item .art{width:72px;height:72px}
.page-heading{justify-content:space-between}.save-status{margin-left:auto}.status-icon{min-width:36px;min-height:36px;padding:8px}.status-icon .icon{width:16px;height:16px}.foot{justify-content:space-between}.foot .square{width:32px;min-height:32px}.foot .square .icon{width:15px;height:15px}.canvas-empty h1{font-size:24px}.visual-guide{background:transparent;border:0;box-shadow:none;width:260px;left:50%;transform:translateX(-50%);padding:8px 16px;bottom:85px}.guide-pair{display:flex;align-items:center;justify-content:center;gap:10px}.guide-item{padding:0;min-width:58px;min-height:58px;border-radius:8px}.guide-item .art{width:58px;height:58px}.guide-pair>.icon{width:16px;height:16px;color:var(--green)}.guide-arrow,.guide-unknown{font:25px var(--hand);color:#63744e}.guide-unknown{border-bottom:1px dashed #9ca58b;padding:0 8px}.visual-guide .tutorial-foot{margin-top:4px;justify-content:center;gap:12px}.visual-guide .text-btn{font-size:13px;min-height:40px}.visual-guide .square{width:36px;min-height:36px}.visual-guide .square .icon{width:15px}.discovery-note:not(.compact-note){width:300px;padding:18px 20px}.discovery-note .stamp{display:none}.discovery-note h2{font-size:25px}.discovery-note .note-actions{margin-top:8px}.visual-recipe{display:flex;align-items:center;justify-content:center;gap:12px;margin:0}.visual-recipe .art{width:43px;height:43px}.visual-recipe>.icon{width:14px;height:14px}.discovery-note .note-actions .primary{min-width:44px;min-height:44px}.canvas-item.no-result{outline:1px dashed #9c927c;outline-offset:2px}.new-dot{width:4px;height:4px;border-radius:50%;transform:none;background:#9a8e65;pointer-events:none}.item-info{opacity:.65}.canvas-item.target{outline:2px dashed #83976b;outline-offset:3px}
@media(max-width:1050px){.workspace-actions [data-action=pair]{font-size:12px;width:auto;gap:6px}.top-actions .labeled{font-size:12px;width:auto;gap:5px}}
@media(max-width:700px),(max-height:500px) and (pointer:coarse){.top-actions .labeled{padding:7px 5px;font-size:11px;gap:3px}.top-actions .labeled .icon{width:16px}.brand{font-size:23px}.brand>.icon{width:20px}.top-actions .square{width:30px}.top-actions{gap:0}.visual-guide{bottom:80px;left:50%;padding:8px 12px}.workspace-actions [data-action=pair]{padding:8px 6px;font-size:11px}.workspace-actions .mobile-collection{font-size:11px!important;padding:8px 6px;gap:4px!important}.discovery-note:not(.compact-note){width:280px;padding:16px}.canvas-empty h1{font-size:22px}.visual-guide .guide-item .art{width:52px;height:52px}}
@media(max-width:700px),(max-height:500px) and (pointer:coarse){.canvas-item .art{width:76px;height:76px}}

@media(max-width:700px),(max-height:500px) and (pointer:coarse){.workspace-actions [data-action=clear]{font-size:10px;width:auto;gap:3px;padding:8px 4px}.workspace-actions [data-action=clear] .icon{width:15px}}

/* Wordless, interruptible drag lesson. Illustrations remain the notebook atlas. */
.starter-strip{display:none}.drag-lesson{position:fixed;inset:0;z-index:45;pointer-events:none}.lesson-item{position:absolute;width:76px;height:76px;margin:-38px;filter:drop-shadow(0 7px 6px #514c3720)}.lesson-item .art{width:76px;height:76px}.lesson-cursor{position:absolute;width:26px;height:32px;margin:18px 0 0 16px;opacity:0}.lesson-cursor svg{width:100%;height:100%;fill:#fffdf5;stroke:#64784e;stroke-width:1.8;stroke-linejoin:round}.lesson-target{position:absolute;width:104px;height:104px;margin:-52px;border:1px dashed #96a581;border-radius:50%;opacity:.55}.lesson-target.joined{border:2px solid #77925c;opacity:1}.lesson-arrows{position:absolute;transform:translateX(-50%);font:25px var(--hand);color:#687c50;white-space:pre}.lesson-target.static{width:180px;margin-left:-90px}.workspace-actions [data-action=pair]{min-width:40px;justify-content:center}.canvas-empty{opacity:.35}
@media(max-width:700px),(max-height:500px) and (pointer:coarse){.starter-strip{display:flex;position:absolute;bottom:24px;left:50%;transform:translateX(-50%);gap:1px;background:#f3f2e7;border-radius:9px;padding:5px}.starter-strip button{width:43px;height:50px;display:grid;place-items:center;touch-action:none;border-radius:5px}.starter-strip .art{width:43px;height:43px}.lesson-item,.lesson-item .art{width:64px;height:64px}.lesson-item{margin:-32px}}

body:has(.drag-lesson) .canvas-empty{visibility:hidden}

/* Canvas drawings are 20% larger; collection and menu art retain their size. */
.canvas-item{width:130px;height:136px;margin:-68px 0 0 -65px}.canvas-item .art{width:103.2px;height:103.2px;flex-shrink:0}
.reset-consent{display:flex;align-items:center;gap:12px;margin-top:24px;font-size:13px;line-height:1.6}.reset-consent input{width:20px;height:20px;flex-shrink:0;accent-color:#95553e}.primary.danger{background:#914c38;color:#fffdf5}.primary.danger:disabled{opacity:.4;cursor:not-allowed}
@media(max-width:700px),(max-height:500px) and (pointer:coarse){.canvas-item{width:116px;height:124px;margin:-62px 0 0 -58px}.canvas-item .art{width:91.2px;height:91.2px}}

.foot{height:48px;flex-shrink:0}.foot #cloud-status:empty{display:none}.music-toggle{min-height:44px;min-width:110px;color:#405b36;font-size:12px;gap:8px}.music-toggle[aria-pressed=true]{color:#354f2c}.music-toggle:focus-visible{outline:2px solid #536e43;outline-offset:2px}.music-toggle .icon{width:20px;height:20px}@media(max-width:700px),(max-height:500px) and (pointer:coarse){.foot{height:48px}.foot .music-toggle{font-size:12px;min-height:44px}}

/* Selected-item tools: the symbol leads; the short caption supports it. */
.selection-bar{gap:4px;padding:6px;max-width:calc(100% - 24px)}.selection-bar .item-action{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:76px;width:76px;min-height:76px;padding:9px 7px;border-radius:6px;color:#49613c}.selection-bar .item-action .icon{width:32px;height:32px;flex-shrink:0;stroke-width:1.5}.selection-bar .item-action span{font-size:11px;line-height:1.2;color:#59634c}.selection-bar .item-action[data-action=remove] .icon{color:#89624d}.selection-bar .item-action:focus-visible{outline:2px solid #536e43;outline-offset:1px}@media(max-width:700px),(max-height:500px) and (pointer:coarse){.selection-bar .item-action{width:72px;min-width:72px;min-height:74px;padding:8px 6px}.selection-bar .item-action .icon{width:31px;height:31px}}

@media(max-width:700px),(max-height:500px) and (pointer:coarse){.left-page:has(.starter-strip) .selection-bar{bottom:151px}}

/* A paper demonstration in a softly shaded pool of light. */
dialog.guided-demo{width:680px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);padding:0;border:0;border-radius:12px;background:#faf8ed;box-shadow:0 26px 80px #303d3459;overflow:auto;color:#495b3f}
dialog.guided-demo::backdrop{background:radial-gradient(ellipse at 50% 44%,#69785c52 12%,#35463bc7 100%);backdrop-filter:blur(2px)}
.demo-heading{display:flex;align-items:center;justify-content:space-between;padding:18px 22px 12px;gap:12px}.demo-heading h2{font:25px var(--hand);margin:0;color:#526847}.demo-close,.demo-pause{width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:10px}.guided-demo button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.guided-demo button:focus-visible,.demo-footer input:focus-visible{outline:2px solid #60794b;outline-offset:2px}.demo-stage{position:relative;height:330px;margin:0 18px;overflow:hidden;background:linear-gradient(90deg,#fffdf5 0%,#fffdf5 68%,#f5f3e6 69%,#f8f6eb 100%);border:1px solid #dedfca;border-radius:6px}.demo-fold{position:absolute;left:69%;top:0;bottom:0;width:1px;background:#d6d9c3;box-shadow:-5px 0 10px #676f4110}.demo-page-label,.demo-collection-label{position:absolute;top:13px;font:12px var(--hand);color:#6d775d}.demo-page-label{left:18px}.demo-collection-label{left:73%}.demo-source{position:absolute;left:84%;transform:translate(-50%,-50%);opacity:.55}.demo-earth{top:34%}.demo-water{top:70%}.demo-source .art,.demo-item .art{width:76px;height:76px}.demo-motion{position:absolute;inset:0;pointer-events:none}.demo-item{position:absolute;width:76px;height:76px;margin:-38px;z-index:2}.demo-pointer{position:absolute;z-index:4;width:25px;height:31px;margin:16px 0 0 13px;opacity:0}.demo-pointer svg{width:100%;height:100%;fill:#fffdf5;stroke:#546f40;stroke-width:1.7;stroke-linejoin:round}.demo-drop-ring{position:absolute;width:100px;height:100px;margin:-50px;border:1px dashed #a4af8e;border-radius:50%}.demo-drop-ring.joined{border:1px solid #7c9663;background:#dfe8ce40}.demo-result-name{display:block;text-align:center;font:16px var(--hand);color:#526444}.demo-footer{padding:12px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.demo-footer label{display:flex;align-items:center;gap:10px;min-height:44px;font-size:12px;color:#515f45;cursor:pointer}.demo-footer input{width:19px;height:19px;accent-color:#647d4e}.demo-preference-error{font-size:12px}.demo-static-arrows{position:absolute;top:55%;left:22%;font:23px var(--hand);white-space:pre;color:#6e8055}.demo-settings{margin-top:22px;border-top:1px solid #e0e4d2;padding-top:14px}.demo-settings summary{cursor:pointer;font-size:13px;min-height:32px;color:#526947}.demo-settings .text-btn{min-height:44px}
@media(max-width:700px),(max-height:500px) and (pointer:coarse){.demo-stage{height:300px;margin:0 10px}.demo-heading{padding:12px 13px 8px}.demo-heading h2{font-size:22px}.demo-footer{padding:8px 13px}.demo-source .art,.demo-item .art{width:54px;height:54px}.demo-item{width:54px;height:54px;margin:-27px}.demo-drop-ring{width:74px;height:74px;margin:-37px}.demo-page-label,.demo-collection-label{font-size:10px}.demo-collection-label{left:71%}.demo-pointer{width:21px;height:26px;margin:10px 0 0 8px}.demo-static-arrows{font-size:19px}}
@media(max-height:540px){.demo-stage{height:230px}.demo-heading{padding-top:6px;padding-bottom:2px}.demo-footer{padding-top:2px;padding-bottom:2px}}

.demo-preference-error:empty{display:none}
:root .legal-page{display:block;min-height:100vh;overflow:auto;padding:clamp(24px,5vw,70px) 22px;background:var(--paper,#f5f3e9);color:var(--ink,#333d37)}
.legal-page main{max-width:70ch;margin:auto;padding-bottom:60px;font-size:17px;line-height:1.7}
.legal-page h1{margin:32px 0 12px;font:clamp(30px,5vw,42px) var(--hand);line-height:1.3}.legal-page h2{margin:34px 0 10px;font-size:1.3rem}.legal-page p{margin:12px 0}.legal-page a,.reset-consent a{color:inherit;text-decoration:underline;text-underline-offset:3px}.legal-page a:focus-visible{outline:2px solid currentColor;outline-offset:4px}.legal-links{display:inline-flex;gap:12px;font-size:12px}.legal-links a{min-height:44px;display:inline-flex;align-items:center}

/* Catalog navigation keeps all categories within the notebook column. */
.filters select{width:100%;min-height:40px;padding:7px 10px;border:1px solid var(--rule);border-radius:5px;background:var(--paper);font:inherit;color:var(--ink)}
.library-entry,.journal-row{content-visibility:auto;contain-intrinsic-size:auto 110px}
.journal-row{contain-intrinsic-size:auto 68px}

/* Persistent identity and a direct account entry point, outside the notebook menus. */
.account-presence{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;margin:-8px 0 16px;padding:0 4px;min-height:48px}
.account-summary{display:flex;align-items:center;gap:10px;min-width:0}.account-summary>.icon{color:var(--green);width:23px;height:23px}
.account-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.account-copy strong{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-copy>span{font-size:12px;color:#59634e}
.account-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.account-actions .secondary{padding:9px 14px;min-height:40px;font-size:13px}.account-actions .icon{width:18px;height:18px}.auth-switch{margin-top:8px}
@media(max-width:600px){.account-presence{flex-wrap:wrap;gap:8px;margin:0 0 12px;padding:0 2px}.account-summary{flex:1 1 100%;min-height:35px}.account-actions{margin-left:auto}.account-copy{flex-direction:row;align-items:baseline;gap:8px;flex-wrap:wrap}.account-copy strong{max-width:220px}.account-copy>span{font-size:11px}.account-actions .quiet-btn{min-height:40px}}
.art.fitted{display:flex;align-items:center;justify-content:center;background-image:none}.sprite-crop{display:block;flex:none;background-repeat:no-repeat}

.analytics-choice{position:fixed;z-index:35;bottom:16px;left:50%;transform:translateX(-50%);width:min(720px,calc(100% - 24px));box-sizing:border-box;display:flex;gap:20px;align-items:center;justify-content:space-between;background:#fffdf6;border:1px solid #a5ad99;border-radius:8px;padding:14px 18px;color:#35482f;box-shadow:0 8px 28px #3b49321a}.analytics-choice p{margin:0;font-weight:600}.analytics-choice small{display:block;font-size:12px;font-weight:400;max-width:45ch;margin-top:4px}.analytics-choice>div{display:flex;gap:8px;flex-shrink:0}.analytics-choice button{font-size:12px;white-space:normal}.analytics-setting{border-top:1px solid var(--rule);margin-top:22px;padding-top:4px}.analytics-setting p{font-size:13px}@media(max-width:650px){.analytics-choice{align-items:flex-start;flex-direction:column;gap:10px;bottom:8px}.analytics-choice>div{width:100%}.analytics-choice button{flex:1}}

/* A quiet removal cue follows the pointer beyond the mixing page. */
.drag-remove-cue{position:fixed;z-index:100;width:40px;height:40px;display:grid;place-items:center;pointer-events:none;border:1px solid #c79480;border-radius:50%;background:var(--paper);color:#9e4839;box-shadow:0 5px 14px #3d49321a}.drag-remove-cue .icon{width:24px;height:24px}.canvas-item.removing{opacity:.4}

/* Paper silhouettes sit just above the notebook, including when unselected. */
.canvas-item,.canvas-item.selected,.canvas-item.target,.canvas-item.dragging,.canvas-item:hover{background:transparent;border-color:transparent;box-shadow:none;outline:none}
.canvas-item:focus-visible{outline:2px dashed var(--green);outline-offset:3px}
.paper-art{position:relative;overflow:visible}
.paper-stack{position:absolute;width:142.857%;height:142.857%;left:-21.4285%;top:-21.4285%;pointer-events:none;filter:drop-shadow(1px 2px 1.3px #51473438)}
.paper-stack img,.paper-edge{position:absolute;inset:0;width:100%;height:100%}
.paper-edge{mask-size:100% 100%;-webkit-mask-size:100% 100%;background-color:#fffdf4;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M1 2h1m3 3h1M2 7h1' stroke='%23958b6e' stroke-opacity='.055'/%3E%3C/svg%3E")}
.canvas-item.selected .paper-edge{background-color:#e4ecd5}
.canvas-item.target .paper-edge{background-color:#c7d9b2}
.canvas-item.no-result .paper-edge{background-color:#ede1d1}
.canvas-item.dragging .paper-stack{filter:drop-shadow(2px 4px 2px #51473440)}
.canvas-item .item-name{position:relative;z-index:1}
.phone-focus{display:none}
@media(max-width:700px),(max-height:500px) and (pointer:coarse){
 .canvas-item{width:75.4px;height:80.6px;margin:-40.3px 0 0 -37.7px;padding:3px;gap:1px}
 .canvas-item .art{width:59.28px;height:59.28px}
 .canvas-item .item-name{font-size:12px;max-width:92px}
 .workspace-actions .phone-focus{display:inline-flex;min-width:44px;min-height:44px}
 .app-frame{min-height:0}.canvas{min-height:100px}
 body.focus-mode .app-frame{padding:0 max(5px,env(safe-area-inset-right)) 0 max(5px,env(safe-area-inset-left))}
 body.focus-mode .top{height:44px;padding-top:env(safe-area-inset-top)}
 body.focus-mode .brand{font-size:17px}
 body.focus-mode .top-actions [data-action=goals],body.focus-mode .top-actions [data-action=hint],body.focus-mode .top-actions [data-action=settings],body.focus-mode .account-presence,body.focus-mode .page-heading #pinned,body.focus-mode .foot .legal-links,body.focus-mode .foot [data-action=about],body.focus-mode .foot #offline-status{display:none}
 body.focus-mode .page-heading{position:absolute;top:0;right:0;z-index:4;min-height:0;padding:0}
 body.focus-mode .notebook{border-radius:4px}
 body.focus-mode .workspace-actions{min-height:48px;margin:0 5px;padding-bottom:env(safe-area-inset-bottom)}
 body.focus-mode .foot{height:44px;justify-content:flex-end}
 body.focus-mode .right-page{top:48px}
 body.focus-mode .selection-bar{bottom:54px}
 body.focus-mode .left-page:has(.starter-strip) .selection-bar{bottom:136px}
 body.focus-mode .top-actions [data-action=menu]{width:44px;min-height:44px}
}

@media(max-width:700px),(max-height:500px) and (pointer:coarse){body.focus-mode .music-toggle{min-width:122px;flex-shrink:0}body.focus-mode .canvas-item .item-name{max-width:90px}}

.release-update-bar{display:flex;align-items:center;justify-content:center;flex:none;min-height:44px;width:100%;background:#f7e3ae;border-block:1px solid #e3c781;padding:0 12px;position:relative;z-index:5}
.release-update{min-height:44px;max-width:100%;padding:8px 18px;background:transparent;color:#654719;border:0;border-radius:3px;font-size:13px;font-weight:600;line-height:1.4;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.release-update:hover{background:#edcf8b;color:#49300e}.release-update:focus-visible{outline:2px solid #79551d;outline-offset:-4px}
.release-update-bar[hidden],.release-update[hidden]{display:none}

/* Item notes: a quiet reading inset within the existing notebook sheet. */
.entry-scripture{margin:24px 0 28px;padding:22px 0;border-block:1px solid var(--rule)}
.entry-scripture figcaption{display:flex;align-items:baseline;justify-content:space-between;gap:16px;color:var(--green-dark);font-size:14px;font-weight:600;line-height:1.5}
.entry-scripture blockquote{margin:12px 0 0;font:17px/1.7 Georgia,'Times New Roman',serif;color:#48513f;overflow-wrap:break-word}
@media(max-width:700px){.entry-scripture{margin:20px 0 24px;padding:18px 0}.entry-scripture blockquote{font-size:16px;line-height:1.7}}

/* The phone collection is part of the workspace, never a blocking drawer. */
@media(max-width:700px),(max-height:500px) and (pointer:coarse){
 .notebook{display:grid;grid-template-columns:minmax(0,1fr) clamp(108px,32vw,140px)}
 .left-page{border-right:1px solid var(--rule);min-height:0}
 .right-page,.right-page.open{display:flex;position:relative;inset:auto;z-index:auto;border:0;border-radius:0 11px 5px 0;box-shadow:none;min-width:0}
 .drawer-close,.workspace-actions .mobile-collection{display:none}
 .book-tabs{padding:0 7px;gap:9px;justify-content:center}
 .book-tabs button{font-size:10px;min-height:44px;padding:10px 0}
 .right-top{padding:8px 7px 4px}
 .right-title{justify-content:center}.right-title h2{display:none}.right-title .count{font-size:10px}.right-title .count strong{font-size:13px}
 .right-top .search{margin-top:8px}.right-top input[type=search]{min-width:0;width:100%;font-size:12px;padding-left:25px;padding-right:5px;min-height:36px}
 .right-top .search>.icon{left:7px;width:13px}
 .filters{margin-top:7px}.filters select{min-width:0;width:100%;font-size:11px;padding:7px 3px}
 .sortbar{gap:2px;flex-wrap:wrap;margin-top:5px}.sortbar select{font-size:11px;max-width:100%;min-height:32px}.sortbar .quiet-btn{font-size:10px;min-height:32px;padding:4px 2px;gap:3px}.sortbar .icon{width:13px}
 .collection-list{padding:5px 7px 14px;touch-action:pan-y}
 .item-grid{grid-template-columns:minmax(0,1fr);gap:8px}
 .library-item{min-height:104px;touch-action:pan-y}.library-item .art{width:70px;height:70px}.library-item .item-name{font-size:13px}
 .journal-row{gap:5px;flex-wrap:wrap}.journal-row .art{width:40px;height:40px}.journal-row strong{font-size:12px}.journal-row .icon{display:none}.right-subnav{flex-wrap:wrap;gap:5px}
 .workspace-actions{margin:0 5px;gap:0;min-height:56px}.workspace-actions .quiet-btn{width:32px;padding:6px}.workspace-actions .spacer{min-width:0}
 .page-heading{padding:12px 12px 0;min-height:40px}
 .selection-bar{left:6px;bottom:63px;max-width:calc(100% - 12px);gap:2px;padding:5px}
 .selection-bar .item-action{min-width:0;padding:6px;flex:1}.selection-bar .item-action .icon{width:26px;height:26px}
 .drag-ghost{width:76px;height:76px}.drag-ghost .art{width:59.28px;height:59.28px}
}

.collection-options{display:none}
@media(max-width:700px),(max-height:500px) and (pointer:coarse){
 body.focus-mode .right-page{top:auto}
 .right-title{gap:4px;justify-content:space-between}
 .collection-options{display:inline-flex;min-height:32px;width:32px;padding:6px;flex:none}.collection-options .icon{width:17px;height:17px}
 .right-page:not(.tools-open) .filters,.right-page:not(.tools-open) .sortbar,.right-page:not(.tools-open) .progress-small{display:none}
 .right-top{flex-shrink:0}.right-page.tools-open .right-top{max-height:55%;overflow-y:auto;flex-shrink:1}
}

@media(max-height:500px) and (pointer:coarse){.top{height:44px;flex-shrink:0}.brand{font-size:22px}.right-top{padding-top:4px}}

/* A small, faithful notebook lesson: pickup, overlap, discovery. */
dialog.guided-demo{width:720px;background:#faf8ed;max-height:calc(100dvh - 24px)}
dialog.guided-demo[open]{display:flex;flex-direction:column}
.demo-heading{padding:16px 22px 12px;gap:6px;flex-shrink:0}.demo-heading h2{flex:1;line-height:1.35}
.demo-stage{--demo-size:88px;height:350px;min-height:170px;flex-shrink:1;margin:0 22px}
.demo-source{opacity:1;border-radius:9px;padding:8px;transition:background-color 160ms ease}.demo-source.is-picking{background:#e6ecd7}
.demo-earth{top:32%}.demo-water{top:72%}.demo-source .art,.demo-item .art{width:var(--demo-size);height:var(--demo-size)}
.demo-item{width:var(--demo-size);height:var(--demo-size);margin:calc(var(--demo-size) / -2)}
.demo-item.is-held .paper-edge{background-color:#e4ecd5}.demo-item.is-held .paper-stack{filter:drop-shadow(2px 4px 2px #51473440)}
.demo-drop-ring{width:116px;height:116px;margin:-58px;opacity:.5;transition:opacity 180ms ease,background-color 180ms ease}
.demo-drop-ring.receiving{opacity:1;background:#e4ecd526}.demo-drop-ring.joined{background:#e4ecd570}
.demo-pointer{margin:0;width:25px;height:31px;overflow:visible;transition:opacity 160ms ease}
.demo-pointer>svg{position:absolute;left:12px;top:16px}.demo-contact{position:absolute;width:24px;height:24px;left:-12px;top:-12px;border:1px solid #657e4e;border-radius:50%;background:#e2ebd180;opacity:0;transform:scale(1.25);transition:opacity 160ms ease,transform 160ms cubic-bezier(.23,1,.32,1)}
.demo-pointer.is-pressed .demo-contact{opacity:1;transform:scale(1)}
.demo-result-name{margin-top:8px;font-size:20px}
.demo-steps{display:flex;justify-content:center;gap:28px;list-style:none;margin:0;padding:17px 12px 12px;flex-shrink:0;color:#727960;font-size:12px}
.demo-steps li{padding-bottom:5px;border-bottom:2px solid transparent}.demo-steps li[aria-current]{color:#3c583b;border-bottom-color:#8c9d6f}
.demo-footer{border-top:1px solid #e4e4d3;margin:0 22px;padding:12px 0 16px;flex-shrink:0;gap:10px}.demo-footer .primary{min-height:44px;padding:10px 17px;gap:10px;font-size:13px;display:inline-flex;align-items:center}
.demo-footer .primary svg{width:18px;height:18px}.demo-preference-error{flex-basis:100%}
.demo-reduced .demo-stage{background:#fffdf5}.demo-reduced .demo-fold,.demo-reduced .demo-source,.demo-reduced .demo-page-label,.demo-reduced .demo-collection-label{display:none}
.demo-static-arrows{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:13px;white-space:normal;font:14px var(--hand)}
.demo-static-arrows>span{display:flex;flex-direction:column;align-items:center;gap:12px}.demo-static-arrows .art{width:84px;height:84px}.demo-static-arrows>.icon{width:22px;height:22px}.demo-static-arrows small{font-size:15px}
@media(max-width:700px){.demo-heading{padding:12px 14px 10px}.demo-heading h2{font-size:21px}.demo-stage{--demo-size:66px;height:300px;margin:0 14px}.demo-page-label,.demo-collection-label{font-size:11px}.demo-page-label{left:12px}.demo-collection-label{left:71%}.demo-drop-ring{width:88px;height:88px;margin:-44px}.demo-footer{margin:0 14px;padding:10px 0 12px}.demo-footer label{font-size:11px;gap:6px}.demo-footer .primary{padding:10px 12px;font-size:12px}.demo-steps{gap:24px;padding:14px 10px 10px}.demo-static-arrows{gap:6px}.demo-static-arrows .art{width:58px;height:58px}.demo-static-arrows>.icon{width:16px;height:16px}}
@media(pointer:coarse){.demo-pointer>svg{display:none}.demo-contact{width:28px;height:28px;left:-14px;top:-14px}}
@media(max-height:540px){.demo-stage{height:180px;min-height:145px;--demo-size:64px}.demo-heading{padding-top:5px;padding-bottom:4px}.demo-steps{padding:8px 10px 4px}.demo-footer{padding:5px 0}.demo-result-name{margin-top:0;font-size:17px}}
@media(prefers-reduced-motion:reduce){.demo-source,.demo-pointer,.demo-contact,.demo-drop-ring{transition:none}}

.guided-demo .demo-pause[hidden]{display:none}

/* Phone collection shelf: horizontal browsing, upward dragging to the page. */
@media(max-width:700px),(max-height:500px) and (pointer:coarse){
 .notebook{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 184px}
 .left-page{height:auto;border-right:0;min-height:0}.left-page:after{display:none}
 .right-page,.right-page.open{display:grid;grid-template-columns:118px minmax(0,1fr);grid-template-rows:52px minmax(0,1fr);border-top:1px solid var(--rule);border-radius:0 0 5px 5px}
 .book-tabs{padding:0 8px;gap:12px;align-items:center;border-bottom:0}.book-tabs button{font-size:11px}
 .right-top{padding:5px 8px 5px 0;display:flex;align-items:center;gap:5px;min-width:0}
 .right-title{order:2;flex:none}.right-title .count{display:none}
 .right-top .search{margin:0;flex:1;min-width:0}.right-top input[type=search]{font-size:16px;min-height:40px;padding-right:5px}
 .collection-options{min-height:44px;width:36px}
 .collection-list{grid-column:1/-1;min-height:0;min-width:0;padding:0 10px 10px;overflow-x:auto;overflow-y:hidden;touch-action:pan-x}
 .item-grid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:90px;gap:8px;justify-content:start}
 .library-item{min-height:112px;touch-action:pan-x}.library-item .art{width:70px;height:70px}
 .right-page.tools-open .right-top{position:absolute;z-index:15;right:0;bottom:100%;width:min(320px,100%);max-height:min(330px,65dvh);padding:12px;display:flex;flex-wrap:wrap;background:var(--paper-shade);border:1px solid var(--rule);border-radius:9px 9px 0 0;box-shadow:0 -5px 20px #3d493212;overflow-y:auto}
 .right-page.tools-open .right-title .count{display:block}.right-page.tools-open .filters,.right-page.tools-open .sortbar{width:100%}
 .right-top:has(.right-subnav){flex-wrap:wrap}.right-subnav{flex-basis:100%;margin:0}
 .right-page:has(.right-subnav){grid-template-rows:88px minmax(0,1fr)}
 .collection-list:not(:has(.item-grid)){overflow-y:auto;touch-action:pan-y}
 .journal-row{flex-wrap:nowrap}.journal-row .icon{display:block}
 body.focus-mode .workspace-actions{padding-bottom:0}
 .canvas{min-height:0}
}
@media(max-height:500px) and (pointer:coarse){
 .notebook{grid-template-rows:minmax(0,1fr) 162px}
 .right-page,.right-page.open{grid-template-rows:44px minmax(0,1fr)}
 .page-heading{min-height:0;padding:0 10px;position:absolute;top:4px;right:0;z-index:4}
 .workspace-actions{min-height:44px}.collection-list{padding-bottom:2px}
}

@media(max-height:500px) and (min-width:600px) and (pointer:coarse){
 .app-frame{position:relative}.top .brand{visibility:hidden}
 .account-presence{position:absolute;top:0;left:12px;right:175px;height:44px;min-height:44px;margin:0;padding:0;gap:8px;z-index:2}
 .account-copy>span{display:none}.account-actions{gap:2px}.account-actions .secondary{padding:8px;min-height:36px;font-size:12px}
 .selection-bar{bottom:48px}.selection-bar .item-action{padding:4px}.selection-bar .item-action .icon{width:22px;height:22px}
 body.focus-mode .top .brand{visibility:visible}
}
