.book{max-width:1200px}.book header a{color:#395d53;text-underline-offset:4px}.book h1,.book h2{font-family:"Menu Dot","Yu Mincho",serif}.book h1{font-size:clamp(2rem,4.7vw,3.35rem);margin:25px 0 16px;letter-spacing:.04em}.book h2,.book p{margin:0}.book button{min-height:40px}.specimens{display:flex;gap:8px;margin-bottom:16px}.specimens button{display:flex;gap:9px;align-items:center;border:1px solid #a8b5a5;background:#fffdf4;border-radius:6px;padding:4px 17px 4px 8px;color:#304b42}.specimens button[aria-pressed=true]{background:#dce9df;color:#244f43;border-color:#527668}.specimens canvas{width:42px;height:36px;image-rendering:pixelated}.spread{display:grid;grid-template-columns:minmax(0,2fr) minmax(235px,1fr);gap:16px}.stage,.inspector{border:1px solid #a9b9aa;border-radius:9px;overflow:hidden}.stage{display:flex;flex-direction:column;background:radial-gradient(ellipse at 50% 55%,#f1f5e8,#d6e6da 85%)}.caption{padding:21px 24px 0}.caption h2{font-size:clamp(1.65rem,3vw,2.5rem);letter-spacing:.07em}.caption p,.slice-note,.stage-controls{color:#496457}.caption p,.slice-note{font-size:.95rem;line-height:1.65}.stage canvas{display:block;width:100%;height:clamp(220px,37vh,355px);image-rendering:pixelated;touch-action:pan-y;cursor:grab}.stage canvas:active{cursor:grabbing}.stage-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 20px 13px;margin-top:auto;font-size:.875rem}.stage-controls div{display:flex;gap:5px;align-items:center}.stage-controls output{min-width:4ch;text-align:center;font-variant-numeric:tabular-nums}.stage-controls button{font-size:1.3rem;min-width:40px}.book .stage-controls button,.stepper button,.modes button{border:1px solid #9eafa0;border-radius:5px;background:#fffcf0;color:#274c40}.inspector{background:#fffdf4;padding:20px;display:grid;align-content:start;gap:9px}.inspector h2{font-size:1.35rem}.sheet{background-color:#f3efe1;background-image:linear-gradient(#e2dfd2 1px,transparent 1px),linear-gradient(90deg,#e2dfd2 1px,transparent 1px);background-size:14px 14px;border-radius:4px}.sheet canvas{display:block;width:100%;height:145px;image-rendering:pixelated}.counter{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.inspector input{width:100%;margin:0;min-height:28px}.stepper,.modes{display:flex;gap:6px}.stepper button,.modes button{flex:1;padding:6px}.book button:disabled{opacity:.38;cursor:default}.modes{border-top:1px solid #d5dacb;padding-top:10px}.modes button[aria-pressed=true]{background:#365d4d;color:#fffdf4}.book button:hover:enabled{border-color:#395f50}
@media(max-width:720px){.spread{grid-template-columns:1fr}.book h1{margin:15px 0 12px}.specimens{gap:5px}.specimens button{justify-content:center;flex:1;padding:4px;gap:2px}.specimens canvas{width:32px;height:30px}.caption{padding:14px 16px 0}.stage canvas{height:205px}.stage-controls{padding:0 12px 8px}.sheet canvas{height:110px}.inspector{padding:14px}.spread{gap:10px}}
.book #specimen{touch-action:none}.projection{border-top:1px solid #acbfb0;background:#f2f6eb;padding:12px 20px;display:grid;gap:9px}.projection label{margin:0;font-weight:600}.elevation{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.elevation label{gap:5px}.elevation output{min-width:3ch}.elevation input{flex:1;min-width:48px;width:20%;max-width:300px}.projection button{background:#fffdf4;border:1px solid #94a996;border-radius:5px;padding:4px 9px}.fill-option{width:fit-content;cursor:pointer}.fill-option input{width:18px;height:18px;margin:0}.tech{margin-top:22px;border-top:1px solid #b5c4b3;padding:18px 0;max-width:78ch}.tech h2{font-size:1.3rem}.tech p{margin-top:8px;line-height:1.8}
#cup-cuts:not([hidden]){display:flex;gap:5px;flex-wrap:wrap}#cup-cuts button{flex:1;border:1px solid #bec8b9;background:#f3f4e9;color:#345644;border-radius:5px}
@media(max-width:520px){.book .specimens{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.book .specimens button{justify-content:flex-start;padding-left:12px}}
#cup-assembly{border:1px solid #bac9b8;border-radius:6px;margin:12px 16px 16px;padding:9px 12px;background:#fbfbef}#cup-assembly legend{padding:0 5px;font-weight:650}.part-options,.assembly-controls{display:flex;gap:8px 16px;align-items:center;flex-wrap:wrap}.part-options label{font-weight:550;margin:0;gap:5px;cursor:pointer}.part-options input{width:16px;height:16px}.assembly-controls{margin-top:10px}.assembly-controls button{background:#355d4e;color:#fffdf4;border:0;border-radius:5px;padding:5px 12px}.assembly-controls output{font-size:.9rem}#build-time{width:100%;margin:5px 0 0}
#siphon-controls{margin:12px 16px 16px;padding:8px 12px;border:1px solid #bac9b8;border-radius:6px;background:#fbfbef}#siphon-controls legend{font-weight:650}#brew-time{width:100%;margin:8px 0}#brew-cuts:not([hidden]){display:flex;gap:6px}#brew-cuts button{flex:1;border:1px solid #bec8b9;background:#f3f4e9;border-radius:5px}
.book [hidden]{display:none!important}.shelf-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:0 10px}.shelf-heading a{font-size:.9rem;color:#395d53;text-underline-offset:4px;margin-bottom:10px}
@media(max-width:520px){.book nav.specimens{grid-template-columns:repeat(3,minmax(0,1fr))}.book nav.specimens button{flex-direction:column;justify-content:center;padding:3px;font-size:.86rem}}
@media(max-width:520px){.book nav#food-shelf{grid-template-columns:repeat(2,minmax(0,1fr))}.book nav#food-shelf button{flex-direction:row}}
#shaver-controls{margin:12px 16px 16px;padding:8px 12px;border:1px solid #bac9b8;border-radius:6px;background:#fbfbef}#shave-time{width:100%;margin:8px 0}
.spread.shaver-view .stage canvas{height:clamp(260px,46vh,430px)}
.spread.shaver-view:has(.inspector[hidden]){grid-template-columns:minmax(0,1fr)}
.shaver-view #shaver-controls{order:1}
.shaver-view .stage-controls{order:2}
.shaver-view .projection{order:3}
.shaver-view .modes{display:none}
#shave-cut{background:#fffdf2;color:#315745;border:1px solid #779781}
#shave-cuts button[aria-pressed=true]{background:#dce9df;border-color:#527668}
#pudding-controls{order:1;margin:12px 16px 16px;padding:8px 12px;border:1px solid #bac9b8;border-radius:6px;background:#fbfbef}
#pudding-cuts button[aria-pressed=true]{background:#dce9df;border-color:#527668}
#pudding-shift{font-size:.9rem;color:#395d53}
#berry-parts{margin:12px 16px;padding:10px 14px;border:1px solid #bac9b8;border-radius:6px;background:#fbfbef}
#berry-parts input{width:100%}.berry-time{display:flex;gap:10px;align-items:center;margin-top:8px}

.cafe-book #categories,.cafe-book #assets{display:flex;flex-wrap:wrap;gap:6px}
.cafe-book #categories{margin:.2rem 0 1rem;border-bottom:1px solid #bdcbbb}
.cafe-book #categories button{padding:.4rem .7rem;border:0;border-bottom:3px solid transparent;background:transparent;color:#385445}
.cafe-book #categories [aria-pressed=true]{border-color:#876140;color:#603e27;font-weight:700}
.cafe-book #assets button{padding:.3rem .75rem;flex:none}
.cafe-book .stage{background:radial-gradient(ellipse at 50% 58%,#fff9e8,#e6e1cb)}
.cafe-book .inspector input[type=checkbox]{width:auto;min-height:0}
.cafe-book #experiment{color:#395d53}
@media(pointer:coarse){.book button{min-height:44px}}
