:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #24332f;
  --muted: #58645d;
  --line: #c9ccbe;
  --paper: #f4f2e9;
  --cream: #fffdf7;
  --yellow: #f0c45a;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; font-size: 1rem; line-height: 1.55; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 3px solid #a84916; outline-offset: 4px;
}
.workshop-header :focus-visible { outline-color: #f0c45a; }
input:focus, textarea:focus { outline: 3px solid #a84916; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: fixed; z-index: 50; top: 1rem; left: 1rem; background: white; color: var(--ink); padding: 1rem; clip-path: inset(100%); }
.skip:focus { clip-path: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.workshop-header {
  min-height: 5.5rem; padding: 1rem max(2rem, calc((100vw - 1320px) / 2));
  display: flex; align-items: center; gap: 2rem; color: var(--cream); background: var(--ink);
  border-bottom: 4px solid #c9a554;
}
.brand { display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; font-size: 1.8rem; font-weight: 750; line-height: 1; letter-spacing: -.07em; }
.brand-mark { width: 2.6rem; height: 2.6rem; color: var(--yellow); flex-shrink: 0; }
.brand-caption { display: block; color: #c8d1c9; font-family: var(--mono); font-size: .6rem; font-weight: 450; letter-spacing: .16em; margin-top: .55rem; }
.storage-note { margin-left: auto; display: grid; grid-template-columns: auto auto; align-items: center; gap: .25rem 1.5rem; }
.storage-mark { grid-column: 1; font-family: var(--mono); font-size: .65rem; letter-spacing: .13em; color: #cbd5cc; }
#connection-status { grid-column: 1; font-size: .82rem; color: #f1ead4; }
#connection-status::before { content: ""; display: inline-block; height: .4rem; width: .4rem; background: currentColor; border-radius: 50%; margin-right: .45rem; vertical-align: middle; }
.header-action { min-height: 2.75rem; padding: .6rem 1rem; border: 1px solid #a3afa1; border-radius: 3px; background: transparent; color: #fffdf7; font-size: .85rem; font-weight: 600; }
.header-action:hover { background: #3c4c43; }
.header-action span { color: var(--yellow); margin-right: .35rem; }
.project-rack { display: flex; align-items: center; gap: 1.4rem; padding: .95rem max(2rem, calc((100vw - 1320px) / 2)); border-bottom: 1px solid var(--line); background: #e9e9df; }
.rack-label { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; line-height: 1.6; flex-shrink: 0; color: #5b6459; }
.rack-label span { margin-left: .25rem; }
#project-list { display: flex; gap: .65rem; flex: 1; min-width: 0; overflow-x: auto; padding: .3rem; margin: -.3rem; scrollbar-width: thin; }
.rack-empty { font-size: .85rem; color: var(--muted); margin: .5rem 0; }
.project-nav { position: relative; display: block; flex: 0 0 auto; width: clamp(12rem, 21vw, 21rem); max-width: 100%; text-align: left; border: 1px solid #c6ccbf; border-radius: 2px; background: #f2f2e9; color: var(--ink); padding: .6rem .85rem; font-size: .85rem; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.project-nav:hover { background: #fffdf7; }
.project-nav.active { background: #fffdf7; border-color: #405247; box-shadow: inset 3px 0 0 #405247; }
.project-nav small { display: block; font-family: var(--mono); font-size: .62rem; font-weight: 450; color: #5c685f; margin-top: .3rem; }
.sample-tag { color: #824712; }
.sample-button { flex-shrink: 0; max-width: 10rem; border: 0; background: transparent; font-size: .78rem; text-align: left; color: var(--ink); padding: .55rem 0 .55rem 1rem; min-height: 2.75rem; border-left: 1px solid #b9c0b1; }
.sample-button span { padding-left: .35rem; color: #7a5817; }
.shell { min-height: calc(100vh - 11rem); display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; max-width: 1384px; margin: 0 auto; padding: .6rem 2rem; font-family: var(--mono); font-size: .63rem; letter-spacing: .1em; }
.topbar > span { min-width: 0; display: flex; gap: .9rem; align-items: center; }
.slash { color: #8a9285; }
#breadcrumb { color: var(--muted); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .8rem; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quiet { min-height: 2.75rem; border: 0; padding: .55rem .35rem; color: #485d4d; background: transparent; font-size: .82rem; font-weight: 650; }
.quiet:hover { color: #814510; text-decoration: underline; text-underline-offset: .2em; }
#refresh { grid-column: 2; grid-row: 1 / 3; flex-shrink: 0; font-size: .76rem; color: #e2e9de; }
#refresh:hover { color: var(--yellow); }
main { width: 100%; max-width: 1384px; padding: 1.4rem 2rem 4rem; margin: 0 auto; flex: 1; }
.eyebrow, .station-label { font-family: var(--mono); font-size: .68rem; font-weight: 550; letter-spacing: .11em; }
.eyebrow { color: #5b675d; }
.project-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.2rem; }
.project-heading > div { min-width: 0; }
.project-heading h1 { font-size: clamp(2rem, 3.3vw, 2.8rem); line-height: 1.12; letter-spacing: -.045em; margin: .6rem 0; font-weight: 740; overflow-wrap: anywhere; }
.project-heading p { font-size: .9rem; color: var(--muted); margin: 0; }
.primary, .secondary { min-height: 2.9rem; padding: .7rem 1.05rem; border-radius: 3px; border: 1px solid transparent; font-size: .9rem; font-weight: 650; line-height: 1.5; }
.primary { background: var(--ink); color: #fffdf7; border-color: var(--ink); }
.primary:hover { background: #3c5243; border-color: #3c5243; }
.primary span { margin-left: 1.25rem; }
.secondary { background: #faf9f1; color: var(--ink); border-color: #aeb8a9; }
.secondary:hover { background: white; }
#export-project { flex-shrink: 0; font-size: .8rem; }
.bench-nav { display: flex; gap: 1.75rem; border-top: 1px solid var(--line); padding: .45rem 0 .9rem; }
.bench-nav a { min-height: 2.6rem; display: inline-flex; align-items: center; gap: .65rem; font-family: var(--mono); font-size: .66rem; color: #6a755f; text-decoration: none; }
.bench-nav a span { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .84rem; font-weight: 600; color: var(--ink); }
.bench-nav a:hover span { text-decoration: underline; text-underline-offset: .25em; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-areas: "checkpoint parts" "plan simulator" "history simulator"; gap: 1.75rem 2rem; align-items: start; }
.work-grid > section { min-width: 0; scroll-margin-top: 1.25rem; }
.station-label { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.3rem; color: #62705e; }
.station-label > span:last-child:not(:first-child) { font-size: 1.1rem; line-height: 1; }
.return-card { grid-area: checkpoint; position: relative; padding: 1.6rem 1.8rem 1.1rem; background: #f5e0a8; border: 1px solid #c0a96c; border-radius: 2px; box-shadow: 3px 4px 0 #d8d6c87a; }
.return-card::before { content: ""; position: absolute; width: .35rem; top: -1px; bottom: -1px; left: -1px; background: repeating-linear-gradient(to bottom,#967326 0 8px,transparent 8px 13px); opacity: .6; }
.return-card .station-label { color: #66551e; border-bottom: 1px solid #bca769; padding-bottom: .9rem; margin-bottom: 1.25rem; }
.card-kicker { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; }
#state-label { font-family: var(--mono); color: #344c33; font-size: .72rem; font-weight: 650; letter-spacing: .02em; }
#state-label::before { content: ""; display: inline-block; height: .4rem; width: .4rem; background: #456942; border-radius: 50%; vertical-align: .05rem; margin-right: .45rem; }
.return-card[data-paused="true"] #state-label::before { border-radius: 0; background: #73561c; }
#saved-at { font-size: .66rem; color: #685d38; }
.field-caption { font-family: var(--mono); font-size: .67rem; color: #716032; letter-spacing: .02em; margin: 1.2rem 0 .4rem; }
#return-body h2 { font-size: clamp(1.5rem, 2.1vw, 2rem); line-height: 1.25; letter-spacing: -.025em; font-weight: 700; margin: .5rem 0 1rem; overflow-wrap: anywhere; }
.step-context { display: flex; gap: .7rem; align-items: baseline; font-size: .86rem; color: #5c573e; margin: .7rem 0; }
.step-context > span { flex-shrink: 0; font-family: var(--mono); font-size: .65rem; text-transform: uppercase; color: #66572c; }
.step-context > p { margin: 0; overflow-wrap: anywhere; }
.checkpoint-note { border-top: 1px dashed #baa978; padding-top: .9rem; margin-top: 1rem; }
.checkpoint-note > span { font-family: var(--mono); font-size: .65rem; letter-spacing: .05em; color: #66572c; }
.checkpoint-note p { margin: .35rem 0 0; font-size: .95rem; color: #4d4b36; overflow-wrap: anywhere; }
.previous-checkpoint { margin: .9rem 0; color: #625637; font-size: .85rem; }
.previous-checkpoint summary { cursor: pointer; padding: .3rem 0; }
.previous-checkpoint p { font-size: .85rem; overflow-wrap: anywhere; }
.return-actions { display: flex; align-items: center; gap: .6rem 1.1rem; flex-wrap: wrap; margin: 1.4rem 0 1rem; }
.return-quiet { min-height: 2.75rem; padding: .55rem 0; color: #394834; background: transparent; border: 0; font-size: .86rem; font-weight: 650; text-decoration: underline; text-underline-offset: .23em; }
.return-quiet:hover { color: #76451c; }
#briefing-sheet { border-top: 1px solid #c4af77; font-size: .85rem; padding-top: .25rem; }
#briefing-sheet summary { cursor: pointer; min-height: 2.75rem; padding: .65rem 0; font-weight: 550; }
#briefing-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; line-height: 1.7; margin: .4rem 0 .8rem; }
.speech-note { font-size: .76rem; color: #655b39; display: block; }
.ticket-bottom { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: .63rem; color: #6a613e; margin-top: 1.15rem; }
.progress { height: 4px; margin-top: .5rem; background: #dbcc98; overflow: hidden; }
#progress-bar { height: 100%; background: #425b3e; transition: width .2s; }
.parts-card { grid-area: parts; padding: 1.5rem; background: #e2e8df; border: 1px solid #bdc7b7; border-radius: 2px; }
.parts-card .station-label { padding-bottom: .9rem; border-bottom: 1px solid #bdc7b7; margin-bottom: 1rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.section-heading h2 { font-size: 1.22rem; font-weight: 700; margin: 0; letter-spacing: -.025em; }
.section-heading > span { font-size: .73rem; color: var(--muted); }
.parts-card #add-part { border: 1px solid #adbba5; padding: .4rem .75rem; background: #f6f8ef; border-radius: 3px; }
.section-copy { font-size: .88rem; color: var(--muted); margin: .3rem 0 1.25rem; }
.part { display: grid; grid-template-columns: 3rem minmax(0,1fr); gap: .9rem; padding: 1rem; margin-top: .75rem; background: #fffef7; border: 1px solid #c4cbbc; box-shadow: 0 2px 0 #bfc8b454; }
.part-count { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; align-self: start; padding: .15rem .4rem .25rem; border-right: 1px solid #d3d7ca; font-family: var(--mono); font-size: 1.4rem; line-height: 1.4; color: #4b5d40; overflow-wrap: anywhere; }
.part-count small { font-size: .58rem; font-weight: 500; letter-spacing: .1em; }
.part-count.compact { font-size: .85rem; }
.part h3 { margin: 0; color: #4e5c49; font-size: .88rem; font-weight: 500; overflow-wrap: anywhere; }
.part p { font-size: 1.04rem; font-weight: 650; line-height: 1.4; color: #263c2b; margin: .3rem 0 0; overflow-wrap: anywhere; }
.parts-empty { min-height: 8rem; display: flex; flex-direction: column; justify-content: center; padding: 1.15rem; border: 1px dashed #a7b69c; font-size: .9rem; color: #516049; }
.parts-empty strong { display: block; margin-bottom: .3rem; color: #34482f; font-weight: 650; }
.tray-note { font-size: .74rem; color: #55644e; margin: 1rem 0 0; }
.step-section { grid-area: plan; padding-top: .3rem; }
.step-section .station-label { margin-bottom: .45rem; }
#steps { list-style: none; padding: 0; margin: 1rem 0; border-top: 2px solid #65765e; border-bottom: 1px solid #c4cbb9; }
.step { display: flex; align-items: flex-start; gap: 1rem; padding: 1.1rem .95rem; border-bottom: 1px solid #d6d9cb; background: #faf9f1; }
.step:last-child { border-bottom: 0; }
.step.current { background: #f0eddb; box-shadow: inset 3px 0 0 #667c4e; }
.step-num { flex: 0 0 2rem; display: flex; align-items: center; justify-content: center; min-height: 2rem; border: 1px solid #b5bdab; font-family: var(--mono); font-size: .75rem; color: #596d4b; }
.step.completed .step-num { background: #dfe7d4; border-color: #bdcaaa; color: #3b6231; }
.step.current .step-num { background: #425a35; color: white; border-color: #425a35; }
.step-title { margin: 0; font-size: 1rem; font-weight: 550; overflow-wrap: anywhere; }
.step.completed .step-title { font-weight: 450; color: #5d6a55; }
.step-caption { margin-top: .3rem; font-size: .73rem; color: #65715b; }
.small-note { font-size: .79rem; color: #616b59; line-height: 1.65; }
.activity-section { grid-area: history; border-top: 1px solid #bfc7b4; padding-top: 1.3rem; }
.activity-section .section-heading h2 { font-size: 1rem; }
#history { margin-top: .5rem; }
.history-item { display: flex; align-items: flex-start; gap: .85rem; padding: .8rem 0; border-bottom: 1px solid #d7dccd; }
.history-marker { color: #64764f; font-family: var(--mono); min-width: 1rem; line-height: 1.6; }
.history-item p { font-size: .85rem; color: #4d604b; margin: 0; overflow-wrap: anywhere; }
.history-item time { display: block; font-family: var(--mono); font-size: .63rem; color: #65735d; margin-top: .3rem; }
.simulator { grid-area: simulator; padding: 1.5rem; border-top: 3px solid #718063; background: #e9ece3; }
.simulator > .station-label { margin-bottom: 1rem; color: #5b6b4f; }
.simulator-heading { display: flex; gap: .75rem; align-items: flex-start; }
.simulator-icon { color: #577347; font-size: 2.1rem; line-height: 1; }
.simulator-heading h2 { font-size: 1.12rem; line-height: 1.4; margin: 0; letter-spacing: -.02em; }
.simulator-heading span:not(.simulator-icon) { display: block; font-size: .75rem; color: #637458; margin-top: .3rem; }
.simulator-disclosure { color: #4f6146; font-size: .81rem; line-height: 1.6; padding: .85rem 0; margin: .35rem 0 .7rem; border-bottom: 1px solid #c5cfbb; }
#conversation { max-height: 22rem; overflow: auto; scrollbar-width: thin; }
.assistant-message, .user-message { font-size: .88rem; line-height: 1.65; padding: .8rem .9rem; margin: 0 0 .7rem; background: #fafbf4; border-left: 2px solid #879975; color: #344b30; white-space: pre-wrap; overflow-wrap: anywhere; }
.user-message { margin-left: 1.5rem; background: #e0e6d7; border-left: 0; border-right: 2px solid #9caf85; }
.assistant-message.error { background: #fff1e5; color: #823b22; border-color: #a75530; }
.command-row { display: flex; gap: .5rem; margin-top: .9rem; }
.command-row input { min-width: 0; flex: 1; font-size: .85rem; padding: .7rem; }
.command-row button { min-height: 2.75rem; min-width: 2.75rem; border: 0; background: var(--ink); color: #fff; border-radius: 3px; font-size: 1.3rem; }
.command-examples { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: .8rem; }
.command-examples button { min-height: 2.6rem; padding: .45rem .65rem; background: #f7f8f0; border: 1px solid #bac6ad; border-radius: 3px; color: #445c38; font-size: .76rem; }
.command-help, .connection-details { color: #52654a; font-size: .8rem; margin-top: .7rem; }
.command-help summary, .connection-details summary { min-height: 2.75rem; padding: .65rem 0; cursor: pointer; }
.command-help ul { padding-left: 1.15rem; margin: .3rem 0; }
.command-help li { margin: .6rem 0; }
code { font-family: var(--mono); font-size: .76rem; white-space: normal; overflow-wrap: anywhere; }
.connection-details { border-top: 1px solid #c4cfb9; padding-top: .3rem; }
.connection-details p { line-height: 1.7; }
#sample-banner { padding: .6rem 1rem; margin-bottom: 1rem; border: 1px solid #c6bd9a; background: #ede9d7; color: #64562e; font-size: .77rem; }
#notice { position: fixed; z-index: 40; bottom: 1.25rem; right: 1.25rem; display: flex; align-items: flex-start; gap: 1rem; max-width: min(34rem, calc(100vw - 2.5rem)); padding: .9rem 1rem; background: #e6efda; color: #294520; border: 1px solid #92a983; border-radius: 4px; box-shadow: 0 5px 22px #1f392523; font-size: .88rem; }
#notice-copy { align-self: center; overflow-wrap: anywhere; }
#dismiss-notice { margin: -.35rem -.4rem -.35rem 0; padding: .35rem; flex-shrink: 0; min-width: 2.75rem; min-height: 2.75rem; border: 0; color: inherit; background: transparent; font-size: 1.3rem; }
#notice.error, .dialog-error { background: #fff0e4; color: #833c23; border-color: #c69879; }
.dialog-error { border: 1px solid; padding: .7rem .85rem; margin-top: 0; border-radius: 3px; font-size: .85rem; }
footer { width: 100%; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 2rem; padding: 1.3rem max(2rem,calc((100vw - 1320px) / 2)); background: #e8e9df; border-top: 1px solid #c3cbb6; color: #56674c; font-size: .74rem; }
footer strong { color: #344c2e; letter-spacing: -.04em; }
footer span span { margin: 0 .5rem; color: #869178; }
#welcome { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 4rem; padding: 3rem 0 4rem; align-items: center; }
#welcome h1 { font-size: clamp(2.7rem, 5.5vw, 4.65rem); line-height: 1.06; font-weight: 760; letter-spacing: -.06em; margin: 1.5rem 0; }
#welcome h1 em { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 450; letter-spacing: -.055em; color: #627650; }
.welcome-intro > p { max-width: 31rem; font-size: 1.12rem; line-height: 1.75; color: #56644e; }
.welcome-actions { display: flex; align-items: flex-start; gap: 1rem; flex-direction: column; margin-top: 1.8rem; }
.welcome-actions > span { font-size: .8rem; color: #657459; }
.welcome-notes { position: relative; padding: 1.8rem 2rem; background: #f3e2b2; border: 1px solid #c9b375; box-shadow: 7px 7px 0 #d6d5c7; }
.welcome-notes::before { content: ""; position: absolute; top: -1.4rem; width: 4rem; height: 1.4rem; left: 1.8rem; border: 1px solid #c9b375; border-bottom: 0; background: #f3e2b2; border-radius: 3px 3px 0 0; }
.welcome-notes .notes-heading { font-family: var(--mono); font-size: .68rem; letter-spacing: .07em; color: #75602e; padding: 0 0 1rem; align-items: center; }
.notes-heading > span { font-size: 1.4rem; }
.welcome-notes > div { display: flex; align-items: flex-start; gap: 1.2rem; padding: 1.4rem 0; border-bottom: 1px solid #cbbb84; }
.welcome-notes > div:last-child { border: 0; padding-bottom: .5rem; }
.welcome-notes > div > span { color: #786430; font-family: var(--mono); font-size: .78rem; padding-top: .2rem; }
.welcome-notes h2 { font-size: 1rem; line-height: 1.4; margin: 0 0 .4rem; }
.welcome-notes p { margin: 0; font-size: .86rem; color: #635b3d; line-height: 1.7; }
dialog { border: 1px solid #8fa27d; border-top: 5px solid #546d41; border-radius: 3px; width: min(92vw, 37rem); max-height: 90dvh; padding: 1.8rem; background: #fafaf2; box-shadow: 0 20px 100px #112c3245; color: var(--ink); }
dialog::backdrop { background: #172a257a; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dialog-heading h2 { font-size: 1.6rem; letter-spacing: -.035em; line-height: 1.25; margin: 0; }
.dialog-heading > button { min-height: 2.75rem; min-width: 2.75rem; padding: .3rem; background: transparent; border: 0; font-size: 1.7rem; color: #596e4c; }
label { display: block; margin: 1.3rem 0 .6rem; font-size: .9rem; font-weight: 600; }
input, textarea { width: 100%; padding: .7rem .8rem; font-size: 1rem; color: var(--ink); background: #fffefa; border: 1px solid #a6b29b; border-radius: 3px; resize: vertical; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.part-fields { display: grid; grid-template-columns: 6rem minmax(0,1fr); gap: 1rem; }
@media (max-width: 1080px) {
  .work-grid { gap: 1.5rem; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); }
  .return-card { padding: 1.4rem; }
  .parts-card, .simulator { padding: 1.2rem; }
  .step-context { flex-direction: column; gap: .25rem; }
  .return-actions { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .project-rack { gap: 1rem; }
  #welcome { gap: 2rem; }
}
@media (max-width: 820px) {
  .workshop-header { padding: 1rem 1.25rem; gap: 1rem; flex-wrap: wrap; }
  .brand { font-size: 1.6rem; }
  .storage-note { order: 3; margin: 0; width: 100%; grid-template-columns: minmax(0,1fr) auto; gap: .2rem 1rem; }
  .header-action { margin-left: auto; }
  .project-rack { padding: .9rem 1.25rem; flex-wrap: wrap; gap: .8rem; }
  .rack-label { font-size: .59rem; }
  .rack-label br { display: none; }
  .rack-label span { display: none; }
  #project-list { order: 3; flex-basis: 100%; }
  #project-list:has(.rack-empty) { display: none; }
  .sample-button { margin-left: auto; max-width: none; min-height: 2.5rem; padding: .3rem 0; border: 0; font-size: .75rem; }
  .project-nav { width: 15rem; }
  .topbar { padding: .5rem 1.25rem; }
  main { padding: 1.2rem 1.25rem 3rem; }
  .project-heading { gap: 1rem; align-items: flex-start; }
  .project-heading h1 { font-size: 2rem; }
  .project-heading p { font-size: .84rem; }
  .work-grid { grid-template-columns: minmax(0,1fr); grid-template-areas: "checkpoint" "parts" "plan" "simulator" "history"; gap: 1.8rem; }
  .return-card, .parts-card, .simulator { padding: 1.4rem; }
  #return-body h2 { font-size: 1.7rem; }
  .return-actions { flex-direction: row; align-items: center; gap: .6rem 1rem; }
  #parts { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap: .8rem; }
  .part { margin-top: 0; }
  .step-context { flex-direction: row; gap: .7rem; }
  .bench-nav { gap: 1.25rem; flex-wrap: wrap; }
  #welcome { grid-template-columns: minmax(0,1fr); padding: 1.5rem 0; gap: 3.5rem; }
  #welcome h1 { font-size: clamp(2.6rem,8vw,4.5rem); }
  .welcome-notes { max-width: 37rem; }
  footer { padding: 1.3rem 1.25rem; }
}
@media (max-width: 480px) {
  .workshop-header { padding: 1rem; }
  .brand { font-size: 1.45rem; gap: .5rem; }
  .brand-mark { width: 2rem; height: 2rem; }
  #refresh { font-size: .73rem; padding: .4rem 0; }
  .header-action { font-size: .78rem; padding: .6rem .7rem; }
  .project-rack { padding: .55rem 1rem .8rem; }
  .topbar { padding: .35rem 1rem; }
  .topbar > span { gap: .5rem; }
  .topbar > span > .slash { display: none; }
  #breadcrumb { max-width: 10rem; }
  main { padding: 1rem 1rem 2.5rem; }
  .project-heading { flex-direction: column; margin-bottom: 1.3rem; }
  .project-heading h1 { font-size: 1.95rem; }
  #export-project { min-height: 2.6rem; padding: .5rem .75rem; }
  .bench-nav { gap: .25rem; justify-content: space-between; padding-bottom: .85rem; }
  .bench-nav a { gap: .35rem; font-size: .56rem; }
  .bench-nav a span { font-size: .73rem; }
  .return-card, .parts-card, .simulator { padding: 1.15rem; }
  .return-actions { flex-direction: column; align-items: stretch; gap: .5rem; }
  .return-actions .return-quiet { text-align: left; }
  #return-body h2 { font-size: 1.5rem; }
  .step-context { flex-direction: column; gap: .25rem; }
  .card-kicker { gap: .35rem; }
  .ticket-bottom { flex-wrap: wrap; }
  .section-heading h2 { font-size: 1.16rem; }
  .section-heading .quiet { font-size: .77rem; }
  .step { padding: 1rem .75rem; gap: .75rem; }
  #notice { bottom: .75rem; right: .75rem; max-width: calc(100vw - 1.5rem); font-size: .85rem; gap: .5rem; }
  .welcome-notes { padding: 1.4rem; box-shadow: 4px 4px 0 #d6d5c7; }
  dialog { padding: 1.25rem; }
  .part-fields { grid-template-columns: 5rem minmax(0,1fr); gap: .8rem; }
  .dialog-heading h2 { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

#save-recovery { margin: 0 0 24px; padding: 16px 20px; border: 1px solid #b36b27; background: #fff5df; display: flex; align-items: center; gap: 20px; justify-content: space-between; }
#save-recovery[hidden] { display: none; }
#save-recovery p { margin: 0; max-width: 70ch; line-height: 1.5; }
#save-recovery button { flex-shrink: 0; }
@media (max-width: 600px) { #save-recovery { align-items: flex-start; flex-direction: column; gap: 12px; } }
