:root { --ink: #202a25; --pine: #173f35; --cranberry: #922f43; --muted: #5d665f; --line: #d7dcd5; --paper: #fafbf8; --bs-body-color: var(--ink); --bs-body-bg: var(--paper); --bs-border-radius: 4px; --bs-body-font-family: "Avenir Next", "Segoe UI", sans-serif; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #b34459; outline-offset: 4px; box-shadow: none; }
button:disabled { opacity: .5; cursor: wait; }
[hidden] { display: none !important; }
.page-width { max-width: 1580px; padding-left: 42px; padding-right: 42px; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 20; padding: 12px; color: white; background: var(--pine); }
.skip-link:focus { top: 8px; }
.site-header { background: var(--pine); color: #fff; padding: 23px 0; border-bottom: 4px solid #b69a60; }
.brand { display: flex; gap: 13px; align-items: center; color: #fff; text-decoration: none; font-family: Georgia, serif; font-size: 29px; line-height: 1; }
.brand:hover { color: white; }
.brand > img { filter: invert(1); }
.brand-subline { display: block; font-family: var(--bs-body-font-family); font-size: 9px; margin-top: 7px; }
.market { display: flex; align-items: center; gap: 13px; font-size: 15px; }
.market span span { display: block; color: #dce8dc; font-size: 11px; margin-top: 3px; }
.market-star { font-size: 33px; color: #e4c88e; }
.workshop-heading { padding: 29px 0 26px; }
.eyebrow { color: var(--cranberry); font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 7px; }
h1 { font-family: Georgia, serif; font-size: 30px; line-height: 1.2; margin: 0; }
.live-label { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--pine); }
.live-label span { color: var(--cranberry); font-size: 20px; }
.workshop { display: grid; grid-template-columns: 356px minmax(0, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.selection { padding: 23px 26px 24px 0; border-right: 1px solid var(--line); }
.section-heading { display: flex; gap: 10px; align-items: center; margin-bottom: 17px; }
.section-heading h2 { font-size: 15px; font-weight: 650; margin: 0; line-height: 1.4; }
.step { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border: 1px solid var(--pine); border-radius: 50%; font-size: 12px; color: var(--pine); }
.motif-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; max-height: 302px; overflow-y: auto; padding: 5px; margin: -5px; scrollbar-color: #6e8172 #edf0ea; scrollbar-width: thin; }
.motif-count { margin-left: auto; font-size: 10px; color: var(--muted); white-space: nowrap; }
.motif-label { overflow-wrap: anywhere; }
.motif-source { display: block; font-size: 9px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.motif { position: relative; padding: 0; border: 1px solid #aeb9af; border-radius: 4px; background: #fff; color: var(--ink); overflow: hidden; text-align: left; }
.motif.selected { border: 2px solid var(--pine); }
.motif-image { display: flex; align-items: center; width: 100%; height: 83px; padding: 10px 7px; background: #f0f2ed; }
.motif-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.motif-caption { display: flex; justify-content: space-between; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; padding: 10px; height: 70px; }
.selected .motif-caption { padding: 9px; }
.selected .motif-image { padding: 9px 6px; height: 82px; }
.selection-check { visibility: hidden; position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #fff; }
.selected .selection-check { visibility: visible; }
.crop-section { margin-top: 25px; }
.crop-section .section-heading { margin-bottom: 11px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; padding: 9px; border: 0; border-radius: 4px; background: transparent; }
.icon-button:hover, .icon-button[aria-pressed="true"] { background: #dce5dd; }
.icon-button img { width: 20px; height: 20px; }
.crop-wrap { width: 100%; padding: 15px 30px 7px; background: #edf0ea; text-align: center; }
.crop-window { position: relative; aspect-ratio: 1; width: 100%; background: #fff; color: #182b22; box-shadow: 0 3px 7px #162b201a; touch-action: pan-y; cursor: grab; }
.crop-window.dragging { cursor: grabbing; }
.crop-window svg { display: block; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.crop-dimension { display: inline-block; font-size: 10px; color: var(--muted); padding-top: 7px; }
.crop-loading { position: absolute; inset: 0; display: grid; place-items: center; background: #fff; font-size: 12px; }
.crop-control { display: flex; gap: 12px; align-items: center; padding-top: 14px; }
input[type="range"] { width: 100%; height: 24px; accent-color: var(--pine); cursor: pointer; }
.crop-control output { width: 46px; flex: 0 0 46px; color: var(--muted); font-size: 11px; text-align: right; }
.workshop-settings { border-top: 1px solid var(--line); margin-top: 21px; padding-top: 16px; font-size: 12px; }
.workshop-settings summary { display: flex; align-items: center; gap: 7px; cursor: pointer; list-style: none; height: 28px; }
.workshop-settings summary::-webkit-details-marker { display: none; }
.workshop-settings summary::after { content: "+"; font-size: 18px; margin-left: auto; }
.workshop-settings[open] summary::after { content: "−"; }
.workshop-settings summary > span { font-size: 10px; color: var(--muted); margin-left: auto; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.settings-grid label { font-size: 11px; }
.settings-grid input, .settings-grid select { margin-top: 5px; font-size: 12px; }
.setting-note { color: var(--muted); font-size: 10px; }
.workshop-settings > p { color: var(--muted); line-height: 1.6; }
.preview { position: relative; padding: 23px 0 0 26px; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 17px; }
.preview-heading .section-heading { margin: 0; }
.view-tabs { display: flex; padding: 3px; gap: 2px; background: #e9ece6; border-radius: 4px; }
.view-tab { display: flex; gap: 7px; align-items: center; justify-content: center; font-size: 11px; border: 0; border-radius: 3px; background: transparent; padding: 8px 12px; height: 34px; color: var(--muted); }
.view-tab img { width: 15px; height: 15px; }
.view-tab.active { color: var(--pine); background: #fff; box-shadow: 0 1px 3px #20362918; }
.preview-stage { position: relative; height: 492px; background: #e8ece5; overflow: hidden; }
.view-3d, .view-cut, #scene { width: 100%; height: 100%; }
#scene canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.scene-toolbar { position: absolute; top: 16px; right: 16px; display: flex; align-items: center; padding: 3px; background: #ffffffeb; border-radius: 4px; }
.toolbar-divider { width: 1px; height: 19px; background: var(--line); margin: 0 3px; }
.scene-caption { position: absolute; bottom: 19px; left: 20px; display: flex; align-items: center; gap: 8px; font-size: 11px; color: #34483b; background: #ffffffe8; padding: 8px 11px; border-radius: 3px; pointer-events: none; }
.material-swatch { display: inline-block; width: 13px; height: 13px; background: #d9b780; border: 1px solid #a5895e; border-radius: 50%; }
.caption-divider { color: #899088; margin: 0 2px; }
.view-cut { padding: 28px 25px 54px; background: #eff1ed; }
.cut-sheet { width: 100%; height: 100%; }
.cut-sheet svg { width: 100%; height: 100%; background: white; }
.cut-sheet path { vector-effect: non-scaling-stroke; stroke-width: 1; stroke: #c52432; }
.cut-legend { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; margin-top: 16px; color: var(--muted); }
.cut-legend > span:last-child { margin-left: 12px; }
.cut-line { width: 18px; height: 2px; background: #d00000; }
.preview-busy, .scene-error { position: absolute; inset: 0; display: grid; place-items: center; padding: 40px; text-align: center; background: #e8ece5ed; font-size: 13px; color: var(--pine); }
.scene-error { z-index: 2; }
.export-bar { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 21px 0; }
.export-title { font-family: Georgia, serif; font-size: 20px; margin: 0 0 4px; }
.export-description { font-size: 11px; color: var(--muted); margin: 0; }
.download-button { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--cranberry); color: #fff; border: 0; border-radius: 4px; padding: 16px 21px; font-size: 13px; font-weight: 600; }
.download-button:hover { background: #762436; }
.download-button img { filter: invert(1); }
.status-message { font-size: 12px; line-height: 1.5; color: var(--pine); margin: 0 0 15px; }
.status-message:empty { display: none; }
.status-message.error { color: #99223b; }
.site-footer { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 10px; padding: 20px 0; }
.site-footer span span { color: var(--cranberry); padding: 0 5px; }
@media (width >= 1500px) { .workshop { grid-template-columns: 400px minmax(0, 1fr); } .crop-wrap { padding-left: 42px; padding-right: 42px; } .preview-stage { height: 525px; } }
@media (width < 1100px) { .page-width { padding-left: 24px; padding-right: 24px; } .workshop { grid-template-columns: 310px minmax(0, 1fr); } .selection { padding-right: 20px; } .preview { padding-left: 20px; } .preview-heading { flex-wrap: wrap; } .preview-stage { height: 455px; } h1 { font-size: 26px; } .export-bar { align-items: flex-start; flex-direction: column; gap: 13px; } .download-button { width: 100%; } .live-label { display: none; } }
@media (width < 760px) { .page-width { padding-left: 19px; padding-right: 19px; } .site-header { padding: 19px 0; } .brand { font-size: 24px; gap: 9px; } .brand > img { width: 25px; } .brand-subline { font-size: 8px; } .market { font-size: 11px; gap: 6px; } .market-star { font-size: 22px; } .market span span { font-size: 9px; max-width: 120px; } .workshop-heading { padding: 24px 0; } h1 { font-size: 27px; max-width: 370px; line-height: 1.2; } .eyebrow { font-size: 10px; } .workshop { display: block; } .selection { border-right: 0; padding: 22px 0; } .motif-image { height: 92px; } .selected .motif-image { height: 91px; } .crop-wrap { padding: 16px 38px 9px; } .crop-window { max-width: 300px; margin: 0 auto; } .crop-section { margin-top: 24px; } .workshop-settings { margin-top: 18px; } .preview { border-top: 1px solid var(--line); padding: 22px 0 0; } .preview-heading { gap: 16px; } .preview-stage { height: 430px; margin-left: -19px; margin-right: -19px; width: calc(100% + 38px); } .preview-heading .section-heading h2 { font-size: 15px; } .export-bar { padding-top: 21px; } .export-title { font-size: 22px; } .download-button { font-size: 15px; height: 54px; } .site-footer { flex-direction: column; gap: 5px; padding: 19px 0 24px; } .scene-toolbar { right: 12px; top: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
