/* Weathering Workshop: the work order and choices beside the workbench / field photo / test chambers, inside the
 * practice shell's stage. */
.ww { position: absolute; inset: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 12px; padding: 8px 12px; color: var(--tlg-text, #172c38); }
.ww-panel { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; padding: 2px; }

/* the work order */
.ww-ticket { padding: 8px 12px 10px; border-radius: var(--tlg-radius-lg, 14px); border: 2px dashed #c79a6a; background: #fbf5ea; color: #2b1d10; }
.ww-ticket-k { margin: 0 0 6px; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: var(--tlg-tracking-caps, .08em); color: #7a3b12; }
.ww-row { margin: 4px 0 0; font-size: 16px; line-height: 1.35; }
.ww-row-k { display: block; font-weight: 800; font-size: 16px; color: #5a3a1c; }
.ww-row-v { display: block; font-weight: 600; }
html[data-theme="dark"] .ww-ticket { background: #2c2116; color: #f6e9d6; border-color: #9a6b3e; }
html[data-theme="dark"] .ww-ticket-k { color: #ffbf8a; }
html[data-theme="dark"] .ww-row-k { color: #f3c99a; }

/* choices */
.ww-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.ww-field legend { padding: 0; margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.ww-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ww-choices.is-one { grid-template-columns: 1fr; }
.ww-choice { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 8px; padding: 6px 24px 6px 8px; min-height: 52px;
  font: inherit; text-align: left; cursor: pointer; color: var(--tlg-text, #172c38); background: var(--tlg-surface, #fff); border: 2px solid var(--tlg-border, #a5b6c1);
  border-radius: 12px; box-shadow: 0 2px 0 rgba(0, 0, 0, .1); touch-action: manipulation; }
.ww-choice-i { display: block; width: 40px; height: 40px; border-radius: 10px; background: #f3ead8; }
.ww-choice-i svg { width: 40px; height: 40px; display: block; }
.ww-choice-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #2f5d6a; color: #fff; font-size: 18px; font-weight: 900; }
.ww-choice-l { font-size: 17px; font-weight: 700; line-height: 1.2; }
.ww-choice:hover:not(:disabled) { border-color: #7a3b12; }
.ww-choice[aria-pressed="true"] { border-color: #7a3b12; border-width: 3px; background: #fdf0e0; box-shadow: 0 0 0 3px rgba(122, 59, 18, .25); }
.ww-choice[aria-pressed="true"] .ww-choice-l::before { content: '● '; color: #7a3b12; }
html[data-theme="dark"] .ww-choice-i { background: #3a3024; }
html[data-theme="dark"] .ww-choice[aria-pressed="true"] { background: #3a2716; border-color: #ffbf8a; }
html[data-theme="dark"] .ww-choice[aria-pressed="true"] .ww-choice-l::before { color: #ffbf8a; }
.ww-choice:disabled { cursor: default; opacity: 1; }
.ww-choice.is-ok { border-color: #2e8b57; border-width: 3px; }
.ww-choice.is-bad { border-color: #b42318; border-style: dashed; border-width: 3px; }
.ww-mark { position: absolute; top: 2px; right: 6px; font-size: 18px; font-weight: 900; }
.ww-choice.is-ok .ww-mark { color: #1d6b40; }
.ww-choice.is-bad .ww-mark { color: #b42318; }
html[data-theme="dark"] .ww-choice.is-ok .ww-mark { color: #8fe0ad; }
html[data-theme="dark"] .ww-choice.is-bad .ww-mark { color: #ffb4a8; }
.ww-msg { margin: 0; font-size: 16px; font-weight: 700; color: #8a3b12; }
.ww-msg:empty { display: none; }
html[data-theme="dark"] .ww-msg { color: #ffbf8a; }
.ww-about { font-size: 16px; line-height: 1.45; }
.ww-about summary { cursor: pointer; font-weight: 700; }
.ww-about p { margin: 6px 0 0; }

/* the workshop scene */
.ww-view { position: relative; min-width: 0; min-height: 0; display: flex; align-items: flex-start; justify-content: center; }
.ww-scene { position: relative; width: 100%; aspect-ratio: 720 / 620; border-radius: var(--tlg-radius-lg, 14px); overflow: hidden; border: var(--tlg-border-width, 1px) solid var(--tlg-border, #a5b6c1); user-select: none; -webkit-user-select: none; }
.ww-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ww-wall { fill: url(#ww-g-wall); }
html[data-theme="dark"] .ww-wall { fill: url(#ww-g-wall-d); }
.ww-bench { fill: url(#ww-g-bench); }
html[data-theme="dark"] .ww-bench { fill: url(#ww-g-bench-d); }
.ww-shelf { fill: #6b4a2b; }
.ww-placard rect, .ww-placard { fill: #2b2420; stroke: #c9a24a; stroke-width: 2; }
.ww-station { fill: #fffdf6; stroke: #8a6a45; stroke-width: 3; stroke-dasharray: 7 5; }
.ww-station.is-chosen { stroke: #c2410c; stroke-width: 4; stroke-dasharray: none; }
.ww-glass { fill: url(#ww-g-glass); fill-opacity: .82; stroke: #6b8fb3; stroke-width: 3; }
html[data-theme="dark"] .ww-glass { fill: url(#ww-g-glass-d); stroke: #4f7a9a; }
.ww-chamber { cursor: pointer; }
.ww.is-locked .ww-chamber { cursor: default; }
.ww-chamber:hover .ww-glass { stroke: #7a3b12; }
.ww.is-locked .ww-chamber:hover .ww-glass { stroke: #6b8fb3; }
.ww-pick { fill: none; stroke: #c2410c; stroke-width: 5; stroke-dasharray: 12 6; }
.ww-sign rect { fill: #fffdf6; stroke: #7a3b12; stroke-width: 2.5; }

.ww-t { font-family: var(--tlg-font-body, system-ui, sans-serif); fill: #1d2b2f; }
.ww-t-rail { font-size: 19px; font-weight: 800; fill: #f6e7c8; letter-spacing: .03em; }
.ww-t-pk { font-size: 17px; font-weight: 900; fill: #f4d58a; letter-spacing: .06em; }
.ww-t-pv { font-size: 18px; font-weight: 700; fill: #fffaf0; }
.ww-t-q { font-size: 36px; font-weight: 900; fill: #8a6a45; }
.ww-t-sign { font-size: 18px; font-weight: 800; fill: #2b1d10; }
.ww-t-sign2 { font-size: 17px; font-weight: 900; fill: #7a3b12; letter-spacing: .04em; }
.ww-t-sign3 { font-size: 18px; font-weight: 800; fill: #2b1d10; }
.ww-t-agent { font-size: 18px; font-weight: 800; fill: #1d3a5a; paint-order: stroke; stroke: #fffdf6; stroke-width: 4px; }
.ww-t-o2 { font-size: 13px; font-weight: 900; fill: #2c5a85; }
.ww-t-cap { font-size: 17px; font-weight: 700; fill: #4a3a28; font-style: italic; }
.ww-t-ch { font-size: 19px; font-weight: 900; fill: #1d3a42; }
.ww-t-cl, .ww-t-cl2 { font-size: 17px; font-weight: 800; fill: #2b1d10; }
.ww-t-cl2 { font-weight: 600; }
.ww-t-cs { font-size: 17px; font-weight: 800; fill: #1d2b2f; paint-order: stroke; stroke: #fffdf6; stroke-width: 4px; }
html[data-theme="dark"] .ww-t-ch { fill: #cfe6ee; }
html[data-theme="dark"] .ww-t-cl, html[data-theme="dark"] .ww-t-cl2 { fill: #f6e9d6; }
html[data-theme="dark"] .ww-t-cs { fill: #eef6f8; stroke: #1a262c; }

/* reveal badge (over the rail) */
.ww-badge { position: absolute; left: 2%; right: 2%; top: 1%; padding: 7px 12px; border-radius: 10px; font-size: 17px; font-weight: 700; line-height: 1.3; pointer-events: none;
  background: rgba(255, 255, 255, .97); color: #10202c; border: 3px solid #7a3b12; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); animation: ww-pop .25s ease-out; }
.ww-badge.is-ok { border-color: #1d6b40; }
.ww-badge.is-bad { border-color: #b42318; }
@keyframes ww-pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }

/* briefing + start */
.ww-example-svg { display: block; width: 100%; height: auto; max-height: 460px; }
.ww-start-svg { display: block; width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) { .ww-badge { animation: none; } }
@media (max-width: 1100px) { .ww { grid-template-columns: 300px minmax(0, 1fr); } .ww-choices { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .ww { position: static; grid-template-columns: 1fr; }
  .ww-panel { overflow: visible; }
  .ww-choices { grid-template-columns: 1fr 1fr; }
  .ww-view { display: block; order: -1; }
  .ww-scene { width: 100% !important; }
}
@media (max-width: 420px) { .ww-choices { grid-template-columns: 1fr; } }
.ww-chip { fill: #fffdf6; stroke: #6b8fb3; stroke-width: 1.5; }
.ww-ctag { fill: #fffdf6; fill-opacity: .92; stroke: #c9b98f; stroke-width: 1.5; }
html[data-theme="dark"] .ww-chip, html[data-theme="dark"] .ww-ctag { fill: #1d2a30; stroke: #4f7a9a; }
