/* Release workspace (web/release-ws.js, release-ws-done.js). Colour = state: green done/offered, amber watch, red
   needed/failed. The practice badge uses the same yellow as .rl-practice in release.css. */
:root { --practice: #F6D84A; --practice-ink: #3B3000; }
.ws-page { height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--ground); }
.ws-head { padding: 14px 20px 0; border-bottom: 1px solid var(--line); background: var(--panel); }
.ws-title { display: flex; align-items: center; gap: 10px; }
.ws-title h1 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0; }
.ws-renuka { font-size: 11px; font-weight: 600; letter-spacing: .04em; border-radius: 6px; padding: 3px 8px; background: var(--practice); color: var(--practice-ink); }
.ws-renuka.live { background: var(--renuka); color: var(--panel); }
.ws-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: 15px; }
.ws-arrow, .ws-dot { color: var(--faint); }
.ws-co { color: var(--renuka); }
.ws-need { color: var(--red); font-weight: 600; }
.ws-cands { margin: 8px 0 4px; display: grid; gap: 6px; max-width: 820px; }
.ws-cand { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.ws-cand b { flex: none; }
.ws-cand .rl-meta { flex: 1; min-width: 0; }
.ws-cand-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ws-cand-search input, .ws-search input { height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: var(--card); min-width: 220px; }
.ws-steps { border-bottom: 0; background: none; padding: 8px 0; }
.ws-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 20px 20px; }
.ws-tabs { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.ws-ltab { display: flex; align-items: center; gap: 8px; max-width: 520px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 7px 12px; font-size: 14px; color: var(--ink-2); }
.ws-ltab.on { background: var(--card); color: var(--ink); border-color: var(--faint); box-shadow: var(--shadow); }
.ws-ldot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--faint); }
.ws-ldot.green { background: var(--green); } .ws-ldot.amber { background: var(--amber); } .ws-ldot.red { background: var(--red); }
.ws-lst { font-size: 12px; flex: none; color: var(--muted); }
.ws-lst.red { color: var(--red); } .ws-lst.amber { color: var(--amber); } .ws-lst.green { color: var(--green); }
.ws-cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr); gap: 14px; align-items: start; }
.ws-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.ws-card-t { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.ws-card-t b { font-size: 16px; flex: none; }
.ws-serif b { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.ws-pad { padding: 8px 14px; }
.ws-needline { padding: 8px 14px 0; font-size: 14px; }
.ws-search { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 14px 0; font-size: 13px; }
.ws-bar { margin: 8px 14px; }
.ws-tbl { margin: 0; max-height: 440px; overflow: auto; border-top: 1px solid var(--line); }
.ws-tbl table { font-size: 13px; }
.ws-gone td { background: var(--amber-soft); color: var(--muted); }
.ws-tag { font-size: 11px; border-radius: 999px; padding: 1px 7px; background: var(--fill); color: var(--ink-2); white-space: nowrap; font-weight: 500; }
.ws-tag.green { background: var(--green-soft); color: var(--green); }
.ws-tag.amber { background: var(--amber-soft); color: var(--amber); }
.ws-tag.red { background: var(--red-soft); color: var(--red); }
.ws-key { padding: 6px 14px 10px; }
.ws-red { color: var(--red); } .ws-amber { color: var(--amber); } .ws-green { color: var(--green); }
.ws-sec { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.ws-sec:last-child { border-bottom: 0; }
.ws-sec-t { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; min-width: 0; }
.ws-chain { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ws-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 6px 3px 4px; font-size: 13px; background: var(--panel); }
.ws-chip.on { border-color: var(--acc); background: var(--acc-soft); }
.ws-chip + .ws-chip::before { content: "→"; color: var(--faint); margin: 0 4px 0 -2px; }
.ws-chip-b { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--ink); }
.ws-chip-b:not(:disabled) { cursor: pointer; text-decoration: underline dotted; }
.ws-x { border: 0; background: none; color: var(--faint); font-size: 15px; line-height: 1; padding: 0 2px; cursor: pointer; }
.ws-x:hover { color: var(--red); }
.ws-n { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--fill); color: var(--ink-2); flex: none; }
.ws-n.g { background: var(--green); color: var(--panel); } .ws-n.r { background: var(--red); color: var(--panel); }
.ws-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 4px; font-size: 13px; }
.ws-addb { border: 1px dashed var(--faint); background: none; border-radius: 999px; padding: 2px 10px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.ws-addb:hover { border-color: var(--acc); color: var(--acc-text); }
.ws-stepedit { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0; padding: 8px 10px; border-radius: 8px; background: var(--acc-soft); font-size: 13px; }
.ws-stepedit input, .ws-stepedit select { height: 30px; width: 90px; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; background: var(--card); }
.ws-stepedit select { width: auto; }
.ws-q { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; padding: 6px 10px; border-radius: 8px; background: var(--red-soft); color: var(--red); font-size: 13px; }
.ws-prob { color: var(--red); font-size: 13px; margin: 4px 0; }
.ws-warn { color: var(--amber); font-size: 13px; margin: 4px 0; }
.ws-st { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.ws-st th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.ws-st td { padding: 6px; border-bottom: 1px solid var(--line); }
.ws-st .r { text-align: right; font-variant-numeric: tabular-nums; }
.ws-box { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 14px; resize: vertical; background: var(--card); color: var(--ink); }
.ws-box:focus { outline: none; border-color: var(--acc); }
.ws-readas { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; font-size: 13px; }
.ws-ra { border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; background: var(--panel); }
.ws-from { padding: 0 0 4px; }
.ws-barbot { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--line); background: var(--panel); }
.ws-reasons { font-size: 12px; color: var(--muted); text-align: right; line-height: 1.35; }
.ws-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ws-facts > div { display: flex; flex-direction: column; min-width: 0; }
.ws-wide { grid-column: span 2; }
.rl-eyebrow { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ws-cline { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.ws-cline-t { display: flex; align-items: baseline; gap: 10px; font-size: 14px; margin-bottom: 4px; flex-wrap: wrap; }
.ws-crow { display: grid; grid-template-columns: 80px 1fr auto; gap: 10px; font-size: 13px; padding: 3px 0 3px 12px; border-left: 2px solid var(--line); }
.ws-plan, .ws-run { list-style: none; margin: 0; padding: 4px 14px; }
.ws-plan li, .ws-run li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ws-plan li:last-child, .ws-run li:last-child { border-bottom: 0; }
.ws-checked { max-width: 220px; text-align: right; font-size: 12px; }
.ws-foot { margin: 6px 14px 14px; padding: 10px 12px; border-radius: 8px; background: var(--fill); font-size: 13px; color: var(--ink-2); }
.ws-run-failed { background: var(--red-soft); margin: 0 -14px; padding-left: 14px !important; padding-right: 14px !important; }
.ws-run-failed b { color: var(--red); }
.ws-said { margin: 6px 0; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 13px; }
.ws-run-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ws-st-word { font-size: 12px; color: var(--muted); flex: none; }
.ws-st-word.green { color: var(--green); } .ws-st-word.red { color: var(--red); }
.ws-cols > *, .ws-body > * { min-width: 0; }
.ws-chip { max-width: 100%; }
.ws-chip .rl-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 1000px) {
  .ws-cols { grid-template-columns: minmax(0, 1fr); }
  .ws-body, .ws-page { overflow-x: hidden; }
  .ws-sub { font-size: 14px; }
  .ws-search input { min-width: 0; flex: 1 1 160px; }
  .ws-facts { grid-template-columns: 1fr 1fr; }
  .ws-body { padding: 10px 12px; }
  .ws-head { padding: 10px 12px 0; }
  .ws-barbot { padding: 8px 12px; flex-wrap: wrap; }
  .ws-reasons { display: none; }
  .ws-title h1 { font-size: 24px; }
  .ws-title > .rl-meta { display: none; }
}
.ws-card .rl-grid { grid-template-columns: 1fr; }
.ws-card .rl-grid > .rl-f:nth-child(odd):not(.rl-wide) { border-right: 0; }
.ws-card .rl-f-l { flex-basis: 120px; }
.ws-search .chip { height: 26px; padding: 0 8px; font-size: 12px; }
.ws-known { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 2px; font-size: 13px; }
.ws-kn { border: 1px dashed var(--line); border-radius: 8px; padding: 2px 8px; background: var(--card); max-width: 100%; }
.ws-kn.on { border-style: solid; border-color: var(--green); background: var(--green-soft); }
.ws-talk { margin: 8px 14px 0; padding: 8px 10px; border-left: 3px solid var(--renuka); background: var(--renuka-soft); border-radius: 6px; font-size: 13px; display: grid; gap: 3px; }
.ws-talk .rl-eyebrow { margin-right: 6px; }
.ws-tag.blue { background: var(--blue-soft); color: var(--blue); }
.ws-opt { margin: 6px 14px 0; font-size: 13px; }
.ws-reasons { max-width: 560px; }
.ws-headline .ws-hl { font-family: var(--serif); font-size: 26px; line-height: 1.2; margin: 2px 0 4px; }
.ws-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ws-chip2 { font-size: 12px; border-radius: 999px; padding: 2px 10px; background: var(--fill); color: var(--ink-2); }
.ws-chip2.amber { background: var(--amber-soft); color: var(--amber); }
.ws-vs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; font-size: 13px; margin-bottom: 8px; }
.ws-vs > div { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.ws-vs > div:last-child { background: var(--renuka-soft); border-color: var(--renuka); }
.ws-sec-h { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 10px 0 4px; }
.ws-flow { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; }
.ws-flow .ws-fbox { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; min-width: 110px; }
.ws-flow .ws-step { border-color: var(--faint); background: var(--card); }
.ws-flow .ws-out.ok { border-color: var(--green); background: var(--green-soft); }
.ws-flow .ws-out.short { border-color: var(--red); background: var(--red-soft); }
.ws-arr { align-self: center; color: var(--faint); font-size: 18px; }
.ws-flow-foot { margin-top: 4px; }
.ws-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.ws-rate { font-size: 20px; }
.ws-amt { margin-left: auto; font-size: 18px; }
.ws-deliv { margin-top: 8px; }
.ws-mrow { display: flex; justify-content: space-between; padding: 4px 0; font-size: 15px; }
.ws-mtot { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; font-size: 18px; }
@media (max-width: 1000px) { .ws-vs { grid-template-columns: 1fr; } }
/* calm Lines screen + Review (4 Nov 2026, .claude/skills/order-desk-screens) */
.ws-knownline { margin: 8px 24px 0; color: var(--muted); }
.ws-needtxt { font-size: 15px; }
.ws-meter { height: 8px; border-radius: 9px; background: var(--fill); margin: 8px 0 4px; overflow: hidden; }
.ws-meter i { display: block; height: 100%; }
.ws-meter.ok i { background: var(--green); } .ws-meter.short i { background: var(--amber); }
.ws-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.ws-goneline { margin-top: 8px; font-size: 13px; color: var(--amber); }
.ws-rt { width: 100%; border-collapse: collapse; font-size: 14px; }
.ws-rt th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 8px 14px; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.ws-rt td { padding: 8px 14px; border-bottom: 1px solid var(--line); }
.ws-rt .r { text-align: right; font-variant-numeric: tabular-nums; }
.ws-rt tr.ws-rtick td { background: var(--acc-soft); }
.ws-rt tr.ws-rbad td { background: var(--red-soft); }
.ws-rcb { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.ws-why { font-size: 12px; color: var(--muted); }
.ws-why + .ws-why::before { content: " · "; }
.ws-why.red { color: var(--red); font-weight: 600; } .ws-why.amber { color: var(--amber); }
.ws-vs2 { display: grid; grid-template-columns: 80px 1fr; gap: 3px 10px; font-size: 14px; }
.ws-vs2 > span { color: var(--muted); font-size: 13px; }
.ws-links { display: grid; gap: 4px; margin: 8px 0 2px; }
.ws-exact { display: grid; gap: 6px; margin: 10px 0 4px; }
.ws-pf { display: grid; grid-template-columns: 180px 1fr auto; gap: 10px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ws-pf.changed { background: var(--green-soft); }
.ws-pf-l { color: var(--muted); font-size: 13px; padding-left: 4px; }
.ws-pf-v { border: 0; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.ws-pf-v:hover { background: var(--acc-soft); }
.ws-pf-e { display: flex; gap: 6px; align-items: center; }
.ws-pf input, .ws-pf select { height: 30px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; background: var(--card); font: inherit; min-width: 0; }
@media (max-width: 1000px) { .ws-pf { grid-template-columns: 1fr; } .ws-knownline { margin: 8px 12px 0; } }
@media (max-width: 1000px) { .ws-barbot .btn.primary { white-space: normal; height: auto; min-height: 40px; padding: 6px 12px; max-width: 100%; } }
.ws-flow .ws-reelbox { border-color: var(--ink-2); background: var(--card); min-width: 190px; }
.ws-reelrow { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; font-variant-numeric: tabular-nums; }
.ws-rtwrap { overflow-x: auto; }
.ws-rt td.ws-red { color: var(--red); font-size: 12px; }
.ws-tt { width: 100%; border-collapse: collapse; font-size: 14px; }
.ws-tt th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 7px 12px; border-bottom: 1px solid var(--line); }
.ws-tt td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.ws-tt td.r, .ws-tt th.r { text-align: right; font-variant-numeric: tabular-nums; }
.ws-tt td.who { color: var(--muted); font-size: 13px; white-space: nowrap; }
.ws-tt tr.going td { background: var(--renuka-soft); font-weight: 600; }
.ws-tt td.diff { background: var(--amber-soft); color: var(--amber); font-weight: 600; }
.ws-fbox.click { cursor: pointer; } .ws-fbox.click:hover { border-color: var(--acc); background: var(--acc-soft); }
.ws-modal-back { position: fixed; inset: 0; background: rgba(26,31,36,.32); z-index: 60; display: grid; place-items: center; padding: 16px; }
.ws-modal { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); width: min(640px, 100%); max-height: 86vh; overflow-y: auto; }
.ws-modal-h { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ws-modal-h b { font-size: 16px; }
.ws-rt td { white-space: nowrap; } .ws-rt td:last-child { white-space: normal; min-width: 140px; }
.ws-rt th { white-space: nowrap; }

/* the job pop-up as Renuka's production-order form (web/release-ws-job.js, 4 Nov 2026) */
.ws-modal-wide { width: min(760px, 100%); }
.jf-sec { font-size: 12px; font-weight: 600; color: var(--renuka); text-transform: uppercase; letter-spacing: .04em; margin: 16px 0 6px; }
.jf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.jf-head { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.jf-cell { display: flex; flex-direction: column; gap: 1px; padding: 6px 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.jf-head .jf-cell { border-bottom: 0; }
.jf-cell.changed { background: var(--green-soft); border-radius: 6px; }
.jf-l { font-size: 12px; color: var(--muted); }
.jf-v { border: 0; background: none; text-align: left; font: inherit; font-size: 14px; color: var(--ink); padding: 2px 0; border-radius: 6px;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
button.jf-v { cursor: pointer; }
button.jf-v:hover { background: var(--acc-soft); }
.jf-src { font-size: 11px; color: var(--faint); }
.jf-src.you { color: var(--green); }
.jf-e { display: flex; gap: 6px; align-items: center; }
.jf-cell input, .jf-cell select { height: 30px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; background: var(--card); font: inherit; min-width: 0; width: 100%; }
.jf-t th, .jf-t td { padding: 6px 8px; }
@media (max-width: 640px) { .jf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.jf-tw { overflow-x: auto; }
@media (max-width: 640px) { .jf-t th, .jf-t td { padding: 6px 5px; font-size: 13px; } }
