.shoe-lab { margin: 0; background: #fff; color: #252525; font-family: Inter, sans-serif; font-size: 18px; line-height: 1.65; }
.shoe-lab *, .shoe-lab *::before, .shoe-lab *::after { box-sizing: border-box; letter-spacing: 0 !important; }
.shoe-lab [hidden] { display: none !important; }
.shoe-lab main { width: 100%; padding-inline: 0 !important; }
.shoe-lab main section[id] { scroll-margin-top: 104px; }
.shoe-lab main h1, .shoe-lab main h2, .shoe-lab main h3, .shoe-lab main h4, .shoe-lab main p, .shoe-lab main figure { margin: 0; }
.shoe-lab main a { color: #8b4217; text-underline-offset: 4px; }
.shoe-lab main a:hover { text-decoration: underline; }
.shoe-lab main button, .shoe-lab main input { font: inherit; }
.shoe-lab main button { cursor: pointer; }
.shoe-lab main :focus-visible { outline: 3px solid #ab3e56; outline-offset: 4px; }
.shoe-lab .material-symbols-outlined { display: inline-block; width: 20px; height: 20px; font-size: 20px; line-height: 20px; vertical-align: middle; overflow: hidden; flex-shrink: 0; }
.shoe-lab main a, .shoe-lab main p, .shoe-lab main h1, .shoe-lab main h2, .shoe-lab main h3, .shoe-lab main code, .shoe-lab main small { overflow-wrap: anywhere; }
.lab-width { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.lab-intro { padding: 28px 0 22px; }
.lab-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; font-size: 12px; color: #626262; margin-bottom: 8px; }
.lab-meta a { font-weight: 750; }
.shoe-lab main h1 { font-size: 38px; line-height: 1.2; font-weight: 750; }
.lab-question { font-size: 18px; color: #555; margin-top: 8px !important; }
.concept-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; font-size: 12px; color: #666; margin-top: 14px !important; }
.concept-notice strong { color: #922d46; font-weight: 650; }
.status-dot { width: 6px; height: 6px; background: #af3e58; border-radius: 50%; }
.concept-stage { padding: 0 !important; background: #f1f2f2; position: relative; }
#shoe-viewer { position: relative; width: 100%; height: clamp(320px, 52svh, 560px); }
#shoe-viewer > canvas { display: block; width: 100%; height: 100%; }
#shoe-fallback { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 14px; }
#shoe-fallback img { width: 100%; height: 100%; object-fit: contain; }
#shoe-fallback figcaption { font-size: 12px; text-align: center; padding-top: 6px; }
.stage-caption { display: flex; justify-content: space-between; gap: 18px; color: #646666; font-size: 10px; padding-bottom: 14px; }
.stage-caption span:first-child { font-weight: 750; white-space: nowrap; }
.comparison-caption { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; min-height: 22px; color: #505454; font-size: 11px; padding-bottom: 10px; }
.comparison-caption span { display: inline-flex; align-items: center; gap: 7px; }
.comparison-caption i { display: inline-block; width: 10px; height: 10px; background: #e6bf50; }
.comparison-caption span:last-child i { background: #a4aaa9; }
.viewer-toolbar { min-height: 70px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid #d8dada; font-size: 12px; }
.base-profile-row { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-bottom: 12px; border-bottom: 1px solid #d8dada; }
.base-profiles { display: inline-flex; max-width: 100%; padding: 3px; border: 1px solid #bfc3c3; border-radius: 5px; }
.base-profiles button { display: block; min-height: 42px; min-width: 0; padding: 5px 12px; border: 0; border-radius: 3px; background: transparent; color: #535656; font-size: 12px !important; }
.base-profiles button span { display: block; font-size: 11px; }
.base-profiles button[aria-pressed="true"] { background: #333838; color: white; }
.base-profiles button:hover:not([aria-pressed="true"]) { background: #e1e4e4; }
.profile-dimension { font-size: 12px; color: #454949; }
.profile-dimension output { display: inline-block; min-width: 3ch; font-weight: 650; font-variant-numeric: tabular-nums; }
.profile-dimension span { display: block; color: #646666; font-size: 11px; }
.view-modes { display: inline-flex; border: 1px solid #bfc3c3; border-radius: 5px; padding: 3px; }
.view-modes button { background: transparent; color: #535656; min-width: 52px; min-height: 34px; border: 0; border-radius: 3px; padding: 4px 12px; font-size: 12px !important; }
.view-modes button[aria-pressed="true"] { color: #fff; background: #333838; }
.view-modes button:hover:not([aria-pressed="true"]) { background: #e1e4e4; }
.viewer-options { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.viewer-options label { display: flex; gap: 7px; align-items: center; cursor: pointer; min-height: 36px; }
.shoe-lab input[type="checkbox"] { width: 16px; height: 16px; accent-color: #9b3150; }
.viewer-options label:has(input:disabled) { color: #767b7b; cursor: default; }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid #bfc3c3; border-radius: 4px; background: transparent; padding: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 24px; }
.shoe-lab main h2 { font-size: 25px; font-weight: 650; line-height: 1.35; }
.section-index { font-size: 10px; color: #6b6b6b; font-weight: 600; }
.component-section, .evidence-section, .artifact-section { padding: 40px 0 !important; }
.component-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid #d6d6d6; }
.component-tabs button { display: flex; gap: 9px; align-items: center; padding: 14px 10px; border: 0; border-bottom: 3px solid transparent; background: transparent; text-align: left; color: #5d5d5d; font-size: 13px !important; line-height: 1.4; }
.component-tabs button[aria-pressed="true"] { border-color: #a53953; color: #86253d; background: #fcf5f6; }
.part-number { color: #8a8a8a; font-size: 10px; }
.component-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 22px 0 4px; min-height: 140px; }
.component-notes summary { cursor: pointer; font-size: 12px; padding-block: 8px; }
.research-details { border-top: 1px solid #ddd; }
.research-details > summary { padding-block: 20px; cursor: pointer; font-size: 14px; font-weight: 600; }
.concept-footer { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; padding-block: 22px; border-top: 1px solid #ddd; color: #666; font-size: 11px; }
.concept-footer p { margin-right: auto !important; }
.shoe-lab main h3 { font-size: 19px; line-height: 1.4; font-weight: 650; margin-bottom: 8px; }
.component-detail h4 { font-size: 12px; font-weight: 700; margin: 2px 0 10px !important; }
.component-detail p { font-size: 14px; color: #555; }
.evidence-tag { color: #575b58 !important; font-size: 10px !important; font-weight: 650; margin-bottom: 8px !important; }
.component-detail a { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; margin-top: 12px; }
.model-section { background: #f7f8f7; border-block: 1px solid #e0e3e0; padding: 42px 0 !important; }
.section-lead { font-size: 16px; max-width: 750px; color: #555; margin-top: -8px !important; }
.model-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 60px; padding: 30px 0; }
.model-controls { min-width: 0; }
.model-controls label, .tradeoff-body label { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.model-controls label:not(:first-child) { margin-top: 26px; }
.model-controls output, .tradeoff-body label output { white-space: nowrap; font-variant-numeric: tabular-nums; color: #8e2e45; }
.shoe-lab input[type="range"] { display: block; accent-color: #a43954; width: 100%; min-width: 0; height: 30px; margin: 6px 0 0; background: transparent; cursor: pointer; }
.range-ends { display: flex; justify-content: space-between; color: #747474; font-size: 10px; }
#model-reset { display: inline-flex; align-items: center; gap: 7px; padding: 8px 0; background: transparent; border: 0; margin-top: 18px; color: #555; font-size: 12px !important; }
.model-readouts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.model-readouts > div { border-top: 1px solid #cfd3cf; padding-top: 12px; position: relative; }
.line-key { display: block; width: 32px; height: 3px; margin-top: -14px; margin-bottom: 13px; }
.line-key.standard { background: #555f59; }
.line-key.concept { background: #a53953; }
.model-readouts h3 { font-size: 12px !important; margin-bottom: 4px !important; }
.dimension { font-size: 30px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
.dimension span { font-size: 12px; font-weight: 400; color: #626262; }
.model-readouts p:last-child { font-size: 11px; color: #555; }
.model-readouts p:last-child output { font-weight: 650; margin-left: 6px; }
.model-figure { margin-top: 18px !important; }
#model-plot { width: 100%; height: 240px; display: block; }
.model-figure figcaption, .boundary-note { font-size: 11px; color: #606060; line-height: 1.7; }
.boundary-note { margin-top: 10px !important; }
.method-details { border-top: 1px solid #d5d9d5; font-size: 14px; }
.method-details:last-of-type { border-bottom: 1px solid #d5d9d5; }
.method-details summary { padding: 18px 0; cursor: pointer; font-size: 13px; font-weight: 600; }
.method-body { padding: 0 0 22px; color: #555; max-width: 920px; }
.method-body p + p { margin-top: 16px !important; }
.method-body code { font-size: 12px; }
.tradeoff-body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.tradeoff-body input { margin-bottom: 14px !important; }
.small-note { font-size: 11px; }
.evidence-row { display: grid; grid-template-columns: 165px 1fr 165px; gap: 28px; align-items: start; border-top: 1px solid #ddd; padding: 24px 0; }
.evidence-row h3 { font-size: 17px !important; }
.evidence-row p { font-size: 14px; color: #555; }
.evidence-row > a { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.evidence-row .evidence-tag { margin-top: 3px !important; }
.evidence-tag.assumption { color: #886111 !important; }
.evidence-tag.speculative { color: #9d3650 !important; }
.validation-section { padding: 40px 0 !important; border-block: 1px solid #e1e1e1; background: #fafafa; }
.validation-list { list-style: none; padding: 0; margin: 28px 0; }
.validation-list li { display: grid; grid-template-columns: 45px 1fr 90px; gap: 18px; padding: 21px 0; border-top: 1px solid #ddd; align-items: start; }
.step-number { font-size: 13px; color: #979797; }
.validation-list h3 { font-size: 16px !important; }
.validation-list p { max-width: 730px; font-size: 14px; color: #555; }
.open-state { text-align: right; font-size: 11px; color: #696969; }
.research-actions { display: flex; flex-wrap: wrap; gap: 18px 32px; }
.research-actions a { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; }
.archive-notice { font-size: 13px; color: #666; max-width: 900px; }
.archive-correction { font-size: 13px; color: #672e3b; border-left: 3px solid #c8667f; padding: 2px 0 2px 15px; margin-top: 18px !important; max-width: 900px; }
.artifact-links { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; margin: 26px 0; }
.artifact-links > a { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.artifact-links > a > span:last-child { min-width: 0; }
.artifact-links strong { font-size: 13px; font-weight: 650; display: block; }
.artifact-links small { display: block; font-size: 11px; margin-top: 4px; color: #777; }
.artifact-links small .material-symbols-outlined { width: 14px; height: 14px; font-size: 14px; line-height: 14px; }
.archive-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: 24px; }
.archive-gallery img { display: block; width: 100%; aspect-ratio: 1.3; object-fit: contain; background: #f8f8f8; }
.archive-gallery figcaption { font-size: 11px; color: #666; margin-top: 10px; }
.lab-disclaimer { font-size: 12px; color: #626262; border-top: 1px solid #ddd; padding-top: 24px; margin-top: 28px !important; }
@media (max-width: 800px) {
  .lab-width { width: calc(100% - 40px); }
  .model-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 28px; }
  .component-detail { gap: 28px; }
  .component-tabs button { display: block; font-size: 12px !important; }
  .part-number { display: block; margin-bottom: 5px; }
  .evidence-row { grid-template-columns: 135px 1fr; gap: 15px; }
  .evidence-row > a { grid-column: 2; }
  .artifact-links { gap: 20px; }
}
@media (max-width: 580px) {
  .lab-width { width: calc(100% - 36px); }
  .lab-intro { padding-top: 20px; padding-bottom: 18px; }
  .shoe-lab main h1 { font-size: 29px !important; }
  .lab-question { font-size: 15px; }
  .concept-notice { font-size: 11px; }
  #shoe-viewer { height: 300px; }
  .stage-caption { font-size: 9px; gap: 14px; }
  .stage-caption span:last-child { max-width: 190px; text-align: right; }
  .viewer-toolbar { gap: 7px; padding-block: 10px; }
  .view-modes { width: 100%; }
  .view-modes button { flex: 1 1 auto; padding-inline: 6px; }
  .viewer-options { width: 100%; justify-content: space-between; gap: 10px; }
  .component-section, .evidence-section, .artifact-section { padding-block: 30px !important; }
  .section-heading { gap: 9px; margin-bottom: 18px; }
  .section-index { order: -1; width: 100%; }
  .shoe-lab main h2 { font-size: 22px !important; }
  .component-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); border: 0; gap: 5px; }
  .component-tabs button { min-height: 58px; padding: 7px; border-bottom-width: 2px; }
  .component-detail, .model-layout, .tradeoff-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .component-detail { min-height: 160px; padding-top: 20px; gap: 12px; }
  .component-detail h3 { font-size: 19px; }
  .model-layout { padding-top: 26px; }
  .model-controls { display: grid; grid-template-columns: minmax(0, 1fr); }
  .model-controls label:not(:first-child) { margin-top: 18px; }
  #model-reset { margin-top: 12px; }
  .model-readouts { gap: 20px; }
  .dimension { font-size: 28px; }
  .model-readouts p:last-child output { display: block; margin: 3px 0 0; }
  #model-plot { height: 220px; }
  .evidence-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 22px; }
  .evidence-row > a { grid-column: 1; }
  .validation-list li { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
  .open-state { grid-column: 2; text-align: left; }
  .artifact-links, .archive-gallery { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 360px) {
  .viewer-options { gap: 5px; font-size: 11px; }
  .viewer-options label { gap: 5px; }
  .viewer-options .icon-button { width: 32px; }
}
@media (prefers-reduced-motion: reduce) { .shoe-lab *, .shoe-lab *::before, .shoe-lab *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
.inspection-options { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; flex-basis: 100%; font-size: 12px; color: #555f59; }
.inspection-options label { display: flex; align-items: center; gap: 7px; min-height: 36px; }
.view-modes button { min-width: 0; }
