/* The Workshop screen (workshop.js). Built on the app's tokens in app.css; everything here is ws- prefixed. */
.ws { display: grid; gap: 20px; padding-top: 6px; padding-bottom: 32px; }
.ws-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ws-h1 { font-size: 28px; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.ws-ib { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); width: 42px; height: 42px; }
.ws-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ws-end { justify-content: flex-end; margin-top: 16px; }
.ws-grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ws-t { font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.ws-s { color: var(--muted); font-size: 13px; line-height: 1.4; }
.ws-ink { color: var(--ink); }
.ws-note-bar { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--ink); font-size: 14px; }
.ws-up { margin: -8px 0 0; }
[data-ws-body] { display: grid; gap: 22px; }

.ws-band { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--hero); color: var(--hero-ink); }
.ws-band strong { font-weight: 600; }
.ws-band span:not(.ws-dot) { color: var(--hero-muted); font-size: 13px; }
.ws-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--bar); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bar) 22%, transparent); }
.ws-band.hold .ws-dot { background: #E3A46E; box-shadow: 0 0 0 4px rgba(227,164,110,.22); }
.ws-bandbtn { flex: none; border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.13); color: var(--hero-ink); cursor: pointer; }

.ws-sec { display: grid; gap: 10px; }
.ws-sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ws-sec-h h2 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.ws-sec-h small { color: var(--muted); font-size: 13px; }
.ws-card { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 14px; display: grid; gap: 12px; }
.ws-ask { box-shadow: var(--shadow), inset 0 0 0 1px color-mix(in srgb, #C77B3A 45%, transparent); }
.ws-why { font-size: 14px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, #C77B3A 12%, var(--surface)); }
.ws-why b { color: #A8632A; }
.ws-empty { justify-items: center; text-align: center; padding: 26px 16px; color: var(--muted); }
.ws-empty p { margin: 0; }

.ws-book { display: flex; align-items: center; gap: 12px; }
.ws-more { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.ws-more:hover { background: var(--line-soft); }
.ws-list { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 2px 14px; }
.ws-row { padding: 10px 0; }
.ws-row + .ws-row { border-top: 1px solid var(--line-soft); }
.ws-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 6px; background: var(--line-soft); color: var(--muted); white-space: nowrap; }
.ws-tag.lib { background: var(--accent-soft); color: var(--accent); }

.ws-bar { height: 6px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.ws-bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .6s ease; }
.ws-phases { display: flex; gap: 6px; font-size: 12px; color: var(--muted); }
.ws-phases span { flex: 1; text-align: center; padding: 5px 0; border-radius: 8px; background: var(--line-soft); }
.ws-phases .on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.ws-phases .ok { color: var(--accent); }

.ws-sheet-h { margin: 0 0 12px; }
.ws-menu { display: grid; }
.ws-menu button { font: inherit; text-align: left; padding: 14px 2px; border: 0; border-bottom: 1px solid var(--line-soft); background: none; color: var(--ink); cursor: pointer; }
.ws-menu button:last-child { border-bottom: 0; }
.ws-menu button.danger { color: var(--danger); }
.ws-opts { display: grid; gap: 10px; }
.ws-opt { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.ws-opt > span:last-of-type { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ws-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.ws-toggle { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.ws-toggle > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ws-sw { appearance: none; -webkit-appearance: none; width: 46px !important; height: 28px !important; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; }
.ws-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.ws-sw:checked { background: var(--accent); }
.ws-sw:checked::after { transform: translateX(18px); }
.ws-sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ws-note { margin-top: 14px; }
.ws-input { width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 14px; font: inherit; font-size: 16px; }
.ws-picklist { display: grid; margin-top: 8px; max-height: 50vh; overflow-y: auto; }
.ws-pickrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.ws-pickrow.off { opacity: .55; cursor: default; }
.ws-pre { white-space: pre-wrap; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg); border-radius: 12px; padding: 12px; margin: 0; max-height: 50vh; overflow: auto; }
@media (prefers-reduced-motion: reduce) { .ws-bar i, .ws-sw, .ws-sw::after { transition: none; } }
