/* One workspace, one conversation. Selection is driven by AI commands. */
.svg-inspector { border-top: 1px solid #e4d6c5; padding-top: 16px; margin: 14px 0; }
.svg-artwork-heading { display: flex; gap: 10px; align-items: center; min-width: 0; }
.svg-artwork-heading img { width: 40px; height: 40px; object-fit: contain; padding: 5px; background: #f1ebe1; border-radius: 8px; }
.svg-artwork-heading div { min-width: 0; }.svg-artwork-heading h3 { font-size: 13px; margin: 0; }
.svg-artwork-heading p { margin: 4px 0 0; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svg-position-note, .svg-dimensions { color: #9b8875; font-size: 10px; line-height: 1.6; margin: 8px 0 14px; }
.svg-number-label { display: flex; justify-content: space-between; align-items: center; font-size: 12px; gap: 4px; margin: 12px 0 7px; }
.svg-number-label span { white-space: nowrap; font-size: 10px; }.svg-number-label input { width: 62px; padding: 6px 4px; border: 1px solid #d7c5af; border-radius: 7px; background: white; font-size: 13px; color: #62442e; }
.svg-inspector input[type=range] { width: 100%; accent-color: #a36b40; cursor: pointer; }
.svg-depth-presets, .svg-inspector-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.svg-depth-presets button { flex: 1; border: 1px solid #e4d6c5; background: transparent; border-radius: 7px; padding: 7px 3px; color: #876449; font-size: 10px; cursor: pointer; }
.svg-depth-presets button[aria-pressed=true] { background: #eee0cf; border-color: #bd9570; }
.svg-inspector-actions button[aria-pressed=true] { background: #eee0cf; border-color: #bd9570; }
#svgStatus { font-size: 11px; line-height: 1.7; color: #99704d; margin: 12px 0; }#svgStatus[data-status=ready] { color: #527449; }#svgStatus[data-status=failed] { color: #a34831; }
.svg-upload-button { border: 1px solid #ded0bf; border-radius: 8px; padding: 7px 9px; background: #fbf7f0; color: #926c48; font-size: 11px; cursor: pointer; white-space: nowrap; }
.svg-upload-button:disabled { opacity: .5; cursor: wait; }.svg-upload-status { font-size: 11px; color: #926c48; padding: 5px 0 9px; }
.svg-message-attachment { display: flex; align-items: center; gap: 8px; padding: 8px; margin-top: 8px; border: 1px solid #e2d5c5; border-radius: 10px; font-size: 11px; word-break: break-all; }.svg-message-attachment img { width: 36px; height: 36px; object-fit: contain; }
.workshop-page { background: #f4f1eb; height: 100dvh; overflow: hidden; }
.workshop-main { width: 100%; max-width: none; margin: 0; padding: 0; }
.workshop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; height: 100dvh; min-height: 0; overflow: hidden; }
.factory { min-width: 0; position: relative; display: flex; flex-direction: column; height: 100dvh; background: radial-gradient(ellipse at 45% 44%, #fffdf8 0%, #f0ece5 80%); overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; overscroll-behavior: contain; }
.factory-heading { flex-shrink: 0; display: flex; align-items: center; gap: 12px; padding: 24px 32px 12px; }
.factory-heading h1 { font-size: 15px; font-weight: 500; margin: 0; color: #65594d; }
.factory-heading small { margin-left: auto; font-size: 11px; color: #a09486; }
.workshop-home { display: grid; place-items: center; text-decoration: none; color: #918071; width: 32px; height: 32px; border-radius: 50%; }
.workshop-home:hover { background: #e6dfd5; }
.workshop-page .action-icon { stroke-width: 3; }
.workshop-home .action-icon { width: 20px; height: 20px; }
.workshop-drawer .change-coach .action-icon { width: 18px; height: 18px; }
.workshop-form .button { gap: 6px; }
.workshop-form .button > .action-icon { width: 17px; height: 17px; padding: 0; border-radius: 0; background: transparent; }
.catalog-pane { flex: 1; display: flex; align-items: center; padding: 12px 6%; }
.catalog-pane:has(.workshop-inspector:not([hidden])) { display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 19vw, 260px); gap: 20px; padding-right: 28px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 16px; width: 100%; position: relative; isolation: isolate; }
.catalog-card { min-width: 0; position: relative; text-align: center; padding: 8px; color: #8a7a68; transition: opacity 1.4s, transform 1.4s; }
.catalog-slot { height: clamp(100px, 17dvh, 190px); position: relative; }
.catalog-slot img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.catalog-number { display: none; }
.catalog-name { display: block; font-size: 11px; font-weight: 400; margin-top: 8px; }
.catalog-family { display: block; font-size: 9px; color: #b1a494; margin-top: 5px; }
.catalog-recommended { display: none; }
.catalog-grid > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.catalog-card.is-excluded { opacity: .2; }
.catalog-grid.is-focusing .catalog-card:not(.is-selected) { opacity: 0; transform: scale(.85); }
.catalog-grid.is-focusing .catalog-card.is-selected img { transform: scale(1.4); transition: transform 1.4s; }
.workbench-pane { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 12px 28px 0; }
.group-tray { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; min-height: 24px; }
.group-part { appearance: none; border: 0; border-bottom: 1px solid transparent; background: transparent; color: #b3a492; font: inherit; font-size: 11px; min-height: 36px; padding: 8px 4px; cursor: pointer; }
.group-part:hover:not(:disabled) { color: #805c3e; border-bottom-color: #c8ad94; }
.group-part:disabled { opacity: .6; cursor: wait; }
.group-part.active { color: #805c3e; border-bottom-color: #b48661; }
.group-part small { display: none; }
.workbench-preview { flex: 1; min-height: 320px; display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 19vw, 260px); align-items: stretch; gap: 20px; }
.workshop-stage { min-height: 320px; position: relative; width: 100%; }
.workshop-stage canvas { width: 100%; height: 100%; display: block; }
.workshop-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; pointer-events: none; }
.workshop-fallback img { width: 75%; height: 75%; object-fit: contain; mix-blend-mode: multiply; }
.workshop-fallback p { font-size: 11px; color: #a29484; padding: 0 20px; text-align: center; }
.workshop-inspector { align-self: center; min-width: 0; max-height: calc(100dvh - 220px); overflow-y: auto; scrollbar-width: thin; margin: 20px 0; padding: 22px; border: 1px solid #ddcbb7; border-radius: 20px; background: #fffcf7f5; box-shadow: 0 12px 38px #75523814, 0 2px 6px #75523808; color: #70543e; }
.inspector-eyebrow { margin: 0 0 8px; color: #927255; font-size: 11px; letter-spacing: .08em; }
.workshop-inspector h2 { margin: 0; font-size: 17px; line-height: 1.5; font-weight: 600; }
.workshop-activity { display: flex; align-items: center; gap: 9px; margin: 0 0 20px; padding: 12px; border-radius: 12px; background: #f4e7d5; color: #775033; font-size: 12px; line-height: 1.8; }
.workshop-activity:last-child, .workshop-activity:has(+ [hidden]):has(~ .workshop-changes[hidden]) { margin-bottom: 0; }
.workshop-activity::before { content: ''; flex: 0 0 12px; width: 12px; height: 12px; border: 2px solid #d9bea0; border-top-color: #95633d; border-radius: 50%; animation: factory-spin 1.2s linear infinite; }
.inspector-parameters { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px 8px; margin: 20px 0 14px; }
.inspector-parameters dt { font-size: 12px; color: #866d57; }
.inspector-parameters dd { margin: 0; color: #62442e; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.workshop-inspector .factory-tool { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 7px 10px; border: 1px solid #e4d6c5; border-radius: 10px; font-size: 11px; color: #876449; }
.workshop-inspector .factory-tool:hover:not(:disabled) { background: #f2e9dd; }
.workshop-inspector .factory-tool:disabled { opacity: .45; cursor: default; }
.workshop-inspector .factory-tool .action-icon { width: 14px; height: 14px; }
.workshop-changes { margin-top: 20px; padding-top: 18px; border-top: 1px solid #e7dccc; }
.workshop-changes h3 { margin: 0; font-size: 13px; font-weight: 600; }
#workshopChangesStatus { margin: 6px 0 14px; font-size: 11px; color: #907154; line-height: 1.7; }
.workshop-changes ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.workshop-changes li { padding: 11px; background: #f5eee4; border: 1px solid transparent; border-radius: 12px; }
.change-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.change-heading b { font-size: 12px; font-weight: 500; }
.change-heading span { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: #846240; }
.workshop-changes li p { margin: 6px 0 0; font-size: 11px; line-height: 1.8; color: #886e56; overflow-wrap: anywhere; }
.workshop-changes li:is([data-status="queued"], [data-status="building"], [data-status="loading"]) .change-heading span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #a87849; animation: workshop-pulse 1.6s infinite; }
.workshop-changes li[data-status="ready"] .change-heading span { color: #4d7351; }
.workshop-changes li[data-status="failed"] { border-color: #e5bca7; background: #fbefe7; }
.workshop-changes li[data-status="failed"] .change-heading span, .workshop-changes li .change-error { color: #a04b31; }
.factory-tool { border: 0; background: transparent; padding: 12px; color: #ac9984; font-size: 10px; cursor: pointer; }
.factory-footer { flex-shrink: 0; padding: 12px 28px 30px; text-align: center; }
.factory-status { color: #a4917c; font-size: 11px; min-height: 20px; line-height: 1.8; margin: 0; }
.factory-status:empty { display: none; }
.factory[data-busy="true"] .factory-status::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #b78d65; margin-right: 8px; animation: workshop-pulse 1.6s infinite; }
.factory[data-busy="true"] canvas { pointer-events: none; }
.download-dock { margin-top: 14px; }
.model-check { position:relative; display:flex; flex-shrink:0; }
.model-check .button { min-height:42px; font-size:12px; }
.model-check-tooltip { position:absolute; bottom:calc(100% + 8px); left:0; width:250px; max-width:calc(100vw - 48px); padding:10px 12px; border-radius:10px; background:#534638; color:#fffaf4; font-size:12px; line-height:1.6; box-shadow:0 4px 16px #40302024; visibility:hidden; opacity:0; pointer-events:none; z-index:10; }
.model-check:hover .model-check-tooltip, .model-check:focus-within .model-check-tooltip { visibility:visible; opacity:1; }
.model-check button:disabled { cursor:default; }
.workshop-downloads { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.workshop-downloads .button { font-size: 12px; font-weight: 500; min-height: 42px; box-shadow: none; }
.workshop-downloads .primary { background: #966d4f; }
.workshop-downloads .ghost { border: 1px solid #d8c5af; color: #977455; background: transparent; }
.download-stp { color: #ac9781; font-size: 10px; padding: 12px 6px; }
.export-status { font-size: 11px; color: #a4573d; }
.factory-error { padding: 12px; color: #a05237; }
.factory-error p { font-size: 12px; line-height: 1.8; }
.factory-error .button { font-size: 11px; background: #efe4d8; color: #937152; margin: 0 4px; }
.workshop-drawer { min-width: 0; background: #fffcf7; border-left: 1px solid #e6ded2; height: 100dvh; position: sticky; top: 0; }
.workshop-drawer-inner { display: flex; flex-direction: column; height: 100%; }
.workshop-drawer-heading { display: flex; gap: 9px; align-items: center; padding: 30px 26px 22px; }
.workshop-drawer-heading h2 { font-size: 14px; font-weight: 500; margin: 0; color: #7d6550; }
.ai-dot { width: 5px; height: 5px; border-radius: 50%; background: #b78d65; }
.workshop-drawer-content { flex: 1; overflow-y: auto; min-height: 0; padding: 12px 26px 24px; scrollbar-width: thin; }
.workshop-guide { padding: 24px 0; }
.workshop-guide h3 { font-size: 20px; line-height: 1.65; font-weight: 400; color: #846d57; margin: 0 0 14px; }
.workshop-guide p { font-size: 12px; line-height: 2; color: #ad9781; margin: 0; }
.workshop-commands { margin: 0; padding: 0; list-style: none; display: grid; gap: 24px; }
.workshop-commands li { font-size: 12px; color: #806b56; line-height: 1.9; overflow-wrap: anywhere; }
.workshop-commands small { color: #ba9d7e; font-size: 9px; }
.workshop-commands p { margin: 5px 0 0; white-space: pre-wrap; }
.workshop-commands .user { background: #f1ebe2; border-radius: 14px 14px 4px 14px; padding: 12px 15px; margin-left: 24px; color: #8c745d; }
.workshop-commands .user small { display: none; }
.workshop-commands .user p { margin: 0; }
.workshop-commands .workshop-markdown { margin-top: 5px; white-space: normal; line-height: 1.85; }
.workshop-markdown > :first-child { margin-top: 0; }
.workshop-markdown > :last-child { margin-bottom: 0; }
.workshop-commands .workshop-markdown p { margin: 0 0 10px; white-space: normal; }
.workshop-markdown :is(h1, h2, h3, h4, h5, h6) { color: #70543e; font-size: 14px; line-height: 1.6; margin: 16px 0 8px; font-weight: 600; }
.workshop-markdown :is(ul, ol) { margin: 8px 0 12px; padding-left: 22px; }
.workshop-markdown li { margin: 5px 0; }
.workshop-markdown li > p { margin-bottom: 4px; }
.workshop-markdown strong { font-weight: 650; color: #70543e; }
.workshop-markdown a { color: #855431; text-decoration: underline; text-underline-offset: 3px; }
.workshop-markdown blockquote { margin: 12px 0; padding: 4px 0 4px 12px; border-left: 3px solid #d2b89b; color: #92785e; }
.workshop-markdown code { padding: 2px 5px; border-radius: 4px; background: #eee5d8; font-size: .92em; overflow-wrap: anywhere; }
.workshop-markdown pre { max-width: 100%; overflow-x: auto; margin: 12px 0; padding: 12px; border-radius: 10px; background: #f1e9de; white-space: pre; }
.workshop-markdown pre code { padding: 0; background: none; overflow-wrap: normal; }
.workshop-markdown table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 12px 0; font-size: 11px; }
.workshop-markdown :is(th, td) { padding: 6px 9px; border: 1px solid #e1d3c0; text-align: left; }
.workshop-markdown th { background: #f1e9de; font-weight: 600; }
.workshop-markdown hr { border: 0; border-top: 1px solid #e1d3c0; margin: 14px 0; }
.workshop-markdown input[type="checkbox"] { margin-right: 6px; }
.workshop-decision { margin-top: 18px; }
.workshop-decision h3 { font-size: 12px; font-weight: 400; line-height: 1.8; color: #91765b; }
.workshop-decision h3:empty { display: none; }
#workshopDecisionChoices { display: flex; flex-wrap: wrap; gap: 8px; }
.workshop-decision button { border: 1px solid #e4d7c7; border-radius: 18px; padding: 8px 12px; min-height: 36px; background: transparent; color: #a18161; font-size: 11px; cursor: pointer; }
.workshop-form { margin: 0 18px 18px; padding: 12px; border: 1px solid #e2d5c5; border-radius: 18px; background: #faf6ef; }
.workshop-form textarea { width: 100%; border: 0; outline: none; resize: none; min-height: 80px; max-height: 150px; background: transparent; font: inherit; font-size: 12px; line-height: 1.9; color: #745f4b; }
.workshop-form textarea::placeholder { color: #baa48d; }
.workshop-form:focus-within { border-color: #bd9470; }
.workshop-form-bottom { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.workshop-form-bottom span { font-size: 8px; color: #bfaa95; }
.workshop-form .button { font-size: 11px; font-weight: 500; min-height: 36px; padding: 8px 15px; background: #9b7353; box-shadow: none; }
.workshop-form .button:disabled { opacity: .4; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.workshop-page .site-watermark { display: none; }
@keyframes workshop-pulse { 50% { opacity: .3; } }
.workshop-print-dialog { width: min(480px, calc(100% - 28px)); max-height: 90dvh; border: 1px solid #e1d2bf; border-radius: 24px; padding: 0; background: #fffcf6; color: #745b44; }
.workshop-print-dialog::backdrop { background: #40322265; backdrop-filter: blur(4px); }
.workshop-print-dialog > header { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid #eadfce; }
.workshop-print-dialog > header p { font-size: 9px; color: #b29677; letter-spacing: .13em; margin: 0 0 8px; }
.workshop-print-dialog h2 { font-size: 19px; font-weight: 500; margin: 0; }
.workshop-print-content { padding: 24px; }
.workshop-print-content fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.print-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.print-fields label { display: flex; flex-direction: column; gap: 7px; color: #97795e; font-size: 12px; min-width: 0; }
.print-fields select { width: 100%; min-height: 42px; padding: 8px; border: 1px solid #dfd0be; border-radius: 10px; background: #fffcf7; color: #745b44; font: inherit; }
.workshop-print-dialog select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2397795e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px 16px; }
.print-wide { grid-column: 1 / -1; }
.print-advanced { margin-top: 15px; }
.print-advanced summary { padding: 10px 0; font-size: 12px; color: #97795e; cursor: pointer; }
.workshop-print-dialog .print-advanced summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.workshop-print-dialog .print-advanced summary::-webkit-details-marker { display: none; }
.workshop-print-dialog .print-advanced summary .action-icon { width: 18px; height: 18px; }
.workshop-print-dialog .print-advanced[open] summary .action-icon { transform: rotate(180deg); }
.print-advanced .print-fields { margin-top: 8px; }
.download-link { display: flex; width: 100%; justify-content: space-between; text-decoration: none; min-height: 44px; }
#preparePrint:disabled { opacity: .45; cursor: default; }
.print-status { padding: 12px; margin-top: 12px; background: #f3e9da; border-radius: 12px; font-size: 12px; line-height: 1.8; }
.print-status.error { color: #a54b2b; background: #f9e8dc; }
#printDownload { margin-top: 12px; }
.status-spinner { display: inline-block; width: 13px; height: 13px; margin-right: 7px; border: 1px solid #d5b78f; border-top-color: #9f7048; border-radius: 50%; animation: factory-spin 1.5s linear infinite; vertical-align: middle; }
.workshop-page button:focus-visible, .workshop-page a:focus-visible { outline: 2px solid #bd8d5c; outline-offset: 3px; }
body:has(#workshopPrintDialog[open]) { overflow: hidden; }

@keyframes factory-spin { to { transform: rotate(360deg); } }
@media (min-width: 1600px) { .workshop-layout { grid-template-columns: minmax(0, 1fr) 410px; } }
@media (max-width: 1000px) and (min-width: 701px) { .workshop-layout { grid-template-columns: minmax(0, 1fr) 310px; } .catalog-grid { gap: 22px 4px; } .factory-heading { padding: 18px; } .catalog-pane { padding: 6px 18px; } }
@media (max-width: 1100px) {
  .catalog-pane:has(.workshop-inspector:not([hidden])) { display: flex; flex-direction: column; padding: 12px 18px; }
  .workbench-preview { display: flex; flex-direction: column; min-height: 0; gap: 0; }
  .workshop-stage { flex: 1 0 auto; height: 38dvh; min-height: 230px; }
  .workshop-inspector { align-self: stretch; max-height: none; margin: 12px 0; padding: 18px; }
  .inspector-parameters { margin: 12px 0; }
}
@media (max-width: 700px) {
  .workshop-page { height: auto; overflow-y: auto; }
  .workshop-layout { display: flex; flex-direction: column; height: auto; min-height: 100dvh; overflow: visible; }
  .factory { height: auto; min-height: 45dvh; max-height: none; overflow: visible; }
  .factory-heading { padding: 12px 16px 6px; }
  .factory-heading h1 { font-size: 13px; }
  .factory-heading small { font-size: 10px; }
  .catalog-pane { padding: 8px 16px 12px; }
  .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 4px; }
  .catalog-slot { height: 78px; }
  .catalog-card { padding: 4px; }
  .catalog-name { font-size: 9px; }
  .catalog-family { display: none; }
  .workbench-pane { padding: 4px 16px 0; min-height: 200px; }
  .group-part { font-size: 10px; }
  .workshop-stage { height: 27dvh; min-height: 155px; }
  .workshop-inspector { padding: 16px; border-radius: 16px; }
  .workshop-inspector h2 { font-size: 16px; }
  .factory-tool { padding: 8px; }
  .factory-footer { flex-shrink: 0; padding: 6px 16px 14px; }
  .factory-status { font-size: 9px; }
  .workshop-downloads { gap: 8px; }
  .workshop-downloads .button { font-size: 10px; padding: 9px 14px; min-height: 38px; }
  .download-dock { margin-top: 8px; }
  .workshop-drawer { position: relative; height: 55dvh; min-height: 360px; flex: none; border-left: 0; border-top: 1px solid #e6ded2; }
  .workshop-drawer-heading { padding: 16px 20px 10px; }
  .workshop-drawer-content { padding: 10px 20px 16px; }
  .workshop-guide { padding: 8px 0 16px; }
  .workshop-guide h3 { font-size: 17px; margin-bottom: 8px; }
  .workshop-guide p { font-size: 11px; }
  .workshop-commands { gap: 18px; }
  .workshop-form { margin: 0 12px max(12px, env(safe-area-inset-bottom)); padding: 10px; }
  .workshop-form textarea { min-height: 54px; }
  .workshop-form-bottom span { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) { .workshop-page *, .workshop-page *::before, .workshop-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.workshop-drawer-heading { gap: 12px; }
.workshop-coach-photo-link { flex: 0 0 44px; border-radius: 50%; }
.workshop-coach-photo { display: block; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 32%; }
.workshop-drawer-heading h2 { font-size: 17px; font-weight: 600; color: #705844; }
.workshop-drawer-heading p { margin: 4px 0 0; color: #ac9680; font-size: 10px; }
.workshop-commands .assistant { display: flex; align-items: flex-start; gap: 10px; }
.workshop-message-avatar { flex: 0 0 30px; width: 30px; height: 30px; object-fit: cover; object-position: center 32%; border-radius: 50%; }
.workshop-message-body { min-width: 0; }
.workshop-commands .assistant small { font-size: 11px; color: #967451; font-weight: 600; }
.workshop-test-progress { flex-shrink: 0; margin: 12px 28px 0; padding: 12px 16px; border: 1px solid #dfd3c2; border-radius: 16px; background: #fffcf7; color: #977456; }
.workshop-test-progress p { margin: 6px 0 0; font-size: 11px; line-height: 1.8; }
.workshop-test-progress .quick-test-progress-heading { font-size: 11px; }
.workshop-test-progress .quick-test-progress-heading button { width: 26px; height: 26px; font-size: 19px; background: #f0e7dc; color: #a5825e; }
.workshop-test-progress #quickTestLinks { margin-top: 8px; }
.workshop-test-progress .button { min-height: 32px; padding: 7px 13px; font-size: 10px; background: #f7f0e6; color: #926c48; }
.workshop-test-progress.test-error { border-color: #d69b85; color: #9a4b32; }
.workshop-test-progress.test-complete { border-color: #b7c4b1; }
@media (max-width: 780px) {
  .workshop-coach-photo-link { flex-basis: 38px; }
  .workshop-coach-photo { width: 38px; height: 38px; }
  .workshop-drawer-heading h2 { font-size: 16px; }
  .workshop-test-progress { margin: 8px 16px 0; padding: 8px 12px; }
}

/* Paint controls remain in the existing accessory inspector. */
.appearance-inspector { margin: 18px 0; padding-top: 16px; border-top: 1px solid #e9dfd2; }
.appearance-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.appearance-heading h3 { margin: 0; font-size: 13px; font-weight: 600; }
.appearance-heading span { font-size: 11px; color: #98785c; }
.paint-targets { display: flex; gap: 5px; margin: 12px 0; }
.paint-targets button { flex: 1; min-height: 33px; border: 1px solid #dfcfbb; border-radius: 9px; background: transparent; color: #8a674b; font-size: 11px; cursor: pointer; }
.paint-targets button[aria-pressed="true"] { background: #a47955; border-color: #a47955; color: #fffaf4; }
.pla-palette { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 8px; padding: 3px; }
.pla-palette button { aspect-ratio: 1; min-width: 0; border: 1px solid #0002; border-radius: 50%; background: var(--swatch); padding: 0; cursor: pointer; position: relative; }
.pla-palette button[aria-pressed="true"] { outline: 2px solid #8f6444; outline-offset: 3px; }
.pla-palette button:focus-visible { outline: 3px solid #2b76b9; outline-offset: 3px; }
.paint-selected-color { margin: 10px 0 0; font-size: 11px; color: #876449; }
.paint-size-label { display: flex; justify-content: space-between; margin-top: 15px; font-size: 11px; }
#paintSize { width: 100%; accent-color: #a47955; margin: 8px 0; }
.paint-tools { display: flex; flex-wrap: wrap; gap: 5px; }
.paint-tools button[aria-pressed="true"] { background: #eaddcb; border-color: #b99773; }
.paint-hint, .paint-print-note { font-size: 10px; line-height: 1.65; margin: 10px 0 0; color: #98785c; }
.paint-print-note { color: #ac9580; }
#paintHint[data-error="true"] { color: #a64d35; }
@media (max-width:780px) { .pla-palette { grid-template-columns: repeat(13,minmax(0,1fr)); gap: 7px; } }
@media (max-width:400px) { .pla-palette { grid-template-columns: repeat(7,minmax(0,1fr)); max-width: 240px; } }

.engraving-progress { position:absolute; left:50%; top:14px; transform:translateX(-50%); z-index:3; display:flex; align-items:center; gap:12px; width:max-content; max-width:calc(100% - 28px); padding:12px 16px; border:1px solid #d8c2a9; border-radius:14px; background:#fffaf3ed; box-shadow:0 5px 18px #71533912; pointer-events:none; color:#795538; }
.engraving-progress b { font-size:13px; font-weight:600; }
.engraving-progress p { margin:4px 0 0; font-size:11px; line-height:1.6; color:#9a7c61; }
.engraving-progress-icon { width:16px; height:16px; flex-shrink:0; border:2px solid #dfcbb4; border-top-color:#9d6b43; border-radius:50%; animation:factory-spin 1s linear infinite; }
.engraving-progress[data-status="ready"] { border-color:#b9cfad; }
.engraving-progress[data-status="ready"] .engraving-progress-icon { border:0; animation:none; width:20px; height:20px; }
.engraving-progress[data-status="ready"] .engraving-progress-icon::before { content:'✓'; color:#577c44; font-size:20px; }
.engraving-progress[data-status="failed"] .engraving-progress-icon { border:0; animation:none; }
.engraving-progress[data-status="failed"] .engraving-progress-icon::before { content:'!'; color:#a44f31; font-size:20px; }
.engraving-progress[data-status="preview_ready"] .engraving-progress-icon { border:0; animation:none; }
.engraving-progress[data-status="preview_ready"] .engraving-progress-icon::before { content:'○'; color:#966d4f; font-size:22px; }
.engraving-progress[data-status="validation_failed"] .engraving-progress-icon { border:0; animation:none; }
.engraving-progress[data-status="validation_failed"] .engraving-progress-icon::before { content:'!'; color:#a44f31; font-size:20px; }
.workshop-build-status { margin:0 0 10px; font-size:12px; color:#96704f; }
.workshop-downloads button:disabled { opacity:.45; cursor:wait; }
@media (prefers-reduced-motion:reduce) { .engraving-progress-icon { animation:none; } }

.print-prime-option:not([hidden]) { display:flex; flex-direction:row; gap:8px; align-items:center; }
#printPrimeTower { width:16px; height:16px; accent-color:#9d704a; }
.print-contents { font-size:13px; line-height:1.7; padding:12px 14px; background:#f3e9db; border-radius:10px; color:#735334; }
.print-helper-note { font-size:11px; line-height:1.7; color:#a08469; margin:8px 0 18px; }
.print-preview-figure { margin:16px 0; }
.print-preview-figure img { display:block; width:100%; max-width:360px; margin:auto; border-radius:12px; }
.print-preview-figure figcaption { text-align:center; margin-top:8px; font-size:11px; line-height:1.8; }
.print-key-part { color:#2078b4; }.print-key-support { color:#bf7620; }.print-key-tower { color:#8a819b; }

/* Manual selection and controls exist only in the welcome-page workshop. */
.model-load-status { position:absolute; z-index:4; bottom:20px; left:24px; margin:0; padding:9px 13px; border-radius:10px; background:#fffcf7e8; color:#987353; font-size:12px; }
.model-load-status::before { content:''; display:inline-block; width:10px; height:10px; margin-right:8px; border:2px solid #dcc4ad; border-top-color:#a46d43; border-radius:50%; vertical-align:-2px; animation:model-loading-spin 1s linear infinite; }
@keyframes model-loading-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .model-load-status::before { animation:none; } }
.direct-workshop-tools { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; padding:8px 32px 14px; }
.direct-workshop-tools label { display:flex; align-items:center; gap:10px; color:#8d725a; font-size:12px; }
.direct-workshop-tools select { width:185px; padding:9px 12px; border:1px solid #ddcbb7; border-radius:10px; background:#fffcf7; color:#73573e; font:inherit; }
.direct-view-tabs { display:flex; gap:4px; padding:4px; border-radius:12px; background:#eae1d5; }
.direct-view-tabs button { border:0; padding:8px 12px; border-radius:9px; background:transparent; color:#8c715a; font:inherit; font-size:12px; cursor:pointer; }
.direct-view-tabs button[aria-pressed="true"] { background:#fffcf7; color:#705036; box-shadow:0 1px 4px #71523816; }
.direct-view-tabs button:disabled { opacity:.5; cursor:default; }
.catalog-card.catalog-selectable { appearance:none; width:100%; border:1px solid transparent; border-radius:18px; background:transparent; font:inherit; cursor:pointer; }
.catalog-card.catalog-selectable:hover:not(:disabled) { opacity:1; border-color:#ddcbb7; background:#fffcf77a; }
.catalog-card.catalog-selectable.is-selected { border-color:#b99773; background:#fffcf777; }
.catalog-card.catalog-selectable:disabled { cursor:wait; }
.catalog-item { min-width:0; text-align:center; }
.catalog-item .catalog-name { width:fit-content; max-width:100%; margin-inline:auto; }
.installation-trigger { display:inline-block; min-height:28px; padding:4px 10px; margin-top:4px; color:#775b43; background:transparent; border:0; border-radius:6px; font:inherit; font-size:11px; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.installation-trigger:hover { background:#e8e0d5; }
.installation-trigger:focus-visible, .installation-preview button:focus-visible { outline:2px solid #775b43; outline-offset:3px; }
.installation-preview { position:fixed; z-index:200; width:min(360px, calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:auto; padding:12px; border-radius:14px; background:#fffdf9; color:#382e25; box-shadow:0 8px 32px #382e2529; font-size:13px; }
.installation-preview[hidden] { display:none; }
.installation-preview-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.installation-preview-title { margin:0; font-size:14px; line-height:1.5; font-weight:600; }
.installation-preview button { font:inherit; color:inherit; cursor:pointer; background:transparent; border:0; }
.installation-preview-close { flex:0 0 32px; min-height:32px; padding:0; font-size:24px !important; line-height:1; border-radius:6px; }
.installation-photo-frame { position:relative; display:grid; place-items:center; aspect-ratio:3 / 2; overflow:hidden; border-radius:8px; background:#eeebe6; }
.installation-photo { display:block; width:100%; height:100%; object-fit:contain; opacity:0; }
.installation-photo.is-ready { opacity:1; }
.installation-photo-status { position:absolute; inset:12px; display:grid; place-items:center; text-align:center; line-height:1.6; }
.installation-preview-controls { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:8px; }
.installation-preview-nav { min-height:36px; padding:6px 10px; border-radius:6px; }
.installation-preview button:hover:not(:disabled) { background:#e8e0d5; }
.installation-preview button:disabled { opacity:.4; cursor:default; }
.installation-photo-counter { font-variant-numeric:tabular-nums; }
@media (pointer:coarse) { .installation-trigger { min-height:44px; } .installation-preview button { min-height:44px; } }
.direct-workshop-editor { height:100%; overflow-y:auto; padding:28px 26px; scrollbar-width:thin; color:#775b43; }
.direct-workshop-editor header p { margin:0 0 6px; color:#ad9277; font-size:11px; }
.direct-workshop-editor h2 { margin:0 0 10px; font-size:22px; font-weight:600; }
.direct-workshop-editor header span { font-size:12px; line-height:1.7; color:#a58b72; }
.direct-workshop-editor section { margin-top:24px; padding-top:20px; border-top:1px solid #e5d8c9; }
.direct-workshop-editor h3 { margin:0 0 12px; font-size:14px; font-weight:600; }
.direct-help { font-size:12px; line-height:1.8; color:#9c8067; margin:10px 0; }
.direct-selected-list { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.direct-selected-list li { display:flex; gap:6px; }
.direct-selected-model { flex:1; min-width:0; display:flex; align-items:center; gap:10px; text-align:left; border:1px solid #e6daca; border-radius:11px; background:#fffcf7; padding:8px; color:#8b6a4e; font:inherit; font-size:12px; cursor:pointer; }
.direct-selected-model[aria-pressed="true"] { border-color:#b78960; background:#f5e9d9; }
.direct-selected-model img { width:42px; height:36px; object-fit:contain; mix-blend-mode:multiply; }
.direct-remove-model { flex-shrink:0; width:30px; border:0; border-radius:9px; background:transparent; color:#ac9177; font-size:21px; cursor:pointer; }
.direct-remove-model:hover { background:#f1e5d7; }
.direct-selected-model:disabled, .direct-remove-model:disabled { opacity:.5; cursor:wait; }
.direct-parameter-inputs { display:grid; gap:14px; margin-bottom:18px; }
.direct-parameter-inputs label { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:12px; }
.direct-parameter-inputs label span { display:flex; align-items:center; gap:6px; }
.direct-parameter-inputs input { width:80px; padding:8px; border:1px solid #d9c6af; border-radius:8px; color:#745438; background:#fff; font:inherit; font-size:14px; }
.direct-parameter-inputs small { color:#ac9278; }
#directEditFields { border:0; margin:0; padding:0; min-width:0; }
#directApplyEdit { width:100%; min-height:42px; }
.direct-restore { margin-top:12px; padding:8px 10px; border:1px solid #e1d2bf; border-radius:9px; background:transparent; color:#927153; font:inherit; font-size:11px; cursor:pointer; }
.direct-restore:disabled { opacity:.5; cursor:default; }
#directSvgActions { display:flex; flex-wrap:wrap; gap:8px; }
#directSvgActions #svgUploadStatus { width:100%; }
.direct-workshop-editor .download-dock { margin-top:24px; padding-top:20px; border-top:1px solid #e5d8c9; }
.direct-workshop-editor .workshop-downloads { justify-content:flex-start; }
@media (max-width:700px) {
 .direct-workshop-tools { padding:8px 16px; gap:10px; }
 .direct-workshop-tools select { width:168px; }
 .direct-view-tabs button { font-size:11px; padding:7px 10px; }
 .direct-workshop-editor { padding:22px 20px; height:auto; }
 .direct-workshop-page .workshop-drawer { height:auto; min-height:0; }
}
