/* STC organisation workspace — Pack 03 PW-005 shell, Pack 02 SP-001…SP-004 / SO-005.
   Tokens come from app.css (Frozen V4.1.3A); geometry from the PW-005.d / PW-006.a / SP-003 / SO-005 boards. */

body.ws { min-height: 100vh; }
.ws-top { position: sticky; top: 0; z-index: 40; height: 72px; display: flex; align-items: center; gap: 24px; padding: 0 32px;
  background: rgba(0,0,0,0.82); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: inset 0 -1px 0 var(--line-0); }
.ws-brand { font-size: 15px; font-weight: 700; letter-spacing: .18em; }
.ws-crumb { font-size: 12.5px; color: var(--fg-3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-crumb a { color: var(--fg-3); }
.ws-crumb a:hover { color: var(--fg); }
.ws-top-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.ws-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--fg-2); white-space: nowrap; }
.ws-org { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 11px; color: var(--fg-2); white-space: nowrap; }
.ws-link { border: 0; background: none; color: var(--fg-2); font: inherit; font-size: 12.5px; cursor: pointer; min-height: 44px; padding: 0 4px; }
.ws-link:hover { color: var(--fg); }
.ws-mtop { display: none; }

.ws-main { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 44px; padding: 28px 40px 96px; max-width: 1520px; }
.ws-main.single { grid-template-columns: minmax(0, 1fr); max-width: 1040px; }
.ws-main.single.wide { max-width: 1520px; }
.wt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }   /* registries without a card form stay readable on phones */
.ws-col { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.ws-h1 { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.2; }
.ws-kicker { font-size: 12px; color: var(--fg-3); margin-bottom: 6px; }
.ws-lead { font-size: 13px; color: var(--fg-2); line-height: 1.5; margin: 0; }
.ws-h2 { margin: 0; font-size: 13px; font-weight: 700; color: var(--fg-2); }
.ws-sect { display: flex; flex-direction: column; gap: 0; }
.ws-sect > .ws-h2 { margin-bottom: 4px; }

/* tabs (PW-005: pills; active = white) */
.wtabs { display: flex; gap: 6px; flex-wrap: wrap; }
.wtab { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 99px; font-size: 13px; color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; border: 0; background: transparent; cursor: pointer; font-family: inherit; }
.wtab[aria-current="page"], .wtab[aria-pressed="true"] { background: #FFFFFF; color: #000000; font-weight: 600; box-shadow: none; }
.wtab .n { margin-left: 6px; font-variant-numeric: tabular-nums; opacity: .66; }

/* status chip (dashed) */
.wst { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: 4px; border: 1px dashed var(--line-2);
  color: var(--fg); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; text-transform: uppercase; }
.wst.solid { background: #fff; color: #000; border-color: #fff; }

/* work table (desktop) and cards (mobile) */
.wt { width: 100%; border-collapse: collapse; }
.wt th { text-align: left; padding: 0 14px 10px; font-size: 12px; color: var(--fg-3); font-weight: 600; }
.wt td { padding: 12px 14px; box-shadow: inset 0 -1px 0 var(--line-0); font-size: 13px; color: var(--fg-2); vertical-align: top; }
.wt td:first-child { font-size: 14px; color: var(--fg); }
.wt td:first-child a { display: block; }
.wt tr.go { cursor: pointer; }
.wt tr.go:hover td { background: rgba(255,255,255,.03); }
.wt .num { font-variant-numeric: tabular-nums; }
.wcards { display: none; flex-direction: column; gap: 12px; }
.wcard { display: block; padding: 14px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg); }
.wcard-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.wcard-t { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.wcard-s { font-size: 12.5px; color: var(--fg-2); margin-top: 6px; line-height: 1.45; }
.wcard-f { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--fg-3); margin-top: 10px; padding-top: 10px;
  box-shadow: inset 0 1px 0 var(--line-0); }
.wcard-f span:last-child { font-variant-numeric: tabular-nums; text-align: right; }

/* context card (aside) */
.ctx { position: sticky; top: 96px; padding: 20px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); display: flex; flex-direction: column; gap: 16px; }
.ctx-stack { display: flex; flex-direction: column; gap: 16px; }
.kvs { display: flex; flex-direction: column; }
.wkv { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 0; box-shadow: inset 0 -1px 0 var(--line-0); }
.wkv > span:first-child { font-size: 13.5px; min-width: 0; }
.wkv > span:first-child small { display: block; font-size: 12px; color: var(--fg-3); margin-top: 2px; }
.wkv > span:last-child { font-size: 14px; text-align: right; max-width: 55%; font-variant-numeric: tabular-nums; }

/* note / notice */
.wnote { padding: 16px 18px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; color: var(--fg-2); line-height: 1.5;
  display: flex; gap: 12px; align-items: flex-start; }
.wnote b { color: var(--fg); font-weight: 600; }
.wnote .wst { flex-shrink: 0; margin-top: 1px; }
.wempty h2 { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.25; }
.wempty p { font-size: 13px; color: var(--fg-2); line-height: 1.5; margin: 10px 0 0; }

/* form (SP-003.a) */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.wf label, .wf .wf-l { display: block; font-size: 12px; color: var(--fg-3); }
.wf .in { display: block; width: 100%; margin-top: 6px; min-height: 46px; padding: 12px 14px; border-radius: 8px; border: 0; background: transparent;
  color: var(--fg); font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px var(--line-2); outline: none; }
.wf select.in { -webkit-appearance: none; appearance: none; cursor: pointer; }
.wf select.in option { background: #000; color: #fff; }
.wf textarea.in { resize: vertical; min-height: 84px; line-height: 1.45; }
.wf .in:focus { box-shadow: inset 0 0 0 1.5px #fff; }
.wf .in[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #fff; }
.wf .hint { font-size: 12px; color: var(--fg-3); margin-top: 6px; line-height: 1.4; }
.wf .hint.bad { color: var(--fg); }
.chk { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; font-size: 13.5px; line-height: 1.4; }
.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chk .box { width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0; box-shadow: inset 0 0 0 1px var(--line-2); display: inline-flex;
  align-items: center; justify-content: center; margin-top: 1px; }
.chk .box svg { opacity: 0; stroke: #000; stroke-width: 2.2; }
.chk .box.on { background: #fff; box-shadow: none; }
.chk .box.on svg { opacity: 1; }
.chk input:checked + .box { background: #fff; box-shadow: none; }
.chk input:checked + .box svg { opacity: 1; }
.chk input:focus-visible + .box { outline: 2px solid #fff; outline-offset: 2px; }

/* quote (live payout computed by Core) */
.quote { display: grid; gap: 0; padding: 4px 16px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.quote .wkv:last-of-type { box-shadow: none; }
.quote-notes { font-size: 12px; color: var(--fg-3); line-height: 1.45; padding: 0 0 12px; display: grid; gap: 4px; }
.quote[aria-busy="true"] { opacity: .6; }

/* buttons */
.wbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 8px; border: 0;
  background: #FFFFFF; color: #000000; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.wbtn-2 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 8px; border: 0;
  background: transparent; color: var(--fg); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.wbtn[disabled], .wbtn-2[disabled] { opacity: .5; cursor: default; }
.wbtn.full, .wbtn-2.full { width: 100%; }
.wrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* bottom bar (SP-003: total + action) */
.bbar { position: sticky; bottom: 0; z-index: 14; background: #000; box-shadow: inset 0 1px 0 var(--line); padding: 16px 0 18px; }
.bbar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bbar-l { flex: 1 1 150px; min-width: 0; }
.bbar-k { font-size: 11.5px; color: var(--fg-3); line-height: 1.3; }
.bbar-v { font-size: 16px; font-weight: 600; margin-top: 3px; line-height: 1.3; font-variant-numeric: tabular-nums; }

/* milestones (SO-005.b) — own class names: app.css already styles .steps for the client deal */
.ms { list-style: none; margin: 0; padding: 0; }
.ms-i { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; box-shadow: inset 0 -1px 0 var(--line-0); }
.ms-dot { width: 10px; height: 10px; border-radius: 99px; margin-top: 5px; box-shadow: inset 0 0 0 1.5px var(--decor); }
.ms-i.done .ms-dot { background: #fff; box-shadow: none; }
.ms-i.now .ms-dot { box-shadow: inset 0 0 0 1.5px #fff; }
.ms-t { font-size: 13.5px; }
.ms-s { font-size: 12px; color: var(--fg-3); margin-top: 2px; }
.ms-r { text-align: right; font-size: 12px; color: var(--fg-2); display: grid; gap: 4px; justify-items: end; }

/* evidence (SO-005.c) */
.egrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.ecell { aspect-ratio: 1; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; font-size: 11.5px; color: var(--fg-2); padding: 8px; text-align: center; overflow: hidden; }
.ecell a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.ecell svg { width: 18px; height: 18px; }
.ecount { font-size: 12px; color: var(--fg-3); }

/* compare (operator subcontracts) */
.wprops { display: grid; gap: 12px; }
.wprop { padding: 16px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); display: grid; gap: 8px; }
.wprop-h { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.wprop-p { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }

.wskel { display: grid; gap: 12px; }
.wskel .skel { min-height: 64px; border-radius: 10px; }
.wskel .skel.t { min-height: 30px; max-width: 260px; }

@media (max-width: 1099px) {
  .ws-main { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 24px 24px 96px; }
  .ctx { position: static; }
}
@media (max-width: 599px) {
  .ws-top { display: none; }
  .ws-mtop { display: flex; position: sticky; top: 0; z-index: 40; padding: calc(8px + env(safe-area-inset-top)) 12px 8px 6px; min-height: 60px;
    align-items: flex-start; gap: 4px; background: rgba(0,0,0,0.82); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    box-shadow: inset 0 -1px 0 var(--line-0); }
  .ws-back { width: 44px; height: 44px; box-shadow: none; margin-top: -2px; flex-shrink: 0; }
  .ws-mtitle { flex: 1; min-width: 0; padding: 3px 0 0 10px; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
  .ws-back:not([hidden]) + .ws-mtitle { padding-left: 0; }
  .ws-msub { font-size: 12px; color: var(--fg-3); margin-top: 1px; font-weight: 400; line-height: 1.3; }
  .ws-mtop .ws-org { margin-top: 4px; }
  .ws-main { padding: 12px 16px 140px; }
  .ws-h1 { font-size: 22px; line-height: 1.25; }
  .wt { display: none; }
  .wt.keep { display: table; min-width: 560px; }
  .wcards { display: flex; }
  .egrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bbar { position: fixed; left: 0; right: 0; bottom: 0; border-radius: 14px 14px 0 0; padding: 20px 16px calc(26px + env(safe-area-inset-bottom)); }
  .bbar::before { content: ""; position: absolute; left: 50%; top: 6px; width: 36px; height: 4px; margin-left: -18px; border-radius: 4px; background: var(--decor); }
}

/* ops console additions (Pack 06 OPS-003.d selected row; OPS-025 preview) */
.wt tr.sel td { background: rgba(255,255,255,.05); }
.preview-frame { border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); padding: 16px; max-height: 70vh; overflow: auto; }
.preview-frame .home-hero { display: block; }
.preview-frame .hero { font-size: 28px; }
.preview-frame .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.preview-frame .section { margin-top: 24px; }
.wlist { margin: 0; padding-left: 18px; font-size: 13px; color: var(--fg); line-height: 1.5; }
.wlist li + li { margin-top: 4px; }

.event-media-preview { max-width: 100%; max-height: 320px; object-fit: contain; }
.publication-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.publication-image { max-width: min(100%, 240px); max-height: 180px; object-fit: contain; }
