/* Lesson 3 uses the unmodified workshop design from lesson 1. */
#shop-reference:has(.shop-guide) .modal-heading{position:sticky;top:-24px;background:#fff;padding:12px 0;margin-top:-12px;z-index:1}
body{grid-template-rows:78px 24px minmax(0,1fr) auto}.workspace{grid-row:3}.topbar{grid-template-columns:minmax(155px,1fr) minmax(320px,740px) minmax(260px,1fr)}
#editor-mode{gap:12px;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;max-width:calc(100% - 34px);scrollbar-width:thin}#editor-mode button{white-space:nowrap;flex-shrink:0;font-size:11px}.editor-toolbar{min-width:0}.editor-shell,.code-panel{min-width:0}#code-editor[readonly]{color:#647366;background:#f6f8f1}.preview-options{gap:10px}.preview-tools .toolbar-button{width:25px}.task-details .task-heading{min-height:0}
.embedded-workshop{height:100dvh;display:grid;grid-template-rows:minmax(0,1fr) auto}.embedded-workshop>.topbar,.embedded-workshop>.next-action{display:none}.embedded-workshop>.workspace{grid-row:1;margin-top:8px}.embedded-workshop>#shop-console{grid-row:2}
#shop-console{grid-row:4;background:#f4f7ed;border-top:1px solid #c8d7be;max-height:115px;overflow:auto;color:#4f6945}#shop-console>header{display:flex;justify-content:space-between;align-items:center;padding:5px 15px;font-size:11px;border-bottom:1px solid #d8e2ce}#shop-console>header button{border:0;background:none;color:#6d8260;font-size:16px}#shop-build-log{padding:8px 15px;margin:0;white-space:pre-wrap;font:11px/1.6 var(--mono);color:#526e45}#shop-diagnostics{white-space:pre-line;padding:5px 15px;color:#9c6533;font-size:11px}.shop-checks{list-style:none;padding:0}.shop-checks li{padding:8px 0;border-bottom:1px solid #dce3d3}.shop-checks button{border:0;background:none;text-align:left;color:#46633e;font-size:13px}.shop-checks .done button{color:#7b9369}.shop-price-notice{padding:12px;background:#e9f0df;border-radius:6px;font-size:12px;line-height:1.7;color:#557644}#task-checklist{position:static;display:block;max-height:none;box-shadow:none;border:0;padding:0;width:auto}.shop-help,.shop-document{font-size:14px;line-height:1.85;color:#4f6747}.shop-help code,.shop-document code{background:#edf2e4;padding:3px 6px;border-radius:4px}.shop-help label{display:grid;gap:8px}.shop-help select{padding:8px;border:1px solid #c9d6bd;border-radius:5px}.shop-docs,.shop-theory-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:15px}.shop-docs button,.shop-theory-nav button{padding:9px 12px;background:#f4f7ee;border:1px solid #c6d5b9;border-radius:5px;color:#5a7748}.shop-theory-nav button.active{background:#dfeacd}.shop-theory-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px}.shop-document img{float:right;width:180px;margin:0 0 12px 16px;border-radius:9px}.shop-document code{display:block;overflow-wrap:anywhere}.shop-photo-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #dce4d1}.shop-photo-row img{width:75px;border-radius:7px}.shop-photo-row code{display:block;font-size:11px;overflow-wrap:anywhere;user-select:all}.shop-photo-row button{margin-left:auto}.shop-top-note{font-size:12px;color:#899b79}#shop-reference{width:650px;max-width:94vw;max-height:90vh;overflow:auto}.shop-help pre{white-space:pre-wrap}
@media(max-width:1200px){.topbar{grid-template-columns:155px minmax(330px,1fr) 260px;gap:10px}.topbar>.mission-actions{gap:4px}.topbar>.mission-actions .button{padding:8px;font-size:11px}}
@media(max-height:650px){#shop-console{max-height:90px}.embedded-workshop>.workspace{margin-top:5px;margin-bottom:6px}}
#hint-box{padding-right:32px}.shop-hint-close{position:absolute;right:6px;top:4px;border:0;background:transparent;color:#6e805b;font-size:20px;line-height:24px;cursor:pointer}.shop-hint-close:hover{background:#e5edda}
.shop-guide{font-size:13px;line-height:1.65;color:#3f5945}.shop-guide nav{display:flex;gap:5px;flex-wrap:wrap}.shop-guide nav button{border:1px solid #c8d5c2;border-radius:4px;background:#f6f8f1;color:#46663f;padding:5px 10px;cursor:pointer}.shop-guide nav [aria-current=step]{background:#195a49;color:#fff;border-color:#195a49}.shop-guide-time{font-size:11px;color:#6d7c68}.shop-guide ol{padding-left:23px}.shop-guide li{padding:3px 0}.shop-guide details{border-top:1px solid #dce4d4;padding:9px 0}.shop-guide summary{cursor:pointer;font-weight:600}.shop-guide pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f1f5eb;padding:12px;border-radius:5px;font:12px/1.6 var(--mono);user-select:text}.shop-guide code{overflow-wrap:anywhere}.shop-guide-feedback{background:#f2f6ed;padding:6px 12px;border-radius:5px;margin:8px 0}.shop-guide-feedback p{margin:4px 0}.shop-guide footer{display:flex;flex-wrap:wrap;gap:6px;padding-top:8px}.shop-guide footer .button{font-size:12px;padding:8px 10px}.shop-guide-link{display:block;border:0;background:transparent;color:#195a49;text-decoration:underline;padding:5px 0 0;cursor:pointer}

.shop-card-target{white-space:nowrap;border:1px solid #bdcbb5;border-radius:4px;background:#eff4e8;color:#385d42;padding:4px 7px;font-size:10px;cursor:pointer}.preview-options{flex-wrap:wrap}.preview-tools{flex-shrink:0}
/* Keep the card shortcut visible in the existing single-line preview toolbar. */
.preview-options{flex-wrap:nowrap;gap:7px;padding:0 8px}.preview-options .toggle-label{font-size:11px;gap:4px}.preview-tools{gap:2px}.preview-tools .toolbar-button{width:22px}.shop-card-target{padding:4px 6px}

/* Receiving a delivery turns source documents into real JSON records. */
#shop-receiving-open{font-size:10px;white-space:nowrap;padding:5px 7px;color:#25553d;border:1px solid #b6c9b2;background:#eef4e8;border-radius:4px}.code-file-header{gap:8px;flex-wrap:wrap;height:auto;min-height:34px}#shop-reference:has(.receiving-game){width:900px;max-width:96vw;max-height:94vh;padding:18px 22px}#shop-reference:has(.receiving-game) .modal-heading{position:sticky;top:-18px;z-index:3;background:#fff;padding:10px 0;margin-top:-10px}.receiving-game{color:#334c3c;font-size:12px;line-height:1.6}.receiving-summary{display:flex;align-items:center;justify-content:space-between;gap:15px}.receiving-summary b{font-size:16px}.receiving-summary p{font-size:11px;margin:5px 0;color:#819078}.receiving-score{font:600 30px/1.2 var(--mono);color:#27734e}.receiving-score small{font-size:15px;color:#a0ae97;margin-left:5px}.receiving-track{height:5px;background:#e7eddf;border-radius:3px;overflow:hidden;margin:9px 0 15px}.receiving-track>span{display:block;height:100%;background:#45835e;transition:width .3s}.receiving-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:18px}.receiving-tabs button{display:flex;align-items:center;gap:9px;padding:7px 10px;background:#fafbf7;border:1px solid #d8e1cf;border-radius:5px;text-align:left;color:#3d5e42}.receiving-tabs [aria-current=step]{background:#eef5e7;border-color:#79a078}.receiving-tabs img{width:32px;height:43px;object-fit:contain}.receiving-tabs small{display:block;font-size:10px;margin-top:2px;color:#8b9a7f}.receiving-layout{display:grid;grid-template-columns:.85fr 1.15fr;gap:24px;align-items:start}.receiving-source{background:#f8f5ee;border:1px solid #e2d9c7;padding:15px;position:sticky;top:50px}.receiving-source>span{font-size:9px;letter-spacing:.7px;color:#9b8d74}.receiving-source h3{font-size:16px;line-height:1.4;margin:10px 0}.receiving-source>p{font-size:12px;line-height:1.85;color:#776d5e;margin:0 0 15px}.receiving-source>small{font-size:10px;color:#9b8d74}.receiving-source>code{display:block;overflow-wrap:anywhere;user-select:all;font-size:10px;color:#7c6546;margin-top:6px}.receiving-source details{border-top:1px solid #e2d9c7;padding-top:10px;margin-top:16px;font-size:11px}.receiving-source summary{cursor:pointer}.receiving-source pre{font:10px/1.6 var(--mono);white-space:pre-wrap;color:#746347;margin:12px 0}.receiving-source details p{font-size:11px;color:#8a7e68}.receiving-form{display:grid;grid-template-columns:1fr 1fr;gap:10px 13px}.receiving-form-title{display:flex;justify-content:space-between;align-items:center;gap:10px;grid-column:1/-1;margin-bottom:2px}.receiving-form-title b{font-size:14px}.receiving-form-title>span{font-size:9px;color:#8e9a84}.receiving-form label{display:grid;gap:4px;font-size:11px}.receiving-form label>span{display:flex;align-items:baseline;justify-content:space-between;gap:7px}.receiving-form label code{font:9px var(--mono);color:#98a18c}.receiving-wide{grid-column:1/-1}.receiving-form input:not([type=checkbox]),.receiving-form textarea{width:100%;min-width:0;border:1px solid #c8d4be;border-radius:4px;padding:7px 8px;font:12px/1.5 var(--mono);color:#324e38;background:#fff}.receiving-form textarea{resize:vertical;min-height:48px}.receiving-form input:focus,.receiving-form textarea:focus{outline:2px solid #7fa978;outline-offset:1px}.receiving-form [aria-invalid=true]{border-color:#bc775c;background:#fff8f2}.receiving-feedback{padding:9px 11px;background:#edf5e5;color:#507646;border-radius:4px;font-size:11px;line-height:1.65}.receiving-feedback.has-errors{background:#fff2e8;color:#9c613d}.receiving-feedback p{margin:2px 0}.receiving-actions{position:sticky;bottom:-18px;background:#fff;padding:10px 0 4px;display:flex;align-items:center;gap:7px;z-index:2}.receiving-actions .button{font-size:11px;padding:9px 10px}.receiving-gate{font-size:13px;line-height:1.85;color:#52684b}.receiving-gate .button{margin-top:10px}.receiving-game .button.primary{background:#286248;border-color:#286248}
@media(max-width:650px){.receiving-layout{grid-template-columns:1fr}.receiving-source{position:static}.receiving-tabs button{padding:6px}.receiving-tabs img{width:25px;height:35px}.receiving-form-title{flex-wrap:wrap}}
@media(max-height:650px){#shop-reference:has(.receiving-game){padding:12px 18px}#shop-reference:has(.receiving-game) .modal-heading{top:-12px;margin-bottom:8px;padding:8px 0}.receiving-summary b{font-size:14px}.receiving-summary p{margin:2px 0;font-size:10px}.receiving-score{font-size:25px}.receiving-track{margin:6px 0 9px}.receiving-tabs{margin-bottom:11px;gap:7px}.receiving-tabs button{padding:4px 8px}.receiving-tabs img{height:30px;width:25px}.receiving-source{padding:12px;top:42px}.receiving-source h3{font-size:14px;margin:7px 0}.receiving-source>p{font-size:11px;line-height:1.75}.receiving-form{gap:8px 11px}.receiving-form input:not([type=checkbox]),.receiving-form textarea{padding:5px 7px}.receiving-actions{bottom:-12px;padding:8px 0 2px}}
#shop-model-help-open{background:#195a49;color:#fff;border:1px solid #195a49;border-radius:6px;padding:7px 11px;font-size:11px;font-weight:600;cursor:pointer;box-shadow:0 2px 5px #195a491a}#shop-model-help-open:hover{background:#24775d}#shop-model-help-open:focus-visible{outline:3px solid #98be83;outline-offset:2px}
.receiving-price-control{position:relative;display:block}.receiving-price-control input{padding-right:28px!important}.receiving-price-control>span{position:absolute;right:10px;top:7px;color:#6f8066;font-size:13px;pointer-events:none}
.block-row .node-image-source{grid-column:1/-1;display:grid;gap:5px;width:100%;font-size:11px;color:#52654c;padding:8px 10px;background:#f1f5eb;border:1px solid #d5e0cb;border-radius:5px;box-sizing:border-box}.node-image-source input{width:100%;min-width:0;box-sizing:border-box;padding:7px 8px;font:12px/1.5 var(--mono);color:#284d3b;background:white;border:1px solid #b8cbb0;border-radius:4px}.node-image-source small{font-size:10px;color:#7c8b70}.node-image-source input:focus-visible{outline:2px solid #8aad71;outline-offset:1px}
