.wear-auto-summary {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.wear-auto-summary span {
  padding: 5px 9px;
  border: 1px solid #d5dacc;
  border-radius: 14px;
  color: var(--cafe-forest);
  font-size: 12px;
}

.wear-adjustments {
  margin-top: 12px;
  border-top: 1px solid var(--cafe-line);
  padding-top: 10px;
}

.wear-adjustments summary {
  color: var(--cafe-muted);
  font-size: 12px;
  cursor: pointer;
}

.wear-adjustment-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.wear-adjustment-fields label {
  font-size: 12px;
  color: var(--cafe-muted);
}

.wear-adjustment-fields select {
  box-sizing: border-box;
  width: 100%;
  margin-top: 5px;
}

.wear-adjustment-fields .wear-upload {
  grid-column: 1 / -1;
}

.wear-note-field {
  margin-top: 18px;
}

.wear-flow {
  max-width: 620px;
}

.wear-person-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wear-person-choices {
  flex: 1;
  align-items: center;
  padding: 0;
}

.wear-current-photo {
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.wear-person-choices img {
  display: block;
  width: 120px;
  height: 96px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 6px;
  background: #e7e6dc;
}

.wear-person-choices span,
.wear-no-person {
  color: var(--cafe-muted);
  font-size: 13px;
}

.wear-manage-button {
  min-height: 36px;
  border: 1px solid var(--cafe-line);
  border-radius: 18px;
  background: transparent;
  color: var(--cafe-forest);
  padding: 6px 12px;
}

.wear-now-upload {
  margin-top: 10px;
  padding: 10px 12px;
}

.wear-now-upload input {
  display: none;
}

.wear-adjustment-fields .wear-note-field {
  grid-column: 1 / -1;
}

.wear-photo-manager {
  width: min(700px, calc(100vw - 32px));
  max-height: min(780px, calc(100dvh - 32px));
  border: 1px solid var(--cafe-line);
  border-radius: 10px;
  background: var(--cafe-foam);
  color: var(--ink);
  padding: 18px;
}

.wear-photo-manager::backdrop { background: #1d292433; }

.wear-photo-manager header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.wear-photo-manager h3 { flex: 1; margin: 0; }

.wear-photo-manager header button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
}

.wear-photo-manager .wear-save-form { margin-top: 16px; }

.wear-submit-bar {
  position: sticky;
  bottom: 0;
  margin: 18px -22px -22px;
  padding: 12px 22px max(12px, env(safe-area-inset-bottom));
  background: var(--cafe-foam);
  border-top: 1px solid var(--cafe-line);
}

.wear-submit-bar #wear-submit { width: 100%; }

@media (max-width: 700px) {
  .wear-adjustment-fields { grid-template-columns: 1fr; }
  .wear-photo-manager { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .wear-submit-bar { margin: 18px -16px -16px; padding-left: 16px; padding-right: 16px; }
}

/* Node workspace: contained previews, automatic connections, one primary action. */
.wear-section { max-width: 1120px; padding-top: 20px; padding-bottom: 24px; }
.wear-heading { margin-bottom: 4px; }
.wear-studio { margin-top: 0; }
.wear-studio-bar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:8px 0 12px; }
.wear-studio-bar > span { font-size:12px; color:var(--cafe-forest); }
.wear-studio-bar .button { min-height:44px; padding:10px 18px; }
.wear-canvas { position:relative; height:524px; overflow:hidden; border:1px solid var(--cafe-line); border-radius:10px; background-color:#efeee6; background-image:radial-gradient(#c9cec2 1px,transparent 1px); background-size:18px 18px; touch-action:none; isolation:isolate; }
.wear-world { position:absolute; inset:0; transform-origin:0 0; }
.wear-links { position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; }
.wear-links path { fill:none; stroke:var(--wear-wire,#b2bcb2); opacity:.4; stroke-width:2; vector-effect:non-scaling-stroke; }
.wear-links [data-wire].is-ready { opacity:.85; }
.wear-links [data-flow] { opacity:0; stroke:var(--wear-wire-flow,#249660); stroke-width:3; stroke-linecap:round; stroke-dasharray:8 18; }
.wear-links [data-flow].is-flowing { opacity:1; animation:wear-pipeline-flow 1.1s linear infinite; }
.wear-node { position:absolute; display:flex; flex-direction:column; min-width:0; border:1px solid #cdd2c7; border-radius:9px; background:var(--cafe-foam); box-shadow:0 6px 18px #20362712; }
.wear-node[data-node="person"] { left:2%; top:16px; width:27%; height:240px; }
.wear-node[data-node="garment"] { left:2%; top:280px; width:27%; height:192px; }
.wear-node[data-node="engine"] { left:39%; top:112px; width:23%; height:276px; }
.wear-node[data-node="result"] { left:72%; top:55px; width:26%; height:382px; }
.wear-node.is-dragging { z-index:5; box-shadow:0 14px 32px #20362728; }
.wear-node.is-drop-target { outline:3px solid var(--cafe-forest); }
.wear-node-head { display:flex; justify-content:space-between; align-items:center; gap:4px; width:100%; flex:none; height:44px; padding:0 12px; border:0; border-bottom:1px solid var(--cafe-line); border-radius:9px 9px 0 0; background:#e8ede5; color:var(--cafe-forest); font:inherit; font-size:13px; cursor:grab; touch-action:none; }
.wear-node.is-dragging .wear-node-head { cursor:grabbing; }
.wear-node[data-node="garment"] .wear-node-head { background:#eee8df; }
.wear-node-media { display:flex; flex:1; min-height:0; width:calc(100% - 4px); margin:2px; padding:0; align-items:center; justify-content:center; overflow:hidden; border:0; border-radius:3px; background:#e8e9e0; color:var(--cafe-muted); font:inherit; font-size:13px; }
button.wear-node-media { cursor:pointer; }
.wear-node-media:disabled { opacity:1; cursor:default; }
.wear-node-media img, .wear-node-media .wear-current-photo { width:100%; height:100%; min-height:0; display:block; object-fit:contain; }
/* Fill canvas thumbnails only. Fullscreen viewers and generation keep the originals. */
#wear-person-choices img, #wear-garment-preview img, #wear-result-preview img, #wear-result-preview video { object-fit:cover; object-position:50% 0%; }
#wear-garment-preview img { object-position:50% 18%; }
.wear-node-media .wear-current-photo { border:0; background:none; padding:0; color:var(--cafe-muted); cursor:zoom-in; }
.wear-node-actions { display:flex; justify-content:space-around; align-items:center; flex:none; min-height:44px; border-top:1px solid var(--cafe-line); font-size:12px; color:var(--cafe-muted); }
.wear-node-actions button,.wear-node-actions a { display:grid; place-items:center; min-height:44px; min-width:44px; border:0; padding:0 6px; background:none; color:var(--cafe-forest); font:inherit; font-size:12px; cursor:pointer; }
.wear-node-actions button:disabled { opacity:.5; cursor:default; }
.wear-engine-body { padding:14px; display:flex; flex-direction:column; flex:1; gap:9px; font-size:12px; min-width:0; }
.wear-engine-body > div { background:#edf0e8; border-radius:4px; padding:8px; }
.wear-engine-body p { margin:0; color:var(--cafe-muted); }
.wear-engine-body strong { font-size:12px; font-weight:500; color:var(--cafe-forest); }
.wear-engine-body button { margin-top:auto; min-height:44px; border:0; background:none; color:var(--cafe-forest); font:inherit; cursor:pointer; }
.wear-port { position:absolute; width:10px; height:10px; border-radius:50%; background:var(--wear-wire,#668978); border:2px solid var(--cafe-foam); top:calc(50% - 7px); }
.wear-port.out { right:-7px; }.wear-port.in { left:-7px; }
.wear-port.person { top:80px; }.wear-port.garment { top:123px; background:var(--wear-wire,#ac8162); }
.wear-node[data-node="garment"] .wear-port { background:var(--wear-wire,#ac8162); }
.wear-canvas-tools { position:absolute; bottom:8px; right:10px; display:flex; background:var(--cafe-foam); border:1px solid var(--cafe-line); border-radius:7px; z-index:8; }
.wear-canvas-tools button { min-width:44px; min-height:44px; border:0; background:none; font:inherit; font-size:13px; color:var(--cafe-forest); cursor:pointer; }
.wear-canvas.is-compact { height:492px; }
.wear-canvas.is-compact .wear-node[data-node="person"] { left:3%; top:12px; width:43%; height:212px; }
.wear-canvas.is-compact .wear-node[data-node="garment"] { left:3%; top:242px; width:43%; height:184px; }
.wear-canvas.is-compact .wear-node[data-node="engine"] { left:55%; top:12px; width:42%; height:212px; }
.wear-canvas.is-compact .wear-node[data-node="result"] { left:55%; top:242px; width:42%; height:234px; }
.wear-canvas.is-compact .wear-node-head { padding:0 8px; font-size:12px; }
.wear-canvas.is-compact .wear-engine-body { padding:8px; gap:3px; font-size:11px; min-height:0; }
.wear-canvas.is-compact .wear-engine-body > * { line-height:14px; }
.wear-canvas.is-compact .wear-engine-body button { flex-shrink:0; }
.wear-canvas.is-compact .wear-engine-body > div { padding:5px; }
.wear-canvas.is-compact .wear-engine-body strong { font-size:11px; }
.wear-canvas.is-compact .wear-port.person { top:63px; }.wear-canvas.is-compact .wear-port.garment { top:92px; }
.wear-canvas.is-compact [data-port="engine-out"] { left:calc(50% - 5px); right:auto; top:auto; bottom:-7px; }
.wear-canvas.is-compact [data-port="result-in"] { left:calc(50% - 5px); top:-7px; }
.wear-canvas.is-compact .wear-node-actions > span { display:none; }
.wear-canvas.is-compact .wear-canvas-tools { right:auto; left:6px; }
.wear-canvas.is-compact .wear-canvas-tools button { min-width:36px; }
.wear-image-viewer { width:min(960px,calc(100vw - 24px)); max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); padding:12px; border:0; border-radius:10px; background:var(--cafe-foam); }
.wear-image-viewer::backdrop { background:#10231dcc; }
.wear-image-viewer header { display:flex; justify-content:space-between; align-items:center; }
.wear-image-viewer h3 { margin:0; font-size:16px; }
.wear-image-viewer header button { min-width:44px; min-height:44px; border:0; background:none; color:var(--ink); font-size:25px; }
.wear-photo-manager h3:focus, .wear-image-viewer h3:focus { outline:none; }
.wear-photo-manager header button, .wear-image-viewer header button { -webkit-tap-highlight-color:transparent; }
.wear-image-viewer img { display:block; width:100%; height:min(78dvh,800px); object-fit:contain; }
#wear-adjustments textarea { width:100%; box-sizing:border-box; margin-top:8px; }
@media(max-width:700px) { .wear-heading h2 { font-size:26px; } .wear-section { padding-top:12px; } }
@media(prefers-reduced-motion:reduce) { .wear-node,.wear-links path { transition:none; } }
.wear-adjustment-fields .wear-natural-control { display:flex; align-items:center; justify-content:space-between; }
#wear-natural-finish { width:36px; height:22px; accent-color:var(--cafe-forest,#294635); margin:0; }
#wear-finish-compare { border:0; background:transparent; font-size:12px; color:var(--cafe-forest,#294635); margin-left:auto; padding:8px; width:auto; min-width:64px; flex-shrink:0; white-space:nowrap; }
#work-finish-toggle { border:0; background:transparent; font-size:12px; color:inherit; margin-left:auto; padding:8px; width:auto; min-width:64px; flex-shrink:0; white-space:nowrap; }
#work-reference-toggle { border:0; background:transparent; color:inherit; font-size:12px; padding:8px; min-width:64px; min-height:44px; white-space:nowrap; }
.needs-review::after { content:''; display:inline-block; width:6px; height:6px; border-radius:50%; background:#ae682b; margin-left:4px; vertical-align:middle; }
.wear-review-tabs { display:flex; gap:6px; margin-top:8px; }
.wear-review-tabs button { flex:1; min-height:44px; padding:8px 4px; border:0; border-radius:6px; background:#e8e9e0; color:var(--ink); }
.wear-review-tabs [aria-pressed="true"] { background:var(--cafe-forest); color:white; }
.wear-review-note,.wear-review-load { font-size:12px; color:var(--cafe-muted); margin:8px 0; line-height:1.5; }
.wear-review img { height:min(65dvh,680px); }
.wear-review img[hidden] { display:none; }
#wear-result-review { position:absolute; top:0; right:0; width:44px; height:44px; border:0; background:none; color:var(--cafe-forest); font-size:20px; cursor:pointer; }
.wear-node[data-node="result"]:has(#wear-result-review:not([hidden])) .wear-node-head { padding-right:48px; }
.wear-node[data-node="result"]:has(#wear-result-review:not([hidden])) .wear-node-head > span:last-child { display:none; }
.wear-node.is-drop-target { box-shadow:0 0 0 5px #66897822,0 12px 24px #20362728; }
@media(max-width:480px) { .work-preview-header h2 { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } }

/* Status lives on the existing nodes. The canvas and page retain their heights. */
.wear-node { transition:border-color .2s,box-shadow .2s; }
.wear-node.is-empty { border-style:dashed; }
.wear-node.is-ready { border-color:#40815d; box-shadow:0 0 0 1px #40815d22,0 6px 18px #20362712; }
.wear-node.is-ready .wear-node-head { background:#e3eee3; }
.wear-node.is-ready .wear-port { background:var(--wear-wire,#40815d); }
.wear-node.is-active { border-color:#299361; }
.wear-node[data-node="engine"].is-active { animation:wear-engine-pulse 2.4s ease-in-out infinite; }
.wear-node.is-blocked { border-color:#ac7c40; }
.wear-node-mark { display:inline-block; margin-left:5px; color:#287549; font-weight:700; }
.wear-node.is-blocked .wear-node-mark { color:#97622c; }
.wear-node.just-completed { animation:wear-completed .8s ease-out; }
.wear-pipeline-progress { flex:none; padding:3px 8px 6px; color:var(--cafe-forest); }
.wear-pipeline-progress[hidden] { display:none; }
.wear-pipeline-status { font-size:11px; line-height:16px; margin-bottom:3px; }
.wear-pipeline-track { display:flex; gap:4px; }
.wear-pipeline-step { flex:1; min-width:0; font-size:10px; color:var(--cafe-muted); text-align:center; line-height:15px; }
.wear-pipeline-step i { display:block; position:relative; overflow:hidden; height:4px; border-radius:4px; margin-bottom:3px; background:#d9dfd4; }
.wear-pipeline-step.is-complete i { background:#40815d; }
.wear-pipeline-step.is-current { color:#287549; }
.wear-pipeline-step.is-current i { background:#c8dfcc; }
.wear-pipeline-step.is-current i::after { content:''; position:absolute; inset:0; width:45%; background:#329665; border-radius:4px; animation:wear-stage-flow 1.4s ease-in-out infinite; }
.wear-pipeline-progress[data-phase="queued"] .is-current i::after { background:#ab8950; }
.wear-pipeline-progress[data-phase="uncertain"],.wear-pipeline-progress[data-phase="error"] { color:#97622c; }
.wear-pipeline-progress[data-phase="uncertain"] i,.wear-pipeline-progress[data-phase="error"] i { background:#d6c4a9; }
.wear-pipeline-progress[data-phase="done"] { padding:0 2px 2px; }
.wear-pipeline-progress[data-phase="done"] .wear-pipeline-status,
.wear-pipeline-progress[data-phase="done"] .wear-pipeline-step > span { display:none; }
.wear-pipeline-progress[data-phase="done"] i { margin:0; height:3px; }
@keyframes wear-pipeline-flow { to { stroke-dashoffset:-26; } }
@keyframes wear-stage-flow { from { transform:translateX(-105%); } to { transform:translateX(325%); } }
@keyframes wear-engine-pulse { 50% { box-shadow:0 0 0 4px #29936118,0 6px 18px #20362712; } }
@keyframes wear-completed { 0% { box-shadow:0 0 0 5px #29936150; } 100% { box-shadow:0 0 0 1px #40815d22,0 6px 18px #20362712; } }
@media(prefers-reduced-motion:reduce) {
  .wear-node,.wear-links [data-flow].is-flowing,.wear-node[data-node="engine"].is-active,.wear-node.just-completed,.wear-pipeline-step.is-current i::after { animation:none; transition:none; }
}
/* The primary action reflects the whole static-to-LIVE pipeline. */
#wear-submit.is-processing::before{content:"";display:inline-block;width:12px;height:12px;margin-right:8px;border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-2px;animation:wear-submit-spin .8s linear infinite}
@keyframes wear-submit-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#wear-submit.is-processing::before{animation:none}}

/* Preserve-mode visual refinement. Native CSS, no new component system.
   Layers remain: canvas isolation, dragged node 5, canvas controls 8, dialogs top layer.
   Radius scale: nodes/dialogs 12px, controls 8px, circular close targets unchanged. */
body:has(#wear:not([hidden])) {
  --wear-surface: #fffcf6;
  --wear-canvas: #eeeee7;
  --wear-media: #e6e9e1;
  --wear-edge: #c3cbbf;
  --wear-secondary: #5a695e;
  --wear-success: #3c7856;
  --wear-warning: #855720;
  --wear-on-accent: #fffcf6;
  --wear-shadow: #233c2f0d;
  --wear-grid: #53654e26;
  --wear-focus: #24483e;
}
body:has(#wear:not([hidden])) .header { height:72px; background:var(--cafe-cream); border-color:var(--cafe-line); }
body:has(#wear:not([hidden])) .header nav { color:var(--wear-secondary); background:var(--cafe-cream); }
body:has(#wear:not([hidden])) .header nav a { white-space:nowrap; }
.wear-section { padding-top:16px; padding-bottom:20px; }
.wear-section > .page-back { font-size:12px; color:var(--wear-secondary); }
.wear-heading { margin:6px 0 0; }
.wear-heading h2 { font-family:inherit; font-size:28px; font-weight:650; line-height:1.25; letter-spacing:-.025em; margin:0; }
.wear-status { border:1px solid var(--wear-edge); border-radius:8px; background:var(--wear-surface); color:var(--wear-secondary); }
.wear-status button { min-height:44px; padding:8px 14px; margin-left:8px; border:0; border-radius:8px; background:var(--cafe-forest); color:var(--wear-on-accent); font-weight:600; }
.wear-studio-bar { margin:8px 0 12px; }
.wear-studio-bar > span { color:var(--wear-secondary); }
.wear-studio-bar:has(#wear-recovery:not([hidden])) > span { display:none; }
#wear-recovery { color:var(--wear-secondary); background:transparent; border:1px solid var(--wear-edge); }
.wear-studio-bar .button { border-radius:8px; min-width:112px; min-height:44px; white-space:nowrap; font-size:13px; }
#wear-submit:hover:not(:disabled) { background:#315a49; transform:translateY(-1px); }
#wear-submit:active:not(:disabled) { transform:scale(.98); }
#wear-submit:disabled { opacity:1; background:var(--wear-media); color:var(--wear-secondary); cursor:default; }
.wear-canvas { border-color:var(--wear-edge); border-radius:12px; background-color:var(--wear-canvas); background-image:radial-gradient(var(--wear-grid) .7px,transparent .7px); background-size:20px 20px; }
.wear-node { border-color:var(--wear-edge); border-radius:12px; background:var(--wear-surface); box-shadow:0 3px 10px var(--wear-shadow); }
.wear-node[data-node="person"] { left:2%; top:18px; width:29%; height:264px; }
.wear-node[data-node="garment"] { left:2%; top:302px; width:29%; height:174px; }
.wear-node[data-node="engine"] { left:38%; top:132px; width:21%; height:240px; }
.wear-node[data-node="result"] { left:66%; top:28px; width:32%; height:428px; }
.wear-node-head,
.wear-node[data-node="garment"] .wear-node-head,
.wear-node.is-ready .wear-node-head { background:transparent; border-bottom:0; border-radius:12px 12px 0 0; font-weight:600; color:var(--ink); }
.wear-node-head > span:last-child { color:var(--wear-secondary); }
.wear-node-media { width:100%; margin:0; border-radius:0; background:var(--wear-media); color:var(--wear-secondary); }
.wear-node-media img { border-radius:0; }
.wear-node-actions { border-top:0; gap:4px; padding:0 4px; }
.wear-node-actions button,.wear-node-actions a { font-weight:500; white-space:nowrap; border-radius:8px; }
.wear-node-actions button:hover:not(:disabled),.wear-node-actions a:hover { background:var(--wear-media); }
.wear-node-actions button:disabled { color:var(--wear-secondary); opacity:.65; }
.wear-engine-body { padding:2px 12px 6px; gap:8px; }
.wear-engine-body > div { padding:4px 0; border-radius:0; background:transparent; color:var(--wear-secondary); }
.wear-engine-body p { color:var(--wear-secondary); font-size:12px; line-height:1.5; }
.wear-engine-body strong { font-weight:600; font-size:13px; }
.wear-engine-body button { min-height:44px; font-size:12px; border-radius:8px; }
.wear-engine-body button:hover:not(:disabled) { background:var(--wear-media); }
.wear-port { border-color:var(--wear-surface); }
.wear-node.is-ready { border-color:var(--wear-success); box-shadow:0 2px 8px var(--wear-shadow); }
.wear-node.is-active { border-color:var(--wear-success); }
.wear-node.is-blocked { border-color:var(--wear-warning); }
.wear-node-mark { color:var(--wear-success); }
.wear-node.is-blocked .wear-node-mark { color:var(--wear-warning); }
.wear-pipeline-progress { padding:6px 10px; }
.wear-pipeline-step,.wear-pipeline-status { color:var(--wear-secondary); }
.wear-pipeline-step.is-current { color:var(--cafe-forest); }
.wear-pipeline-progress[data-phase="uncertain"],.wear-pipeline-progress[data-phase="error"] { color:var(--wear-warning); }
.wear-canvas-tools { bottom:10px; right:10px; border-color:var(--wear-edge); border-radius:8px; background:var(--wear-surface); box-shadow:0 2px 8px var(--wear-shadow); }
.wear-canvas-tools button { min-width:44px; border-radius:8px; }
.wear-canvas-tools button:hover { background:var(--wear-media); }
.wear-canvas.is-compact .wear-node[data-node="person"] { left:3%; top:14px; width:43%; height:226px; }
.wear-canvas.is-compact .wear-node[data-node="garment"] { left:3%; top:258px; width:43%; height:174px; }
.wear-canvas.is-compact .wear-node[data-node="engine"] { left:55%; top:14px; width:42%; height:192px; }
.wear-canvas.is-compact .wear-node[data-node="result"] { left:55%; top:228px; width:42%; height:248px; }
.wear-canvas.is-compact .wear-engine-body { padding:0 8px 4px; gap:3px; }
.wear-canvas.is-compact .wear-engine-body > div { padding:3px 0; }
.wear-canvas.is-compact .wear-engine-body p { font-size:11px; line-height:1.4; }
.wear-canvas.is-compact .wear-engine-body strong { font-size:12px; }
.wear-canvas.is-compact .wear-canvas-tools { left:3%; bottom:10px; }
.wear-canvas.is-compact .wear-canvas-tools button { min-width:44px; }
.wear-photo-manager,.wear-image-viewer,.wear-live-dialog { border-radius:12px; }
#wear :is(button,a,input,textarea,select):focus-visible { outline:2px solid var(--wear-focus); outline-offset:3px; }
#wear .wear-node-media:focus-visible { outline-offset:-3px; }
#wear :is(input,textarea,select):focus { border-color:var(--wear-focus); box-shadow:none; }
#wear :is(input,textarea)::placeholder { color:var(--wear-secondary); opacity:1; }
#wear .wear-adjustment-fields label,#wear .wear-save-grid label { color:var(--wear-secondary); }
#wear-submit.is-processing::before { width:14px; height:3px; border:0; border-radius:2px; background:currentColor; animation:wear-submitting 1.2s ease-in-out infinite; }
@keyframes wear-submitting { 50% { opacity:.35; transform:scaleX(.5); } }
@media (max-width:700px) {
  body:has(#wear:not([hidden])) .header { height:64px; }
  .wear-section { padding-top:10px; padding-bottom:14px; }
  .wear-heading h2 { font-size:24px; }
  .wear-heading { margin-top:4px; }
  .wear-studio-bar { margin-top:6px; margin-bottom:10px; }
  .wear-studio-bar .button { min-width:106px; }
  .wear-photo-manager { border-radius:0; }
}
/* Light and dark colors are shared by all routes in cafe-theme.css. */
@media (prefers-reduced-motion:reduce) {
  #wear-submit.is-processing::before { animation:none; }
  #wear :is(button,a):hover,#wear :is(button,a):active { transform:none; }
}
