/* Shared owner/portal Workstation v2. Scope prevents portal/shell regressions. */
.ws-v2 { min-width:0; width:100%; }
.ws-v2 .workstation-board { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;overflow:visible;min-height:0;align-items:start; }
.ws-v2 .workstation-lane { min-width:0;min-height:0;display:flex;flex-direction:column;gap:8px; }
.ws-v2 .workstation-lane>header { display:flex;justify-content:space-between;align-items:center; }
.ws-v2 .workstation-lane>header h2 { font-size:1rem; }
.ws-v2 .ws-v2-card { position:relative;container-type:inline-size;display:grid;grid-template-rows:auto auto auto auto;gap:2px;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--panel);min-width:0;cursor:pointer; }
.ws-v2 .ws-v2-title-heading { flex:1;min-width:0;margin:0;font-size:.875rem;line-height:1.4; }
.ws-v2 .ws-v2-card-live { position:absolute;right:8px;bottom:6px;min-height:24px;max-width:6rem;font-size:.625rem;padding:0 4px;line-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.ws-v2-has-live .ws-v2-state { padding-right:6.5rem; }
.ws-v2-has-menu .ws-v2-head { padding-right:28px; }
.ws-v2-head { display:flex;gap:4px;align-items:center;min-width:0;min-height:24px; }
.ws-v2 .ws-v2-title { display:block;width:100%;max-width:100%;min-width:0;min-height:24px;height:auto;padding:0;border:0;background:none;box-shadow:none;color:var(--ink);font-size:.875rem;font-weight:600;line-height:1.4;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.ws-v2 .ws-v2-pencil { display:block;flex:none;width:24px;height:24px;min-width:24px;min-height:24px;padding:0;border:0;background:none;color:var(--muted);line-height:24px; }
.ws-v2-number { flex:none;align-self:start;font-size:.6875rem;line-height:24px;color:var(--muted);font-variant-numeric:tabular-nums; }
.ws-v2 .ws-v2-meta { display:flex;gap:5px;margin:0;min-height:14px;font-size:.6875rem;line-height:1.27;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.ws-v2-meta-main { min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis; }
.ws-v2-native-attention { flex:none;font-size:.625rem;font-weight:600;color:var(--ink); }
.ws-v2 .ws-v2-native-attention.badge { padding:0 3px;line-height:12px;align-self:center; }
.ws-v2-progress { display:flex;gap:6px;align-items:center;min-height:16px;min-width:0; }
.ws-v2 .ticket-phase-leds { display:flex;flex-wrap:nowrap;gap:5px;min-width:0;overflow-x:auto;scrollbar-width:none;list-style:none;margin:0;padding:0;align-items:center;min-height:16px; }
.ws-v2 .ticket-phase-leds li { display:flex;flex:none; }
.ws-v2-time { font-size:.625rem;line-height:1.6;color:var(--muted);white-space:nowrap;margin-left:auto;flex:none;font-variant-numeric:tabular-nums; }
.ws-v2-no-plan { font-size:.625rem;line-height:1.6; }
.ws-v2-state { display:grid;min-height:28px;min-width:0;font-size:.6875rem;line-height:1.27; }
.ws-v2-state strong,.ws-v2-state>span { white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.ws-v2-state>span { color:var(--muted); }
.ws-v2 .ticket-card-menu { top:8px;bottom:auto;right:6px; }
.ws-v2 .ticket-menu-toggle { min-width:24px;min-height:24px;padding:0 4px;line-height:24px; }
.ws-v2 .ticket-card-menu[open] { z-index:4; }
.ws-v2 .ws-v2-title-input { min-width:0;width:100%;height:auto;min-height:24px;padding:1px 3px;font-size:.875rem;line-height:1.4; }
.ws-v2-edit-error { font-size:.75rem;color:var(--bad,#ff9f96);overflow-wrap:anywhere; }
.ws-v2 .phase-led { display:inline-flex;width:11px;height:11px;min-width:11px;align-items:center;justify-content:center;line-height:8px;font-size:10px;border:1.5px solid var(--muted);border-radius:50%;background:transparent;animation:none;box-shadow:none; }
.ws-v2 .phase-led.state-active { background:#70b7ff;border-color:#70b7ff;animation:ws-v2-pulse 1.8s ease-in-out infinite; }
.ws-v2 .phase-led.state-waiting { background:#e4b763;border-color:#e4b763; }
.ws-v2 .phase-led.state-done { background:#76ba93;border-color:#76ba93; }
.ws-v2 .phase-led.state-failed { background:#ce4848;border-color:#ce4848;color:white;font-weight:700; }
.ws-v2 .phase-led.state-skipped { border-style:dashed;opacity:.7; }
.ws-v2 .phase-led.state-stale { border-color:var(--muted);opacity:.6; }
@keyframes ws-v2-pulse { 50% { opacity:.45; } }
@media(prefers-reduced-motion:reduce) { .ws-v2 .phase-led { animation:none!important; } }
.ws-v2 .ws-v2-drawer { width:min(560px,100vw);z-index:1200; }
.ws-v2.drawer-open { padding-right:0; }
.ws-v2 .ticket-drawer-body { min-height:0;font-size:.875rem; }
.ws-v2 .ticket-drawer-section { min-width:0; }
.ws-v2 .ticket-drawer-section p { white-space:pre-wrap;overflow-wrap:anywhere; }
.ws-v2 .ticket-phase-list { list-style:none;display:grid;gap:10px;padding:0; }
.ws-v2 .ticket-phase-list li { display:grid;grid-template-columns:14px 1fr;gap:8px; }
.ws-v2 .ws-v2-technical pre { white-space:pre-wrap;overflow-wrap:anywhere; }
.ws-v2 .ws-v2-technical>summary { cursor:pointer;padding:8px 0; }
.ws-v2-run-wrap { overflow-x:auto; }
.ws-v2-run-wrap table { font-size:.75rem;border-collapse:collapse;min-width:500px; }
.ws-v2-run-wrap td,.ws-v2-run-wrap th { padding:6px;text-align:left;border-bottom:1px solid var(--line); }
.ws-v2-run-wrap th { white-space:nowrap; }
.ws-v2-projects { display:flex;flex-wrap:wrap;gap:6px;margin:10px 0; }
.ws-v2-projects button { font-size:.75rem;min-height:30px;border:1px solid var(--line);border-radius:999px;padding:4px 10px; }
.ws-v2-projects button[aria-pressed=true] { border-color:var(--accent);background:var(--surface-soft,var(--panel)); }
.ws-v2-projects button[aria-pressed=false] { opacity:.65; }
.ws-v2-identities label { display:flex;gap:10px;align-items:center; }
.ws-v2 .preview-banner { padding:10px;border:1px solid var(--line); }
.ws-v2-sr { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
.ws-v2 [hidden] { display:none!important; }
.ws-v2 .workstation-toolbar { display:flex;flex-wrap:wrap;gap:8px;align-items:end;background:var(--panel);color:var(--ink); }
.ws-v2 .workstation-toolbar label>span { color:var(--muted); }
.ws-v2>[data-ws-visible-total] { color:var(--ink);background:var(--panel); }
.ws-v2 .workstation-toolbar label { display:grid;gap:3px;min-width:0; }
/* At enlarged text (or genuinely narrow cards), essential state wraps and the
   live control gets its own space. Density is a default-size benchmark only. */
@container(max-width:12rem) {
  .ws-v2 .ws-v2-state strong { white-space:normal;overflow-wrap:anywhere; }
  .ws-v2-has-live .ws-v2-state { padding-right:0;padding-bottom:28px; }
}
@media(max-width:1100px) { .ws-v2 .workstation-board { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:720px) { .ws-v2 .workstation-board { grid-template-columns:minmax(0,1fr); }.ws-v2 .workstation-toolbar label { flex:1 1 120px; }.ws-v2 .workstation-toolbar input,.ws-v2 .workstation-toolbar select { width:100%;min-width:0; } }
@media(max-width:900px) { .ws-v2 .ws-v2-drawer { width:100vw; } }
