/* Keep the workshop tactile. Compact play above; earned machines on a shelf below. */
.experiment-section .learning-invite{border:0;background:transparent;padding:0;margin:7px 0 -3px;justify-content:flex-start;gap:9px;font-size:12px}
.experiment-section .learning-invite .text-button{min-height:36px;padding:4px 0;font-size:12px}
.shelf-panel{margin-top:26px;padding:19px 21px 0;border:1.5px solid #a28b69;border-radius:13px;background:#f7f1df;box-shadow:0 4px 0 #b8a17d;overflow:hidden}
.shelf-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.shelf-heading h2{font:500 25px/1.3 var(--display);color:#524a35}
.shelf-heading p{font-size:12px;line-height:1.7;color:#665d46;margin-top:3px}
.shelf-heading>.text-button{white-space:nowrap;font-size:12px;color:#315c68}
.shelf-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;list-style:none;padding:12px 0 0;margin:10px 0 0}
.shelf-machine{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 8px 12px;border-bottom:9px solid #c2a178;border-radius:0 0 4px 4px;min-width:0;background:linear-gradient(transparent 80px,#eee1c5 80px)}
.shelf-machine svg{width:95px;height:86px;flex-shrink:0;filter:drop-shadow(0 3px 0 #bca78755)}
.shelf-machine strong{font:500 17px/1.35 var(--display);color:#435648;overflow-wrap:anywhere;margin:5px 0 4px}
.shelf-machine span,.shelf-machine small{font-size:11px;color:#5e6046;line-height:1.7}
.shelf-caption{display:flex;justify-content:space-between;gap:8px;padding:11px 0 12px;color:#6b5c43;font-size:11px;line-height:1.65}
.shelf-caption strong{white-space:nowrap;color:#4d624e}
.shelf-empty{display:flex;gap:14px;align-items:flex-end;justify-content:center;padding:14px 0 12px;margin-top:12px;border-bottom:9px solid #c2a178}
.shelf-empty>span{display:grid;place-items:center;width:44px;height:45px;border:2px dashed #a69c7c;border-radius:12px 12px 7px 7px;color:#736d50;background:#ede8d3;font:500 27px/1 var(--display)}
.shelf-empty>span:nth-child(2){height:54px;width:51px}
.shelf-empty p{font-size:12px;line-height:1.7;color:#6d6248;align-self:center;margin-left:8px}
.shelf-dialog{max-width:780px}
.shelf-dialog h2{padding-right:28px}
.shelf-dialog .shelf-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:18px}
.playtest-panel{margin-top:25px;border:1.5px solid #92a791;border-radius:12px;background:#f4f8e9;overflow:hidden}
.playtest-panel>summary{cursor:pointer;min-height:48px;padding:12px 18px;font:800 14px/1.6 var(--sans);color:#3c5e4b}
.playtest-panel form{padding:0 18px 16px}
.feedback-fields{display:grid;grid-template-columns:200px minmax(0,1fr);gap:16px;align-items:start}
.feedback-fields label{display:block;font-size:13px;font-weight:800;color:#425e4e;margin:5px 0 7px}
.feedback-fields label span{font-size:11px;font-weight:600;color:#5e705b;margin-left:5px}
.feedback-fields select{width:100%;min-height:45px;padding:9px;border:1.5px solid #8aa28b;border-radius:8px;background:#fffef8;color:#385849;font-size:15px}
.feedback-fields textarea{width:100%;padding:10px;min-height:92px;border:1.5px solid #9cad92;border-radius:8px;background:#fffef8;color:#385849;font:400 17px/1.6 var(--sans);resize:vertical}
.feedback-fields textarea::placeholder{color:#61725d}
.feedback-actions{display:flex;align-items:center;gap:14px;margin:12px 0 8px;flex-wrap:wrap}
.feedback-actions .button{min-height:42px;font-size:13px}
#feedback-status{font-size:12px;line-height:1.7;color:#3f644e}
.feedback-privacy{font-size:11px;line-height:1.7;color:#596d55;margin-top:7px}
.keepsake-note{font-size:12px!important;color:#3d6047!important;margin-top:9px!important}
#feedback-report{width:100%;margin-top:15px;padding:12px;color:#365448;background:#fffef8;border:1px solid #8fa48f;border-radius:8px;font:13px/1.7 var(--mono)}
#logbook-feedback-export{margin-top:15px;font-size:13px}
@media(max-width:800px){
 body:not(.online-page) .intro{padding:10px 0 8px}
 body:not(.online-page) .intro h1{font-size:25px}
 body:not(.online-page) .intro-description{display:none}
 .daily-summary{display:none}
 .puzzle-shortcuts{margin-bottom:10px;min-height:44px;padding:3px}
 .puzzle-shortcuts a{min-height:40px}
 .level-picker{padding:8px 10px;margin-bottom:12px;gap:7px}
 .level-picker-heading,.level-facts{display:none}
 .level-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
 .level-option{min-height:43px;padding:6px 3px;font-size:11px}
 .level-option small{display:none}
 .shelf-panel{padding:16px 16px 0}
 .shelf-heading h2{font-size:23px}
 .shelf-grid{gap:9px}
 .feedback-fields{grid-template-columns:1fr;gap:8px}
}
@media(max-width:520px){
 .site-header{padding-block:8px;gap:7px}
 .brand-lockup small{display:none}
 .brand-lockup>span{font-size:33px}
 .brand-icon{width:33px;height:33px}
 .mode-tabs{padding:0;gap:5px}
 .mode-tab{min-height:38px;padding:7px 8px}
 .bench-heading{padding:9px 12px}
 .bench-heading h2{font-size:21px}
 .machine-scene{height:123px;padding-top:10px;padding-bottom:23px}
 .contraption{--bot-scale:.62;margin-inline:-20px}
 .scene-cloud{width:43px;height:43px;top:10px;left:12px}
 .scene-cloud:before{height:35px;left:16px}
 .scene-cloud:after{width:35px;top:16px}
 .scene-cloud-right{left:auto;right:12px}
 .flow-port{min-height:53px}
 .scene-floor{bottom:21px;height:12px}
 .scene-footnote{bottom:3px;font-size:9px}
 .notebook{padding:11px 12px 0}
 .section-heading h3{font-size:19px}
 .examples{margin-top:7px;gap:6px}
 .example{min-height:44px;padding:7px}
 .experiment-section{padding:12px 12px 14px}
 .experiment-form{margin-top:8px}
 .experiment-bottom{margin-top:7px}
 .shelf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .shelf-dialog{padding:24px 18px}
 .shelf-dialog .shelf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .shelf-caption{flex-direction:column;gap:2px}
 .shelf-empty{gap:10px;flex-wrap:wrap}
 .shelf-empty p{width:100%;text-align:center;margin:3px 0 0}
 .playtest-panel>summary{padding:12px 14px}
 .playtest-panel form{padding:0 14px 15px}
}
@media(max-width:360px){.brand-lockup>span{font-size:30px}.intro h1{font-size:23px}.machine-scene{height:116px}.contraption{--bot-scale:.58;margin-inline:-22px}.flow-port{width:53px}.shelf-heading{gap:7px}.shelf-heading h2{font-size:21px}.level-option{font-size:10px}}
/* Phones: the five levels sit in two even rows (3 + 2). */
@media(max-width:520px){.level-options{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}.level-options .level-option{grid-column:span 2}.level-options .level-option:nth-child(n+4){grid-column:span 3}}
/* Smallest phones: logo and the three round buttons share one row. */
@media(max-width:360px){.brand-lockup>span{font-size:26px;letter-spacing:-1px}.brand-icon{width:30px;height:30px}.brand-lockup small{display:none}.icon-button{min-width:40px;min-height:40px;width:40px;height:40px}.header-actions{gap:4px}}
@media(max-width:800px){.mode-tab{min-height:40px}.notes-actions .text-button{min-height:40px}}
/* Backup panel in the logbook. */
.backup-panel{margin-top:18px;padding:14px 16px;border:2px solid #9db8a6;border-radius:14px;background:#f2f8f1}
.backup-panel h3{margin:0;font:600 17px/1.3 var(--display);color:#263e45}
.backup-panel .dialog-note{margin-top:4px}
.backup-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.backup-actions .button{flex:1 1 140px;min-height:44px}
